peal 0.1.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 +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +136 -0
- data/LICENSE +202 -0
- data/README.md +353 -0
- data/Rakefile +10 -0
- data/docs/AlreadyMemberEncoded.md +18 -0
- data/docs/AltTextTooLongEncoded.md +20 -0
- data/docs/AnalyticsApi.md +155 -0
- data/docs/AnalyticsSummary.md +30 -0
- data/docs/ApiKey.md +28 -0
- data/docs/ApiKeyNotFoundEncoded.md +18 -0
- data/docs/ApiKeysApi.md +220 -0
- data/docs/ApiKeysRevoke404Response.md +18 -0
- data/docs/AssistantAction.md +24 -0
- data/docs/AssistantActionAnyOf.md +20 -0
- data/docs/AssistantActionAnyOf1.md +20 -0
- data/docs/AssistantActionAnyOf2.md +20 -0
- data/docs/AssistantActionAnyOf3.md +18 -0
- data/docs/AssistantApi.md +149 -0
- data/docs/AssistantFailedEncoded.md +20 -0
- data/docs/AssistantInputRejectedEncoded.md +22 -0
- data/docs/AssistantQuotaExceededEncoded.md +22 -0
- data/docs/AssistantStatus.md +26 -0
- data/docs/AssistantTone.md +15 -0
- data/docs/AssistantUnavailableEncoded.md +18 -0
- data/docs/AttemptResult.md +15 -0
- data/docs/Authorization.md +18 -0
- data/docs/Billing.md +28 -0
- data/docs/BillingApi.md +77 -0
- data/docs/BillingSubscription.md +24 -0
- data/docs/Channel.md +30 -0
- data/docs/ChannelCannotPostEncoded.md +20 -0
- data/docs/ChannelMetrics.md +30 -0
- data/docs/ChannelNotFoundEncoded.md +18 -0
- data/docs/ChannelOptions.md +20 -0
- data/docs/ChannelStatus.md +20 -0
- data/docs/ChannelStatusAnyOf.md +18 -0
- data/docs/ChannelStatusAnyOf1.md +18 -0
- data/docs/ChannelStatusAnyOf2.md +20 -0
- data/docs/ChannelsApi.md +512 -0
- data/docs/ChannelsCompleteConnect404Response.md +18 -0
- data/docs/ChoosableAccount.md +26 -0
- data/docs/ChooseAccounts.md +20 -0
- data/docs/ConnectCallback.md +24 -0
- data/docs/ConnectChannel.md +20 -0
- data/docs/ConnectFailedEncoded.md +20 -0
- data/docs/ConnectFailureReason.md +15 -0
- data/docs/ConnectOutcome.md +26 -0
- data/docs/ConnectOutcomeAnyOf.md +20 -0
- data/docs/ConnectOutcomeAnyOf1.md +24 -0
- data/docs/ConnectablePlatforms.md +18 -0
- data/docs/ContentViolation.md +54 -0
- data/docs/ContentViolationAnyOf.md +18 -0
- data/docs/ContentViolationAnyOf1.md +20 -0
- data/docs/ContentViolationAnyOf10.md +26 -0
- data/docs/ContentViolationAnyOf11.md +22 -0
- data/docs/ContentViolationAnyOf12.md +26 -0
- data/docs/ContentViolationAnyOf13.md +26 -0
- data/docs/ContentViolationAnyOf14.md +26 -0
- data/docs/ContentViolationAnyOf15.md +26 -0
- data/docs/ContentViolationAnyOf16.md +22 -0
- data/docs/ContentViolationAnyOf17.md +26 -0
- data/docs/ContentViolationAnyOf18.md +28 -0
- data/docs/ContentViolationAnyOf19.md +28 -0
- data/docs/ContentViolationAnyOf2.md +20 -0
- data/docs/ContentViolationAnyOf20.md +28 -0
- data/docs/ContentViolationAnyOf21.md +28 -0
- data/docs/ContentViolationAnyOf22.md +30 -0
- data/docs/ContentViolationAnyOf23.md +32 -0
- data/docs/ContentViolationAnyOf24.md +32 -0
- data/docs/ContentViolationAnyOf24Maximum.md +15 -0
- data/docs/ContentViolationAnyOf25.md +28 -0
- data/docs/ContentViolationAnyOf3.md +24 -0
- data/docs/ContentViolationAnyOf4.md +24 -0
- data/docs/ContentViolationAnyOf5.md +28 -0
- data/docs/ContentViolationAnyOf6.md +24 -0
- data/docs/ContentViolationAnyOf7.md +22 -0
- data/docs/ContentViolationAnyOf8.md +28 -0
- data/docs/ContentViolationAnyOf9.md +24 -0
- data/docs/CreatedApiKey.md +20 -0
- data/docs/DatabaseUnavailableEncoded.md +18 -0
- data/docs/DraftPage.md +20 -0
- data/docs/EffectHttpApiErrorBadRequestEncoded.md +18 -0
- data/docs/EngagementDay.md +26 -0
- data/docs/FailureReason.md +15 -0
- data/docs/ForbiddenEncoded.md +18 -0
- data/docs/InvalidDateRangeEncoded.md +18 -0
- data/docs/InvalidTimeRangeEncoded.md +18 -0
- data/docs/InvalidTimeZoneEncoded.md +20 -0
- data/docs/Invitation.md +28 -0
- data/docs/InvitationNotFoundEncoded.md +18 -0
- data/docs/InvitationsApi.md +220 -0
- data/docs/InvitationsCreate409Response.md +18 -0
- data/docs/InvitationsRevoke404Response.md +18 -0
- data/docs/MarkNoticesRead.md +18 -0
- data/docs/Me.md +22 -0
- data/docs/MeUser.md +28 -0
- data/docs/Media.md +40 -0
- data/docs/MediaApi.md +516 -0
- data/docs/MediaAttachment.md +20 -0
- data/docs/MediaContentType.md +15 -0
- data/docs/MediaCreate422Response.md +28 -0
- data/docs/MediaDescription.md +18 -0
- data/docs/MediaDimensions.md +20 -0
- data/docs/MediaGet404Response.md +18 -0
- data/docs/MediaInUseEncoded.md +20 -0
- data/docs/MediaKind.md +15 -0
- data/docs/MediaNotFoundEncoded.md +18 -0
- data/docs/MediaPage.md +20 -0
- data/docs/MediaStatus.md +22 -0
- data/docs/MediaStatusAnyOf.md +18 -0
- data/docs/MediaStatusAnyOf1.md +20 -0
- data/docs/MediaStatusAnyOf2.md +18 -0
- data/docs/MediaStatusAnyOf3.md +20 -0
- data/docs/MediaStoreUnavailableEncoded.md +18 -0
- data/docs/MediaTooLargeEncoded.md +24 -0
- data/docs/MediaUsage.md +20 -0
- data/docs/MembersApi.md +77 -0
- data/docs/Membership.md +26 -0
- data/docs/MetricTotals.md +28 -0
- data/docs/MetricsSnapshot.md +20 -0
- data/docs/NewApiKey.md +22 -0
- data/docs/NewInvitation.md +20 -0
- data/docs/NewUpload.md +22 -0
- data/docs/NonFiniteNumber.md +15 -0
- data/docs/Notice.md +26 -0
- data/docs/NoticeChannel.md +20 -0
- data/docs/NoticeEvent.md +28 -0
- data/docs/NoticeEventAnyOf.md +24 -0
- data/docs/NoticeEventAnyOf1.md +24 -0
- data/docs/NoticeEventAnyOf2.md +22 -0
- data/docs/NoticeEventAnyOf3.md +20 -0
- data/docs/NoticeEventAnyOf4.md +22 -0
- data/docs/NoticePage.md +20 -0
- data/docs/NoticesApi.md +285 -0
- data/docs/NotificationPreferences.md +20 -0
- data/docs/NotificationPreferencesApi.md +144 -0
- data/docs/NotificationPreferencesChange.md +20 -0
- data/docs/NotificationPreferencesChangeEmail.md +24 -0
- data/docs/NotificationPreferencesEmail.md +24 -0
- data/docs/PaidPlan.md +15 -0
- data/docs/PeriodUsage.md +20 -0
- data/docs/Plan.md +15 -0
- data/docs/PlanAllowances.md +24 -0
- data/docs/PlanLimit.md +15 -0
- data/docs/PlanLimitReachedEncoded.md +22 -0
- data/docs/PlanOffer.md +20 -0
- data/docs/Platform.md +15 -0
- data/docs/PlatformUnreachableEncoded.md +18 -0
- data/docs/Post.md +30 -0
- data/docs/PostAnalytics.md +20 -0
- data/docs/PostContent.md +22 -0
- data/docs/PostContentInvalidEncoded.md +20 -0
- data/docs/PostDraft.md +22 -0
- data/docs/PostMetrics.md +26 -0
- data/docs/PostNotFoundEncoded.md +18 -0
- data/docs/PostOutcome.md +15 -0
- data/docs/PostSchedule.md +20 -0
- data/docs/PostStatus.md +15 -0
- data/docs/PostStatusConflictEncoded.md +20 -0
- data/docs/PostTarget.md +36 -0
- data/docs/PostTargetStatus.md +15 -0
- data/docs/PostsApi.md +960 -0
- data/docs/PostsCreate422Response.md +24 -0
- data/docs/PostsGet404Response.md +18 -0
- data/docs/PostsRepost409Response.md +20 -0
- data/docs/PostsSchedule422Response.md +26 -0
- data/docs/PreparedUpload.md +20 -0
- data/docs/ProbeState.md +15 -0
- data/docs/PublicationAttempt.md +30 -0
- data/docs/RejectionReason.md +15 -0
- data/docs/Role.md +15 -0
- data/docs/ScheduleInPastEncoded.md +18 -0
- data/docs/SchedulePost.md +22 -0
- data/docs/SessionApi.md +74 -0
- data/docs/SignedRequest.md +22 -0
- data/docs/SubscriptionStatus.md +15 -0
- data/docs/Suggestion.md +22 -0
- data/docs/SuggestionAnyOf.md +20 -0
- data/docs/SuggestionAnyOf1.md +20 -0
- data/docs/SuggestionRequest.md +20 -0
- data/docs/SystemApi.md +129 -0
- data/docs/TargetConfirmation.md +20 -0
- data/docs/TargetConfirmationAnyOf.md +20 -0
- data/docs/TargetConfirmationAnyOf1.md +18 -0
- data/docs/TargetMetrics.md +32 -0
- data/docs/TargetOptions.md +48 -0
- data/docs/TargetStatusConflictEncoded.md +20 -0
- data/docs/TextOverride.md +20 -0
- data/docs/TextUnit.md +15 -0
- data/docs/TikTokAccount.md +20 -0
- data/docs/TikTokAccountPosting.md +22 -0
- data/docs/TikTokAccountPostingAnyOf.md +20 -0
- data/docs/TikTokAccountPostingAnyOf1.md +20 -0
- data/docs/TikTokBlock.md +15 -0
- data/docs/TikTokCreator.md +32 -0
- data/docs/TikTokOptions.md +34 -0
- data/docs/TikTokPrivacyLevel.md +15 -0
- data/docs/TiktokApi.md +79 -0
- data/docs/TooManyInvitationsEncoded.md +18 -0
- data/docs/TopPost.md +30 -0
- data/docs/TranslationLanguage.md +15 -0
- data/docs/UnauthenticatedEncoded.md +18 -0
- data/docs/UnconfirmedReason.md +15 -0
- data/docs/UnknownChannelsEncoded.md +20 -0
- data/docs/UnknownMediaEncoded.md +20 -0
- data/docs/UnreadNotices.md +18 -0
- data/docs/UnsupportedMediaTypeEncoded.md +20 -0
- data/docs/UploadIncompleteEncoded.md +18 -0
- data/docs/UploadPart.md +22 -0
- data/docs/UploadRejectedEncoded.md +20 -0
- data/docs/UploadTarget.md +26 -0
- data/docs/UploadTargetAnyOf.md +22 -0
- data/docs/UploadTargetAnyOf1.md +24 -0
- data/docs/Usage.md +24 -0
- data/docs/WorkspaceMember.md +26 -0
- data/docs/WorkspaceNotFoundEncoded.md +18 -0
- data/docs/YouTubeOptions.md +32 -0
- data/docs/YouTubePrivacy.md +15 -0
- data/lib/peal/api/analytics_api.rb +185 -0
- data/lib/peal/api/api_keys_api.rb +228 -0
- data/lib/peal/api/assistant_api.rb +159 -0
- data/lib/peal/api/billing_api.rb +85 -0
- data/lib/peal/api/channels_api.rb +526 -0
- data/lib/peal/api/invitations_api.rb +228 -0
- data/lib/peal/api/media_api.rb +526 -0
- data/lib/peal/api/members_api.rb +85 -0
- data/lib/peal/api/notices_api.rb +272 -0
- data/lib/peal/api/notification_preferences_api.rb +147 -0
- data/lib/peal/api/posts_api.rb +993 -0
- data/lib/peal/api/session_api.rb +79 -0
- data/lib/peal/api/system_api.rb +134 -0
- data/lib/peal/api/tiktok_api.rb +91 -0
- data/lib/peal/api_client.rb +441 -0
- data/lib/peal/api_error.rb +58 -0
- data/lib/peal/api_model_base.rb +88 -0
- data/lib/peal/configuration.rb +392 -0
- data/lib/peal/models/already_member_encoded.rb +201 -0
- data/lib/peal/models/alt_text_too_long_encoded.rb +245 -0
- data/lib/peal/models/analytics_summary.rb +361 -0
- data/lib/peal/models/api_key.rb +293 -0
- data/lib/peal/models/api_key_not_found_encoded.rb +201 -0
- data/lib/peal/models/api_keys_revoke404_response.rb +103 -0
- data/lib/peal/models/assistant_action.rb +105 -0
- data/lib/peal/models/assistant_action_any_of.rb +227 -0
- data/lib/peal/models/assistant_action_any_of1.rb +227 -0
- data/lib/peal/models/assistant_action_any_of2.rb +227 -0
- data/lib/peal/models/assistant_action_any_of3.rb +201 -0
- data/lib/peal/models/assistant_failed_encoded.rb +229 -0
- data/lib/peal/models/assistant_input_rejected_encoded.rb +273 -0
- data/lib/peal/models/assistant_quota_exceeded_encoded.rb +271 -0
- data/lib/peal/models/assistant_status.rb +335 -0
- data/lib/peal/models/assistant_tone.rb +43 -0
- data/lib/peal/models/assistant_unavailable_encoded.rb +201 -0
- data/lib/peal/models/attempt_result.rb +50 -0
- data/lib/peal/models/authorization.rb +177 -0
- data/lib/peal/models/billing.rb +303 -0
- data/lib/peal/models/billing_subscription.rb +263 -0
- data/lib/peal/models/channel.rb +313 -0
- data/lib/peal/models/channel_cannot_post_encoded.rb +229 -0
- data/lib/peal/models/channel_metrics.rb +425 -0
- data/lib/peal/models/channel_not_found_encoded.rb +201 -0
- data/lib/peal/models/channel_options.rb +203 -0
- data/lib/peal/models/channel_status.rb +104 -0
- data/lib/peal/models/channel_status_any_of.rb +201 -0
- data/lib/peal/models/channel_status_any_of1.rb +201 -0
- data/lib/peal/models/channel_status_any_of2.rb +227 -0
- data/lib/peal/models/channels_complete_connect404_response.rb +103 -0
- data/lib/peal/models/choosable_account.rb +253 -0
- data/lib/peal/models/choose_accounts.rb +241 -0
- data/lib/peal/models/connect_callback.rb +279 -0
- data/lib/peal/models/connect_channel.rb +207 -0
- data/lib/peal/models/connect_failed_encoded.rb +227 -0
- data/lib/peal/models/connect_failure_reason.rb +48 -0
- data/lib/peal/models/connect_outcome.rb +103 -0
- data/lib/peal/models/connect_outcome_any_of.rb +227 -0
- data/lib/peal/models/connect_outcome_any_of1.rb +281 -0
- data/lib/peal/models/connectable_platforms.rb +179 -0
- data/lib/peal/models/content_violation.rb +127 -0
- data/lib/peal/models/content_violation_any_of.rb +201 -0
- data/lib/peal/models/content_violation_any_of1.rb +227 -0
- data/lib/peal/models/content_violation_any_of10.rb +341 -0
- data/lib/peal/models/content_violation_any_of11.rb +253 -0
- data/lib/peal/models/content_violation_any_of12.rb +341 -0
- data/lib/peal/models/content_violation_any_of13.rb +341 -0
- data/lib/peal/models/content_violation_any_of14.rb +341 -0
- data/lib/peal/models/content_violation_any_of15.rb +341 -0
- data/lib/peal/models/content_violation_any_of16.rb +253 -0
- data/lib/peal/models/content_violation_any_of17.rb +305 -0
- data/lib/peal/models/content_violation_any_of18.rb +367 -0
- data/lib/peal/models/content_violation_any_of19.rb +367 -0
- data/lib/peal/models/content_violation_any_of2.rb +227 -0
- data/lib/peal/models/content_violation_any_of20.rb +367 -0
- data/lib/peal/models/content_violation_any_of21.rb +367 -0
- data/lib/peal/models/content_violation_any_of22.rb +411 -0
- data/lib/peal/models/content_violation_any_of23.rb +455 -0
- data/lib/peal/models/content_violation_any_of24.rb +419 -0
- data/lib/peal/models/content_violation_any_of24_maximum.rb +103 -0
- data/lib/peal/models/content_violation_any_of25.rb +367 -0
- data/lib/peal/models/content_violation_any_of3.rb +279 -0
- data/lib/peal/models/content_violation_any_of4.rb +279 -0
- data/lib/peal/models/content_violation_any_of5.rb +367 -0
- data/lib/peal/models/content_violation_any_of6.rb +279 -0
- data/lib/peal/models/content_violation_any_of7.rb +253 -0
- data/lib/peal/models/content_violation_any_of8.rb +367 -0
- data/lib/peal/models/content_violation_any_of9.rb +281 -0
- data/lib/peal/models/created_api_key.rb +203 -0
- data/lib/peal/models/database_unavailable_encoded.rb +201 -0
- data/lib/peal/models/draft_page.rb +191 -0
- data/lib/peal/models/effect_http_api_error_bad_request_encoded.rb +201 -0
- data/lib/peal/models/engagement_day.rb +364 -0
- data/lib/peal/models/failure_reason.rb +50 -0
- data/lib/peal/models/forbidden_encoded.rb +201 -0
- data/lib/peal/models/invalid_date_range_encoded.rb +201 -0
- data/lib/peal/models/invalid_time_range_encoded.rb +201 -0
- data/lib/peal/models/invalid_time_zone_encoded.rb +227 -0
- data/lib/peal/models/invitation.rb +307 -0
- data/lib/peal/models/invitation_not_found_encoded.rb +201 -0
- data/lib/peal/models/invitations_create409_response.rb +103 -0
- data/lib/peal/models/invitations_revoke404_response.rb +103 -0
- data/lib/peal/models/mark_notices_read.rb +197 -0
- data/lib/peal/models/me.rb +217 -0
- data/lib/peal/models/me_user.rb +317 -0
- data/lib/peal/models/media.rb +457 -0
- data/lib/peal/models/media_attachment.rb +212 -0
- data/lib/peal/models/media_content_type.rb +44 -0
- data/lib/peal/models/media_create422_response.rb +104 -0
- data/lib/peal/models/media_description.rb +163 -0
- data/lib/peal/models/media_dimensions.rb +239 -0
- data/lib/peal/models/media_get404_response.rb +103 -0
- data/lib/peal/models/media_in_use_encoded.rb +229 -0
- data/lib/peal/models/media_kind.rb +40 -0
- data/lib/peal/models/media_not_found_encoded.rb +201 -0
- data/lib/peal/models/media_page.rb +191 -0
- data/lib/peal/models/media_status.rb +105 -0
- data/lib/peal/models/media_status_any_of.rb +201 -0
- data/lib/peal/models/media_status_any_of1.rb +227 -0
- data/lib/peal/models/media_status_any_of2.rb +201 -0
- data/lib/peal/models/media_status_any_of3.rb +227 -0
- data/lib/peal/models/media_store_unavailable_encoded.rb +201 -0
- data/lib/peal/models/media_too_large_encoded.rb +317 -0
- data/lib/peal/models/media_usage.rb +207 -0
- data/lib/peal/models/membership.rb +295 -0
- data/lib/peal/models/metric_totals.rb +399 -0
- data/lib/peal/models/metrics_snapshot.rb +203 -0
- data/lib/peal/models/new_api_key.rb +277 -0
- data/lib/peal/models/new_invitation.rb +245 -0
- data/lib/peal/models/new_upload.rb +231 -0
- data/lib/peal/models/non_finite_number.rb +41 -0
- data/lib/peal/models/notice.rb +267 -0
- data/lib/peal/models/notice_channel.rb +225 -0
- data/lib/peal/models/notice_event.rb +106 -0
- data/lib/peal/models/notice_event_any_of.rb +251 -0
- data/lib/peal/models/notice_event_any_of1.rb +265 -0
- data/lib/peal/models/notice_event_any_of2.rb +239 -0
- data/lib/peal/models/notice_event_any_of3.rb +227 -0
- data/lib/peal/models/notice_event_any_of4.rb +253 -0
- data/lib/peal/models/notice_page.rb +191 -0
- data/lib/peal/models/notification_preferences.rb +203 -0
- data/lib/peal/models/notification_preferences_change.rb +169 -0
- data/lib/peal/models/notification_preferences_change_email.rb +187 -0
- data/lib/peal/models/notification_preferences_email.rb +255 -0
- data/lib/peal/models/paid_plan.rb +40 -0
- data/lib/peal/models/period_usage.rb +221 -0
- data/lib/peal/models/plan.rb +41 -0
- data/lib/peal/models/plan_allowances.rb +295 -0
- data/lib/peal/models/plan_limit.rb +42 -0
- data/lib/peal/models/plan_limit_reached_encoded.rb +271 -0
- data/lib/peal/models/plan_offer.rb +225 -0
- data/lib/peal/models/platform.rb +48 -0
- data/lib/peal/models/platform_unreachable_encoded.rb +201 -0
- data/lib/peal/models/post.rb +315 -0
- data/lib/peal/models/post_analytics.rb +205 -0
- data/lib/peal/models/post_content.rb +251 -0
- data/lib/peal/models/post_content_invalid_encoded.rb +229 -0
- data/lib/peal/models/post_draft.rb +216 -0
- data/lib/peal/models/post_metrics.rb +355 -0
- data/lib/peal/models/post_not_found_encoded.rb +201 -0
- data/lib/peal/models/post_outcome.rb +43 -0
- data/lib/peal/models/post_schedule.rb +203 -0
- data/lib/peal/models/post_status.rb +43 -0
- data/lib/peal/models/post_status_conflict_encoded.rb +227 -0
- data/lib/peal/models/post_target.rb +364 -0
- data/lib/peal/models/post_target_status.rb +44 -0
- data/lib/peal/models/posts_create422_response.rb +104 -0
- data/lib/peal/models/posts_get404_response.rb +103 -0
- data/lib/peal/models/posts_repost409_response.rb +103 -0
- data/lib/peal/models/posts_schedule422_response.rb +106 -0
- data/lib/peal/models/prepared_upload.rb +203 -0
- data/lib/peal/models/probe_state.rb +44 -0
- data/lib/peal/models/publication_attempt.rb +377 -0
- data/lib/peal/models/rejection_reason.rb +40 -0
- data/lib/peal/models/role.rb +43 -0
- data/lib/peal/models/schedule_in_past_encoded.rb +201 -0
- data/lib/peal/models/schedule_post.rb +240 -0
- data/lib/peal/models/signed_request.rb +255 -0
- data/lib/peal/models/subscription_status.rb +46 -0
- data/lib/peal/models/suggestion.rb +103 -0
- data/lib/peal/models/suggestion_any_of.rb +227 -0
- data/lib/peal/models/suggestion_any_of1.rb +229 -0
- data/lib/peal/models/suggestion_request.rb +212 -0
- data/lib/peal/models/target_confirmation.rb +103 -0
- data/lib/peal/models/target_confirmation_any_of.rb +228 -0
- data/lib/peal/models/target_confirmation_any_of1.rb +201 -0
- data/lib/peal/models/target_metrics.rb +319 -0
- data/lib/peal/models/target_options.rb +104 -0
- data/lib/peal/models/target_status_conflict_encoded.rb +227 -0
- data/lib/peal/models/text_override.rb +221 -0
- data/lib/peal/models/text_unit.rb +44 -0
- data/lib/peal/models/tik_tok_account.rb +203 -0
- data/lib/peal/models/tik_tok_account_posting.rb +103 -0
- data/lib/peal/models/tik_tok_account_posting_any_of.rb +227 -0
- data/lib/peal/models/tik_tok_account_posting_any_of1.rb +227 -0
- data/lib/peal/models/tik_tok_block.rb +41 -0
- data/lib/peal/models/tik_tok_creator.rb +357 -0
- data/lib/peal/models/tik_tok_options.rb +274 -0
- data/lib/peal/models/tik_tok_privacy_level.rb +42 -0
- data/lib/peal/models/too_many_invitations_encoded.rb +201 -0
- data/lib/peal/models/top_post.rb +337 -0
- data/lib/peal/models/translation_language.rb +48 -0
- data/lib/peal/models/unauthenticated_encoded.rb +201 -0
- data/lib/peal/models/unconfirmed_reason.rb +42 -0
- data/lib/peal/models/unknown_channels_encoded.rb +229 -0
- data/lib/peal/models/unknown_media_encoded.rb +229 -0
- data/lib/peal/models/unread_notices.rb +195 -0
- data/lib/peal/models/unsupported_media_type_encoded.rb +227 -0
- data/lib/peal/models/upload_incomplete_encoded.rb +201 -0
- data/lib/peal/models/upload_part.rb +265 -0
- data/lib/peal/models/upload_rejected_encoded.rb +227 -0
- data/lib/peal/models/upload_target.rb +103 -0
- data/lib/peal/models/upload_target_any_of.rb +253 -0
- data/lib/peal/models/upload_target_any_of1.rb +299 -0
- data/lib/peal/models/usage.rb +291 -0
- data/lib/peal/models/workspace_member.rb +281 -0
- data/lib/peal/models/workspace_not_found_encoded.rb +201 -0
- data/lib/peal/models/you_tube_options.rb +324 -0
- data/lib/peal/models/you_tube_privacy.rb +41 -0
- data/lib/peal/version.rb +15 -0
- data/lib/peal.rb +254 -0
- data/peal.gemspec +41 -0
- data/project.json +17 -0
- metadata +549 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Peal API
|
|
3
|
+
|
|
4
|
+
#Schedule posts across social platforms, follow how they did, and manage a Peal workspace's channels, media and members.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
|
7
|
+
Contact: hello@peal.social
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.27.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Peal
|
|
17
|
+
class TikTokCreator < ApiModelBase
|
|
18
|
+
attr_accessor :avatar_url
|
|
19
|
+
|
|
20
|
+
attr_accessor :comment_disabled
|
|
21
|
+
|
|
22
|
+
attr_accessor :duet_disabled
|
|
23
|
+
|
|
24
|
+
attr_accessor :max_video_duration_ms
|
|
25
|
+
|
|
26
|
+
attr_accessor :nickname
|
|
27
|
+
|
|
28
|
+
attr_accessor :privacy_levels
|
|
29
|
+
|
|
30
|
+
attr_accessor :stitch_disabled
|
|
31
|
+
|
|
32
|
+
attr_accessor :username
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'avatar_url' => :'avatarUrl',
|
|
38
|
+
:'comment_disabled' => :'commentDisabled',
|
|
39
|
+
:'duet_disabled' => :'duetDisabled',
|
|
40
|
+
:'max_video_duration_ms' => :'maxVideoDurationMs',
|
|
41
|
+
:'nickname' => :'nickname',
|
|
42
|
+
:'privacy_levels' => :'privacyLevels',
|
|
43
|
+
:'stitch_disabled' => :'stitchDisabled',
|
|
44
|
+
:'username' => :'username'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Returns attribute mapping this model knows about
|
|
49
|
+
def self.acceptable_attribute_map
|
|
50
|
+
attribute_map
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Returns all the JSON keys this model knows about
|
|
54
|
+
def self.acceptable_attributes
|
|
55
|
+
acceptable_attribute_map.values
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Attribute type mapping.
|
|
59
|
+
def self.openapi_types
|
|
60
|
+
{
|
|
61
|
+
:'avatar_url' => :'String',
|
|
62
|
+
:'comment_disabled' => :'Boolean',
|
|
63
|
+
:'duet_disabled' => :'Boolean',
|
|
64
|
+
:'max_video_duration_ms' => :'Integer',
|
|
65
|
+
:'nickname' => :'String',
|
|
66
|
+
:'privacy_levels' => :'Array<TikTokPrivacyLevel>',
|
|
67
|
+
:'stitch_disabled' => :'Boolean',
|
|
68
|
+
:'username' => :'String'
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# List of attributes with nullable: true
|
|
73
|
+
def self.openapi_nullable
|
|
74
|
+
Set.new([
|
|
75
|
+
:'avatar_url',
|
|
76
|
+
:'max_video_duration_ms',
|
|
77
|
+
])
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Returns attribute type mapping
|
|
81
|
+
def self.acceptable_openapi_types
|
|
82
|
+
openapi_types
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Returns the nullable attributes
|
|
86
|
+
def self.acceptable_openapi_nullable
|
|
87
|
+
openapi_nullable
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Initializes the object
|
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
92
|
+
def initialize(attributes = {})
|
|
93
|
+
if (!attributes.is_a?(Hash))
|
|
94
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Peal::TikTokCreator` initialize method"
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
98
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
99
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
100
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
101
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Peal::TikTokCreator`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
102
|
+
end
|
|
103
|
+
h[k.to_sym] = v
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'avatar_url')
|
|
107
|
+
self.avatar_url = attributes[:'avatar_url']
|
|
108
|
+
else
|
|
109
|
+
self.avatar_url = nil
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'comment_disabled')
|
|
113
|
+
self.comment_disabled = attributes[:'comment_disabled']
|
|
114
|
+
else
|
|
115
|
+
self.comment_disabled = nil
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'duet_disabled')
|
|
119
|
+
self.duet_disabled = attributes[:'duet_disabled']
|
|
120
|
+
else
|
|
121
|
+
self.duet_disabled = nil
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'max_video_duration_ms')
|
|
125
|
+
self.max_video_duration_ms = attributes[:'max_video_duration_ms']
|
|
126
|
+
else
|
|
127
|
+
self.max_video_duration_ms = nil
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'nickname')
|
|
131
|
+
self.nickname = attributes[:'nickname']
|
|
132
|
+
else
|
|
133
|
+
self.nickname = nil
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'privacy_levels')
|
|
137
|
+
if (value = attributes[:'privacy_levels']).is_a?(Array)
|
|
138
|
+
self.privacy_levels = value
|
|
139
|
+
end
|
|
140
|
+
else
|
|
141
|
+
self.privacy_levels = nil
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if attributes.key?(:'stitch_disabled')
|
|
145
|
+
self.stitch_disabled = attributes[:'stitch_disabled']
|
|
146
|
+
else
|
|
147
|
+
self.stitch_disabled = nil
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if attributes.key?(:'username')
|
|
151
|
+
self.username = attributes[:'username']
|
|
152
|
+
else
|
|
153
|
+
self.username = nil
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
158
|
+
# @return Array for valid properties with the reasons
|
|
159
|
+
def list_invalid_properties
|
|
160
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
161
|
+
invalid_properties = Array.new
|
|
162
|
+
if @comment_disabled.nil?
|
|
163
|
+
invalid_properties.push('invalid value for "comment_disabled", comment_disabled cannot be nil.')
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if @duet_disabled.nil?
|
|
167
|
+
invalid_properties.push('invalid value for "duet_disabled", duet_disabled cannot be nil.')
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if @max_video_duration_ms > 9007199254740991
|
|
171
|
+
invalid_properties.push('invalid value for "max_video_duration_ms", must be smaller than or equal to 9007199254740991.')
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if @max_video_duration_ms < -9007199254740991
|
|
175
|
+
invalid_properties.push('invalid value for "max_video_duration_ms", must be greater than or equal to -9007199254740991.')
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if @nickname.nil?
|
|
179
|
+
invalid_properties.push('invalid value for "nickname", nickname cannot be nil.')
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if @privacy_levels.nil?
|
|
183
|
+
invalid_properties.push('invalid value for "privacy_levels", privacy_levels cannot be nil.')
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if @stitch_disabled.nil?
|
|
187
|
+
invalid_properties.push('invalid value for "stitch_disabled", stitch_disabled cannot be nil.')
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if @username.nil?
|
|
191
|
+
invalid_properties.push('invalid value for "username", username cannot be nil.')
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
invalid_properties
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Check to see if the all the properties in the model are valid
|
|
198
|
+
# @return true if the model is valid
|
|
199
|
+
def valid?
|
|
200
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
201
|
+
return false if @comment_disabled.nil?
|
|
202
|
+
return false if @duet_disabled.nil?
|
|
203
|
+
return false if @max_video_duration_ms > 9007199254740991
|
|
204
|
+
return false if @max_video_duration_ms < -9007199254740991
|
|
205
|
+
return false if @nickname.nil?
|
|
206
|
+
return false if @privacy_levels.nil?
|
|
207
|
+
return false if @stitch_disabled.nil?
|
|
208
|
+
return false if @username.nil?
|
|
209
|
+
true
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Custom attribute writer method with validation
|
|
213
|
+
# @param [Object] comment_disabled Value to be assigned
|
|
214
|
+
def comment_disabled=(comment_disabled)
|
|
215
|
+
if comment_disabled.nil?
|
|
216
|
+
fail ArgumentError, 'comment_disabled cannot be nil'
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
@comment_disabled = comment_disabled
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Custom attribute writer method with validation
|
|
223
|
+
# @param [Object] duet_disabled Value to be assigned
|
|
224
|
+
def duet_disabled=(duet_disabled)
|
|
225
|
+
if duet_disabled.nil?
|
|
226
|
+
fail ArgumentError, 'duet_disabled cannot be nil'
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
@duet_disabled = duet_disabled
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Custom attribute writer method with validation
|
|
233
|
+
# @param [Object] max_video_duration_ms Value to be assigned
|
|
234
|
+
def max_video_duration_ms=(max_video_duration_ms)
|
|
235
|
+
if !max_video_duration_ms.nil? && max_video_duration_ms > 9007199254740991
|
|
236
|
+
fail ArgumentError, 'invalid value for "max_video_duration_ms", must be smaller than or equal to 9007199254740991.'
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if !max_video_duration_ms.nil? && max_video_duration_ms < -9007199254740991
|
|
240
|
+
fail ArgumentError, 'invalid value for "max_video_duration_ms", must be greater than or equal to -9007199254740991.'
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
@max_video_duration_ms = max_video_duration_ms
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Custom attribute writer method with validation
|
|
247
|
+
# @param [Object] nickname Value to be assigned
|
|
248
|
+
def nickname=(nickname)
|
|
249
|
+
if nickname.nil?
|
|
250
|
+
fail ArgumentError, 'nickname cannot be nil'
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
@nickname = nickname
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Custom attribute writer method with validation
|
|
257
|
+
# @param [Object] privacy_levels Value to be assigned
|
|
258
|
+
def privacy_levels=(privacy_levels)
|
|
259
|
+
if privacy_levels.nil?
|
|
260
|
+
fail ArgumentError, 'privacy_levels cannot be nil'
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
@privacy_levels = privacy_levels
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Custom attribute writer method with validation
|
|
267
|
+
# @param [Object] stitch_disabled Value to be assigned
|
|
268
|
+
def stitch_disabled=(stitch_disabled)
|
|
269
|
+
if stitch_disabled.nil?
|
|
270
|
+
fail ArgumentError, 'stitch_disabled cannot be nil'
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
@stitch_disabled = stitch_disabled
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# Custom attribute writer method with validation
|
|
277
|
+
# @param [Object] username Value to be assigned
|
|
278
|
+
def username=(username)
|
|
279
|
+
if username.nil?
|
|
280
|
+
fail ArgumentError, 'username cannot be nil'
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
@username = username
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Checks equality by comparing each attribute.
|
|
287
|
+
# @param [Object] Object to be compared
|
|
288
|
+
def ==(o)
|
|
289
|
+
return true if self.equal?(o)
|
|
290
|
+
self.class == o.class &&
|
|
291
|
+
avatar_url == o.avatar_url &&
|
|
292
|
+
comment_disabled == o.comment_disabled &&
|
|
293
|
+
duet_disabled == o.duet_disabled &&
|
|
294
|
+
max_video_duration_ms == o.max_video_duration_ms &&
|
|
295
|
+
nickname == o.nickname &&
|
|
296
|
+
privacy_levels == o.privacy_levels &&
|
|
297
|
+
stitch_disabled == o.stitch_disabled &&
|
|
298
|
+
username == o.username
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# @see the `==` method
|
|
302
|
+
# @param [Object] Object to be compared
|
|
303
|
+
def eql?(o)
|
|
304
|
+
self == o
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Calculates hash code according to all attributes.
|
|
308
|
+
# @return [Integer] Hash code
|
|
309
|
+
def hash
|
|
310
|
+
[avatar_url, comment_disabled, duet_disabled, max_video_duration_ms, nickname, privacy_levels, stitch_disabled, username].hash
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# Builds the object from hash
|
|
314
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
315
|
+
# @return [Object] Returns the model itself
|
|
316
|
+
def self.build_from_hash(attributes)
|
|
317
|
+
return nil unless attributes.is_a?(Hash)
|
|
318
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
319
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
320
|
+
map = acceptable_attribute_map
|
|
321
|
+
transformed_hash = {}
|
|
322
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
323
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
324
|
+
transformed_hash["#{key}"] = nil
|
|
325
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
326
|
+
# check to ensure the input is an array given that the attribute
|
|
327
|
+
# is documented as an array but the input is not
|
|
328
|
+
if attributes[map[key]].is_a?(Array)
|
|
329
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
330
|
+
end
|
|
331
|
+
elsif !attributes[map[key]].nil?
|
|
332
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
333
|
+
end
|
|
334
|
+
end
|
|
335
|
+
new(transformed_hash)
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# Returns the object in the form of hash
|
|
339
|
+
# @return [Hash] Returns the object in the form of hash
|
|
340
|
+
def to_hash
|
|
341
|
+
hash = {}
|
|
342
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
343
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
344
|
+
value = self.send(attr)
|
|
345
|
+
if value.nil?
|
|
346
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
347
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
hash[param] = _to_hash(value)
|
|
351
|
+
end
|
|
352
|
+
hash
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
end
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Peal API
|
|
3
|
+
|
|
4
|
+
#Schedule posts across social platforms, follow how they did, and manage a Peal workspace's channels, media and members.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
|
7
|
+
Contact: hello@peal.social
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.27.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Peal
|
|
17
|
+
# How a post goes out on a TikTok account. Scheduling needs `privacyLevel`.
|
|
18
|
+
class TikTokOptions < ApiModelBase
|
|
19
|
+
attr_accessor :ai_generated
|
|
20
|
+
|
|
21
|
+
attr_accessor :brand_content
|
|
22
|
+
|
|
23
|
+
attr_accessor :brand_organic
|
|
24
|
+
|
|
25
|
+
attr_accessor :commercial_content
|
|
26
|
+
|
|
27
|
+
attr_accessor :disable_comment
|
|
28
|
+
|
|
29
|
+
attr_accessor :disable_duet
|
|
30
|
+
|
|
31
|
+
attr_accessor :disable_stitch
|
|
32
|
+
|
|
33
|
+
attr_accessor :platform
|
|
34
|
+
|
|
35
|
+
attr_accessor :privacy_level
|
|
36
|
+
|
|
37
|
+
class EnumAttributeValidator
|
|
38
|
+
attr_reader :datatype
|
|
39
|
+
attr_reader :allowable_values
|
|
40
|
+
|
|
41
|
+
def initialize(datatype, allowable_values)
|
|
42
|
+
@allowable_values = allowable_values.map do |value|
|
|
43
|
+
case datatype.to_s
|
|
44
|
+
when /Integer/i
|
|
45
|
+
value.to_i
|
|
46
|
+
when /Float/i
|
|
47
|
+
value.to_f
|
|
48
|
+
else
|
|
49
|
+
value
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def valid?(value)
|
|
55
|
+
!value || allowable_values.include?(value)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
60
|
+
def self.attribute_map
|
|
61
|
+
{
|
|
62
|
+
:'ai_generated' => :'aiGenerated',
|
|
63
|
+
:'brand_content' => :'brandContent',
|
|
64
|
+
:'brand_organic' => :'brandOrganic',
|
|
65
|
+
:'commercial_content' => :'commercialContent',
|
|
66
|
+
:'disable_comment' => :'disableComment',
|
|
67
|
+
:'disable_duet' => :'disableDuet',
|
|
68
|
+
:'disable_stitch' => :'disableStitch',
|
|
69
|
+
:'platform' => :'platform',
|
|
70
|
+
:'privacy_level' => :'privacyLevel'
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Returns attribute mapping this model knows about
|
|
75
|
+
def self.acceptable_attribute_map
|
|
76
|
+
attribute_map
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Returns all the JSON keys this model knows about
|
|
80
|
+
def self.acceptable_attributes
|
|
81
|
+
acceptable_attribute_map.values
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Attribute type mapping.
|
|
85
|
+
def self.openapi_types
|
|
86
|
+
{
|
|
87
|
+
:'ai_generated' => :'Boolean',
|
|
88
|
+
:'brand_content' => :'Boolean',
|
|
89
|
+
:'brand_organic' => :'Boolean',
|
|
90
|
+
:'commercial_content' => :'Boolean',
|
|
91
|
+
:'disable_comment' => :'Boolean',
|
|
92
|
+
:'disable_duet' => :'Boolean',
|
|
93
|
+
:'disable_stitch' => :'Boolean',
|
|
94
|
+
:'platform' => :'String',
|
|
95
|
+
:'privacy_level' => :'TikTokPrivacyLevel'
|
|
96
|
+
}
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# List of attributes with nullable: true
|
|
100
|
+
def self.openapi_nullable
|
|
101
|
+
Set.new([
|
|
102
|
+
])
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Returns attribute type mapping
|
|
106
|
+
def self.acceptable_openapi_types
|
|
107
|
+
openapi_types
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Returns the nullable attributes
|
|
111
|
+
def self.acceptable_openapi_nullable
|
|
112
|
+
openapi_nullable
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Initializes the object
|
|
116
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
117
|
+
def initialize(attributes = {})
|
|
118
|
+
if (!attributes.is_a?(Hash))
|
|
119
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Peal::TikTokOptions` initialize method"
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
123
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
124
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
125
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
126
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Peal::TikTokOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
127
|
+
end
|
|
128
|
+
h[k.to_sym] = v
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'ai_generated')
|
|
132
|
+
self.ai_generated = attributes[:'ai_generated']
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'brand_content')
|
|
136
|
+
self.brand_content = attributes[:'brand_content']
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'brand_organic')
|
|
140
|
+
self.brand_organic = attributes[:'brand_organic']
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if attributes.key?(:'commercial_content')
|
|
144
|
+
self.commercial_content = attributes[:'commercial_content']
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.key?(:'disable_comment')
|
|
148
|
+
self.disable_comment = attributes[:'disable_comment']
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.key?(:'disable_duet')
|
|
152
|
+
self.disable_duet = attributes[:'disable_duet']
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'disable_stitch')
|
|
156
|
+
self.disable_stitch = attributes[:'disable_stitch']
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
if attributes.key?(:'platform')
|
|
160
|
+
self.platform = attributes[:'platform']
|
|
161
|
+
else
|
|
162
|
+
self.platform = nil
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'privacy_level')
|
|
166
|
+
self.privacy_level = attributes[:'privacy_level']
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
171
|
+
# @return Array for valid properties with the reasons
|
|
172
|
+
def list_invalid_properties
|
|
173
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
174
|
+
invalid_properties = Array.new
|
|
175
|
+
if @platform.nil?
|
|
176
|
+
invalid_properties.push('invalid value for "platform", platform cannot be nil.')
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
invalid_properties
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Check to see if the all the properties in the model are valid
|
|
183
|
+
# @return true if the model is valid
|
|
184
|
+
def valid?
|
|
185
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
186
|
+
return false if @platform.nil?
|
|
187
|
+
platform_validator = EnumAttributeValidator.new('String', ["tiktok"])
|
|
188
|
+
return false unless platform_validator.valid?(@platform)
|
|
189
|
+
true
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
193
|
+
# @param [Object] platform Object to be assigned
|
|
194
|
+
def platform=(platform)
|
|
195
|
+
validator = EnumAttributeValidator.new('String', ["tiktok"])
|
|
196
|
+
unless validator.valid?(platform)
|
|
197
|
+
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
198
|
+
end
|
|
199
|
+
@platform = platform
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Checks equality by comparing each attribute.
|
|
203
|
+
# @param [Object] Object to be compared
|
|
204
|
+
def ==(o)
|
|
205
|
+
return true if self.equal?(o)
|
|
206
|
+
self.class == o.class &&
|
|
207
|
+
ai_generated == o.ai_generated &&
|
|
208
|
+
brand_content == o.brand_content &&
|
|
209
|
+
brand_organic == o.brand_organic &&
|
|
210
|
+
commercial_content == o.commercial_content &&
|
|
211
|
+
disable_comment == o.disable_comment &&
|
|
212
|
+
disable_duet == o.disable_duet &&
|
|
213
|
+
disable_stitch == o.disable_stitch &&
|
|
214
|
+
platform == o.platform &&
|
|
215
|
+
privacy_level == o.privacy_level
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# @see the `==` method
|
|
219
|
+
# @param [Object] Object to be compared
|
|
220
|
+
def eql?(o)
|
|
221
|
+
self == o
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Calculates hash code according to all attributes.
|
|
225
|
+
# @return [Integer] Hash code
|
|
226
|
+
def hash
|
|
227
|
+
[ai_generated, brand_content, brand_organic, commercial_content, disable_comment, disable_duet, disable_stitch, platform, privacy_level].hash
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Builds the object from hash
|
|
231
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
232
|
+
# @return [Object] Returns the model itself
|
|
233
|
+
def self.build_from_hash(attributes)
|
|
234
|
+
return nil unless attributes.is_a?(Hash)
|
|
235
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
236
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
237
|
+
map = acceptable_attribute_map
|
|
238
|
+
transformed_hash = {}
|
|
239
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
240
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
241
|
+
transformed_hash["#{key}"] = nil
|
|
242
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
243
|
+
# check to ensure the input is an array given that the attribute
|
|
244
|
+
# is documented as an array but the input is not
|
|
245
|
+
if attributes[map[key]].is_a?(Array)
|
|
246
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
247
|
+
end
|
|
248
|
+
elsif !attributes[map[key]].nil?
|
|
249
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
new(transformed_hash)
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Returns the object in the form of hash
|
|
256
|
+
# @return [Hash] Returns the object in the form of hash
|
|
257
|
+
def to_hash
|
|
258
|
+
hash = {}
|
|
259
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
260
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
261
|
+
value = self.send(attr)
|
|
262
|
+
if value.nil?
|
|
263
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
264
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
hash[param] = _to_hash(value)
|
|
268
|
+
end
|
|
269
|
+
hash
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Peal API
|
|
3
|
+
|
|
4
|
+
#Schedule posts across social platforms, follow how they did, and manage a Peal workspace's channels, media and members.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
|
7
|
+
Contact: hello@peal.social
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.27.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Peal
|
|
17
|
+
class TikTokPrivacyLevel
|
|
18
|
+
PUBLIC_TO_EVERYONE = "PUBLIC_TO_EVERYONE".freeze
|
|
19
|
+
MUTUAL_FOLLOW_FRIENDS = "MUTUAL_FOLLOW_FRIENDS".freeze
|
|
20
|
+
FOLLOWER_OF_CREATOR = "FOLLOWER_OF_CREATOR".freeze
|
|
21
|
+
SELF_ONLY = "SELF_ONLY".freeze
|
|
22
|
+
|
|
23
|
+
def self.all_vars
|
|
24
|
+
@all_vars ||= [PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY].freeze
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Builds the enum from string
|
|
28
|
+
# @param [String] The enum value in the form of the string
|
|
29
|
+
# @return [String] The enum value
|
|
30
|
+
def self.build_from_hash(value)
|
|
31
|
+
new.build_from_hash(value)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Builds the enum from string
|
|
35
|
+
# @param [String] The enum value in the form of the string
|
|
36
|
+
# @return [String] The enum value
|
|
37
|
+
def build_from_hash(value)
|
|
38
|
+
return value if TikTokPrivacyLevel.all_vars.include?(value)
|
|
39
|
+
raise "Invalid ENUM value #{value} for class #TikTokPrivacyLevel"
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|