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,2518 @@
|
|
|
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 FilesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Delete multiple files in one call.
|
|
23
|
+
# @param bulk_delete_files_request [BulkDeleteFilesRequest]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [BulkFilesResponse]
|
|
26
|
+
def bulk_delete_files(bulk_delete_files_request, opts = {})
|
|
27
|
+
data, _status_code, _headers = bulk_delete_files_with_http_info(bulk_delete_files_request, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Delete multiple files in one call.
|
|
32
|
+
# @param bulk_delete_files_request [BulkDeleteFilesRequest]
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(BulkFilesResponse, Integer, Hash)>] BulkFilesResponse data, response status code and response headers
|
|
35
|
+
def bulk_delete_files_with_http_info(bulk_delete_files_request, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.bulk_delete_files ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'bulk_delete_files_request' is set
|
|
40
|
+
if @api_client.config.client_side_validation && bulk_delete_files_request.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'bulk_delete_files_request' when calling FilesApi.bulk_delete_files"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/v1/files/delete'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
53
|
+
# HTTP header 'Content-Type'
|
|
54
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
55
|
+
if !content_type.nil?
|
|
56
|
+
header_params['Content-Type'] = content_type
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# form parameters
|
|
60
|
+
form_params = opts[:form_params] || {}
|
|
61
|
+
|
|
62
|
+
# http body (model)
|
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_delete_files_request)
|
|
64
|
+
|
|
65
|
+
# return_type
|
|
66
|
+
return_type = opts[:debug_return_type] || 'BulkFilesResponse'
|
|
67
|
+
|
|
68
|
+
# auth_names
|
|
69
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
70
|
+
|
|
71
|
+
new_options = opts.merge(
|
|
72
|
+
:operation => :"FilesApi.bulk_delete_files",
|
|
73
|
+
:header_params => header_params,
|
|
74
|
+
:query_params => query_params,
|
|
75
|
+
:form_params => form_params,
|
|
76
|
+
:body => post_body,
|
|
77
|
+
:auth_names => auth_names,
|
|
78
|
+
:return_type => return_type
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
82
|
+
if @api_client.config.debugging
|
|
83
|
+
@api_client.config.logger.debug "API called: FilesApi#bulk_delete_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
+
end
|
|
85
|
+
return data, status_code, headers
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Move multiple files to a target folder.
|
|
89
|
+
# @param bulk_move_files_request [BulkMoveFilesRequest]
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [BulkFilesResponse]
|
|
92
|
+
def bulk_move_files(bulk_move_files_request, opts = {})
|
|
93
|
+
data, _status_code, _headers = bulk_move_files_with_http_info(bulk_move_files_request, opts)
|
|
94
|
+
data
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Move multiple files to a target folder.
|
|
98
|
+
# @param bulk_move_files_request [BulkMoveFilesRequest]
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [Array<(BulkFilesResponse, Integer, Hash)>] BulkFilesResponse data, response status code and response headers
|
|
101
|
+
def bulk_move_files_with_http_info(bulk_move_files_request, opts = {})
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.bulk_move_files ...'
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'bulk_move_files_request' is set
|
|
106
|
+
if @api_client.config.client_side_validation && bulk_move_files_request.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'bulk_move_files_request' when calling FilesApi.bulk_move_files"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '/v1/files/move'
|
|
111
|
+
|
|
112
|
+
# query parameters
|
|
113
|
+
query_params = opts[:query_params] || {}
|
|
114
|
+
|
|
115
|
+
# header parameters
|
|
116
|
+
header_params = opts[:header_params] || {}
|
|
117
|
+
# HTTP header 'Accept' (if needed)
|
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
119
|
+
# HTTP header 'Content-Type'
|
|
120
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
121
|
+
if !content_type.nil?
|
|
122
|
+
header_params['Content-Type'] = content_type
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# form parameters
|
|
126
|
+
form_params = opts[:form_params] || {}
|
|
127
|
+
|
|
128
|
+
# http body (model)
|
|
129
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_move_files_request)
|
|
130
|
+
|
|
131
|
+
# return_type
|
|
132
|
+
return_type = opts[:debug_return_type] || 'BulkFilesResponse'
|
|
133
|
+
|
|
134
|
+
# auth_names
|
|
135
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
136
|
+
|
|
137
|
+
new_options = opts.merge(
|
|
138
|
+
:operation => :"FilesApi.bulk_move_files",
|
|
139
|
+
:header_params => header_params,
|
|
140
|
+
:query_params => query_params,
|
|
141
|
+
:form_params => form_params,
|
|
142
|
+
:body => post_body,
|
|
143
|
+
:auth_names => auth_names,
|
|
144
|
+
:return_type => return_type
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
148
|
+
if @api_client.config.debugging
|
|
149
|
+
@api_client.config.logger.debug "API called: FilesApi#bulk_move_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
150
|
+
end
|
|
151
|
+
return data, status_code, headers
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Finalize a chunked-upload session and create the file row.
|
|
155
|
+
# @param commit_chunked_upload_request [CommitChunkedUploadRequest]
|
|
156
|
+
# @param [Hash] opts the optional parameters
|
|
157
|
+
# @return [CommitChunkedUploadResponse]
|
|
158
|
+
def commit_chunked_upload(commit_chunked_upload_request, opts = {})
|
|
159
|
+
data, _status_code, _headers = commit_chunked_upload_with_http_info(commit_chunked_upload_request, opts)
|
|
160
|
+
data
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Finalize a chunked-upload session and create the file row.
|
|
164
|
+
# @param commit_chunked_upload_request [CommitChunkedUploadRequest]
|
|
165
|
+
# @param [Hash] opts the optional parameters
|
|
166
|
+
# @return [Array<(CommitChunkedUploadResponse, Integer, Hash)>] CommitChunkedUploadResponse data, response status code and response headers
|
|
167
|
+
def commit_chunked_upload_with_http_info(commit_chunked_upload_request, opts = {})
|
|
168
|
+
if @api_client.config.debugging
|
|
169
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.commit_chunked_upload ...'
|
|
170
|
+
end
|
|
171
|
+
# verify the required parameter 'commit_chunked_upload_request' is set
|
|
172
|
+
if @api_client.config.client_side_validation && commit_chunked_upload_request.nil?
|
|
173
|
+
fail ArgumentError, "Missing the required parameter 'commit_chunked_upload_request' when calling FilesApi.commit_chunked_upload"
|
|
174
|
+
end
|
|
175
|
+
# resource path
|
|
176
|
+
local_var_path = '/v1/files/upload/chunked/commit'
|
|
177
|
+
|
|
178
|
+
# query parameters
|
|
179
|
+
query_params = opts[:query_params] || {}
|
|
180
|
+
|
|
181
|
+
# header parameters
|
|
182
|
+
header_params = opts[:header_params] || {}
|
|
183
|
+
# HTTP header 'Accept' (if needed)
|
|
184
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
185
|
+
# HTTP header 'Content-Type'
|
|
186
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
187
|
+
if !content_type.nil?
|
|
188
|
+
header_params['Content-Type'] = content_type
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# form parameters
|
|
192
|
+
form_params = opts[:form_params] || {}
|
|
193
|
+
|
|
194
|
+
# http body (model)
|
|
195
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(commit_chunked_upload_request)
|
|
196
|
+
|
|
197
|
+
# return_type
|
|
198
|
+
return_type = opts[:debug_return_type] || 'CommitChunkedUploadResponse'
|
|
199
|
+
|
|
200
|
+
# auth_names
|
|
201
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
202
|
+
|
|
203
|
+
new_options = opts.merge(
|
|
204
|
+
:operation => :"FilesApi.commit_chunked_upload",
|
|
205
|
+
:header_params => header_params,
|
|
206
|
+
:query_params => query_params,
|
|
207
|
+
:form_params => form_params,
|
|
208
|
+
:body => post_body,
|
|
209
|
+
:auth_names => auth_names,
|
|
210
|
+
:return_type => return_type
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
214
|
+
if @api_client.config.debugging
|
|
215
|
+
@api_client.config.logger.debug "API called: FilesApi#commit_chunked_upload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
216
|
+
end
|
|
217
|
+
return data, status_code, headers
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Create a folder.
|
|
221
|
+
# @param create_folder_request [CreateFolderRequest]
|
|
222
|
+
# @param [Hash] opts the optional parameters
|
|
223
|
+
# @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.
|
|
224
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
225
|
+
# @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.
|
|
226
|
+
# @return [Folder]
|
|
227
|
+
def create_file_folder(create_folder_request, opts = {})
|
|
228
|
+
data, _status_code, _headers = create_file_folder_with_http_info(create_folder_request, opts)
|
|
229
|
+
data
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Create a folder.
|
|
233
|
+
# @param create_folder_request [CreateFolderRequest]
|
|
234
|
+
# @param [Hash] opts the optional parameters
|
|
235
|
+
# @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.
|
|
236
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
237
|
+
# @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.
|
|
238
|
+
# @return [Array<(Folder, Integer, Hash)>] Folder data, response status code and response headers
|
|
239
|
+
def create_file_folder_with_http_info(create_folder_request, opts = {})
|
|
240
|
+
if @api_client.config.debugging
|
|
241
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.create_file_folder ...'
|
|
242
|
+
end
|
|
243
|
+
# verify the required parameter 'create_folder_request' is set
|
|
244
|
+
if @api_client.config.client_side_validation && create_folder_request.nil?
|
|
245
|
+
fail ArgumentError, "Missing the required parameter 'create_folder_request' when calling FilesApi.create_file_folder"
|
|
246
|
+
end
|
|
247
|
+
# resource path
|
|
248
|
+
local_var_path = '/v1/files/folders'
|
|
249
|
+
|
|
250
|
+
# query parameters
|
|
251
|
+
query_params = opts[:query_params] || {}
|
|
252
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
253
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
254
|
+
|
|
255
|
+
# header parameters
|
|
256
|
+
header_params = opts[:header_params] || {}
|
|
257
|
+
# HTTP header 'Accept' (if needed)
|
|
258
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
259
|
+
# HTTP header 'Content-Type'
|
|
260
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
261
|
+
if !content_type.nil?
|
|
262
|
+
header_params['Content-Type'] = content_type
|
|
263
|
+
end
|
|
264
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
265
|
+
|
|
266
|
+
# form parameters
|
|
267
|
+
form_params = opts[:form_params] || {}
|
|
268
|
+
|
|
269
|
+
# http body (model)
|
|
270
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_folder_request)
|
|
271
|
+
|
|
272
|
+
# return_type
|
|
273
|
+
return_type = opts[:debug_return_type] || 'Folder'
|
|
274
|
+
|
|
275
|
+
# auth_names
|
|
276
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
277
|
+
|
|
278
|
+
new_options = opts.merge(
|
|
279
|
+
:operation => :"FilesApi.create_file_folder",
|
|
280
|
+
:header_params => header_params,
|
|
281
|
+
:query_params => query_params,
|
|
282
|
+
:form_params => form_params,
|
|
283
|
+
:body => post_body,
|
|
284
|
+
:auth_names => auth_names,
|
|
285
|
+
:return_type => return_type
|
|
286
|
+
)
|
|
287
|
+
|
|
288
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
289
|
+
if @api_client.config.debugging
|
|
290
|
+
@api_client.config.logger.debug "API called: FilesApi#create_file_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
291
|
+
end
|
|
292
|
+
return data, status_code, headers
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Delete a file.
|
|
296
|
+
# @param id [String] File id.
|
|
297
|
+
# @param [Hash] opts the optional parameters
|
|
298
|
+
# @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.
|
|
299
|
+
# @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.
|
|
300
|
+
# @return [nil]
|
|
301
|
+
def delete_file(id, opts = {})
|
|
302
|
+
delete_file_with_http_info(id, opts)
|
|
303
|
+
nil
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# Delete a file.
|
|
307
|
+
# @param id [String] File id.
|
|
308
|
+
# @param [Hash] opts the optional parameters
|
|
309
|
+
# @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.
|
|
310
|
+
# @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.
|
|
311
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
312
|
+
def delete_file_with_http_info(id, opts = {})
|
|
313
|
+
if @api_client.config.debugging
|
|
314
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.delete_file ...'
|
|
315
|
+
end
|
|
316
|
+
# verify the required parameter 'id' is set
|
|
317
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
318
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.delete_file"
|
|
319
|
+
end
|
|
320
|
+
# resource path
|
|
321
|
+
local_var_path = '/v1/files/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
322
|
+
|
|
323
|
+
# query parameters
|
|
324
|
+
query_params = opts[:query_params] || {}
|
|
325
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
326
|
+
|
|
327
|
+
# header parameters
|
|
328
|
+
header_params = opts[:header_params] || {}
|
|
329
|
+
# HTTP header 'Accept' (if needed)
|
|
330
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
331
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
332
|
+
|
|
333
|
+
# form parameters
|
|
334
|
+
form_params = opts[:form_params] || {}
|
|
335
|
+
|
|
336
|
+
# http body (model)
|
|
337
|
+
post_body = opts[:debug_body]
|
|
338
|
+
|
|
339
|
+
# return_type
|
|
340
|
+
return_type = opts[:debug_return_type]
|
|
341
|
+
|
|
342
|
+
# auth_names
|
|
343
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
344
|
+
|
|
345
|
+
new_options = opts.merge(
|
|
346
|
+
:operation => :"FilesApi.delete_file",
|
|
347
|
+
:header_params => header_params,
|
|
348
|
+
:query_params => query_params,
|
|
349
|
+
:form_params => form_params,
|
|
350
|
+
:body => post_body,
|
|
351
|
+
:auth_names => auth_names,
|
|
352
|
+
:return_type => return_type
|
|
353
|
+
)
|
|
354
|
+
|
|
355
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
356
|
+
if @api_client.config.debugging
|
|
357
|
+
@api_client.config.logger.debug "API called: FilesApi#delete_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
358
|
+
end
|
|
359
|
+
return data, status_code, headers
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Extract text content from a PDF (or other supported file).
|
|
363
|
+
# @param id [String] File id.
|
|
364
|
+
# @param [Hash] opts the optional parameters
|
|
365
|
+
# @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.
|
|
366
|
+
# @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.
|
|
367
|
+
# @option opts [Integer] :page_start
|
|
368
|
+
# @option opts [Integer] :page_end
|
|
369
|
+
# @option opts [Integer] :max_chars Truncation limit; sets `truncated: true` when hit.
|
|
370
|
+
# @return [ExtractTextResult]
|
|
371
|
+
def extract_file_text(id, opts = {})
|
|
372
|
+
data, _status_code, _headers = extract_file_text_with_http_info(id, opts)
|
|
373
|
+
data
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# Extract text content from a PDF (or other supported file).
|
|
377
|
+
# @param id [String] File id.
|
|
378
|
+
# @param [Hash] opts the optional parameters
|
|
379
|
+
# @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.
|
|
380
|
+
# @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.
|
|
381
|
+
# @option opts [Integer] :page_start
|
|
382
|
+
# @option opts [Integer] :page_end
|
|
383
|
+
# @option opts [Integer] :max_chars Truncation limit; sets `truncated: true` when hit.
|
|
384
|
+
# @return [Array<(ExtractTextResult, Integer, Hash)>] ExtractTextResult data, response status code and response headers
|
|
385
|
+
def extract_file_text_with_http_info(id, opts = {})
|
|
386
|
+
if @api_client.config.debugging
|
|
387
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.extract_file_text ...'
|
|
388
|
+
end
|
|
389
|
+
# verify the required parameter 'id' is set
|
|
390
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
391
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.extract_file_text"
|
|
392
|
+
end
|
|
393
|
+
if @api_client.config.client_side_validation && !opts[:'page_start'].nil? && opts[:'page_start'] < 1
|
|
394
|
+
fail ArgumentError, 'invalid value for "opts[:"page_start"]" when calling FilesApi.extract_file_text, must be greater than or equal to 1.'
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
if @api_client.config.client_side_validation && !opts[:'page_end'].nil? && opts[:'page_end'] < 1
|
|
398
|
+
fail ArgumentError, 'invalid value for "opts[:"page_end"]" when calling FilesApi.extract_file_text, must be greater than or equal to 1.'
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
if @api_client.config.client_side_validation && !opts[:'max_chars'].nil? && opts[:'max_chars'] < 1
|
|
402
|
+
fail ArgumentError, 'invalid value for "opts[:"max_chars"]" when calling FilesApi.extract_file_text, must be greater than or equal to 1.'
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# resource path
|
|
406
|
+
local_var_path = '/v1/files/{id}/extract-text'.sub('{id}', CGI.escape(id.to_s))
|
|
407
|
+
|
|
408
|
+
# query parameters
|
|
409
|
+
query_params = opts[:query_params] || {}
|
|
410
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
411
|
+
query_params[:'pageStart'] = opts[:'page_start'] if !opts[:'page_start'].nil?
|
|
412
|
+
query_params[:'pageEnd'] = opts[:'page_end'] if !opts[:'page_end'].nil?
|
|
413
|
+
query_params[:'maxChars'] = opts[:'max_chars'] if !opts[:'max_chars'].nil?
|
|
414
|
+
|
|
415
|
+
# header parameters
|
|
416
|
+
header_params = opts[:header_params] || {}
|
|
417
|
+
# HTTP header 'Accept' (if needed)
|
|
418
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
419
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
420
|
+
|
|
421
|
+
# form parameters
|
|
422
|
+
form_params = opts[:form_params] || {}
|
|
423
|
+
|
|
424
|
+
# http body (model)
|
|
425
|
+
post_body = opts[:debug_body]
|
|
426
|
+
|
|
427
|
+
# return_type
|
|
428
|
+
return_type = opts[:debug_return_type] || 'ExtractTextResult'
|
|
429
|
+
|
|
430
|
+
# auth_names
|
|
431
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
432
|
+
|
|
433
|
+
new_options = opts.merge(
|
|
434
|
+
:operation => :"FilesApi.extract_file_text",
|
|
435
|
+
:header_params => header_params,
|
|
436
|
+
:query_params => query_params,
|
|
437
|
+
:form_params => form_params,
|
|
438
|
+
:body => post_body,
|
|
439
|
+
:auth_names => auth_names,
|
|
440
|
+
:return_type => return_type
|
|
441
|
+
)
|
|
442
|
+
|
|
443
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
444
|
+
if @api_client.config.debugging
|
|
445
|
+
@api_client.config.logger.debug "API called: FilesApi#extract_file_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
446
|
+
end
|
|
447
|
+
return data, status_code, headers
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
# Fetch the block manifest for a chunked-uploaded file.
|
|
451
|
+
# Only meaningful for files uploaded via `upload/chunked/*`. Files uploaded via `upload` or `upload/base64` return `404`.
|
|
452
|
+
# @param id [String] File id.
|
|
453
|
+
# @param [Hash] opts the optional parameters
|
|
454
|
+
# @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.
|
|
455
|
+
# @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.
|
|
456
|
+
# @return [ChunkedFileManifest]
|
|
457
|
+
def get_chunked_file_manifest(id, opts = {})
|
|
458
|
+
data, _status_code, _headers = get_chunked_file_manifest_with_http_info(id, opts)
|
|
459
|
+
data
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# Fetch the block manifest for a chunked-uploaded file.
|
|
463
|
+
# Only meaningful for files uploaded via `upload/chunked/*`. Files uploaded via `upload` or `upload/base64` return `404`.
|
|
464
|
+
# @param id [String] File id.
|
|
465
|
+
# @param [Hash] opts the optional parameters
|
|
466
|
+
# @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.
|
|
467
|
+
# @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.
|
|
468
|
+
# @return [Array<(ChunkedFileManifest, Integer, Hash)>] ChunkedFileManifest data, response status code and response headers
|
|
469
|
+
def get_chunked_file_manifest_with_http_info(id, opts = {})
|
|
470
|
+
if @api_client.config.debugging
|
|
471
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.get_chunked_file_manifest ...'
|
|
472
|
+
end
|
|
473
|
+
# verify the required parameter 'id' is set
|
|
474
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
475
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.get_chunked_file_manifest"
|
|
476
|
+
end
|
|
477
|
+
# resource path
|
|
478
|
+
local_var_path = '/v1/files/{id}/manifest'.sub('{id}', CGI.escape(id.to_s))
|
|
479
|
+
|
|
480
|
+
# query parameters
|
|
481
|
+
query_params = opts[:query_params] || {}
|
|
482
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
483
|
+
|
|
484
|
+
# header parameters
|
|
485
|
+
header_params = opts[:header_params] || {}
|
|
486
|
+
# HTTP header 'Accept' (if needed)
|
|
487
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
488
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
489
|
+
|
|
490
|
+
# form parameters
|
|
491
|
+
form_params = opts[:form_params] || {}
|
|
492
|
+
|
|
493
|
+
# http body (model)
|
|
494
|
+
post_body = opts[:debug_body]
|
|
495
|
+
|
|
496
|
+
# return_type
|
|
497
|
+
return_type = opts[:debug_return_type] || 'ChunkedFileManifest'
|
|
498
|
+
|
|
499
|
+
# auth_names
|
|
500
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
501
|
+
|
|
502
|
+
new_options = opts.merge(
|
|
503
|
+
:operation => :"FilesApi.get_chunked_file_manifest",
|
|
504
|
+
:header_params => header_params,
|
|
505
|
+
:query_params => query_params,
|
|
506
|
+
:form_params => form_params,
|
|
507
|
+
:body => post_body,
|
|
508
|
+
:auth_names => auth_names,
|
|
509
|
+
:return_type => return_type
|
|
510
|
+
)
|
|
511
|
+
|
|
512
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
513
|
+
if @api_client.config.debugging
|
|
514
|
+
@api_client.config.logger.debug "API called: FilesApi#get_chunked_file_manifest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
515
|
+
end
|
|
516
|
+
return data, status_code, headers
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
# Fetch one file's metadata.
|
|
520
|
+
# @param id [String] File id.
|
|
521
|
+
# @param [Hash] opts the optional parameters
|
|
522
|
+
# @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.
|
|
523
|
+
# @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.
|
|
524
|
+
# @return [SpatioFile]
|
|
525
|
+
def get_file(id, opts = {})
|
|
526
|
+
data, _status_code, _headers = get_file_with_http_info(id, opts)
|
|
527
|
+
data
|
|
528
|
+
end
|
|
529
|
+
|
|
530
|
+
# Fetch one file's metadata.
|
|
531
|
+
# @param id [String] File id.
|
|
532
|
+
# @param [Hash] opts the optional parameters
|
|
533
|
+
# @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.
|
|
534
|
+
# @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.
|
|
535
|
+
# @return [Array<(SpatioFile, Integer, Hash)>] SpatioFile data, response status code and response headers
|
|
536
|
+
def get_file_with_http_info(id, opts = {})
|
|
537
|
+
if @api_client.config.debugging
|
|
538
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.get_file ...'
|
|
539
|
+
end
|
|
540
|
+
# verify the required parameter 'id' is set
|
|
541
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
542
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.get_file"
|
|
543
|
+
end
|
|
544
|
+
# resource path
|
|
545
|
+
local_var_path = '/v1/files/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
546
|
+
|
|
547
|
+
# query parameters
|
|
548
|
+
query_params = opts[:query_params] || {}
|
|
549
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
550
|
+
|
|
551
|
+
# header parameters
|
|
552
|
+
header_params = opts[:header_params] || {}
|
|
553
|
+
# HTTP header 'Accept' (if needed)
|
|
554
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
555
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
556
|
+
|
|
557
|
+
# form parameters
|
|
558
|
+
form_params = opts[:form_params] || {}
|
|
559
|
+
|
|
560
|
+
# http body (model)
|
|
561
|
+
post_body = opts[:debug_body]
|
|
562
|
+
|
|
563
|
+
# return_type
|
|
564
|
+
return_type = opts[:debug_return_type] || 'SpatioFile'
|
|
565
|
+
|
|
566
|
+
# auth_names
|
|
567
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
568
|
+
|
|
569
|
+
new_options = opts.merge(
|
|
570
|
+
:operation => :"FilesApi.get_file",
|
|
571
|
+
:header_params => header_params,
|
|
572
|
+
:query_params => query_params,
|
|
573
|
+
:form_params => form_params,
|
|
574
|
+
:body => post_body,
|
|
575
|
+
:auth_names => auth_names,
|
|
576
|
+
:return_type => return_type
|
|
577
|
+
)
|
|
578
|
+
|
|
579
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
580
|
+
if @api_client.config.debugging
|
|
581
|
+
@api_client.config.logger.debug "API called: FilesApi#get_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
582
|
+
end
|
|
583
|
+
return data, status_code, headers
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
# Mint a fresh signed download URL.
|
|
587
|
+
# Returns a JSON envelope with a pre-signed URL pointing at the backing storage. Clients follow the URL — the platform does not stream bytes through itself.
|
|
588
|
+
# @param id [String] File id.
|
|
589
|
+
# @param [Hash] opts the optional parameters
|
|
590
|
+
# @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.
|
|
591
|
+
# @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.
|
|
592
|
+
# @return [DownloadFileResponse]
|
|
593
|
+
def get_file_download_url(id, opts = {})
|
|
594
|
+
data, _status_code, _headers = get_file_download_url_with_http_info(id, opts)
|
|
595
|
+
data
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
# Mint a fresh signed download URL.
|
|
599
|
+
# Returns a JSON envelope with a pre-signed URL pointing at the backing storage. Clients follow the URL — the platform does not stream bytes through itself.
|
|
600
|
+
# @param id [String] File id.
|
|
601
|
+
# @param [Hash] opts the optional parameters
|
|
602
|
+
# @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.
|
|
603
|
+
# @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.
|
|
604
|
+
# @return [Array<(DownloadFileResponse, Integer, Hash)>] DownloadFileResponse data, response status code and response headers
|
|
605
|
+
def get_file_download_url_with_http_info(id, opts = {})
|
|
606
|
+
if @api_client.config.debugging
|
|
607
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.get_file_download_url ...'
|
|
608
|
+
end
|
|
609
|
+
# verify the required parameter 'id' is set
|
|
610
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
611
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.get_file_download_url"
|
|
612
|
+
end
|
|
613
|
+
# resource path
|
|
614
|
+
local_var_path = '/v1/files/{id}/download'.sub('{id}', CGI.escape(id.to_s))
|
|
615
|
+
|
|
616
|
+
# query parameters
|
|
617
|
+
query_params = opts[:query_params] || {}
|
|
618
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
619
|
+
|
|
620
|
+
# header parameters
|
|
621
|
+
header_params = opts[:header_params] || {}
|
|
622
|
+
# HTTP header 'Accept' (if needed)
|
|
623
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
624
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
625
|
+
|
|
626
|
+
# form parameters
|
|
627
|
+
form_params = opts[:form_params] || {}
|
|
628
|
+
|
|
629
|
+
# http body (model)
|
|
630
|
+
post_body = opts[:debug_body]
|
|
631
|
+
|
|
632
|
+
# return_type
|
|
633
|
+
return_type = opts[:debug_return_type] || 'DownloadFileResponse'
|
|
634
|
+
|
|
635
|
+
# auth_names
|
|
636
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
637
|
+
|
|
638
|
+
new_options = opts.merge(
|
|
639
|
+
:operation => :"FilesApi.get_file_download_url",
|
|
640
|
+
:header_params => header_params,
|
|
641
|
+
:query_params => query_params,
|
|
642
|
+
:form_params => form_params,
|
|
643
|
+
:body => post_body,
|
|
644
|
+
:auth_names => auth_names,
|
|
645
|
+
:return_type => return_type
|
|
646
|
+
)
|
|
647
|
+
|
|
648
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
649
|
+
if @api_client.config.debugging
|
|
650
|
+
@api_client.config.logger.debug "API called: FilesApi#get_file_download_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
651
|
+
end
|
|
652
|
+
return data, status_code, headers
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
# Begin a content-addressed chunked upload session.
|
|
656
|
+
# Client computes per-block hashes ahead of time and submits the list. The server replies with which blocks need uploading vs. already-on-server (deduplicated). Subsequent calls upload the missing blocks via `uploadChunkedBlock`, then `commit`.
|
|
657
|
+
# @param init_chunked_upload_request [InitChunkedUploadRequest]
|
|
658
|
+
# @param [Hash] opts the optional parameters
|
|
659
|
+
# @return [InitChunkedUploadResponse]
|
|
660
|
+
def init_chunked_upload(init_chunked_upload_request, opts = {})
|
|
661
|
+
data, _status_code, _headers = init_chunked_upload_with_http_info(init_chunked_upload_request, opts)
|
|
662
|
+
data
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
# Begin a content-addressed chunked upload session.
|
|
666
|
+
# Client computes per-block hashes ahead of time and submits the list. The server replies with which blocks need uploading vs. already-on-server (deduplicated). Subsequent calls upload the missing blocks via `uploadChunkedBlock`, then `commit`.
|
|
667
|
+
# @param init_chunked_upload_request [InitChunkedUploadRequest]
|
|
668
|
+
# @param [Hash] opts the optional parameters
|
|
669
|
+
# @return [Array<(InitChunkedUploadResponse, Integer, Hash)>] InitChunkedUploadResponse data, response status code and response headers
|
|
670
|
+
def init_chunked_upload_with_http_info(init_chunked_upload_request, opts = {})
|
|
671
|
+
if @api_client.config.debugging
|
|
672
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.init_chunked_upload ...'
|
|
673
|
+
end
|
|
674
|
+
# verify the required parameter 'init_chunked_upload_request' is set
|
|
675
|
+
if @api_client.config.client_side_validation && init_chunked_upload_request.nil?
|
|
676
|
+
fail ArgumentError, "Missing the required parameter 'init_chunked_upload_request' when calling FilesApi.init_chunked_upload"
|
|
677
|
+
end
|
|
678
|
+
# resource path
|
|
679
|
+
local_var_path = '/v1/files/upload/chunked/init'
|
|
680
|
+
|
|
681
|
+
# query parameters
|
|
682
|
+
query_params = opts[:query_params] || {}
|
|
683
|
+
|
|
684
|
+
# header parameters
|
|
685
|
+
header_params = opts[:header_params] || {}
|
|
686
|
+
# HTTP header 'Accept' (if needed)
|
|
687
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
688
|
+
# HTTP header 'Content-Type'
|
|
689
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
690
|
+
if !content_type.nil?
|
|
691
|
+
header_params['Content-Type'] = content_type
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
# form parameters
|
|
695
|
+
form_params = opts[:form_params] || {}
|
|
696
|
+
|
|
697
|
+
# http body (model)
|
|
698
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(init_chunked_upload_request)
|
|
699
|
+
|
|
700
|
+
# return_type
|
|
701
|
+
return_type = opts[:debug_return_type] || 'InitChunkedUploadResponse'
|
|
702
|
+
|
|
703
|
+
# auth_names
|
|
704
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
705
|
+
|
|
706
|
+
new_options = opts.merge(
|
|
707
|
+
:operation => :"FilesApi.init_chunked_upload",
|
|
708
|
+
:header_params => header_params,
|
|
709
|
+
:query_params => query_params,
|
|
710
|
+
:form_params => form_params,
|
|
711
|
+
:body => post_body,
|
|
712
|
+
:auth_names => auth_names,
|
|
713
|
+
:return_type => return_type
|
|
714
|
+
)
|
|
715
|
+
|
|
716
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
717
|
+
if @api_client.config.debugging
|
|
718
|
+
@api_client.config.logger.debug "API called: FilesApi#init_chunked_upload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
719
|
+
end
|
|
720
|
+
return data, status_code, headers
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
# List folders across connected file providers.
|
|
724
|
+
# @param [Hash] opts the optional parameters
|
|
725
|
+
# @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.
|
|
726
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
727
|
+
# @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.
|
|
728
|
+
# @option opts [String] :parent_id Filter to children of this folder. Omit for root.
|
|
729
|
+
# @option opts [String] :workspace_id
|
|
730
|
+
# @option opts [String] :organization_id
|
|
731
|
+
# @option opts [Integer] :limit (default to 50)
|
|
732
|
+
# @option opts [Integer] :offset (default to 0)
|
|
733
|
+
# @return [FolderListEnvelope]
|
|
734
|
+
def list_file_folders(opts = {})
|
|
735
|
+
data, _status_code, _headers = list_file_folders_with_http_info(opts)
|
|
736
|
+
data
|
|
737
|
+
end
|
|
738
|
+
|
|
739
|
+
# List folders across connected file providers.
|
|
740
|
+
# @param [Hash] opts the optional parameters
|
|
741
|
+
# @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.
|
|
742
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
743
|
+
# @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.
|
|
744
|
+
# @option opts [String] :parent_id Filter to children of this folder. Omit for root.
|
|
745
|
+
# @option opts [String] :workspace_id
|
|
746
|
+
# @option opts [String] :organization_id
|
|
747
|
+
# @option opts [Integer] :limit (default to 50)
|
|
748
|
+
# @option opts [Integer] :offset (default to 0)
|
|
749
|
+
# @return [Array<(FolderListEnvelope, Integer, Hash)>] FolderListEnvelope data, response status code and response headers
|
|
750
|
+
def list_file_folders_with_http_info(opts = {})
|
|
751
|
+
if @api_client.config.debugging
|
|
752
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.list_file_folders ...'
|
|
753
|
+
end
|
|
754
|
+
# resource path
|
|
755
|
+
local_var_path = '/v1/files/folders'
|
|
756
|
+
|
|
757
|
+
# query parameters
|
|
758
|
+
query_params = opts[:query_params] || {}
|
|
759
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
760
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
761
|
+
query_params[:'parentId'] = opts[:'parent_id'] if !opts[:'parent_id'].nil?
|
|
762
|
+
query_params[:'workspaceId'] = opts[:'workspace_id'] if !opts[:'workspace_id'].nil?
|
|
763
|
+
query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
|
764
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
765
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
766
|
+
|
|
767
|
+
# header parameters
|
|
768
|
+
header_params = opts[:header_params] || {}
|
|
769
|
+
# HTTP header 'Accept' (if needed)
|
|
770
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
771
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
772
|
+
|
|
773
|
+
# form parameters
|
|
774
|
+
form_params = opts[:form_params] || {}
|
|
775
|
+
|
|
776
|
+
# http body (model)
|
|
777
|
+
post_body = opts[:debug_body]
|
|
778
|
+
|
|
779
|
+
# return_type
|
|
780
|
+
return_type = opts[:debug_return_type] || 'FolderListEnvelope'
|
|
781
|
+
|
|
782
|
+
# auth_names
|
|
783
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
784
|
+
|
|
785
|
+
new_options = opts.merge(
|
|
786
|
+
:operation => :"FilesApi.list_file_folders",
|
|
787
|
+
:header_params => header_params,
|
|
788
|
+
:query_params => query_params,
|
|
789
|
+
:form_params => form_params,
|
|
790
|
+
:body => post_body,
|
|
791
|
+
:auth_names => auth_names,
|
|
792
|
+
:return_type => return_type
|
|
793
|
+
)
|
|
794
|
+
|
|
795
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
796
|
+
if @api_client.config.debugging
|
|
797
|
+
@api_client.config.logger.debug "API called: FilesApi#list_file_folders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
798
|
+
end
|
|
799
|
+
return data, status_code, headers
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
# List files across connected file providers.
|
|
803
|
+
# Fan-out list. Returns files from every connected file provider unless filtered by `?accountId=` or `?provider=`. Folder contents are scoped via `?folderId=`; omit for account root.
|
|
804
|
+
# @param [Hash] opts the optional parameters
|
|
805
|
+
# @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.
|
|
806
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
807
|
+
# @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.
|
|
808
|
+
# @option opts [String] :folder_id Filter to one folder. Omit for the account root.
|
|
809
|
+
# @option opts [String] :workspace_id
|
|
810
|
+
# @option opts [String] :organization_id
|
|
811
|
+
# @option opts [Integer] :limit (default to 50)
|
|
812
|
+
# @option opts [Integer] :offset (default to 0)
|
|
813
|
+
# @option opts [String] :sort_by Provider-dependent. Common values: `created_at`, `name`, `size`. (default to 'created_at')
|
|
814
|
+
# @option opts [String] :sort_order (default to 'DESC')
|
|
815
|
+
# @return [FileListEnvelope]
|
|
816
|
+
def list_files(opts = {})
|
|
817
|
+
data, _status_code, _headers = list_files_with_http_info(opts)
|
|
818
|
+
data
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
# List files across connected file providers.
|
|
822
|
+
# Fan-out list. Returns files from every connected file provider unless filtered by `?accountId=` or `?provider=`. Folder contents are scoped via `?folderId=`; omit for account root.
|
|
823
|
+
# @param [Hash] opts the optional parameters
|
|
824
|
+
# @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.
|
|
825
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
826
|
+
# @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.
|
|
827
|
+
# @option opts [String] :folder_id Filter to one folder. Omit for the account root.
|
|
828
|
+
# @option opts [String] :workspace_id
|
|
829
|
+
# @option opts [String] :organization_id
|
|
830
|
+
# @option opts [Integer] :limit (default to 50)
|
|
831
|
+
# @option opts [Integer] :offset (default to 0)
|
|
832
|
+
# @option opts [String] :sort_by Provider-dependent. Common values: `created_at`, `name`, `size`. (default to 'created_at')
|
|
833
|
+
# @option opts [String] :sort_order (default to 'DESC')
|
|
834
|
+
# @return [Array<(FileListEnvelope, Integer, Hash)>] FileListEnvelope data, response status code and response headers
|
|
835
|
+
def list_files_with_http_info(opts = {})
|
|
836
|
+
if @api_client.config.debugging
|
|
837
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.list_files ...'
|
|
838
|
+
end
|
|
839
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
840
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling FilesApi.list_files, must be greater than or equal to 1.'
|
|
841
|
+
end
|
|
842
|
+
|
|
843
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
|
844
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling FilesApi.list_files, must be greater than or equal to 0.'
|
|
845
|
+
end
|
|
846
|
+
|
|
847
|
+
allowable_values = ["ASC", "DESC"]
|
|
848
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
849
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
850
|
+
end
|
|
851
|
+
# resource path
|
|
852
|
+
local_var_path = '/v1/files'
|
|
853
|
+
|
|
854
|
+
# query parameters
|
|
855
|
+
query_params = opts[:query_params] || {}
|
|
856
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
857
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
858
|
+
query_params[:'folderId'] = opts[:'folder_id'] if !opts[:'folder_id'].nil?
|
|
859
|
+
query_params[:'workspaceId'] = opts[:'workspace_id'] if !opts[:'workspace_id'].nil?
|
|
860
|
+
query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
|
861
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
862
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
863
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
864
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
865
|
+
|
|
866
|
+
# header parameters
|
|
867
|
+
header_params = opts[:header_params] || {}
|
|
868
|
+
# HTTP header 'Accept' (if needed)
|
|
869
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
870
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
871
|
+
|
|
872
|
+
# form parameters
|
|
873
|
+
form_params = opts[:form_params] || {}
|
|
874
|
+
|
|
875
|
+
# http body (model)
|
|
876
|
+
post_body = opts[:debug_body]
|
|
877
|
+
|
|
878
|
+
# return_type
|
|
879
|
+
return_type = opts[:debug_return_type] || 'FileListEnvelope'
|
|
880
|
+
|
|
881
|
+
# auth_names
|
|
882
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
883
|
+
|
|
884
|
+
new_options = opts.merge(
|
|
885
|
+
:operation => :"FilesApi.list_files",
|
|
886
|
+
:header_params => header_params,
|
|
887
|
+
:query_params => query_params,
|
|
888
|
+
:form_params => form_params,
|
|
889
|
+
:body => post_body,
|
|
890
|
+
:auth_names => auth_names,
|
|
891
|
+
:return_type => return_type
|
|
892
|
+
)
|
|
893
|
+
|
|
894
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
895
|
+
if @api_client.config.debugging
|
|
896
|
+
@api_client.config.logger.debug "API called: FilesApi#list_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
897
|
+
end
|
|
898
|
+
return data, status_code, headers
|
|
899
|
+
end
|
|
900
|
+
|
|
901
|
+
# Aggregate list of files + folders for renderer file-browser views.
|
|
902
|
+
# Calls `listFiles` and `listFileFolders` in parallel and merges the results. Saves a round-trip when the UI shows both side-by-side.
|
|
903
|
+
# @param [Hash] opts the optional parameters
|
|
904
|
+
# @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.
|
|
905
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
906
|
+
# @option opts [String] :folder_id Filter to one folder. Omit for the account root.
|
|
907
|
+
# @option opts [String] :workspace_id
|
|
908
|
+
# @option opts [String] :organization_id
|
|
909
|
+
# @option opts [Integer] :limit (default to 50)
|
|
910
|
+
# @option opts [Integer] :offset (default to 0)
|
|
911
|
+
# @option opts [String] :sort_by
|
|
912
|
+
# @option opts [String] :sort_order
|
|
913
|
+
# @return [FilesAndFoldersResponse]
|
|
914
|
+
def list_files_and_folders(opts = {})
|
|
915
|
+
data, _status_code, _headers = list_files_and_folders_with_http_info(opts)
|
|
916
|
+
data
|
|
917
|
+
end
|
|
918
|
+
|
|
919
|
+
# Aggregate list of files + folders for renderer file-browser views.
|
|
920
|
+
# Calls `listFiles` and `listFileFolders` in parallel and merges the results. Saves a round-trip when the UI shows both side-by-side.
|
|
921
|
+
# @param [Hash] opts the optional parameters
|
|
922
|
+
# @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.
|
|
923
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
924
|
+
# @option opts [String] :folder_id Filter to one folder. Omit for the account root.
|
|
925
|
+
# @option opts [String] :workspace_id
|
|
926
|
+
# @option opts [String] :organization_id
|
|
927
|
+
# @option opts [Integer] :limit (default to 50)
|
|
928
|
+
# @option opts [Integer] :offset (default to 0)
|
|
929
|
+
# @option opts [String] :sort_by
|
|
930
|
+
# @option opts [String] :sort_order
|
|
931
|
+
# @return [Array<(FilesAndFoldersResponse, Integer, Hash)>] FilesAndFoldersResponse data, response status code and response headers
|
|
932
|
+
def list_files_and_folders_with_http_info(opts = {})
|
|
933
|
+
if @api_client.config.debugging
|
|
934
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.list_files_and_folders ...'
|
|
935
|
+
end
|
|
936
|
+
# resource path
|
|
937
|
+
local_var_path = '/v1/files/list'
|
|
938
|
+
|
|
939
|
+
# query parameters
|
|
940
|
+
query_params = opts[:query_params] || {}
|
|
941
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
942
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
943
|
+
query_params[:'folderId'] = opts[:'folder_id'] if !opts[:'folder_id'].nil?
|
|
944
|
+
query_params[:'workspaceId'] = opts[:'workspace_id'] if !opts[:'workspace_id'].nil?
|
|
945
|
+
query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
|
946
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
947
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
948
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
949
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
950
|
+
|
|
951
|
+
# header parameters
|
|
952
|
+
header_params = opts[:header_params] || {}
|
|
953
|
+
# HTTP header 'Accept' (if needed)
|
|
954
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
955
|
+
|
|
956
|
+
# form parameters
|
|
957
|
+
form_params = opts[:form_params] || {}
|
|
958
|
+
|
|
959
|
+
# http body (model)
|
|
960
|
+
post_body = opts[:debug_body]
|
|
961
|
+
|
|
962
|
+
# return_type
|
|
963
|
+
return_type = opts[:debug_return_type] || 'FilesAndFoldersResponse'
|
|
964
|
+
|
|
965
|
+
# auth_names
|
|
966
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
967
|
+
|
|
968
|
+
new_options = opts.merge(
|
|
969
|
+
:operation => :"FilesApi.list_files_and_folders",
|
|
970
|
+
:header_params => header_params,
|
|
971
|
+
:query_params => query_params,
|
|
972
|
+
:form_params => form_params,
|
|
973
|
+
:body => post_body,
|
|
974
|
+
:auth_names => auth_names,
|
|
975
|
+
:return_type => return_type
|
|
976
|
+
)
|
|
977
|
+
|
|
978
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
979
|
+
if @api_client.config.debugging
|
|
980
|
+
@api_client.config.logger.debug "API called: FilesApi#list_files_and_folders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
981
|
+
end
|
|
982
|
+
return data, status_code, headers
|
|
983
|
+
end
|
|
984
|
+
|
|
985
|
+
# Move a single file to a target folder.
|
|
986
|
+
# @param id [String] File id.
|
|
987
|
+
# @param move_file_request [MoveFileRequest]
|
|
988
|
+
# @param [Hash] opts the optional parameters
|
|
989
|
+
# @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.
|
|
990
|
+
# @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.
|
|
991
|
+
# @return [MoveFileResponse]
|
|
992
|
+
def move_file(id, move_file_request, opts = {})
|
|
993
|
+
data, _status_code, _headers = move_file_with_http_info(id, move_file_request, opts)
|
|
994
|
+
data
|
|
995
|
+
end
|
|
996
|
+
|
|
997
|
+
# Move a single file to a target folder.
|
|
998
|
+
# @param id [String] File id.
|
|
999
|
+
# @param move_file_request [MoveFileRequest]
|
|
1000
|
+
# @param [Hash] opts the optional parameters
|
|
1001
|
+
# @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.
|
|
1002
|
+
# @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.
|
|
1003
|
+
# @return [Array<(MoveFileResponse, Integer, Hash)>] MoveFileResponse data, response status code and response headers
|
|
1004
|
+
def move_file_with_http_info(id, move_file_request, opts = {})
|
|
1005
|
+
if @api_client.config.debugging
|
|
1006
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.move_file ...'
|
|
1007
|
+
end
|
|
1008
|
+
# verify the required parameter 'id' is set
|
|
1009
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1010
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.move_file"
|
|
1011
|
+
end
|
|
1012
|
+
# verify the required parameter 'move_file_request' is set
|
|
1013
|
+
if @api_client.config.client_side_validation && move_file_request.nil?
|
|
1014
|
+
fail ArgumentError, "Missing the required parameter 'move_file_request' when calling FilesApi.move_file"
|
|
1015
|
+
end
|
|
1016
|
+
# resource path
|
|
1017
|
+
local_var_path = '/v1/files/{id}/move'.sub('{id}', CGI.escape(id.to_s))
|
|
1018
|
+
|
|
1019
|
+
# query parameters
|
|
1020
|
+
query_params = opts[:query_params] || {}
|
|
1021
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1022
|
+
|
|
1023
|
+
# header parameters
|
|
1024
|
+
header_params = opts[:header_params] || {}
|
|
1025
|
+
# HTTP header 'Accept' (if needed)
|
|
1026
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1027
|
+
# HTTP header 'Content-Type'
|
|
1028
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1029
|
+
if !content_type.nil?
|
|
1030
|
+
header_params['Content-Type'] = content_type
|
|
1031
|
+
end
|
|
1032
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
1033
|
+
|
|
1034
|
+
# form parameters
|
|
1035
|
+
form_params = opts[:form_params] || {}
|
|
1036
|
+
|
|
1037
|
+
# http body (model)
|
|
1038
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(move_file_request)
|
|
1039
|
+
|
|
1040
|
+
# return_type
|
|
1041
|
+
return_type = opts[:debug_return_type] || 'MoveFileResponse'
|
|
1042
|
+
|
|
1043
|
+
# auth_names
|
|
1044
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1045
|
+
|
|
1046
|
+
new_options = opts.merge(
|
|
1047
|
+
:operation => :"FilesApi.move_file",
|
|
1048
|
+
:header_params => header_params,
|
|
1049
|
+
:query_params => query_params,
|
|
1050
|
+
:form_params => form_params,
|
|
1051
|
+
:body => post_body,
|
|
1052
|
+
:auth_names => auth_names,
|
|
1053
|
+
:return_type => return_type
|
|
1054
|
+
)
|
|
1055
|
+
|
|
1056
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1057
|
+
if @api_client.config.debugging
|
|
1058
|
+
@api_client.config.logger.debug "API called: FilesApi#move_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1059
|
+
end
|
|
1060
|
+
return data, status_code, headers
|
|
1061
|
+
end
|
|
1062
|
+
|
|
1063
|
+
# Substring-match search across the caller's files.
|
|
1064
|
+
# In-memory search — the platform lists up to ~500 files and filters locally on `name` (case-insensitive substring). Not suitable for global search across very large file libraries.
|
|
1065
|
+
# @param query [String]
|
|
1066
|
+
# @param [Hash] opts the optional parameters
|
|
1067
|
+
# @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.
|
|
1068
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
1069
|
+
# @option opts [String] :folder_id Filter to one folder. Omit for the account root.
|
|
1070
|
+
# @option opts [String] :workspace_id
|
|
1071
|
+
# @option opts [String] :organization_id
|
|
1072
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1073
|
+
# @option opts [Integer] :offset (default to 0)
|
|
1074
|
+
# @return [SearchFilesResponse]
|
|
1075
|
+
def search_files(query, opts = {})
|
|
1076
|
+
data, _status_code, _headers = search_files_with_http_info(query, opts)
|
|
1077
|
+
data
|
|
1078
|
+
end
|
|
1079
|
+
|
|
1080
|
+
# Substring-match search across the caller's files.
|
|
1081
|
+
# In-memory search — the platform lists up to ~500 files and filters locally on `name` (case-insensitive substring). Not suitable for global search across very large file libraries.
|
|
1082
|
+
# @param query [String]
|
|
1083
|
+
# @param [Hash] opts the optional parameters
|
|
1084
|
+
# @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.
|
|
1085
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
1086
|
+
# @option opts [String] :folder_id Filter to one folder. Omit for the account root.
|
|
1087
|
+
# @option opts [String] :workspace_id
|
|
1088
|
+
# @option opts [String] :organization_id
|
|
1089
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1090
|
+
# @option opts [Integer] :offset (default to 0)
|
|
1091
|
+
# @return [Array<(SearchFilesResponse, Integer, Hash)>] SearchFilesResponse data, response status code and response headers
|
|
1092
|
+
def search_files_with_http_info(query, opts = {})
|
|
1093
|
+
if @api_client.config.debugging
|
|
1094
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.search_files ...'
|
|
1095
|
+
end
|
|
1096
|
+
# verify the required parameter 'query' is set
|
|
1097
|
+
if @api_client.config.client_side_validation && query.nil?
|
|
1098
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling FilesApi.search_files"
|
|
1099
|
+
end
|
|
1100
|
+
# resource path
|
|
1101
|
+
local_var_path = '/v1/files/search'
|
|
1102
|
+
|
|
1103
|
+
# query parameters
|
|
1104
|
+
query_params = opts[:query_params] || {}
|
|
1105
|
+
query_params[:'query'] = query
|
|
1106
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1107
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
1108
|
+
query_params[:'folderId'] = opts[:'folder_id'] if !opts[:'folder_id'].nil?
|
|
1109
|
+
query_params[:'workspaceId'] = opts[:'workspace_id'] if !opts[:'workspace_id'].nil?
|
|
1110
|
+
query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
|
1111
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1112
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1113
|
+
|
|
1114
|
+
# header parameters
|
|
1115
|
+
header_params = opts[:header_params] || {}
|
|
1116
|
+
# HTTP header 'Accept' (if needed)
|
|
1117
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1118
|
+
|
|
1119
|
+
# form parameters
|
|
1120
|
+
form_params = opts[:form_params] || {}
|
|
1121
|
+
|
|
1122
|
+
# http body (model)
|
|
1123
|
+
post_body = opts[:debug_body]
|
|
1124
|
+
|
|
1125
|
+
# return_type
|
|
1126
|
+
return_type = opts[:debug_return_type] || 'SearchFilesResponse'
|
|
1127
|
+
|
|
1128
|
+
# auth_names
|
|
1129
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1130
|
+
|
|
1131
|
+
new_options = opts.merge(
|
|
1132
|
+
:operation => :"FilesApi.search_files",
|
|
1133
|
+
:header_params => header_params,
|
|
1134
|
+
:query_params => query_params,
|
|
1135
|
+
:form_params => form_params,
|
|
1136
|
+
:body => post_body,
|
|
1137
|
+
:auth_names => auth_names,
|
|
1138
|
+
:return_type => return_type
|
|
1139
|
+
)
|
|
1140
|
+
|
|
1141
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1142
|
+
if @api_client.config.debugging
|
|
1143
|
+
@api_client.config.logger.debug "API called: FilesApi#search_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1144
|
+
end
|
|
1145
|
+
return data, status_code, headers
|
|
1146
|
+
end
|
|
1147
|
+
|
|
1148
|
+
# Update a file's metadata (name, folder, custom fields).
|
|
1149
|
+
# @param id [String] File id.
|
|
1150
|
+
# @param update_file_request [UpdateFileRequest]
|
|
1151
|
+
# @param [Hash] opts the optional parameters
|
|
1152
|
+
# @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.
|
|
1153
|
+
# @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.
|
|
1154
|
+
# @return [SpatioFile]
|
|
1155
|
+
def update_file(id, update_file_request, opts = {})
|
|
1156
|
+
data, _status_code, _headers = update_file_with_http_info(id, update_file_request, opts)
|
|
1157
|
+
data
|
|
1158
|
+
end
|
|
1159
|
+
|
|
1160
|
+
# Update a file's metadata (name, folder, custom fields).
|
|
1161
|
+
# @param id [String] File id.
|
|
1162
|
+
# @param update_file_request [UpdateFileRequest]
|
|
1163
|
+
# @param [Hash] opts the optional parameters
|
|
1164
|
+
# @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.
|
|
1165
|
+
# @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.
|
|
1166
|
+
# @return [Array<(SpatioFile, Integer, Hash)>] SpatioFile data, response status code and response headers
|
|
1167
|
+
def update_file_with_http_info(id, update_file_request, opts = {})
|
|
1168
|
+
if @api_client.config.debugging
|
|
1169
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.update_file ...'
|
|
1170
|
+
end
|
|
1171
|
+
# verify the required parameter 'id' is set
|
|
1172
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1173
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.update_file"
|
|
1174
|
+
end
|
|
1175
|
+
# verify the required parameter 'update_file_request' is set
|
|
1176
|
+
if @api_client.config.client_side_validation && update_file_request.nil?
|
|
1177
|
+
fail ArgumentError, "Missing the required parameter 'update_file_request' when calling FilesApi.update_file"
|
|
1178
|
+
end
|
|
1179
|
+
# resource path
|
|
1180
|
+
local_var_path = '/v1/files/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
1181
|
+
|
|
1182
|
+
# query parameters
|
|
1183
|
+
query_params = opts[:query_params] || {}
|
|
1184
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1185
|
+
|
|
1186
|
+
# header parameters
|
|
1187
|
+
header_params = opts[:header_params] || {}
|
|
1188
|
+
# HTTP header 'Accept' (if needed)
|
|
1189
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1190
|
+
# HTTP header 'Content-Type'
|
|
1191
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1192
|
+
if !content_type.nil?
|
|
1193
|
+
header_params['Content-Type'] = content_type
|
|
1194
|
+
end
|
|
1195
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
1196
|
+
|
|
1197
|
+
# form parameters
|
|
1198
|
+
form_params = opts[:form_params] || {}
|
|
1199
|
+
|
|
1200
|
+
# http body (model)
|
|
1201
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_file_request)
|
|
1202
|
+
|
|
1203
|
+
# return_type
|
|
1204
|
+
return_type = opts[:debug_return_type] || 'SpatioFile'
|
|
1205
|
+
|
|
1206
|
+
# auth_names
|
|
1207
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1208
|
+
|
|
1209
|
+
new_options = opts.merge(
|
|
1210
|
+
:operation => :"FilesApi.update_file",
|
|
1211
|
+
:header_params => header_params,
|
|
1212
|
+
:query_params => query_params,
|
|
1213
|
+
:form_params => form_params,
|
|
1214
|
+
:body => post_body,
|
|
1215
|
+
:auth_names => auth_names,
|
|
1216
|
+
:return_type => return_type
|
|
1217
|
+
)
|
|
1218
|
+
|
|
1219
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1220
|
+
if @api_client.config.debugging
|
|
1221
|
+
@api_client.config.logger.debug "API called: FilesApi#update_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1222
|
+
end
|
|
1223
|
+
return data, status_code, headers
|
|
1224
|
+
end
|
|
1225
|
+
|
|
1226
|
+
# Upload one block for an open chunked-upload session.
|
|
1227
|
+
# @param session_id [String]
|
|
1228
|
+
# @param block_hash [String]
|
|
1229
|
+
# @param block [File]
|
|
1230
|
+
# @param [Hash] opts the optional parameters
|
|
1231
|
+
# @option opts [Integer] :block_index
|
|
1232
|
+
# @return [UploadChunkedBlockResponse]
|
|
1233
|
+
def upload_chunked_block(session_id, block_hash, block, opts = {})
|
|
1234
|
+
data, _status_code, _headers = upload_chunked_block_with_http_info(session_id, block_hash, block, opts)
|
|
1235
|
+
data
|
|
1236
|
+
end
|
|
1237
|
+
|
|
1238
|
+
# Upload one block for an open chunked-upload session.
|
|
1239
|
+
# @param session_id [String]
|
|
1240
|
+
# @param block_hash [String]
|
|
1241
|
+
# @param block [File]
|
|
1242
|
+
# @param [Hash] opts the optional parameters
|
|
1243
|
+
# @option opts [Integer] :block_index
|
|
1244
|
+
# @return [Array<(UploadChunkedBlockResponse, Integer, Hash)>] UploadChunkedBlockResponse data, response status code and response headers
|
|
1245
|
+
def upload_chunked_block_with_http_info(session_id, block_hash, block, opts = {})
|
|
1246
|
+
if @api_client.config.debugging
|
|
1247
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.upload_chunked_block ...'
|
|
1248
|
+
end
|
|
1249
|
+
# verify the required parameter 'session_id' is set
|
|
1250
|
+
if @api_client.config.client_side_validation && session_id.nil?
|
|
1251
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling FilesApi.upload_chunked_block"
|
|
1252
|
+
end
|
|
1253
|
+
# verify the required parameter 'block_hash' is set
|
|
1254
|
+
if @api_client.config.client_side_validation && block_hash.nil?
|
|
1255
|
+
fail ArgumentError, "Missing the required parameter 'block_hash' when calling FilesApi.upload_chunked_block"
|
|
1256
|
+
end
|
|
1257
|
+
# verify the required parameter 'block' is set
|
|
1258
|
+
if @api_client.config.client_side_validation && block.nil?
|
|
1259
|
+
fail ArgumentError, "Missing the required parameter 'block' when calling FilesApi.upload_chunked_block"
|
|
1260
|
+
end
|
|
1261
|
+
# resource path
|
|
1262
|
+
local_var_path = '/v1/files/upload/chunked/blocks'
|
|
1263
|
+
|
|
1264
|
+
# query parameters
|
|
1265
|
+
query_params = opts[:query_params] || {}
|
|
1266
|
+
|
|
1267
|
+
# header parameters
|
|
1268
|
+
header_params = opts[:header_params] || {}
|
|
1269
|
+
# HTTP header 'Accept' (if needed)
|
|
1270
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1271
|
+
# HTTP header 'Content-Type'
|
|
1272
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
1273
|
+
if !content_type.nil?
|
|
1274
|
+
header_params['Content-Type'] = content_type
|
|
1275
|
+
end
|
|
1276
|
+
|
|
1277
|
+
# form parameters
|
|
1278
|
+
form_params = opts[:form_params] || {}
|
|
1279
|
+
form_params['sessionId'] = session_id
|
|
1280
|
+
form_params['blockHash'] = block_hash
|
|
1281
|
+
form_params['block'] = block
|
|
1282
|
+
form_params['blockIndex'] = opts[:'block_index'] if !opts[:'block_index'].nil?
|
|
1283
|
+
|
|
1284
|
+
# http body (model)
|
|
1285
|
+
post_body = opts[:debug_body]
|
|
1286
|
+
|
|
1287
|
+
# return_type
|
|
1288
|
+
return_type = opts[:debug_return_type] || 'UploadChunkedBlockResponse'
|
|
1289
|
+
|
|
1290
|
+
# auth_names
|
|
1291
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1292
|
+
|
|
1293
|
+
new_options = opts.merge(
|
|
1294
|
+
:operation => :"FilesApi.upload_chunked_block",
|
|
1295
|
+
:header_params => header_params,
|
|
1296
|
+
:query_params => query_params,
|
|
1297
|
+
:form_params => form_params,
|
|
1298
|
+
:body => post_body,
|
|
1299
|
+
:auth_names => auth_names,
|
|
1300
|
+
:return_type => return_type
|
|
1301
|
+
)
|
|
1302
|
+
|
|
1303
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1304
|
+
if @api_client.config.debugging
|
|
1305
|
+
@api_client.config.logger.debug "API called: FilesApi#upload_chunked_block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1306
|
+
end
|
|
1307
|
+
return data, status_code, headers
|
|
1308
|
+
end
|
|
1309
|
+
|
|
1310
|
+
# Upload a file via multipart form.
|
|
1311
|
+
# Multipart upload. Form field `file` carries the binary; auxiliary form fields scope the upload (`folderId`, `workspaceId`, `organizationId`, `accountId`). Max body size is currently 100 MB.
|
|
1312
|
+
# @param file [File] File bytes (multipart form field name `file`).
|
|
1313
|
+
# @param [Hash] opts the optional parameters
|
|
1314
|
+
# @option opts [String] :folder_id
|
|
1315
|
+
# @option opts [String] :workspace_id
|
|
1316
|
+
# @option opts [String] :organization_id
|
|
1317
|
+
# @option opts [String] :account_id
|
|
1318
|
+
# @return [SpatioFile]
|
|
1319
|
+
def upload_file(file, opts = {})
|
|
1320
|
+
data, _status_code, _headers = upload_file_with_http_info(file, opts)
|
|
1321
|
+
data
|
|
1322
|
+
end
|
|
1323
|
+
|
|
1324
|
+
# Upload a file via multipart form.
|
|
1325
|
+
# Multipart upload. Form field `file` carries the binary; auxiliary form fields scope the upload (`folderId`, `workspaceId`, `organizationId`, `accountId`). Max body size is currently 100 MB.
|
|
1326
|
+
# @param file [File] File bytes (multipart form field name `file`).
|
|
1327
|
+
# @param [Hash] opts the optional parameters
|
|
1328
|
+
# @option opts [String] :folder_id
|
|
1329
|
+
# @option opts [String] :workspace_id
|
|
1330
|
+
# @option opts [String] :organization_id
|
|
1331
|
+
# @option opts [String] :account_id
|
|
1332
|
+
# @return [Array<(SpatioFile, Integer, Hash)>] SpatioFile data, response status code and response headers
|
|
1333
|
+
def upload_file_with_http_info(file, opts = {})
|
|
1334
|
+
if @api_client.config.debugging
|
|
1335
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.upload_file ...'
|
|
1336
|
+
end
|
|
1337
|
+
# verify the required parameter 'file' is set
|
|
1338
|
+
if @api_client.config.client_side_validation && file.nil?
|
|
1339
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling FilesApi.upload_file"
|
|
1340
|
+
end
|
|
1341
|
+
# resource path
|
|
1342
|
+
local_var_path = '/v1/files/upload'
|
|
1343
|
+
|
|
1344
|
+
# query parameters
|
|
1345
|
+
query_params = opts[:query_params] || {}
|
|
1346
|
+
|
|
1347
|
+
# header parameters
|
|
1348
|
+
header_params = opts[:header_params] || {}
|
|
1349
|
+
# HTTP header 'Accept' (if needed)
|
|
1350
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1351
|
+
# HTTP header 'Content-Type'
|
|
1352
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
1353
|
+
if !content_type.nil?
|
|
1354
|
+
header_params['Content-Type'] = content_type
|
|
1355
|
+
end
|
|
1356
|
+
|
|
1357
|
+
# form parameters
|
|
1358
|
+
form_params = opts[:form_params] || {}
|
|
1359
|
+
form_params['file'] = file
|
|
1360
|
+
form_params['folderId'] = opts[:'folder_id'] if !opts[:'folder_id'].nil?
|
|
1361
|
+
form_params['workspaceId'] = opts[:'workspace_id'] if !opts[:'workspace_id'].nil?
|
|
1362
|
+
form_params['organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
|
1363
|
+
form_params['accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1364
|
+
|
|
1365
|
+
# http body (model)
|
|
1366
|
+
post_body = opts[:debug_body]
|
|
1367
|
+
|
|
1368
|
+
# return_type
|
|
1369
|
+
return_type = opts[:debug_return_type] || 'SpatioFile'
|
|
1370
|
+
|
|
1371
|
+
# auth_names
|
|
1372
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1373
|
+
|
|
1374
|
+
new_options = opts.merge(
|
|
1375
|
+
:operation => :"FilesApi.upload_file",
|
|
1376
|
+
:header_params => header_params,
|
|
1377
|
+
:query_params => query_params,
|
|
1378
|
+
:form_params => form_params,
|
|
1379
|
+
:body => post_body,
|
|
1380
|
+
:auth_names => auth_names,
|
|
1381
|
+
:return_type => return_type
|
|
1382
|
+
)
|
|
1383
|
+
|
|
1384
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1385
|
+
if @api_client.config.debugging
|
|
1386
|
+
@api_client.config.logger.debug "API called: FilesApi#upload_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1387
|
+
end
|
|
1388
|
+
return data, status_code, headers
|
|
1389
|
+
end
|
|
1390
|
+
|
|
1391
|
+
# Upload a file via JSON with base64-encoded content.
|
|
1392
|
+
# Equivalent to `uploadFile` for clients that can't post multipart bodies (e.g. browser fetch with strict CSP).
|
|
1393
|
+
# @param upload_file_base64_request [UploadFileBase64Request]
|
|
1394
|
+
# @param [Hash] opts the optional parameters
|
|
1395
|
+
# @return [SpatioFile]
|
|
1396
|
+
def upload_file_base64(upload_file_base64_request, opts = {})
|
|
1397
|
+
data, _status_code, _headers = upload_file_base64_with_http_info(upload_file_base64_request, opts)
|
|
1398
|
+
data
|
|
1399
|
+
end
|
|
1400
|
+
|
|
1401
|
+
# Upload a file via JSON with base64-encoded content.
|
|
1402
|
+
# Equivalent to `uploadFile` for clients that can't post multipart bodies (e.g. browser fetch with strict CSP).
|
|
1403
|
+
# @param upload_file_base64_request [UploadFileBase64Request]
|
|
1404
|
+
# @param [Hash] opts the optional parameters
|
|
1405
|
+
# @return [Array<(SpatioFile, Integer, Hash)>] SpatioFile data, response status code and response headers
|
|
1406
|
+
def upload_file_base64_with_http_info(upload_file_base64_request, opts = {})
|
|
1407
|
+
if @api_client.config.debugging
|
|
1408
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.upload_file_base64 ...'
|
|
1409
|
+
end
|
|
1410
|
+
# verify the required parameter 'upload_file_base64_request' is set
|
|
1411
|
+
if @api_client.config.client_side_validation && upload_file_base64_request.nil?
|
|
1412
|
+
fail ArgumentError, "Missing the required parameter 'upload_file_base64_request' when calling FilesApi.upload_file_base64"
|
|
1413
|
+
end
|
|
1414
|
+
# resource path
|
|
1415
|
+
local_var_path = '/v1/files/upload/base64'
|
|
1416
|
+
|
|
1417
|
+
# query parameters
|
|
1418
|
+
query_params = opts[:query_params] || {}
|
|
1419
|
+
|
|
1420
|
+
# header parameters
|
|
1421
|
+
header_params = opts[:header_params] || {}
|
|
1422
|
+
# HTTP header 'Accept' (if needed)
|
|
1423
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1424
|
+
# HTTP header 'Content-Type'
|
|
1425
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1426
|
+
if !content_type.nil?
|
|
1427
|
+
header_params['Content-Type'] = content_type
|
|
1428
|
+
end
|
|
1429
|
+
|
|
1430
|
+
# form parameters
|
|
1431
|
+
form_params = opts[:form_params] || {}
|
|
1432
|
+
|
|
1433
|
+
# http body (model)
|
|
1434
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(upload_file_base64_request)
|
|
1435
|
+
|
|
1436
|
+
# return_type
|
|
1437
|
+
return_type = opts[:debug_return_type] || 'SpatioFile'
|
|
1438
|
+
|
|
1439
|
+
# auth_names
|
|
1440
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1441
|
+
|
|
1442
|
+
new_options = opts.merge(
|
|
1443
|
+
:operation => :"FilesApi.upload_file_base64",
|
|
1444
|
+
:header_params => header_params,
|
|
1445
|
+
:query_params => query_params,
|
|
1446
|
+
:form_params => form_params,
|
|
1447
|
+
:body => post_body,
|
|
1448
|
+
:auth_names => auth_names,
|
|
1449
|
+
:return_type => return_type
|
|
1450
|
+
)
|
|
1451
|
+
|
|
1452
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1453
|
+
if @api_client.config.debugging
|
|
1454
|
+
@api_client.config.logger.debug "API called: FilesApi#upload_file_base64\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1455
|
+
end
|
|
1456
|
+
return data, status_code, headers
|
|
1457
|
+
end
|
|
1458
|
+
|
|
1459
|
+
# Workspace-scoped chunked-upload commit (RBAC-protected).
|
|
1460
|
+
# @param org [String]
|
|
1461
|
+
# @param workspace [String]
|
|
1462
|
+
# @param request_body [Hash<String, Object>]
|
|
1463
|
+
# @param [Hash] opts the optional parameters
|
|
1464
|
+
# @return [Hash<String, Object>]
|
|
1465
|
+
def workspace_commit_chunked_upload(org, workspace, request_body, opts = {})
|
|
1466
|
+
data, _status_code, _headers = workspace_commit_chunked_upload_with_http_info(org, workspace, request_body, opts)
|
|
1467
|
+
data
|
|
1468
|
+
end
|
|
1469
|
+
|
|
1470
|
+
# Workspace-scoped chunked-upload commit (RBAC-protected).
|
|
1471
|
+
# @param org [String]
|
|
1472
|
+
# @param workspace [String]
|
|
1473
|
+
# @param request_body [Hash<String, Object>]
|
|
1474
|
+
# @param [Hash] opts the optional parameters
|
|
1475
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1476
|
+
def workspace_commit_chunked_upload_with_http_info(org, workspace, request_body, opts = {})
|
|
1477
|
+
if @api_client.config.debugging
|
|
1478
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_commit_chunked_upload ...'
|
|
1479
|
+
end
|
|
1480
|
+
# verify the required parameter 'org' is set
|
|
1481
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1482
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_commit_chunked_upload"
|
|
1483
|
+
end
|
|
1484
|
+
# verify the required parameter 'workspace' is set
|
|
1485
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1486
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_commit_chunked_upload"
|
|
1487
|
+
end
|
|
1488
|
+
# verify the required parameter 'request_body' is set
|
|
1489
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1490
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling FilesApi.workspace_commit_chunked_upload"
|
|
1491
|
+
end
|
|
1492
|
+
# resource path
|
|
1493
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/upload/chunked/commit'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
1494
|
+
|
|
1495
|
+
# query parameters
|
|
1496
|
+
query_params = opts[:query_params] || {}
|
|
1497
|
+
|
|
1498
|
+
# header parameters
|
|
1499
|
+
header_params = opts[:header_params] || {}
|
|
1500
|
+
# HTTP header 'Accept' (if needed)
|
|
1501
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1502
|
+
# HTTP header 'Content-Type'
|
|
1503
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1504
|
+
if !content_type.nil?
|
|
1505
|
+
header_params['Content-Type'] = content_type
|
|
1506
|
+
end
|
|
1507
|
+
|
|
1508
|
+
# form parameters
|
|
1509
|
+
form_params = opts[:form_params] || {}
|
|
1510
|
+
|
|
1511
|
+
# http body (model)
|
|
1512
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1513
|
+
|
|
1514
|
+
# return_type
|
|
1515
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1516
|
+
|
|
1517
|
+
# auth_names
|
|
1518
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1519
|
+
|
|
1520
|
+
new_options = opts.merge(
|
|
1521
|
+
:operation => :"FilesApi.workspace_commit_chunked_upload",
|
|
1522
|
+
:header_params => header_params,
|
|
1523
|
+
:query_params => query_params,
|
|
1524
|
+
:form_params => form_params,
|
|
1525
|
+
:body => post_body,
|
|
1526
|
+
:auth_names => auth_names,
|
|
1527
|
+
:return_type => return_type
|
|
1528
|
+
)
|
|
1529
|
+
|
|
1530
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1531
|
+
if @api_client.config.debugging
|
|
1532
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_commit_chunked_upload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1533
|
+
end
|
|
1534
|
+
return data, status_code, headers
|
|
1535
|
+
end
|
|
1536
|
+
|
|
1537
|
+
# Workspace-scoped create-folder (RBAC-protected).
|
|
1538
|
+
# @param org [String]
|
|
1539
|
+
# @param workspace [String]
|
|
1540
|
+
# @param request_body [Hash<String, Object>]
|
|
1541
|
+
# @param [Hash] opts the optional parameters
|
|
1542
|
+
# @return [Hash<String, Object>]
|
|
1543
|
+
def workspace_create_file_folder(org, workspace, request_body, opts = {})
|
|
1544
|
+
data, _status_code, _headers = workspace_create_file_folder_with_http_info(org, workspace, request_body, opts)
|
|
1545
|
+
data
|
|
1546
|
+
end
|
|
1547
|
+
|
|
1548
|
+
# Workspace-scoped create-folder (RBAC-protected).
|
|
1549
|
+
# @param org [String]
|
|
1550
|
+
# @param workspace [String]
|
|
1551
|
+
# @param request_body [Hash<String, Object>]
|
|
1552
|
+
# @param [Hash] opts the optional parameters
|
|
1553
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1554
|
+
def workspace_create_file_folder_with_http_info(org, workspace, request_body, opts = {})
|
|
1555
|
+
if @api_client.config.debugging
|
|
1556
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_create_file_folder ...'
|
|
1557
|
+
end
|
|
1558
|
+
# verify the required parameter 'org' is set
|
|
1559
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1560
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_create_file_folder"
|
|
1561
|
+
end
|
|
1562
|
+
# verify the required parameter 'workspace' is set
|
|
1563
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1564
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_create_file_folder"
|
|
1565
|
+
end
|
|
1566
|
+
# verify the required parameter 'request_body' is set
|
|
1567
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1568
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling FilesApi.workspace_create_file_folder"
|
|
1569
|
+
end
|
|
1570
|
+
# resource path
|
|
1571
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/folders'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
1572
|
+
|
|
1573
|
+
# query parameters
|
|
1574
|
+
query_params = opts[:query_params] || {}
|
|
1575
|
+
|
|
1576
|
+
# header parameters
|
|
1577
|
+
header_params = opts[:header_params] || {}
|
|
1578
|
+
# HTTP header 'Accept' (if needed)
|
|
1579
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1580
|
+
# HTTP header 'Content-Type'
|
|
1581
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1582
|
+
if !content_type.nil?
|
|
1583
|
+
header_params['Content-Type'] = content_type
|
|
1584
|
+
end
|
|
1585
|
+
|
|
1586
|
+
# form parameters
|
|
1587
|
+
form_params = opts[:form_params] || {}
|
|
1588
|
+
|
|
1589
|
+
# http body (model)
|
|
1590
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1591
|
+
|
|
1592
|
+
# return_type
|
|
1593
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1594
|
+
|
|
1595
|
+
# auth_names
|
|
1596
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1597
|
+
|
|
1598
|
+
new_options = opts.merge(
|
|
1599
|
+
:operation => :"FilesApi.workspace_create_file_folder",
|
|
1600
|
+
:header_params => header_params,
|
|
1601
|
+
:query_params => query_params,
|
|
1602
|
+
:form_params => form_params,
|
|
1603
|
+
:body => post_body,
|
|
1604
|
+
:auth_names => auth_names,
|
|
1605
|
+
:return_type => return_type
|
|
1606
|
+
)
|
|
1607
|
+
|
|
1608
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1609
|
+
if @api_client.config.debugging
|
|
1610
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_create_file_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1611
|
+
end
|
|
1612
|
+
return data, status_code, headers
|
|
1613
|
+
end
|
|
1614
|
+
|
|
1615
|
+
# Workspace-scoped delete-file.
|
|
1616
|
+
# @param org [String]
|
|
1617
|
+
# @param workspace [String]
|
|
1618
|
+
# @param id [String]
|
|
1619
|
+
# @param [Hash] opts the optional parameters
|
|
1620
|
+
# @return [nil]
|
|
1621
|
+
def workspace_delete_file(org, workspace, id, opts = {})
|
|
1622
|
+
workspace_delete_file_with_http_info(org, workspace, id, opts)
|
|
1623
|
+
nil
|
|
1624
|
+
end
|
|
1625
|
+
|
|
1626
|
+
# Workspace-scoped delete-file.
|
|
1627
|
+
# @param org [String]
|
|
1628
|
+
# @param workspace [String]
|
|
1629
|
+
# @param id [String]
|
|
1630
|
+
# @param [Hash] opts the optional parameters
|
|
1631
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1632
|
+
def workspace_delete_file_with_http_info(org, workspace, id, opts = {})
|
|
1633
|
+
if @api_client.config.debugging
|
|
1634
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_delete_file ...'
|
|
1635
|
+
end
|
|
1636
|
+
# verify the required parameter 'org' is set
|
|
1637
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1638
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_delete_file"
|
|
1639
|
+
end
|
|
1640
|
+
# verify the required parameter 'workspace' is set
|
|
1641
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1642
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_delete_file"
|
|
1643
|
+
end
|
|
1644
|
+
# verify the required parameter 'id' is set
|
|
1645
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1646
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.workspace_delete_file"
|
|
1647
|
+
end
|
|
1648
|
+
# resource path
|
|
1649
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
1650
|
+
|
|
1651
|
+
# query parameters
|
|
1652
|
+
query_params = opts[:query_params] || {}
|
|
1653
|
+
|
|
1654
|
+
# header parameters
|
|
1655
|
+
header_params = opts[:header_params] || {}
|
|
1656
|
+
# HTTP header 'Accept' (if needed)
|
|
1657
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1658
|
+
|
|
1659
|
+
# form parameters
|
|
1660
|
+
form_params = opts[:form_params] || {}
|
|
1661
|
+
|
|
1662
|
+
# http body (model)
|
|
1663
|
+
post_body = opts[:debug_body]
|
|
1664
|
+
|
|
1665
|
+
# return_type
|
|
1666
|
+
return_type = opts[:debug_return_type]
|
|
1667
|
+
|
|
1668
|
+
# auth_names
|
|
1669
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1670
|
+
|
|
1671
|
+
new_options = opts.merge(
|
|
1672
|
+
:operation => :"FilesApi.workspace_delete_file",
|
|
1673
|
+
:header_params => header_params,
|
|
1674
|
+
:query_params => query_params,
|
|
1675
|
+
:form_params => form_params,
|
|
1676
|
+
:body => post_body,
|
|
1677
|
+
:auth_names => auth_names,
|
|
1678
|
+
:return_type => return_type
|
|
1679
|
+
)
|
|
1680
|
+
|
|
1681
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1682
|
+
if @api_client.config.debugging
|
|
1683
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_delete_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1684
|
+
end
|
|
1685
|
+
return data, status_code, headers
|
|
1686
|
+
end
|
|
1687
|
+
|
|
1688
|
+
# Workspace-scoped get-file.
|
|
1689
|
+
# @param org [String]
|
|
1690
|
+
# @param workspace [String]
|
|
1691
|
+
# @param id [String]
|
|
1692
|
+
# @param [Hash] opts the optional parameters
|
|
1693
|
+
# @return [Hash<String, Object>]
|
|
1694
|
+
def workspace_get_file(org, workspace, id, opts = {})
|
|
1695
|
+
data, _status_code, _headers = workspace_get_file_with_http_info(org, workspace, id, opts)
|
|
1696
|
+
data
|
|
1697
|
+
end
|
|
1698
|
+
|
|
1699
|
+
# Workspace-scoped get-file.
|
|
1700
|
+
# @param org [String]
|
|
1701
|
+
# @param workspace [String]
|
|
1702
|
+
# @param id [String]
|
|
1703
|
+
# @param [Hash] opts the optional parameters
|
|
1704
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1705
|
+
def workspace_get_file_with_http_info(org, workspace, id, opts = {})
|
|
1706
|
+
if @api_client.config.debugging
|
|
1707
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_get_file ...'
|
|
1708
|
+
end
|
|
1709
|
+
# verify the required parameter 'org' is set
|
|
1710
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1711
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_get_file"
|
|
1712
|
+
end
|
|
1713
|
+
# verify the required parameter 'workspace' is set
|
|
1714
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1715
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_get_file"
|
|
1716
|
+
end
|
|
1717
|
+
# verify the required parameter 'id' is set
|
|
1718
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1719
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.workspace_get_file"
|
|
1720
|
+
end
|
|
1721
|
+
# resource path
|
|
1722
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
1723
|
+
|
|
1724
|
+
# query parameters
|
|
1725
|
+
query_params = opts[:query_params] || {}
|
|
1726
|
+
|
|
1727
|
+
# header parameters
|
|
1728
|
+
header_params = opts[:header_params] || {}
|
|
1729
|
+
# HTTP header 'Accept' (if needed)
|
|
1730
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1731
|
+
|
|
1732
|
+
# form parameters
|
|
1733
|
+
form_params = opts[:form_params] || {}
|
|
1734
|
+
|
|
1735
|
+
# http body (model)
|
|
1736
|
+
post_body = opts[:debug_body]
|
|
1737
|
+
|
|
1738
|
+
# return_type
|
|
1739
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1740
|
+
|
|
1741
|
+
# auth_names
|
|
1742
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1743
|
+
|
|
1744
|
+
new_options = opts.merge(
|
|
1745
|
+
:operation => :"FilesApi.workspace_get_file",
|
|
1746
|
+
:header_params => header_params,
|
|
1747
|
+
:query_params => query_params,
|
|
1748
|
+
:form_params => form_params,
|
|
1749
|
+
:body => post_body,
|
|
1750
|
+
:auth_names => auth_names,
|
|
1751
|
+
:return_type => return_type
|
|
1752
|
+
)
|
|
1753
|
+
|
|
1754
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1755
|
+
if @api_client.config.debugging
|
|
1756
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_get_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1757
|
+
end
|
|
1758
|
+
return data, status_code, headers
|
|
1759
|
+
end
|
|
1760
|
+
|
|
1761
|
+
# Workspace-scoped signed-download URL.
|
|
1762
|
+
# @param org [String]
|
|
1763
|
+
# @param workspace [String]
|
|
1764
|
+
# @param id [String]
|
|
1765
|
+
# @param [Hash] opts the optional parameters
|
|
1766
|
+
# @return [Hash<String, Object>]
|
|
1767
|
+
def workspace_get_file_download(org, workspace, id, opts = {})
|
|
1768
|
+
data, _status_code, _headers = workspace_get_file_download_with_http_info(org, workspace, id, opts)
|
|
1769
|
+
data
|
|
1770
|
+
end
|
|
1771
|
+
|
|
1772
|
+
# Workspace-scoped signed-download URL.
|
|
1773
|
+
# @param org [String]
|
|
1774
|
+
# @param workspace [String]
|
|
1775
|
+
# @param id [String]
|
|
1776
|
+
# @param [Hash] opts the optional parameters
|
|
1777
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1778
|
+
def workspace_get_file_download_with_http_info(org, workspace, id, opts = {})
|
|
1779
|
+
if @api_client.config.debugging
|
|
1780
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_get_file_download ...'
|
|
1781
|
+
end
|
|
1782
|
+
# verify the required parameter 'org' is set
|
|
1783
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1784
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_get_file_download"
|
|
1785
|
+
end
|
|
1786
|
+
# verify the required parameter 'workspace' is set
|
|
1787
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1788
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_get_file_download"
|
|
1789
|
+
end
|
|
1790
|
+
# verify the required parameter 'id' is set
|
|
1791
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1792
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.workspace_get_file_download"
|
|
1793
|
+
end
|
|
1794
|
+
# resource path
|
|
1795
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/{id}/download'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
1796
|
+
|
|
1797
|
+
# query parameters
|
|
1798
|
+
query_params = opts[:query_params] || {}
|
|
1799
|
+
|
|
1800
|
+
# header parameters
|
|
1801
|
+
header_params = opts[:header_params] || {}
|
|
1802
|
+
# HTTP header 'Accept' (if needed)
|
|
1803
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1804
|
+
|
|
1805
|
+
# form parameters
|
|
1806
|
+
form_params = opts[:form_params] || {}
|
|
1807
|
+
|
|
1808
|
+
# http body (model)
|
|
1809
|
+
post_body = opts[:debug_body]
|
|
1810
|
+
|
|
1811
|
+
# return_type
|
|
1812
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1813
|
+
|
|
1814
|
+
# auth_names
|
|
1815
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1816
|
+
|
|
1817
|
+
new_options = opts.merge(
|
|
1818
|
+
:operation => :"FilesApi.workspace_get_file_download",
|
|
1819
|
+
:header_params => header_params,
|
|
1820
|
+
:query_params => query_params,
|
|
1821
|
+
:form_params => form_params,
|
|
1822
|
+
:body => post_body,
|
|
1823
|
+
:auth_names => auth_names,
|
|
1824
|
+
:return_type => return_type
|
|
1825
|
+
)
|
|
1826
|
+
|
|
1827
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1828
|
+
if @api_client.config.debugging
|
|
1829
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_get_file_download\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1830
|
+
end
|
|
1831
|
+
return data, status_code, headers
|
|
1832
|
+
end
|
|
1833
|
+
|
|
1834
|
+
# Workspace-scoped chunked-file manifest.
|
|
1835
|
+
# @param org [String]
|
|
1836
|
+
# @param workspace [String]
|
|
1837
|
+
# @param id [String]
|
|
1838
|
+
# @param [Hash] opts the optional parameters
|
|
1839
|
+
# @return [Hash<String, Object>]
|
|
1840
|
+
def workspace_get_file_manifest(org, workspace, id, opts = {})
|
|
1841
|
+
data, _status_code, _headers = workspace_get_file_manifest_with_http_info(org, workspace, id, opts)
|
|
1842
|
+
data
|
|
1843
|
+
end
|
|
1844
|
+
|
|
1845
|
+
# Workspace-scoped chunked-file manifest.
|
|
1846
|
+
# @param org [String]
|
|
1847
|
+
# @param workspace [String]
|
|
1848
|
+
# @param id [String]
|
|
1849
|
+
# @param [Hash] opts the optional parameters
|
|
1850
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1851
|
+
def workspace_get_file_manifest_with_http_info(org, workspace, id, opts = {})
|
|
1852
|
+
if @api_client.config.debugging
|
|
1853
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_get_file_manifest ...'
|
|
1854
|
+
end
|
|
1855
|
+
# verify the required parameter 'org' is set
|
|
1856
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1857
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_get_file_manifest"
|
|
1858
|
+
end
|
|
1859
|
+
# verify the required parameter 'workspace' is set
|
|
1860
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1861
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_get_file_manifest"
|
|
1862
|
+
end
|
|
1863
|
+
# verify the required parameter 'id' is set
|
|
1864
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1865
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.workspace_get_file_manifest"
|
|
1866
|
+
end
|
|
1867
|
+
# resource path
|
|
1868
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/{id}/manifest'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
1869
|
+
|
|
1870
|
+
# query parameters
|
|
1871
|
+
query_params = opts[:query_params] || {}
|
|
1872
|
+
|
|
1873
|
+
# header parameters
|
|
1874
|
+
header_params = opts[:header_params] || {}
|
|
1875
|
+
# HTTP header 'Accept' (if needed)
|
|
1876
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1877
|
+
|
|
1878
|
+
# form parameters
|
|
1879
|
+
form_params = opts[:form_params] || {}
|
|
1880
|
+
|
|
1881
|
+
# http body (model)
|
|
1882
|
+
post_body = opts[:debug_body]
|
|
1883
|
+
|
|
1884
|
+
# return_type
|
|
1885
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1886
|
+
|
|
1887
|
+
# auth_names
|
|
1888
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1889
|
+
|
|
1890
|
+
new_options = opts.merge(
|
|
1891
|
+
:operation => :"FilesApi.workspace_get_file_manifest",
|
|
1892
|
+
:header_params => header_params,
|
|
1893
|
+
:query_params => query_params,
|
|
1894
|
+
:form_params => form_params,
|
|
1895
|
+
:body => post_body,
|
|
1896
|
+
:auth_names => auth_names,
|
|
1897
|
+
:return_type => return_type
|
|
1898
|
+
)
|
|
1899
|
+
|
|
1900
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1901
|
+
if @api_client.config.debugging
|
|
1902
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_get_file_manifest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1903
|
+
end
|
|
1904
|
+
return data, status_code, headers
|
|
1905
|
+
end
|
|
1906
|
+
|
|
1907
|
+
# Workspace-scoped chunked-upload init (RBAC-protected).
|
|
1908
|
+
# @param org [String]
|
|
1909
|
+
# @param workspace [String]
|
|
1910
|
+
# @param request_body [Hash<String, Object>]
|
|
1911
|
+
# @param [Hash] opts the optional parameters
|
|
1912
|
+
# @return [Hash<String, Object>]
|
|
1913
|
+
def workspace_init_chunked_upload(org, workspace, request_body, opts = {})
|
|
1914
|
+
data, _status_code, _headers = workspace_init_chunked_upload_with_http_info(org, workspace, request_body, opts)
|
|
1915
|
+
data
|
|
1916
|
+
end
|
|
1917
|
+
|
|
1918
|
+
# Workspace-scoped chunked-upload init (RBAC-protected).
|
|
1919
|
+
# @param org [String]
|
|
1920
|
+
# @param workspace [String]
|
|
1921
|
+
# @param request_body [Hash<String, Object>]
|
|
1922
|
+
# @param [Hash] opts the optional parameters
|
|
1923
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1924
|
+
def workspace_init_chunked_upload_with_http_info(org, workspace, request_body, opts = {})
|
|
1925
|
+
if @api_client.config.debugging
|
|
1926
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_init_chunked_upload ...'
|
|
1927
|
+
end
|
|
1928
|
+
# verify the required parameter 'org' is set
|
|
1929
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1930
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_init_chunked_upload"
|
|
1931
|
+
end
|
|
1932
|
+
# verify the required parameter 'workspace' is set
|
|
1933
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1934
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_init_chunked_upload"
|
|
1935
|
+
end
|
|
1936
|
+
# verify the required parameter 'request_body' is set
|
|
1937
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1938
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling FilesApi.workspace_init_chunked_upload"
|
|
1939
|
+
end
|
|
1940
|
+
# resource path
|
|
1941
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/upload/chunked/init'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
1942
|
+
|
|
1943
|
+
# query parameters
|
|
1944
|
+
query_params = opts[:query_params] || {}
|
|
1945
|
+
|
|
1946
|
+
# header parameters
|
|
1947
|
+
header_params = opts[:header_params] || {}
|
|
1948
|
+
# HTTP header 'Accept' (if needed)
|
|
1949
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1950
|
+
# HTTP header 'Content-Type'
|
|
1951
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1952
|
+
if !content_type.nil?
|
|
1953
|
+
header_params['Content-Type'] = content_type
|
|
1954
|
+
end
|
|
1955
|
+
|
|
1956
|
+
# form parameters
|
|
1957
|
+
form_params = opts[:form_params] || {}
|
|
1958
|
+
|
|
1959
|
+
# http body (model)
|
|
1960
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1961
|
+
|
|
1962
|
+
# return_type
|
|
1963
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1964
|
+
|
|
1965
|
+
# auth_names
|
|
1966
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1967
|
+
|
|
1968
|
+
new_options = opts.merge(
|
|
1969
|
+
:operation => :"FilesApi.workspace_init_chunked_upload",
|
|
1970
|
+
:header_params => header_params,
|
|
1971
|
+
:query_params => query_params,
|
|
1972
|
+
:form_params => form_params,
|
|
1973
|
+
:body => post_body,
|
|
1974
|
+
:auth_names => auth_names,
|
|
1975
|
+
:return_type => return_type
|
|
1976
|
+
)
|
|
1977
|
+
|
|
1978
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1979
|
+
if @api_client.config.debugging
|
|
1980
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_init_chunked_upload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1981
|
+
end
|
|
1982
|
+
return data, status_code, headers
|
|
1983
|
+
end
|
|
1984
|
+
|
|
1985
|
+
# Workspace-scoped list-folders (RBAC-protected).
|
|
1986
|
+
# @param org [String]
|
|
1987
|
+
# @param workspace [String]
|
|
1988
|
+
# @param [Hash] opts the optional parameters
|
|
1989
|
+
# @return [Hash<String, Object>]
|
|
1990
|
+
def workspace_list_file_folders(org, workspace, opts = {})
|
|
1991
|
+
data, _status_code, _headers = workspace_list_file_folders_with_http_info(org, workspace, opts)
|
|
1992
|
+
data
|
|
1993
|
+
end
|
|
1994
|
+
|
|
1995
|
+
# Workspace-scoped list-folders (RBAC-protected).
|
|
1996
|
+
# @param org [String]
|
|
1997
|
+
# @param workspace [String]
|
|
1998
|
+
# @param [Hash] opts the optional parameters
|
|
1999
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
2000
|
+
def workspace_list_file_folders_with_http_info(org, workspace, opts = {})
|
|
2001
|
+
if @api_client.config.debugging
|
|
2002
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_list_file_folders ...'
|
|
2003
|
+
end
|
|
2004
|
+
# verify the required parameter 'org' is set
|
|
2005
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
2006
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_list_file_folders"
|
|
2007
|
+
end
|
|
2008
|
+
# verify the required parameter 'workspace' is set
|
|
2009
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
2010
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_list_file_folders"
|
|
2011
|
+
end
|
|
2012
|
+
# resource path
|
|
2013
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/folders'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
2014
|
+
|
|
2015
|
+
# query parameters
|
|
2016
|
+
query_params = opts[:query_params] || {}
|
|
2017
|
+
|
|
2018
|
+
# header parameters
|
|
2019
|
+
header_params = opts[:header_params] || {}
|
|
2020
|
+
# HTTP header 'Accept' (if needed)
|
|
2021
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2022
|
+
|
|
2023
|
+
# form parameters
|
|
2024
|
+
form_params = opts[:form_params] || {}
|
|
2025
|
+
|
|
2026
|
+
# http body (model)
|
|
2027
|
+
post_body = opts[:debug_body]
|
|
2028
|
+
|
|
2029
|
+
# return_type
|
|
2030
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
2031
|
+
|
|
2032
|
+
# auth_names
|
|
2033
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2034
|
+
|
|
2035
|
+
new_options = opts.merge(
|
|
2036
|
+
:operation => :"FilesApi.workspace_list_file_folders",
|
|
2037
|
+
:header_params => header_params,
|
|
2038
|
+
:query_params => query_params,
|
|
2039
|
+
:form_params => form_params,
|
|
2040
|
+
:body => post_body,
|
|
2041
|
+
:auth_names => auth_names,
|
|
2042
|
+
:return_type => return_type
|
|
2043
|
+
)
|
|
2044
|
+
|
|
2045
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2046
|
+
if @api_client.config.debugging
|
|
2047
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_list_file_folders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2048
|
+
end
|
|
2049
|
+
return data, status_code, headers
|
|
2050
|
+
end
|
|
2051
|
+
|
|
2052
|
+
# Workspace-scoped list-files (RBAC-protected).
|
|
2053
|
+
# @param org [String]
|
|
2054
|
+
# @param workspace [String]
|
|
2055
|
+
# @param [Hash] opts the optional parameters
|
|
2056
|
+
# @return [Hash<String, Object>]
|
|
2057
|
+
def workspace_list_files(org, workspace, opts = {})
|
|
2058
|
+
data, _status_code, _headers = workspace_list_files_with_http_info(org, workspace, opts)
|
|
2059
|
+
data
|
|
2060
|
+
end
|
|
2061
|
+
|
|
2062
|
+
# Workspace-scoped list-files (RBAC-protected).
|
|
2063
|
+
# @param org [String]
|
|
2064
|
+
# @param workspace [String]
|
|
2065
|
+
# @param [Hash] opts the optional parameters
|
|
2066
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
2067
|
+
def workspace_list_files_with_http_info(org, workspace, opts = {})
|
|
2068
|
+
if @api_client.config.debugging
|
|
2069
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_list_files ...'
|
|
2070
|
+
end
|
|
2071
|
+
# verify the required parameter 'org' is set
|
|
2072
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
2073
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_list_files"
|
|
2074
|
+
end
|
|
2075
|
+
# verify the required parameter 'workspace' is set
|
|
2076
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
2077
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_list_files"
|
|
2078
|
+
end
|
|
2079
|
+
# resource path
|
|
2080
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
2081
|
+
|
|
2082
|
+
# query parameters
|
|
2083
|
+
query_params = opts[:query_params] || {}
|
|
2084
|
+
|
|
2085
|
+
# header parameters
|
|
2086
|
+
header_params = opts[:header_params] || {}
|
|
2087
|
+
# HTTP header 'Accept' (if needed)
|
|
2088
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2089
|
+
|
|
2090
|
+
# form parameters
|
|
2091
|
+
form_params = opts[:form_params] || {}
|
|
2092
|
+
|
|
2093
|
+
# http body (model)
|
|
2094
|
+
post_body = opts[:debug_body]
|
|
2095
|
+
|
|
2096
|
+
# return_type
|
|
2097
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
2098
|
+
|
|
2099
|
+
# auth_names
|
|
2100
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2101
|
+
|
|
2102
|
+
new_options = opts.merge(
|
|
2103
|
+
:operation => :"FilesApi.workspace_list_files",
|
|
2104
|
+
:header_params => header_params,
|
|
2105
|
+
:query_params => query_params,
|
|
2106
|
+
:form_params => form_params,
|
|
2107
|
+
:body => post_body,
|
|
2108
|
+
:auth_names => auth_names,
|
|
2109
|
+
:return_type => return_type
|
|
2110
|
+
)
|
|
2111
|
+
|
|
2112
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2113
|
+
if @api_client.config.debugging
|
|
2114
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_list_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2115
|
+
end
|
|
2116
|
+
return data, status_code, headers
|
|
2117
|
+
end
|
|
2118
|
+
|
|
2119
|
+
# Workspace-scoped move-file.
|
|
2120
|
+
# @param org [String]
|
|
2121
|
+
# @param workspace [String]
|
|
2122
|
+
# @param id [String]
|
|
2123
|
+
# @param request_body [Hash<String, Object>]
|
|
2124
|
+
# @param [Hash] opts the optional parameters
|
|
2125
|
+
# @return [Hash<String, Object>]
|
|
2126
|
+
def workspace_move_file(org, workspace, id, request_body, opts = {})
|
|
2127
|
+
data, _status_code, _headers = workspace_move_file_with_http_info(org, workspace, id, request_body, opts)
|
|
2128
|
+
data
|
|
2129
|
+
end
|
|
2130
|
+
|
|
2131
|
+
# Workspace-scoped move-file.
|
|
2132
|
+
# @param org [String]
|
|
2133
|
+
# @param workspace [String]
|
|
2134
|
+
# @param id [String]
|
|
2135
|
+
# @param request_body [Hash<String, Object>]
|
|
2136
|
+
# @param [Hash] opts the optional parameters
|
|
2137
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
2138
|
+
def workspace_move_file_with_http_info(org, workspace, id, request_body, opts = {})
|
|
2139
|
+
if @api_client.config.debugging
|
|
2140
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_move_file ...'
|
|
2141
|
+
end
|
|
2142
|
+
# verify the required parameter 'org' is set
|
|
2143
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
2144
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_move_file"
|
|
2145
|
+
end
|
|
2146
|
+
# verify the required parameter 'workspace' is set
|
|
2147
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
2148
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_move_file"
|
|
2149
|
+
end
|
|
2150
|
+
# verify the required parameter 'id' is set
|
|
2151
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2152
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.workspace_move_file"
|
|
2153
|
+
end
|
|
2154
|
+
# verify the required parameter 'request_body' is set
|
|
2155
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
2156
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling FilesApi.workspace_move_file"
|
|
2157
|
+
end
|
|
2158
|
+
# resource path
|
|
2159
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/{id}/move'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
2160
|
+
|
|
2161
|
+
# query parameters
|
|
2162
|
+
query_params = opts[:query_params] || {}
|
|
2163
|
+
|
|
2164
|
+
# header parameters
|
|
2165
|
+
header_params = opts[:header_params] || {}
|
|
2166
|
+
# HTTP header 'Accept' (if needed)
|
|
2167
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2168
|
+
# HTTP header 'Content-Type'
|
|
2169
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2170
|
+
if !content_type.nil?
|
|
2171
|
+
header_params['Content-Type'] = content_type
|
|
2172
|
+
end
|
|
2173
|
+
|
|
2174
|
+
# form parameters
|
|
2175
|
+
form_params = opts[:form_params] || {}
|
|
2176
|
+
|
|
2177
|
+
# http body (model)
|
|
2178
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
2179
|
+
|
|
2180
|
+
# return_type
|
|
2181
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
2182
|
+
|
|
2183
|
+
# auth_names
|
|
2184
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2185
|
+
|
|
2186
|
+
new_options = opts.merge(
|
|
2187
|
+
:operation => :"FilesApi.workspace_move_file",
|
|
2188
|
+
:header_params => header_params,
|
|
2189
|
+
:query_params => query_params,
|
|
2190
|
+
:form_params => form_params,
|
|
2191
|
+
:body => post_body,
|
|
2192
|
+
:auth_names => auth_names,
|
|
2193
|
+
:return_type => return_type
|
|
2194
|
+
)
|
|
2195
|
+
|
|
2196
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2197
|
+
if @api_client.config.debugging
|
|
2198
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_move_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2199
|
+
end
|
|
2200
|
+
return data, status_code, headers
|
|
2201
|
+
end
|
|
2202
|
+
|
|
2203
|
+
# Workspace-scoped update-file.
|
|
2204
|
+
# @param org [String]
|
|
2205
|
+
# @param workspace [String]
|
|
2206
|
+
# @param id [String]
|
|
2207
|
+
# @param request_body [Hash<String, Object>]
|
|
2208
|
+
# @param [Hash] opts the optional parameters
|
|
2209
|
+
# @return [Hash<String, Object>]
|
|
2210
|
+
def workspace_update_file(org, workspace, id, request_body, opts = {})
|
|
2211
|
+
data, _status_code, _headers = workspace_update_file_with_http_info(org, workspace, id, request_body, opts)
|
|
2212
|
+
data
|
|
2213
|
+
end
|
|
2214
|
+
|
|
2215
|
+
# Workspace-scoped update-file.
|
|
2216
|
+
# @param org [String]
|
|
2217
|
+
# @param workspace [String]
|
|
2218
|
+
# @param id [String]
|
|
2219
|
+
# @param request_body [Hash<String, Object>]
|
|
2220
|
+
# @param [Hash] opts the optional parameters
|
|
2221
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
2222
|
+
def workspace_update_file_with_http_info(org, workspace, id, request_body, opts = {})
|
|
2223
|
+
if @api_client.config.debugging
|
|
2224
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_update_file ...'
|
|
2225
|
+
end
|
|
2226
|
+
# verify the required parameter 'org' is set
|
|
2227
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
2228
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_update_file"
|
|
2229
|
+
end
|
|
2230
|
+
# verify the required parameter 'workspace' is set
|
|
2231
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
2232
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_update_file"
|
|
2233
|
+
end
|
|
2234
|
+
# verify the required parameter 'id' is set
|
|
2235
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2236
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.workspace_update_file"
|
|
2237
|
+
end
|
|
2238
|
+
# verify the required parameter 'request_body' is set
|
|
2239
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
2240
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling FilesApi.workspace_update_file"
|
|
2241
|
+
end
|
|
2242
|
+
# resource path
|
|
2243
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
2244
|
+
|
|
2245
|
+
# query parameters
|
|
2246
|
+
query_params = opts[:query_params] || {}
|
|
2247
|
+
|
|
2248
|
+
# header parameters
|
|
2249
|
+
header_params = opts[:header_params] || {}
|
|
2250
|
+
# HTTP header 'Accept' (if needed)
|
|
2251
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2252
|
+
# HTTP header 'Content-Type'
|
|
2253
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2254
|
+
if !content_type.nil?
|
|
2255
|
+
header_params['Content-Type'] = content_type
|
|
2256
|
+
end
|
|
2257
|
+
|
|
2258
|
+
# form parameters
|
|
2259
|
+
form_params = opts[:form_params] || {}
|
|
2260
|
+
|
|
2261
|
+
# http body (model)
|
|
2262
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
2263
|
+
|
|
2264
|
+
# return_type
|
|
2265
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
2266
|
+
|
|
2267
|
+
# auth_names
|
|
2268
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2269
|
+
|
|
2270
|
+
new_options = opts.merge(
|
|
2271
|
+
:operation => :"FilesApi.workspace_update_file",
|
|
2272
|
+
:header_params => header_params,
|
|
2273
|
+
:query_params => query_params,
|
|
2274
|
+
:form_params => form_params,
|
|
2275
|
+
:body => post_body,
|
|
2276
|
+
:auth_names => auth_names,
|
|
2277
|
+
:return_type => return_type
|
|
2278
|
+
)
|
|
2279
|
+
|
|
2280
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2281
|
+
if @api_client.config.debugging
|
|
2282
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_update_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2283
|
+
end
|
|
2284
|
+
return data, status_code, headers
|
|
2285
|
+
end
|
|
2286
|
+
|
|
2287
|
+
# Workspace-scoped chunked-upload block (RBAC-protected).
|
|
2288
|
+
# @param org [String]
|
|
2289
|
+
# @param workspace [String]
|
|
2290
|
+
# @param body [File]
|
|
2291
|
+
# @param [Hash] opts the optional parameters
|
|
2292
|
+
# @return [Hash<String, Object>]
|
|
2293
|
+
def workspace_upload_chunked_block(org, workspace, body, opts = {})
|
|
2294
|
+
data, _status_code, _headers = workspace_upload_chunked_block_with_http_info(org, workspace, body, opts)
|
|
2295
|
+
data
|
|
2296
|
+
end
|
|
2297
|
+
|
|
2298
|
+
# Workspace-scoped chunked-upload block (RBAC-protected).
|
|
2299
|
+
# @param org [String]
|
|
2300
|
+
# @param workspace [String]
|
|
2301
|
+
# @param body [File]
|
|
2302
|
+
# @param [Hash] opts the optional parameters
|
|
2303
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
2304
|
+
def workspace_upload_chunked_block_with_http_info(org, workspace, body, opts = {})
|
|
2305
|
+
if @api_client.config.debugging
|
|
2306
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_upload_chunked_block ...'
|
|
2307
|
+
end
|
|
2308
|
+
# verify the required parameter 'org' is set
|
|
2309
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
2310
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_upload_chunked_block"
|
|
2311
|
+
end
|
|
2312
|
+
# verify the required parameter 'workspace' is set
|
|
2313
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
2314
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_upload_chunked_block"
|
|
2315
|
+
end
|
|
2316
|
+
# verify the required parameter 'body' is set
|
|
2317
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
2318
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FilesApi.workspace_upload_chunked_block"
|
|
2319
|
+
end
|
|
2320
|
+
# resource path
|
|
2321
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/upload/chunked/blocks'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
2322
|
+
|
|
2323
|
+
# query parameters
|
|
2324
|
+
query_params = opts[:query_params] || {}
|
|
2325
|
+
|
|
2326
|
+
# header parameters
|
|
2327
|
+
header_params = opts[:header_params] || {}
|
|
2328
|
+
# HTTP header 'Accept' (if needed)
|
|
2329
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2330
|
+
# HTTP header 'Content-Type'
|
|
2331
|
+
content_type = @api_client.select_header_content_type(['application/octet-stream'])
|
|
2332
|
+
if !content_type.nil?
|
|
2333
|
+
header_params['Content-Type'] = content_type
|
|
2334
|
+
end
|
|
2335
|
+
|
|
2336
|
+
# form parameters
|
|
2337
|
+
form_params = opts[:form_params] || {}
|
|
2338
|
+
|
|
2339
|
+
# http body (model)
|
|
2340
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2341
|
+
|
|
2342
|
+
# return_type
|
|
2343
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
2344
|
+
|
|
2345
|
+
# auth_names
|
|
2346
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2347
|
+
|
|
2348
|
+
new_options = opts.merge(
|
|
2349
|
+
:operation => :"FilesApi.workspace_upload_chunked_block",
|
|
2350
|
+
:header_params => header_params,
|
|
2351
|
+
:query_params => query_params,
|
|
2352
|
+
:form_params => form_params,
|
|
2353
|
+
:body => post_body,
|
|
2354
|
+
:auth_names => auth_names,
|
|
2355
|
+
:return_type => return_type
|
|
2356
|
+
)
|
|
2357
|
+
|
|
2358
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2359
|
+
if @api_client.config.debugging
|
|
2360
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_upload_chunked_block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2361
|
+
end
|
|
2362
|
+
return data, status_code, headers
|
|
2363
|
+
end
|
|
2364
|
+
|
|
2365
|
+
# Workspace-scoped multipart upload (RBAC-protected).
|
|
2366
|
+
# @param org [String]
|
|
2367
|
+
# @param workspace [String]
|
|
2368
|
+
# @param [Hash] opts the optional parameters
|
|
2369
|
+
# @option opts [File] :file
|
|
2370
|
+
# @return [Hash<String, Object>]
|
|
2371
|
+
def workspace_upload_file(org, workspace, opts = {})
|
|
2372
|
+
data, _status_code, _headers = workspace_upload_file_with_http_info(org, workspace, opts)
|
|
2373
|
+
data
|
|
2374
|
+
end
|
|
2375
|
+
|
|
2376
|
+
# Workspace-scoped multipart upload (RBAC-protected).
|
|
2377
|
+
# @param org [String]
|
|
2378
|
+
# @param workspace [String]
|
|
2379
|
+
# @param [Hash] opts the optional parameters
|
|
2380
|
+
# @option opts [File] :file
|
|
2381
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
2382
|
+
def workspace_upload_file_with_http_info(org, workspace, opts = {})
|
|
2383
|
+
if @api_client.config.debugging
|
|
2384
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_upload_file ...'
|
|
2385
|
+
end
|
|
2386
|
+
# verify the required parameter 'org' is set
|
|
2387
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
2388
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_upload_file"
|
|
2389
|
+
end
|
|
2390
|
+
# verify the required parameter 'workspace' is set
|
|
2391
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
2392
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_upload_file"
|
|
2393
|
+
end
|
|
2394
|
+
# resource path
|
|
2395
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/upload'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
2396
|
+
|
|
2397
|
+
# query parameters
|
|
2398
|
+
query_params = opts[:query_params] || {}
|
|
2399
|
+
|
|
2400
|
+
# header parameters
|
|
2401
|
+
header_params = opts[:header_params] || {}
|
|
2402
|
+
# HTTP header 'Accept' (if needed)
|
|
2403
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2404
|
+
# HTTP header 'Content-Type'
|
|
2405
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
2406
|
+
if !content_type.nil?
|
|
2407
|
+
header_params['Content-Type'] = content_type
|
|
2408
|
+
end
|
|
2409
|
+
|
|
2410
|
+
# form parameters
|
|
2411
|
+
form_params = opts[:form_params] || {}
|
|
2412
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
2413
|
+
|
|
2414
|
+
# http body (model)
|
|
2415
|
+
post_body = opts[:debug_body]
|
|
2416
|
+
|
|
2417
|
+
# return_type
|
|
2418
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
2419
|
+
|
|
2420
|
+
# auth_names
|
|
2421
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2422
|
+
|
|
2423
|
+
new_options = opts.merge(
|
|
2424
|
+
:operation => :"FilesApi.workspace_upload_file",
|
|
2425
|
+
:header_params => header_params,
|
|
2426
|
+
:query_params => query_params,
|
|
2427
|
+
:form_params => form_params,
|
|
2428
|
+
:body => post_body,
|
|
2429
|
+
:auth_names => auth_names,
|
|
2430
|
+
:return_type => return_type
|
|
2431
|
+
)
|
|
2432
|
+
|
|
2433
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2434
|
+
if @api_client.config.debugging
|
|
2435
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_upload_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2436
|
+
end
|
|
2437
|
+
return data, status_code, headers
|
|
2438
|
+
end
|
|
2439
|
+
|
|
2440
|
+
# Workspace-scoped base64 upload (RBAC-protected).
|
|
2441
|
+
# @param org [String]
|
|
2442
|
+
# @param workspace [String]
|
|
2443
|
+
# @param request_body [Hash<String, Object>]
|
|
2444
|
+
# @param [Hash] opts the optional parameters
|
|
2445
|
+
# @return [Hash<String, Object>]
|
|
2446
|
+
def workspace_upload_file_base64(org, workspace, request_body, opts = {})
|
|
2447
|
+
data, _status_code, _headers = workspace_upload_file_base64_with_http_info(org, workspace, request_body, opts)
|
|
2448
|
+
data
|
|
2449
|
+
end
|
|
2450
|
+
|
|
2451
|
+
# Workspace-scoped base64 upload (RBAC-protected).
|
|
2452
|
+
# @param org [String]
|
|
2453
|
+
# @param workspace [String]
|
|
2454
|
+
# @param request_body [Hash<String, Object>]
|
|
2455
|
+
# @param [Hash] opts the optional parameters
|
|
2456
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
2457
|
+
def workspace_upload_file_base64_with_http_info(org, workspace, request_body, opts = {})
|
|
2458
|
+
if @api_client.config.debugging
|
|
2459
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.workspace_upload_file_base64 ...'
|
|
2460
|
+
end
|
|
2461
|
+
# verify the required parameter 'org' is set
|
|
2462
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
2463
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling FilesApi.workspace_upload_file_base64"
|
|
2464
|
+
end
|
|
2465
|
+
# verify the required parameter 'workspace' is set
|
|
2466
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
2467
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling FilesApi.workspace_upload_file_base64"
|
|
2468
|
+
end
|
|
2469
|
+
# verify the required parameter 'request_body' is set
|
|
2470
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
2471
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling FilesApi.workspace_upload_file_base64"
|
|
2472
|
+
end
|
|
2473
|
+
# resource path
|
|
2474
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/files/upload/base64'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
2475
|
+
|
|
2476
|
+
# query parameters
|
|
2477
|
+
query_params = opts[:query_params] || {}
|
|
2478
|
+
|
|
2479
|
+
# header parameters
|
|
2480
|
+
header_params = opts[:header_params] || {}
|
|
2481
|
+
# HTTP header 'Accept' (if needed)
|
|
2482
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2483
|
+
# HTTP header 'Content-Type'
|
|
2484
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2485
|
+
if !content_type.nil?
|
|
2486
|
+
header_params['Content-Type'] = content_type
|
|
2487
|
+
end
|
|
2488
|
+
|
|
2489
|
+
# form parameters
|
|
2490
|
+
form_params = opts[:form_params] || {}
|
|
2491
|
+
|
|
2492
|
+
# http body (model)
|
|
2493
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
2494
|
+
|
|
2495
|
+
# return_type
|
|
2496
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
2497
|
+
|
|
2498
|
+
# auth_names
|
|
2499
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2500
|
+
|
|
2501
|
+
new_options = opts.merge(
|
|
2502
|
+
:operation => :"FilesApi.workspace_upload_file_base64",
|
|
2503
|
+
:header_params => header_params,
|
|
2504
|
+
:query_params => query_params,
|
|
2505
|
+
:form_params => form_params,
|
|
2506
|
+
:body => post_body,
|
|
2507
|
+
:auth_names => auth_names,
|
|
2508
|
+
:return_type => return_type
|
|
2509
|
+
)
|
|
2510
|
+
|
|
2511
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2512
|
+
if @api_client.config.debugging
|
|
2513
|
+
@api_client.config.logger.debug "API called: FilesApi#workspace_upload_file_base64\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2514
|
+
end
|
|
2515
|
+
return data, status_code, headers
|
|
2516
|
+
end
|
|
2517
|
+
end
|
|
2518
|
+
end
|