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.
- checksums.yaml +4 -4
- data/NOTICE +4 -0
- data/README.md +5 -4
- data/lib/peal/models/api_key.rb +11 -23
- data/lib/peal/models/membership.rb +11 -23
- data/lib/peal/models/new_api_key.rb +15 -23
- data/lib/peal/models/permission.rb +66 -0
- data/lib/peal/version.rb +1 -1
- data/lib/peal.rb +1 -0
- metadata +3 -220
- data/Gemfile +0 -9
- data/Gemfile.lock +0 -136
- data/Rakefile +0 -10
- data/docs/AlreadyMemberEncoded.md +0 -18
- data/docs/AltTextTooLongEncoded.md +0 -20
- data/docs/AnalyticsApi.md +0 -155
- data/docs/AnalyticsSummary.md +0 -30
- data/docs/ApiKey.md +0 -28
- data/docs/ApiKeyNotFoundEncoded.md +0 -18
- data/docs/ApiKeysApi.md +0 -220
- data/docs/ApiKeysRevoke404Response.md +0 -18
- data/docs/AssistantAction.md +0 -24
- data/docs/AssistantActionAnyOf.md +0 -20
- data/docs/AssistantActionAnyOf1.md +0 -20
- data/docs/AssistantActionAnyOf2.md +0 -20
- data/docs/AssistantActionAnyOf3.md +0 -18
- data/docs/AssistantApi.md +0 -149
- data/docs/AssistantFailedEncoded.md +0 -20
- data/docs/AssistantInputRejectedEncoded.md +0 -22
- data/docs/AssistantQuotaExceededEncoded.md +0 -22
- data/docs/AssistantStatus.md +0 -26
- data/docs/AssistantTone.md +0 -15
- data/docs/AssistantUnavailableEncoded.md +0 -18
- data/docs/AttemptResult.md +0 -15
- data/docs/Authorization.md +0 -18
- data/docs/Billing.md +0 -28
- data/docs/BillingApi.md +0 -77
- data/docs/BillingSubscription.md +0 -24
- data/docs/Channel.md +0 -30
- data/docs/ChannelCannotPostEncoded.md +0 -20
- data/docs/ChannelMetrics.md +0 -30
- data/docs/ChannelNotFoundEncoded.md +0 -18
- data/docs/ChannelOptions.md +0 -20
- data/docs/ChannelStatus.md +0 -20
- data/docs/ChannelStatusAnyOf.md +0 -18
- data/docs/ChannelStatusAnyOf1.md +0 -18
- data/docs/ChannelStatusAnyOf2.md +0 -20
- data/docs/ChannelsApi.md +0 -512
- data/docs/ChannelsCompleteConnect404Response.md +0 -18
- data/docs/ChoosableAccount.md +0 -26
- data/docs/ChooseAccounts.md +0 -20
- data/docs/ConnectCallback.md +0 -24
- data/docs/ConnectChannel.md +0 -20
- data/docs/ConnectFailedEncoded.md +0 -20
- data/docs/ConnectFailureReason.md +0 -15
- data/docs/ConnectOutcome.md +0 -26
- data/docs/ConnectOutcomeAnyOf.md +0 -20
- data/docs/ConnectOutcomeAnyOf1.md +0 -24
- data/docs/ConnectablePlatforms.md +0 -18
- data/docs/ContentViolation.md +0 -54
- data/docs/ContentViolationAnyOf.md +0 -18
- data/docs/ContentViolationAnyOf1.md +0 -20
- data/docs/ContentViolationAnyOf10.md +0 -26
- data/docs/ContentViolationAnyOf11.md +0 -22
- data/docs/ContentViolationAnyOf12.md +0 -26
- data/docs/ContentViolationAnyOf13.md +0 -26
- data/docs/ContentViolationAnyOf14.md +0 -26
- data/docs/ContentViolationAnyOf15.md +0 -26
- data/docs/ContentViolationAnyOf16.md +0 -22
- data/docs/ContentViolationAnyOf17.md +0 -26
- data/docs/ContentViolationAnyOf18.md +0 -28
- data/docs/ContentViolationAnyOf19.md +0 -28
- data/docs/ContentViolationAnyOf2.md +0 -20
- data/docs/ContentViolationAnyOf20.md +0 -28
- data/docs/ContentViolationAnyOf21.md +0 -28
- data/docs/ContentViolationAnyOf22.md +0 -30
- data/docs/ContentViolationAnyOf23.md +0 -32
- data/docs/ContentViolationAnyOf24.md +0 -32
- data/docs/ContentViolationAnyOf24Maximum.md +0 -15
- data/docs/ContentViolationAnyOf25.md +0 -28
- data/docs/ContentViolationAnyOf3.md +0 -24
- data/docs/ContentViolationAnyOf4.md +0 -24
- data/docs/ContentViolationAnyOf5.md +0 -28
- data/docs/ContentViolationAnyOf6.md +0 -24
- data/docs/ContentViolationAnyOf7.md +0 -22
- data/docs/ContentViolationAnyOf8.md +0 -28
- data/docs/ContentViolationAnyOf9.md +0 -24
- data/docs/CreatedApiKey.md +0 -20
- data/docs/DatabaseUnavailableEncoded.md +0 -18
- data/docs/DraftPage.md +0 -20
- data/docs/EffectHttpApiErrorBadRequestEncoded.md +0 -18
- data/docs/EngagementDay.md +0 -26
- data/docs/FailureReason.md +0 -15
- data/docs/ForbiddenEncoded.md +0 -18
- data/docs/InvalidDateRangeEncoded.md +0 -18
- data/docs/InvalidTimeRangeEncoded.md +0 -18
- data/docs/InvalidTimeZoneEncoded.md +0 -20
- data/docs/Invitation.md +0 -28
- data/docs/InvitationNotFoundEncoded.md +0 -18
- data/docs/InvitationsApi.md +0 -220
- data/docs/InvitationsCreate409Response.md +0 -18
- data/docs/InvitationsRevoke404Response.md +0 -18
- data/docs/MarkNoticesRead.md +0 -18
- data/docs/Me.md +0 -22
- data/docs/MeUser.md +0 -28
- data/docs/Media.md +0 -40
- data/docs/MediaApi.md +0 -516
- data/docs/MediaAttachment.md +0 -20
- data/docs/MediaContentType.md +0 -15
- data/docs/MediaCreate422Response.md +0 -28
- data/docs/MediaDescription.md +0 -18
- data/docs/MediaDimensions.md +0 -20
- data/docs/MediaGet404Response.md +0 -18
- data/docs/MediaInUseEncoded.md +0 -20
- data/docs/MediaKind.md +0 -15
- data/docs/MediaNotFoundEncoded.md +0 -18
- data/docs/MediaPage.md +0 -20
- data/docs/MediaStatus.md +0 -22
- data/docs/MediaStatusAnyOf.md +0 -18
- data/docs/MediaStatusAnyOf1.md +0 -20
- data/docs/MediaStatusAnyOf2.md +0 -18
- data/docs/MediaStatusAnyOf3.md +0 -20
- data/docs/MediaStoreUnavailableEncoded.md +0 -18
- data/docs/MediaTooLargeEncoded.md +0 -24
- data/docs/MediaUsage.md +0 -20
- data/docs/MembersApi.md +0 -77
- data/docs/Membership.md +0 -26
- data/docs/MetricTotals.md +0 -28
- data/docs/MetricsSnapshot.md +0 -20
- data/docs/NewApiKey.md +0 -22
- data/docs/NewInvitation.md +0 -20
- data/docs/NewUpload.md +0 -22
- data/docs/NonFiniteNumber.md +0 -15
- data/docs/Notice.md +0 -26
- data/docs/NoticeChannel.md +0 -20
- data/docs/NoticeEvent.md +0 -28
- data/docs/NoticeEventAnyOf.md +0 -24
- data/docs/NoticeEventAnyOf1.md +0 -24
- data/docs/NoticeEventAnyOf2.md +0 -22
- data/docs/NoticeEventAnyOf3.md +0 -20
- data/docs/NoticeEventAnyOf4.md +0 -22
- data/docs/NoticePage.md +0 -20
- data/docs/NoticesApi.md +0 -285
- data/docs/NotificationPreferences.md +0 -20
- data/docs/NotificationPreferencesApi.md +0 -144
- data/docs/NotificationPreferencesChange.md +0 -20
- data/docs/NotificationPreferencesChangeEmail.md +0 -24
- data/docs/NotificationPreferencesEmail.md +0 -24
- data/docs/PaidPlan.md +0 -15
- data/docs/PeriodUsage.md +0 -20
- data/docs/Plan.md +0 -15
- data/docs/PlanAllowances.md +0 -24
- data/docs/PlanLimit.md +0 -15
- data/docs/PlanLimitReachedEncoded.md +0 -22
- data/docs/PlanOffer.md +0 -20
- data/docs/Platform.md +0 -15
- data/docs/PlatformUnreachableEncoded.md +0 -18
- data/docs/Post.md +0 -30
- data/docs/PostAnalytics.md +0 -20
- data/docs/PostContent.md +0 -22
- data/docs/PostContentInvalidEncoded.md +0 -20
- data/docs/PostDraft.md +0 -22
- data/docs/PostMetrics.md +0 -26
- data/docs/PostNotFoundEncoded.md +0 -18
- data/docs/PostOutcome.md +0 -15
- data/docs/PostSchedule.md +0 -20
- data/docs/PostStatus.md +0 -15
- data/docs/PostStatusConflictEncoded.md +0 -20
- data/docs/PostTarget.md +0 -36
- data/docs/PostTargetStatus.md +0 -15
- data/docs/PostsApi.md +0 -960
- data/docs/PostsCreate422Response.md +0 -24
- data/docs/PostsGet404Response.md +0 -18
- data/docs/PostsRepost409Response.md +0 -20
- data/docs/PostsSchedule422Response.md +0 -26
- data/docs/PreparedUpload.md +0 -20
- data/docs/ProbeState.md +0 -15
- data/docs/PublicationAttempt.md +0 -30
- data/docs/RejectionReason.md +0 -15
- data/docs/Role.md +0 -15
- data/docs/ScheduleInPastEncoded.md +0 -18
- data/docs/SchedulePost.md +0 -22
- data/docs/SessionApi.md +0 -74
- data/docs/SignedRequest.md +0 -22
- data/docs/SubscriptionStatus.md +0 -15
- data/docs/Suggestion.md +0 -22
- data/docs/SuggestionAnyOf.md +0 -20
- data/docs/SuggestionAnyOf1.md +0 -20
- data/docs/SuggestionRequest.md +0 -20
- data/docs/SystemApi.md +0 -129
- data/docs/TargetConfirmation.md +0 -20
- data/docs/TargetConfirmationAnyOf.md +0 -20
- data/docs/TargetConfirmationAnyOf1.md +0 -18
- data/docs/TargetMetrics.md +0 -32
- data/docs/TargetOptions.md +0 -48
- data/docs/TargetStatusConflictEncoded.md +0 -20
- data/docs/TextOverride.md +0 -20
- data/docs/TextUnit.md +0 -15
- data/docs/TikTokAccount.md +0 -20
- data/docs/TikTokAccountPosting.md +0 -22
- data/docs/TikTokAccountPostingAnyOf.md +0 -20
- data/docs/TikTokAccountPostingAnyOf1.md +0 -20
- data/docs/TikTokBlock.md +0 -15
- data/docs/TikTokCreator.md +0 -32
- data/docs/TikTokOptions.md +0 -34
- data/docs/TikTokPrivacyLevel.md +0 -15
- data/docs/TiktokApi.md +0 -79
- data/docs/TooManyInvitationsEncoded.md +0 -18
- data/docs/TopPost.md +0 -30
- data/docs/TranslationLanguage.md +0 -15
- data/docs/UnauthenticatedEncoded.md +0 -18
- data/docs/UnconfirmedReason.md +0 -15
- data/docs/UnknownChannelsEncoded.md +0 -20
- data/docs/UnknownMediaEncoded.md +0 -20
- data/docs/UnreadNotices.md +0 -18
- data/docs/UnsupportedMediaTypeEncoded.md +0 -20
- data/docs/UploadIncompleteEncoded.md +0 -18
- data/docs/UploadPart.md +0 -22
- data/docs/UploadRejectedEncoded.md +0 -20
- data/docs/UploadTarget.md +0 -26
- data/docs/UploadTargetAnyOf.md +0 -22
- data/docs/UploadTargetAnyOf1.md +0 -24
- data/docs/Usage.md +0 -24
- data/docs/WorkspaceMember.md +0 -26
- data/docs/WorkspaceNotFoundEncoded.md +0 -18
- data/docs/YouTubeOptions.md +0 -32
- data/docs/YouTubePrivacy.md +0 -15
- data/peal.gemspec +0 -41
- 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
|
-
|
data/docs/AssistantStatus.md
DELETED
|
@@ -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
|
-
|
data/docs/AssistantTone.md
DELETED
|
@@ -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
|
-
|
data/docs/AttemptResult.md
DELETED
data/docs/Authorization.md
DELETED
|
@@ -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<PlanOffer>**](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'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
|
-
|
data/docs/BillingSubscription.md
DELETED
|
@@ -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
|
-
|
data/docs/ChannelMetrics.md
DELETED
|
@@ -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
|
-
|
data/docs/ChannelOptions.md
DELETED
|
@@ -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
|
-
|
data/docs/ChannelStatus.md
DELETED
|
@@ -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
|
-
|
data/docs/ChannelStatusAnyOf.md
DELETED
|
@@ -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
|
-
|
data/docs/ChannelStatusAnyOf1.md
DELETED
|
@@ -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
|
-
|