spatio-sdk 0.0.2
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/LICENSE +21 -0
- data/README.md +31 -0
- data/Rakefile +10 -0
- data/docs/AcceptOrganizationInvitationRequest.md +18 -0
- data/docs/AccountApi.md +793 -0
- data/docs/AccountChoice.md +22 -0
- data/docs/AccountError.md +20 -0
- data/docs/AccountListResponse.md +22 -0
- data/docs/AccountPlan.md +24 -0
- data/docs/AccountStatus.md +28 -0
- data/docs/AccountTierDetails.md +46 -0
- data/docs/AccountUsage.md +32 -0
- data/docs/ActionDescriptor.md +32 -0
- data/docs/ActionsApi.md +409 -0
- data/docs/AddOrganizationMemberRequest.md +22 -0
- data/docs/AddWorkspaceMemberRequest.md +20 -0
- data/docs/Agent.md +40 -0
- data/docs/AgentConversation.md +28 -0
- data/docs/AgentConversationListResponse.md +20 -0
- data/docs/AgentListResponse.md +24 -0
- data/docs/AgentMessage.md +28 -0
- data/docs/AgentMessageListResponse.md +20 -0
- data/docs/AgentSessionContext.md +24 -0
- data/docs/AgentTaskUsage.md +26 -0
- data/docs/AgentsApi.md +884 -0
- data/docs/AmbiguousAccountError.md +22 -0
- data/docs/ApiError.md +20 -0
- data/docs/App.md +32 -0
- data/docs/AppFileContentResponse.md +20 -0
- data/docs/AppFileListResponse.md +18 -0
- data/docs/AppListResponse.md +20 -0
- data/docs/AppsApi.md +984 -0
- data/docs/AssignContactCategoryRequest.md +18 -0
- data/docs/Attachment.md +26 -0
- data/docs/AttachmentInput.md +24 -0
- data/docs/AttachmentMeta.md +24 -0
- data/docs/Attendee.md +30 -0
- data/docs/AttendeeRole.md +15 -0
- data/docs/AttendeeStatus.md +15 -0
- data/docs/Block.md +36 -0
- data/docs/BlockContent.md +38 -0
- data/docs/BlockListResponse.md +20 -0
- data/docs/BlockType.md +15 -0
- data/docs/BulkArchiveRequest.md +20 -0
- data/docs/BulkArchiveResponse.md +22 -0
- data/docs/BulkArchiveResponseFailedInner.md +20 -0
- data/docs/BulkDeleteEmailsRequest.md +22 -0
- data/docs/BulkDeleteEmailsResponse.md +22 -0
- data/docs/BulkDeleteFilesRequest.md +24 -0
- data/docs/BulkDeleteTasksRequest.md +24 -0
- data/docs/BulkDeleteTasksResponse.md +24 -0
- data/docs/BulkDeleteTasksResponseFailedInner.md +20 -0
- data/docs/BulkFilesResponse.md +24 -0
- data/docs/BulkFilesResponseFailedInner.md +20 -0
- data/docs/BulkMarkReadRequest.md +22 -0
- data/docs/BulkMarkReadResponse.md +20 -0
- data/docs/BulkMarkReadResponseFailedInner.md +20 -0
- data/docs/BulkMoveFilesRequest.md +26 -0
- data/docs/BulkUpdateTasksRequest.md +24 -0
- data/docs/BulkUpdateTasksResponse.md +24 -0
- data/docs/CalendarAccountError.md +24 -0
- data/docs/CalendarApi.md +1031 -0
- data/docs/CalendarCapabilitiesResponse.md +22 -0
- data/docs/CalendarOperationResult.md +24 -0
- data/docs/CalendarProviderInfo.md +26 -0
- data/docs/CalendarProvidersInfo.md +18 -0
- data/docs/CalendarSyncResponse.md +26 -0
- data/docs/CallListResponse.md +20 -0
- data/docs/CallRecording.md +30 -0
- data/docs/CallRecordingListResponse.md +18 -0
- data/docs/CallsApi.md +2096 -0
- data/docs/Cell.md +22 -0
- data/docs/ChangePasswordRequest.md +20 -0
- data/docs/Channel.md +38 -0
- data/docs/ChannelMembershipRequest.md +18 -0
- data/docs/ChannelsApi.md +1170 -0
- data/docs/ChatActionDefinition.md +34 -0
- data/docs/ChatActionsList.md +18 -0
- data/docs/ChatMessage.md +36 -0
- data/docs/ChatUser.md +34 -0
- data/docs/ChunkedFileManifest.md +34 -0
- data/docs/ClientRegistrationRequest.md +36 -0
- data/docs/ClientRegistrationResponse.md +38 -0
- data/docs/Comment.md +32 -0
- data/docs/CommentAuthor.md +24 -0
- data/docs/CommentListResponse.md +20 -0
- data/docs/CommentMutationResponse.md +20 -0
- data/docs/CommentResponse.md +18 -0
- data/docs/CommitChunkedUploadRequest.md +18 -0
- data/docs/CommitChunkedUploadResponse.md +36 -0
- data/docs/ConferenceData.md +28 -0
- data/docs/ConnectedAppItem.md +34 -0
- data/docs/ConnectedAppsListResponse.md +18 -0
- data/docs/ConnectionAccountListResponse.md +22 -0
- data/docs/ConnectionListResponse.md +20 -0
- data/docs/ConnectionsApi.md +748 -0
- data/docs/ConsumeAgentTaskResponse.md +26 -0
- data/docs/Contact.md +46 -0
- data/docs/ContactCategory.md +26 -0
- data/docs/ContactCategoryListResponse.md +18 -0
- data/docs/ContactListResponse.md +22 -0
- data/docs/ContactProvider.md +26 -0
- data/docs/ContactProviderListResponse.md +18 -0
- data/docs/ContactsApi.md +830 -0
- data/docs/Conversation.md +42 -0
- data/docs/ConversationMessage.md +28 -0
- data/docs/ConversationsApi.md +636 -0
- data/docs/CoreAction.md +30 -0
- data/docs/CoreActionListResponse.md +20 -0
- data/docs/CreateAgentConversationRequest.md +22 -0
- data/docs/CreateAgentMessageRequest.md +22 -0
- data/docs/CreateAgentRequest.md +30 -0
- data/docs/CreateAppRequest.md +26 -0
- data/docs/CreateBlockRequest.md +26 -0
- data/docs/CreateCalendarEvent201Response.md +24 -0
- data/docs/CreateCallRequest.md +24 -0
- data/docs/CreateChannelRequest.md +24 -0
- data/docs/CreateChannelResponse.md +20 -0
- data/docs/CreateCommentRequest.md +24 -0
- data/docs/CreateContactCategoryRequest.md +22 -0
- data/docs/CreateContactRequest.md +32 -0
- data/docs/CreateConversationRequest.md +26 -0
- data/docs/CreateDraftRequest.md +38 -0
- data/docs/CreateEmailFolderRequest.md +20 -0
- data/docs/CreateEventRequest.md +26 -0
- data/docs/CreateFolderRequest.md +26 -0
- data/docs/CreateLabelRequest.md +26 -0
- data/docs/CreateLabelResponse.md +20 -0
- data/docs/CreateMeetingRoomRequest.md +20 -0
- data/docs/CreateNote400Response.md +49 -0
- data/docs/CreateNoteRequest.md +32 -0
- data/docs/CreateOrganizationInvitationRequest.md +22 -0
- data/docs/CreateOrganizationRequest.md +28 -0
- data/docs/CreatePATRequest.md +26 -0
- data/docs/CreatePATResponse.md +20 -0
- data/docs/CreatePresentationRequest.md +26 -0
- data/docs/CreateRecordRequest.md +26 -0
- data/docs/CreateRecordTypeRequest.md +28 -0
- data/docs/CreateRoutineRequest.md +26 -0
- data/docs/CreateRowRequest.md +20 -0
- data/docs/CreateSheetRequest.md +30 -0
- data/docs/CreateSlideElementRequest.md +32 -0
- data/docs/CreateSlideRequest.md +34 -0
- data/docs/CreateTaskRequest.md +44 -0
- data/docs/CreateWorkspaceInvitationRequest.md +20 -0
- data/docs/CreateWorkspaceRequest.md +24 -0
- data/docs/DMAttachRequest.md +34 -0
- data/docs/DMForwardRequest.md +22 -0
- data/docs/DMMarkReadRequest.md +20 -0
- data/docs/DMMessageEnvelope.md +18 -0
- data/docs/DMMuteRequest.md +22 -0
- data/docs/DMMuteResponse.md +18 -0
- data/docs/DMPinnedList.md +18 -0
- data/docs/DMReactionRequest.md +20 -0
- data/docs/DMReactionResponse.md +18 -0
- data/docs/DMSearchResults.md +18 -0
- data/docs/DMSetDraftRequest.md +20 -0
- data/docs/DMThreadReplyRequest.md +20 -0
- data/docs/DirectMessagesApi.md +2246 -0
- data/docs/DisconnectConnectionRequest.md +20 -0
- data/docs/DiscoveryDocument.md +52 -0
- data/docs/DownloadFileResponse.md +20 -0
- data/docs/Draft.md +40 -0
- data/docs/DraftResponse.md +20 -0
- data/docs/Email.md +56 -0
- data/docs/EmailFolder.md +26 -0
- data/docs/EmailFolderListResponse.md +18 -0
- data/docs/EnableShareRequest.md +20 -0
- data/docs/ExecuteActionRequest.md +22 -0
- data/docs/ExecuteActionResponse.md +22 -0
- data/docs/ExecuteChatActionRequest.md +20 -0
- data/docs/ExecuteChatActionResponse.md +20 -0
- data/docs/ExportPDFR2Response.md +24 -0
- data/docs/ExportPDFRequest.md +20 -0
- data/docs/ExportPDFRequestRasterizedSlidesInner.md +20 -0
- data/docs/ExtractTextResult.md +24 -0
- data/docs/FederatedSearch200Response.md +28 -0
- data/docs/FederatedSearch200ResponseItemsInner.md +38 -0
- data/docs/FederatedSearch200ResponsePerPlatformValue.md +20 -0
- data/docs/FederatedSearchRequest.md +32 -0
- data/docs/FileListEnvelope.md +20 -0
- data/docs/FilesAndFoldersResponse.md +28 -0
- data/docs/FilesApi.md +2471 -0
- data/docs/Folder.md +32 -0
- data/docs/FolderListEnvelope.md +20 -0
- data/docs/FoldersApi.md +415 -0
- data/docs/GetChatUserResponse.md +20 -0
- data/docs/GetDomainLogo200Response.md +20 -0
- data/docs/GetEmailResponse.md +20 -0
- data/docs/GetThreadResponse.md +20 -0
- data/docs/InboxApi.md +424 -0
- data/docs/InboxCounts.md +22 -0
- data/docs/InboxItem.md +38 -0
- data/docs/InboxListResponse.md +22 -0
- data/docs/InitChunkedUploadRequest.md +30 -0
- data/docs/InitChunkedUploadResponse.md +26 -0
- data/docs/InstallConnectionRequest.md +22 -0
- data/docs/IntrospectionResponse.md +30 -0
- data/docs/IssueCollaborationToken200Response.md +26 -0
- data/docs/IssueCollaborationTokenRequest.md +18 -0
- data/docs/JWK.md +28 -0
- data/docs/JWKS.md +18 -0
- data/docs/KeyBinding.md +38 -0
- data/docs/KeyBindingListResponse.md +18 -0
- data/docs/KeybindingsApi.md +406 -0
- data/docs/Label.md +28 -0
- data/docs/LabelColor.md +20 -0
- data/docs/LinkRepoTaskRequest.md +18 -0
- data/docs/ListCalendarEvents200Response.md +24 -0
- data/docs/ListChannelsResponse.md +24 -0
- data/docs/ListChatUsersResponse.md +24 -0
- data/docs/ListDraftsResponse.md +24 -0
- data/docs/ListEmailsResponse.md +24 -0
- data/docs/ListEventsData.md +24 -0
- data/docs/ListLabelsResponse.md +20 -0
- data/docs/ListMessagesResponse.md +24 -0
- data/docs/LogosApi.md +211 -0
- data/docs/MailApi.md +3803 -0
- data/docs/MeetingRoom.md +24 -0
- data/docs/MiscApi.md +1213 -0
- data/docs/ModelsApi.md +483 -0
- data/docs/MoveBlockRequest.md +20 -0
- data/docs/MoveEmailsRequest.md +18 -0
- data/docs/MoveFileRequest.md +18 -0
- data/docs/MoveFileResponse.md +18 -0
- data/docs/NativeDMApi.md +1448 -0
- data/docs/NavigationApi.md +72 -0
- data/docs/Note.md +44 -0
- data/docs/NoteListEnvelope.md +20 -0
- data/docs/NotesApi.md +2413 -0
- data/docs/NotificationsApi.md +140 -0
- data/docs/OAuthApi.md +676 -0
- data/docs/OAuthError.md +20 -0
- data/docs/Organization.md +38 -0
- data/docs/OrganizationDetailLegacy.md +38 -0
- data/docs/OrganizationInvitation.md +38 -0
- data/docs/OrganizationInvitationListResponse.md +18 -0
- data/docs/OrganizationListResponse.md +18 -0
- data/docs/OrganizationMember.md +28 -0
- data/docs/OrganizationMemberInvitedBy.md +49 -0
- data/docs/OrganizationMemberListResponse.md +20 -0
- data/docs/OrganizationWorkspacesInner.md +22 -0
- data/docs/OrganizationsApi.md +1956 -0
- data/docs/PATListResponse.md +20 -0
- data/docs/PATScopesResponse.md +18 -0
- data/docs/PasswordRequiredError.md +24 -0
- data/docs/PersonalAccessToken.md +34 -0
- data/docs/PersonalAccessTokensApi.md +629 -0
- data/docs/PlatformsApi.md +1032 -0
- data/docs/PreconfiguredAgent.md +30 -0
- data/docs/Presentation.md +38 -0
- data/docs/PresentationListEnvelope.md +20 -0
- data/docs/ProposeRecommendationRequest.md +28 -0
- data/docs/PublicInvitationPayload.md +40 -0
- data/docs/QuotaExceededError.md +20 -0
- data/docs/RealtimeApi.md +79 -0
- data/docs/Recommendation.md +38 -0
- data/docs/RecommendationListResponse.md +18 -0
- data/docs/RecommendationsApi.md +354 -0
- data/docs/Record.md +32 -0
- data/docs/RecordListResponse.md +22 -0
- data/docs/RecordType.md +34 -0
- data/docs/RecordTypeListResponse.md +18 -0
- data/docs/RecordsApi.md +560 -0
- data/docs/RefreshConnectionRequest.md +20 -0
- data/docs/Reminder.md +20 -0
- data/docs/ReminderMethod.md +15 -0
- data/docs/ReplyEmailRequest.md +30 -0
- data/docs/RepoApi.md +2071 -0
- data/docs/ResourcesApi.md +220 -0
- data/docs/RevokeOtherSessionsResponse.md +18 -0
- data/docs/RichTextObject.md +24 -0
- data/docs/Routine.md +34 -0
- data/docs/RoutineListResponse.md +18 -0
- data/docs/RoutineRun.md +30 -0
- data/docs/RoutineRunCompleteRequest.md +20 -0
- data/docs/RoutineRunListResponse.md +18 -0
- data/docs/RoutineRunProgressRequest.md +20 -0
- data/docs/RoutinesApi.md +696 -0
- data/docs/Row.md +20 -0
- data/docs/RowList.md +20 -0
- data/docs/SaveMessageRequest.md +22 -0
- data/docs/SearchApi.md +77 -0
- data/docs/SearchEmailsResponse.md +24 -0
- data/docs/SearchFilesResponse.md +24 -0
- data/docs/SendChatMessageRequest.md +26 -0
- data/docs/SendChatMessageResponse.md +28 -0
- data/docs/SendEmailRequest.md +36 -0
- data/docs/SendEmailResponse.md +26 -0
- data/docs/Session.md +38 -0
- data/docs/SessionListResponse.md +18 -0
- data/docs/SettingsApi.md +745 -0
- data/docs/ShareSettings.md +26 -0
- data/docs/Sheet.md +48 -0
- data/docs/SheetListEnvelope.md +20 -0
- data/docs/SheetsApi.md +785 -0
- data/docs/SignInMethods.md +22 -0
- data/docs/SignInMethodsProvidersInner.md +24 -0
- data/docs/Slide.md +44 -0
- data/docs/SlideElement.md +40 -0
- data/docs/SlideElementList.md +20 -0
- data/docs/SlideList.md +20 -0
- data/docs/SlidesApi.md +1697 -0
- data/docs/SpatioCall.md +38 -0
- data/docs/SpatioConnection.md +38 -0
- data/docs/SpatioEvent.md +86 -0
- data/docs/SpatioFile.md +40 -0
- data/docs/SpatioThread.md +24 -0
- data/docs/SuccessFlag.md +18 -0
- data/docs/Task.md +58 -0
- data/docs/TaskComment.md +28 -0
- data/docs/TaskCommentAuthor.md +24 -0
- data/docs/TaskCommentList.md +20 -0
- data/docs/TaskCommentMutationResponse.md +20 -0
- data/docs/TaskCommentRequest.md +18 -0
- data/docs/TaskListEnvelope.md +20 -0
- data/docs/TaskProvidersInfo.md +20 -0
- data/docs/TaskProvidersInfoPlatform.md +20 -0
- data/docs/TasksApi.md +1783 -0
- data/docs/TerminalApi.md +345 -0
- data/docs/TextAnnotations.md +28 -0
- data/docs/TokenResponse.md +28 -0
- data/docs/UpdateAccountRequest.md +20 -0
- data/docs/UpdateAgentRequest.md +30 -0
- data/docs/UpdateAppRequest.md +24 -0
- data/docs/UpdateBlockRequest.md +22 -0
- data/docs/UpdateCellRequest.md +18 -0
- data/docs/UpdateCommentRequest.md +20 -0
- data/docs/UpdateContactCategoryRequest.md +22 -0
- data/docs/UpdateContactRequest.md +32 -0
- data/docs/UpdateConversationRequest.md +26 -0
- data/docs/UpdateDraftRequest.md +32 -0
- data/docs/UpdateEmailFolderRequest.md +18 -0
- data/docs/UpdateEmailRequest.md +26 -0
- data/docs/UpdateEmailResponse.md +20 -0
- data/docs/UpdateEventRequest.md +22 -0
- data/docs/UpdateFileRequest.md +22 -0
- data/docs/UpdateKeyBindingRequest.md +20 -0
- data/docs/UpdateMessageMetadataRequest.md +20 -0
- data/docs/UpdateNoteRequest.md +30 -0
- data/docs/UpdateOrganizationMemberRequest.md +18 -0
- data/docs/UpdateOrganizationRequest.md +22 -0
- data/docs/UpdatePATRequest.md +20 -0
- data/docs/UpdateParticipantStateRequest.md +22 -0
- data/docs/UpdatePresentationRequest.md +22 -0
- data/docs/UpdateRecommendationStatusRequest.md +18 -0
- data/docs/UpdateRecordRequest.md +22 -0
- data/docs/UpdateRecordTypeRequest.md +26 -0
- data/docs/UpdateRoutineRequest.md +26 -0
- data/docs/UpdateRowRequest.md +18 -0
- data/docs/UpdateSheetRequest.md +30 -0
- data/docs/UpdateSlideElementRequest.md +32 -0
- data/docs/UpdateSlideRequest.md +32 -0
- data/docs/UpdateTaskRequest.md +34 -0
- data/docs/UpdateWorkspaceMemberRequest.md +18 -0
- data/docs/UpdateWorkspaceRequest.md +24 -0
- data/docs/UploadChunkedBlockResponse.md +24 -0
- data/docs/UploadFileBase64Request.md +32 -0
- data/docs/UserInfoResponse.md +34 -0
- data/docs/ValidateKeyBindingRequest.md +22 -0
- data/docs/ValidateKeyBindingResponse.md +20 -0
- data/docs/Workspace.md +44 -0
- data/docs/WorkspaceEnvelope.md +18 -0
- data/docs/WorkspaceInvitation.md +34 -0
- data/docs/WorkspaceInvitationListResponse.md +18 -0
- data/docs/WorkspaceListResponse.md +20 -0
- data/docs/WorkspaceMember.md +30 -0
- data/docs/WorkspaceMemberListResponse.md +20 -0
- data/docs/WorkspaceOrganization.md +22 -0
- data/docs/WorkspacesApi.md +900 -0
- data/docs/WriteAppFileRequest.md +20 -0
- data/git_push.sh +57 -0
- data/lib/spatio-sdk/api/account_api.rb +703 -0
- data/lib/spatio-sdk/api/actions_api.rb +381 -0
- data/lib/spatio-sdk/api/agents_api.rb +824 -0
- data/lib/spatio-sdk/api/apps_api.rb +974 -0
- data/lib/spatio-sdk/api/calendar_api.rb +1015 -0
- data/lib/spatio-sdk/api/calls_api.rb +2016 -0
- data/lib/spatio-sdk/api/channels_api.rb +1165 -0
- data/lib/spatio-sdk/api/connections_api.rb +695 -0
- data/lib/spatio-sdk/api/contacts_api.rb +801 -0
- data/lib/spatio-sdk/api/conversations_api.rb +612 -0
- data/lib/spatio-sdk/api/direct_messages_api.rb +2167 -0
- data/lib/spatio-sdk/api/files_api.rb +2518 -0
- data/lib/spatio-sdk/api/folders_api.rb +409 -0
- data/lib/spatio-sdk/api/inbox_api.rb +403 -0
- data/lib/spatio-sdk/api/keybindings_api.rb +386 -0
- data/lib/spatio-sdk/api/logos_api.rb +210 -0
- data/lib/spatio-sdk/api/mail_api.rb +3780 -0
- data/lib/spatio-sdk/api/misc_api.rb +1100 -0
- data/lib/spatio-sdk/api/models_api.rb +456 -0
- data/lib/spatio-sdk/api/native_dm_api.rb +1396 -0
- data/lib/spatio-sdk/api/navigation_api.rb +77 -0
- data/lib/spatio-sdk/api/notes_api.rb +2418 -0
- data/lib/spatio-sdk/api/notifications_api.rb +143 -0
- data/lib/spatio-sdk/api/o_auth_api.rb +714 -0
- data/lib/spatio-sdk/api/organizations_api.rb +1913 -0
- data/lib/spatio-sdk/api/personal_access_tokens_api.rb +625 -0
- data/lib/spatio-sdk/api/platforms_api.rb +981 -0
- data/lib/spatio-sdk/api/realtime_api.rb +86 -0
- data/lib/spatio-sdk/api/recommendations_api.rb +346 -0
- data/lib/spatio-sdk/api/records_api.rb +550 -0
- data/lib/spatio-sdk/api/repo_api.rb +2167 -0
- data/lib/spatio-sdk/api/resources_api.rb +240 -0
- data/lib/spatio-sdk/api/routines_api.rb +670 -0
- data/lib/spatio-sdk/api/search_api.rb +90 -0
- data/lib/spatio-sdk/api/settings_api.rb +706 -0
- data/lib/spatio-sdk/api/sheets_api.rb +817 -0
- data/lib/spatio-sdk/api/slides_api.rb +1692 -0
- data/lib/spatio-sdk/api/tasks_api.rb +1787 -0
- data/lib/spatio-sdk/api/terminal_api.rb +337 -0
- data/lib/spatio-sdk/api/workspaces_api.rb +876 -0
- data/lib/spatio-sdk/api_client.rb +441 -0
- data/lib/spatio-sdk/api_error.rb +58 -0
- data/lib/spatio-sdk/api_model_base.rb +88 -0
- data/lib/spatio-sdk/configuration.rb +393 -0
- data/lib/spatio-sdk/models/accept_organization_invitation_request.rb +164 -0
- data/lib/spatio-sdk/models/account_choice.rb +200 -0
- data/lib/spatio-sdk/models/account_error.rb +191 -0
- data/lib/spatio-sdk/models/account_list_response.rb +171 -0
- data/lib/spatio-sdk/models/account_plan.rb +228 -0
- data/lib/spatio-sdk/models/account_status.rb +273 -0
- data/lib/spatio-sdk/models/account_tier_details.rb +291 -0
- data/lib/spatio-sdk/models/account_usage.rb +229 -0
- data/lib/spatio-sdk/models/action_descriptor.rb +230 -0
- data/lib/spatio-sdk/models/add_organization_member_request.rb +216 -0
- data/lib/spatio-sdk/models/add_workspace_member_request.rb +214 -0
- data/lib/spatio-sdk/models/agent.rb +268 -0
- data/lib/spatio-sdk/models/agent_conversation.rb +212 -0
- data/lib/spatio-sdk/models/agent_conversation_list_response.rb +175 -0
- data/lib/spatio-sdk/models/agent_list_response.rb +179 -0
- data/lib/spatio-sdk/models/agent_message.rb +228 -0
- data/lib/spatio-sdk/models/agent_message_list_response.rb +175 -0
- data/lib/spatio-sdk/models/agent_session_context.rb +185 -0
- data/lib/spatio-sdk/models/agent_task_usage.rb +204 -0
- data/lib/spatio-sdk/models/ambiguous_account_error.rb +194 -0
- data/lib/spatio-sdk/models/api_error.rb +176 -0
- data/lib/spatio-sdk/models/app.rb +228 -0
- data/lib/spatio-sdk/models/app_file_content_response.rb +173 -0
- data/lib/spatio-sdk/models/app_file_list_response.rb +152 -0
- data/lib/spatio-sdk/models/app_list_response.rb +161 -0
- data/lib/spatio-sdk/models/assign_contact_category_request.rb +164 -0
- data/lib/spatio-sdk/models/attachment.rb +217 -0
- data/lib/spatio-sdk/models/attachment_input.rb +227 -0
- data/lib/spatio-sdk/models/attachment_meta.rb +243 -0
- data/lib/spatio-sdk/models/attendee.rb +292 -0
- data/lib/spatio-sdk/models/attendee_role.rb +41 -0
- data/lib/spatio-sdk/models/attendee_status.rb +42 -0
- data/lib/spatio-sdk/models/block.rb +390 -0
- data/lib/spatio-sdk/models/block_content.rb +252 -0
- data/lib/spatio-sdk/models/block_list_response.rb +193 -0
- data/lib/spatio-sdk/models/block_type.rb +61 -0
- data/lib/spatio-sdk/models/bulk_archive_request.rb +175 -0
- data/lib/spatio-sdk/models/bulk_archive_response.rb +222 -0
- data/lib/spatio-sdk/models/bulk_archive_response_failed_inner.rb +190 -0
- data/lib/spatio-sdk/models/bulk_delete_emails_request.rb +185 -0
- data/lib/spatio-sdk/models/bulk_delete_emails_response.rb +221 -0
- data/lib/spatio-sdk/models/bulk_delete_files_request.rb +180 -0
- data/lib/spatio-sdk/models/bulk_delete_tasks_request.rb +181 -0
- data/lib/spatio-sdk/models/bulk_delete_tasks_response.rb +247 -0
- data/lib/spatio-sdk/models/bulk_delete_tasks_response_failed_inner.rb +190 -0
- data/lib/spatio-sdk/models/bulk_files_response.rb +247 -0
- data/lib/spatio-sdk/models/bulk_files_response_failed_inner.rb +190 -0
- data/lib/spatio-sdk/models/bulk_mark_read_request.rb +187 -0
- data/lib/spatio-sdk/models/bulk_mark_read_response.rb +194 -0
- data/lib/spatio-sdk/models/bulk_mark_read_response_failed_inner.rb +190 -0
- data/lib/spatio-sdk/models/bulk_move_files_request.rb +191 -0
- data/lib/spatio-sdk/models/bulk_update_tasks_request.rb +213 -0
- data/lib/spatio-sdk/models/bulk_update_tasks_response.rb +246 -0
- data/lib/spatio-sdk/models/calendar_account_error.rb +242 -0
- data/lib/spatio-sdk/models/calendar_capabilities_response.rb +219 -0
- data/lib/spatio-sdk/models/calendar_operation_result.rb +198 -0
- data/lib/spatio-sdk/models/calendar_provider_info.rb +220 -0
- data/lib/spatio-sdk/models/calendar_providers_info.rb +167 -0
- data/lib/spatio-sdk/models/calendar_sync_response.rb +222 -0
- data/lib/spatio-sdk/models/call_list_response.rb +161 -0
- data/lib/spatio-sdk/models/call_recording.rb +222 -0
- data/lib/spatio-sdk/models/call_recording_list_response.rb +152 -0
- data/lib/spatio-sdk/models/cell.rb +204 -0
- data/lib/spatio-sdk/models/change_password_request.rb +174 -0
- data/lib/spatio-sdk/models/channel.rb +325 -0
- data/lib/spatio-sdk/models/channel_membership_request.rb +148 -0
- data/lib/spatio-sdk/models/chat_action_definition.rb +278 -0
- data/lib/spatio-sdk/models/chat_actions_list.rb +166 -0
- data/lib/spatio-sdk/models/chat_message.rb +317 -0
- data/lib/spatio-sdk/models/chat_user.rb +287 -0
- data/lib/spatio-sdk/models/chunked_file_manifest.rb +324 -0
- data/lib/spatio-sdk/models/client_registration_request.rb +314 -0
- data/lib/spatio-sdk/models/client_registration_response.rb +329 -0
- data/lib/spatio-sdk/models/comment.rb +315 -0
- data/lib/spatio-sdk/models/comment_author.rb +226 -0
- data/lib/spatio-sdk/models/comment_list_response.rb +192 -0
- data/lib/spatio-sdk/models/comment_mutation_response.rb +191 -0
- data/lib/spatio-sdk/models/comment_response.rb +165 -0
- data/lib/spatio-sdk/models/commit_chunked_upload_request.rb +164 -0
- data/lib/spatio-sdk/models/commit_chunked_upload_response.rb +313 -0
- data/lib/spatio-sdk/models/conference_data.rb +229 -0
- data/lib/spatio-sdk/models/connected_app_item.rb +308 -0
- data/lib/spatio-sdk/models/connected_apps_list_response.rb +166 -0
- data/lib/spatio-sdk/models/connection_account_list_response.rb +172 -0
- data/lib/spatio-sdk/models/connection_list_response.rb +177 -0
- data/lib/spatio-sdk/models/consume_agent_task_response.rb +204 -0
- data/lib/spatio-sdk/models/contact.rb +294 -0
- data/lib/spatio-sdk/models/contact_category.rb +217 -0
- data/lib/spatio-sdk/models/contact_category_list_response.rb +152 -0
- data/lib/spatio-sdk/models/contact_list_response.rb +184 -0
- data/lib/spatio-sdk/models/contact_provider.rb +217 -0
- data/lib/spatio-sdk/models/contact_provider_list_response.rb +166 -0
- data/lib/spatio-sdk/models/conversation.rb +314 -0
- data/lib/spatio-sdk/models/conversation_message.rb +246 -0
- data/lib/spatio-sdk/models/core_action.rb +221 -0
- data/lib/spatio-sdk/models/core_action_list_response.rb +161 -0
- data/lib/spatio-sdk/models/create_agent_conversation_request.rb +167 -0
- data/lib/spatio-sdk/models/create_agent_message_request.rb +201 -0
- data/lib/spatio-sdk/models/create_agent_request.rb +222 -0
- data/lib/spatio-sdk/models/create_app_request.rb +200 -0
- data/lib/spatio-sdk/models/create_block_request.rb +260 -0
- data/lib/spatio-sdk/models/create_calendar_event201_response.rb +202 -0
- data/lib/spatio-sdk/models/create_call_request.rb +176 -0
- data/lib/spatio-sdk/models/create_channel_request.rb +191 -0
- data/lib/spatio-sdk/models/create_channel_response.rb +190 -0
- data/lib/spatio-sdk/models/create_comment_request.rb +177 -0
- data/lib/spatio-sdk/models/create_contact_category_request.rb +182 -0
- data/lib/spatio-sdk/models/create_contact_request.rb +212 -0
- data/lib/spatio-sdk/models/create_conversation_request.rb +185 -0
- data/lib/spatio-sdk/models/create_draft_request.rb +248 -0
- data/lib/spatio-sdk/models/create_email_folder_request.rb +173 -0
- data/lib/spatio-sdk/models/create_event_request.rb +254 -0
- data/lib/spatio-sdk/models/create_folder_request.rb +201 -0
- data/lib/spatio-sdk/models/create_label_request.rb +200 -0
- data/lib/spatio-sdk/models/create_label_response.rb +190 -0
- data/lib/spatio-sdk/models/create_meeting_room_request.rb +173 -0
- data/lib/spatio-sdk/models/create_note400_response.rb +104 -0
- data/lib/spatio-sdk/models/create_note_request.rb +232 -0
- data/lib/spatio-sdk/models/create_organization_invitation_request.rb +224 -0
- data/lib/spatio-sdk/models/create_organization_request.rb +211 -0
- data/lib/spatio-sdk/models/create_pat_request.rb +202 -0
- data/lib/spatio-sdk/models/create_pat_response.rb +174 -0
- data/lib/spatio-sdk/models/create_presentation_request.rb +200 -0
- data/lib/spatio-sdk/models/create_record_request.rb +204 -0
- data/lib/spatio-sdk/models/create_record_type_request.rb +211 -0
- data/lib/spatio-sdk/models/create_routine_request.rb +204 -0
- data/lib/spatio-sdk/models/create_row_request.rb +176 -0
- data/lib/spatio-sdk/models/create_sheet_request.rb +222 -0
- data/lib/spatio-sdk/models/create_slide_element_request.rb +229 -0
- data/lib/spatio-sdk/models/create_slide_request.rb +220 -0
- data/lib/spatio-sdk/models/create_task_request.rb +322 -0
- data/lib/spatio-sdk/models/create_workspace_invitation_request.rb +214 -0
- data/lib/spatio-sdk/models/create_workspace_request.rb +191 -0
- data/lib/spatio-sdk/models/disconnect_connection_request.rb +173 -0
- data/lib/spatio-sdk/models/discovery_document.rb +404 -0
- data/lib/spatio-sdk/models/dm_attach_request.rb +254 -0
- data/lib/spatio-sdk/models/dm_forward_request.rb +166 -0
- data/lib/spatio-sdk/models/dm_mark_read_request.rb +173 -0
- data/lib/spatio-sdk/models/dm_message_envelope.rb +165 -0
- data/lib/spatio-sdk/models/dm_mute_request.rb +166 -0
- data/lib/spatio-sdk/models/dm_mute_response.rb +148 -0
- data/lib/spatio-sdk/models/dm_pinned_list.rb +149 -0
- data/lib/spatio-sdk/models/dm_reaction_request.rb +173 -0
- data/lib/spatio-sdk/models/dm_reaction_response.rb +150 -0
- data/lib/spatio-sdk/models/dm_search_results.rb +149 -0
- data/lib/spatio-sdk/models/dm_set_draft_request.rb +173 -0
- data/lib/spatio-sdk/models/dm_thread_reply_request.rb +173 -0
- data/lib/spatio-sdk/models/download_file_response.rb +191 -0
- data/lib/spatio-sdk/models/draft.rb +339 -0
- data/lib/spatio-sdk/models/draft_response.rb +190 -0
- data/lib/spatio-sdk/models/email.rb +488 -0
- data/lib/spatio-sdk/models/email_folder.rb +202 -0
- data/lib/spatio-sdk/models/email_folder_list_response.rb +152 -0
- data/lib/spatio-sdk/models/enable_share_request.rb +157 -0
- data/lib/spatio-sdk/models/execute_action_request.rb +185 -0
- data/lib/spatio-sdk/models/execute_action_response.rb +168 -0
- data/lib/spatio-sdk/models/execute_chat_action_request.rb +175 -0
- data/lib/spatio-sdk/models/execute_chat_action_response.rb +175 -0
- data/lib/spatio-sdk/models/export_pdf_request.rb +162 -0
- data/lib/spatio-sdk/models/export_pdf_request_rasterized_slides_inner.rb +191 -0
- data/lib/spatio-sdk/models/export_pdfr2_response.rb +269 -0
- data/lib/spatio-sdk/models/extract_text_result.rb +212 -0
- data/lib/spatio-sdk/models/federated_search200_response.rb +270 -0
- data/lib/spatio-sdk/models/federated_search200_response_items_inner.rb +237 -0
- data/lib/spatio-sdk/models/federated_search200_response_per_platform_value.rb +156 -0
- data/lib/spatio-sdk/models/federated_search_request.rb +276 -0
- data/lib/spatio-sdk/models/file_list_envelope.rb +181 -0
- data/lib/spatio-sdk/models/files_and_folders_response.rb +235 -0
- data/lib/spatio-sdk/models/folder.rb +297 -0
- data/lib/spatio-sdk/models/folder_list_envelope.rb +181 -0
- data/lib/spatio-sdk/models/get_chat_user_response.rb +190 -0
- data/lib/spatio-sdk/models/get_domain_logo200_response.rb +190 -0
- data/lib/spatio-sdk/models/get_email_response.rb +190 -0
- data/lib/spatio-sdk/models/get_thread_response.rb +190 -0
- data/lib/spatio-sdk/models/inbox_counts.rb +216 -0
- data/lib/spatio-sdk/models/inbox_item.rb +275 -0
- data/lib/spatio-sdk/models/inbox_list_response.rb +218 -0
- data/lib/spatio-sdk/models/init_chunked_upload_request.rb +273 -0
- data/lib/spatio-sdk/models/init_chunked_upload_response.rb +273 -0
- data/lib/spatio-sdk/models/install_connection_request.rb +184 -0
- data/lib/spatio-sdk/models/introspection_response.rb +219 -0
- data/lib/spatio-sdk/models/issue_collaboration_token200_response.rb +254 -0
- data/lib/spatio-sdk/models/issue_collaboration_token_request.rb +148 -0
- data/lib/spatio-sdk/models/jwk.rb +297 -0
- data/lib/spatio-sdk/models/jwks.rb +166 -0
- data/lib/spatio-sdk/models/key_binding.rb +276 -0
- data/lib/spatio-sdk/models/key_binding_list_response.rb +166 -0
- data/lib/spatio-sdk/models/label.rb +244 -0
- data/lib/spatio-sdk/models/label_color.rb +190 -0
- data/lib/spatio-sdk/models/link_repo_task_request.rb +164 -0
- data/lib/spatio-sdk/models/list_calendar_events200_response.rb +202 -0
- data/lib/spatio-sdk/models/list_channels_response.rb +212 -0
- data/lib/spatio-sdk/models/list_chat_users_response.rb +211 -0
- data/lib/spatio-sdk/models/list_drafts_response.rb +227 -0
- data/lib/spatio-sdk/models/list_emails_response.rb +213 -0
- data/lib/spatio-sdk/models/list_events_data.rb +196 -0
- data/lib/spatio-sdk/models/list_labels_response.rb +192 -0
- data/lib/spatio-sdk/models/list_messages_response.rb +211 -0
- data/lib/spatio-sdk/models/meeting_room.rb +191 -0
- data/lib/spatio-sdk/models/move_block_request.rb +175 -0
- data/lib/spatio-sdk/models/move_emails_request.rb +166 -0
- data/lib/spatio-sdk/models/move_file_request.rb +149 -0
- data/lib/spatio-sdk/models/move_file_response.rb +164 -0
- data/lib/spatio-sdk/models/note.rb +380 -0
- data/lib/spatio-sdk/models/note_list_envelope.rb +195 -0
- data/lib/spatio-sdk/models/o_auth_error.rb +197 -0
- data/lib/spatio-sdk/models/organization.rb +346 -0
- data/lib/spatio-sdk/models/organization_detail_legacy.rb +377 -0
- data/lib/spatio-sdk/models/organization_invitation.rb +343 -0
- data/lib/spatio-sdk/models/organization_invitation_list_response.rb +166 -0
- data/lib/spatio-sdk/models/organization_list_response.rb +166 -0
- data/lib/spatio-sdk/models/organization_member.rb +288 -0
- data/lib/spatio-sdk/models/organization_member_invited_by.rb +105 -0
- data/lib/spatio-sdk/models/organization_member_list_response.rb +192 -0
- data/lib/spatio-sdk/models/organization_workspaces_inner.rb +216 -0
- data/lib/spatio-sdk/models/password_required_error.rb +218 -0
- data/lib/spatio-sdk/models/pat_list_response.rb +177 -0
- data/lib/spatio-sdk/models/pat_scopes_response.rb +166 -0
- data/lib/spatio-sdk/models/personal_access_token.rb +241 -0
- data/lib/spatio-sdk/models/preconfigured_agent.rb +236 -0
- data/lib/spatio-sdk/models/presentation.rb +308 -0
- data/lib/spatio-sdk/models/presentation_list_envelope.rb +194 -0
- data/lib/spatio-sdk/models/propose_recommendation_request.rb +211 -0
- data/lib/spatio-sdk/models/public_invitation_payload.rb +365 -0
- data/lib/spatio-sdk/models/quota_exceeded_error.rb +183 -0
- data/lib/spatio-sdk/models/recommendation.rb +300 -0
- data/lib/spatio-sdk/models/recommendation_list_response.rb +166 -0
- data/lib/spatio-sdk/models/record.rb +231 -0
- data/lib/spatio-sdk/models/record_list_response.rb +184 -0
- data/lib/spatio-sdk/models/record_type.rb +256 -0
- data/lib/spatio-sdk/models/record_type_list_response.rb +166 -0
- data/lib/spatio-sdk/models/refresh_connection_request.rb +173 -0
- data/lib/spatio-sdk/models/reminder.rb +213 -0
- data/lib/spatio-sdk/models/reminder_method.rb +42 -0
- data/lib/spatio-sdk/models/reply_email_request.rb +227 -0
- data/lib/spatio-sdk/models/revoke_other_sessions_response.rb +148 -0
- data/lib/spatio-sdk/models/rich_text_object.rb +216 -0
- data/lib/spatio-sdk/models/routine.rb +240 -0
- data/lib/spatio-sdk/models/routine_list_response.rb +166 -0
- data/lib/spatio-sdk/models/routine_run.rb +221 -0
- data/lib/spatio-sdk/models/routine_run_complete_request.rb +158 -0
- data/lib/spatio-sdk/models/routine_run_list_response.rb +166 -0
- data/lib/spatio-sdk/models/routine_run_progress_request.rb +158 -0
- data/lib/spatio-sdk/models/row.rb +194 -0
- data/lib/spatio-sdk/models/row_list.rb +192 -0
- data/lib/spatio-sdk/models/save_message_request.rb +201 -0
- data/lib/spatio-sdk/models/search_emails_response.rb +212 -0
- data/lib/spatio-sdk/models/search_files_response.rb +229 -0
- data/lib/spatio-sdk/models/send_chat_message_request.rb +221 -0
- data/lib/spatio-sdk/models/send_chat_message_response.rb +243 -0
- data/lib/spatio-sdk/models/send_email_request.rb +289 -0
- data/lib/spatio-sdk/models/send_email_response.rb +234 -0
- data/lib/spatio-sdk/models/session.rb +254 -0
- data/lib/spatio-sdk/models/session_list_response.rb +166 -0
- data/lib/spatio-sdk/models/share_settings.rb +221 -0
- data/lib/spatio-sdk/models/sheet.rb +446 -0
- data/lib/spatio-sdk/models/sheet_list_envelope.rb +195 -0
- data/lib/spatio-sdk/models/sign_in_methods.rb +201 -0
- data/lib/spatio-sdk/models/sign_in_methods_providers_inner.rb +193 -0
- data/lib/spatio-sdk/models/slide.rb +370 -0
- data/lib/spatio-sdk/models/slide_element.rb +455 -0
- data/lib/spatio-sdk/models/slide_element_list.rb +192 -0
- data/lib/spatio-sdk/models/slide_list.rb +192 -0
- data/lib/spatio-sdk/models/spatio_call.rb +259 -0
- data/lib/spatio-sdk/models/spatio_connection.rb +260 -0
- data/lib/spatio-sdk/models/spatio_event.rb +686 -0
- data/lib/spatio-sdk/models/spatio_file.rb +372 -0
- data/lib/spatio-sdk/models/spatio_thread.rb +212 -0
- data/lib/spatio-sdk/models/success_flag.rb +165 -0
- data/lib/spatio-sdk/models/task.rb +471 -0
- data/lib/spatio-sdk/models/task_comment.rb +294 -0
- data/lib/spatio-sdk/models/task_comment_author.rb +226 -0
- data/lib/spatio-sdk/models/task_comment_list.rb +192 -0
- data/lib/spatio-sdk/models/task_comment_mutation_response.rb +190 -0
- data/lib/spatio-sdk/models/task_comment_request.rb +164 -0
- data/lib/spatio-sdk/models/task_list_envelope.rb +195 -0
- data/lib/spatio-sdk/models/task_providers_info.rb +194 -0
- data/lib/spatio-sdk/models/task_providers_info_platform.rb +190 -0
- data/lib/spatio-sdk/models/text_annotations.rb +278 -0
- data/lib/spatio-sdk/models/token_response.rb +246 -0
- data/lib/spatio-sdk/models/update_account_request.rb +158 -0
- data/lib/spatio-sdk/models/update_agent_request.rb +205 -0
- data/lib/spatio-sdk/models/update_app_request.rb +174 -0
- data/lib/spatio-sdk/models/update_block_request.rb +168 -0
- data/lib/spatio-sdk/models/update_cell_request.rb +151 -0
- data/lib/spatio-sdk/models/update_comment_request.rb +157 -0
- data/lib/spatio-sdk/models/update_contact_category_request.rb +165 -0
- data/lib/spatio-sdk/models/update_contact_request.rb +212 -0
- data/lib/spatio-sdk/models/update_conversation_request.rb +183 -0
- data/lib/spatio-sdk/models/update_draft_request.rb +219 -0
- data/lib/spatio-sdk/models/update_email_folder_request.rb +147 -0
- data/lib/spatio-sdk/models/update_email_request.rb +188 -0
- data/lib/spatio-sdk/models/update_email_response.rb +190 -0
- data/lib/spatio-sdk/models/update_event_request.rb +236 -0
- data/lib/spatio-sdk/models/update_file_request.rb +169 -0
- data/lib/spatio-sdk/models/update_key_binding_request.rb +175 -0
- data/lib/spatio-sdk/models/update_message_metadata_request.rb +175 -0
- data/lib/spatio-sdk/models/update_note_request.rb +205 -0
- data/lib/spatio-sdk/models/update_organization_member_request.rb +188 -0
- data/lib/spatio-sdk/models/update_organization_request.rb +166 -0
- data/lib/spatio-sdk/models/update_participant_state_request.rb +166 -0
- data/lib/spatio-sdk/models/update_pat_request.rb +156 -0
- data/lib/spatio-sdk/models/update_presentation_request.rb +166 -0
- data/lib/spatio-sdk/models/update_recommendation_status_request.rb +188 -0
- data/lib/spatio-sdk/models/update_record_request.rb +169 -0
- data/lib/spatio-sdk/models/update_record_type_request.rb +185 -0
- data/lib/spatio-sdk/models/update_routine_request.rb +187 -0
- data/lib/spatio-sdk/models/update_row_request.rb +167 -0
- data/lib/spatio-sdk/models/update_sheet_request.rb +205 -0
- data/lib/spatio-sdk/models/update_slide_element_request.rb +213 -0
- data/lib/spatio-sdk/models/update_slide_request.rb +211 -0
- data/lib/spatio-sdk/models/update_task_request.rb +260 -0
- data/lib/spatio-sdk/models/update_workspace_member_request.rb +188 -0
- data/lib/spatio-sdk/models/update_workspace_request.rb +176 -0
- data/lib/spatio-sdk/models/upload_chunked_block_response.rb +243 -0
- data/lib/spatio-sdk/models/upload_file_base64_request.rb +265 -0
- data/lib/spatio-sdk/models/user_info_response.rb +237 -0
- data/lib/spatio-sdk/models/validate_key_binding_request.rb +201 -0
- data/lib/spatio-sdk/models/validate_key_binding_response.rb +175 -0
- data/lib/spatio-sdk/models/workspace.rb +321 -0
- data/lib/spatio-sdk/models/workspace_envelope.rb +164 -0
- data/lib/spatio-sdk/models/workspace_invitation.rb +324 -0
- data/lib/spatio-sdk/models/workspace_invitation_list_response.rb +166 -0
- data/lib/spatio-sdk/models/workspace_list_response.rb +175 -0
- data/lib/spatio-sdk/models/workspace_member.rb +278 -0
- data/lib/spatio-sdk/models/workspace_member_list_response.rb +175 -0
- data/lib/spatio-sdk/models/workspace_organization.rb +166 -0
- data/lib/spatio-sdk/models/write_app_file_request.rb +190 -0
- data/lib/spatio-sdk/version.rb +15 -0
- data/lib/spatio-sdk.rb +408 -0
- data/spatio-sdk.gemspec +41 -0
- data/spec/api/account_api_spec.rb +158 -0
- data/spec/api/actions_api_spec.rb +99 -0
- data/spec/api/agents_api_spec.rb +176 -0
- data/spec/api/apps_api_spec.rb +198 -0
- data/spec/api/calendar_api_spec.rb +217 -0
- data/spec/api/calls_api_spec.rb +378 -0
- data/spec/api/channels_api_spec.rb +236 -0
- data/spec/api/connections_api_spec.rb +154 -0
- data/spec/api/contacts_api_spec.rb +172 -0
- data/spec/api/conversations_api_spec.rb +140 -0
- data/spec/api/direct_messages_api_spec.rb +420 -0
- data/spec/api/files_api_spec.rb +494 -0
- data/spec/api/folders_api_spec.rb +102 -0
- data/spec/api/inbox_api_spec.rb +103 -0
- data/spec/api/keybindings_api_spec.rb +99 -0
- data/spec/api/logos_api_spec.rb +68 -0
- data/spec/api/mail_api_spec.rb +701 -0
- data/spec/api/misc_api_spec.rb +228 -0
- data/spec/api/models_api_spec.rb +112 -0
- data/spec/api/native_dm_api_spec.rb +276 -0
- data/spec/api/navigation_api_spec.rb +45 -0
- data/spec/api/notes_api_spec.rb +474 -0
- data/spec/api/notifications_api_spec.rb +56 -0
- data/spec/api/o_auth_api_spec.rb +161 -0
- data/spec/api/organizations_api_spec.rb +367 -0
- data/spec/api/personal_access_tokens_api_spec.rb +137 -0
- data/spec/api/platforms_api_spec.rb +204 -0
- data/spec/api/realtime_api_spec.rb +47 -0
- data/spec/api/recommendations_api_spec.rb +93 -0
- data/spec/api/records_api_spec.rb +127 -0
- data/spec/api/repo_api_spec.rb +402 -0
- data/spec/api/resources_api_spec.rb +73 -0
- data/spec/api/routines_api_spec.rb +149 -0
- data/spec/api/search_api_spec.rb +47 -0
- data/spec/api/settings_api_spec.rb +154 -0
- data/spec/api/sheets_api_spec.rb +184 -0
- data/spec/api/slides_api_spec.rb +355 -0
- data/spec/api/tasks_api_spec.rb +355 -0
- data/spec/api/terminal_api_spec.rb +90 -0
- data/spec/api/workspaces_api_spec.rb +184 -0
- data/spec/models/accept_organization_invitation_request_spec.rb +36 -0
- data/spec/models/account_choice_spec.rb +48 -0
- data/spec/models/account_error_spec.rb +42 -0
- data/spec/models/account_list_response_spec.rb +48 -0
- data/spec/models/account_plan_spec.rb +54 -0
- data/spec/models/account_status_spec.rb +70 -0
- data/spec/models/account_tier_details_spec.rb +120 -0
- data/spec/models/account_usage_spec.rb +78 -0
- data/spec/models/action_descriptor_spec.rb +78 -0
- data/spec/models/add_organization_member_request_spec.rb +52 -0
- data/spec/models/add_workspace_member_request_spec.rb +46 -0
- data/spec/models/agent_conversation_list_response_spec.rb +42 -0
- data/spec/models/agent_conversation_spec.rb +66 -0
- data/spec/models/agent_list_response_spec.rb +54 -0
- data/spec/models/agent_message_list_response_spec.rb +42 -0
- data/spec/models/agent_message_spec.rb +66 -0
- data/spec/models/agent_session_context_spec.rb +54 -0
- data/spec/models/agent_spec.rb +102 -0
- data/spec/models/agent_task_usage_spec.rb +60 -0
- data/spec/models/ambiguous_account_error_spec.rb +48 -0
- data/spec/models/api_error_spec.rb +42 -0
- data/spec/models/app_file_content_response_spec.rb +42 -0
- data/spec/models/app_file_list_response_spec.rb +36 -0
- data/spec/models/app_list_response_spec.rb +42 -0
- data/spec/models/app_spec.rb +78 -0
- data/spec/models/assign_contact_category_request_spec.rb +36 -0
- data/spec/models/attachment_input_spec.rb +54 -0
- data/spec/models/attachment_meta_spec.rb +54 -0
- data/spec/models/attachment_spec.rb +60 -0
- data/spec/models/attendee_role_spec.rb +30 -0
- data/spec/models/attendee_spec.rb +72 -0
- data/spec/models/attendee_status_spec.rb +30 -0
- data/spec/models/block_content_spec.rb +96 -0
- data/spec/models/block_list_response_spec.rb +42 -0
- data/spec/models/block_spec.rb +90 -0
- data/spec/models/block_type_spec.rb +30 -0
- data/spec/models/bulk_archive_request_spec.rb +42 -0
- data/spec/models/bulk_archive_response_failed_inner_spec.rb +42 -0
- data/spec/models/bulk_archive_response_spec.rb +48 -0
- data/spec/models/bulk_delete_emails_request_spec.rb +48 -0
- data/spec/models/bulk_delete_emails_response_spec.rb +48 -0
- data/spec/models/bulk_delete_files_request_spec.rb +54 -0
- data/spec/models/bulk_delete_tasks_request_spec.rb +54 -0
- data/spec/models/bulk_delete_tasks_response_failed_inner_spec.rb +42 -0
- data/spec/models/bulk_delete_tasks_response_spec.rb +54 -0
- data/spec/models/bulk_files_response_failed_inner_spec.rb +42 -0
- data/spec/models/bulk_files_response_spec.rb +54 -0
- data/spec/models/bulk_mark_read_request_spec.rb +48 -0
- data/spec/models/bulk_mark_read_response_failed_inner_spec.rb +42 -0
- data/spec/models/bulk_mark_read_response_spec.rb +42 -0
- data/spec/models/bulk_move_files_request_spec.rb +60 -0
- data/spec/models/bulk_update_tasks_request_spec.rb +54 -0
- data/spec/models/bulk_update_tasks_response_spec.rb +54 -0
- data/spec/models/calendar_account_error_spec.rb +54 -0
- data/spec/models/calendar_capabilities_response_spec.rb +48 -0
- data/spec/models/calendar_operation_result_spec.rb +54 -0
- data/spec/models/calendar_provider_info_spec.rb +60 -0
- data/spec/models/calendar_providers_info_spec.rb +36 -0
- data/spec/models/calendar_sync_response_spec.rb +60 -0
- data/spec/models/call_list_response_spec.rb +42 -0
- data/spec/models/call_recording_list_response_spec.rb +36 -0
- data/spec/models/call_recording_spec.rb +72 -0
- data/spec/models/cell_spec.rb +48 -0
- data/spec/models/change_password_request_spec.rb +42 -0
- data/spec/models/channel_membership_request_spec.rb +36 -0
- data/spec/models/channel_spec.rb +96 -0
- data/spec/models/chat_action_definition_spec.rb +84 -0
- data/spec/models/chat_actions_list_spec.rb +36 -0
- data/spec/models/chat_message_spec.rb +90 -0
- data/spec/models/chat_user_spec.rb +84 -0
- data/spec/models/chunked_file_manifest_spec.rb +84 -0
- data/spec/models/client_registration_request_spec.rb +94 -0
- data/spec/models/client_registration_response_spec.rb +96 -0
- data/spec/models/comment_author_spec.rb +54 -0
- data/spec/models/comment_list_response_spec.rb +42 -0
- data/spec/models/comment_mutation_response_spec.rb +42 -0
- data/spec/models/comment_response_spec.rb +36 -0
- data/spec/models/comment_spec.rb +78 -0
- data/spec/models/commit_chunked_upload_request_spec.rb +36 -0
- data/spec/models/commit_chunked_upload_response_spec.rb +90 -0
- data/spec/models/conference_data_spec.rb +66 -0
- data/spec/models/connected_app_item_spec.rb +84 -0
- data/spec/models/connected_apps_list_response_spec.rb +36 -0
- data/spec/models/connection_account_list_response_spec.rb +48 -0
- data/spec/models/connection_list_response_spec.rb +42 -0
- data/spec/models/consume_agent_task_response_spec.rb +60 -0
- data/spec/models/contact_category_list_response_spec.rb +36 -0
- data/spec/models/contact_category_spec.rb +60 -0
- data/spec/models/contact_list_response_spec.rb +48 -0
- data/spec/models/contact_provider_list_response_spec.rb +36 -0
- data/spec/models/contact_provider_spec.rb +60 -0
- data/spec/models/contact_spec.rb +120 -0
- data/spec/models/conversation_message_spec.rb +66 -0
- data/spec/models/conversation_spec.rb +108 -0
- data/spec/models/core_action_list_response_spec.rb +42 -0
- data/spec/models/core_action_spec.rb +72 -0
- data/spec/models/create_agent_conversation_request_spec.rb +48 -0
- data/spec/models/create_agent_message_request_spec.rb +48 -0
- data/spec/models/create_agent_request_spec.rb +72 -0
- data/spec/models/create_app_request_spec.rb +60 -0
- data/spec/models/create_block_request_spec.rb +60 -0
- data/spec/models/create_calendar_event201_response_spec.rb +54 -0
- data/spec/models/create_call_request_spec.rb +54 -0
- data/spec/models/create_channel_request_spec.rb +54 -0
- data/spec/models/create_channel_response_spec.rb +42 -0
- data/spec/models/create_comment_request_spec.rb +54 -0
- data/spec/models/create_contact_category_request_spec.rb +48 -0
- data/spec/models/create_contact_request_spec.rb +78 -0
- data/spec/models/create_conversation_request_spec.rb +60 -0
- data/spec/models/create_draft_request_spec.rb +96 -0
- data/spec/models/create_email_folder_request_spec.rb +42 -0
- data/spec/models/create_event_request_spec.rb +64 -0
- data/spec/models/create_folder_request_spec.rb +60 -0
- data/spec/models/create_label_request_spec.rb +60 -0
- data/spec/models/create_label_response_spec.rb +42 -0
- data/spec/models/create_meeting_room_request_spec.rb +42 -0
- data/spec/models/create_note400_response_spec.rb +32 -0
- data/spec/models/create_note_request_spec.rb +78 -0
- data/spec/models/create_organization_invitation_request_spec.rb +52 -0
- data/spec/models/create_organization_request_spec.rb +66 -0
- data/spec/models/create_pat_request_spec.rb +60 -0
- data/spec/models/create_pat_response_spec.rb +42 -0
- data/spec/models/create_presentation_request_spec.rb +60 -0
- data/spec/models/create_record_request_spec.rb +60 -0
- data/spec/models/create_record_type_request_spec.rb +66 -0
- data/spec/models/create_routine_request_spec.rb +60 -0
- data/spec/models/create_row_request_spec.rb +42 -0
- data/spec/models/create_sheet_request_spec.rb +72 -0
- data/spec/models/create_slide_element_request_spec.rb +78 -0
- data/spec/models/create_slide_request_spec.rb +84 -0
- data/spec/models/create_task_request_spec.rb +118 -0
- data/spec/models/create_workspace_invitation_request_spec.rb +46 -0
- data/spec/models/create_workspace_request_spec.rb +54 -0
- data/spec/models/disconnect_connection_request_spec.rb +42 -0
- data/spec/models/discovery_document_spec.rb +138 -0
- data/spec/models/dm_attach_request_spec.rb +84 -0
- data/spec/models/dm_forward_request_spec.rb +48 -0
- data/spec/models/dm_mark_read_request_spec.rb +42 -0
- data/spec/models/dm_message_envelope_spec.rb +36 -0
- data/spec/models/dm_mute_request_spec.rb +48 -0
- data/spec/models/dm_mute_response_spec.rb +36 -0
- data/spec/models/dm_pinned_list_spec.rb +36 -0
- data/spec/models/dm_reaction_request_spec.rb +42 -0
- data/spec/models/dm_reaction_response_spec.rb +36 -0
- data/spec/models/dm_search_results_spec.rb +36 -0
- data/spec/models/dm_set_draft_request_spec.rb +42 -0
- data/spec/models/dm_thread_reply_request_spec.rb +42 -0
- data/spec/models/download_file_response_spec.rb +42 -0
- data/spec/models/draft_response_spec.rb +42 -0
- data/spec/models/draft_spec.rb +102 -0
- data/spec/models/email_folder_list_response_spec.rb +36 -0
- data/spec/models/email_folder_spec.rb +60 -0
- data/spec/models/email_spec.rb +150 -0
- data/spec/models/enable_share_request_spec.rb +42 -0
- data/spec/models/execute_action_request_spec.rb +48 -0
- data/spec/models/execute_action_response_spec.rb +48 -0
- data/spec/models/execute_chat_action_request_spec.rb +42 -0
- data/spec/models/execute_chat_action_response_spec.rb +42 -0
- data/spec/models/export_pdf_request_rasterized_slides_inner_spec.rb +42 -0
- data/spec/models/export_pdf_request_spec.rb +42 -0
- data/spec/models/export_pdfr2_response_spec.rb +58 -0
- data/spec/models/extract_text_result_spec.rb +54 -0
- data/spec/models/federated_search200_response_items_inner_spec.rb +96 -0
- data/spec/models/federated_search200_response_per_platform_value_spec.rb +42 -0
- data/spec/models/federated_search200_response_spec.rb +66 -0
- data/spec/models/federated_search_request_spec.rb +82 -0
- data/spec/models/file_list_envelope_spec.rb +42 -0
- data/spec/models/files_and_folders_response_spec.rb +66 -0
- data/spec/models/folder_list_envelope_spec.rb +42 -0
- data/spec/models/folder_spec.rb +78 -0
- data/spec/models/get_chat_user_response_spec.rb +42 -0
- data/spec/models/get_domain_logo200_response_spec.rb +42 -0
- data/spec/models/get_email_response_spec.rb +42 -0
- data/spec/models/get_thread_response_spec.rb +42 -0
- data/spec/models/inbox_counts_spec.rb +48 -0
- data/spec/models/inbox_item_spec.rb +96 -0
- data/spec/models/inbox_list_response_spec.rb +48 -0
- data/spec/models/init_chunked_upload_request_spec.rb +72 -0
- data/spec/models/init_chunked_upload_response_spec.rb +60 -0
- data/spec/models/install_connection_request_spec.rb +48 -0
- data/spec/models/introspection_response_spec.rb +72 -0
- data/spec/models/issue_collaboration_token200_response_spec.rb +60 -0
- data/spec/models/issue_collaboration_token_request_spec.rb +36 -0
- data/spec/models/jwk_spec.rb +66 -0
- data/spec/models/jwks_spec.rb +36 -0
- data/spec/models/key_binding_list_response_spec.rb +36 -0
- data/spec/models/key_binding_spec.rb +96 -0
- data/spec/models/label_color_spec.rb +42 -0
- data/spec/models/label_spec.rb +66 -0
- data/spec/models/link_repo_task_request_spec.rb +36 -0
- data/spec/models/list_calendar_events200_response_spec.rb +54 -0
- data/spec/models/list_channels_response_spec.rb +54 -0
- data/spec/models/list_chat_users_response_spec.rb +54 -0
- data/spec/models/list_drafts_response_spec.rb +54 -0
- data/spec/models/list_emails_response_spec.rb +54 -0
- data/spec/models/list_events_data_spec.rb +54 -0
- data/spec/models/list_labels_response_spec.rb +42 -0
- data/spec/models/list_messages_response_spec.rb +54 -0
- data/spec/models/meeting_room_spec.rb +54 -0
- data/spec/models/move_block_request_spec.rb +42 -0
- data/spec/models/move_emails_request_spec.rb +36 -0
- data/spec/models/move_file_request_spec.rb +36 -0
- data/spec/models/move_file_response_spec.rb +36 -0
- data/spec/models/note_list_envelope_spec.rb +42 -0
- data/spec/models/note_spec.rb +114 -0
- data/spec/models/o_auth_error_spec.rb +46 -0
- data/spec/models/organization_detail_legacy_spec.rb +96 -0
- data/spec/models/organization_invitation_list_response_spec.rb +36 -0
- data/spec/models/organization_invitation_spec.rb +100 -0
- data/spec/models/organization_list_response_spec.rb +36 -0
- data/spec/models/organization_member_invited_by_spec.rb +32 -0
- data/spec/models/organization_member_list_response_spec.rb +42 -0
- data/spec/models/organization_member_spec.rb +70 -0
- data/spec/models/organization_spec.rb +96 -0
- data/spec/models/organization_workspaces_inner_spec.rb +48 -0
- data/spec/models/password_required_error_spec.rb +54 -0
- data/spec/models/pat_list_response_spec.rb +42 -0
- data/spec/models/pat_scopes_response_spec.rb +36 -0
- data/spec/models/personal_access_token_spec.rb +84 -0
- data/spec/models/preconfigured_agent_spec.rb +72 -0
- data/spec/models/presentation_list_envelope_spec.rb +42 -0
- data/spec/models/presentation_spec.rb +96 -0
- data/spec/models/propose_recommendation_request_spec.rb +66 -0
- data/spec/models/public_invitation_payload_spec.rb +110 -0
- data/spec/models/quota_exceeded_error_spec.rb +42 -0
- data/spec/models/recommendation_list_response_spec.rb +36 -0
- data/spec/models/recommendation_spec.rb +100 -0
- data/spec/models/record_list_response_spec.rb +48 -0
- data/spec/models/record_spec.rb +78 -0
- data/spec/models/record_type_list_response_spec.rb +36 -0
- data/spec/models/record_type_spec.rb +84 -0
- data/spec/models/refresh_connection_request_spec.rb +42 -0
- data/spec/models/reminder_method_spec.rb +30 -0
- data/spec/models/reminder_spec.rb +42 -0
- data/spec/models/reply_email_request_spec.rb +72 -0
- data/spec/models/revoke_other_sessions_response_spec.rb +36 -0
- data/spec/models/rich_text_object_spec.rb +58 -0
- data/spec/models/routine_list_response_spec.rb +36 -0
- data/spec/models/routine_run_complete_request_spec.rb +42 -0
- data/spec/models/routine_run_list_response_spec.rb +36 -0
- data/spec/models/routine_run_progress_request_spec.rb +42 -0
- data/spec/models/routine_run_spec.rb +72 -0
- data/spec/models/routine_spec.rb +84 -0
- data/spec/models/row_list_spec.rb +42 -0
- data/spec/models/row_spec.rb +42 -0
- data/spec/models/save_message_request_spec.rb +48 -0
- data/spec/models/search_emails_response_spec.rb +54 -0
- data/spec/models/search_files_response_spec.rb +54 -0
- data/spec/models/send_chat_message_request_spec.rb +60 -0
- data/spec/models/send_chat_message_response_spec.rb +66 -0
- data/spec/models/send_email_request_spec.rb +90 -0
- data/spec/models/send_email_response_spec.rb +60 -0
- data/spec/models/session_list_response_spec.rb +36 -0
- data/spec/models/session_spec.rb +96 -0
- data/spec/models/share_settings_spec.rb +60 -0
- data/spec/models/sheet_list_envelope_spec.rb +42 -0
- data/spec/models/sheet_spec.rb +126 -0
- data/spec/models/sign_in_methods_providers_inner_spec.rb +54 -0
- data/spec/models/sign_in_methods_spec.rb +48 -0
- data/spec/models/slide_element_list_spec.rb +42 -0
- data/spec/models/slide_element_spec.rb +102 -0
- data/spec/models/slide_list_spec.rb +42 -0
- data/spec/models/slide_spec.rb +114 -0
- data/spec/models/spatio_call_spec.rb +96 -0
- data/spec/models/spatio_connection_spec.rb +96 -0
- data/spec/models/spatio_event_spec.rb +240 -0
- data/spec/models/spatio_file_spec.rb +102 -0
- data/spec/models/spatio_thread_spec.rb +54 -0
- data/spec/models/success_flag_spec.rb +36 -0
- data/spec/models/task_comment_author_spec.rb +54 -0
- data/spec/models/task_comment_list_spec.rb +42 -0
- data/spec/models/task_comment_mutation_response_spec.rb +42 -0
- data/spec/models/task_comment_request_spec.rb +36 -0
- data/spec/models/task_comment_spec.rb +66 -0
- data/spec/models/task_list_envelope_spec.rb +42 -0
- data/spec/models/task_providers_info_platform_spec.rb +42 -0
- data/spec/models/task_providers_info_spec.rb +42 -0
- data/spec/models/task_spec.rb +160 -0
- data/spec/models/text_annotations_spec.rb +66 -0
- data/spec/models/token_response_spec.rb +66 -0
- data/spec/models/update_account_request_spec.rb +42 -0
- data/spec/models/update_agent_request_spec.rb +72 -0
- data/spec/models/update_app_request_spec.rb +54 -0
- data/spec/models/update_block_request_spec.rb +48 -0
- data/spec/models/update_cell_request_spec.rb +36 -0
- data/spec/models/update_comment_request_spec.rb +42 -0
- data/spec/models/update_contact_category_request_spec.rb +48 -0
- data/spec/models/update_contact_request_spec.rb +78 -0
- data/spec/models/update_conversation_request_spec.rb +60 -0
- data/spec/models/update_draft_request_spec.rb +78 -0
- data/spec/models/update_email_folder_request_spec.rb +36 -0
- data/spec/models/update_email_request_spec.rb +60 -0
- data/spec/models/update_email_response_spec.rb +42 -0
- data/spec/models/update_event_request_spec.rb +52 -0
- data/spec/models/update_file_request_spec.rb +48 -0
- data/spec/models/update_key_binding_request_spec.rb +42 -0
- data/spec/models/update_message_metadata_request_spec.rb +42 -0
- data/spec/models/update_note_request_spec.rb +72 -0
- data/spec/models/update_organization_member_request_spec.rb +40 -0
- data/spec/models/update_organization_request_spec.rb +48 -0
- data/spec/models/update_participant_state_request_spec.rb +48 -0
- data/spec/models/update_pat_request_spec.rb +42 -0
- data/spec/models/update_presentation_request_spec.rb +48 -0
- data/spec/models/update_recommendation_status_request_spec.rb +40 -0
- data/spec/models/update_record_request_spec.rb +48 -0
- data/spec/models/update_record_type_request_spec.rb +60 -0
- data/spec/models/update_routine_request_spec.rb +60 -0
- data/spec/models/update_row_request_spec.rb +36 -0
- data/spec/models/update_sheet_request_spec.rb +72 -0
- data/spec/models/update_slide_element_request_spec.rb +78 -0
- data/spec/models/update_slide_request_spec.rb +78 -0
- data/spec/models/update_task_request_spec.rb +88 -0
- data/spec/models/update_workspace_member_request_spec.rb +40 -0
- data/spec/models/update_workspace_request_spec.rb +54 -0
- data/spec/models/upload_chunked_block_response_spec.rb +54 -0
- data/spec/models/upload_file_base64_request_spec.rb +78 -0
- data/spec/models/user_info_response_spec.rb +84 -0
- data/spec/models/validate_key_binding_request_spec.rb +48 -0
- data/spec/models/validate_key_binding_response_spec.rb +42 -0
- data/spec/models/workspace_envelope_spec.rb +36 -0
- data/spec/models/workspace_invitation_list_response_spec.rb +36 -0
- data/spec/models/workspace_invitation_spec.rb +88 -0
- data/spec/models/workspace_list_response_spec.rb +42 -0
- data/spec/models/workspace_member_list_response_spec.rb +42 -0
- data/spec/models/workspace_member_spec.rb +76 -0
- data/spec/models/workspace_organization_spec.rb +48 -0
- data/spec/models/workspace_spec.rb +114 -0
- data/spec/models/write_app_file_request_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1597 -0
|
@@ -0,0 +1,1692 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SpatioAPI
|
|
3
|
+
|
|
4
|
+
#The REST API that owns every resource in your Spatio workspace: notes, sheets, slides, tasks, calendar events, mail, chat, files, and contacts. SpatioMCP wraps this API; Spatio Desktop reads from it. You can call it directly from your own code. All requests must be authenticated with a Personal Access Token (`Authorization: Bearer pat_...`) or an OAuth 2.1 access token, and use HTTPS. Official SDKs (MIT, generated from this spec on every release): - TypeScript: https://github.com/spatio-labs/spatio-ts (`npm install @spatio-labs/spatio-ts`) - Python: https://github.com/spatio-labs/spatio-py (`pip install spatio-sdk`) - Go: https://github.com/spatio-labs/spatio-go (`go get github.com/spatio-labs/spatio-go`) This specification is generated from the platform-service Go source on every push to `main`. The spec, not hand-written documentation, is the source of truth: server stubs and SDKs are generated from it, and any drift between the spec and the running service fails CI.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
Contact: hello@spatio.app
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Spatio
|
|
16
|
+
class SlidesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create a presentation.
|
|
23
|
+
# Creates a new deck under the target account. Target resolution mirrors `POST /v1/notes` and `/v1/sheets`: body `accountId` → `?accountId=` → body `provider` → `?provider=` → caller's single connected account (errors with `ambiguous_account` otherwise). The new deck is auto-seeded with one blank slide so the renderer has something to display immediately.
|
|
24
|
+
# @param create_presentation_request [CreatePresentationRequest]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
27
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
28
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
29
|
+
# @return [Presentation]
|
|
30
|
+
def create_presentation(create_presentation_request, opts = {})
|
|
31
|
+
data, _status_code, _headers = create_presentation_with_http_info(create_presentation_request, opts)
|
|
32
|
+
data
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Create a presentation.
|
|
36
|
+
# Creates a new deck under the target account. Target resolution mirrors `POST /v1/notes` and `/v1/sheets`: body `accountId` → `?accountId=` → body `provider` → `?provider=` → caller's single connected account (errors with `ambiguous_account` otherwise). The new deck is auto-seeded with one blank slide so the renderer has something to display immediately.
|
|
37
|
+
# @param create_presentation_request [CreatePresentationRequest]
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
40
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
41
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
42
|
+
# @return [Array<(Presentation, Integer, Hash)>] Presentation data, response status code and response headers
|
|
43
|
+
def create_presentation_with_http_info(create_presentation_request, opts = {})
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.create_presentation ...'
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'create_presentation_request' is set
|
|
48
|
+
if @api_client.config.client_side_validation && create_presentation_request.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'create_presentation_request' when calling SlidesApi.create_presentation"
|
|
50
|
+
end
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '/v1/slides'
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = opts[:query_params] || {}
|
|
56
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
57
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
58
|
+
|
|
59
|
+
# header parameters
|
|
60
|
+
header_params = opts[:header_params] || {}
|
|
61
|
+
# HTTP header 'Accept' (if needed)
|
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
63
|
+
# HTTP header 'Content-Type'
|
|
64
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
65
|
+
if !content_type.nil?
|
|
66
|
+
header_params['Content-Type'] = content_type
|
|
67
|
+
end
|
|
68
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
69
|
+
|
|
70
|
+
# form parameters
|
|
71
|
+
form_params = opts[:form_params] || {}
|
|
72
|
+
|
|
73
|
+
# http body (model)
|
|
74
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_presentation_request)
|
|
75
|
+
|
|
76
|
+
# return_type
|
|
77
|
+
return_type = opts[:debug_return_type] || 'Presentation'
|
|
78
|
+
|
|
79
|
+
# auth_names
|
|
80
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
81
|
+
|
|
82
|
+
new_options = opts.merge(
|
|
83
|
+
:operation => :"SlidesApi.create_presentation",
|
|
84
|
+
:header_params => header_params,
|
|
85
|
+
:query_params => query_params,
|
|
86
|
+
:form_params => form_params,
|
|
87
|
+
:body => post_body,
|
|
88
|
+
:auth_names => auth_names,
|
|
89
|
+
:return_type => return_type
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
@api_client.config.logger.debug "API called: SlidesApi#create_presentation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
95
|
+
end
|
|
96
|
+
return data, status_code, headers
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Insert a slide.
|
|
100
|
+
# @param id [String] Presentation id.
|
|
101
|
+
# @param create_slide_request [CreateSlideRequest]
|
|
102
|
+
# @param [Hash] opts the optional parameters
|
|
103
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
104
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
105
|
+
# @return [Slide]
|
|
106
|
+
def create_slide(id, create_slide_request, opts = {})
|
|
107
|
+
data, _status_code, _headers = create_slide_with_http_info(id, create_slide_request, opts)
|
|
108
|
+
data
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Insert a slide.
|
|
112
|
+
# @param id [String] Presentation id.
|
|
113
|
+
# @param create_slide_request [CreateSlideRequest]
|
|
114
|
+
# @param [Hash] opts the optional parameters
|
|
115
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
116
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
117
|
+
# @return [Array<(Slide, Integer, Hash)>] Slide data, response status code and response headers
|
|
118
|
+
def create_slide_with_http_info(id, create_slide_request, opts = {})
|
|
119
|
+
if @api_client.config.debugging
|
|
120
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.create_slide ...'
|
|
121
|
+
end
|
|
122
|
+
# verify the required parameter 'id' is set
|
|
123
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
124
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.create_slide"
|
|
125
|
+
end
|
|
126
|
+
# verify the required parameter 'create_slide_request' is set
|
|
127
|
+
if @api_client.config.client_side_validation && create_slide_request.nil?
|
|
128
|
+
fail ArgumentError, "Missing the required parameter 'create_slide_request' when calling SlidesApi.create_slide"
|
|
129
|
+
end
|
|
130
|
+
# resource path
|
|
131
|
+
local_var_path = '/v1/slides/{id}/slides'.sub('{id}', CGI.escape(id.to_s))
|
|
132
|
+
|
|
133
|
+
# query parameters
|
|
134
|
+
query_params = opts[:query_params] || {}
|
|
135
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
136
|
+
|
|
137
|
+
# header parameters
|
|
138
|
+
header_params = opts[:header_params] || {}
|
|
139
|
+
# HTTP header 'Accept' (if needed)
|
|
140
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
141
|
+
# HTTP header 'Content-Type'
|
|
142
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
143
|
+
if !content_type.nil?
|
|
144
|
+
header_params['Content-Type'] = content_type
|
|
145
|
+
end
|
|
146
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
147
|
+
|
|
148
|
+
# form parameters
|
|
149
|
+
form_params = opts[:form_params] || {}
|
|
150
|
+
|
|
151
|
+
# http body (model)
|
|
152
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_slide_request)
|
|
153
|
+
|
|
154
|
+
# return_type
|
|
155
|
+
return_type = opts[:debug_return_type] || 'Slide'
|
|
156
|
+
|
|
157
|
+
# auth_names
|
|
158
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
159
|
+
|
|
160
|
+
new_options = opts.merge(
|
|
161
|
+
:operation => :"SlidesApi.create_slide",
|
|
162
|
+
:header_params => header_params,
|
|
163
|
+
:query_params => query_params,
|
|
164
|
+
:form_params => form_params,
|
|
165
|
+
:body => post_body,
|
|
166
|
+
:auth_names => auth_names,
|
|
167
|
+
:return_type => return_type
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
171
|
+
if @api_client.config.debugging
|
|
172
|
+
@api_client.config.logger.debug "API called: SlidesApi#create_slide\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
173
|
+
end
|
|
174
|
+
return data, status_code, headers
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Add a canvas element (text/shape/image) to a slide.
|
|
178
|
+
# @param id [String] Presentation id.
|
|
179
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
180
|
+
# @param create_slide_element_request [CreateSlideElementRequest]
|
|
181
|
+
# @param [Hash] opts the optional parameters
|
|
182
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
183
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
184
|
+
# @return [SlideElement]
|
|
185
|
+
def create_slide_element(id, slide_id, create_slide_element_request, opts = {})
|
|
186
|
+
data, _status_code, _headers = create_slide_element_with_http_info(id, slide_id, create_slide_element_request, opts)
|
|
187
|
+
data
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Add a canvas element (text/shape/image) to a slide.
|
|
191
|
+
# @param id [String] Presentation id.
|
|
192
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
193
|
+
# @param create_slide_element_request [CreateSlideElementRequest]
|
|
194
|
+
# @param [Hash] opts the optional parameters
|
|
195
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
196
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
197
|
+
# @return [Array<(SlideElement, Integer, Hash)>] SlideElement data, response status code and response headers
|
|
198
|
+
def create_slide_element_with_http_info(id, slide_id, create_slide_element_request, opts = {})
|
|
199
|
+
if @api_client.config.debugging
|
|
200
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.create_slide_element ...'
|
|
201
|
+
end
|
|
202
|
+
# verify the required parameter 'id' is set
|
|
203
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
204
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.create_slide_element"
|
|
205
|
+
end
|
|
206
|
+
# verify the required parameter 'slide_id' is set
|
|
207
|
+
if @api_client.config.client_side_validation && slide_id.nil?
|
|
208
|
+
fail ArgumentError, "Missing the required parameter 'slide_id' when calling SlidesApi.create_slide_element"
|
|
209
|
+
end
|
|
210
|
+
# verify the required parameter 'create_slide_element_request' is set
|
|
211
|
+
if @api_client.config.client_side_validation && create_slide_element_request.nil?
|
|
212
|
+
fail ArgumentError, "Missing the required parameter 'create_slide_element_request' when calling SlidesApi.create_slide_element"
|
|
213
|
+
end
|
|
214
|
+
# resource path
|
|
215
|
+
local_var_path = '/v1/slides/{id}/slides/{slideId}/elements'.sub('{id}', CGI.escape(id.to_s)).sub('{slideId}', CGI.escape(slide_id.to_s))
|
|
216
|
+
|
|
217
|
+
# query parameters
|
|
218
|
+
query_params = opts[:query_params] || {}
|
|
219
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
220
|
+
|
|
221
|
+
# header parameters
|
|
222
|
+
header_params = opts[:header_params] || {}
|
|
223
|
+
# HTTP header 'Accept' (if needed)
|
|
224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
225
|
+
# HTTP header 'Content-Type'
|
|
226
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
227
|
+
if !content_type.nil?
|
|
228
|
+
header_params['Content-Type'] = content_type
|
|
229
|
+
end
|
|
230
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
231
|
+
|
|
232
|
+
# form parameters
|
|
233
|
+
form_params = opts[:form_params] || {}
|
|
234
|
+
|
|
235
|
+
# http body (model)
|
|
236
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_slide_element_request)
|
|
237
|
+
|
|
238
|
+
# return_type
|
|
239
|
+
return_type = opts[:debug_return_type] || 'SlideElement'
|
|
240
|
+
|
|
241
|
+
# auth_names
|
|
242
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
243
|
+
|
|
244
|
+
new_options = opts.merge(
|
|
245
|
+
:operation => :"SlidesApi.create_slide_element",
|
|
246
|
+
:header_params => header_params,
|
|
247
|
+
:query_params => query_params,
|
|
248
|
+
:form_params => form_params,
|
|
249
|
+
:body => post_body,
|
|
250
|
+
:auth_names => auth_names,
|
|
251
|
+
:return_type => return_type
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
255
|
+
if @api_client.config.debugging
|
|
256
|
+
@api_client.config.logger.debug "API called: SlidesApi#create_slide_element\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
257
|
+
end
|
|
258
|
+
return data, status_code, headers
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# Delete a presentation.
|
|
262
|
+
# @param id [String] Presentation id.
|
|
263
|
+
# @param [Hash] opts the optional parameters
|
|
264
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
265
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
266
|
+
# @return [SuccessFlag]
|
|
267
|
+
def delete_presentation(id, opts = {})
|
|
268
|
+
data, _status_code, _headers = delete_presentation_with_http_info(id, opts)
|
|
269
|
+
data
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Delete a presentation.
|
|
273
|
+
# @param id [String] Presentation id.
|
|
274
|
+
# @param [Hash] opts the optional parameters
|
|
275
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
276
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
277
|
+
# @return [Array<(SuccessFlag, Integer, Hash)>] SuccessFlag data, response status code and response headers
|
|
278
|
+
def delete_presentation_with_http_info(id, opts = {})
|
|
279
|
+
if @api_client.config.debugging
|
|
280
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.delete_presentation ...'
|
|
281
|
+
end
|
|
282
|
+
# verify the required parameter 'id' is set
|
|
283
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
284
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.delete_presentation"
|
|
285
|
+
end
|
|
286
|
+
# resource path
|
|
287
|
+
local_var_path = '/v1/slides/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
288
|
+
|
|
289
|
+
# query parameters
|
|
290
|
+
query_params = opts[:query_params] || {}
|
|
291
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
292
|
+
|
|
293
|
+
# header parameters
|
|
294
|
+
header_params = opts[:header_params] || {}
|
|
295
|
+
# HTTP header 'Accept' (if needed)
|
|
296
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
297
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
298
|
+
|
|
299
|
+
# form parameters
|
|
300
|
+
form_params = opts[:form_params] || {}
|
|
301
|
+
|
|
302
|
+
# http body (model)
|
|
303
|
+
post_body = opts[:debug_body]
|
|
304
|
+
|
|
305
|
+
# return_type
|
|
306
|
+
return_type = opts[:debug_return_type] || 'SuccessFlag'
|
|
307
|
+
|
|
308
|
+
# auth_names
|
|
309
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
310
|
+
|
|
311
|
+
new_options = opts.merge(
|
|
312
|
+
:operation => :"SlidesApi.delete_presentation",
|
|
313
|
+
:header_params => header_params,
|
|
314
|
+
:query_params => query_params,
|
|
315
|
+
:form_params => form_params,
|
|
316
|
+
:body => post_body,
|
|
317
|
+
:auth_names => auth_names,
|
|
318
|
+
:return_type => return_type
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
322
|
+
if @api_client.config.debugging
|
|
323
|
+
@api_client.config.logger.debug "API called: SlidesApi#delete_presentation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
324
|
+
end
|
|
325
|
+
return data, status_code, headers
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# Delete a slide.
|
|
329
|
+
# @param id [String] Presentation id.
|
|
330
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
331
|
+
# @param [Hash] opts the optional parameters
|
|
332
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
333
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
334
|
+
# @return [SuccessFlag]
|
|
335
|
+
def delete_slide(id, slide_id, opts = {})
|
|
336
|
+
data, _status_code, _headers = delete_slide_with_http_info(id, slide_id, opts)
|
|
337
|
+
data
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Delete a slide.
|
|
341
|
+
# @param id [String] Presentation id.
|
|
342
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
343
|
+
# @param [Hash] opts the optional parameters
|
|
344
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
345
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
346
|
+
# @return [Array<(SuccessFlag, Integer, Hash)>] SuccessFlag data, response status code and response headers
|
|
347
|
+
def delete_slide_with_http_info(id, slide_id, opts = {})
|
|
348
|
+
if @api_client.config.debugging
|
|
349
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.delete_slide ...'
|
|
350
|
+
end
|
|
351
|
+
# verify the required parameter 'id' is set
|
|
352
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
353
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.delete_slide"
|
|
354
|
+
end
|
|
355
|
+
# verify the required parameter 'slide_id' is set
|
|
356
|
+
if @api_client.config.client_side_validation && slide_id.nil?
|
|
357
|
+
fail ArgumentError, "Missing the required parameter 'slide_id' when calling SlidesApi.delete_slide"
|
|
358
|
+
end
|
|
359
|
+
# resource path
|
|
360
|
+
local_var_path = '/v1/slides/{id}/slides/{slideId}'.sub('{id}', CGI.escape(id.to_s)).sub('{slideId}', CGI.escape(slide_id.to_s))
|
|
361
|
+
|
|
362
|
+
# query parameters
|
|
363
|
+
query_params = opts[:query_params] || {}
|
|
364
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
365
|
+
|
|
366
|
+
# header parameters
|
|
367
|
+
header_params = opts[:header_params] || {}
|
|
368
|
+
# HTTP header 'Accept' (if needed)
|
|
369
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
370
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
371
|
+
|
|
372
|
+
# form parameters
|
|
373
|
+
form_params = opts[:form_params] || {}
|
|
374
|
+
|
|
375
|
+
# http body (model)
|
|
376
|
+
post_body = opts[:debug_body]
|
|
377
|
+
|
|
378
|
+
# return_type
|
|
379
|
+
return_type = opts[:debug_return_type] || 'SuccessFlag'
|
|
380
|
+
|
|
381
|
+
# auth_names
|
|
382
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
383
|
+
|
|
384
|
+
new_options = opts.merge(
|
|
385
|
+
:operation => :"SlidesApi.delete_slide",
|
|
386
|
+
:header_params => header_params,
|
|
387
|
+
:query_params => query_params,
|
|
388
|
+
:form_params => form_params,
|
|
389
|
+
:body => post_body,
|
|
390
|
+
:auth_names => auth_names,
|
|
391
|
+
:return_type => return_type
|
|
392
|
+
)
|
|
393
|
+
|
|
394
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
395
|
+
if @api_client.config.debugging
|
|
396
|
+
@api_client.config.logger.debug "API called: SlidesApi#delete_slide\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
397
|
+
end
|
|
398
|
+
return data, status_code, headers
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# Delete a slide element.
|
|
402
|
+
# @param id [String] Presentation id.
|
|
403
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
404
|
+
# @param element_id [String] Slide-element id.
|
|
405
|
+
# @param [Hash] opts the optional parameters
|
|
406
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
407
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
408
|
+
# @return [SuccessFlag]
|
|
409
|
+
def delete_slide_element(id, slide_id, element_id, opts = {})
|
|
410
|
+
data, _status_code, _headers = delete_slide_element_with_http_info(id, slide_id, element_id, opts)
|
|
411
|
+
data
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# Delete a slide element.
|
|
415
|
+
# @param id [String] Presentation id.
|
|
416
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
417
|
+
# @param element_id [String] Slide-element id.
|
|
418
|
+
# @param [Hash] opts the optional parameters
|
|
419
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
420
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
421
|
+
# @return [Array<(SuccessFlag, Integer, Hash)>] SuccessFlag data, response status code and response headers
|
|
422
|
+
def delete_slide_element_with_http_info(id, slide_id, element_id, opts = {})
|
|
423
|
+
if @api_client.config.debugging
|
|
424
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.delete_slide_element ...'
|
|
425
|
+
end
|
|
426
|
+
# verify the required parameter 'id' is set
|
|
427
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
428
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.delete_slide_element"
|
|
429
|
+
end
|
|
430
|
+
# verify the required parameter 'slide_id' is set
|
|
431
|
+
if @api_client.config.client_side_validation && slide_id.nil?
|
|
432
|
+
fail ArgumentError, "Missing the required parameter 'slide_id' when calling SlidesApi.delete_slide_element"
|
|
433
|
+
end
|
|
434
|
+
# verify the required parameter 'element_id' is set
|
|
435
|
+
if @api_client.config.client_side_validation && element_id.nil?
|
|
436
|
+
fail ArgumentError, "Missing the required parameter 'element_id' when calling SlidesApi.delete_slide_element"
|
|
437
|
+
end
|
|
438
|
+
# resource path
|
|
439
|
+
local_var_path = '/v1/slides/{id}/slides/{slideId}/elements/{elementId}'.sub('{id}', CGI.escape(id.to_s)).sub('{slideId}', CGI.escape(slide_id.to_s)).sub('{elementId}', CGI.escape(element_id.to_s))
|
|
440
|
+
|
|
441
|
+
# query parameters
|
|
442
|
+
query_params = opts[:query_params] || {}
|
|
443
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
444
|
+
|
|
445
|
+
# header parameters
|
|
446
|
+
header_params = opts[:header_params] || {}
|
|
447
|
+
# HTTP header 'Accept' (if needed)
|
|
448
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
449
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
450
|
+
|
|
451
|
+
# form parameters
|
|
452
|
+
form_params = opts[:form_params] || {}
|
|
453
|
+
|
|
454
|
+
# http body (model)
|
|
455
|
+
post_body = opts[:debug_body]
|
|
456
|
+
|
|
457
|
+
# return_type
|
|
458
|
+
return_type = opts[:debug_return_type] || 'SuccessFlag'
|
|
459
|
+
|
|
460
|
+
# auth_names
|
|
461
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
462
|
+
|
|
463
|
+
new_options = opts.merge(
|
|
464
|
+
:operation => :"SlidesApi.delete_slide_element",
|
|
465
|
+
:header_params => header_params,
|
|
466
|
+
:query_params => query_params,
|
|
467
|
+
:form_params => form_params,
|
|
468
|
+
:body => post_body,
|
|
469
|
+
:auth_names => auth_names,
|
|
470
|
+
:return_type => return_type
|
|
471
|
+
)
|
|
472
|
+
|
|
473
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
474
|
+
if @api_client.config.debugging
|
|
475
|
+
@api_client.config.logger.debug "API called: SlidesApi#delete_slide_element\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
476
|
+
end
|
|
477
|
+
return data, status_code, headers
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
# Disable public sharing.
|
|
481
|
+
# Owner-only. Subsequent public viewer requests 404.
|
|
482
|
+
# @param id [String] Presentation id.
|
|
483
|
+
# @param [Hash] opts the optional parameters
|
|
484
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
485
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
486
|
+
# @return [nil]
|
|
487
|
+
def disable_presentation_share(id, opts = {})
|
|
488
|
+
disable_presentation_share_with_http_info(id, opts)
|
|
489
|
+
nil
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Disable public sharing.
|
|
493
|
+
# Owner-only. Subsequent public viewer requests 404.
|
|
494
|
+
# @param id [String] Presentation id.
|
|
495
|
+
# @param [Hash] opts the optional parameters
|
|
496
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
497
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
498
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
499
|
+
def disable_presentation_share_with_http_info(id, opts = {})
|
|
500
|
+
if @api_client.config.debugging
|
|
501
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.disable_presentation_share ...'
|
|
502
|
+
end
|
|
503
|
+
# verify the required parameter 'id' is set
|
|
504
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
505
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.disable_presentation_share"
|
|
506
|
+
end
|
|
507
|
+
# resource path
|
|
508
|
+
local_var_path = '/v1/slides/{id}/share'.sub('{id}', CGI.escape(id.to_s))
|
|
509
|
+
|
|
510
|
+
# query parameters
|
|
511
|
+
query_params = opts[:query_params] || {}
|
|
512
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
513
|
+
|
|
514
|
+
# header parameters
|
|
515
|
+
header_params = opts[:header_params] || {}
|
|
516
|
+
# HTTP header 'Accept' (if needed)
|
|
517
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
518
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
519
|
+
|
|
520
|
+
# form parameters
|
|
521
|
+
form_params = opts[:form_params] || {}
|
|
522
|
+
|
|
523
|
+
# http body (model)
|
|
524
|
+
post_body = opts[:debug_body]
|
|
525
|
+
|
|
526
|
+
# return_type
|
|
527
|
+
return_type = opts[:debug_return_type]
|
|
528
|
+
|
|
529
|
+
# auth_names
|
|
530
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
531
|
+
|
|
532
|
+
new_options = opts.merge(
|
|
533
|
+
:operation => :"SlidesApi.disable_presentation_share",
|
|
534
|
+
:header_params => header_params,
|
|
535
|
+
:query_params => query_params,
|
|
536
|
+
:form_params => form_params,
|
|
537
|
+
:body => post_body,
|
|
538
|
+
:auth_names => auth_names,
|
|
539
|
+
:return_type => return_type
|
|
540
|
+
)
|
|
541
|
+
|
|
542
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
543
|
+
if @api_client.config.debugging
|
|
544
|
+
@api_client.config.logger.debug "API called: SlidesApi#disable_presentation_share\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
545
|
+
end
|
|
546
|
+
return data, status_code, headers
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
# Enable (or update password on) public sharing.
|
|
550
|
+
# Owner-only. With `setPassword: false` (or empty body), flips the deck public without changing the password. With `setPassword: true`, applies `password` (empty clears).
|
|
551
|
+
# @param id [String] Presentation id.
|
|
552
|
+
# @param [Hash] opts the optional parameters
|
|
553
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
554
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
555
|
+
# @option opts [EnableShareRequest] :enable_share_request
|
|
556
|
+
# @return [ShareSettings]
|
|
557
|
+
def enable_presentation_share(id, opts = {})
|
|
558
|
+
data, _status_code, _headers = enable_presentation_share_with_http_info(id, opts)
|
|
559
|
+
data
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
# Enable (or update password on) public sharing.
|
|
563
|
+
# Owner-only. With `setPassword: false` (or empty body), flips the deck public without changing the password. With `setPassword: true`, applies `password` (empty clears).
|
|
564
|
+
# @param id [String] Presentation id.
|
|
565
|
+
# @param [Hash] opts the optional parameters
|
|
566
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
567
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
568
|
+
# @option opts [EnableShareRequest] :enable_share_request
|
|
569
|
+
# @return [Array<(ShareSettings, Integer, Hash)>] ShareSettings data, response status code and response headers
|
|
570
|
+
def enable_presentation_share_with_http_info(id, opts = {})
|
|
571
|
+
if @api_client.config.debugging
|
|
572
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.enable_presentation_share ...'
|
|
573
|
+
end
|
|
574
|
+
# verify the required parameter 'id' is set
|
|
575
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
576
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.enable_presentation_share"
|
|
577
|
+
end
|
|
578
|
+
# resource path
|
|
579
|
+
local_var_path = '/v1/slides/{id}/share'.sub('{id}', CGI.escape(id.to_s))
|
|
580
|
+
|
|
581
|
+
# query parameters
|
|
582
|
+
query_params = opts[:query_params] || {}
|
|
583
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
584
|
+
|
|
585
|
+
# header parameters
|
|
586
|
+
header_params = opts[:header_params] || {}
|
|
587
|
+
# HTTP header 'Accept' (if needed)
|
|
588
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
589
|
+
# HTTP header 'Content-Type'
|
|
590
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
591
|
+
if !content_type.nil?
|
|
592
|
+
header_params['Content-Type'] = content_type
|
|
593
|
+
end
|
|
594
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
595
|
+
|
|
596
|
+
# form parameters
|
|
597
|
+
form_params = opts[:form_params] || {}
|
|
598
|
+
|
|
599
|
+
# http body (model)
|
|
600
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'enable_share_request'])
|
|
601
|
+
|
|
602
|
+
# return_type
|
|
603
|
+
return_type = opts[:debug_return_type] || 'ShareSettings'
|
|
604
|
+
|
|
605
|
+
# auth_names
|
|
606
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
607
|
+
|
|
608
|
+
new_options = opts.merge(
|
|
609
|
+
:operation => :"SlidesApi.enable_presentation_share",
|
|
610
|
+
:header_params => header_params,
|
|
611
|
+
:query_params => query_params,
|
|
612
|
+
:form_params => form_params,
|
|
613
|
+
:body => post_body,
|
|
614
|
+
:auth_names => auth_names,
|
|
615
|
+
:return_type => return_type
|
|
616
|
+
)
|
|
617
|
+
|
|
618
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
619
|
+
if @api_client.config.debugging
|
|
620
|
+
@api_client.config.logger.debug "API called: SlidesApi#enable_presentation_share\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
621
|
+
end
|
|
622
|
+
return data, status_code, headers
|
|
623
|
+
end
|
|
624
|
+
|
|
625
|
+
# Render the presentation as a PDF.
|
|
626
|
+
# Proxies to the Spatio export sidecar (Playwright). Two response modes selected via `?storage=`: - `stream` (default) — response body is the PDF binary (`application/pdf`). - `r2` — uploads the rendered PDF to R2 storage and returns a JSON envelope with a 24-hour signed URL. Returns `503 Service Unavailable` when the export sidecar is not configured (dev fallback to the client-side exporter).
|
|
627
|
+
# @param id [String] Presentation id.
|
|
628
|
+
# @param [Hash] opts the optional parameters
|
|
629
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
630
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
631
|
+
# @option opts [String] :storage (default to 'stream')
|
|
632
|
+
# @option opts [String] :filename Sanitized base name for the downloaded PDF.
|
|
633
|
+
# @option opts [ExportPDFRequest] :export_pdf_request
|
|
634
|
+
# @return [File]
|
|
635
|
+
def export_presentation_pdf(id, opts = {})
|
|
636
|
+
data, _status_code, _headers = export_presentation_pdf_with_http_info(id, opts)
|
|
637
|
+
data
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
# Render the presentation as a PDF.
|
|
641
|
+
# Proxies to the Spatio export sidecar (Playwright). Two response modes selected via `?storage=`: - `stream` (default) — response body is the PDF binary (`application/pdf`). - `r2` — uploads the rendered PDF to R2 storage and returns a JSON envelope with a 24-hour signed URL. Returns `503 Service Unavailable` when the export sidecar is not configured (dev fallback to the client-side exporter).
|
|
642
|
+
# @param id [String] Presentation id.
|
|
643
|
+
# @param [Hash] opts the optional parameters
|
|
644
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
645
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
646
|
+
# @option opts [String] :storage (default to 'stream')
|
|
647
|
+
# @option opts [String] :filename Sanitized base name for the downloaded PDF.
|
|
648
|
+
# @option opts [ExportPDFRequest] :export_pdf_request
|
|
649
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
650
|
+
def export_presentation_pdf_with_http_info(id, opts = {})
|
|
651
|
+
if @api_client.config.debugging
|
|
652
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.export_presentation_pdf ...'
|
|
653
|
+
end
|
|
654
|
+
# verify the required parameter 'id' is set
|
|
655
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
656
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.export_presentation_pdf"
|
|
657
|
+
end
|
|
658
|
+
allowable_values = ["stream", "r2"]
|
|
659
|
+
if @api_client.config.client_side_validation && opts[:'storage'] && !allowable_values.include?(opts[:'storage'])
|
|
660
|
+
fail ArgumentError, "invalid value for \"storage\", must be one of #{allowable_values}"
|
|
661
|
+
end
|
|
662
|
+
# resource path
|
|
663
|
+
local_var_path = '/v1/slides/{id}/export/pdf'.sub('{id}', CGI.escape(id.to_s))
|
|
664
|
+
|
|
665
|
+
# query parameters
|
|
666
|
+
query_params = opts[:query_params] || {}
|
|
667
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
668
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
|
669
|
+
query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
|
|
670
|
+
|
|
671
|
+
# header parameters
|
|
672
|
+
header_params = opts[:header_params] || {}
|
|
673
|
+
# HTTP header 'Accept' (if needed)
|
|
674
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json']) unless header_params['Accept']
|
|
675
|
+
# HTTP header 'Content-Type'
|
|
676
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
677
|
+
if !content_type.nil?
|
|
678
|
+
header_params['Content-Type'] = content_type
|
|
679
|
+
end
|
|
680
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
681
|
+
|
|
682
|
+
# form parameters
|
|
683
|
+
form_params = opts[:form_params] || {}
|
|
684
|
+
|
|
685
|
+
# http body (model)
|
|
686
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'export_pdf_request'])
|
|
687
|
+
|
|
688
|
+
# return_type
|
|
689
|
+
return_type = opts[:debug_return_type] || 'File'
|
|
690
|
+
|
|
691
|
+
# auth_names
|
|
692
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
693
|
+
|
|
694
|
+
new_options = opts.merge(
|
|
695
|
+
:operation => :"SlidesApi.export_presentation_pdf",
|
|
696
|
+
:header_params => header_params,
|
|
697
|
+
:query_params => query_params,
|
|
698
|
+
:form_params => form_params,
|
|
699
|
+
:body => post_body,
|
|
700
|
+
:auth_names => auth_names,
|
|
701
|
+
:return_type => return_type
|
|
702
|
+
)
|
|
703
|
+
|
|
704
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
705
|
+
if @api_client.config.debugging
|
|
706
|
+
@api_client.config.logger.debug "API called: SlidesApi#export_presentation_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
707
|
+
end
|
|
708
|
+
return data, status_code, headers
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
# Render the presentation as a PowerPoint (.pptx) file.
|
|
712
|
+
# Proxies to the Spatio export sidecar (Playwright + pptxgenjs). Each slide is screenshotted at 2× device-pixel ratio and wrapped into a PowerPoint .pptx as a full-bleed image. Visual fidelity is preserved exactly — what renders in Spatio renders identically in PowerPoint, Keynote, Google Slides — at the cost of in-PowerPoint editability of slide content. Users edit slide content back in Spatio (the source of truth), not inside PowerPoint. Two response modes selected via `?storage=`: - `stream` (default) — response body is the PPTX binary (`application/vnd.openxmlformats-officedocument.presentationml.presentation`). - `r2` — uploads the rendered PPTX to R2 storage and returns a JSON envelope with a 24-hour signed URL. Returns `503 Service Unavailable` when the export sidecar is not configured.
|
|
713
|
+
# @param id [String] Presentation id.
|
|
714
|
+
# @param [Hash] opts the optional parameters
|
|
715
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
716
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
717
|
+
# @option opts [String] :storage (default to 'stream')
|
|
718
|
+
# @option opts [String] :filename Sanitized base name for the downloaded PPTX.
|
|
719
|
+
# @option opts [ExportPDFRequest] :export_pdf_request
|
|
720
|
+
# @return [File]
|
|
721
|
+
def export_presentation_pptx(id, opts = {})
|
|
722
|
+
data, _status_code, _headers = export_presentation_pptx_with_http_info(id, opts)
|
|
723
|
+
data
|
|
724
|
+
end
|
|
725
|
+
|
|
726
|
+
# Render the presentation as a PowerPoint (.pptx) file.
|
|
727
|
+
# Proxies to the Spatio export sidecar (Playwright + pptxgenjs). Each slide is screenshotted at 2× device-pixel ratio and wrapped into a PowerPoint .pptx as a full-bleed image. Visual fidelity is preserved exactly — what renders in Spatio renders identically in PowerPoint, Keynote, Google Slides — at the cost of in-PowerPoint editability of slide content. Users edit slide content back in Spatio (the source of truth), not inside PowerPoint. Two response modes selected via `?storage=`: - `stream` (default) — response body is the PPTX binary (`application/vnd.openxmlformats-officedocument.presentationml.presentation`). - `r2` — uploads the rendered PPTX to R2 storage and returns a JSON envelope with a 24-hour signed URL. Returns `503 Service Unavailable` when the export sidecar is not configured.
|
|
728
|
+
# @param id [String] Presentation id.
|
|
729
|
+
# @param [Hash] opts the optional parameters
|
|
730
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
731
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
732
|
+
# @option opts [String] :storage (default to 'stream')
|
|
733
|
+
# @option opts [String] :filename Sanitized base name for the downloaded PPTX.
|
|
734
|
+
# @option opts [ExportPDFRequest] :export_pdf_request
|
|
735
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
736
|
+
def export_presentation_pptx_with_http_info(id, opts = {})
|
|
737
|
+
if @api_client.config.debugging
|
|
738
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.export_presentation_pptx ...'
|
|
739
|
+
end
|
|
740
|
+
# verify the required parameter 'id' is set
|
|
741
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
742
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.export_presentation_pptx"
|
|
743
|
+
end
|
|
744
|
+
allowable_values = ["stream", "r2"]
|
|
745
|
+
if @api_client.config.client_side_validation && opts[:'storage'] && !allowable_values.include?(opts[:'storage'])
|
|
746
|
+
fail ArgumentError, "invalid value for \"storage\", must be one of #{allowable_values}"
|
|
747
|
+
end
|
|
748
|
+
# resource path
|
|
749
|
+
local_var_path = '/v1/slides/{id}/export/pptx'.sub('{id}', CGI.escape(id.to_s))
|
|
750
|
+
|
|
751
|
+
# query parameters
|
|
752
|
+
query_params = opts[:query_params] || {}
|
|
753
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
754
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
|
755
|
+
query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
|
|
756
|
+
|
|
757
|
+
# header parameters
|
|
758
|
+
header_params = opts[:header_params] || {}
|
|
759
|
+
# HTTP header 'Accept' (if needed)
|
|
760
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/json']) unless header_params['Accept']
|
|
761
|
+
# HTTP header 'Content-Type'
|
|
762
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
763
|
+
if !content_type.nil?
|
|
764
|
+
header_params['Content-Type'] = content_type
|
|
765
|
+
end
|
|
766
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
767
|
+
|
|
768
|
+
# form parameters
|
|
769
|
+
form_params = opts[:form_params] || {}
|
|
770
|
+
|
|
771
|
+
# http body (model)
|
|
772
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'export_pdf_request'])
|
|
773
|
+
|
|
774
|
+
# return_type
|
|
775
|
+
return_type = opts[:debug_return_type] || 'File'
|
|
776
|
+
|
|
777
|
+
# auth_names
|
|
778
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
779
|
+
|
|
780
|
+
new_options = opts.merge(
|
|
781
|
+
:operation => :"SlidesApi.export_presentation_pptx",
|
|
782
|
+
:header_params => header_params,
|
|
783
|
+
:query_params => query_params,
|
|
784
|
+
:form_params => form_params,
|
|
785
|
+
:body => post_body,
|
|
786
|
+
:auth_names => auth_names,
|
|
787
|
+
:return_type => return_type
|
|
788
|
+
)
|
|
789
|
+
|
|
790
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
791
|
+
if @api_client.config.debugging
|
|
792
|
+
@api_client.config.logger.debug "API called: SlidesApi#export_presentation_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
793
|
+
end
|
|
794
|
+
return data, status_code, headers
|
|
795
|
+
end
|
|
796
|
+
|
|
797
|
+
# Fetch one presentation.
|
|
798
|
+
# @param id [String] Presentation id.
|
|
799
|
+
# @param [Hash] opts the optional parameters
|
|
800
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
801
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
802
|
+
# @return [Presentation]
|
|
803
|
+
def get_presentation(id, opts = {})
|
|
804
|
+
data, _status_code, _headers = get_presentation_with_http_info(id, opts)
|
|
805
|
+
data
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
# Fetch one presentation.
|
|
809
|
+
# @param id [String] Presentation id.
|
|
810
|
+
# @param [Hash] opts the optional parameters
|
|
811
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
812
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
813
|
+
# @return [Array<(Presentation, Integer, Hash)>] Presentation data, response status code and response headers
|
|
814
|
+
def get_presentation_with_http_info(id, opts = {})
|
|
815
|
+
if @api_client.config.debugging
|
|
816
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.get_presentation ...'
|
|
817
|
+
end
|
|
818
|
+
# verify the required parameter 'id' is set
|
|
819
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
820
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.get_presentation"
|
|
821
|
+
end
|
|
822
|
+
# resource path
|
|
823
|
+
local_var_path = '/v1/slides/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
824
|
+
|
|
825
|
+
# query parameters
|
|
826
|
+
query_params = opts[:query_params] || {}
|
|
827
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
828
|
+
|
|
829
|
+
# header parameters
|
|
830
|
+
header_params = opts[:header_params] || {}
|
|
831
|
+
# HTTP header 'Accept' (if needed)
|
|
832
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
833
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
834
|
+
|
|
835
|
+
# form parameters
|
|
836
|
+
form_params = opts[:form_params] || {}
|
|
837
|
+
|
|
838
|
+
# http body (model)
|
|
839
|
+
post_body = opts[:debug_body]
|
|
840
|
+
|
|
841
|
+
# return_type
|
|
842
|
+
return_type = opts[:debug_return_type] || 'Presentation'
|
|
843
|
+
|
|
844
|
+
# auth_names
|
|
845
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
846
|
+
|
|
847
|
+
new_options = opts.merge(
|
|
848
|
+
:operation => :"SlidesApi.get_presentation",
|
|
849
|
+
:header_params => header_params,
|
|
850
|
+
:query_params => query_params,
|
|
851
|
+
:form_params => form_params,
|
|
852
|
+
:body => post_body,
|
|
853
|
+
:auth_names => auth_names,
|
|
854
|
+
:return_type => return_type
|
|
855
|
+
)
|
|
856
|
+
|
|
857
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
858
|
+
if @api_client.config.debugging
|
|
859
|
+
@api_client.config.logger.debug "API called: SlidesApi#get_presentation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
860
|
+
end
|
|
861
|
+
return data, status_code, headers
|
|
862
|
+
end
|
|
863
|
+
|
|
864
|
+
# Fetch share settings for a presentation.
|
|
865
|
+
# Owner-only. Mirror of `GET /v1/notes/{id}/share` — same shape, same fields. Returns the current public-share configuration, including the share token and computed public viewer URL when the deck is currently public.
|
|
866
|
+
# @param id [String] Presentation id.
|
|
867
|
+
# @param [Hash] opts the optional parameters
|
|
868
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
869
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
870
|
+
# @return [ShareSettings]
|
|
871
|
+
def get_presentation_share_settings(id, opts = {})
|
|
872
|
+
data, _status_code, _headers = get_presentation_share_settings_with_http_info(id, opts)
|
|
873
|
+
data
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
# Fetch share settings for a presentation.
|
|
877
|
+
# Owner-only. Mirror of `GET /v1/notes/{id}/share` — same shape, same fields. Returns the current public-share configuration, including the share token and computed public viewer URL when the deck is currently public.
|
|
878
|
+
# @param id [String] Presentation id.
|
|
879
|
+
# @param [Hash] opts the optional parameters
|
|
880
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
881
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
882
|
+
# @return [Array<(ShareSettings, Integer, Hash)>] ShareSettings data, response status code and response headers
|
|
883
|
+
def get_presentation_share_settings_with_http_info(id, opts = {})
|
|
884
|
+
if @api_client.config.debugging
|
|
885
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.get_presentation_share_settings ...'
|
|
886
|
+
end
|
|
887
|
+
# verify the required parameter 'id' is set
|
|
888
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
889
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.get_presentation_share_settings"
|
|
890
|
+
end
|
|
891
|
+
# resource path
|
|
892
|
+
local_var_path = '/v1/slides/{id}/share'.sub('{id}', CGI.escape(id.to_s))
|
|
893
|
+
|
|
894
|
+
# query parameters
|
|
895
|
+
query_params = opts[:query_params] || {}
|
|
896
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
897
|
+
|
|
898
|
+
# header parameters
|
|
899
|
+
header_params = opts[:header_params] || {}
|
|
900
|
+
# HTTP header 'Accept' (if needed)
|
|
901
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
902
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
903
|
+
|
|
904
|
+
# form parameters
|
|
905
|
+
form_params = opts[:form_params] || {}
|
|
906
|
+
|
|
907
|
+
# http body (model)
|
|
908
|
+
post_body = opts[:debug_body]
|
|
909
|
+
|
|
910
|
+
# return_type
|
|
911
|
+
return_type = opts[:debug_return_type] || 'ShareSettings'
|
|
912
|
+
|
|
913
|
+
# auth_names
|
|
914
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
915
|
+
|
|
916
|
+
new_options = opts.merge(
|
|
917
|
+
:operation => :"SlidesApi.get_presentation_share_settings",
|
|
918
|
+
:header_params => header_params,
|
|
919
|
+
:query_params => query_params,
|
|
920
|
+
:form_params => form_params,
|
|
921
|
+
:body => post_body,
|
|
922
|
+
:auth_names => auth_names,
|
|
923
|
+
:return_type => return_type
|
|
924
|
+
)
|
|
925
|
+
|
|
926
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
927
|
+
if @api_client.config.debugging
|
|
928
|
+
@api_client.config.logger.debug "API called: SlidesApi#get_presentation_share_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
929
|
+
end
|
|
930
|
+
return data, status_code, headers
|
|
931
|
+
end
|
|
932
|
+
|
|
933
|
+
# Fetch a publicly shared presentation.
|
|
934
|
+
# Unauthenticated. Mirror of `GET /public/notes/{token}`. The share token is the credential. For password-protected decks the password is supplied via `?password=`; the response distinguishes \"no password supplied\" from \"wrong password\" so the viewer can render the right prompt. Unknown tokens and disabled-share decks both return `404` to prevent enumeration.
|
|
935
|
+
# @param token [String] Opaque public-share token.
|
|
936
|
+
# @param [Hash] opts the optional parameters
|
|
937
|
+
# @option opts [String] :password Optional viewer password.
|
|
938
|
+
# @return [Hash<String, Object>]
|
|
939
|
+
def get_public_presentation(token, opts = {})
|
|
940
|
+
data, _status_code, _headers = get_public_presentation_with_http_info(token, opts)
|
|
941
|
+
data
|
|
942
|
+
end
|
|
943
|
+
|
|
944
|
+
# Fetch a publicly shared presentation.
|
|
945
|
+
# Unauthenticated. Mirror of `GET /public/notes/{token}`. The share token is the credential. For password-protected decks the password is supplied via `?password=`; the response distinguishes \"no password supplied\" from \"wrong password\" so the viewer can render the right prompt. Unknown tokens and disabled-share decks both return `404` to prevent enumeration.
|
|
946
|
+
# @param token [String] Opaque public-share token.
|
|
947
|
+
# @param [Hash] opts the optional parameters
|
|
948
|
+
# @option opts [String] :password Optional viewer password.
|
|
949
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
950
|
+
def get_public_presentation_with_http_info(token, opts = {})
|
|
951
|
+
if @api_client.config.debugging
|
|
952
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.get_public_presentation ...'
|
|
953
|
+
end
|
|
954
|
+
# verify the required parameter 'token' is set
|
|
955
|
+
if @api_client.config.client_side_validation && token.nil?
|
|
956
|
+
fail ArgumentError, "Missing the required parameter 'token' when calling SlidesApi.get_public_presentation"
|
|
957
|
+
end
|
|
958
|
+
# resource path
|
|
959
|
+
local_var_path = '/public/slides/{token}'.sub('{token}', CGI.escape(token.to_s))
|
|
960
|
+
|
|
961
|
+
# query parameters
|
|
962
|
+
query_params = opts[:query_params] || {}
|
|
963
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
|
964
|
+
|
|
965
|
+
# header parameters
|
|
966
|
+
header_params = opts[:header_params] || {}
|
|
967
|
+
# HTTP header 'Accept' (if needed)
|
|
968
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
969
|
+
|
|
970
|
+
# form parameters
|
|
971
|
+
form_params = opts[:form_params] || {}
|
|
972
|
+
|
|
973
|
+
# http body (model)
|
|
974
|
+
post_body = opts[:debug_body]
|
|
975
|
+
|
|
976
|
+
# return_type
|
|
977
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
978
|
+
|
|
979
|
+
# auth_names
|
|
980
|
+
auth_names = opts[:debug_auth_names] || []
|
|
981
|
+
|
|
982
|
+
new_options = opts.merge(
|
|
983
|
+
:operation => :"SlidesApi.get_public_presentation",
|
|
984
|
+
:header_params => header_params,
|
|
985
|
+
:query_params => query_params,
|
|
986
|
+
:form_params => form_params,
|
|
987
|
+
:body => post_body,
|
|
988
|
+
:auth_names => auth_names,
|
|
989
|
+
:return_type => return_type
|
|
990
|
+
)
|
|
991
|
+
|
|
992
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
993
|
+
if @api_client.config.debugging
|
|
994
|
+
@api_client.config.logger.debug "API called: SlidesApi#get_public_presentation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
995
|
+
end
|
|
996
|
+
return data, status_code, headers
|
|
997
|
+
end
|
|
998
|
+
|
|
999
|
+
# Fetch one slide.
|
|
1000
|
+
# @param id [String] Presentation id.
|
|
1001
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
1002
|
+
# @param [Hash] opts the optional parameters
|
|
1003
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1004
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1005
|
+
# @return [Slide]
|
|
1006
|
+
def get_slide(id, slide_id, opts = {})
|
|
1007
|
+
data, _status_code, _headers = get_slide_with_http_info(id, slide_id, opts)
|
|
1008
|
+
data
|
|
1009
|
+
end
|
|
1010
|
+
|
|
1011
|
+
# Fetch one slide.
|
|
1012
|
+
# @param id [String] Presentation id.
|
|
1013
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
1014
|
+
# @param [Hash] opts the optional parameters
|
|
1015
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1016
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1017
|
+
# @return [Array<(Slide, Integer, Hash)>] Slide data, response status code and response headers
|
|
1018
|
+
def get_slide_with_http_info(id, slide_id, opts = {})
|
|
1019
|
+
if @api_client.config.debugging
|
|
1020
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.get_slide ...'
|
|
1021
|
+
end
|
|
1022
|
+
# verify the required parameter 'id' is set
|
|
1023
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1024
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.get_slide"
|
|
1025
|
+
end
|
|
1026
|
+
# verify the required parameter 'slide_id' is set
|
|
1027
|
+
if @api_client.config.client_side_validation && slide_id.nil?
|
|
1028
|
+
fail ArgumentError, "Missing the required parameter 'slide_id' when calling SlidesApi.get_slide"
|
|
1029
|
+
end
|
|
1030
|
+
# resource path
|
|
1031
|
+
local_var_path = '/v1/slides/{id}/slides/{slideId}'.sub('{id}', CGI.escape(id.to_s)).sub('{slideId}', CGI.escape(slide_id.to_s))
|
|
1032
|
+
|
|
1033
|
+
# query parameters
|
|
1034
|
+
query_params = opts[:query_params] || {}
|
|
1035
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1036
|
+
|
|
1037
|
+
# header parameters
|
|
1038
|
+
header_params = opts[:header_params] || {}
|
|
1039
|
+
# HTTP header 'Accept' (if needed)
|
|
1040
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1041
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
1042
|
+
|
|
1043
|
+
# form parameters
|
|
1044
|
+
form_params = opts[:form_params] || {}
|
|
1045
|
+
|
|
1046
|
+
# http body (model)
|
|
1047
|
+
post_body = opts[:debug_body]
|
|
1048
|
+
|
|
1049
|
+
# return_type
|
|
1050
|
+
return_type = opts[:debug_return_type] || 'Slide'
|
|
1051
|
+
|
|
1052
|
+
# auth_names
|
|
1053
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1054
|
+
|
|
1055
|
+
new_options = opts.merge(
|
|
1056
|
+
:operation => :"SlidesApi.get_slide",
|
|
1057
|
+
:header_params => header_params,
|
|
1058
|
+
:query_params => query_params,
|
|
1059
|
+
:form_params => form_params,
|
|
1060
|
+
:body => post_body,
|
|
1061
|
+
:auth_names => auth_names,
|
|
1062
|
+
:return_type => return_type
|
|
1063
|
+
)
|
|
1064
|
+
|
|
1065
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1066
|
+
if @api_client.config.debugging
|
|
1067
|
+
@api_client.config.logger.debug "API called: SlidesApi#get_slide\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1068
|
+
end
|
|
1069
|
+
return data, status_code, headers
|
|
1070
|
+
end
|
|
1071
|
+
|
|
1072
|
+
# Fetch one slide element.
|
|
1073
|
+
# @param id [String] Presentation id.
|
|
1074
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
1075
|
+
# @param element_id [String] Slide-element id.
|
|
1076
|
+
# @param [Hash] opts the optional parameters
|
|
1077
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1078
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1079
|
+
# @return [SlideElement]
|
|
1080
|
+
def get_slide_element(id, slide_id, element_id, opts = {})
|
|
1081
|
+
data, _status_code, _headers = get_slide_element_with_http_info(id, slide_id, element_id, opts)
|
|
1082
|
+
data
|
|
1083
|
+
end
|
|
1084
|
+
|
|
1085
|
+
# Fetch one slide element.
|
|
1086
|
+
# @param id [String] Presentation id.
|
|
1087
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
1088
|
+
# @param element_id [String] Slide-element id.
|
|
1089
|
+
# @param [Hash] opts the optional parameters
|
|
1090
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1091
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1092
|
+
# @return [Array<(SlideElement, Integer, Hash)>] SlideElement data, response status code and response headers
|
|
1093
|
+
def get_slide_element_with_http_info(id, slide_id, element_id, opts = {})
|
|
1094
|
+
if @api_client.config.debugging
|
|
1095
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.get_slide_element ...'
|
|
1096
|
+
end
|
|
1097
|
+
# verify the required parameter 'id' is set
|
|
1098
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1099
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.get_slide_element"
|
|
1100
|
+
end
|
|
1101
|
+
# verify the required parameter 'slide_id' is set
|
|
1102
|
+
if @api_client.config.client_side_validation && slide_id.nil?
|
|
1103
|
+
fail ArgumentError, "Missing the required parameter 'slide_id' when calling SlidesApi.get_slide_element"
|
|
1104
|
+
end
|
|
1105
|
+
# verify the required parameter 'element_id' is set
|
|
1106
|
+
if @api_client.config.client_side_validation && element_id.nil?
|
|
1107
|
+
fail ArgumentError, "Missing the required parameter 'element_id' when calling SlidesApi.get_slide_element"
|
|
1108
|
+
end
|
|
1109
|
+
# resource path
|
|
1110
|
+
local_var_path = '/v1/slides/{id}/slides/{slideId}/elements/{elementId}'.sub('{id}', CGI.escape(id.to_s)).sub('{slideId}', CGI.escape(slide_id.to_s)).sub('{elementId}', CGI.escape(element_id.to_s))
|
|
1111
|
+
|
|
1112
|
+
# query parameters
|
|
1113
|
+
query_params = opts[:query_params] || {}
|
|
1114
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1115
|
+
|
|
1116
|
+
# header parameters
|
|
1117
|
+
header_params = opts[:header_params] || {}
|
|
1118
|
+
# HTTP header 'Accept' (if needed)
|
|
1119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1120
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
1121
|
+
|
|
1122
|
+
# form parameters
|
|
1123
|
+
form_params = opts[:form_params] || {}
|
|
1124
|
+
|
|
1125
|
+
# http body (model)
|
|
1126
|
+
post_body = opts[:debug_body]
|
|
1127
|
+
|
|
1128
|
+
# return_type
|
|
1129
|
+
return_type = opts[:debug_return_type] || 'SlideElement'
|
|
1130
|
+
|
|
1131
|
+
# auth_names
|
|
1132
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1133
|
+
|
|
1134
|
+
new_options = opts.merge(
|
|
1135
|
+
:operation => :"SlidesApi.get_slide_element",
|
|
1136
|
+
:header_params => header_params,
|
|
1137
|
+
:query_params => query_params,
|
|
1138
|
+
:form_params => form_params,
|
|
1139
|
+
:body => post_body,
|
|
1140
|
+
:auth_names => auth_names,
|
|
1141
|
+
:return_type => return_type
|
|
1142
|
+
)
|
|
1143
|
+
|
|
1144
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1145
|
+
if @api_client.config.debugging
|
|
1146
|
+
@api_client.config.logger.debug "API called: SlidesApi#get_slide_element\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1147
|
+
end
|
|
1148
|
+
return data, status_code, headers
|
|
1149
|
+
end
|
|
1150
|
+
|
|
1151
|
+
# List presentations across connected accounts.
|
|
1152
|
+
# Fan-out list. Returns every presentation visible to the caller across every connected slides provider. Pass `?accountId=` or `?provider=` to scope to a single source.
|
|
1153
|
+
# @param [Hash] opts the optional parameters
|
|
1154
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1155
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
1156
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1157
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1158
|
+
# @option opts [Integer] :offset (default to 0)
|
|
1159
|
+
# @return [PresentationListEnvelope]
|
|
1160
|
+
def list_presentations(opts = {})
|
|
1161
|
+
data, _status_code, _headers = list_presentations_with_http_info(opts)
|
|
1162
|
+
data
|
|
1163
|
+
end
|
|
1164
|
+
|
|
1165
|
+
# List presentations across connected accounts.
|
|
1166
|
+
# Fan-out list. Returns every presentation visible to the caller across every connected slides provider. Pass `?accountId=` or `?provider=` to scope to a single source.
|
|
1167
|
+
# @param [Hash] opts the optional parameters
|
|
1168
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1169
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
1170
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1171
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1172
|
+
# @option opts [Integer] :offset (default to 0)
|
|
1173
|
+
# @return [Array<(PresentationListEnvelope, Integer, Hash)>] PresentationListEnvelope data, response status code and response headers
|
|
1174
|
+
def list_presentations_with_http_info(opts = {})
|
|
1175
|
+
if @api_client.config.debugging
|
|
1176
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.list_presentations ...'
|
|
1177
|
+
end
|
|
1178
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1179
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SlidesApi.list_presentations, must be greater than or equal to 1.'
|
|
1180
|
+
end
|
|
1181
|
+
|
|
1182
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
|
1183
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling SlidesApi.list_presentations, must be greater than or equal to 0.'
|
|
1184
|
+
end
|
|
1185
|
+
|
|
1186
|
+
# resource path
|
|
1187
|
+
local_var_path = '/v1/slides'
|
|
1188
|
+
|
|
1189
|
+
# query parameters
|
|
1190
|
+
query_params = opts[:query_params] || {}
|
|
1191
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1192
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
1193
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1194
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1195
|
+
|
|
1196
|
+
# header parameters
|
|
1197
|
+
header_params = opts[:header_params] || {}
|
|
1198
|
+
# HTTP header 'Accept' (if needed)
|
|
1199
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1200
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
1201
|
+
|
|
1202
|
+
# form parameters
|
|
1203
|
+
form_params = opts[:form_params] || {}
|
|
1204
|
+
|
|
1205
|
+
# http body (model)
|
|
1206
|
+
post_body = opts[:debug_body]
|
|
1207
|
+
|
|
1208
|
+
# return_type
|
|
1209
|
+
return_type = opts[:debug_return_type] || 'PresentationListEnvelope'
|
|
1210
|
+
|
|
1211
|
+
# auth_names
|
|
1212
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1213
|
+
|
|
1214
|
+
new_options = opts.merge(
|
|
1215
|
+
:operation => :"SlidesApi.list_presentations",
|
|
1216
|
+
:header_params => header_params,
|
|
1217
|
+
:query_params => query_params,
|
|
1218
|
+
:form_params => form_params,
|
|
1219
|
+
:body => post_body,
|
|
1220
|
+
:auth_names => auth_names,
|
|
1221
|
+
:return_type => return_type
|
|
1222
|
+
)
|
|
1223
|
+
|
|
1224
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1225
|
+
if @api_client.config.debugging
|
|
1226
|
+
@api_client.config.logger.debug "API called: SlidesApi#list_presentations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1227
|
+
end
|
|
1228
|
+
return data, status_code, headers
|
|
1229
|
+
end
|
|
1230
|
+
|
|
1231
|
+
# List the canvas elements on a slide.
|
|
1232
|
+
# @param id [String] Presentation id.
|
|
1233
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
1234
|
+
# @param [Hash] opts the optional parameters
|
|
1235
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1236
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1237
|
+
# @return [SlideElementList]
|
|
1238
|
+
def list_slide_elements(id, slide_id, opts = {})
|
|
1239
|
+
data, _status_code, _headers = list_slide_elements_with_http_info(id, slide_id, opts)
|
|
1240
|
+
data
|
|
1241
|
+
end
|
|
1242
|
+
|
|
1243
|
+
# List the canvas elements on a slide.
|
|
1244
|
+
# @param id [String] Presentation id.
|
|
1245
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
1246
|
+
# @param [Hash] opts the optional parameters
|
|
1247
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1248
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1249
|
+
# @return [Array<(SlideElementList, Integer, Hash)>] SlideElementList data, response status code and response headers
|
|
1250
|
+
def list_slide_elements_with_http_info(id, slide_id, opts = {})
|
|
1251
|
+
if @api_client.config.debugging
|
|
1252
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.list_slide_elements ...'
|
|
1253
|
+
end
|
|
1254
|
+
# verify the required parameter 'id' is set
|
|
1255
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1256
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.list_slide_elements"
|
|
1257
|
+
end
|
|
1258
|
+
# verify the required parameter 'slide_id' is set
|
|
1259
|
+
if @api_client.config.client_side_validation && slide_id.nil?
|
|
1260
|
+
fail ArgumentError, "Missing the required parameter 'slide_id' when calling SlidesApi.list_slide_elements"
|
|
1261
|
+
end
|
|
1262
|
+
# resource path
|
|
1263
|
+
local_var_path = '/v1/slides/{id}/slides/{slideId}/elements'.sub('{id}', CGI.escape(id.to_s)).sub('{slideId}', CGI.escape(slide_id.to_s))
|
|
1264
|
+
|
|
1265
|
+
# query parameters
|
|
1266
|
+
query_params = opts[:query_params] || {}
|
|
1267
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1268
|
+
|
|
1269
|
+
# header parameters
|
|
1270
|
+
header_params = opts[:header_params] || {}
|
|
1271
|
+
# HTTP header 'Accept' (if needed)
|
|
1272
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1273
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
1274
|
+
|
|
1275
|
+
# form parameters
|
|
1276
|
+
form_params = opts[:form_params] || {}
|
|
1277
|
+
|
|
1278
|
+
# http body (model)
|
|
1279
|
+
post_body = opts[:debug_body]
|
|
1280
|
+
|
|
1281
|
+
# return_type
|
|
1282
|
+
return_type = opts[:debug_return_type] || 'SlideElementList'
|
|
1283
|
+
|
|
1284
|
+
# auth_names
|
|
1285
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1286
|
+
|
|
1287
|
+
new_options = opts.merge(
|
|
1288
|
+
:operation => :"SlidesApi.list_slide_elements",
|
|
1289
|
+
:header_params => header_params,
|
|
1290
|
+
:query_params => query_params,
|
|
1291
|
+
:form_params => form_params,
|
|
1292
|
+
:body => post_body,
|
|
1293
|
+
:auth_names => auth_names,
|
|
1294
|
+
:return_type => return_type
|
|
1295
|
+
)
|
|
1296
|
+
|
|
1297
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1298
|
+
if @api_client.config.debugging
|
|
1299
|
+
@api_client.config.logger.debug "API called: SlidesApi#list_slide_elements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1300
|
+
end
|
|
1301
|
+
return data, status_code, headers
|
|
1302
|
+
end
|
|
1303
|
+
|
|
1304
|
+
# List slides in a presentation.
|
|
1305
|
+
# Single-account list. Returns slides in the order set by their `position` field.
|
|
1306
|
+
# @param id [String] Presentation id.
|
|
1307
|
+
# @param [Hash] opts the optional parameters
|
|
1308
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1309
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1310
|
+
# @return [SlideList]
|
|
1311
|
+
def list_slides_in_presentation(id, opts = {})
|
|
1312
|
+
data, _status_code, _headers = list_slides_in_presentation_with_http_info(id, opts)
|
|
1313
|
+
data
|
|
1314
|
+
end
|
|
1315
|
+
|
|
1316
|
+
# List slides in a presentation.
|
|
1317
|
+
# Single-account list. Returns slides in the order set by their `position` field.
|
|
1318
|
+
# @param id [String] Presentation id.
|
|
1319
|
+
# @param [Hash] opts the optional parameters
|
|
1320
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1321
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1322
|
+
# @return [Array<(SlideList, Integer, Hash)>] SlideList data, response status code and response headers
|
|
1323
|
+
def list_slides_in_presentation_with_http_info(id, opts = {})
|
|
1324
|
+
if @api_client.config.debugging
|
|
1325
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.list_slides_in_presentation ...'
|
|
1326
|
+
end
|
|
1327
|
+
# verify the required parameter 'id' is set
|
|
1328
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1329
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.list_slides_in_presentation"
|
|
1330
|
+
end
|
|
1331
|
+
# resource path
|
|
1332
|
+
local_var_path = '/v1/slides/{id}/slides'.sub('{id}', CGI.escape(id.to_s))
|
|
1333
|
+
|
|
1334
|
+
# query parameters
|
|
1335
|
+
query_params = opts[:query_params] || {}
|
|
1336
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1337
|
+
|
|
1338
|
+
# header parameters
|
|
1339
|
+
header_params = opts[:header_params] || {}
|
|
1340
|
+
# HTTP header 'Accept' (if needed)
|
|
1341
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1342
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
1343
|
+
|
|
1344
|
+
# form parameters
|
|
1345
|
+
form_params = opts[:form_params] || {}
|
|
1346
|
+
|
|
1347
|
+
# http body (model)
|
|
1348
|
+
post_body = opts[:debug_body]
|
|
1349
|
+
|
|
1350
|
+
# return_type
|
|
1351
|
+
return_type = opts[:debug_return_type] || 'SlideList'
|
|
1352
|
+
|
|
1353
|
+
# auth_names
|
|
1354
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1355
|
+
|
|
1356
|
+
new_options = opts.merge(
|
|
1357
|
+
:operation => :"SlidesApi.list_slides_in_presentation",
|
|
1358
|
+
:header_params => header_params,
|
|
1359
|
+
:query_params => query_params,
|
|
1360
|
+
:form_params => form_params,
|
|
1361
|
+
:body => post_body,
|
|
1362
|
+
:auth_names => auth_names,
|
|
1363
|
+
:return_type => return_type
|
|
1364
|
+
)
|
|
1365
|
+
|
|
1366
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1367
|
+
if @api_client.config.debugging
|
|
1368
|
+
@api_client.config.logger.debug "API called: SlidesApi#list_slides_in_presentation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1369
|
+
end
|
|
1370
|
+
return data, status_code, headers
|
|
1371
|
+
end
|
|
1372
|
+
|
|
1373
|
+
# Rotate the share token, invalidating outstanding URLs.
|
|
1374
|
+
# @param id [String] Presentation id.
|
|
1375
|
+
# @param [Hash] opts the optional parameters
|
|
1376
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1377
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1378
|
+
# @return [ShareSettings]
|
|
1379
|
+
def rotate_presentation_share_token(id, opts = {})
|
|
1380
|
+
data, _status_code, _headers = rotate_presentation_share_token_with_http_info(id, opts)
|
|
1381
|
+
data
|
|
1382
|
+
end
|
|
1383
|
+
|
|
1384
|
+
# Rotate the share token, invalidating outstanding URLs.
|
|
1385
|
+
# @param id [String] Presentation id.
|
|
1386
|
+
# @param [Hash] opts the optional parameters
|
|
1387
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1388
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1389
|
+
# @return [Array<(ShareSettings, Integer, Hash)>] ShareSettings data, response status code and response headers
|
|
1390
|
+
def rotate_presentation_share_token_with_http_info(id, opts = {})
|
|
1391
|
+
if @api_client.config.debugging
|
|
1392
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.rotate_presentation_share_token ...'
|
|
1393
|
+
end
|
|
1394
|
+
# verify the required parameter 'id' is set
|
|
1395
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1396
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.rotate_presentation_share_token"
|
|
1397
|
+
end
|
|
1398
|
+
# resource path
|
|
1399
|
+
local_var_path = '/v1/slides/{id}/share/rotate'.sub('{id}', CGI.escape(id.to_s))
|
|
1400
|
+
|
|
1401
|
+
# query parameters
|
|
1402
|
+
query_params = opts[:query_params] || {}
|
|
1403
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1404
|
+
|
|
1405
|
+
# header parameters
|
|
1406
|
+
header_params = opts[:header_params] || {}
|
|
1407
|
+
# HTTP header 'Accept' (if needed)
|
|
1408
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1409
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
1410
|
+
|
|
1411
|
+
# form parameters
|
|
1412
|
+
form_params = opts[:form_params] || {}
|
|
1413
|
+
|
|
1414
|
+
# http body (model)
|
|
1415
|
+
post_body = opts[:debug_body]
|
|
1416
|
+
|
|
1417
|
+
# return_type
|
|
1418
|
+
return_type = opts[:debug_return_type] || 'ShareSettings'
|
|
1419
|
+
|
|
1420
|
+
# auth_names
|
|
1421
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1422
|
+
|
|
1423
|
+
new_options = opts.merge(
|
|
1424
|
+
:operation => :"SlidesApi.rotate_presentation_share_token",
|
|
1425
|
+
:header_params => header_params,
|
|
1426
|
+
:query_params => query_params,
|
|
1427
|
+
:form_params => form_params,
|
|
1428
|
+
:body => post_body,
|
|
1429
|
+
:auth_names => auth_names,
|
|
1430
|
+
:return_type => return_type
|
|
1431
|
+
)
|
|
1432
|
+
|
|
1433
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1434
|
+
if @api_client.config.debugging
|
|
1435
|
+
@api_client.config.logger.debug "API called: SlidesApi#rotate_presentation_share_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1436
|
+
end
|
|
1437
|
+
return data, status_code, headers
|
|
1438
|
+
end
|
|
1439
|
+
|
|
1440
|
+
# Update presentation metadata (partial).
|
|
1441
|
+
# @param id [String] Presentation id.
|
|
1442
|
+
# @param update_presentation_request [UpdatePresentationRequest]
|
|
1443
|
+
# @param [Hash] opts the optional parameters
|
|
1444
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1445
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1446
|
+
# @return [Presentation]
|
|
1447
|
+
def update_presentation(id, update_presentation_request, opts = {})
|
|
1448
|
+
data, _status_code, _headers = update_presentation_with_http_info(id, update_presentation_request, opts)
|
|
1449
|
+
data
|
|
1450
|
+
end
|
|
1451
|
+
|
|
1452
|
+
# Update presentation metadata (partial).
|
|
1453
|
+
# @param id [String] Presentation id.
|
|
1454
|
+
# @param update_presentation_request [UpdatePresentationRequest]
|
|
1455
|
+
# @param [Hash] opts the optional parameters
|
|
1456
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1457
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1458
|
+
# @return [Array<(Presentation, Integer, Hash)>] Presentation data, response status code and response headers
|
|
1459
|
+
def update_presentation_with_http_info(id, update_presentation_request, opts = {})
|
|
1460
|
+
if @api_client.config.debugging
|
|
1461
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.update_presentation ...'
|
|
1462
|
+
end
|
|
1463
|
+
# verify the required parameter 'id' is set
|
|
1464
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1465
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.update_presentation"
|
|
1466
|
+
end
|
|
1467
|
+
# verify the required parameter 'update_presentation_request' is set
|
|
1468
|
+
if @api_client.config.client_side_validation && update_presentation_request.nil?
|
|
1469
|
+
fail ArgumentError, "Missing the required parameter 'update_presentation_request' when calling SlidesApi.update_presentation"
|
|
1470
|
+
end
|
|
1471
|
+
# resource path
|
|
1472
|
+
local_var_path = '/v1/slides/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
1473
|
+
|
|
1474
|
+
# query parameters
|
|
1475
|
+
query_params = opts[:query_params] || {}
|
|
1476
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1477
|
+
|
|
1478
|
+
# header parameters
|
|
1479
|
+
header_params = opts[:header_params] || {}
|
|
1480
|
+
# HTTP header 'Accept' (if needed)
|
|
1481
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1482
|
+
# HTTP header 'Content-Type'
|
|
1483
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1484
|
+
if !content_type.nil?
|
|
1485
|
+
header_params['Content-Type'] = content_type
|
|
1486
|
+
end
|
|
1487
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
1488
|
+
|
|
1489
|
+
# form parameters
|
|
1490
|
+
form_params = opts[:form_params] || {}
|
|
1491
|
+
|
|
1492
|
+
# http body (model)
|
|
1493
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_presentation_request)
|
|
1494
|
+
|
|
1495
|
+
# return_type
|
|
1496
|
+
return_type = opts[:debug_return_type] || 'Presentation'
|
|
1497
|
+
|
|
1498
|
+
# auth_names
|
|
1499
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1500
|
+
|
|
1501
|
+
new_options = opts.merge(
|
|
1502
|
+
:operation => :"SlidesApi.update_presentation",
|
|
1503
|
+
:header_params => header_params,
|
|
1504
|
+
:query_params => query_params,
|
|
1505
|
+
:form_params => form_params,
|
|
1506
|
+
:body => post_body,
|
|
1507
|
+
:auth_names => auth_names,
|
|
1508
|
+
:return_type => return_type
|
|
1509
|
+
)
|
|
1510
|
+
|
|
1511
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1512
|
+
if @api_client.config.debugging
|
|
1513
|
+
@api_client.config.logger.debug "API called: SlidesApi#update_presentation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1514
|
+
end
|
|
1515
|
+
return data, status_code, headers
|
|
1516
|
+
end
|
|
1517
|
+
|
|
1518
|
+
# Update a slide (partial).
|
|
1519
|
+
# @param id [String] Presentation id.
|
|
1520
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
1521
|
+
# @param update_slide_request [UpdateSlideRequest]
|
|
1522
|
+
# @param [Hash] opts the optional parameters
|
|
1523
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1524
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1525
|
+
# @return [Slide]
|
|
1526
|
+
def update_slide(id, slide_id, update_slide_request, opts = {})
|
|
1527
|
+
data, _status_code, _headers = update_slide_with_http_info(id, slide_id, update_slide_request, opts)
|
|
1528
|
+
data
|
|
1529
|
+
end
|
|
1530
|
+
|
|
1531
|
+
# Update a slide (partial).
|
|
1532
|
+
# @param id [String] Presentation id.
|
|
1533
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
1534
|
+
# @param update_slide_request [UpdateSlideRequest]
|
|
1535
|
+
# @param [Hash] opts the optional parameters
|
|
1536
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1537
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1538
|
+
# @return [Array<(Slide, Integer, Hash)>] Slide data, response status code and response headers
|
|
1539
|
+
def update_slide_with_http_info(id, slide_id, update_slide_request, opts = {})
|
|
1540
|
+
if @api_client.config.debugging
|
|
1541
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.update_slide ...'
|
|
1542
|
+
end
|
|
1543
|
+
# verify the required parameter 'id' is set
|
|
1544
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1545
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.update_slide"
|
|
1546
|
+
end
|
|
1547
|
+
# verify the required parameter 'slide_id' is set
|
|
1548
|
+
if @api_client.config.client_side_validation && slide_id.nil?
|
|
1549
|
+
fail ArgumentError, "Missing the required parameter 'slide_id' when calling SlidesApi.update_slide"
|
|
1550
|
+
end
|
|
1551
|
+
# verify the required parameter 'update_slide_request' is set
|
|
1552
|
+
if @api_client.config.client_side_validation && update_slide_request.nil?
|
|
1553
|
+
fail ArgumentError, "Missing the required parameter 'update_slide_request' when calling SlidesApi.update_slide"
|
|
1554
|
+
end
|
|
1555
|
+
# resource path
|
|
1556
|
+
local_var_path = '/v1/slides/{id}/slides/{slideId}'.sub('{id}', CGI.escape(id.to_s)).sub('{slideId}', CGI.escape(slide_id.to_s))
|
|
1557
|
+
|
|
1558
|
+
# query parameters
|
|
1559
|
+
query_params = opts[:query_params] || {}
|
|
1560
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1561
|
+
|
|
1562
|
+
# header parameters
|
|
1563
|
+
header_params = opts[:header_params] || {}
|
|
1564
|
+
# HTTP header 'Accept' (if needed)
|
|
1565
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1566
|
+
# HTTP header 'Content-Type'
|
|
1567
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1568
|
+
if !content_type.nil?
|
|
1569
|
+
header_params['Content-Type'] = content_type
|
|
1570
|
+
end
|
|
1571
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
1572
|
+
|
|
1573
|
+
# form parameters
|
|
1574
|
+
form_params = opts[:form_params] || {}
|
|
1575
|
+
|
|
1576
|
+
# http body (model)
|
|
1577
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_slide_request)
|
|
1578
|
+
|
|
1579
|
+
# return_type
|
|
1580
|
+
return_type = opts[:debug_return_type] || 'Slide'
|
|
1581
|
+
|
|
1582
|
+
# auth_names
|
|
1583
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1584
|
+
|
|
1585
|
+
new_options = opts.merge(
|
|
1586
|
+
:operation => :"SlidesApi.update_slide",
|
|
1587
|
+
:header_params => header_params,
|
|
1588
|
+
:query_params => query_params,
|
|
1589
|
+
:form_params => form_params,
|
|
1590
|
+
:body => post_body,
|
|
1591
|
+
:auth_names => auth_names,
|
|
1592
|
+
:return_type => return_type
|
|
1593
|
+
)
|
|
1594
|
+
|
|
1595
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1596
|
+
if @api_client.config.debugging
|
|
1597
|
+
@api_client.config.logger.debug "API called: SlidesApi#update_slide\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1598
|
+
end
|
|
1599
|
+
return data, status_code, headers
|
|
1600
|
+
end
|
|
1601
|
+
|
|
1602
|
+
# Update a slide element (partial).
|
|
1603
|
+
# @param id [String] Presentation id.
|
|
1604
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
1605
|
+
# @param element_id [String] Slide-element id.
|
|
1606
|
+
# @param update_slide_element_request [UpdateSlideElementRequest]
|
|
1607
|
+
# @param [Hash] opts the optional parameters
|
|
1608
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1609
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1610
|
+
# @return [SlideElement]
|
|
1611
|
+
def update_slide_element(id, slide_id, element_id, update_slide_element_request, opts = {})
|
|
1612
|
+
data, _status_code, _headers = update_slide_element_with_http_info(id, slide_id, element_id, update_slide_element_request, opts)
|
|
1613
|
+
data
|
|
1614
|
+
end
|
|
1615
|
+
|
|
1616
|
+
# Update a slide element (partial).
|
|
1617
|
+
# @param id [String] Presentation id.
|
|
1618
|
+
# @param slide_id [String] Slide id within the presentation.
|
|
1619
|
+
# @param element_id [String] Slide-element id.
|
|
1620
|
+
# @param update_slide_element_request [UpdateSlideElementRequest]
|
|
1621
|
+
# @param [Hash] opts the optional parameters
|
|
1622
|
+
# @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
|
|
1623
|
+
# @option opts [String] :x_workspace_id Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
|
|
1624
|
+
# @return [Array<(SlideElement, Integer, Hash)>] SlideElement data, response status code and response headers
|
|
1625
|
+
def update_slide_element_with_http_info(id, slide_id, element_id, update_slide_element_request, opts = {})
|
|
1626
|
+
if @api_client.config.debugging
|
|
1627
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.update_slide_element ...'
|
|
1628
|
+
end
|
|
1629
|
+
# verify the required parameter 'id' is set
|
|
1630
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1631
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SlidesApi.update_slide_element"
|
|
1632
|
+
end
|
|
1633
|
+
# verify the required parameter 'slide_id' is set
|
|
1634
|
+
if @api_client.config.client_side_validation && slide_id.nil?
|
|
1635
|
+
fail ArgumentError, "Missing the required parameter 'slide_id' when calling SlidesApi.update_slide_element"
|
|
1636
|
+
end
|
|
1637
|
+
# verify the required parameter 'element_id' is set
|
|
1638
|
+
if @api_client.config.client_side_validation && element_id.nil?
|
|
1639
|
+
fail ArgumentError, "Missing the required parameter 'element_id' when calling SlidesApi.update_slide_element"
|
|
1640
|
+
end
|
|
1641
|
+
# verify the required parameter 'update_slide_element_request' is set
|
|
1642
|
+
if @api_client.config.client_side_validation && update_slide_element_request.nil?
|
|
1643
|
+
fail ArgumentError, "Missing the required parameter 'update_slide_element_request' when calling SlidesApi.update_slide_element"
|
|
1644
|
+
end
|
|
1645
|
+
# resource path
|
|
1646
|
+
local_var_path = '/v1/slides/{id}/slides/{slideId}/elements/{elementId}'.sub('{id}', CGI.escape(id.to_s)).sub('{slideId}', CGI.escape(slide_id.to_s)).sub('{elementId}', CGI.escape(element_id.to_s))
|
|
1647
|
+
|
|
1648
|
+
# query parameters
|
|
1649
|
+
query_params = opts[:query_params] || {}
|
|
1650
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1651
|
+
|
|
1652
|
+
# header parameters
|
|
1653
|
+
header_params = opts[:header_params] || {}
|
|
1654
|
+
# HTTP header 'Accept' (if needed)
|
|
1655
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1656
|
+
# HTTP header 'Content-Type'
|
|
1657
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1658
|
+
if !content_type.nil?
|
|
1659
|
+
header_params['Content-Type'] = content_type
|
|
1660
|
+
end
|
|
1661
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
1662
|
+
|
|
1663
|
+
# form parameters
|
|
1664
|
+
form_params = opts[:form_params] || {}
|
|
1665
|
+
|
|
1666
|
+
# http body (model)
|
|
1667
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_slide_element_request)
|
|
1668
|
+
|
|
1669
|
+
# return_type
|
|
1670
|
+
return_type = opts[:debug_return_type] || 'SlideElement'
|
|
1671
|
+
|
|
1672
|
+
# auth_names
|
|
1673
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1674
|
+
|
|
1675
|
+
new_options = opts.merge(
|
|
1676
|
+
:operation => :"SlidesApi.update_slide_element",
|
|
1677
|
+
:header_params => header_params,
|
|
1678
|
+
:query_params => query_params,
|
|
1679
|
+
:form_params => form_params,
|
|
1680
|
+
:body => post_body,
|
|
1681
|
+
:auth_names => auth_names,
|
|
1682
|
+
:return_type => return_type
|
|
1683
|
+
)
|
|
1684
|
+
|
|
1685
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1686
|
+
if @api_client.config.debugging
|
|
1687
|
+
@api_client.config.logger.debug "API called: SlidesApi#update_slide_element\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1688
|
+
end
|
|
1689
|
+
return data, status_code, headers
|
|
1690
|
+
end
|
|
1691
|
+
end
|
|
1692
|
+
end
|