peal 0.1.0 → 0.2.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 (229) hide show
  1. checksums.yaml +4 -4
  2. data/NOTICE +4 -0
  3. data/README.md +5 -4
  4. data/lib/peal/models/api_key.rb +11 -23
  5. data/lib/peal/models/membership.rb +11 -23
  6. data/lib/peal/models/new_api_key.rb +15 -23
  7. data/lib/peal/models/permission.rb +66 -0
  8. data/lib/peal/version.rb +1 -1
  9. data/lib/peal.rb +1 -0
  10. metadata +3 -220
  11. data/Gemfile +0 -9
  12. data/Gemfile.lock +0 -136
  13. data/Rakefile +0 -10
  14. data/docs/AlreadyMemberEncoded.md +0 -18
  15. data/docs/AltTextTooLongEncoded.md +0 -20
  16. data/docs/AnalyticsApi.md +0 -155
  17. data/docs/AnalyticsSummary.md +0 -30
  18. data/docs/ApiKey.md +0 -28
  19. data/docs/ApiKeyNotFoundEncoded.md +0 -18
  20. data/docs/ApiKeysApi.md +0 -220
  21. data/docs/ApiKeysRevoke404Response.md +0 -18
  22. data/docs/AssistantAction.md +0 -24
  23. data/docs/AssistantActionAnyOf.md +0 -20
  24. data/docs/AssistantActionAnyOf1.md +0 -20
  25. data/docs/AssistantActionAnyOf2.md +0 -20
  26. data/docs/AssistantActionAnyOf3.md +0 -18
  27. data/docs/AssistantApi.md +0 -149
  28. data/docs/AssistantFailedEncoded.md +0 -20
  29. data/docs/AssistantInputRejectedEncoded.md +0 -22
  30. data/docs/AssistantQuotaExceededEncoded.md +0 -22
  31. data/docs/AssistantStatus.md +0 -26
  32. data/docs/AssistantTone.md +0 -15
  33. data/docs/AssistantUnavailableEncoded.md +0 -18
  34. data/docs/AttemptResult.md +0 -15
  35. data/docs/Authorization.md +0 -18
  36. data/docs/Billing.md +0 -28
  37. data/docs/BillingApi.md +0 -77
  38. data/docs/BillingSubscription.md +0 -24
  39. data/docs/Channel.md +0 -30
  40. data/docs/ChannelCannotPostEncoded.md +0 -20
  41. data/docs/ChannelMetrics.md +0 -30
  42. data/docs/ChannelNotFoundEncoded.md +0 -18
  43. data/docs/ChannelOptions.md +0 -20
  44. data/docs/ChannelStatus.md +0 -20
  45. data/docs/ChannelStatusAnyOf.md +0 -18
  46. data/docs/ChannelStatusAnyOf1.md +0 -18
  47. data/docs/ChannelStatusAnyOf2.md +0 -20
  48. data/docs/ChannelsApi.md +0 -512
  49. data/docs/ChannelsCompleteConnect404Response.md +0 -18
  50. data/docs/ChoosableAccount.md +0 -26
  51. data/docs/ChooseAccounts.md +0 -20
  52. data/docs/ConnectCallback.md +0 -24
  53. data/docs/ConnectChannel.md +0 -20
  54. data/docs/ConnectFailedEncoded.md +0 -20
  55. data/docs/ConnectFailureReason.md +0 -15
  56. data/docs/ConnectOutcome.md +0 -26
  57. data/docs/ConnectOutcomeAnyOf.md +0 -20
  58. data/docs/ConnectOutcomeAnyOf1.md +0 -24
  59. data/docs/ConnectablePlatforms.md +0 -18
  60. data/docs/ContentViolation.md +0 -54
  61. data/docs/ContentViolationAnyOf.md +0 -18
  62. data/docs/ContentViolationAnyOf1.md +0 -20
  63. data/docs/ContentViolationAnyOf10.md +0 -26
  64. data/docs/ContentViolationAnyOf11.md +0 -22
  65. data/docs/ContentViolationAnyOf12.md +0 -26
  66. data/docs/ContentViolationAnyOf13.md +0 -26
  67. data/docs/ContentViolationAnyOf14.md +0 -26
  68. data/docs/ContentViolationAnyOf15.md +0 -26
  69. data/docs/ContentViolationAnyOf16.md +0 -22
  70. data/docs/ContentViolationAnyOf17.md +0 -26
  71. data/docs/ContentViolationAnyOf18.md +0 -28
  72. data/docs/ContentViolationAnyOf19.md +0 -28
  73. data/docs/ContentViolationAnyOf2.md +0 -20
  74. data/docs/ContentViolationAnyOf20.md +0 -28
  75. data/docs/ContentViolationAnyOf21.md +0 -28
  76. data/docs/ContentViolationAnyOf22.md +0 -30
  77. data/docs/ContentViolationAnyOf23.md +0 -32
  78. data/docs/ContentViolationAnyOf24.md +0 -32
  79. data/docs/ContentViolationAnyOf24Maximum.md +0 -15
  80. data/docs/ContentViolationAnyOf25.md +0 -28
  81. data/docs/ContentViolationAnyOf3.md +0 -24
  82. data/docs/ContentViolationAnyOf4.md +0 -24
  83. data/docs/ContentViolationAnyOf5.md +0 -28
  84. data/docs/ContentViolationAnyOf6.md +0 -24
  85. data/docs/ContentViolationAnyOf7.md +0 -22
  86. data/docs/ContentViolationAnyOf8.md +0 -28
  87. data/docs/ContentViolationAnyOf9.md +0 -24
  88. data/docs/CreatedApiKey.md +0 -20
  89. data/docs/DatabaseUnavailableEncoded.md +0 -18
  90. data/docs/DraftPage.md +0 -20
  91. data/docs/EffectHttpApiErrorBadRequestEncoded.md +0 -18
  92. data/docs/EngagementDay.md +0 -26
  93. data/docs/FailureReason.md +0 -15
  94. data/docs/ForbiddenEncoded.md +0 -18
  95. data/docs/InvalidDateRangeEncoded.md +0 -18
  96. data/docs/InvalidTimeRangeEncoded.md +0 -18
  97. data/docs/InvalidTimeZoneEncoded.md +0 -20
  98. data/docs/Invitation.md +0 -28
  99. data/docs/InvitationNotFoundEncoded.md +0 -18
  100. data/docs/InvitationsApi.md +0 -220
  101. data/docs/InvitationsCreate409Response.md +0 -18
  102. data/docs/InvitationsRevoke404Response.md +0 -18
  103. data/docs/MarkNoticesRead.md +0 -18
  104. data/docs/Me.md +0 -22
  105. data/docs/MeUser.md +0 -28
  106. data/docs/Media.md +0 -40
  107. data/docs/MediaApi.md +0 -516
  108. data/docs/MediaAttachment.md +0 -20
  109. data/docs/MediaContentType.md +0 -15
  110. data/docs/MediaCreate422Response.md +0 -28
  111. data/docs/MediaDescription.md +0 -18
  112. data/docs/MediaDimensions.md +0 -20
  113. data/docs/MediaGet404Response.md +0 -18
  114. data/docs/MediaInUseEncoded.md +0 -20
  115. data/docs/MediaKind.md +0 -15
  116. data/docs/MediaNotFoundEncoded.md +0 -18
  117. data/docs/MediaPage.md +0 -20
  118. data/docs/MediaStatus.md +0 -22
  119. data/docs/MediaStatusAnyOf.md +0 -18
  120. data/docs/MediaStatusAnyOf1.md +0 -20
  121. data/docs/MediaStatusAnyOf2.md +0 -18
  122. data/docs/MediaStatusAnyOf3.md +0 -20
  123. data/docs/MediaStoreUnavailableEncoded.md +0 -18
  124. data/docs/MediaTooLargeEncoded.md +0 -24
  125. data/docs/MediaUsage.md +0 -20
  126. data/docs/MembersApi.md +0 -77
  127. data/docs/Membership.md +0 -26
  128. data/docs/MetricTotals.md +0 -28
  129. data/docs/MetricsSnapshot.md +0 -20
  130. data/docs/NewApiKey.md +0 -22
  131. data/docs/NewInvitation.md +0 -20
  132. data/docs/NewUpload.md +0 -22
  133. data/docs/NonFiniteNumber.md +0 -15
  134. data/docs/Notice.md +0 -26
  135. data/docs/NoticeChannel.md +0 -20
  136. data/docs/NoticeEvent.md +0 -28
  137. data/docs/NoticeEventAnyOf.md +0 -24
  138. data/docs/NoticeEventAnyOf1.md +0 -24
  139. data/docs/NoticeEventAnyOf2.md +0 -22
  140. data/docs/NoticeEventAnyOf3.md +0 -20
  141. data/docs/NoticeEventAnyOf4.md +0 -22
  142. data/docs/NoticePage.md +0 -20
  143. data/docs/NoticesApi.md +0 -285
  144. data/docs/NotificationPreferences.md +0 -20
  145. data/docs/NotificationPreferencesApi.md +0 -144
  146. data/docs/NotificationPreferencesChange.md +0 -20
  147. data/docs/NotificationPreferencesChangeEmail.md +0 -24
  148. data/docs/NotificationPreferencesEmail.md +0 -24
  149. data/docs/PaidPlan.md +0 -15
  150. data/docs/PeriodUsage.md +0 -20
  151. data/docs/Plan.md +0 -15
  152. data/docs/PlanAllowances.md +0 -24
  153. data/docs/PlanLimit.md +0 -15
  154. data/docs/PlanLimitReachedEncoded.md +0 -22
  155. data/docs/PlanOffer.md +0 -20
  156. data/docs/Platform.md +0 -15
  157. data/docs/PlatformUnreachableEncoded.md +0 -18
  158. data/docs/Post.md +0 -30
  159. data/docs/PostAnalytics.md +0 -20
  160. data/docs/PostContent.md +0 -22
  161. data/docs/PostContentInvalidEncoded.md +0 -20
  162. data/docs/PostDraft.md +0 -22
  163. data/docs/PostMetrics.md +0 -26
  164. data/docs/PostNotFoundEncoded.md +0 -18
  165. data/docs/PostOutcome.md +0 -15
  166. data/docs/PostSchedule.md +0 -20
  167. data/docs/PostStatus.md +0 -15
  168. data/docs/PostStatusConflictEncoded.md +0 -20
  169. data/docs/PostTarget.md +0 -36
  170. data/docs/PostTargetStatus.md +0 -15
  171. data/docs/PostsApi.md +0 -960
  172. data/docs/PostsCreate422Response.md +0 -24
  173. data/docs/PostsGet404Response.md +0 -18
  174. data/docs/PostsRepost409Response.md +0 -20
  175. data/docs/PostsSchedule422Response.md +0 -26
  176. data/docs/PreparedUpload.md +0 -20
  177. data/docs/ProbeState.md +0 -15
  178. data/docs/PublicationAttempt.md +0 -30
  179. data/docs/RejectionReason.md +0 -15
  180. data/docs/Role.md +0 -15
  181. data/docs/ScheduleInPastEncoded.md +0 -18
  182. data/docs/SchedulePost.md +0 -22
  183. data/docs/SessionApi.md +0 -74
  184. data/docs/SignedRequest.md +0 -22
  185. data/docs/SubscriptionStatus.md +0 -15
  186. data/docs/Suggestion.md +0 -22
  187. data/docs/SuggestionAnyOf.md +0 -20
  188. data/docs/SuggestionAnyOf1.md +0 -20
  189. data/docs/SuggestionRequest.md +0 -20
  190. data/docs/SystemApi.md +0 -129
  191. data/docs/TargetConfirmation.md +0 -20
  192. data/docs/TargetConfirmationAnyOf.md +0 -20
  193. data/docs/TargetConfirmationAnyOf1.md +0 -18
  194. data/docs/TargetMetrics.md +0 -32
  195. data/docs/TargetOptions.md +0 -48
  196. data/docs/TargetStatusConflictEncoded.md +0 -20
  197. data/docs/TextOverride.md +0 -20
  198. data/docs/TextUnit.md +0 -15
  199. data/docs/TikTokAccount.md +0 -20
  200. data/docs/TikTokAccountPosting.md +0 -22
  201. data/docs/TikTokAccountPostingAnyOf.md +0 -20
  202. data/docs/TikTokAccountPostingAnyOf1.md +0 -20
  203. data/docs/TikTokBlock.md +0 -15
  204. data/docs/TikTokCreator.md +0 -32
  205. data/docs/TikTokOptions.md +0 -34
  206. data/docs/TikTokPrivacyLevel.md +0 -15
  207. data/docs/TiktokApi.md +0 -79
  208. data/docs/TooManyInvitationsEncoded.md +0 -18
  209. data/docs/TopPost.md +0 -30
  210. data/docs/TranslationLanguage.md +0 -15
  211. data/docs/UnauthenticatedEncoded.md +0 -18
  212. data/docs/UnconfirmedReason.md +0 -15
  213. data/docs/UnknownChannelsEncoded.md +0 -20
  214. data/docs/UnknownMediaEncoded.md +0 -20
  215. data/docs/UnreadNotices.md +0 -18
  216. data/docs/UnsupportedMediaTypeEncoded.md +0 -20
  217. data/docs/UploadIncompleteEncoded.md +0 -18
  218. data/docs/UploadPart.md +0 -22
  219. data/docs/UploadRejectedEncoded.md +0 -20
  220. data/docs/UploadTarget.md +0 -26
  221. data/docs/UploadTargetAnyOf.md +0 -22
  222. data/docs/UploadTargetAnyOf1.md +0 -24
  223. data/docs/Usage.md +0 -24
  224. data/docs/WorkspaceMember.md +0 -26
  225. data/docs/WorkspaceNotFoundEncoded.md +0 -18
  226. data/docs/YouTubeOptions.md +0 -32
  227. data/docs/YouTubePrivacy.md +0 -15
  228. data/peal.gemspec +0 -41
  229. data/project.json +0 -17
@@ -1,20 +0,0 @@
1
- # Peal::AssistantActionAnyOf1
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **platform** | [**Platform**](Platform.md) | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'peal'
14
-
15
- instance = Peal::AssistantActionAnyOf1.new(
16
- _tag: null,
17
- platform: null
18
- )
19
- ```
20
-
@@ -1,20 +0,0 @@
1
- # Peal::AssistantActionAnyOf2
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **language** | [**TranslationLanguage**](TranslationLanguage.md) | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'peal'
14
-
15
- instance = Peal::AssistantActionAnyOf2.new(
16
- _tag: null,
17
- language: null
18
- )
19
- ```
20
-
@@ -1,18 +0,0 @@
1
- # Peal::AssistantActionAnyOf3
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'peal'
13
-
14
- instance = Peal::AssistantActionAnyOf3.new(
15
- _tag: null
16
- )
17
- ```
18
-
data/docs/AssistantApi.md DELETED
@@ -1,149 +0,0 @@
1
- # Peal::AssistantApi
2
-
3
- All URIs are relative to *https://app.peal.social*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**assistant_status**](AssistantApi.md#assistant_status) | **GET** /api/workspaces/{workspaceId}/assistant | Get the assistant's status |
8
- | [**assistant_suggest**](AssistantApi.md#assistant_suggest) | **POST** /api/workspaces/{workspaceId}/assistant/suggestions | Suggest a change to a post's text |
9
-
10
-
11
- ## assistant_status
12
-
13
- > <AssistantStatus> assistant_status(workspace_id)
14
-
15
- Get the assistant's status
16
-
17
- Tells whether the server has a language model, so clients show the assistant or hide it, and how many requests the workspace has left today. Needs assistant:use.
18
-
19
- ### Examples
20
-
21
- ```ruby
22
- require 'time'
23
- require 'peal'
24
- # setup authorization
25
- Peal.configure do |config|
26
- # Configure Bearer authorization: bearer
27
- config.access_token = 'YOUR_BEARER_TOKEN'
28
- end
29
-
30
- api_instance = Peal::AssistantApi.new
31
- workspace_id = 'workspace_id_example' # String |
32
-
33
- begin
34
- # Get the assistant's status
35
- result = api_instance.assistant_status(workspace_id)
36
- p result
37
- rescue Peal::ApiError => e
38
- puts "Error when calling AssistantApi->assistant_status: #{e}"
39
- end
40
- ```
41
-
42
- #### Using the assistant_status_with_http_info variant
43
-
44
- This returns an Array which contains the response data, status code and headers.
45
-
46
- > <Array(<AssistantStatus>, Integer, Hash)> assistant_status_with_http_info(workspace_id)
47
-
48
- ```ruby
49
- begin
50
- # Get the assistant's status
51
- data, status_code, headers = api_instance.assistant_status_with_http_info(workspace_id)
52
- p status_code # => 2xx
53
- p headers # => { ... }
54
- p data # => <AssistantStatus>
55
- rescue Peal::ApiError => e
56
- puts "Error when calling AssistantApi->assistant_status_with_http_info: #{e}"
57
- end
58
- ```
59
-
60
- ### Parameters
61
-
62
- | Name | Type | Description | Notes |
63
- | ---- | ---- | ----------- | ----- |
64
- | **workspace_id** | **String** | | |
65
-
66
- ### Return type
67
-
68
- [**AssistantStatus**](AssistantStatus.md)
69
-
70
- ### Authorization
71
-
72
- [bearer](../README.md#bearer)
73
-
74
- ### HTTP request headers
75
-
76
- - **Content-Type**: Not defined
77
- - **Accept**: application/json
78
-
79
-
80
- ## assistant_suggest
81
-
82
- > <Suggestion> assistant_suggest(workspace_id, suggestion_request)
83
-
84
- Suggest a change to a post's text
85
-
86
- Asks the language model to rewrite, shorten or translate a post's text, or to suggest hashtags for it, and answers once the whole suggestion is checked. The text is sent to the model as data, never as instructions. Each request counts toward the workspace's daily quota, unless the model's provider could not be reached. Needs assistant:use.
87
-
88
- ### Examples
89
-
90
- ```ruby
91
- require 'time'
92
- require 'peal'
93
- # setup authorization
94
- Peal.configure do |config|
95
- # Configure Bearer authorization: bearer
96
- config.access_token = 'YOUR_BEARER_TOKEN'
97
- end
98
-
99
- api_instance = Peal::AssistantApi.new
100
- workspace_id = 'workspace_id_example' # String |
101
- suggestion_request = Peal::SuggestionRequest.new({action: Peal::AssistantAction.new({_tag: 'hashtags', tone: Peal::AssistantTone::PROFESSIONAL, platform: Peal::Platform::X, language: Peal::TranslationLanguage::EN}), text: 'text_example'}) # SuggestionRequest |
102
-
103
- begin
104
- # Suggest a change to a post's text
105
- result = api_instance.assistant_suggest(workspace_id, suggestion_request)
106
- p result
107
- rescue Peal::ApiError => e
108
- puts "Error when calling AssistantApi->assistant_suggest: #{e}"
109
- end
110
- ```
111
-
112
- #### Using the assistant_suggest_with_http_info variant
113
-
114
- This returns an Array which contains the response data, status code and headers.
115
-
116
- > <Array(<Suggestion>, Integer, Hash)> assistant_suggest_with_http_info(workspace_id, suggestion_request)
117
-
118
- ```ruby
119
- begin
120
- # Suggest a change to a post's text
121
- data, status_code, headers = api_instance.assistant_suggest_with_http_info(workspace_id, suggestion_request)
122
- p status_code # => 2xx
123
- p headers # => { ... }
124
- p data # => <Suggestion>
125
- rescue Peal::ApiError => e
126
- puts "Error when calling AssistantApi->assistant_suggest_with_http_info: #{e}"
127
- end
128
- ```
129
-
130
- ### Parameters
131
-
132
- | Name | Type | Description | Notes |
133
- | ---- | ---- | ----------- | ----- |
134
- | **workspace_id** | **String** | | |
135
- | **suggestion_request** | [**SuggestionRequest**](SuggestionRequest.md) | | |
136
-
137
- ### Return type
138
-
139
- [**Suggestion**](Suggestion.md)
140
-
141
- ### Authorization
142
-
143
- [bearer](../README.md#bearer)
144
-
145
- ### HTTP request headers
146
-
147
- - **Content-Type**: application/json
148
- - **Accept**: application/json
149
-
@@ -1,20 +0,0 @@
1
- # Peal::AssistantFailedEncoded
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **reason** | **String** | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'peal'
14
-
15
- instance = Peal::AssistantFailedEncoded.new(
16
- _tag: null,
17
- reason: null
18
- )
19
- ```
20
-
@@ -1,22 +0,0 @@
1
- # Peal::AssistantInputRejectedEncoded
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **max_length** | **Integer** | | |
9
- | **reason** | **String** | | |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'peal'
15
-
16
- instance = Peal::AssistantInputRejectedEncoded.new(
17
- _tag: null,
18
- max_length: null,
19
- reason: null
20
- )
21
- ```
22
-
@@ -1,22 +0,0 @@
1
- # Peal::AssistantQuotaExceededEncoded
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **daily_limit** | **Integer** | | |
9
- | **resets_at** | **String** | | |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'peal'
15
-
16
- instance = Peal::AssistantQuotaExceededEncoded.new(
17
- _tag: null,
18
- daily_limit: null,
19
- resets_at: null
20
- )
21
- ```
22
-
@@ -1,26 +0,0 @@
1
- # Peal::AssistantStatus
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **available** | **Boolean** | | |
8
- | **daily_limit** | **Integer** | | |
9
- | **max_text_length** | **Integer** | | |
10
- | **remaining** | **Integer** | | |
11
- | **resets_at** | **String** | | |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'peal'
17
-
18
- instance = Peal::AssistantStatus.new(
19
- available: null,
20
- daily_limit: null,
21
- max_text_length: null,
22
- remaining: null,
23
- resets_at: null
24
- )
25
- ```
26
-
@@ -1,15 +0,0 @@
1
- # Peal::AssistantTone
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
-
8
- ## Example
9
-
10
- ```ruby
11
- require 'peal'
12
-
13
- instance = Peal::AssistantTone.new()
14
- ```
15
-
@@ -1,18 +0,0 @@
1
- # Peal::AssistantUnavailableEncoded
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'peal'
13
-
14
- instance = Peal::AssistantUnavailableEncoded.new(
15
- _tag: null
16
- )
17
- ```
18
-
@@ -1,15 +0,0 @@
1
- # Peal::AttemptResult
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
-
8
- ## Example
9
-
10
- ```ruby
11
- require 'peal'
12
-
13
- instance = Peal::AttemptResult.new()
14
- ```
15
-
@@ -1,18 +0,0 @@
1
- # Peal::Authorization
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **authorization_url** | **String** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'peal'
13
-
14
- instance = Peal::Authorization.new(
15
- authorization_url: null
16
- )
17
- ```
18
-
data/docs/Billing.md DELETED
@@ -1,28 +0,0 @@
1
- # Peal::Billing
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **allowances** | [**PlanAllowances**](PlanAllowances.md) | | |
8
- | **enabled** | **Boolean** | | |
9
- | **plan** | [**Plan**](Plan.md) | | |
10
- | **plans** | [**Array&lt;PlanOffer&gt;**](PlanOffer.md) | | |
11
- | **subscription** | [**BillingSubscription**](BillingSubscription.md) | | |
12
- | **usage** | [**Usage**](Usage.md) | | |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'peal'
18
-
19
- instance = Peal::Billing.new(
20
- allowances: null,
21
- enabled: null,
22
- plan: null,
23
- plans: null,
24
- subscription: null,
25
- usage: null
26
- )
27
- ```
28
-
data/docs/BillingApi.md DELETED
@@ -1,77 +0,0 @@
1
- # Peal::BillingApi
2
-
3
- All URIs are relative to *https://app.peal.social*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**billing_get**](BillingApi.md#billing_get) | **GET** /api/workspaces/{workspaceId}/billing | Get the workspace&#39;s billing |
8
-
9
-
10
- ## billing_get
11
-
12
- > <Billing> billing_get(workspace_id)
13
-
14
- Get the workspace's billing
15
-
16
- Answers with the workspace's plan, the subscription that buys it, what each limit allows, how much of it the workspace uses, and every plan to compare. On a server that does not bill, nothing is limited. Needs billing:read.
17
-
18
- ### Examples
19
-
20
- ```ruby
21
- require 'time'
22
- require 'peal'
23
- # setup authorization
24
- Peal.configure do |config|
25
- # Configure Bearer authorization: bearer
26
- config.access_token = 'YOUR_BEARER_TOKEN'
27
- end
28
-
29
- api_instance = Peal::BillingApi.new
30
- workspace_id = 'workspace_id_example' # String |
31
-
32
- begin
33
- # Get the workspace's billing
34
- result = api_instance.billing_get(workspace_id)
35
- p result
36
- rescue Peal::ApiError => e
37
- puts "Error when calling BillingApi->billing_get: #{e}"
38
- end
39
- ```
40
-
41
- #### Using the billing_get_with_http_info variant
42
-
43
- This returns an Array which contains the response data, status code and headers.
44
-
45
- > <Array(<Billing>, Integer, Hash)> billing_get_with_http_info(workspace_id)
46
-
47
- ```ruby
48
- begin
49
- # Get the workspace's billing
50
- data, status_code, headers = api_instance.billing_get_with_http_info(workspace_id)
51
- p status_code # => 2xx
52
- p headers # => { ... }
53
- p data # => <Billing>
54
- rescue Peal::ApiError => e
55
- puts "Error when calling BillingApi->billing_get_with_http_info: #{e}"
56
- end
57
- ```
58
-
59
- ### Parameters
60
-
61
- | Name | Type | Description | Notes |
62
- | ---- | ---- | ----------- | ----- |
63
- | **workspace_id** | **String** | | |
64
-
65
- ### Return type
66
-
67
- [**Billing**](Billing.md)
68
-
69
- ### Authorization
70
-
71
- [bearer](../README.md#bearer)
72
-
73
- ### HTTP request headers
74
-
75
- - **Content-Type**: Not defined
76
- - **Accept**: application/json
77
-
@@ -1,24 +0,0 @@
1
- # Peal::BillingSubscription
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **cancel_at_period_end** | **Boolean** | | |
8
- | **current_period_end** | **String** | | |
9
- | **plan** | [**PaidPlan**](PaidPlan.md) | | |
10
- | **status** | [**SubscriptionStatus**](SubscriptionStatus.md) | | |
11
-
12
- ## Example
13
-
14
- ```ruby
15
- require 'peal'
16
-
17
- instance = Peal::BillingSubscription.new(
18
- cancel_at_period_end: null,
19
- current_period_end: null,
20
- plan: null,
21
- status: null
22
- )
23
- ```
24
-
data/docs/Channel.md DELETED
@@ -1,30 +0,0 @@
1
- # Peal::Channel
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **avatar_url** | **String** | | |
8
- | **display_name** | **String** | | |
9
- | **handle** | **String** | | |
10
- | **id** | **String** | | |
11
- | **platform** | [**Platform**](Platform.md) | | |
12
- | **status** | [**ChannelStatus**](ChannelStatus.md) | | |
13
- | **token_expires_at** | **String** | | |
14
-
15
- ## Example
16
-
17
- ```ruby
18
- require 'peal'
19
-
20
- instance = Peal::Channel.new(
21
- avatar_url: null,
22
- display_name: null,
23
- handle: null,
24
- id: null,
25
- platform: null,
26
- status: null,
27
- token_expires_at: null
28
- )
29
- ```
30
-
@@ -1,20 +0,0 @@
1
- # Peal::ChannelCannotPostEncoded
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **reason** | **String** | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'peal'
14
-
15
- instance = Peal::ChannelCannotPostEncoded.new(
16
- _tag: null,
17
- reason: null
18
- )
19
- ```
20
-
@@ -1,30 +0,0 @@
1
- # Peal::ChannelMetrics
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **impressions** | **Integer** | | |
8
- | **likes** | **Integer** | | |
9
- | **posts** | **Integer** | | |
10
- | **quotes** | **Integer** | | |
11
- | **replies** | **Integer** | | |
12
- | **reposts** | **Integer** | | |
13
- | **channel_id** | **String** | | |
14
-
15
- ## Example
16
-
17
- ```ruby
18
- require 'peal'
19
-
20
- instance = Peal::ChannelMetrics.new(
21
- impressions: null,
22
- likes: null,
23
- posts: null,
24
- quotes: null,
25
- replies: null,
26
- reposts: null,
27
- channel_id: null
28
- )
29
- ```
30
-
@@ -1,18 +0,0 @@
1
- # Peal::ChannelNotFoundEncoded
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'peal'
13
-
14
- instance = Peal::ChannelNotFoundEncoded.new(
15
- _tag: null
16
- )
17
- ```
18
-
@@ -1,20 +0,0 @@
1
- # Peal::ChannelOptions
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **channel_id** | **String** | | |
8
- | **options** | [**TargetOptions**](TargetOptions.md) | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'peal'
14
-
15
- instance = Peal::ChannelOptions.new(
16
- channel_id: null,
17
- options: null
18
- )
19
- ```
20
-
@@ -1,20 +0,0 @@
1
- # Peal::ChannelStatus
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **refresh_needed** | **Boolean** | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'peal'
14
-
15
- instance = Peal::ChannelStatus.new(
16
- _tag: null,
17
- refresh_needed: null
18
- )
19
- ```
20
-
@@ -1,18 +0,0 @@
1
- # Peal::ChannelStatusAnyOf
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'peal'
13
-
14
- instance = Peal::ChannelStatusAnyOf.new(
15
- _tag: null
16
- )
17
- ```
18
-
@@ -1,18 +0,0 @@
1
- # Peal::ChannelStatusAnyOf1
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'peal'
13
-
14
- instance = Peal::ChannelStatusAnyOf1.new(
15
- _tag: null
16
- )
17
- ```
18
-