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,1787 @@
|
|
|
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 TasksApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Delete multiple tasks in one call.
|
|
23
|
+
# Replaces the legacy BFF that looped DELETE /v1/tasks/:id. Per-id errors are collected in `failed` rather than failing the whole call — partial success is the norm.
|
|
24
|
+
# @param bulk_delete_tasks_request [BulkDeleteTasksRequest]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [BulkDeleteTasksResponse]
|
|
27
|
+
def bulk_delete_tasks(bulk_delete_tasks_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = bulk_delete_tasks_with_http_info(bulk_delete_tasks_request, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Delete multiple tasks in one call.
|
|
33
|
+
# Replaces the legacy BFF that looped DELETE /v1/tasks/:id. Per-id errors are collected in `failed` rather than failing the whole call — partial success is the norm.
|
|
34
|
+
# @param bulk_delete_tasks_request [BulkDeleteTasksRequest]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(BulkDeleteTasksResponse, Integer, Hash)>] BulkDeleteTasksResponse data, response status code and response headers
|
|
37
|
+
def bulk_delete_tasks_with_http_info(bulk_delete_tasks_request, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.bulk_delete_tasks ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'bulk_delete_tasks_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && bulk_delete_tasks_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'bulk_delete_tasks_request' when calling TasksApi.bulk_delete_tasks"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/v1/tasks/delete'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_delete_tasks_request)
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'BulkDeleteTasksResponse'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"TasksApi.bulk_delete_tasks",
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: TasksApi#bulk_delete_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Apply the same update to multiple tasks.
|
|
91
|
+
# Same `updates` payload applied to every id in `taskIds`. As with bulk delete, per-id failures collect in `failed`.
|
|
92
|
+
# @param bulk_update_tasks_request [BulkUpdateTasksRequest]
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [BulkUpdateTasksResponse]
|
|
95
|
+
def bulk_update_tasks(bulk_update_tasks_request, opts = {})
|
|
96
|
+
data, _status_code, _headers = bulk_update_tasks_with_http_info(bulk_update_tasks_request, opts)
|
|
97
|
+
data
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Apply the same update to multiple tasks.
|
|
101
|
+
# Same `updates` payload applied to every id in `taskIds`. As with bulk delete, per-id failures collect in `failed`.
|
|
102
|
+
# @param bulk_update_tasks_request [BulkUpdateTasksRequest]
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [Array<(BulkUpdateTasksResponse, Integer, Hash)>] BulkUpdateTasksResponse data, response status code and response headers
|
|
105
|
+
def bulk_update_tasks_with_http_info(bulk_update_tasks_request, opts = {})
|
|
106
|
+
if @api_client.config.debugging
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.bulk_update_tasks ...'
|
|
108
|
+
end
|
|
109
|
+
# verify the required parameter 'bulk_update_tasks_request' is set
|
|
110
|
+
if @api_client.config.client_side_validation && bulk_update_tasks_request.nil?
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'bulk_update_tasks_request' when calling TasksApi.bulk_update_tasks"
|
|
112
|
+
end
|
|
113
|
+
# resource path
|
|
114
|
+
local_var_path = '/v1/tasks/bulk-update'
|
|
115
|
+
|
|
116
|
+
# query parameters
|
|
117
|
+
query_params = opts[:query_params] || {}
|
|
118
|
+
|
|
119
|
+
# header parameters
|
|
120
|
+
header_params = opts[:header_params] || {}
|
|
121
|
+
# HTTP header 'Accept' (if needed)
|
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
123
|
+
# HTTP header 'Content-Type'
|
|
124
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
125
|
+
if !content_type.nil?
|
|
126
|
+
header_params['Content-Type'] = content_type
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# form parameters
|
|
130
|
+
form_params = opts[:form_params] || {}
|
|
131
|
+
|
|
132
|
+
# http body (model)
|
|
133
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_update_tasks_request)
|
|
134
|
+
|
|
135
|
+
# return_type
|
|
136
|
+
return_type = opts[:debug_return_type] || 'BulkUpdateTasksResponse'
|
|
137
|
+
|
|
138
|
+
# auth_names
|
|
139
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
140
|
+
|
|
141
|
+
new_options = opts.merge(
|
|
142
|
+
:operation => :"TasksApi.bulk_update_tasks",
|
|
143
|
+
:header_params => header_params,
|
|
144
|
+
:query_params => query_params,
|
|
145
|
+
:form_params => form_params,
|
|
146
|
+
:body => post_body,
|
|
147
|
+
:auth_names => auth_names,
|
|
148
|
+
:return_type => return_type
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
152
|
+
if @api_client.config.debugging
|
|
153
|
+
@api_client.config.logger.debug "API called: TasksApi#bulk_update_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
154
|
+
end
|
|
155
|
+
return data, status_code, headers
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Mark a task complete.
|
|
159
|
+
# Idempotent — completing an already-completed task is a no-op that still returns success. The legacy `POST /v1/tasks/complete/task` endpoint accepts the same operation with the task id in the JSON body instead of the URL; that variant is a renderer-compat shim and is not modeled in the spec.
|
|
160
|
+
# @param id [String] Task id.
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @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.
|
|
163
|
+
# @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.
|
|
164
|
+
# @return [SuccessFlag]
|
|
165
|
+
def complete_task(id, opts = {})
|
|
166
|
+
data, _status_code, _headers = complete_task_with_http_info(id, opts)
|
|
167
|
+
data
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Mark a task complete.
|
|
171
|
+
# Idempotent — completing an already-completed task is a no-op that still returns success. The legacy `POST /v1/tasks/complete/task` endpoint accepts the same operation with the task id in the JSON body instead of the URL; that variant is a renderer-compat shim and is not modeled in the spec.
|
|
172
|
+
# @param id [String] Task id.
|
|
173
|
+
# @param [Hash] opts the optional parameters
|
|
174
|
+
# @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.
|
|
175
|
+
# @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.
|
|
176
|
+
# @return [Array<(SuccessFlag, Integer, Hash)>] SuccessFlag data, response status code and response headers
|
|
177
|
+
def complete_task_with_http_info(id, opts = {})
|
|
178
|
+
if @api_client.config.debugging
|
|
179
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.complete_task ...'
|
|
180
|
+
end
|
|
181
|
+
# verify the required parameter 'id' is set
|
|
182
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
183
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.complete_task"
|
|
184
|
+
end
|
|
185
|
+
# resource path
|
|
186
|
+
local_var_path = '/v1/tasks/{id}/complete'.sub('{id}', CGI.escape(id.to_s))
|
|
187
|
+
|
|
188
|
+
# query parameters
|
|
189
|
+
query_params = opts[:query_params] || {}
|
|
190
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
191
|
+
|
|
192
|
+
# header parameters
|
|
193
|
+
header_params = opts[:header_params] || {}
|
|
194
|
+
# HTTP header 'Accept' (if needed)
|
|
195
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
196
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
197
|
+
|
|
198
|
+
# form parameters
|
|
199
|
+
form_params = opts[:form_params] || {}
|
|
200
|
+
|
|
201
|
+
# http body (model)
|
|
202
|
+
post_body = opts[:debug_body]
|
|
203
|
+
|
|
204
|
+
# return_type
|
|
205
|
+
return_type = opts[:debug_return_type] || 'SuccessFlag'
|
|
206
|
+
|
|
207
|
+
# auth_names
|
|
208
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
209
|
+
|
|
210
|
+
new_options = opts.merge(
|
|
211
|
+
:operation => :"TasksApi.complete_task",
|
|
212
|
+
:header_params => header_params,
|
|
213
|
+
:query_params => query_params,
|
|
214
|
+
:form_params => form_params,
|
|
215
|
+
:body => post_body,
|
|
216
|
+
:auth_names => auth_names,
|
|
217
|
+
:return_type => return_type
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
221
|
+
if @api_client.config.debugging
|
|
222
|
+
@api_client.config.logger.debug "API called: TasksApi#complete_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
223
|
+
end
|
|
224
|
+
return data, status_code, headers
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Create a task.
|
|
228
|
+
# Creates a new task under the target account. Target resolution mirrors `POST /v1/notes`: body `accountId` → `?accountId=` → body `provider` → `?provider=` → caller's single connected account (errors `ambiguous_account` if more than one and no selector).
|
|
229
|
+
# @param create_task_request [CreateTaskRequest]
|
|
230
|
+
# @param [Hash] opts the optional parameters
|
|
231
|
+
# @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.
|
|
232
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
233
|
+
# @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.
|
|
234
|
+
# @return [Task]
|
|
235
|
+
def create_task(create_task_request, opts = {})
|
|
236
|
+
data, _status_code, _headers = create_task_with_http_info(create_task_request, opts)
|
|
237
|
+
data
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Create a task.
|
|
241
|
+
# Creates a new task under the target account. Target resolution mirrors `POST /v1/notes`: body `accountId` → `?accountId=` → body `provider` → `?provider=` → caller's single connected account (errors `ambiguous_account` if more than one and no selector).
|
|
242
|
+
# @param create_task_request [CreateTaskRequest]
|
|
243
|
+
# @param [Hash] opts the optional parameters
|
|
244
|
+
# @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.
|
|
245
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
246
|
+
# @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.
|
|
247
|
+
# @return [Array<(Task, Integer, Hash)>] Task data, response status code and response headers
|
|
248
|
+
def create_task_with_http_info(create_task_request, opts = {})
|
|
249
|
+
if @api_client.config.debugging
|
|
250
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.create_task ...'
|
|
251
|
+
end
|
|
252
|
+
# verify the required parameter 'create_task_request' is set
|
|
253
|
+
if @api_client.config.client_side_validation && create_task_request.nil?
|
|
254
|
+
fail ArgumentError, "Missing the required parameter 'create_task_request' when calling TasksApi.create_task"
|
|
255
|
+
end
|
|
256
|
+
# resource path
|
|
257
|
+
local_var_path = '/v1/tasks'
|
|
258
|
+
|
|
259
|
+
# query parameters
|
|
260
|
+
query_params = opts[:query_params] || {}
|
|
261
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
262
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
263
|
+
|
|
264
|
+
# header parameters
|
|
265
|
+
header_params = opts[:header_params] || {}
|
|
266
|
+
# HTTP header 'Accept' (if needed)
|
|
267
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
268
|
+
# HTTP header 'Content-Type'
|
|
269
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
270
|
+
if !content_type.nil?
|
|
271
|
+
header_params['Content-Type'] = content_type
|
|
272
|
+
end
|
|
273
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
274
|
+
|
|
275
|
+
# form parameters
|
|
276
|
+
form_params = opts[:form_params] || {}
|
|
277
|
+
|
|
278
|
+
# http body (model)
|
|
279
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_task_request)
|
|
280
|
+
|
|
281
|
+
# return_type
|
|
282
|
+
return_type = opts[:debug_return_type] || 'Task'
|
|
283
|
+
|
|
284
|
+
# auth_names
|
|
285
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
286
|
+
|
|
287
|
+
new_options = opts.merge(
|
|
288
|
+
:operation => :"TasksApi.create_task",
|
|
289
|
+
:header_params => header_params,
|
|
290
|
+
:query_params => query_params,
|
|
291
|
+
:form_params => form_params,
|
|
292
|
+
:body => post_body,
|
|
293
|
+
:auth_names => auth_names,
|
|
294
|
+
:return_type => return_type
|
|
295
|
+
)
|
|
296
|
+
|
|
297
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
298
|
+
if @api_client.config.debugging
|
|
299
|
+
@api_client.config.logger.debug "API called: TasksApi#create_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
300
|
+
end
|
|
301
|
+
return data, status_code, headers
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Create a comment.
|
|
305
|
+
# @param id [String] Task id.
|
|
306
|
+
# @param task_comment_request [TaskCommentRequest]
|
|
307
|
+
# @param [Hash] opts the optional parameters
|
|
308
|
+
# @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.
|
|
309
|
+
# @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.
|
|
310
|
+
# @return [TaskCommentMutationResponse]
|
|
311
|
+
def create_task_comment(id, task_comment_request, opts = {})
|
|
312
|
+
data, _status_code, _headers = create_task_comment_with_http_info(id, task_comment_request, opts)
|
|
313
|
+
data
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
# Create a comment.
|
|
317
|
+
# @param id [String] Task id.
|
|
318
|
+
# @param task_comment_request [TaskCommentRequest]
|
|
319
|
+
# @param [Hash] opts the optional parameters
|
|
320
|
+
# @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.
|
|
321
|
+
# @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.
|
|
322
|
+
# @return [Array<(TaskCommentMutationResponse, Integer, Hash)>] TaskCommentMutationResponse data, response status code and response headers
|
|
323
|
+
def create_task_comment_with_http_info(id, task_comment_request, opts = {})
|
|
324
|
+
if @api_client.config.debugging
|
|
325
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.create_task_comment ...'
|
|
326
|
+
end
|
|
327
|
+
# verify the required parameter 'id' is set
|
|
328
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
329
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.create_task_comment"
|
|
330
|
+
end
|
|
331
|
+
# verify the required parameter 'task_comment_request' is set
|
|
332
|
+
if @api_client.config.client_side_validation && task_comment_request.nil?
|
|
333
|
+
fail ArgumentError, "Missing the required parameter 'task_comment_request' when calling TasksApi.create_task_comment"
|
|
334
|
+
end
|
|
335
|
+
# resource path
|
|
336
|
+
local_var_path = '/v1/tasks/{id}/comments'.sub('{id}', CGI.escape(id.to_s))
|
|
337
|
+
|
|
338
|
+
# query parameters
|
|
339
|
+
query_params = opts[:query_params] || {}
|
|
340
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
341
|
+
|
|
342
|
+
# header parameters
|
|
343
|
+
header_params = opts[:header_params] || {}
|
|
344
|
+
# HTTP header 'Accept' (if needed)
|
|
345
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
346
|
+
# HTTP header 'Content-Type'
|
|
347
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
348
|
+
if !content_type.nil?
|
|
349
|
+
header_params['Content-Type'] = content_type
|
|
350
|
+
end
|
|
351
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
352
|
+
|
|
353
|
+
# form parameters
|
|
354
|
+
form_params = opts[:form_params] || {}
|
|
355
|
+
|
|
356
|
+
# http body (model)
|
|
357
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(task_comment_request)
|
|
358
|
+
|
|
359
|
+
# return_type
|
|
360
|
+
return_type = opts[:debug_return_type] || 'TaskCommentMutationResponse'
|
|
361
|
+
|
|
362
|
+
# auth_names
|
|
363
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
364
|
+
|
|
365
|
+
new_options = opts.merge(
|
|
366
|
+
:operation => :"TasksApi.create_task_comment",
|
|
367
|
+
:header_params => header_params,
|
|
368
|
+
:query_params => query_params,
|
|
369
|
+
:form_params => form_params,
|
|
370
|
+
:body => post_body,
|
|
371
|
+
:auth_names => auth_names,
|
|
372
|
+
:return_type => return_type
|
|
373
|
+
)
|
|
374
|
+
|
|
375
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
376
|
+
if @api_client.config.debugging
|
|
377
|
+
@api_client.config.logger.debug "API called: TasksApi#create_task_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
378
|
+
end
|
|
379
|
+
return data, status_code, headers
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
# Delete a task.
|
|
383
|
+
# @param id [String] Task id.
|
|
384
|
+
# @param [Hash] opts the optional parameters
|
|
385
|
+
# @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.
|
|
386
|
+
# @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.
|
|
387
|
+
# @return [SuccessFlag]
|
|
388
|
+
def delete_task(id, opts = {})
|
|
389
|
+
data, _status_code, _headers = delete_task_with_http_info(id, opts)
|
|
390
|
+
data
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
# Delete a task.
|
|
394
|
+
# @param id [String] Task id.
|
|
395
|
+
# @param [Hash] opts the optional parameters
|
|
396
|
+
# @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.
|
|
397
|
+
# @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.
|
|
398
|
+
# @return [Array<(SuccessFlag, Integer, Hash)>] SuccessFlag data, response status code and response headers
|
|
399
|
+
def delete_task_with_http_info(id, opts = {})
|
|
400
|
+
if @api_client.config.debugging
|
|
401
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.delete_task ...'
|
|
402
|
+
end
|
|
403
|
+
# verify the required parameter 'id' is set
|
|
404
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
405
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.delete_task"
|
|
406
|
+
end
|
|
407
|
+
# resource path
|
|
408
|
+
local_var_path = '/v1/tasks/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
409
|
+
|
|
410
|
+
# query parameters
|
|
411
|
+
query_params = opts[:query_params] || {}
|
|
412
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
413
|
+
|
|
414
|
+
# header parameters
|
|
415
|
+
header_params = opts[:header_params] || {}
|
|
416
|
+
# HTTP header 'Accept' (if needed)
|
|
417
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
418
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
419
|
+
|
|
420
|
+
# form parameters
|
|
421
|
+
form_params = opts[:form_params] || {}
|
|
422
|
+
|
|
423
|
+
# http body (model)
|
|
424
|
+
post_body = opts[:debug_body]
|
|
425
|
+
|
|
426
|
+
# return_type
|
|
427
|
+
return_type = opts[:debug_return_type] || 'SuccessFlag'
|
|
428
|
+
|
|
429
|
+
# auth_names
|
|
430
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
431
|
+
|
|
432
|
+
new_options = opts.merge(
|
|
433
|
+
:operation => :"TasksApi.delete_task",
|
|
434
|
+
:header_params => header_params,
|
|
435
|
+
:query_params => query_params,
|
|
436
|
+
:form_params => form_params,
|
|
437
|
+
:body => post_body,
|
|
438
|
+
:auth_names => auth_names,
|
|
439
|
+
:return_type => return_type
|
|
440
|
+
)
|
|
441
|
+
|
|
442
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
443
|
+
if @api_client.config.debugging
|
|
444
|
+
@api_client.config.logger.debug "API called: TasksApi#delete_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
445
|
+
end
|
|
446
|
+
return data, status_code, headers
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
# Delete a task comment.
|
|
450
|
+
# Allowed for the comment author and (for native comments) for the task owner.
|
|
451
|
+
# @param id [String] Task id.
|
|
452
|
+
# @param comment_id [String] Comment 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 [SuccessFlag]
|
|
457
|
+
def delete_task_comment(id, comment_id, opts = {})
|
|
458
|
+
data, _status_code, _headers = delete_task_comment_with_http_info(id, comment_id, opts)
|
|
459
|
+
data
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# Delete a task comment.
|
|
463
|
+
# Allowed for the comment author and (for native comments) for the task owner.
|
|
464
|
+
# @param id [String] Task id.
|
|
465
|
+
# @param comment_id [String] Comment id.
|
|
466
|
+
# @param [Hash] opts the optional parameters
|
|
467
|
+
# @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.
|
|
468
|
+
# @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.
|
|
469
|
+
# @return [Array<(SuccessFlag, Integer, Hash)>] SuccessFlag data, response status code and response headers
|
|
470
|
+
def delete_task_comment_with_http_info(id, comment_id, opts = {})
|
|
471
|
+
if @api_client.config.debugging
|
|
472
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.delete_task_comment ...'
|
|
473
|
+
end
|
|
474
|
+
# verify the required parameter 'id' is set
|
|
475
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
476
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.delete_task_comment"
|
|
477
|
+
end
|
|
478
|
+
# verify the required parameter 'comment_id' is set
|
|
479
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
480
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling TasksApi.delete_task_comment"
|
|
481
|
+
end
|
|
482
|
+
# resource path
|
|
483
|
+
local_var_path = '/v1/tasks/{id}/comments/{commentId}'.sub('{id}', CGI.escape(id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
484
|
+
|
|
485
|
+
# query parameters
|
|
486
|
+
query_params = opts[:query_params] || {}
|
|
487
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
488
|
+
|
|
489
|
+
# header parameters
|
|
490
|
+
header_params = opts[:header_params] || {}
|
|
491
|
+
# HTTP header 'Accept' (if needed)
|
|
492
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
493
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
494
|
+
|
|
495
|
+
# form parameters
|
|
496
|
+
form_params = opts[:form_params] || {}
|
|
497
|
+
|
|
498
|
+
# http body (model)
|
|
499
|
+
post_body = opts[:debug_body]
|
|
500
|
+
|
|
501
|
+
# return_type
|
|
502
|
+
return_type = opts[:debug_return_type] || 'SuccessFlag'
|
|
503
|
+
|
|
504
|
+
# auth_names
|
|
505
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
506
|
+
|
|
507
|
+
new_options = opts.merge(
|
|
508
|
+
:operation => :"TasksApi.delete_task_comment",
|
|
509
|
+
:header_params => header_params,
|
|
510
|
+
:query_params => query_params,
|
|
511
|
+
:form_params => form_params,
|
|
512
|
+
:body => post_body,
|
|
513
|
+
:auth_names => auth_names,
|
|
514
|
+
:return_type => return_type
|
|
515
|
+
)
|
|
516
|
+
|
|
517
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
518
|
+
if @api_client.config.debugging
|
|
519
|
+
@api_client.config.logger.debug "API called: TasksApi#delete_task_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
520
|
+
end
|
|
521
|
+
return data, status_code, headers
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
# Fetch one task.
|
|
525
|
+
# @param id [String] Task id.
|
|
526
|
+
# @param [Hash] opts the optional parameters
|
|
527
|
+
# @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.
|
|
528
|
+
# @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.
|
|
529
|
+
# @return [Task]
|
|
530
|
+
def get_task(id, opts = {})
|
|
531
|
+
data, _status_code, _headers = get_task_with_http_info(id, opts)
|
|
532
|
+
data
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
# Fetch one task.
|
|
536
|
+
# @param id [String] Task id.
|
|
537
|
+
# @param [Hash] opts the optional parameters
|
|
538
|
+
# @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.
|
|
539
|
+
# @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.
|
|
540
|
+
# @return [Array<(Task, Integer, Hash)>] Task data, response status code and response headers
|
|
541
|
+
def get_task_with_http_info(id, opts = {})
|
|
542
|
+
if @api_client.config.debugging
|
|
543
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.get_task ...'
|
|
544
|
+
end
|
|
545
|
+
# verify the required parameter 'id' is set
|
|
546
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
547
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.get_task"
|
|
548
|
+
end
|
|
549
|
+
# resource path
|
|
550
|
+
local_var_path = '/v1/tasks/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
551
|
+
|
|
552
|
+
# query parameters
|
|
553
|
+
query_params = opts[:query_params] || {}
|
|
554
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
555
|
+
|
|
556
|
+
# header parameters
|
|
557
|
+
header_params = opts[:header_params] || {}
|
|
558
|
+
# HTTP header 'Accept' (if needed)
|
|
559
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
560
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
561
|
+
|
|
562
|
+
# form parameters
|
|
563
|
+
form_params = opts[:form_params] || {}
|
|
564
|
+
|
|
565
|
+
# http body (model)
|
|
566
|
+
post_body = opts[:debug_body]
|
|
567
|
+
|
|
568
|
+
# return_type
|
|
569
|
+
return_type = opts[:debug_return_type] || 'Task'
|
|
570
|
+
|
|
571
|
+
# auth_names
|
|
572
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
573
|
+
|
|
574
|
+
new_options = opts.merge(
|
|
575
|
+
:operation => :"TasksApi.get_task",
|
|
576
|
+
:header_params => header_params,
|
|
577
|
+
:query_params => query_params,
|
|
578
|
+
:form_params => form_params,
|
|
579
|
+
:body => post_body,
|
|
580
|
+
:auth_names => auth_names,
|
|
581
|
+
:return_type => return_type
|
|
582
|
+
)
|
|
583
|
+
|
|
584
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
585
|
+
if @api_client.config.debugging
|
|
586
|
+
@api_client.config.logger.debug "API called: TasksApi#get_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
587
|
+
end
|
|
588
|
+
return data, status_code, headers
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
# List comments on a task.
|
|
592
|
+
# Returns active comments. When `?accountId=` targets an external provider that supports comments (e.g. Linear), the provider is queried directly; otherwise the native `TaskComment` table is used.
|
|
593
|
+
# @param id [String] Task id.
|
|
594
|
+
# @param [Hash] opts the optional parameters
|
|
595
|
+
# @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.
|
|
596
|
+
# @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.
|
|
597
|
+
# @return [TaskCommentList]
|
|
598
|
+
def list_task_comments(id, opts = {})
|
|
599
|
+
data, _status_code, _headers = list_task_comments_with_http_info(id, opts)
|
|
600
|
+
data
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
# List comments on a task.
|
|
604
|
+
# Returns active comments. When `?accountId=` targets an external provider that supports comments (e.g. Linear), the provider is queried directly; otherwise the native `TaskComment` table is used.
|
|
605
|
+
# @param id [String] Task id.
|
|
606
|
+
# @param [Hash] opts the optional parameters
|
|
607
|
+
# @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.
|
|
608
|
+
# @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.
|
|
609
|
+
# @return [Array<(TaskCommentList, Integer, Hash)>] TaskCommentList data, response status code and response headers
|
|
610
|
+
def list_task_comments_with_http_info(id, opts = {})
|
|
611
|
+
if @api_client.config.debugging
|
|
612
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.list_task_comments ...'
|
|
613
|
+
end
|
|
614
|
+
# verify the required parameter 'id' is set
|
|
615
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
616
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.list_task_comments"
|
|
617
|
+
end
|
|
618
|
+
# resource path
|
|
619
|
+
local_var_path = '/v1/tasks/{id}/comments'.sub('{id}', CGI.escape(id.to_s))
|
|
620
|
+
|
|
621
|
+
# query parameters
|
|
622
|
+
query_params = opts[:query_params] || {}
|
|
623
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
624
|
+
|
|
625
|
+
# header parameters
|
|
626
|
+
header_params = opts[:header_params] || {}
|
|
627
|
+
# HTTP header 'Accept' (if needed)
|
|
628
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
629
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
630
|
+
|
|
631
|
+
# form parameters
|
|
632
|
+
form_params = opts[:form_params] || {}
|
|
633
|
+
|
|
634
|
+
# http body (model)
|
|
635
|
+
post_body = opts[:debug_body]
|
|
636
|
+
|
|
637
|
+
# return_type
|
|
638
|
+
return_type = opts[:debug_return_type] || 'TaskCommentList'
|
|
639
|
+
|
|
640
|
+
# auth_names
|
|
641
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
642
|
+
|
|
643
|
+
new_options = opts.merge(
|
|
644
|
+
:operation => :"TasksApi.list_task_comments",
|
|
645
|
+
:header_params => header_params,
|
|
646
|
+
:query_params => query_params,
|
|
647
|
+
:form_params => form_params,
|
|
648
|
+
:body => post_body,
|
|
649
|
+
:auth_names => auth_names,
|
|
650
|
+
:return_type => return_type
|
|
651
|
+
)
|
|
652
|
+
|
|
653
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
654
|
+
if @api_client.config.debugging
|
|
655
|
+
@api_client.config.logger.debug "API called: TasksApi#list_task_comments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
656
|
+
end
|
|
657
|
+
return data, status_code, headers
|
|
658
|
+
end
|
|
659
|
+
|
|
660
|
+
# List supported task providers.
|
|
661
|
+
# Returns the registered task-provider ids and the platform's own metadata. Useful for clients that need to render provider-specific UI (icons, capability flags) before committing to a particular `provider`.
|
|
662
|
+
# @param [Hash] opts the optional parameters
|
|
663
|
+
# @return [TaskProvidersInfo]
|
|
664
|
+
def list_task_providers(opts = {})
|
|
665
|
+
data, _status_code, _headers = list_task_providers_with_http_info(opts)
|
|
666
|
+
data
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
# List supported task providers.
|
|
670
|
+
# Returns the registered task-provider ids and the platform's own metadata. Useful for clients that need to render provider-specific UI (icons, capability flags) before committing to a particular `provider`.
|
|
671
|
+
# @param [Hash] opts the optional parameters
|
|
672
|
+
# @return [Array<(TaskProvidersInfo, Integer, Hash)>] TaskProvidersInfo data, response status code and response headers
|
|
673
|
+
def list_task_providers_with_http_info(opts = {})
|
|
674
|
+
if @api_client.config.debugging
|
|
675
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.list_task_providers ...'
|
|
676
|
+
end
|
|
677
|
+
# resource path
|
|
678
|
+
local_var_path = '/v1/tasks/providers'
|
|
679
|
+
|
|
680
|
+
# query parameters
|
|
681
|
+
query_params = opts[:query_params] || {}
|
|
682
|
+
|
|
683
|
+
# header parameters
|
|
684
|
+
header_params = opts[:header_params] || {}
|
|
685
|
+
# HTTP header 'Accept' (if needed)
|
|
686
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
687
|
+
|
|
688
|
+
# form parameters
|
|
689
|
+
form_params = opts[:form_params] || {}
|
|
690
|
+
|
|
691
|
+
# http body (model)
|
|
692
|
+
post_body = opts[:debug_body]
|
|
693
|
+
|
|
694
|
+
# return_type
|
|
695
|
+
return_type = opts[:debug_return_type] || 'TaskProvidersInfo'
|
|
696
|
+
|
|
697
|
+
# auth_names
|
|
698
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
699
|
+
|
|
700
|
+
new_options = opts.merge(
|
|
701
|
+
:operation => :"TasksApi.list_task_providers",
|
|
702
|
+
:header_params => header_params,
|
|
703
|
+
:query_params => query_params,
|
|
704
|
+
:form_params => form_params,
|
|
705
|
+
:body => post_body,
|
|
706
|
+
:auth_names => auth_names,
|
|
707
|
+
:return_type => return_type
|
|
708
|
+
)
|
|
709
|
+
|
|
710
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
711
|
+
if @api_client.config.debugging
|
|
712
|
+
@api_client.config.logger.debug "API called: TasksApi#list_task_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
713
|
+
end
|
|
714
|
+
return data, status_code, headers
|
|
715
|
+
end
|
|
716
|
+
|
|
717
|
+
# List tasks across connected accounts.
|
|
718
|
+
# Fan-out list. Returns every task visible to the caller across every connected tasks provider. Pass `?accountId=` or `?provider=` to scope to a single source.
|
|
719
|
+
# @param [Hash] opts the optional parameters
|
|
720
|
+
# @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.
|
|
721
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
722
|
+
# @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.
|
|
723
|
+
# @option opts [Boolean] :completed Include completed tasks. Default `false` (active tasks only). (default to false)
|
|
724
|
+
# @option opts [Array<String>] :labels Repeatable. Filter to tasks carrying every label listed.
|
|
725
|
+
# @option opts [String] :parent_task_id Filter to subtasks of this parent.
|
|
726
|
+
# @option opts [String] :type Discriminator filter (`todo`, `reminder`, `issue`).
|
|
727
|
+
# @option opts [String] :source_platform Filter to tasks linked to a given source platform.
|
|
728
|
+
# @option opts [String] :source_id Filter to tasks linked to a specific source artifact id. Pair with `sourcePlatform` for an exact match.
|
|
729
|
+
# @option opts [Integer] :limit (default to 50)
|
|
730
|
+
# @option opts [Integer] :offset (default to 0)
|
|
731
|
+
# @return [TaskListEnvelope]
|
|
732
|
+
def list_tasks(opts = {})
|
|
733
|
+
data, _status_code, _headers = list_tasks_with_http_info(opts)
|
|
734
|
+
data
|
|
735
|
+
end
|
|
736
|
+
|
|
737
|
+
# List tasks across connected accounts.
|
|
738
|
+
# Fan-out list. Returns every task visible to the caller across every connected tasks provider. Pass `?accountId=` or `?provider=` to scope to a single source.
|
|
739
|
+
# @param [Hash] opts the optional parameters
|
|
740
|
+
# @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.
|
|
741
|
+
# @option opts [String] :provider Provider id (e.g. `native-notes`, `notion`). Selects every connected account for the provider. Mutually exclusive with `accountId`.
|
|
742
|
+
# @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.
|
|
743
|
+
# @option opts [Boolean] :completed Include completed tasks. Default `false` (active tasks only). (default to false)
|
|
744
|
+
# @option opts [Array<String>] :labels Repeatable. Filter to tasks carrying every label listed.
|
|
745
|
+
# @option opts [String] :parent_task_id Filter to subtasks of this parent.
|
|
746
|
+
# @option opts [String] :type Discriminator filter (`todo`, `reminder`, `issue`).
|
|
747
|
+
# @option opts [String] :source_platform Filter to tasks linked to a given source platform.
|
|
748
|
+
# @option opts [String] :source_id Filter to tasks linked to a specific source artifact id. Pair with `sourcePlatform` for an exact match.
|
|
749
|
+
# @option opts [Integer] :limit (default to 50)
|
|
750
|
+
# @option opts [Integer] :offset (default to 0)
|
|
751
|
+
# @return [Array<(TaskListEnvelope, Integer, Hash)>] TaskListEnvelope data, response status code and response headers
|
|
752
|
+
def list_tasks_with_http_info(opts = {})
|
|
753
|
+
if @api_client.config.debugging
|
|
754
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.list_tasks ...'
|
|
755
|
+
end
|
|
756
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
757
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TasksApi.list_tasks, must be greater than or equal to 1.'
|
|
758
|
+
end
|
|
759
|
+
|
|
760
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
|
761
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling TasksApi.list_tasks, must be greater than or equal to 0.'
|
|
762
|
+
end
|
|
763
|
+
|
|
764
|
+
# resource path
|
|
765
|
+
local_var_path = '/v1/tasks'
|
|
766
|
+
|
|
767
|
+
# query parameters
|
|
768
|
+
query_params = opts[:query_params] || {}
|
|
769
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
770
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
771
|
+
query_params[:'completed'] = opts[:'completed'] if !opts[:'completed'].nil?
|
|
772
|
+
query_params[:'labels'] = @api_client.build_collection_param(opts[:'labels'], :multi) if !opts[:'labels'].nil?
|
|
773
|
+
query_params[:'parentTaskId'] = opts[:'parent_task_id'] if !opts[:'parent_task_id'].nil?
|
|
774
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
|
775
|
+
query_params[:'sourcePlatform'] = opts[:'source_platform'] if !opts[:'source_platform'].nil?
|
|
776
|
+
query_params[:'sourceId'] = opts[:'source_id'] if !opts[:'source_id'].nil?
|
|
777
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
778
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
779
|
+
|
|
780
|
+
# header parameters
|
|
781
|
+
header_params = opts[:header_params] || {}
|
|
782
|
+
# HTTP header 'Accept' (if needed)
|
|
783
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
784
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
785
|
+
|
|
786
|
+
# form parameters
|
|
787
|
+
form_params = opts[:form_params] || {}
|
|
788
|
+
|
|
789
|
+
# http body (model)
|
|
790
|
+
post_body = opts[:debug_body]
|
|
791
|
+
|
|
792
|
+
# return_type
|
|
793
|
+
return_type = opts[:debug_return_type] || 'TaskListEnvelope'
|
|
794
|
+
|
|
795
|
+
# auth_names
|
|
796
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
797
|
+
|
|
798
|
+
new_options = opts.merge(
|
|
799
|
+
:operation => :"TasksApi.list_tasks",
|
|
800
|
+
:header_params => header_params,
|
|
801
|
+
:query_params => query_params,
|
|
802
|
+
:form_params => form_params,
|
|
803
|
+
:body => post_body,
|
|
804
|
+
:auth_names => auth_names,
|
|
805
|
+
:return_type => return_type
|
|
806
|
+
)
|
|
807
|
+
|
|
808
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
809
|
+
if @api_client.config.debugging
|
|
810
|
+
@api_client.config.logger.debug "API called: TasksApi#list_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
811
|
+
end
|
|
812
|
+
return data, status_code, headers
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
# Update a task (partial).
|
|
816
|
+
# @param id [String] Task id.
|
|
817
|
+
# @param update_task_request [UpdateTaskRequest]
|
|
818
|
+
# @param [Hash] opts the optional parameters
|
|
819
|
+
# @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.
|
|
820
|
+
# @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.
|
|
821
|
+
# @return [Task]
|
|
822
|
+
def update_task(id, update_task_request, opts = {})
|
|
823
|
+
data, _status_code, _headers = update_task_with_http_info(id, update_task_request, opts)
|
|
824
|
+
data
|
|
825
|
+
end
|
|
826
|
+
|
|
827
|
+
# Update a task (partial).
|
|
828
|
+
# @param id [String] Task id.
|
|
829
|
+
# @param update_task_request [UpdateTaskRequest]
|
|
830
|
+
# @param [Hash] opts the optional parameters
|
|
831
|
+
# @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.
|
|
832
|
+
# @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.
|
|
833
|
+
# @return [Array<(Task, Integer, Hash)>] Task data, response status code and response headers
|
|
834
|
+
def update_task_with_http_info(id, update_task_request, opts = {})
|
|
835
|
+
if @api_client.config.debugging
|
|
836
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.update_task ...'
|
|
837
|
+
end
|
|
838
|
+
# verify the required parameter 'id' is set
|
|
839
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
840
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.update_task"
|
|
841
|
+
end
|
|
842
|
+
# verify the required parameter 'update_task_request' is set
|
|
843
|
+
if @api_client.config.client_side_validation && update_task_request.nil?
|
|
844
|
+
fail ArgumentError, "Missing the required parameter 'update_task_request' when calling TasksApi.update_task"
|
|
845
|
+
end
|
|
846
|
+
# resource path
|
|
847
|
+
local_var_path = '/v1/tasks/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
848
|
+
|
|
849
|
+
# query parameters
|
|
850
|
+
query_params = opts[:query_params] || {}
|
|
851
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
852
|
+
|
|
853
|
+
# header parameters
|
|
854
|
+
header_params = opts[:header_params] || {}
|
|
855
|
+
# HTTP header 'Accept' (if needed)
|
|
856
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
857
|
+
# HTTP header 'Content-Type'
|
|
858
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
859
|
+
if !content_type.nil?
|
|
860
|
+
header_params['Content-Type'] = content_type
|
|
861
|
+
end
|
|
862
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
863
|
+
|
|
864
|
+
# form parameters
|
|
865
|
+
form_params = opts[:form_params] || {}
|
|
866
|
+
|
|
867
|
+
# http body (model)
|
|
868
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_task_request)
|
|
869
|
+
|
|
870
|
+
# return_type
|
|
871
|
+
return_type = opts[:debug_return_type] || 'Task'
|
|
872
|
+
|
|
873
|
+
# auth_names
|
|
874
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
875
|
+
|
|
876
|
+
new_options = opts.merge(
|
|
877
|
+
:operation => :"TasksApi.update_task",
|
|
878
|
+
:header_params => header_params,
|
|
879
|
+
:query_params => query_params,
|
|
880
|
+
:form_params => form_params,
|
|
881
|
+
:body => post_body,
|
|
882
|
+
:auth_names => auth_names,
|
|
883
|
+
:return_type => return_type
|
|
884
|
+
)
|
|
885
|
+
|
|
886
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
887
|
+
if @api_client.config.debugging
|
|
888
|
+
@api_client.config.logger.debug "API called: TasksApi#update_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
889
|
+
end
|
|
890
|
+
return data, status_code, headers
|
|
891
|
+
end
|
|
892
|
+
|
|
893
|
+
# Edit a task comment.
|
|
894
|
+
# Only the comment author can edit.
|
|
895
|
+
# @param id [String] Task id.
|
|
896
|
+
# @param comment_id [String] Comment id.
|
|
897
|
+
# @param task_comment_request [TaskCommentRequest]
|
|
898
|
+
# @param [Hash] opts the optional parameters
|
|
899
|
+
# @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.
|
|
900
|
+
# @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.
|
|
901
|
+
# @return [TaskCommentMutationResponse]
|
|
902
|
+
def update_task_comment(id, comment_id, task_comment_request, opts = {})
|
|
903
|
+
data, _status_code, _headers = update_task_comment_with_http_info(id, comment_id, task_comment_request, opts)
|
|
904
|
+
data
|
|
905
|
+
end
|
|
906
|
+
|
|
907
|
+
# Edit a task comment.
|
|
908
|
+
# Only the comment author can edit.
|
|
909
|
+
# @param id [String] Task id.
|
|
910
|
+
# @param comment_id [String] Comment id.
|
|
911
|
+
# @param task_comment_request [TaskCommentRequest]
|
|
912
|
+
# @param [Hash] opts the optional parameters
|
|
913
|
+
# @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.
|
|
914
|
+
# @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.
|
|
915
|
+
# @return [Array<(TaskCommentMutationResponse, Integer, Hash)>] TaskCommentMutationResponse data, response status code and response headers
|
|
916
|
+
def update_task_comment_with_http_info(id, comment_id, task_comment_request, opts = {})
|
|
917
|
+
if @api_client.config.debugging
|
|
918
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.update_task_comment ...'
|
|
919
|
+
end
|
|
920
|
+
# verify the required parameter 'id' is set
|
|
921
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
922
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.update_task_comment"
|
|
923
|
+
end
|
|
924
|
+
# verify the required parameter 'comment_id' is set
|
|
925
|
+
if @api_client.config.client_side_validation && comment_id.nil?
|
|
926
|
+
fail ArgumentError, "Missing the required parameter 'comment_id' when calling TasksApi.update_task_comment"
|
|
927
|
+
end
|
|
928
|
+
# verify the required parameter 'task_comment_request' is set
|
|
929
|
+
if @api_client.config.client_side_validation && task_comment_request.nil?
|
|
930
|
+
fail ArgumentError, "Missing the required parameter 'task_comment_request' when calling TasksApi.update_task_comment"
|
|
931
|
+
end
|
|
932
|
+
# resource path
|
|
933
|
+
local_var_path = '/v1/tasks/{id}/comments/{commentId}'.sub('{id}', CGI.escape(id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s))
|
|
934
|
+
|
|
935
|
+
# query parameters
|
|
936
|
+
query_params = opts[:query_params] || {}
|
|
937
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
938
|
+
|
|
939
|
+
# header parameters
|
|
940
|
+
header_params = opts[:header_params] || {}
|
|
941
|
+
# HTTP header 'Accept' (if needed)
|
|
942
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
943
|
+
# HTTP header 'Content-Type'
|
|
944
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
945
|
+
if !content_type.nil?
|
|
946
|
+
header_params['Content-Type'] = content_type
|
|
947
|
+
end
|
|
948
|
+
header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
|
|
949
|
+
|
|
950
|
+
# form parameters
|
|
951
|
+
form_params = opts[:form_params] || {}
|
|
952
|
+
|
|
953
|
+
# http body (model)
|
|
954
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(task_comment_request)
|
|
955
|
+
|
|
956
|
+
# return_type
|
|
957
|
+
return_type = opts[:debug_return_type] || 'TaskCommentMutationResponse'
|
|
958
|
+
|
|
959
|
+
# auth_names
|
|
960
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
961
|
+
|
|
962
|
+
new_options = opts.merge(
|
|
963
|
+
:operation => :"TasksApi.update_task_comment",
|
|
964
|
+
:header_params => header_params,
|
|
965
|
+
:query_params => query_params,
|
|
966
|
+
:form_params => form_params,
|
|
967
|
+
:body => post_body,
|
|
968
|
+
:auth_names => auth_names,
|
|
969
|
+
:return_type => return_type
|
|
970
|
+
)
|
|
971
|
+
|
|
972
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
973
|
+
if @api_client.config.debugging
|
|
974
|
+
@api_client.config.logger.debug "API called: TasksApi#update_task_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
975
|
+
end
|
|
976
|
+
return data, status_code, headers
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
# @param org [String]
|
|
980
|
+
# @param workspace [String]
|
|
981
|
+
# @param id [String]
|
|
982
|
+
# @param [Hash] opts the optional parameters
|
|
983
|
+
# @return [Hash<String, Object>]
|
|
984
|
+
def workspace_complete_task(org, workspace, id, opts = {})
|
|
985
|
+
data, _status_code, _headers = workspace_complete_task_with_http_info(org, workspace, id, opts)
|
|
986
|
+
data
|
|
987
|
+
end
|
|
988
|
+
|
|
989
|
+
# @param org [String]
|
|
990
|
+
# @param workspace [String]
|
|
991
|
+
# @param id [String]
|
|
992
|
+
# @param [Hash] opts the optional parameters
|
|
993
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
994
|
+
def workspace_complete_task_with_http_info(org, workspace, id, opts = {})
|
|
995
|
+
if @api_client.config.debugging
|
|
996
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.workspace_complete_task ...'
|
|
997
|
+
end
|
|
998
|
+
# verify the required parameter 'org' is set
|
|
999
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1000
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling TasksApi.workspace_complete_task"
|
|
1001
|
+
end
|
|
1002
|
+
# verify the required parameter 'workspace' is set
|
|
1003
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1004
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling TasksApi.workspace_complete_task"
|
|
1005
|
+
end
|
|
1006
|
+
# verify the required parameter 'id' is set
|
|
1007
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1008
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.workspace_complete_task"
|
|
1009
|
+
end
|
|
1010
|
+
# resource path
|
|
1011
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/tasks/{id}/complete'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
1012
|
+
|
|
1013
|
+
# query parameters
|
|
1014
|
+
query_params = opts[:query_params] || {}
|
|
1015
|
+
|
|
1016
|
+
# header parameters
|
|
1017
|
+
header_params = opts[:header_params] || {}
|
|
1018
|
+
# HTTP header 'Accept' (if needed)
|
|
1019
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1020
|
+
|
|
1021
|
+
# form parameters
|
|
1022
|
+
form_params = opts[:form_params] || {}
|
|
1023
|
+
|
|
1024
|
+
# http body (model)
|
|
1025
|
+
post_body = opts[:debug_body]
|
|
1026
|
+
|
|
1027
|
+
# return_type
|
|
1028
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1029
|
+
|
|
1030
|
+
# auth_names
|
|
1031
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1032
|
+
|
|
1033
|
+
new_options = opts.merge(
|
|
1034
|
+
:operation => :"TasksApi.workspace_complete_task",
|
|
1035
|
+
:header_params => header_params,
|
|
1036
|
+
:query_params => query_params,
|
|
1037
|
+
:form_params => form_params,
|
|
1038
|
+
:body => post_body,
|
|
1039
|
+
:auth_names => auth_names,
|
|
1040
|
+
:return_type => return_type
|
|
1041
|
+
)
|
|
1042
|
+
|
|
1043
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1044
|
+
if @api_client.config.debugging
|
|
1045
|
+
@api_client.config.logger.debug "API called: TasksApi#workspace_complete_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1046
|
+
end
|
|
1047
|
+
return data, status_code, headers
|
|
1048
|
+
end
|
|
1049
|
+
|
|
1050
|
+
# Renderer-compat alias for /tasks/{id}/complete.
|
|
1051
|
+
# @param org [String]
|
|
1052
|
+
# @param workspace [String]
|
|
1053
|
+
# @param request_body [Hash<String, Object>]
|
|
1054
|
+
# @param [Hash] opts the optional parameters
|
|
1055
|
+
# @return [Hash<String, Object>]
|
|
1056
|
+
def workspace_complete_task_alias(org, workspace, request_body, opts = {})
|
|
1057
|
+
data, _status_code, _headers = workspace_complete_task_alias_with_http_info(org, workspace, request_body, opts)
|
|
1058
|
+
data
|
|
1059
|
+
end
|
|
1060
|
+
|
|
1061
|
+
# Renderer-compat alias for /tasks/{id}/complete.
|
|
1062
|
+
# @param org [String]
|
|
1063
|
+
# @param workspace [String]
|
|
1064
|
+
# @param request_body [Hash<String, Object>]
|
|
1065
|
+
# @param [Hash] opts the optional parameters
|
|
1066
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1067
|
+
def workspace_complete_task_alias_with_http_info(org, workspace, request_body, opts = {})
|
|
1068
|
+
if @api_client.config.debugging
|
|
1069
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.workspace_complete_task_alias ...'
|
|
1070
|
+
end
|
|
1071
|
+
# verify the required parameter 'org' is set
|
|
1072
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1073
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling TasksApi.workspace_complete_task_alias"
|
|
1074
|
+
end
|
|
1075
|
+
# verify the required parameter 'workspace' is set
|
|
1076
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1077
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling TasksApi.workspace_complete_task_alias"
|
|
1078
|
+
end
|
|
1079
|
+
# verify the required parameter 'request_body' is set
|
|
1080
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1081
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TasksApi.workspace_complete_task_alias"
|
|
1082
|
+
end
|
|
1083
|
+
# resource path
|
|
1084
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/tasks/complete/task'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
1085
|
+
|
|
1086
|
+
# query parameters
|
|
1087
|
+
query_params = opts[:query_params] || {}
|
|
1088
|
+
|
|
1089
|
+
# header parameters
|
|
1090
|
+
header_params = opts[:header_params] || {}
|
|
1091
|
+
# HTTP header 'Accept' (if needed)
|
|
1092
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1093
|
+
# HTTP header 'Content-Type'
|
|
1094
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1095
|
+
if !content_type.nil?
|
|
1096
|
+
header_params['Content-Type'] = content_type
|
|
1097
|
+
end
|
|
1098
|
+
|
|
1099
|
+
# form parameters
|
|
1100
|
+
form_params = opts[:form_params] || {}
|
|
1101
|
+
|
|
1102
|
+
# http body (model)
|
|
1103
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1104
|
+
|
|
1105
|
+
# return_type
|
|
1106
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1107
|
+
|
|
1108
|
+
# auth_names
|
|
1109
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1110
|
+
|
|
1111
|
+
new_options = opts.merge(
|
|
1112
|
+
:operation => :"TasksApi.workspace_complete_task_alias",
|
|
1113
|
+
:header_params => header_params,
|
|
1114
|
+
:query_params => query_params,
|
|
1115
|
+
:form_params => form_params,
|
|
1116
|
+
:body => post_body,
|
|
1117
|
+
:auth_names => auth_names,
|
|
1118
|
+
:return_type => return_type
|
|
1119
|
+
)
|
|
1120
|
+
|
|
1121
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1122
|
+
if @api_client.config.debugging
|
|
1123
|
+
@api_client.config.logger.debug "API called: TasksApi#workspace_complete_task_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1124
|
+
end
|
|
1125
|
+
return data, status_code, headers
|
|
1126
|
+
end
|
|
1127
|
+
|
|
1128
|
+
# @param org [String]
|
|
1129
|
+
# @param workspace [String]
|
|
1130
|
+
# @param request_body [Hash<String, Object>]
|
|
1131
|
+
# @param [Hash] opts the optional parameters
|
|
1132
|
+
# @return [Hash<String, Object>]
|
|
1133
|
+
def workspace_create_task(org, workspace, request_body, opts = {})
|
|
1134
|
+
data, _status_code, _headers = workspace_create_task_with_http_info(org, workspace, request_body, opts)
|
|
1135
|
+
data
|
|
1136
|
+
end
|
|
1137
|
+
|
|
1138
|
+
# @param org [String]
|
|
1139
|
+
# @param workspace [String]
|
|
1140
|
+
# @param request_body [Hash<String, Object>]
|
|
1141
|
+
# @param [Hash] opts the optional parameters
|
|
1142
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1143
|
+
def workspace_create_task_with_http_info(org, workspace, request_body, opts = {})
|
|
1144
|
+
if @api_client.config.debugging
|
|
1145
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.workspace_create_task ...'
|
|
1146
|
+
end
|
|
1147
|
+
# verify the required parameter 'org' is set
|
|
1148
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1149
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling TasksApi.workspace_create_task"
|
|
1150
|
+
end
|
|
1151
|
+
# verify the required parameter 'workspace' is set
|
|
1152
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1153
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling TasksApi.workspace_create_task"
|
|
1154
|
+
end
|
|
1155
|
+
# verify the required parameter 'request_body' is set
|
|
1156
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1157
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TasksApi.workspace_create_task"
|
|
1158
|
+
end
|
|
1159
|
+
# resource path
|
|
1160
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/tasks'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
1161
|
+
|
|
1162
|
+
# query parameters
|
|
1163
|
+
query_params = opts[:query_params] || {}
|
|
1164
|
+
|
|
1165
|
+
# header parameters
|
|
1166
|
+
header_params = opts[:header_params] || {}
|
|
1167
|
+
# HTTP header 'Accept' (if needed)
|
|
1168
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1169
|
+
# HTTP header 'Content-Type'
|
|
1170
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1171
|
+
if !content_type.nil?
|
|
1172
|
+
header_params['Content-Type'] = content_type
|
|
1173
|
+
end
|
|
1174
|
+
|
|
1175
|
+
# form parameters
|
|
1176
|
+
form_params = opts[:form_params] || {}
|
|
1177
|
+
|
|
1178
|
+
# http body (model)
|
|
1179
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1180
|
+
|
|
1181
|
+
# return_type
|
|
1182
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1183
|
+
|
|
1184
|
+
# auth_names
|
|
1185
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1186
|
+
|
|
1187
|
+
new_options = opts.merge(
|
|
1188
|
+
:operation => :"TasksApi.workspace_create_task",
|
|
1189
|
+
:header_params => header_params,
|
|
1190
|
+
:query_params => query_params,
|
|
1191
|
+
:form_params => form_params,
|
|
1192
|
+
:body => post_body,
|
|
1193
|
+
:auth_names => auth_names,
|
|
1194
|
+
:return_type => return_type
|
|
1195
|
+
)
|
|
1196
|
+
|
|
1197
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1198
|
+
if @api_client.config.debugging
|
|
1199
|
+
@api_client.config.logger.debug "API called: TasksApi#workspace_create_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1200
|
+
end
|
|
1201
|
+
return data, status_code, headers
|
|
1202
|
+
end
|
|
1203
|
+
|
|
1204
|
+
# Renderer-compat alias for POST /tasks.
|
|
1205
|
+
# @param org [String]
|
|
1206
|
+
# @param workspace [String]
|
|
1207
|
+
# @param request_body [Hash<String, Object>]
|
|
1208
|
+
# @param [Hash] opts the optional parameters
|
|
1209
|
+
# @return [Hash<String, Object>]
|
|
1210
|
+
def workspace_create_task_alias(org, workspace, request_body, opts = {})
|
|
1211
|
+
data, _status_code, _headers = workspace_create_task_alias_with_http_info(org, workspace, request_body, opts)
|
|
1212
|
+
data
|
|
1213
|
+
end
|
|
1214
|
+
|
|
1215
|
+
# Renderer-compat alias for POST /tasks.
|
|
1216
|
+
# @param org [String]
|
|
1217
|
+
# @param workspace [String]
|
|
1218
|
+
# @param request_body [Hash<String, Object>]
|
|
1219
|
+
# @param [Hash] opts the optional parameters
|
|
1220
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1221
|
+
def workspace_create_task_alias_with_http_info(org, workspace, request_body, opts = {})
|
|
1222
|
+
if @api_client.config.debugging
|
|
1223
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.workspace_create_task_alias ...'
|
|
1224
|
+
end
|
|
1225
|
+
# verify the required parameter 'org' is set
|
|
1226
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1227
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling TasksApi.workspace_create_task_alias"
|
|
1228
|
+
end
|
|
1229
|
+
# verify the required parameter 'workspace' is set
|
|
1230
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1231
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling TasksApi.workspace_create_task_alias"
|
|
1232
|
+
end
|
|
1233
|
+
# verify the required parameter 'request_body' is set
|
|
1234
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1235
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TasksApi.workspace_create_task_alias"
|
|
1236
|
+
end
|
|
1237
|
+
# resource path
|
|
1238
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/tasks/task'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
1239
|
+
|
|
1240
|
+
# query parameters
|
|
1241
|
+
query_params = opts[:query_params] || {}
|
|
1242
|
+
|
|
1243
|
+
# header parameters
|
|
1244
|
+
header_params = opts[:header_params] || {}
|
|
1245
|
+
# HTTP header 'Accept' (if needed)
|
|
1246
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1247
|
+
# HTTP header 'Content-Type'
|
|
1248
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1249
|
+
if !content_type.nil?
|
|
1250
|
+
header_params['Content-Type'] = content_type
|
|
1251
|
+
end
|
|
1252
|
+
|
|
1253
|
+
# form parameters
|
|
1254
|
+
form_params = opts[:form_params] || {}
|
|
1255
|
+
|
|
1256
|
+
# http body (model)
|
|
1257
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1258
|
+
|
|
1259
|
+
# return_type
|
|
1260
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1261
|
+
|
|
1262
|
+
# auth_names
|
|
1263
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1264
|
+
|
|
1265
|
+
new_options = opts.merge(
|
|
1266
|
+
:operation => :"TasksApi.workspace_create_task_alias",
|
|
1267
|
+
:header_params => header_params,
|
|
1268
|
+
:query_params => query_params,
|
|
1269
|
+
:form_params => form_params,
|
|
1270
|
+
:body => post_body,
|
|
1271
|
+
:auth_names => auth_names,
|
|
1272
|
+
:return_type => return_type
|
|
1273
|
+
)
|
|
1274
|
+
|
|
1275
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1276
|
+
if @api_client.config.debugging
|
|
1277
|
+
@api_client.config.logger.debug "API called: TasksApi#workspace_create_task_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1278
|
+
end
|
|
1279
|
+
return data, status_code, headers
|
|
1280
|
+
end
|
|
1281
|
+
|
|
1282
|
+
# @param org [String]
|
|
1283
|
+
# @param workspace [String]
|
|
1284
|
+
# @param id [String]
|
|
1285
|
+
# @param [Hash] opts the optional parameters
|
|
1286
|
+
# @return [nil]
|
|
1287
|
+
def workspace_delete_task(org, workspace, id, opts = {})
|
|
1288
|
+
workspace_delete_task_with_http_info(org, workspace, id, opts)
|
|
1289
|
+
nil
|
|
1290
|
+
end
|
|
1291
|
+
|
|
1292
|
+
# @param org [String]
|
|
1293
|
+
# @param workspace [String]
|
|
1294
|
+
# @param id [String]
|
|
1295
|
+
# @param [Hash] opts the optional parameters
|
|
1296
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1297
|
+
def workspace_delete_task_with_http_info(org, workspace, id, opts = {})
|
|
1298
|
+
if @api_client.config.debugging
|
|
1299
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.workspace_delete_task ...'
|
|
1300
|
+
end
|
|
1301
|
+
# verify the required parameter 'org' is set
|
|
1302
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1303
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling TasksApi.workspace_delete_task"
|
|
1304
|
+
end
|
|
1305
|
+
# verify the required parameter 'workspace' is set
|
|
1306
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1307
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling TasksApi.workspace_delete_task"
|
|
1308
|
+
end
|
|
1309
|
+
# verify the required parameter 'id' is set
|
|
1310
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1311
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.workspace_delete_task"
|
|
1312
|
+
end
|
|
1313
|
+
# resource path
|
|
1314
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/tasks/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
1315
|
+
|
|
1316
|
+
# query parameters
|
|
1317
|
+
query_params = opts[:query_params] || {}
|
|
1318
|
+
|
|
1319
|
+
# header parameters
|
|
1320
|
+
header_params = opts[:header_params] || {}
|
|
1321
|
+
# HTTP header 'Accept' (if needed)
|
|
1322
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1323
|
+
|
|
1324
|
+
# form parameters
|
|
1325
|
+
form_params = opts[:form_params] || {}
|
|
1326
|
+
|
|
1327
|
+
# http body (model)
|
|
1328
|
+
post_body = opts[:debug_body]
|
|
1329
|
+
|
|
1330
|
+
# return_type
|
|
1331
|
+
return_type = opts[:debug_return_type]
|
|
1332
|
+
|
|
1333
|
+
# auth_names
|
|
1334
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1335
|
+
|
|
1336
|
+
new_options = opts.merge(
|
|
1337
|
+
:operation => :"TasksApi.workspace_delete_task",
|
|
1338
|
+
:header_params => header_params,
|
|
1339
|
+
:query_params => query_params,
|
|
1340
|
+
:form_params => form_params,
|
|
1341
|
+
:body => post_body,
|
|
1342
|
+
:auth_names => auth_names,
|
|
1343
|
+
:return_type => return_type
|
|
1344
|
+
)
|
|
1345
|
+
|
|
1346
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1347
|
+
if @api_client.config.debugging
|
|
1348
|
+
@api_client.config.logger.debug "API called: TasksApi#workspace_delete_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1349
|
+
end
|
|
1350
|
+
return data, status_code, headers
|
|
1351
|
+
end
|
|
1352
|
+
|
|
1353
|
+
# @param org [String]
|
|
1354
|
+
# @param workspace [String]
|
|
1355
|
+
# @param id [String]
|
|
1356
|
+
# @param [Hash] opts the optional parameters
|
|
1357
|
+
# @return [Hash<String, Object>]
|
|
1358
|
+
def workspace_get_task(org, workspace, id, opts = {})
|
|
1359
|
+
data, _status_code, _headers = workspace_get_task_with_http_info(org, workspace, id, opts)
|
|
1360
|
+
data
|
|
1361
|
+
end
|
|
1362
|
+
|
|
1363
|
+
# @param org [String]
|
|
1364
|
+
# @param workspace [String]
|
|
1365
|
+
# @param id [String]
|
|
1366
|
+
# @param [Hash] opts the optional parameters
|
|
1367
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1368
|
+
def workspace_get_task_with_http_info(org, workspace, id, opts = {})
|
|
1369
|
+
if @api_client.config.debugging
|
|
1370
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.workspace_get_task ...'
|
|
1371
|
+
end
|
|
1372
|
+
# verify the required parameter 'org' is set
|
|
1373
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1374
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling TasksApi.workspace_get_task"
|
|
1375
|
+
end
|
|
1376
|
+
# verify the required parameter 'workspace' is set
|
|
1377
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1378
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling TasksApi.workspace_get_task"
|
|
1379
|
+
end
|
|
1380
|
+
# verify the required parameter 'id' is set
|
|
1381
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1382
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.workspace_get_task"
|
|
1383
|
+
end
|
|
1384
|
+
# resource path
|
|
1385
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/tasks/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
1386
|
+
|
|
1387
|
+
# query parameters
|
|
1388
|
+
query_params = opts[:query_params] || {}
|
|
1389
|
+
|
|
1390
|
+
# header parameters
|
|
1391
|
+
header_params = opts[:header_params] || {}
|
|
1392
|
+
# HTTP header 'Accept' (if needed)
|
|
1393
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1394
|
+
|
|
1395
|
+
# form parameters
|
|
1396
|
+
form_params = opts[:form_params] || {}
|
|
1397
|
+
|
|
1398
|
+
# http body (model)
|
|
1399
|
+
post_body = opts[:debug_body]
|
|
1400
|
+
|
|
1401
|
+
# return_type
|
|
1402
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1403
|
+
|
|
1404
|
+
# auth_names
|
|
1405
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1406
|
+
|
|
1407
|
+
new_options = opts.merge(
|
|
1408
|
+
:operation => :"TasksApi.workspace_get_task",
|
|
1409
|
+
:header_params => header_params,
|
|
1410
|
+
:query_params => query_params,
|
|
1411
|
+
:form_params => form_params,
|
|
1412
|
+
:body => post_body,
|
|
1413
|
+
:auth_names => auth_names,
|
|
1414
|
+
:return_type => return_type
|
|
1415
|
+
)
|
|
1416
|
+
|
|
1417
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1418
|
+
if @api_client.config.debugging
|
|
1419
|
+
@api_client.config.logger.debug "API called: TasksApi#workspace_get_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1420
|
+
end
|
|
1421
|
+
return data, status_code, headers
|
|
1422
|
+
end
|
|
1423
|
+
|
|
1424
|
+
# @param org [String]
|
|
1425
|
+
# @param workspace [String]
|
|
1426
|
+
# @param [Hash] opts the optional parameters
|
|
1427
|
+
# @return [Hash<String, Object>]
|
|
1428
|
+
def workspace_list_task_providers(org, workspace, opts = {})
|
|
1429
|
+
data, _status_code, _headers = workspace_list_task_providers_with_http_info(org, workspace, opts)
|
|
1430
|
+
data
|
|
1431
|
+
end
|
|
1432
|
+
|
|
1433
|
+
# @param org [String]
|
|
1434
|
+
# @param workspace [String]
|
|
1435
|
+
# @param [Hash] opts the optional parameters
|
|
1436
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1437
|
+
def workspace_list_task_providers_with_http_info(org, workspace, opts = {})
|
|
1438
|
+
if @api_client.config.debugging
|
|
1439
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.workspace_list_task_providers ...'
|
|
1440
|
+
end
|
|
1441
|
+
# verify the required parameter 'org' is set
|
|
1442
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1443
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling TasksApi.workspace_list_task_providers"
|
|
1444
|
+
end
|
|
1445
|
+
# verify the required parameter 'workspace' is set
|
|
1446
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1447
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling TasksApi.workspace_list_task_providers"
|
|
1448
|
+
end
|
|
1449
|
+
# resource path
|
|
1450
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/tasks/providers'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
1451
|
+
|
|
1452
|
+
# query parameters
|
|
1453
|
+
query_params = opts[:query_params] || {}
|
|
1454
|
+
|
|
1455
|
+
# header parameters
|
|
1456
|
+
header_params = opts[:header_params] || {}
|
|
1457
|
+
# HTTP header 'Accept' (if needed)
|
|
1458
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1459
|
+
|
|
1460
|
+
# form parameters
|
|
1461
|
+
form_params = opts[:form_params] || {}
|
|
1462
|
+
|
|
1463
|
+
# http body (model)
|
|
1464
|
+
post_body = opts[:debug_body]
|
|
1465
|
+
|
|
1466
|
+
# return_type
|
|
1467
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1468
|
+
|
|
1469
|
+
# auth_names
|
|
1470
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1471
|
+
|
|
1472
|
+
new_options = opts.merge(
|
|
1473
|
+
:operation => :"TasksApi.workspace_list_task_providers",
|
|
1474
|
+
:header_params => header_params,
|
|
1475
|
+
:query_params => query_params,
|
|
1476
|
+
:form_params => form_params,
|
|
1477
|
+
:body => post_body,
|
|
1478
|
+
:auth_names => auth_names,
|
|
1479
|
+
:return_type => return_type
|
|
1480
|
+
)
|
|
1481
|
+
|
|
1482
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1483
|
+
if @api_client.config.debugging
|
|
1484
|
+
@api_client.config.logger.debug "API called: TasksApi#workspace_list_task_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1485
|
+
end
|
|
1486
|
+
return data, status_code, headers
|
|
1487
|
+
end
|
|
1488
|
+
|
|
1489
|
+
# @param org [String]
|
|
1490
|
+
# @param workspace [String]
|
|
1491
|
+
# @param [Hash] opts the optional parameters
|
|
1492
|
+
# @return [Hash<String, Object>]
|
|
1493
|
+
def workspace_list_tasks(org, workspace, opts = {})
|
|
1494
|
+
data, _status_code, _headers = workspace_list_tasks_with_http_info(org, workspace, opts)
|
|
1495
|
+
data
|
|
1496
|
+
end
|
|
1497
|
+
|
|
1498
|
+
# @param org [String]
|
|
1499
|
+
# @param workspace [String]
|
|
1500
|
+
# @param [Hash] opts the optional parameters
|
|
1501
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1502
|
+
def workspace_list_tasks_with_http_info(org, workspace, opts = {})
|
|
1503
|
+
if @api_client.config.debugging
|
|
1504
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.workspace_list_tasks ...'
|
|
1505
|
+
end
|
|
1506
|
+
# verify the required parameter 'org' is set
|
|
1507
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1508
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling TasksApi.workspace_list_tasks"
|
|
1509
|
+
end
|
|
1510
|
+
# verify the required parameter 'workspace' is set
|
|
1511
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1512
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling TasksApi.workspace_list_tasks"
|
|
1513
|
+
end
|
|
1514
|
+
# resource path
|
|
1515
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/tasks'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
1516
|
+
|
|
1517
|
+
# query parameters
|
|
1518
|
+
query_params = opts[:query_params] || {}
|
|
1519
|
+
|
|
1520
|
+
# header parameters
|
|
1521
|
+
header_params = opts[:header_params] || {}
|
|
1522
|
+
# HTTP header 'Accept' (if needed)
|
|
1523
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1524
|
+
|
|
1525
|
+
# form parameters
|
|
1526
|
+
form_params = opts[:form_params] || {}
|
|
1527
|
+
|
|
1528
|
+
# http body (model)
|
|
1529
|
+
post_body = opts[:debug_body]
|
|
1530
|
+
|
|
1531
|
+
# return_type
|
|
1532
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1533
|
+
|
|
1534
|
+
# auth_names
|
|
1535
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1536
|
+
|
|
1537
|
+
new_options = opts.merge(
|
|
1538
|
+
:operation => :"TasksApi.workspace_list_tasks",
|
|
1539
|
+
:header_params => header_params,
|
|
1540
|
+
:query_params => query_params,
|
|
1541
|
+
:form_params => form_params,
|
|
1542
|
+
:body => post_body,
|
|
1543
|
+
:auth_names => auth_names,
|
|
1544
|
+
:return_type => return_type
|
|
1545
|
+
)
|
|
1546
|
+
|
|
1547
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1548
|
+
if @api_client.config.debugging
|
|
1549
|
+
@api_client.config.logger.debug "API called: TasksApi#workspace_list_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1550
|
+
end
|
|
1551
|
+
return data, status_code, headers
|
|
1552
|
+
end
|
|
1553
|
+
|
|
1554
|
+
# Renderer-compat alias for /tasks.
|
|
1555
|
+
# @param org [String]
|
|
1556
|
+
# @param workspace [String]
|
|
1557
|
+
# @param [Hash] opts the optional parameters
|
|
1558
|
+
# @return [Hash<String, Object>]
|
|
1559
|
+
def workspace_list_tasks_alias(org, workspace, opts = {})
|
|
1560
|
+
data, _status_code, _headers = workspace_list_tasks_alias_with_http_info(org, workspace, opts)
|
|
1561
|
+
data
|
|
1562
|
+
end
|
|
1563
|
+
|
|
1564
|
+
# Renderer-compat alias for /tasks.
|
|
1565
|
+
# @param org [String]
|
|
1566
|
+
# @param workspace [String]
|
|
1567
|
+
# @param [Hash] opts the optional parameters
|
|
1568
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1569
|
+
def workspace_list_tasks_alias_with_http_info(org, workspace, opts = {})
|
|
1570
|
+
if @api_client.config.debugging
|
|
1571
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.workspace_list_tasks_alias ...'
|
|
1572
|
+
end
|
|
1573
|
+
# verify the required parameter 'org' is set
|
|
1574
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1575
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling TasksApi.workspace_list_tasks_alias"
|
|
1576
|
+
end
|
|
1577
|
+
# verify the required parameter 'workspace' is set
|
|
1578
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1579
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling TasksApi.workspace_list_tasks_alias"
|
|
1580
|
+
end
|
|
1581
|
+
# resource path
|
|
1582
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/tasks/tasks'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
|
|
1583
|
+
|
|
1584
|
+
# query parameters
|
|
1585
|
+
query_params = opts[:query_params] || {}
|
|
1586
|
+
|
|
1587
|
+
# header parameters
|
|
1588
|
+
header_params = opts[:header_params] || {}
|
|
1589
|
+
# HTTP header 'Accept' (if needed)
|
|
1590
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1591
|
+
|
|
1592
|
+
# form parameters
|
|
1593
|
+
form_params = opts[:form_params] || {}
|
|
1594
|
+
|
|
1595
|
+
# http body (model)
|
|
1596
|
+
post_body = opts[:debug_body]
|
|
1597
|
+
|
|
1598
|
+
# return_type
|
|
1599
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1600
|
+
|
|
1601
|
+
# auth_names
|
|
1602
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1603
|
+
|
|
1604
|
+
new_options = opts.merge(
|
|
1605
|
+
:operation => :"TasksApi.workspace_list_tasks_alias",
|
|
1606
|
+
:header_params => header_params,
|
|
1607
|
+
:query_params => query_params,
|
|
1608
|
+
:form_params => form_params,
|
|
1609
|
+
:body => post_body,
|
|
1610
|
+
:auth_names => auth_names,
|
|
1611
|
+
:return_type => return_type
|
|
1612
|
+
)
|
|
1613
|
+
|
|
1614
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1615
|
+
if @api_client.config.debugging
|
|
1616
|
+
@api_client.config.logger.debug "API called: TasksApi#workspace_list_tasks_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1617
|
+
end
|
|
1618
|
+
return data, status_code, headers
|
|
1619
|
+
end
|
|
1620
|
+
|
|
1621
|
+
# @param org [String]
|
|
1622
|
+
# @param workspace [String]
|
|
1623
|
+
# @param id [String]
|
|
1624
|
+
# @param request_body [Hash<String, Object>]
|
|
1625
|
+
# @param [Hash] opts the optional parameters
|
|
1626
|
+
# @return [Hash<String, Object>]
|
|
1627
|
+
def workspace_update_task(org, workspace, id, request_body, opts = {})
|
|
1628
|
+
data, _status_code, _headers = workspace_update_task_with_http_info(org, workspace, id, request_body, opts)
|
|
1629
|
+
data
|
|
1630
|
+
end
|
|
1631
|
+
|
|
1632
|
+
# @param org [String]
|
|
1633
|
+
# @param workspace [String]
|
|
1634
|
+
# @param id [String]
|
|
1635
|
+
# @param request_body [Hash<String, Object>]
|
|
1636
|
+
# @param [Hash] opts the optional parameters
|
|
1637
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1638
|
+
def workspace_update_task_with_http_info(org, workspace, id, request_body, opts = {})
|
|
1639
|
+
if @api_client.config.debugging
|
|
1640
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.workspace_update_task ...'
|
|
1641
|
+
end
|
|
1642
|
+
# verify the required parameter 'org' is set
|
|
1643
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1644
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling TasksApi.workspace_update_task"
|
|
1645
|
+
end
|
|
1646
|
+
# verify the required parameter 'workspace' is set
|
|
1647
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1648
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling TasksApi.workspace_update_task"
|
|
1649
|
+
end
|
|
1650
|
+
# verify the required parameter 'id' is set
|
|
1651
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1652
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.workspace_update_task"
|
|
1653
|
+
end
|
|
1654
|
+
# verify the required parameter 'request_body' is set
|
|
1655
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1656
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TasksApi.workspace_update_task"
|
|
1657
|
+
end
|
|
1658
|
+
# resource path
|
|
1659
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/tasks/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
1660
|
+
|
|
1661
|
+
# query parameters
|
|
1662
|
+
query_params = opts[:query_params] || {}
|
|
1663
|
+
|
|
1664
|
+
# header parameters
|
|
1665
|
+
header_params = opts[:header_params] || {}
|
|
1666
|
+
# HTTP header 'Accept' (if needed)
|
|
1667
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1668
|
+
# HTTP header 'Content-Type'
|
|
1669
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1670
|
+
if !content_type.nil?
|
|
1671
|
+
header_params['Content-Type'] = content_type
|
|
1672
|
+
end
|
|
1673
|
+
|
|
1674
|
+
# form parameters
|
|
1675
|
+
form_params = opts[:form_params] || {}
|
|
1676
|
+
|
|
1677
|
+
# http body (model)
|
|
1678
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1679
|
+
|
|
1680
|
+
# return_type
|
|
1681
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1682
|
+
|
|
1683
|
+
# auth_names
|
|
1684
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1685
|
+
|
|
1686
|
+
new_options = opts.merge(
|
|
1687
|
+
:operation => :"TasksApi.workspace_update_task",
|
|
1688
|
+
:header_params => header_params,
|
|
1689
|
+
:query_params => query_params,
|
|
1690
|
+
:form_params => form_params,
|
|
1691
|
+
:body => post_body,
|
|
1692
|
+
:auth_names => auth_names,
|
|
1693
|
+
:return_type => return_type
|
|
1694
|
+
)
|
|
1695
|
+
|
|
1696
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1697
|
+
if @api_client.config.debugging
|
|
1698
|
+
@api_client.config.logger.debug "API called: TasksApi#workspace_update_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1699
|
+
end
|
|
1700
|
+
return data, status_code, headers
|
|
1701
|
+
end
|
|
1702
|
+
|
|
1703
|
+
# Renderer-compat alias for PATCH /tasks/{id}.
|
|
1704
|
+
# @param org [String]
|
|
1705
|
+
# @param workspace [String]
|
|
1706
|
+
# @param id [String]
|
|
1707
|
+
# @param request_body [Hash<String, Object>]
|
|
1708
|
+
# @param [Hash] opts the optional parameters
|
|
1709
|
+
# @return [Hash<String, Object>]
|
|
1710
|
+
def workspace_update_task_alias(org, workspace, id, request_body, opts = {})
|
|
1711
|
+
data, _status_code, _headers = workspace_update_task_alias_with_http_info(org, workspace, id, request_body, opts)
|
|
1712
|
+
data
|
|
1713
|
+
end
|
|
1714
|
+
|
|
1715
|
+
# Renderer-compat alias for PATCH /tasks/{id}.
|
|
1716
|
+
# @param org [String]
|
|
1717
|
+
# @param workspace [String]
|
|
1718
|
+
# @param id [String]
|
|
1719
|
+
# @param request_body [Hash<String, Object>]
|
|
1720
|
+
# @param [Hash] opts the optional parameters
|
|
1721
|
+
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1722
|
+
def workspace_update_task_alias_with_http_info(org, workspace, id, request_body, opts = {})
|
|
1723
|
+
if @api_client.config.debugging
|
|
1724
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.workspace_update_task_alias ...'
|
|
1725
|
+
end
|
|
1726
|
+
# verify the required parameter 'org' is set
|
|
1727
|
+
if @api_client.config.client_side_validation && org.nil?
|
|
1728
|
+
fail ArgumentError, "Missing the required parameter 'org' when calling TasksApi.workspace_update_task_alias"
|
|
1729
|
+
end
|
|
1730
|
+
# verify the required parameter 'workspace' is set
|
|
1731
|
+
if @api_client.config.client_side_validation && workspace.nil?
|
|
1732
|
+
fail ArgumentError, "Missing the required parameter 'workspace' when calling TasksApi.workspace_update_task_alias"
|
|
1733
|
+
end
|
|
1734
|
+
# verify the required parameter 'id' is set
|
|
1735
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1736
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.workspace_update_task_alias"
|
|
1737
|
+
end
|
|
1738
|
+
# verify the required parameter 'request_body' is set
|
|
1739
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
1740
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TasksApi.workspace_update_task_alias"
|
|
1741
|
+
end
|
|
1742
|
+
# resource path
|
|
1743
|
+
local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/tasks/task/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
|
|
1744
|
+
|
|
1745
|
+
# query parameters
|
|
1746
|
+
query_params = opts[:query_params] || {}
|
|
1747
|
+
|
|
1748
|
+
# header parameters
|
|
1749
|
+
header_params = opts[:header_params] || {}
|
|
1750
|
+
# HTTP header 'Accept' (if needed)
|
|
1751
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1752
|
+
# HTTP header 'Content-Type'
|
|
1753
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1754
|
+
if !content_type.nil?
|
|
1755
|
+
header_params['Content-Type'] = content_type
|
|
1756
|
+
end
|
|
1757
|
+
|
|
1758
|
+
# form parameters
|
|
1759
|
+
form_params = opts[:form_params] || {}
|
|
1760
|
+
|
|
1761
|
+
# http body (model)
|
|
1762
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
1763
|
+
|
|
1764
|
+
# return_type
|
|
1765
|
+
return_type = opts[:debug_return_type] || 'Hash<String, Object>'
|
|
1766
|
+
|
|
1767
|
+
# auth_names
|
|
1768
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1769
|
+
|
|
1770
|
+
new_options = opts.merge(
|
|
1771
|
+
:operation => :"TasksApi.workspace_update_task_alias",
|
|
1772
|
+
:header_params => header_params,
|
|
1773
|
+
:query_params => query_params,
|
|
1774
|
+
:form_params => form_params,
|
|
1775
|
+
:body => post_body,
|
|
1776
|
+
:auth_names => auth_names,
|
|
1777
|
+
:return_type => return_type
|
|
1778
|
+
)
|
|
1779
|
+
|
|
1780
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1781
|
+
if @api_client.config.debugging
|
|
1782
|
+
@api_client.config.logger.debug "API called: TasksApi#workspace_update_task_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1783
|
+
end
|
|
1784
|
+
return data, status_code, headers
|
|
1785
|
+
end
|
|
1786
|
+
end
|
|
1787
|
+
end
|