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,24 +0,0 @@
1
- # Peal::ContentViolationAnyOf4
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **channel_id** | **String** | | |
9
- | **platform** | [**Platform**](Platform.md) | | |
10
- | **field** | **String** | | |
11
-
12
- ## Example
13
-
14
- ```ruby
15
- require 'peal'
16
-
17
- instance = Peal::ContentViolationAnyOf4.new(
18
- _tag: null,
19
- channel_id: null,
20
- platform: null,
21
- field: null
22
- )
23
- ```
24
-
@@ -1,28 +0,0 @@
1
- # Peal::ContentViolationAnyOf5
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **channel_id** | **String** | | |
9
- | **platform** | [**Platform**](Platform.md) | | |
10
- | **field** | **String** | | |
11
- | **length** | **Integer** | | |
12
- | **maximum** | **Integer** | | |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'peal'
18
-
19
- instance = Peal::ContentViolationAnyOf5.new(
20
- _tag: null,
21
- channel_id: null,
22
- platform: null,
23
- field: null,
24
- length: null,
25
- maximum: null
26
- )
27
- ```
28
-
@@ -1,24 +0,0 @@
1
- # Peal::ContentViolationAnyOf6
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **channel_id** | **String** | | |
9
- | **platform** | [**Platform**](Platform.md) | | |
10
- | **field** | **String** | | |
11
-
12
- ## Example
13
-
14
- ```ruby
15
- require 'peal'
16
-
17
- instance = Peal::ContentViolationAnyOf6.new(
18
- _tag: null,
19
- channel_id: null,
20
- platform: null,
21
- field: null
22
- )
23
- ```
24
-
@@ -1,22 +0,0 @@
1
- # Peal::ContentViolationAnyOf7
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **channel_id** | **String** | | |
9
- | **platform** | [**Platform**](Platform.md) | | |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'peal'
15
-
16
- instance = Peal::ContentViolationAnyOf7.new(
17
- _tag: null,
18
- channel_id: null,
19
- platform: null
20
- )
21
- ```
22
-
@@ -1,28 +0,0 @@
1
- # Peal::ContentViolationAnyOf8
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **channel_id** | **String** | | |
9
- | **platform** | [**Platform**](Platform.md) | | |
10
- | **length** | **Integer** | | |
11
- | **maximum** | **Integer** | | |
12
- | **unit** | [**TextUnit**](TextUnit.md) | | |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'peal'
18
-
19
- instance = Peal::ContentViolationAnyOf8.new(
20
- _tag: null,
21
- channel_id: null,
22
- platform: null,
23
- length: null,
24
- maximum: null,
25
- unit: null
26
- )
27
- ```
28
-
@@ -1,24 +0,0 @@
1
- # Peal::ContentViolationAnyOf9
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **channel_id** | **String** | | |
9
- | **platform** | [**Platform**](Platform.md) | | |
10
- | **characters** | **Array<String>** | | |
11
-
12
- ## Example
13
-
14
- ```ruby
15
- require 'peal'
16
-
17
- instance = Peal::ContentViolationAnyOf9.new(
18
- _tag: null,
19
- channel_id: null,
20
- platform: null,
21
- characters: null
22
- )
23
- ```
24
-
@@ -1,20 +0,0 @@
1
- # Peal::CreatedApiKey
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **api_key** | [**ApiKey**](ApiKey.md) | | |
8
- | **key** | **String** | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'peal'
14
-
15
- instance = Peal::CreatedApiKey.new(
16
- api_key: null,
17
- key: null
18
- )
19
- ```
20
-
@@ -1,18 +0,0 @@
1
- # Peal::DatabaseUnavailableEncoded
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::DatabaseUnavailableEncoded.new(
15
- _tag: null
16
- )
17
- ```
18
-
data/docs/DraftPage.md DELETED
@@ -1,20 +0,0 @@
1
- # Peal::DraftPage
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **items** | [**Array<Post>**](Post.md) | | |
8
- | **next_cursor** | **String** | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'peal'
14
-
15
- instance = Peal::DraftPage.new(
16
- items: null,
17
- next_cursor: null
18
- )
19
- ```
20
-
@@ -1,18 +0,0 @@
1
- # Peal::EffectHttpApiErrorBadRequestEncoded
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::EffectHttpApiErrorBadRequestEncoded.new(
15
- _tag: null
16
- )
17
- ```
18
-
@@ -1,26 +0,0 @@
1
- # Peal::EngagementDay
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **date** | **String** | | |
8
- | **likes** | **Integer** | | |
9
- | **quotes** | **Integer** | | |
10
- | **replies** | **Integer** | | |
11
- | **reposts** | **Integer** | | |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'peal'
17
-
18
- instance = Peal::EngagementDay.new(
19
- date: null,
20
- likes: null,
21
- quotes: null,
22
- replies: null,
23
- reposts: null
24
- )
25
- ```
26
-
@@ -1,15 +0,0 @@
1
- # Peal::FailureReason
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
-
8
- ## Example
9
-
10
- ```ruby
11
- require 'peal'
12
-
13
- instance = Peal::FailureReason.new()
14
- ```
15
-
@@ -1,18 +0,0 @@
1
- # Peal::ForbiddenEncoded
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::ForbiddenEncoded.new(
15
- _tag: null
16
- )
17
- ```
18
-
@@ -1,18 +0,0 @@
1
- # Peal::InvalidDateRangeEncoded
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::InvalidDateRangeEncoded.new(
15
- _tag: null
16
- )
17
- ```
18
-
@@ -1,18 +0,0 @@
1
- # Peal::InvalidTimeRangeEncoded
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::InvalidTimeRangeEncoded.new(
15
- _tag: null
16
- )
17
- ```
18
-
@@ -1,20 +0,0 @@
1
- # Peal::InvalidTimeZoneEncoded
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_tag** | **String** | | |
8
- | **time_zone** | **String** | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'peal'
14
-
15
- instance = Peal::InvalidTimeZoneEncoded.new(
16
- _tag: null,
17
- time_zone: null
18
- )
19
- ```
20
-
data/docs/Invitation.md DELETED
@@ -1,28 +0,0 @@
1
- # Peal::Invitation
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **created_at** | **String** | | |
8
- | **email** | **String** | | |
9
- | **expires_at** | **String** | | |
10
- | **id** | **String** | | |
11
- | **inviter_id** | **String** | | |
12
- | **role** | **String** | | |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'peal'
18
-
19
- instance = Peal::Invitation.new(
20
- created_at: null,
21
- email: null,
22
- expires_at: null,
23
- id: null,
24
- inviter_id: null,
25
- role: null
26
- )
27
- ```
28
-
@@ -1,18 +0,0 @@
1
- # Peal::InvitationNotFoundEncoded
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::InvitationNotFoundEncoded.new(
15
- _tag: null
16
- )
17
- ```
18
-
@@ -1,220 +0,0 @@
1
- # Peal::InvitationsApi
2
-
3
- All URIs are relative to *https://app.peal.social*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**invitations_create**](InvitationsApi.md#invitations_create) | **POST** /api/workspaces/{workspaceId}/invitations | Invite someone |
8
- | [**invitations_list**](InvitationsApi.md#invitations_list) | **GET** /api/workspaces/{workspaceId}/invitations | List invitations |
9
- | [**invitations_revoke**](InvitationsApi.md#invitations_revoke) | **DELETE** /api/workspaces/{workspaceId}/invitations/{invitationId} | Revoke an invitation |
10
-
11
-
12
- ## invitations_create
13
-
14
- > <Invitation> invitations_create(workspace_id, new_invitation)
15
-
16
- Invite someone
17
-
18
- Invites someone to the workspace with a role: Peal emails them a link that works for 7 days, in their language when they have an account, in the inviter's otherwise. A pending invitation to the same address is revoked, and its link stops working. Only owners invite owners. On a server that bills, the members and the other pending invitations must leave room in the workspace's plan (PlanLimitReached). Needs invitation:create, and a member in person: not an API key, nor staff impersonating one.
19
-
20
- ### Examples
21
-
22
- ```ruby
23
- require 'time'
24
- require 'peal'
25
- # setup authorization
26
- Peal.configure do |config|
27
- # Configure Bearer authorization: bearer
28
- config.access_token = 'YOUR_BEARER_TOKEN'
29
- end
30
-
31
- api_instance = Peal::InvitationsApi.new
32
- workspace_id = 'workspace_id_example' # String |
33
- new_invitation = Peal::NewInvitation.new({email: 'email_example', role: Peal::Role::OWNER}) # NewInvitation |
34
-
35
- begin
36
- # Invite someone
37
- result = api_instance.invitations_create(workspace_id, new_invitation)
38
- p result
39
- rescue Peal::ApiError => e
40
- puts "Error when calling InvitationsApi->invitations_create: #{e}"
41
- end
42
- ```
43
-
44
- #### Using the invitations_create_with_http_info variant
45
-
46
- This returns an Array which contains the response data, status code and headers.
47
-
48
- > <Array(<Invitation>, Integer, Hash)> invitations_create_with_http_info(workspace_id, new_invitation)
49
-
50
- ```ruby
51
- begin
52
- # Invite someone
53
- data, status_code, headers = api_instance.invitations_create_with_http_info(workspace_id, new_invitation)
54
- p status_code # => 2xx
55
- p headers # => { ... }
56
- p data # => <Invitation>
57
- rescue Peal::ApiError => e
58
- puts "Error when calling InvitationsApi->invitations_create_with_http_info: #{e}"
59
- end
60
- ```
61
-
62
- ### Parameters
63
-
64
- | Name | Type | Description | Notes |
65
- | ---- | ---- | ----------- | ----- |
66
- | **workspace_id** | **String** | | |
67
- | **new_invitation** | [**NewInvitation**](NewInvitation.md) | | |
68
-
69
- ### Return type
70
-
71
- [**Invitation**](Invitation.md)
72
-
73
- ### Authorization
74
-
75
- [bearer](../README.md#bearer)
76
-
77
- ### HTTP request headers
78
-
79
- - **Content-Type**: application/json
80
- - **Accept**: application/json
81
-
82
-
83
- ## invitations_list
84
-
85
- > <Array<Invitation>> invitations_list(workspace_id)
86
-
87
- List invitations
88
-
89
- Lists the workspace's pending invitations, oldest first, expired ones included. Needs invitation:create, as an invitation's id opens its link, and a member rather than an API key; invitations to the owner role are listed to owners only.
90
-
91
- ### Examples
92
-
93
- ```ruby
94
- require 'time'
95
- require 'peal'
96
- # setup authorization
97
- Peal.configure do |config|
98
- # Configure Bearer authorization: bearer
99
- config.access_token = 'YOUR_BEARER_TOKEN'
100
- end
101
-
102
- api_instance = Peal::InvitationsApi.new
103
- workspace_id = 'workspace_id_example' # String |
104
-
105
- begin
106
- # List invitations
107
- result = api_instance.invitations_list(workspace_id)
108
- p result
109
- rescue Peal::ApiError => e
110
- puts "Error when calling InvitationsApi->invitations_list: #{e}"
111
- end
112
- ```
113
-
114
- #### Using the invitations_list_with_http_info variant
115
-
116
- This returns an Array which contains the response data, status code and headers.
117
-
118
- > <Array(<Array<Invitation>>, Integer, Hash)> invitations_list_with_http_info(workspace_id)
119
-
120
- ```ruby
121
- begin
122
- # List invitations
123
- data, status_code, headers = api_instance.invitations_list_with_http_info(workspace_id)
124
- p status_code # => 2xx
125
- p headers # => { ... }
126
- p data # => <Array<Invitation>>
127
- rescue Peal::ApiError => e
128
- puts "Error when calling InvitationsApi->invitations_list_with_http_info: #{e}"
129
- end
130
- ```
131
-
132
- ### Parameters
133
-
134
- | Name | Type | Description | Notes |
135
- | ---- | ---- | ----------- | ----- |
136
- | **workspace_id** | **String** | | |
137
-
138
- ### Return type
139
-
140
- [**Array&lt;Invitation&gt;**](Invitation.md)
141
-
142
- ### Authorization
143
-
144
- [bearer](../README.md#bearer)
145
-
146
- ### HTTP request headers
147
-
148
- - **Content-Type**: Not defined
149
- - **Accept**: application/json
150
-
151
-
152
- ## invitations_revoke
153
-
154
- > invitations_revoke(workspace_id, invitation_id)
155
-
156
- Revoke an invitation
157
-
158
- Revokes a pending invitation of the workspace: its link stops working at once. Needs invitation:cancel, and a member in person: not an API key, nor staff impersonating one.
159
-
160
- ### Examples
161
-
162
- ```ruby
163
- require 'time'
164
- require 'peal'
165
- # setup authorization
166
- Peal.configure do |config|
167
- # Configure Bearer authorization: bearer
168
- config.access_token = 'YOUR_BEARER_TOKEN'
169
- end
170
-
171
- api_instance = Peal::InvitationsApi.new
172
- workspace_id = 'workspace_id_example' # String |
173
- invitation_id = 'invitation_id_example' # String |
174
-
175
- begin
176
- # Revoke an invitation
177
- api_instance.invitations_revoke(workspace_id, invitation_id)
178
- rescue Peal::ApiError => e
179
- puts "Error when calling InvitationsApi->invitations_revoke: #{e}"
180
- end
181
- ```
182
-
183
- #### Using the invitations_revoke_with_http_info variant
184
-
185
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
186
-
187
- > <Array(nil, Integer, Hash)> invitations_revoke_with_http_info(workspace_id, invitation_id)
188
-
189
- ```ruby
190
- begin
191
- # Revoke an invitation
192
- data, status_code, headers = api_instance.invitations_revoke_with_http_info(workspace_id, invitation_id)
193
- p status_code # => 2xx
194
- p headers # => { ... }
195
- p data # => nil
196
- rescue Peal::ApiError => e
197
- puts "Error when calling InvitationsApi->invitations_revoke_with_http_info: #{e}"
198
- end
199
- ```
200
-
201
- ### Parameters
202
-
203
- | Name | Type | Description | Notes |
204
- | ---- | ---- | ----------- | ----- |
205
- | **workspace_id** | **String** | | |
206
- | **invitation_id** | **String** | | |
207
-
208
- ### Return type
209
-
210
- nil (empty response body)
211
-
212
- ### Authorization
213
-
214
- [bearer](../README.md#bearer)
215
-
216
- ### HTTP request headers
217
-
218
- - **Content-Type**: Not defined
219
- - **Accept**: application/json
220
-
@@ -1,18 +0,0 @@
1
- # Peal::InvitationsCreate409Response
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::InvitationsCreate409Response.new(
15
- _tag: null
16
- )
17
- ```
18
-
@@ -1,18 +0,0 @@
1
- # Peal::InvitationsRevoke404Response
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::InvitationsRevoke404Response.new(
15
- _tag: null
16
- )
17
- ```
18
-
@@ -1,18 +0,0 @@
1
- # Peal::MarkNoticesRead
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **ids** | **Array&lt;String&gt;** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'peal'
13
-
14
- instance = Peal::MarkNoticesRead.new(
15
- ids: null
16
- )
17
- ```
18
-