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.
Files changed (1119) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +31 -0
  5. data/Rakefile +10 -0
  6. data/docs/AcceptOrganizationInvitationRequest.md +18 -0
  7. data/docs/AccountApi.md +793 -0
  8. data/docs/AccountChoice.md +22 -0
  9. data/docs/AccountError.md +20 -0
  10. data/docs/AccountListResponse.md +22 -0
  11. data/docs/AccountPlan.md +24 -0
  12. data/docs/AccountStatus.md +28 -0
  13. data/docs/AccountTierDetails.md +46 -0
  14. data/docs/AccountUsage.md +32 -0
  15. data/docs/ActionDescriptor.md +32 -0
  16. data/docs/ActionsApi.md +409 -0
  17. data/docs/AddOrganizationMemberRequest.md +22 -0
  18. data/docs/AddWorkspaceMemberRequest.md +20 -0
  19. data/docs/Agent.md +40 -0
  20. data/docs/AgentConversation.md +28 -0
  21. data/docs/AgentConversationListResponse.md +20 -0
  22. data/docs/AgentListResponse.md +24 -0
  23. data/docs/AgentMessage.md +28 -0
  24. data/docs/AgentMessageListResponse.md +20 -0
  25. data/docs/AgentSessionContext.md +24 -0
  26. data/docs/AgentTaskUsage.md +26 -0
  27. data/docs/AgentsApi.md +884 -0
  28. data/docs/AmbiguousAccountError.md +22 -0
  29. data/docs/ApiError.md +20 -0
  30. data/docs/App.md +32 -0
  31. data/docs/AppFileContentResponse.md +20 -0
  32. data/docs/AppFileListResponse.md +18 -0
  33. data/docs/AppListResponse.md +20 -0
  34. data/docs/AppsApi.md +984 -0
  35. data/docs/AssignContactCategoryRequest.md +18 -0
  36. data/docs/Attachment.md +26 -0
  37. data/docs/AttachmentInput.md +24 -0
  38. data/docs/AttachmentMeta.md +24 -0
  39. data/docs/Attendee.md +30 -0
  40. data/docs/AttendeeRole.md +15 -0
  41. data/docs/AttendeeStatus.md +15 -0
  42. data/docs/Block.md +36 -0
  43. data/docs/BlockContent.md +38 -0
  44. data/docs/BlockListResponse.md +20 -0
  45. data/docs/BlockType.md +15 -0
  46. data/docs/BulkArchiveRequest.md +20 -0
  47. data/docs/BulkArchiveResponse.md +22 -0
  48. data/docs/BulkArchiveResponseFailedInner.md +20 -0
  49. data/docs/BulkDeleteEmailsRequest.md +22 -0
  50. data/docs/BulkDeleteEmailsResponse.md +22 -0
  51. data/docs/BulkDeleteFilesRequest.md +24 -0
  52. data/docs/BulkDeleteTasksRequest.md +24 -0
  53. data/docs/BulkDeleteTasksResponse.md +24 -0
  54. data/docs/BulkDeleteTasksResponseFailedInner.md +20 -0
  55. data/docs/BulkFilesResponse.md +24 -0
  56. data/docs/BulkFilesResponseFailedInner.md +20 -0
  57. data/docs/BulkMarkReadRequest.md +22 -0
  58. data/docs/BulkMarkReadResponse.md +20 -0
  59. data/docs/BulkMarkReadResponseFailedInner.md +20 -0
  60. data/docs/BulkMoveFilesRequest.md +26 -0
  61. data/docs/BulkUpdateTasksRequest.md +24 -0
  62. data/docs/BulkUpdateTasksResponse.md +24 -0
  63. data/docs/CalendarAccountError.md +24 -0
  64. data/docs/CalendarApi.md +1031 -0
  65. data/docs/CalendarCapabilitiesResponse.md +22 -0
  66. data/docs/CalendarOperationResult.md +24 -0
  67. data/docs/CalendarProviderInfo.md +26 -0
  68. data/docs/CalendarProvidersInfo.md +18 -0
  69. data/docs/CalendarSyncResponse.md +26 -0
  70. data/docs/CallListResponse.md +20 -0
  71. data/docs/CallRecording.md +30 -0
  72. data/docs/CallRecordingListResponse.md +18 -0
  73. data/docs/CallsApi.md +2096 -0
  74. data/docs/Cell.md +22 -0
  75. data/docs/ChangePasswordRequest.md +20 -0
  76. data/docs/Channel.md +38 -0
  77. data/docs/ChannelMembershipRequest.md +18 -0
  78. data/docs/ChannelsApi.md +1170 -0
  79. data/docs/ChatActionDefinition.md +34 -0
  80. data/docs/ChatActionsList.md +18 -0
  81. data/docs/ChatMessage.md +36 -0
  82. data/docs/ChatUser.md +34 -0
  83. data/docs/ChunkedFileManifest.md +34 -0
  84. data/docs/ClientRegistrationRequest.md +36 -0
  85. data/docs/ClientRegistrationResponse.md +38 -0
  86. data/docs/Comment.md +32 -0
  87. data/docs/CommentAuthor.md +24 -0
  88. data/docs/CommentListResponse.md +20 -0
  89. data/docs/CommentMutationResponse.md +20 -0
  90. data/docs/CommentResponse.md +18 -0
  91. data/docs/CommitChunkedUploadRequest.md +18 -0
  92. data/docs/CommitChunkedUploadResponse.md +36 -0
  93. data/docs/ConferenceData.md +28 -0
  94. data/docs/ConnectedAppItem.md +34 -0
  95. data/docs/ConnectedAppsListResponse.md +18 -0
  96. data/docs/ConnectionAccountListResponse.md +22 -0
  97. data/docs/ConnectionListResponse.md +20 -0
  98. data/docs/ConnectionsApi.md +748 -0
  99. data/docs/ConsumeAgentTaskResponse.md +26 -0
  100. data/docs/Contact.md +46 -0
  101. data/docs/ContactCategory.md +26 -0
  102. data/docs/ContactCategoryListResponse.md +18 -0
  103. data/docs/ContactListResponse.md +22 -0
  104. data/docs/ContactProvider.md +26 -0
  105. data/docs/ContactProviderListResponse.md +18 -0
  106. data/docs/ContactsApi.md +830 -0
  107. data/docs/Conversation.md +42 -0
  108. data/docs/ConversationMessage.md +28 -0
  109. data/docs/ConversationsApi.md +636 -0
  110. data/docs/CoreAction.md +30 -0
  111. data/docs/CoreActionListResponse.md +20 -0
  112. data/docs/CreateAgentConversationRequest.md +22 -0
  113. data/docs/CreateAgentMessageRequest.md +22 -0
  114. data/docs/CreateAgentRequest.md +30 -0
  115. data/docs/CreateAppRequest.md +26 -0
  116. data/docs/CreateBlockRequest.md +26 -0
  117. data/docs/CreateCalendarEvent201Response.md +24 -0
  118. data/docs/CreateCallRequest.md +24 -0
  119. data/docs/CreateChannelRequest.md +24 -0
  120. data/docs/CreateChannelResponse.md +20 -0
  121. data/docs/CreateCommentRequest.md +24 -0
  122. data/docs/CreateContactCategoryRequest.md +22 -0
  123. data/docs/CreateContactRequest.md +32 -0
  124. data/docs/CreateConversationRequest.md +26 -0
  125. data/docs/CreateDraftRequest.md +38 -0
  126. data/docs/CreateEmailFolderRequest.md +20 -0
  127. data/docs/CreateEventRequest.md +26 -0
  128. data/docs/CreateFolderRequest.md +26 -0
  129. data/docs/CreateLabelRequest.md +26 -0
  130. data/docs/CreateLabelResponse.md +20 -0
  131. data/docs/CreateMeetingRoomRequest.md +20 -0
  132. data/docs/CreateNote400Response.md +49 -0
  133. data/docs/CreateNoteRequest.md +32 -0
  134. data/docs/CreateOrganizationInvitationRequest.md +22 -0
  135. data/docs/CreateOrganizationRequest.md +28 -0
  136. data/docs/CreatePATRequest.md +26 -0
  137. data/docs/CreatePATResponse.md +20 -0
  138. data/docs/CreatePresentationRequest.md +26 -0
  139. data/docs/CreateRecordRequest.md +26 -0
  140. data/docs/CreateRecordTypeRequest.md +28 -0
  141. data/docs/CreateRoutineRequest.md +26 -0
  142. data/docs/CreateRowRequest.md +20 -0
  143. data/docs/CreateSheetRequest.md +30 -0
  144. data/docs/CreateSlideElementRequest.md +32 -0
  145. data/docs/CreateSlideRequest.md +34 -0
  146. data/docs/CreateTaskRequest.md +44 -0
  147. data/docs/CreateWorkspaceInvitationRequest.md +20 -0
  148. data/docs/CreateWorkspaceRequest.md +24 -0
  149. data/docs/DMAttachRequest.md +34 -0
  150. data/docs/DMForwardRequest.md +22 -0
  151. data/docs/DMMarkReadRequest.md +20 -0
  152. data/docs/DMMessageEnvelope.md +18 -0
  153. data/docs/DMMuteRequest.md +22 -0
  154. data/docs/DMMuteResponse.md +18 -0
  155. data/docs/DMPinnedList.md +18 -0
  156. data/docs/DMReactionRequest.md +20 -0
  157. data/docs/DMReactionResponse.md +18 -0
  158. data/docs/DMSearchResults.md +18 -0
  159. data/docs/DMSetDraftRequest.md +20 -0
  160. data/docs/DMThreadReplyRequest.md +20 -0
  161. data/docs/DirectMessagesApi.md +2246 -0
  162. data/docs/DisconnectConnectionRequest.md +20 -0
  163. data/docs/DiscoveryDocument.md +52 -0
  164. data/docs/DownloadFileResponse.md +20 -0
  165. data/docs/Draft.md +40 -0
  166. data/docs/DraftResponse.md +20 -0
  167. data/docs/Email.md +56 -0
  168. data/docs/EmailFolder.md +26 -0
  169. data/docs/EmailFolderListResponse.md +18 -0
  170. data/docs/EnableShareRequest.md +20 -0
  171. data/docs/ExecuteActionRequest.md +22 -0
  172. data/docs/ExecuteActionResponse.md +22 -0
  173. data/docs/ExecuteChatActionRequest.md +20 -0
  174. data/docs/ExecuteChatActionResponse.md +20 -0
  175. data/docs/ExportPDFR2Response.md +24 -0
  176. data/docs/ExportPDFRequest.md +20 -0
  177. data/docs/ExportPDFRequestRasterizedSlidesInner.md +20 -0
  178. data/docs/ExtractTextResult.md +24 -0
  179. data/docs/FederatedSearch200Response.md +28 -0
  180. data/docs/FederatedSearch200ResponseItemsInner.md +38 -0
  181. data/docs/FederatedSearch200ResponsePerPlatformValue.md +20 -0
  182. data/docs/FederatedSearchRequest.md +32 -0
  183. data/docs/FileListEnvelope.md +20 -0
  184. data/docs/FilesAndFoldersResponse.md +28 -0
  185. data/docs/FilesApi.md +2471 -0
  186. data/docs/Folder.md +32 -0
  187. data/docs/FolderListEnvelope.md +20 -0
  188. data/docs/FoldersApi.md +415 -0
  189. data/docs/GetChatUserResponse.md +20 -0
  190. data/docs/GetDomainLogo200Response.md +20 -0
  191. data/docs/GetEmailResponse.md +20 -0
  192. data/docs/GetThreadResponse.md +20 -0
  193. data/docs/InboxApi.md +424 -0
  194. data/docs/InboxCounts.md +22 -0
  195. data/docs/InboxItem.md +38 -0
  196. data/docs/InboxListResponse.md +22 -0
  197. data/docs/InitChunkedUploadRequest.md +30 -0
  198. data/docs/InitChunkedUploadResponse.md +26 -0
  199. data/docs/InstallConnectionRequest.md +22 -0
  200. data/docs/IntrospectionResponse.md +30 -0
  201. data/docs/IssueCollaborationToken200Response.md +26 -0
  202. data/docs/IssueCollaborationTokenRequest.md +18 -0
  203. data/docs/JWK.md +28 -0
  204. data/docs/JWKS.md +18 -0
  205. data/docs/KeyBinding.md +38 -0
  206. data/docs/KeyBindingListResponse.md +18 -0
  207. data/docs/KeybindingsApi.md +406 -0
  208. data/docs/Label.md +28 -0
  209. data/docs/LabelColor.md +20 -0
  210. data/docs/LinkRepoTaskRequest.md +18 -0
  211. data/docs/ListCalendarEvents200Response.md +24 -0
  212. data/docs/ListChannelsResponse.md +24 -0
  213. data/docs/ListChatUsersResponse.md +24 -0
  214. data/docs/ListDraftsResponse.md +24 -0
  215. data/docs/ListEmailsResponse.md +24 -0
  216. data/docs/ListEventsData.md +24 -0
  217. data/docs/ListLabelsResponse.md +20 -0
  218. data/docs/ListMessagesResponse.md +24 -0
  219. data/docs/LogosApi.md +211 -0
  220. data/docs/MailApi.md +3803 -0
  221. data/docs/MeetingRoom.md +24 -0
  222. data/docs/MiscApi.md +1213 -0
  223. data/docs/ModelsApi.md +483 -0
  224. data/docs/MoveBlockRequest.md +20 -0
  225. data/docs/MoveEmailsRequest.md +18 -0
  226. data/docs/MoveFileRequest.md +18 -0
  227. data/docs/MoveFileResponse.md +18 -0
  228. data/docs/NativeDMApi.md +1448 -0
  229. data/docs/NavigationApi.md +72 -0
  230. data/docs/Note.md +44 -0
  231. data/docs/NoteListEnvelope.md +20 -0
  232. data/docs/NotesApi.md +2413 -0
  233. data/docs/NotificationsApi.md +140 -0
  234. data/docs/OAuthApi.md +676 -0
  235. data/docs/OAuthError.md +20 -0
  236. data/docs/Organization.md +38 -0
  237. data/docs/OrganizationDetailLegacy.md +38 -0
  238. data/docs/OrganizationInvitation.md +38 -0
  239. data/docs/OrganizationInvitationListResponse.md +18 -0
  240. data/docs/OrganizationListResponse.md +18 -0
  241. data/docs/OrganizationMember.md +28 -0
  242. data/docs/OrganizationMemberInvitedBy.md +49 -0
  243. data/docs/OrganizationMemberListResponse.md +20 -0
  244. data/docs/OrganizationWorkspacesInner.md +22 -0
  245. data/docs/OrganizationsApi.md +1956 -0
  246. data/docs/PATListResponse.md +20 -0
  247. data/docs/PATScopesResponse.md +18 -0
  248. data/docs/PasswordRequiredError.md +24 -0
  249. data/docs/PersonalAccessToken.md +34 -0
  250. data/docs/PersonalAccessTokensApi.md +629 -0
  251. data/docs/PlatformsApi.md +1032 -0
  252. data/docs/PreconfiguredAgent.md +30 -0
  253. data/docs/Presentation.md +38 -0
  254. data/docs/PresentationListEnvelope.md +20 -0
  255. data/docs/ProposeRecommendationRequest.md +28 -0
  256. data/docs/PublicInvitationPayload.md +40 -0
  257. data/docs/QuotaExceededError.md +20 -0
  258. data/docs/RealtimeApi.md +79 -0
  259. data/docs/Recommendation.md +38 -0
  260. data/docs/RecommendationListResponse.md +18 -0
  261. data/docs/RecommendationsApi.md +354 -0
  262. data/docs/Record.md +32 -0
  263. data/docs/RecordListResponse.md +22 -0
  264. data/docs/RecordType.md +34 -0
  265. data/docs/RecordTypeListResponse.md +18 -0
  266. data/docs/RecordsApi.md +560 -0
  267. data/docs/RefreshConnectionRequest.md +20 -0
  268. data/docs/Reminder.md +20 -0
  269. data/docs/ReminderMethod.md +15 -0
  270. data/docs/ReplyEmailRequest.md +30 -0
  271. data/docs/RepoApi.md +2071 -0
  272. data/docs/ResourcesApi.md +220 -0
  273. data/docs/RevokeOtherSessionsResponse.md +18 -0
  274. data/docs/RichTextObject.md +24 -0
  275. data/docs/Routine.md +34 -0
  276. data/docs/RoutineListResponse.md +18 -0
  277. data/docs/RoutineRun.md +30 -0
  278. data/docs/RoutineRunCompleteRequest.md +20 -0
  279. data/docs/RoutineRunListResponse.md +18 -0
  280. data/docs/RoutineRunProgressRequest.md +20 -0
  281. data/docs/RoutinesApi.md +696 -0
  282. data/docs/Row.md +20 -0
  283. data/docs/RowList.md +20 -0
  284. data/docs/SaveMessageRequest.md +22 -0
  285. data/docs/SearchApi.md +77 -0
  286. data/docs/SearchEmailsResponse.md +24 -0
  287. data/docs/SearchFilesResponse.md +24 -0
  288. data/docs/SendChatMessageRequest.md +26 -0
  289. data/docs/SendChatMessageResponse.md +28 -0
  290. data/docs/SendEmailRequest.md +36 -0
  291. data/docs/SendEmailResponse.md +26 -0
  292. data/docs/Session.md +38 -0
  293. data/docs/SessionListResponse.md +18 -0
  294. data/docs/SettingsApi.md +745 -0
  295. data/docs/ShareSettings.md +26 -0
  296. data/docs/Sheet.md +48 -0
  297. data/docs/SheetListEnvelope.md +20 -0
  298. data/docs/SheetsApi.md +785 -0
  299. data/docs/SignInMethods.md +22 -0
  300. data/docs/SignInMethodsProvidersInner.md +24 -0
  301. data/docs/Slide.md +44 -0
  302. data/docs/SlideElement.md +40 -0
  303. data/docs/SlideElementList.md +20 -0
  304. data/docs/SlideList.md +20 -0
  305. data/docs/SlidesApi.md +1697 -0
  306. data/docs/SpatioCall.md +38 -0
  307. data/docs/SpatioConnection.md +38 -0
  308. data/docs/SpatioEvent.md +86 -0
  309. data/docs/SpatioFile.md +40 -0
  310. data/docs/SpatioThread.md +24 -0
  311. data/docs/SuccessFlag.md +18 -0
  312. data/docs/Task.md +58 -0
  313. data/docs/TaskComment.md +28 -0
  314. data/docs/TaskCommentAuthor.md +24 -0
  315. data/docs/TaskCommentList.md +20 -0
  316. data/docs/TaskCommentMutationResponse.md +20 -0
  317. data/docs/TaskCommentRequest.md +18 -0
  318. data/docs/TaskListEnvelope.md +20 -0
  319. data/docs/TaskProvidersInfo.md +20 -0
  320. data/docs/TaskProvidersInfoPlatform.md +20 -0
  321. data/docs/TasksApi.md +1783 -0
  322. data/docs/TerminalApi.md +345 -0
  323. data/docs/TextAnnotations.md +28 -0
  324. data/docs/TokenResponse.md +28 -0
  325. data/docs/UpdateAccountRequest.md +20 -0
  326. data/docs/UpdateAgentRequest.md +30 -0
  327. data/docs/UpdateAppRequest.md +24 -0
  328. data/docs/UpdateBlockRequest.md +22 -0
  329. data/docs/UpdateCellRequest.md +18 -0
  330. data/docs/UpdateCommentRequest.md +20 -0
  331. data/docs/UpdateContactCategoryRequest.md +22 -0
  332. data/docs/UpdateContactRequest.md +32 -0
  333. data/docs/UpdateConversationRequest.md +26 -0
  334. data/docs/UpdateDraftRequest.md +32 -0
  335. data/docs/UpdateEmailFolderRequest.md +18 -0
  336. data/docs/UpdateEmailRequest.md +26 -0
  337. data/docs/UpdateEmailResponse.md +20 -0
  338. data/docs/UpdateEventRequest.md +22 -0
  339. data/docs/UpdateFileRequest.md +22 -0
  340. data/docs/UpdateKeyBindingRequest.md +20 -0
  341. data/docs/UpdateMessageMetadataRequest.md +20 -0
  342. data/docs/UpdateNoteRequest.md +30 -0
  343. data/docs/UpdateOrganizationMemberRequest.md +18 -0
  344. data/docs/UpdateOrganizationRequest.md +22 -0
  345. data/docs/UpdatePATRequest.md +20 -0
  346. data/docs/UpdateParticipantStateRequest.md +22 -0
  347. data/docs/UpdatePresentationRequest.md +22 -0
  348. data/docs/UpdateRecommendationStatusRequest.md +18 -0
  349. data/docs/UpdateRecordRequest.md +22 -0
  350. data/docs/UpdateRecordTypeRequest.md +26 -0
  351. data/docs/UpdateRoutineRequest.md +26 -0
  352. data/docs/UpdateRowRequest.md +18 -0
  353. data/docs/UpdateSheetRequest.md +30 -0
  354. data/docs/UpdateSlideElementRequest.md +32 -0
  355. data/docs/UpdateSlideRequest.md +32 -0
  356. data/docs/UpdateTaskRequest.md +34 -0
  357. data/docs/UpdateWorkspaceMemberRequest.md +18 -0
  358. data/docs/UpdateWorkspaceRequest.md +24 -0
  359. data/docs/UploadChunkedBlockResponse.md +24 -0
  360. data/docs/UploadFileBase64Request.md +32 -0
  361. data/docs/UserInfoResponse.md +34 -0
  362. data/docs/ValidateKeyBindingRequest.md +22 -0
  363. data/docs/ValidateKeyBindingResponse.md +20 -0
  364. data/docs/Workspace.md +44 -0
  365. data/docs/WorkspaceEnvelope.md +18 -0
  366. data/docs/WorkspaceInvitation.md +34 -0
  367. data/docs/WorkspaceInvitationListResponse.md +18 -0
  368. data/docs/WorkspaceListResponse.md +20 -0
  369. data/docs/WorkspaceMember.md +30 -0
  370. data/docs/WorkspaceMemberListResponse.md +20 -0
  371. data/docs/WorkspaceOrganization.md +22 -0
  372. data/docs/WorkspacesApi.md +900 -0
  373. data/docs/WriteAppFileRequest.md +20 -0
  374. data/git_push.sh +57 -0
  375. data/lib/spatio-sdk/api/account_api.rb +703 -0
  376. data/lib/spatio-sdk/api/actions_api.rb +381 -0
  377. data/lib/spatio-sdk/api/agents_api.rb +824 -0
  378. data/lib/spatio-sdk/api/apps_api.rb +974 -0
  379. data/lib/spatio-sdk/api/calendar_api.rb +1015 -0
  380. data/lib/spatio-sdk/api/calls_api.rb +2016 -0
  381. data/lib/spatio-sdk/api/channels_api.rb +1165 -0
  382. data/lib/spatio-sdk/api/connections_api.rb +695 -0
  383. data/lib/spatio-sdk/api/contacts_api.rb +801 -0
  384. data/lib/spatio-sdk/api/conversations_api.rb +612 -0
  385. data/lib/spatio-sdk/api/direct_messages_api.rb +2167 -0
  386. data/lib/spatio-sdk/api/files_api.rb +2518 -0
  387. data/lib/spatio-sdk/api/folders_api.rb +409 -0
  388. data/lib/spatio-sdk/api/inbox_api.rb +403 -0
  389. data/lib/spatio-sdk/api/keybindings_api.rb +386 -0
  390. data/lib/spatio-sdk/api/logos_api.rb +210 -0
  391. data/lib/spatio-sdk/api/mail_api.rb +3780 -0
  392. data/lib/spatio-sdk/api/misc_api.rb +1100 -0
  393. data/lib/spatio-sdk/api/models_api.rb +456 -0
  394. data/lib/spatio-sdk/api/native_dm_api.rb +1396 -0
  395. data/lib/spatio-sdk/api/navigation_api.rb +77 -0
  396. data/lib/spatio-sdk/api/notes_api.rb +2418 -0
  397. data/lib/spatio-sdk/api/notifications_api.rb +143 -0
  398. data/lib/spatio-sdk/api/o_auth_api.rb +714 -0
  399. data/lib/spatio-sdk/api/organizations_api.rb +1913 -0
  400. data/lib/spatio-sdk/api/personal_access_tokens_api.rb +625 -0
  401. data/lib/spatio-sdk/api/platforms_api.rb +981 -0
  402. data/lib/spatio-sdk/api/realtime_api.rb +86 -0
  403. data/lib/spatio-sdk/api/recommendations_api.rb +346 -0
  404. data/lib/spatio-sdk/api/records_api.rb +550 -0
  405. data/lib/spatio-sdk/api/repo_api.rb +2167 -0
  406. data/lib/spatio-sdk/api/resources_api.rb +240 -0
  407. data/lib/spatio-sdk/api/routines_api.rb +670 -0
  408. data/lib/spatio-sdk/api/search_api.rb +90 -0
  409. data/lib/spatio-sdk/api/settings_api.rb +706 -0
  410. data/lib/spatio-sdk/api/sheets_api.rb +817 -0
  411. data/lib/spatio-sdk/api/slides_api.rb +1692 -0
  412. data/lib/spatio-sdk/api/tasks_api.rb +1787 -0
  413. data/lib/spatio-sdk/api/terminal_api.rb +337 -0
  414. data/lib/spatio-sdk/api/workspaces_api.rb +876 -0
  415. data/lib/spatio-sdk/api_client.rb +441 -0
  416. data/lib/spatio-sdk/api_error.rb +58 -0
  417. data/lib/spatio-sdk/api_model_base.rb +88 -0
  418. data/lib/spatio-sdk/configuration.rb +393 -0
  419. data/lib/spatio-sdk/models/accept_organization_invitation_request.rb +164 -0
  420. data/lib/spatio-sdk/models/account_choice.rb +200 -0
  421. data/lib/spatio-sdk/models/account_error.rb +191 -0
  422. data/lib/spatio-sdk/models/account_list_response.rb +171 -0
  423. data/lib/spatio-sdk/models/account_plan.rb +228 -0
  424. data/lib/spatio-sdk/models/account_status.rb +273 -0
  425. data/lib/spatio-sdk/models/account_tier_details.rb +291 -0
  426. data/lib/spatio-sdk/models/account_usage.rb +229 -0
  427. data/lib/spatio-sdk/models/action_descriptor.rb +230 -0
  428. data/lib/spatio-sdk/models/add_organization_member_request.rb +216 -0
  429. data/lib/spatio-sdk/models/add_workspace_member_request.rb +214 -0
  430. data/lib/spatio-sdk/models/agent.rb +268 -0
  431. data/lib/spatio-sdk/models/agent_conversation.rb +212 -0
  432. data/lib/spatio-sdk/models/agent_conversation_list_response.rb +175 -0
  433. data/lib/spatio-sdk/models/agent_list_response.rb +179 -0
  434. data/lib/spatio-sdk/models/agent_message.rb +228 -0
  435. data/lib/spatio-sdk/models/agent_message_list_response.rb +175 -0
  436. data/lib/spatio-sdk/models/agent_session_context.rb +185 -0
  437. data/lib/spatio-sdk/models/agent_task_usage.rb +204 -0
  438. data/lib/spatio-sdk/models/ambiguous_account_error.rb +194 -0
  439. data/lib/spatio-sdk/models/api_error.rb +176 -0
  440. data/lib/spatio-sdk/models/app.rb +228 -0
  441. data/lib/spatio-sdk/models/app_file_content_response.rb +173 -0
  442. data/lib/spatio-sdk/models/app_file_list_response.rb +152 -0
  443. data/lib/spatio-sdk/models/app_list_response.rb +161 -0
  444. data/lib/spatio-sdk/models/assign_contact_category_request.rb +164 -0
  445. data/lib/spatio-sdk/models/attachment.rb +217 -0
  446. data/lib/spatio-sdk/models/attachment_input.rb +227 -0
  447. data/lib/spatio-sdk/models/attachment_meta.rb +243 -0
  448. data/lib/spatio-sdk/models/attendee.rb +292 -0
  449. data/lib/spatio-sdk/models/attendee_role.rb +41 -0
  450. data/lib/spatio-sdk/models/attendee_status.rb +42 -0
  451. data/lib/spatio-sdk/models/block.rb +390 -0
  452. data/lib/spatio-sdk/models/block_content.rb +252 -0
  453. data/lib/spatio-sdk/models/block_list_response.rb +193 -0
  454. data/lib/spatio-sdk/models/block_type.rb +61 -0
  455. data/lib/spatio-sdk/models/bulk_archive_request.rb +175 -0
  456. data/lib/spatio-sdk/models/bulk_archive_response.rb +222 -0
  457. data/lib/spatio-sdk/models/bulk_archive_response_failed_inner.rb +190 -0
  458. data/lib/spatio-sdk/models/bulk_delete_emails_request.rb +185 -0
  459. data/lib/spatio-sdk/models/bulk_delete_emails_response.rb +221 -0
  460. data/lib/spatio-sdk/models/bulk_delete_files_request.rb +180 -0
  461. data/lib/spatio-sdk/models/bulk_delete_tasks_request.rb +181 -0
  462. data/lib/spatio-sdk/models/bulk_delete_tasks_response.rb +247 -0
  463. data/lib/spatio-sdk/models/bulk_delete_tasks_response_failed_inner.rb +190 -0
  464. data/lib/spatio-sdk/models/bulk_files_response.rb +247 -0
  465. data/lib/spatio-sdk/models/bulk_files_response_failed_inner.rb +190 -0
  466. data/lib/spatio-sdk/models/bulk_mark_read_request.rb +187 -0
  467. data/lib/spatio-sdk/models/bulk_mark_read_response.rb +194 -0
  468. data/lib/spatio-sdk/models/bulk_mark_read_response_failed_inner.rb +190 -0
  469. data/lib/spatio-sdk/models/bulk_move_files_request.rb +191 -0
  470. data/lib/spatio-sdk/models/bulk_update_tasks_request.rb +213 -0
  471. data/lib/spatio-sdk/models/bulk_update_tasks_response.rb +246 -0
  472. data/lib/spatio-sdk/models/calendar_account_error.rb +242 -0
  473. data/lib/spatio-sdk/models/calendar_capabilities_response.rb +219 -0
  474. data/lib/spatio-sdk/models/calendar_operation_result.rb +198 -0
  475. data/lib/spatio-sdk/models/calendar_provider_info.rb +220 -0
  476. data/lib/spatio-sdk/models/calendar_providers_info.rb +167 -0
  477. data/lib/spatio-sdk/models/calendar_sync_response.rb +222 -0
  478. data/lib/spatio-sdk/models/call_list_response.rb +161 -0
  479. data/lib/spatio-sdk/models/call_recording.rb +222 -0
  480. data/lib/spatio-sdk/models/call_recording_list_response.rb +152 -0
  481. data/lib/spatio-sdk/models/cell.rb +204 -0
  482. data/lib/spatio-sdk/models/change_password_request.rb +174 -0
  483. data/lib/spatio-sdk/models/channel.rb +325 -0
  484. data/lib/spatio-sdk/models/channel_membership_request.rb +148 -0
  485. data/lib/spatio-sdk/models/chat_action_definition.rb +278 -0
  486. data/lib/spatio-sdk/models/chat_actions_list.rb +166 -0
  487. data/lib/spatio-sdk/models/chat_message.rb +317 -0
  488. data/lib/spatio-sdk/models/chat_user.rb +287 -0
  489. data/lib/spatio-sdk/models/chunked_file_manifest.rb +324 -0
  490. data/lib/spatio-sdk/models/client_registration_request.rb +314 -0
  491. data/lib/spatio-sdk/models/client_registration_response.rb +329 -0
  492. data/lib/spatio-sdk/models/comment.rb +315 -0
  493. data/lib/spatio-sdk/models/comment_author.rb +226 -0
  494. data/lib/spatio-sdk/models/comment_list_response.rb +192 -0
  495. data/lib/spatio-sdk/models/comment_mutation_response.rb +191 -0
  496. data/lib/spatio-sdk/models/comment_response.rb +165 -0
  497. data/lib/spatio-sdk/models/commit_chunked_upload_request.rb +164 -0
  498. data/lib/spatio-sdk/models/commit_chunked_upload_response.rb +313 -0
  499. data/lib/spatio-sdk/models/conference_data.rb +229 -0
  500. data/lib/spatio-sdk/models/connected_app_item.rb +308 -0
  501. data/lib/spatio-sdk/models/connected_apps_list_response.rb +166 -0
  502. data/lib/spatio-sdk/models/connection_account_list_response.rb +172 -0
  503. data/lib/spatio-sdk/models/connection_list_response.rb +177 -0
  504. data/lib/spatio-sdk/models/consume_agent_task_response.rb +204 -0
  505. data/lib/spatio-sdk/models/contact.rb +294 -0
  506. data/lib/spatio-sdk/models/contact_category.rb +217 -0
  507. data/lib/spatio-sdk/models/contact_category_list_response.rb +152 -0
  508. data/lib/spatio-sdk/models/contact_list_response.rb +184 -0
  509. data/lib/spatio-sdk/models/contact_provider.rb +217 -0
  510. data/lib/spatio-sdk/models/contact_provider_list_response.rb +166 -0
  511. data/lib/spatio-sdk/models/conversation.rb +314 -0
  512. data/lib/spatio-sdk/models/conversation_message.rb +246 -0
  513. data/lib/spatio-sdk/models/core_action.rb +221 -0
  514. data/lib/spatio-sdk/models/core_action_list_response.rb +161 -0
  515. data/lib/spatio-sdk/models/create_agent_conversation_request.rb +167 -0
  516. data/lib/spatio-sdk/models/create_agent_message_request.rb +201 -0
  517. data/lib/spatio-sdk/models/create_agent_request.rb +222 -0
  518. data/lib/spatio-sdk/models/create_app_request.rb +200 -0
  519. data/lib/spatio-sdk/models/create_block_request.rb +260 -0
  520. data/lib/spatio-sdk/models/create_calendar_event201_response.rb +202 -0
  521. data/lib/spatio-sdk/models/create_call_request.rb +176 -0
  522. data/lib/spatio-sdk/models/create_channel_request.rb +191 -0
  523. data/lib/spatio-sdk/models/create_channel_response.rb +190 -0
  524. data/lib/spatio-sdk/models/create_comment_request.rb +177 -0
  525. data/lib/spatio-sdk/models/create_contact_category_request.rb +182 -0
  526. data/lib/spatio-sdk/models/create_contact_request.rb +212 -0
  527. data/lib/spatio-sdk/models/create_conversation_request.rb +185 -0
  528. data/lib/spatio-sdk/models/create_draft_request.rb +248 -0
  529. data/lib/spatio-sdk/models/create_email_folder_request.rb +173 -0
  530. data/lib/spatio-sdk/models/create_event_request.rb +254 -0
  531. data/lib/spatio-sdk/models/create_folder_request.rb +201 -0
  532. data/lib/spatio-sdk/models/create_label_request.rb +200 -0
  533. data/lib/spatio-sdk/models/create_label_response.rb +190 -0
  534. data/lib/spatio-sdk/models/create_meeting_room_request.rb +173 -0
  535. data/lib/spatio-sdk/models/create_note400_response.rb +104 -0
  536. data/lib/spatio-sdk/models/create_note_request.rb +232 -0
  537. data/lib/spatio-sdk/models/create_organization_invitation_request.rb +224 -0
  538. data/lib/spatio-sdk/models/create_organization_request.rb +211 -0
  539. data/lib/spatio-sdk/models/create_pat_request.rb +202 -0
  540. data/lib/spatio-sdk/models/create_pat_response.rb +174 -0
  541. data/lib/spatio-sdk/models/create_presentation_request.rb +200 -0
  542. data/lib/spatio-sdk/models/create_record_request.rb +204 -0
  543. data/lib/spatio-sdk/models/create_record_type_request.rb +211 -0
  544. data/lib/spatio-sdk/models/create_routine_request.rb +204 -0
  545. data/lib/spatio-sdk/models/create_row_request.rb +176 -0
  546. data/lib/spatio-sdk/models/create_sheet_request.rb +222 -0
  547. data/lib/spatio-sdk/models/create_slide_element_request.rb +229 -0
  548. data/lib/spatio-sdk/models/create_slide_request.rb +220 -0
  549. data/lib/spatio-sdk/models/create_task_request.rb +322 -0
  550. data/lib/spatio-sdk/models/create_workspace_invitation_request.rb +214 -0
  551. data/lib/spatio-sdk/models/create_workspace_request.rb +191 -0
  552. data/lib/spatio-sdk/models/disconnect_connection_request.rb +173 -0
  553. data/lib/spatio-sdk/models/discovery_document.rb +404 -0
  554. data/lib/spatio-sdk/models/dm_attach_request.rb +254 -0
  555. data/lib/spatio-sdk/models/dm_forward_request.rb +166 -0
  556. data/lib/spatio-sdk/models/dm_mark_read_request.rb +173 -0
  557. data/lib/spatio-sdk/models/dm_message_envelope.rb +165 -0
  558. data/lib/spatio-sdk/models/dm_mute_request.rb +166 -0
  559. data/lib/spatio-sdk/models/dm_mute_response.rb +148 -0
  560. data/lib/spatio-sdk/models/dm_pinned_list.rb +149 -0
  561. data/lib/spatio-sdk/models/dm_reaction_request.rb +173 -0
  562. data/lib/spatio-sdk/models/dm_reaction_response.rb +150 -0
  563. data/lib/spatio-sdk/models/dm_search_results.rb +149 -0
  564. data/lib/spatio-sdk/models/dm_set_draft_request.rb +173 -0
  565. data/lib/spatio-sdk/models/dm_thread_reply_request.rb +173 -0
  566. data/lib/spatio-sdk/models/download_file_response.rb +191 -0
  567. data/lib/spatio-sdk/models/draft.rb +339 -0
  568. data/lib/spatio-sdk/models/draft_response.rb +190 -0
  569. data/lib/spatio-sdk/models/email.rb +488 -0
  570. data/lib/spatio-sdk/models/email_folder.rb +202 -0
  571. data/lib/spatio-sdk/models/email_folder_list_response.rb +152 -0
  572. data/lib/spatio-sdk/models/enable_share_request.rb +157 -0
  573. data/lib/spatio-sdk/models/execute_action_request.rb +185 -0
  574. data/lib/spatio-sdk/models/execute_action_response.rb +168 -0
  575. data/lib/spatio-sdk/models/execute_chat_action_request.rb +175 -0
  576. data/lib/spatio-sdk/models/execute_chat_action_response.rb +175 -0
  577. data/lib/spatio-sdk/models/export_pdf_request.rb +162 -0
  578. data/lib/spatio-sdk/models/export_pdf_request_rasterized_slides_inner.rb +191 -0
  579. data/lib/spatio-sdk/models/export_pdfr2_response.rb +269 -0
  580. data/lib/spatio-sdk/models/extract_text_result.rb +212 -0
  581. data/lib/spatio-sdk/models/federated_search200_response.rb +270 -0
  582. data/lib/spatio-sdk/models/federated_search200_response_items_inner.rb +237 -0
  583. data/lib/spatio-sdk/models/federated_search200_response_per_platform_value.rb +156 -0
  584. data/lib/spatio-sdk/models/federated_search_request.rb +276 -0
  585. data/lib/spatio-sdk/models/file_list_envelope.rb +181 -0
  586. data/lib/spatio-sdk/models/files_and_folders_response.rb +235 -0
  587. data/lib/spatio-sdk/models/folder.rb +297 -0
  588. data/lib/spatio-sdk/models/folder_list_envelope.rb +181 -0
  589. data/lib/spatio-sdk/models/get_chat_user_response.rb +190 -0
  590. data/lib/spatio-sdk/models/get_domain_logo200_response.rb +190 -0
  591. data/lib/spatio-sdk/models/get_email_response.rb +190 -0
  592. data/lib/spatio-sdk/models/get_thread_response.rb +190 -0
  593. data/lib/spatio-sdk/models/inbox_counts.rb +216 -0
  594. data/lib/spatio-sdk/models/inbox_item.rb +275 -0
  595. data/lib/spatio-sdk/models/inbox_list_response.rb +218 -0
  596. data/lib/spatio-sdk/models/init_chunked_upload_request.rb +273 -0
  597. data/lib/spatio-sdk/models/init_chunked_upload_response.rb +273 -0
  598. data/lib/spatio-sdk/models/install_connection_request.rb +184 -0
  599. data/lib/spatio-sdk/models/introspection_response.rb +219 -0
  600. data/lib/spatio-sdk/models/issue_collaboration_token200_response.rb +254 -0
  601. data/lib/spatio-sdk/models/issue_collaboration_token_request.rb +148 -0
  602. data/lib/spatio-sdk/models/jwk.rb +297 -0
  603. data/lib/spatio-sdk/models/jwks.rb +166 -0
  604. data/lib/spatio-sdk/models/key_binding.rb +276 -0
  605. data/lib/spatio-sdk/models/key_binding_list_response.rb +166 -0
  606. data/lib/spatio-sdk/models/label.rb +244 -0
  607. data/lib/spatio-sdk/models/label_color.rb +190 -0
  608. data/lib/spatio-sdk/models/link_repo_task_request.rb +164 -0
  609. data/lib/spatio-sdk/models/list_calendar_events200_response.rb +202 -0
  610. data/lib/spatio-sdk/models/list_channels_response.rb +212 -0
  611. data/lib/spatio-sdk/models/list_chat_users_response.rb +211 -0
  612. data/lib/spatio-sdk/models/list_drafts_response.rb +227 -0
  613. data/lib/spatio-sdk/models/list_emails_response.rb +213 -0
  614. data/lib/spatio-sdk/models/list_events_data.rb +196 -0
  615. data/lib/spatio-sdk/models/list_labels_response.rb +192 -0
  616. data/lib/spatio-sdk/models/list_messages_response.rb +211 -0
  617. data/lib/spatio-sdk/models/meeting_room.rb +191 -0
  618. data/lib/spatio-sdk/models/move_block_request.rb +175 -0
  619. data/lib/spatio-sdk/models/move_emails_request.rb +166 -0
  620. data/lib/spatio-sdk/models/move_file_request.rb +149 -0
  621. data/lib/spatio-sdk/models/move_file_response.rb +164 -0
  622. data/lib/spatio-sdk/models/note.rb +380 -0
  623. data/lib/spatio-sdk/models/note_list_envelope.rb +195 -0
  624. data/lib/spatio-sdk/models/o_auth_error.rb +197 -0
  625. data/lib/spatio-sdk/models/organization.rb +346 -0
  626. data/lib/spatio-sdk/models/organization_detail_legacy.rb +377 -0
  627. data/lib/spatio-sdk/models/organization_invitation.rb +343 -0
  628. data/lib/spatio-sdk/models/organization_invitation_list_response.rb +166 -0
  629. data/lib/spatio-sdk/models/organization_list_response.rb +166 -0
  630. data/lib/spatio-sdk/models/organization_member.rb +288 -0
  631. data/lib/spatio-sdk/models/organization_member_invited_by.rb +105 -0
  632. data/lib/spatio-sdk/models/organization_member_list_response.rb +192 -0
  633. data/lib/spatio-sdk/models/organization_workspaces_inner.rb +216 -0
  634. data/lib/spatio-sdk/models/password_required_error.rb +218 -0
  635. data/lib/spatio-sdk/models/pat_list_response.rb +177 -0
  636. data/lib/spatio-sdk/models/pat_scopes_response.rb +166 -0
  637. data/lib/spatio-sdk/models/personal_access_token.rb +241 -0
  638. data/lib/spatio-sdk/models/preconfigured_agent.rb +236 -0
  639. data/lib/spatio-sdk/models/presentation.rb +308 -0
  640. data/lib/spatio-sdk/models/presentation_list_envelope.rb +194 -0
  641. data/lib/spatio-sdk/models/propose_recommendation_request.rb +211 -0
  642. data/lib/spatio-sdk/models/public_invitation_payload.rb +365 -0
  643. data/lib/spatio-sdk/models/quota_exceeded_error.rb +183 -0
  644. data/lib/spatio-sdk/models/recommendation.rb +300 -0
  645. data/lib/spatio-sdk/models/recommendation_list_response.rb +166 -0
  646. data/lib/spatio-sdk/models/record.rb +231 -0
  647. data/lib/spatio-sdk/models/record_list_response.rb +184 -0
  648. data/lib/spatio-sdk/models/record_type.rb +256 -0
  649. data/lib/spatio-sdk/models/record_type_list_response.rb +166 -0
  650. data/lib/spatio-sdk/models/refresh_connection_request.rb +173 -0
  651. data/lib/spatio-sdk/models/reminder.rb +213 -0
  652. data/lib/spatio-sdk/models/reminder_method.rb +42 -0
  653. data/lib/spatio-sdk/models/reply_email_request.rb +227 -0
  654. data/lib/spatio-sdk/models/revoke_other_sessions_response.rb +148 -0
  655. data/lib/spatio-sdk/models/rich_text_object.rb +216 -0
  656. data/lib/spatio-sdk/models/routine.rb +240 -0
  657. data/lib/spatio-sdk/models/routine_list_response.rb +166 -0
  658. data/lib/spatio-sdk/models/routine_run.rb +221 -0
  659. data/lib/spatio-sdk/models/routine_run_complete_request.rb +158 -0
  660. data/lib/spatio-sdk/models/routine_run_list_response.rb +166 -0
  661. data/lib/spatio-sdk/models/routine_run_progress_request.rb +158 -0
  662. data/lib/spatio-sdk/models/row.rb +194 -0
  663. data/lib/spatio-sdk/models/row_list.rb +192 -0
  664. data/lib/spatio-sdk/models/save_message_request.rb +201 -0
  665. data/lib/spatio-sdk/models/search_emails_response.rb +212 -0
  666. data/lib/spatio-sdk/models/search_files_response.rb +229 -0
  667. data/lib/spatio-sdk/models/send_chat_message_request.rb +221 -0
  668. data/lib/spatio-sdk/models/send_chat_message_response.rb +243 -0
  669. data/lib/spatio-sdk/models/send_email_request.rb +289 -0
  670. data/lib/spatio-sdk/models/send_email_response.rb +234 -0
  671. data/lib/spatio-sdk/models/session.rb +254 -0
  672. data/lib/spatio-sdk/models/session_list_response.rb +166 -0
  673. data/lib/spatio-sdk/models/share_settings.rb +221 -0
  674. data/lib/spatio-sdk/models/sheet.rb +446 -0
  675. data/lib/spatio-sdk/models/sheet_list_envelope.rb +195 -0
  676. data/lib/spatio-sdk/models/sign_in_methods.rb +201 -0
  677. data/lib/spatio-sdk/models/sign_in_methods_providers_inner.rb +193 -0
  678. data/lib/spatio-sdk/models/slide.rb +370 -0
  679. data/lib/spatio-sdk/models/slide_element.rb +455 -0
  680. data/lib/spatio-sdk/models/slide_element_list.rb +192 -0
  681. data/lib/spatio-sdk/models/slide_list.rb +192 -0
  682. data/lib/spatio-sdk/models/spatio_call.rb +259 -0
  683. data/lib/spatio-sdk/models/spatio_connection.rb +260 -0
  684. data/lib/spatio-sdk/models/spatio_event.rb +686 -0
  685. data/lib/spatio-sdk/models/spatio_file.rb +372 -0
  686. data/lib/spatio-sdk/models/spatio_thread.rb +212 -0
  687. data/lib/spatio-sdk/models/success_flag.rb +165 -0
  688. data/lib/spatio-sdk/models/task.rb +471 -0
  689. data/lib/spatio-sdk/models/task_comment.rb +294 -0
  690. data/lib/spatio-sdk/models/task_comment_author.rb +226 -0
  691. data/lib/spatio-sdk/models/task_comment_list.rb +192 -0
  692. data/lib/spatio-sdk/models/task_comment_mutation_response.rb +190 -0
  693. data/lib/spatio-sdk/models/task_comment_request.rb +164 -0
  694. data/lib/spatio-sdk/models/task_list_envelope.rb +195 -0
  695. data/lib/spatio-sdk/models/task_providers_info.rb +194 -0
  696. data/lib/spatio-sdk/models/task_providers_info_platform.rb +190 -0
  697. data/lib/spatio-sdk/models/text_annotations.rb +278 -0
  698. data/lib/spatio-sdk/models/token_response.rb +246 -0
  699. data/lib/spatio-sdk/models/update_account_request.rb +158 -0
  700. data/lib/spatio-sdk/models/update_agent_request.rb +205 -0
  701. data/lib/spatio-sdk/models/update_app_request.rb +174 -0
  702. data/lib/spatio-sdk/models/update_block_request.rb +168 -0
  703. data/lib/spatio-sdk/models/update_cell_request.rb +151 -0
  704. data/lib/spatio-sdk/models/update_comment_request.rb +157 -0
  705. data/lib/spatio-sdk/models/update_contact_category_request.rb +165 -0
  706. data/lib/spatio-sdk/models/update_contact_request.rb +212 -0
  707. data/lib/spatio-sdk/models/update_conversation_request.rb +183 -0
  708. data/lib/spatio-sdk/models/update_draft_request.rb +219 -0
  709. data/lib/spatio-sdk/models/update_email_folder_request.rb +147 -0
  710. data/lib/spatio-sdk/models/update_email_request.rb +188 -0
  711. data/lib/spatio-sdk/models/update_email_response.rb +190 -0
  712. data/lib/spatio-sdk/models/update_event_request.rb +236 -0
  713. data/lib/spatio-sdk/models/update_file_request.rb +169 -0
  714. data/lib/spatio-sdk/models/update_key_binding_request.rb +175 -0
  715. data/lib/spatio-sdk/models/update_message_metadata_request.rb +175 -0
  716. data/lib/spatio-sdk/models/update_note_request.rb +205 -0
  717. data/lib/spatio-sdk/models/update_organization_member_request.rb +188 -0
  718. data/lib/spatio-sdk/models/update_organization_request.rb +166 -0
  719. data/lib/spatio-sdk/models/update_participant_state_request.rb +166 -0
  720. data/lib/spatio-sdk/models/update_pat_request.rb +156 -0
  721. data/lib/spatio-sdk/models/update_presentation_request.rb +166 -0
  722. data/lib/spatio-sdk/models/update_recommendation_status_request.rb +188 -0
  723. data/lib/spatio-sdk/models/update_record_request.rb +169 -0
  724. data/lib/spatio-sdk/models/update_record_type_request.rb +185 -0
  725. data/lib/spatio-sdk/models/update_routine_request.rb +187 -0
  726. data/lib/spatio-sdk/models/update_row_request.rb +167 -0
  727. data/lib/spatio-sdk/models/update_sheet_request.rb +205 -0
  728. data/lib/spatio-sdk/models/update_slide_element_request.rb +213 -0
  729. data/lib/spatio-sdk/models/update_slide_request.rb +211 -0
  730. data/lib/spatio-sdk/models/update_task_request.rb +260 -0
  731. data/lib/spatio-sdk/models/update_workspace_member_request.rb +188 -0
  732. data/lib/spatio-sdk/models/update_workspace_request.rb +176 -0
  733. data/lib/spatio-sdk/models/upload_chunked_block_response.rb +243 -0
  734. data/lib/spatio-sdk/models/upload_file_base64_request.rb +265 -0
  735. data/lib/spatio-sdk/models/user_info_response.rb +237 -0
  736. data/lib/spatio-sdk/models/validate_key_binding_request.rb +201 -0
  737. data/lib/spatio-sdk/models/validate_key_binding_response.rb +175 -0
  738. data/lib/spatio-sdk/models/workspace.rb +321 -0
  739. data/lib/spatio-sdk/models/workspace_envelope.rb +164 -0
  740. data/lib/spatio-sdk/models/workspace_invitation.rb +324 -0
  741. data/lib/spatio-sdk/models/workspace_invitation_list_response.rb +166 -0
  742. data/lib/spatio-sdk/models/workspace_list_response.rb +175 -0
  743. data/lib/spatio-sdk/models/workspace_member.rb +278 -0
  744. data/lib/spatio-sdk/models/workspace_member_list_response.rb +175 -0
  745. data/lib/spatio-sdk/models/workspace_organization.rb +166 -0
  746. data/lib/spatio-sdk/models/write_app_file_request.rb +190 -0
  747. data/lib/spatio-sdk/version.rb +15 -0
  748. data/lib/spatio-sdk.rb +408 -0
  749. data/spatio-sdk.gemspec +41 -0
  750. data/spec/api/account_api_spec.rb +158 -0
  751. data/spec/api/actions_api_spec.rb +99 -0
  752. data/spec/api/agents_api_spec.rb +176 -0
  753. data/spec/api/apps_api_spec.rb +198 -0
  754. data/spec/api/calendar_api_spec.rb +217 -0
  755. data/spec/api/calls_api_spec.rb +378 -0
  756. data/spec/api/channels_api_spec.rb +236 -0
  757. data/spec/api/connections_api_spec.rb +154 -0
  758. data/spec/api/contacts_api_spec.rb +172 -0
  759. data/spec/api/conversations_api_spec.rb +140 -0
  760. data/spec/api/direct_messages_api_spec.rb +420 -0
  761. data/spec/api/files_api_spec.rb +494 -0
  762. data/spec/api/folders_api_spec.rb +102 -0
  763. data/spec/api/inbox_api_spec.rb +103 -0
  764. data/spec/api/keybindings_api_spec.rb +99 -0
  765. data/spec/api/logos_api_spec.rb +68 -0
  766. data/spec/api/mail_api_spec.rb +701 -0
  767. data/spec/api/misc_api_spec.rb +228 -0
  768. data/spec/api/models_api_spec.rb +112 -0
  769. data/spec/api/native_dm_api_spec.rb +276 -0
  770. data/spec/api/navigation_api_spec.rb +45 -0
  771. data/spec/api/notes_api_spec.rb +474 -0
  772. data/spec/api/notifications_api_spec.rb +56 -0
  773. data/spec/api/o_auth_api_spec.rb +161 -0
  774. data/spec/api/organizations_api_spec.rb +367 -0
  775. data/spec/api/personal_access_tokens_api_spec.rb +137 -0
  776. data/spec/api/platforms_api_spec.rb +204 -0
  777. data/spec/api/realtime_api_spec.rb +47 -0
  778. data/spec/api/recommendations_api_spec.rb +93 -0
  779. data/spec/api/records_api_spec.rb +127 -0
  780. data/spec/api/repo_api_spec.rb +402 -0
  781. data/spec/api/resources_api_spec.rb +73 -0
  782. data/spec/api/routines_api_spec.rb +149 -0
  783. data/spec/api/search_api_spec.rb +47 -0
  784. data/spec/api/settings_api_spec.rb +154 -0
  785. data/spec/api/sheets_api_spec.rb +184 -0
  786. data/spec/api/slides_api_spec.rb +355 -0
  787. data/spec/api/tasks_api_spec.rb +355 -0
  788. data/spec/api/terminal_api_spec.rb +90 -0
  789. data/spec/api/workspaces_api_spec.rb +184 -0
  790. data/spec/models/accept_organization_invitation_request_spec.rb +36 -0
  791. data/spec/models/account_choice_spec.rb +48 -0
  792. data/spec/models/account_error_spec.rb +42 -0
  793. data/spec/models/account_list_response_spec.rb +48 -0
  794. data/spec/models/account_plan_spec.rb +54 -0
  795. data/spec/models/account_status_spec.rb +70 -0
  796. data/spec/models/account_tier_details_spec.rb +120 -0
  797. data/spec/models/account_usage_spec.rb +78 -0
  798. data/spec/models/action_descriptor_spec.rb +78 -0
  799. data/spec/models/add_organization_member_request_spec.rb +52 -0
  800. data/spec/models/add_workspace_member_request_spec.rb +46 -0
  801. data/spec/models/agent_conversation_list_response_spec.rb +42 -0
  802. data/spec/models/agent_conversation_spec.rb +66 -0
  803. data/spec/models/agent_list_response_spec.rb +54 -0
  804. data/spec/models/agent_message_list_response_spec.rb +42 -0
  805. data/spec/models/agent_message_spec.rb +66 -0
  806. data/spec/models/agent_session_context_spec.rb +54 -0
  807. data/spec/models/agent_spec.rb +102 -0
  808. data/spec/models/agent_task_usage_spec.rb +60 -0
  809. data/spec/models/ambiguous_account_error_spec.rb +48 -0
  810. data/spec/models/api_error_spec.rb +42 -0
  811. data/spec/models/app_file_content_response_spec.rb +42 -0
  812. data/spec/models/app_file_list_response_spec.rb +36 -0
  813. data/spec/models/app_list_response_spec.rb +42 -0
  814. data/spec/models/app_spec.rb +78 -0
  815. data/spec/models/assign_contact_category_request_spec.rb +36 -0
  816. data/spec/models/attachment_input_spec.rb +54 -0
  817. data/spec/models/attachment_meta_spec.rb +54 -0
  818. data/spec/models/attachment_spec.rb +60 -0
  819. data/spec/models/attendee_role_spec.rb +30 -0
  820. data/spec/models/attendee_spec.rb +72 -0
  821. data/spec/models/attendee_status_spec.rb +30 -0
  822. data/spec/models/block_content_spec.rb +96 -0
  823. data/spec/models/block_list_response_spec.rb +42 -0
  824. data/spec/models/block_spec.rb +90 -0
  825. data/spec/models/block_type_spec.rb +30 -0
  826. data/spec/models/bulk_archive_request_spec.rb +42 -0
  827. data/spec/models/bulk_archive_response_failed_inner_spec.rb +42 -0
  828. data/spec/models/bulk_archive_response_spec.rb +48 -0
  829. data/spec/models/bulk_delete_emails_request_spec.rb +48 -0
  830. data/spec/models/bulk_delete_emails_response_spec.rb +48 -0
  831. data/spec/models/bulk_delete_files_request_spec.rb +54 -0
  832. data/spec/models/bulk_delete_tasks_request_spec.rb +54 -0
  833. data/spec/models/bulk_delete_tasks_response_failed_inner_spec.rb +42 -0
  834. data/spec/models/bulk_delete_tasks_response_spec.rb +54 -0
  835. data/spec/models/bulk_files_response_failed_inner_spec.rb +42 -0
  836. data/spec/models/bulk_files_response_spec.rb +54 -0
  837. data/spec/models/bulk_mark_read_request_spec.rb +48 -0
  838. data/spec/models/bulk_mark_read_response_failed_inner_spec.rb +42 -0
  839. data/spec/models/bulk_mark_read_response_spec.rb +42 -0
  840. data/spec/models/bulk_move_files_request_spec.rb +60 -0
  841. data/spec/models/bulk_update_tasks_request_spec.rb +54 -0
  842. data/spec/models/bulk_update_tasks_response_spec.rb +54 -0
  843. data/spec/models/calendar_account_error_spec.rb +54 -0
  844. data/spec/models/calendar_capabilities_response_spec.rb +48 -0
  845. data/spec/models/calendar_operation_result_spec.rb +54 -0
  846. data/spec/models/calendar_provider_info_spec.rb +60 -0
  847. data/spec/models/calendar_providers_info_spec.rb +36 -0
  848. data/spec/models/calendar_sync_response_spec.rb +60 -0
  849. data/spec/models/call_list_response_spec.rb +42 -0
  850. data/spec/models/call_recording_list_response_spec.rb +36 -0
  851. data/spec/models/call_recording_spec.rb +72 -0
  852. data/spec/models/cell_spec.rb +48 -0
  853. data/spec/models/change_password_request_spec.rb +42 -0
  854. data/spec/models/channel_membership_request_spec.rb +36 -0
  855. data/spec/models/channel_spec.rb +96 -0
  856. data/spec/models/chat_action_definition_spec.rb +84 -0
  857. data/spec/models/chat_actions_list_spec.rb +36 -0
  858. data/spec/models/chat_message_spec.rb +90 -0
  859. data/spec/models/chat_user_spec.rb +84 -0
  860. data/spec/models/chunked_file_manifest_spec.rb +84 -0
  861. data/spec/models/client_registration_request_spec.rb +94 -0
  862. data/spec/models/client_registration_response_spec.rb +96 -0
  863. data/spec/models/comment_author_spec.rb +54 -0
  864. data/spec/models/comment_list_response_spec.rb +42 -0
  865. data/spec/models/comment_mutation_response_spec.rb +42 -0
  866. data/spec/models/comment_response_spec.rb +36 -0
  867. data/spec/models/comment_spec.rb +78 -0
  868. data/spec/models/commit_chunked_upload_request_spec.rb +36 -0
  869. data/spec/models/commit_chunked_upload_response_spec.rb +90 -0
  870. data/spec/models/conference_data_spec.rb +66 -0
  871. data/spec/models/connected_app_item_spec.rb +84 -0
  872. data/spec/models/connected_apps_list_response_spec.rb +36 -0
  873. data/spec/models/connection_account_list_response_spec.rb +48 -0
  874. data/spec/models/connection_list_response_spec.rb +42 -0
  875. data/spec/models/consume_agent_task_response_spec.rb +60 -0
  876. data/spec/models/contact_category_list_response_spec.rb +36 -0
  877. data/spec/models/contact_category_spec.rb +60 -0
  878. data/spec/models/contact_list_response_spec.rb +48 -0
  879. data/spec/models/contact_provider_list_response_spec.rb +36 -0
  880. data/spec/models/contact_provider_spec.rb +60 -0
  881. data/spec/models/contact_spec.rb +120 -0
  882. data/spec/models/conversation_message_spec.rb +66 -0
  883. data/spec/models/conversation_spec.rb +108 -0
  884. data/spec/models/core_action_list_response_spec.rb +42 -0
  885. data/spec/models/core_action_spec.rb +72 -0
  886. data/spec/models/create_agent_conversation_request_spec.rb +48 -0
  887. data/spec/models/create_agent_message_request_spec.rb +48 -0
  888. data/spec/models/create_agent_request_spec.rb +72 -0
  889. data/spec/models/create_app_request_spec.rb +60 -0
  890. data/spec/models/create_block_request_spec.rb +60 -0
  891. data/spec/models/create_calendar_event201_response_spec.rb +54 -0
  892. data/spec/models/create_call_request_spec.rb +54 -0
  893. data/spec/models/create_channel_request_spec.rb +54 -0
  894. data/spec/models/create_channel_response_spec.rb +42 -0
  895. data/spec/models/create_comment_request_spec.rb +54 -0
  896. data/spec/models/create_contact_category_request_spec.rb +48 -0
  897. data/spec/models/create_contact_request_spec.rb +78 -0
  898. data/spec/models/create_conversation_request_spec.rb +60 -0
  899. data/spec/models/create_draft_request_spec.rb +96 -0
  900. data/spec/models/create_email_folder_request_spec.rb +42 -0
  901. data/spec/models/create_event_request_spec.rb +64 -0
  902. data/spec/models/create_folder_request_spec.rb +60 -0
  903. data/spec/models/create_label_request_spec.rb +60 -0
  904. data/spec/models/create_label_response_spec.rb +42 -0
  905. data/spec/models/create_meeting_room_request_spec.rb +42 -0
  906. data/spec/models/create_note400_response_spec.rb +32 -0
  907. data/spec/models/create_note_request_spec.rb +78 -0
  908. data/spec/models/create_organization_invitation_request_spec.rb +52 -0
  909. data/spec/models/create_organization_request_spec.rb +66 -0
  910. data/spec/models/create_pat_request_spec.rb +60 -0
  911. data/spec/models/create_pat_response_spec.rb +42 -0
  912. data/spec/models/create_presentation_request_spec.rb +60 -0
  913. data/spec/models/create_record_request_spec.rb +60 -0
  914. data/spec/models/create_record_type_request_spec.rb +66 -0
  915. data/spec/models/create_routine_request_spec.rb +60 -0
  916. data/spec/models/create_row_request_spec.rb +42 -0
  917. data/spec/models/create_sheet_request_spec.rb +72 -0
  918. data/spec/models/create_slide_element_request_spec.rb +78 -0
  919. data/spec/models/create_slide_request_spec.rb +84 -0
  920. data/spec/models/create_task_request_spec.rb +118 -0
  921. data/spec/models/create_workspace_invitation_request_spec.rb +46 -0
  922. data/spec/models/create_workspace_request_spec.rb +54 -0
  923. data/spec/models/disconnect_connection_request_spec.rb +42 -0
  924. data/spec/models/discovery_document_spec.rb +138 -0
  925. data/spec/models/dm_attach_request_spec.rb +84 -0
  926. data/spec/models/dm_forward_request_spec.rb +48 -0
  927. data/spec/models/dm_mark_read_request_spec.rb +42 -0
  928. data/spec/models/dm_message_envelope_spec.rb +36 -0
  929. data/spec/models/dm_mute_request_spec.rb +48 -0
  930. data/spec/models/dm_mute_response_spec.rb +36 -0
  931. data/spec/models/dm_pinned_list_spec.rb +36 -0
  932. data/spec/models/dm_reaction_request_spec.rb +42 -0
  933. data/spec/models/dm_reaction_response_spec.rb +36 -0
  934. data/spec/models/dm_search_results_spec.rb +36 -0
  935. data/spec/models/dm_set_draft_request_spec.rb +42 -0
  936. data/spec/models/dm_thread_reply_request_spec.rb +42 -0
  937. data/spec/models/download_file_response_spec.rb +42 -0
  938. data/spec/models/draft_response_spec.rb +42 -0
  939. data/spec/models/draft_spec.rb +102 -0
  940. data/spec/models/email_folder_list_response_spec.rb +36 -0
  941. data/spec/models/email_folder_spec.rb +60 -0
  942. data/spec/models/email_spec.rb +150 -0
  943. data/spec/models/enable_share_request_spec.rb +42 -0
  944. data/spec/models/execute_action_request_spec.rb +48 -0
  945. data/spec/models/execute_action_response_spec.rb +48 -0
  946. data/spec/models/execute_chat_action_request_spec.rb +42 -0
  947. data/spec/models/execute_chat_action_response_spec.rb +42 -0
  948. data/spec/models/export_pdf_request_rasterized_slides_inner_spec.rb +42 -0
  949. data/spec/models/export_pdf_request_spec.rb +42 -0
  950. data/spec/models/export_pdfr2_response_spec.rb +58 -0
  951. data/spec/models/extract_text_result_spec.rb +54 -0
  952. data/spec/models/federated_search200_response_items_inner_spec.rb +96 -0
  953. data/spec/models/federated_search200_response_per_platform_value_spec.rb +42 -0
  954. data/spec/models/federated_search200_response_spec.rb +66 -0
  955. data/spec/models/federated_search_request_spec.rb +82 -0
  956. data/spec/models/file_list_envelope_spec.rb +42 -0
  957. data/spec/models/files_and_folders_response_spec.rb +66 -0
  958. data/spec/models/folder_list_envelope_spec.rb +42 -0
  959. data/spec/models/folder_spec.rb +78 -0
  960. data/spec/models/get_chat_user_response_spec.rb +42 -0
  961. data/spec/models/get_domain_logo200_response_spec.rb +42 -0
  962. data/spec/models/get_email_response_spec.rb +42 -0
  963. data/spec/models/get_thread_response_spec.rb +42 -0
  964. data/spec/models/inbox_counts_spec.rb +48 -0
  965. data/spec/models/inbox_item_spec.rb +96 -0
  966. data/spec/models/inbox_list_response_spec.rb +48 -0
  967. data/spec/models/init_chunked_upload_request_spec.rb +72 -0
  968. data/spec/models/init_chunked_upload_response_spec.rb +60 -0
  969. data/spec/models/install_connection_request_spec.rb +48 -0
  970. data/spec/models/introspection_response_spec.rb +72 -0
  971. data/spec/models/issue_collaboration_token200_response_spec.rb +60 -0
  972. data/spec/models/issue_collaboration_token_request_spec.rb +36 -0
  973. data/spec/models/jwk_spec.rb +66 -0
  974. data/spec/models/jwks_spec.rb +36 -0
  975. data/spec/models/key_binding_list_response_spec.rb +36 -0
  976. data/spec/models/key_binding_spec.rb +96 -0
  977. data/spec/models/label_color_spec.rb +42 -0
  978. data/spec/models/label_spec.rb +66 -0
  979. data/spec/models/link_repo_task_request_spec.rb +36 -0
  980. data/spec/models/list_calendar_events200_response_spec.rb +54 -0
  981. data/spec/models/list_channels_response_spec.rb +54 -0
  982. data/spec/models/list_chat_users_response_spec.rb +54 -0
  983. data/spec/models/list_drafts_response_spec.rb +54 -0
  984. data/spec/models/list_emails_response_spec.rb +54 -0
  985. data/spec/models/list_events_data_spec.rb +54 -0
  986. data/spec/models/list_labels_response_spec.rb +42 -0
  987. data/spec/models/list_messages_response_spec.rb +54 -0
  988. data/spec/models/meeting_room_spec.rb +54 -0
  989. data/spec/models/move_block_request_spec.rb +42 -0
  990. data/spec/models/move_emails_request_spec.rb +36 -0
  991. data/spec/models/move_file_request_spec.rb +36 -0
  992. data/spec/models/move_file_response_spec.rb +36 -0
  993. data/spec/models/note_list_envelope_spec.rb +42 -0
  994. data/spec/models/note_spec.rb +114 -0
  995. data/spec/models/o_auth_error_spec.rb +46 -0
  996. data/spec/models/organization_detail_legacy_spec.rb +96 -0
  997. data/spec/models/organization_invitation_list_response_spec.rb +36 -0
  998. data/spec/models/organization_invitation_spec.rb +100 -0
  999. data/spec/models/organization_list_response_spec.rb +36 -0
  1000. data/spec/models/organization_member_invited_by_spec.rb +32 -0
  1001. data/spec/models/organization_member_list_response_spec.rb +42 -0
  1002. data/spec/models/organization_member_spec.rb +70 -0
  1003. data/spec/models/organization_spec.rb +96 -0
  1004. data/spec/models/organization_workspaces_inner_spec.rb +48 -0
  1005. data/spec/models/password_required_error_spec.rb +54 -0
  1006. data/spec/models/pat_list_response_spec.rb +42 -0
  1007. data/spec/models/pat_scopes_response_spec.rb +36 -0
  1008. data/spec/models/personal_access_token_spec.rb +84 -0
  1009. data/spec/models/preconfigured_agent_spec.rb +72 -0
  1010. data/spec/models/presentation_list_envelope_spec.rb +42 -0
  1011. data/spec/models/presentation_spec.rb +96 -0
  1012. data/spec/models/propose_recommendation_request_spec.rb +66 -0
  1013. data/spec/models/public_invitation_payload_spec.rb +110 -0
  1014. data/spec/models/quota_exceeded_error_spec.rb +42 -0
  1015. data/spec/models/recommendation_list_response_spec.rb +36 -0
  1016. data/spec/models/recommendation_spec.rb +100 -0
  1017. data/spec/models/record_list_response_spec.rb +48 -0
  1018. data/spec/models/record_spec.rb +78 -0
  1019. data/spec/models/record_type_list_response_spec.rb +36 -0
  1020. data/spec/models/record_type_spec.rb +84 -0
  1021. data/spec/models/refresh_connection_request_spec.rb +42 -0
  1022. data/spec/models/reminder_method_spec.rb +30 -0
  1023. data/spec/models/reminder_spec.rb +42 -0
  1024. data/spec/models/reply_email_request_spec.rb +72 -0
  1025. data/spec/models/revoke_other_sessions_response_spec.rb +36 -0
  1026. data/spec/models/rich_text_object_spec.rb +58 -0
  1027. data/spec/models/routine_list_response_spec.rb +36 -0
  1028. data/spec/models/routine_run_complete_request_spec.rb +42 -0
  1029. data/spec/models/routine_run_list_response_spec.rb +36 -0
  1030. data/spec/models/routine_run_progress_request_spec.rb +42 -0
  1031. data/spec/models/routine_run_spec.rb +72 -0
  1032. data/spec/models/routine_spec.rb +84 -0
  1033. data/spec/models/row_list_spec.rb +42 -0
  1034. data/spec/models/row_spec.rb +42 -0
  1035. data/spec/models/save_message_request_spec.rb +48 -0
  1036. data/spec/models/search_emails_response_spec.rb +54 -0
  1037. data/spec/models/search_files_response_spec.rb +54 -0
  1038. data/spec/models/send_chat_message_request_spec.rb +60 -0
  1039. data/spec/models/send_chat_message_response_spec.rb +66 -0
  1040. data/spec/models/send_email_request_spec.rb +90 -0
  1041. data/spec/models/send_email_response_spec.rb +60 -0
  1042. data/spec/models/session_list_response_spec.rb +36 -0
  1043. data/spec/models/session_spec.rb +96 -0
  1044. data/spec/models/share_settings_spec.rb +60 -0
  1045. data/spec/models/sheet_list_envelope_spec.rb +42 -0
  1046. data/spec/models/sheet_spec.rb +126 -0
  1047. data/spec/models/sign_in_methods_providers_inner_spec.rb +54 -0
  1048. data/spec/models/sign_in_methods_spec.rb +48 -0
  1049. data/spec/models/slide_element_list_spec.rb +42 -0
  1050. data/spec/models/slide_element_spec.rb +102 -0
  1051. data/spec/models/slide_list_spec.rb +42 -0
  1052. data/spec/models/slide_spec.rb +114 -0
  1053. data/spec/models/spatio_call_spec.rb +96 -0
  1054. data/spec/models/spatio_connection_spec.rb +96 -0
  1055. data/spec/models/spatio_event_spec.rb +240 -0
  1056. data/spec/models/spatio_file_spec.rb +102 -0
  1057. data/spec/models/spatio_thread_spec.rb +54 -0
  1058. data/spec/models/success_flag_spec.rb +36 -0
  1059. data/spec/models/task_comment_author_spec.rb +54 -0
  1060. data/spec/models/task_comment_list_spec.rb +42 -0
  1061. data/spec/models/task_comment_mutation_response_spec.rb +42 -0
  1062. data/spec/models/task_comment_request_spec.rb +36 -0
  1063. data/spec/models/task_comment_spec.rb +66 -0
  1064. data/spec/models/task_list_envelope_spec.rb +42 -0
  1065. data/spec/models/task_providers_info_platform_spec.rb +42 -0
  1066. data/spec/models/task_providers_info_spec.rb +42 -0
  1067. data/spec/models/task_spec.rb +160 -0
  1068. data/spec/models/text_annotations_spec.rb +66 -0
  1069. data/spec/models/token_response_spec.rb +66 -0
  1070. data/spec/models/update_account_request_spec.rb +42 -0
  1071. data/spec/models/update_agent_request_spec.rb +72 -0
  1072. data/spec/models/update_app_request_spec.rb +54 -0
  1073. data/spec/models/update_block_request_spec.rb +48 -0
  1074. data/spec/models/update_cell_request_spec.rb +36 -0
  1075. data/spec/models/update_comment_request_spec.rb +42 -0
  1076. data/spec/models/update_contact_category_request_spec.rb +48 -0
  1077. data/spec/models/update_contact_request_spec.rb +78 -0
  1078. data/spec/models/update_conversation_request_spec.rb +60 -0
  1079. data/spec/models/update_draft_request_spec.rb +78 -0
  1080. data/spec/models/update_email_folder_request_spec.rb +36 -0
  1081. data/spec/models/update_email_request_spec.rb +60 -0
  1082. data/spec/models/update_email_response_spec.rb +42 -0
  1083. data/spec/models/update_event_request_spec.rb +52 -0
  1084. data/spec/models/update_file_request_spec.rb +48 -0
  1085. data/spec/models/update_key_binding_request_spec.rb +42 -0
  1086. data/spec/models/update_message_metadata_request_spec.rb +42 -0
  1087. data/spec/models/update_note_request_spec.rb +72 -0
  1088. data/spec/models/update_organization_member_request_spec.rb +40 -0
  1089. data/spec/models/update_organization_request_spec.rb +48 -0
  1090. data/spec/models/update_participant_state_request_spec.rb +48 -0
  1091. data/spec/models/update_pat_request_spec.rb +42 -0
  1092. data/spec/models/update_presentation_request_spec.rb +48 -0
  1093. data/spec/models/update_recommendation_status_request_spec.rb +40 -0
  1094. data/spec/models/update_record_request_spec.rb +48 -0
  1095. data/spec/models/update_record_type_request_spec.rb +60 -0
  1096. data/spec/models/update_routine_request_spec.rb +60 -0
  1097. data/spec/models/update_row_request_spec.rb +36 -0
  1098. data/spec/models/update_sheet_request_spec.rb +72 -0
  1099. data/spec/models/update_slide_element_request_spec.rb +78 -0
  1100. data/spec/models/update_slide_request_spec.rb +78 -0
  1101. data/spec/models/update_task_request_spec.rb +88 -0
  1102. data/spec/models/update_workspace_member_request_spec.rb +40 -0
  1103. data/spec/models/update_workspace_request_spec.rb +54 -0
  1104. data/spec/models/upload_chunked_block_response_spec.rb +54 -0
  1105. data/spec/models/upload_file_base64_request_spec.rb +78 -0
  1106. data/spec/models/user_info_response_spec.rb +84 -0
  1107. data/spec/models/validate_key_binding_request_spec.rb +48 -0
  1108. data/spec/models/validate_key_binding_response_spec.rb +42 -0
  1109. data/spec/models/workspace_envelope_spec.rb +36 -0
  1110. data/spec/models/workspace_invitation_list_response_spec.rb +36 -0
  1111. data/spec/models/workspace_invitation_spec.rb +88 -0
  1112. data/spec/models/workspace_list_response_spec.rb +42 -0
  1113. data/spec/models/workspace_member_list_response_spec.rb +42 -0
  1114. data/spec/models/workspace_member_spec.rb +76 -0
  1115. data/spec/models/workspace_organization_spec.rb +48 -0
  1116. data/spec/models/workspace_spec.rb +114 -0
  1117. data/spec/models/write_app_file_request_spec.rb +42 -0
  1118. data/spec/spec_helper.rb +111 -0
  1119. metadata +1597 -0
@@ -0,0 +1,2418 @@
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 NotesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Insert a block in a note.
23
+ # @param id [String] Note id.
24
+ # @param create_block_request [CreateBlockRequest]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :account_id Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive with `provider`. If omitted on a list endpoint the call fans out across every connected account.
27
+ # @option opts [String] :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.
28
+ # @return [Block]
29
+ def create_block(id, create_block_request, opts = {})
30
+ data, _status_code, _headers = create_block_with_http_info(id, create_block_request, opts)
31
+ data
32
+ end
33
+
34
+ # Insert a block in a note.
35
+ # @param id [String] Note id.
36
+ # @param create_block_request [CreateBlockRequest]
37
+ # @param [Hash] opts the optional parameters
38
+ # @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.
39
+ # @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.
40
+ # @return [Array<(Block, Integer, Hash)>] Block data, response status code and response headers
41
+ def create_block_with_http_info(id, create_block_request, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: NotesApi.create_block ...'
44
+ end
45
+ # verify the required parameter 'id' is set
46
+ if @api_client.config.client_side_validation && id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.create_block"
48
+ end
49
+ # verify the required parameter 'create_block_request' is set
50
+ if @api_client.config.client_side_validation && create_block_request.nil?
51
+ fail ArgumentError, "Missing the required parameter 'create_block_request' when calling NotesApi.create_block"
52
+ end
53
+ # resource path
54
+ local_var_path = '/v1/notes/{id}/blocks'.sub('{id}', CGI.escape(id.to_s))
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
59
+
60
+ # header parameters
61
+ header_params = opts[:header_params] || {}
62
+ # HTTP header 'Accept' (if needed)
63
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
64
+ # HTTP header 'Content-Type'
65
+ content_type = @api_client.select_header_content_type(['application/json'])
66
+ if !content_type.nil?
67
+ header_params['Content-Type'] = content_type
68
+ end
69
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
70
+
71
+ # form parameters
72
+ form_params = opts[:form_params] || {}
73
+
74
+ # http body (model)
75
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_block_request)
76
+
77
+ # return_type
78
+ return_type = opts[:debug_return_type] || 'Block'
79
+
80
+ # auth_names
81
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
82
+
83
+ new_options = opts.merge(
84
+ :operation => :"NotesApi.create_block",
85
+ :header_params => header_params,
86
+ :query_params => query_params,
87
+ :form_params => form_params,
88
+ :body => post_body,
89
+ :auth_names => auth_names,
90
+ :return_type => return_type
91
+ )
92
+
93
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug "API called: NotesApi#create_block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ end
97
+ return data, status_code, headers
98
+ end
99
+
100
+ # Create a note.
101
+ # Creates a new note under the target account. The target is resolved in this order: `accountId` field on the body → `?accountId=` query → `provider` field on the body → `?provider=` query → the caller's single connected account (errors with `ambiguous_account` if more than one is connected and no selector is supplied).
102
+ # @param create_note_request [CreateNoteRequest]
103
+ # @param [Hash] opts the optional parameters
104
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
105
+ # @option opts [String] :provider Provider id (e.g. &#x60;native-notes&#x60;, &#x60;notion&#x60;). Selects every connected account for the provider. Mutually exclusive with &#x60;accountId&#x60;.
106
+ # @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.
107
+ # @return [Note]
108
+ def create_note(create_note_request, opts = {})
109
+ data, _status_code, _headers = create_note_with_http_info(create_note_request, opts)
110
+ data
111
+ end
112
+
113
+ # Create a note.
114
+ # Creates a new note under the target account. The target is resolved in this order: &#x60;accountId&#x60; field on the body → &#x60;?accountId&#x3D;&#x60; query → &#x60;provider&#x60; field on the body → &#x60;?provider&#x3D;&#x60; query → the caller&#39;s single connected account (errors with &#x60;ambiguous_account&#x60; if more than one is connected and no selector is supplied).
115
+ # @param create_note_request [CreateNoteRequest]
116
+ # @param [Hash] opts the optional parameters
117
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
118
+ # @option opts [String] :provider Provider id (e.g. &#x60;native-notes&#x60;, &#x60;notion&#x60;). Selects every connected account for the provider. Mutually exclusive with &#x60;accountId&#x60;.
119
+ # @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.
120
+ # @return [Array<(Note, Integer, Hash)>] Note data, response status code and response headers
121
+ def create_note_with_http_info(create_note_request, opts = {})
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug 'Calling API: NotesApi.create_note ...'
124
+ end
125
+ # verify the required parameter 'create_note_request' is set
126
+ if @api_client.config.client_side_validation && create_note_request.nil?
127
+ fail ArgumentError, "Missing the required parameter 'create_note_request' when calling NotesApi.create_note"
128
+ end
129
+ # resource path
130
+ local_var_path = '/v1/notes'
131
+
132
+ # query parameters
133
+ query_params = opts[:query_params] || {}
134
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
135
+ query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
136
+
137
+ # header parameters
138
+ header_params = opts[:header_params] || {}
139
+ # HTTP header 'Accept' (if needed)
140
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
141
+ # HTTP header 'Content-Type'
142
+ content_type = @api_client.select_header_content_type(['application/json'])
143
+ if !content_type.nil?
144
+ header_params['Content-Type'] = content_type
145
+ end
146
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
147
+
148
+ # form parameters
149
+ form_params = opts[:form_params] || {}
150
+
151
+ # http body (model)
152
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_note_request)
153
+
154
+ # return_type
155
+ return_type = opts[:debug_return_type] || 'Note'
156
+
157
+ # auth_names
158
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
159
+
160
+ new_options = opts.merge(
161
+ :operation => :"NotesApi.create_note",
162
+ :header_params => header_params,
163
+ :query_params => query_params,
164
+ :form_params => form_params,
165
+ :body => post_body,
166
+ :auth_names => auth_names,
167
+ :return_type => return_type
168
+ )
169
+
170
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
171
+ if @api_client.config.debugging
172
+ @api_client.config.logger.debug "API called: NotesApi#create_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
173
+ end
174
+ return data, status_code, headers
175
+ end
176
+
177
+ # Create a comment or reply.
178
+ # @param id [String] Note id.
179
+ # @param create_comment_request [CreateCommentRequest]
180
+ # @param [Hash] opts the optional parameters
181
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
182
+ # @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.
183
+ # @return [CommentMutationResponse]
184
+ def create_note_comment(id, create_comment_request, opts = {})
185
+ data, _status_code, _headers = create_note_comment_with_http_info(id, create_comment_request, opts)
186
+ data
187
+ end
188
+
189
+ # Create a comment or reply.
190
+ # @param id [String] Note id.
191
+ # @param create_comment_request [CreateCommentRequest]
192
+ # @param [Hash] opts the optional parameters
193
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
194
+ # @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.
195
+ # @return [Array<(CommentMutationResponse, Integer, Hash)>] CommentMutationResponse data, response status code and response headers
196
+ def create_note_comment_with_http_info(id, create_comment_request, opts = {})
197
+ if @api_client.config.debugging
198
+ @api_client.config.logger.debug 'Calling API: NotesApi.create_note_comment ...'
199
+ end
200
+ # verify the required parameter 'id' is set
201
+ if @api_client.config.client_side_validation && id.nil?
202
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.create_note_comment"
203
+ end
204
+ # verify the required parameter 'create_comment_request' is set
205
+ if @api_client.config.client_side_validation && create_comment_request.nil?
206
+ fail ArgumentError, "Missing the required parameter 'create_comment_request' when calling NotesApi.create_note_comment"
207
+ end
208
+ # resource path
209
+ local_var_path = '/v1/notes/{id}/comments'.sub('{id}', CGI.escape(id.to_s))
210
+
211
+ # query parameters
212
+ query_params = opts[:query_params] || {}
213
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
214
+
215
+ # header parameters
216
+ header_params = opts[:header_params] || {}
217
+ # HTTP header 'Accept' (if needed)
218
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
219
+ # HTTP header 'Content-Type'
220
+ content_type = @api_client.select_header_content_type(['application/json'])
221
+ if !content_type.nil?
222
+ header_params['Content-Type'] = content_type
223
+ end
224
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
225
+
226
+ # form parameters
227
+ form_params = opts[:form_params] || {}
228
+
229
+ # http body (model)
230
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_comment_request)
231
+
232
+ # return_type
233
+ return_type = opts[:debug_return_type] || 'CommentMutationResponse'
234
+
235
+ # auth_names
236
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
237
+
238
+ new_options = opts.merge(
239
+ :operation => :"NotesApi.create_note_comment",
240
+ :header_params => header_params,
241
+ :query_params => query_params,
242
+ :form_params => form_params,
243
+ :body => post_body,
244
+ :auth_names => auth_names,
245
+ :return_type => return_type
246
+ )
247
+
248
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
249
+ if @api_client.config.debugging
250
+ @api_client.config.logger.debug "API called: NotesApi#create_note_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
251
+ end
252
+ return data, status_code, headers
253
+ end
254
+
255
+ # Delete a block.
256
+ # @param id [String] Block id.
257
+ # @param [Hash] opts the optional parameters
258
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
259
+ # @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.
260
+ # @return [SuccessFlag]
261
+ def delete_block(id, opts = {})
262
+ data, _status_code, _headers = delete_block_with_http_info(id, opts)
263
+ data
264
+ end
265
+
266
+ # Delete a block.
267
+ # @param id [String] Block id.
268
+ # @param [Hash] opts the optional parameters
269
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
270
+ # @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.
271
+ # @return [Array<(SuccessFlag, Integer, Hash)>] SuccessFlag data, response status code and response headers
272
+ def delete_block_with_http_info(id, opts = {})
273
+ if @api_client.config.debugging
274
+ @api_client.config.logger.debug 'Calling API: NotesApi.delete_block ...'
275
+ end
276
+ # verify the required parameter 'id' is set
277
+ if @api_client.config.client_side_validation && id.nil?
278
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.delete_block"
279
+ end
280
+ # resource path
281
+ local_var_path = '/v1/notes/blocks/{id}'.sub('{id}', CGI.escape(id.to_s))
282
+
283
+ # query parameters
284
+ query_params = opts[:query_params] || {}
285
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
286
+
287
+ # header parameters
288
+ header_params = opts[:header_params] || {}
289
+ # HTTP header 'Accept' (if needed)
290
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
291
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
292
+
293
+ # form parameters
294
+ form_params = opts[:form_params] || {}
295
+
296
+ # http body (model)
297
+ post_body = opts[:debug_body]
298
+
299
+ # return_type
300
+ return_type = opts[:debug_return_type] || 'SuccessFlag'
301
+
302
+ # auth_names
303
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
304
+
305
+ new_options = opts.merge(
306
+ :operation => :"NotesApi.delete_block",
307
+ :header_params => header_params,
308
+ :query_params => query_params,
309
+ :form_params => form_params,
310
+ :body => post_body,
311
+ :auth_names => auth_names,
312
+ :return_type => return_type
313
+ )
314
+
315
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
316
+ if @api_client.config.debugging
317
+ @api_client.config.logger.debug "API called: NotesApi#delete_block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
318
+ end
319
+ return data, status_code, headers
320
+ end
321
+
322
+ # Delete a note.
323
+ # @param id [String] Note id.
324
+ # @param [Hash] opts the optional parameters
325
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
326
+ # @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.
327
+ # @return [SuccessFlag]
328
+ def delete_note(id, opts = {})
329
+ data, _status_code, _headers = delete_note_with_http_info(id, opts)
330
+ data
331
+ end
332
+
333
+ # Delete a note.
334
+ # @param id [String] Note id.
335
+ # @param [Hash] opts the optional parameters
336
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
337
+ # @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.
338
+ # @return [Array<(SuccessFlag, Integer, Hash)>] SuccessFlag data, response status code and response headers
339
+ def delete_note_with_http_info(id, opts = {})
340
+ if @api_client.config.debugging
341
+ @api_client.config.logger.debug 'Calling API: NotesApi.delete_note ...'
342
+ end
343
+ # verify the required parameter 'id' is set
344
+ if @api_client.config.client_side_validation && id.nil?
345
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.delete_note"
346
+ end
347
+ # resource path
348
+ local_var_path = '/v1/notes/{id}'.sub('{id}', CGI.escape(id.to_s))
349
+
350
+ # query parameters
351
+ query_params = opts[:query_params] || {}
352
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
353
+
354
+ # header parameters
355
+ header_params = opts[:header_params] || {}
356
+ # HTTP header 'Accept' (if needed)
357
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
358
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
359
+
360
+ # form parameters
361
+ form_params = opts[:form_params] || {}
362
+
363
+ # http body (model)
364
+ post_body = opts[:debug_body]
365
+
366
+ # return_type
367
+ return_type = opts[:debug_return_type] || 'SuccessFlag'
368
+
369
+ # auth_names
370
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
371
+
372
+ new_options = opts.merge(
373
+ :operation => :"NotesApi.delete_note",
374
+ :header_params => header_params,
375
+ :query_params => query_params,
376
+ :form_params => form_params,
377
+ :body => post_body,
378
+ :auth_names => auth_names,
379
+ :return_type => return_type
380
+ )
381
+
382
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
383
+ if @api_client.config.debugging
384
+ @api_client.config.logger.debug "API called: NotesApi#delete_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
385
+ end
386
+ return data, status_code, headers
387
+ end
388
+
389
+ # Soft-delete (native) or hard-delete (provider) a comment.
390
+ # Allowed for the comment author and for the note owner.
391
+ # @param id [String] Note id.
392
+ # @param comment_id [String] Comment id.
393
+ # @param [Hash] opts the optional parameters
394
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
395
+ # @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.
396
+ # @return [SuccessFlag]
397
+ def delete_note_comment(id, comment_id, opts = {})
398
+ data, _status_code, _headers = delete_note_comment_with_http_info(id, comment_id, opts)
399
+ data
400
+ end
401
+
402
+ # Soft-delete (native) or hard-delete (provider) a comment.
403
+ # Allowed for the comment author and for the note owner.
404
+ # @param id [String] Note id.
405
+ # @param comment_id [String] Comment id.
406
+ # @param [Hash] opts the optional parameters
407
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
408
+ # @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.
409
+ # @return [Array<(SuccessFlag, Integer, Hash)>] SuccessFlag data, response status code and response headers
410
+ def delete_note_comment_with_http_info(id, comment_id, opts = {})
411
+ if @api_client.config.debugging
412
+ @api_client.config.logger.debug 'Calling API: NotesApi.delete_note_comment ...'
413
+ end
414
+ # verify the required parameter 'id' is set
415
+ if @api_client.config.client_side_validation && id.nil?
416
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.delete_note_comment"
417
+ end
418
+ # verify the required parameter 'comment_id' is set
419
+ if @api_client.config.client_side_validation && comment_id.nil?
420
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling NotesApi.delete_note_comment"
421
+ end
422
+ # resource path
423
+ local_var_path = '/v1/notes/{id}/comments/{commentId}'.sub('{id}', CGI.escape(id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s))
424
+
425
+ # query parameters
426
+ query_params = opts[:query_params] || {}
427
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
428
+
429
+ # header parameters
430
+ header_params = opts[:header_params] || {}
431
+ # HTTP header 'Accept' (if needed)
432
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
433
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
434
+
435
+ # form parameters
436
+ form_params = opts[:form_params] || {}
437
+
438
+ # http body (model)
439
+ post_body = opts[:debug_body]
440
+
441
+ # return_type
442
+ return_type = opts[:debug_return_type] || 'SuccessFlag'
443
+
444
+ # auth_names
445
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
446
+
447
+ new_options = opts.merge(
448
+ :operation => :"NotesApi.delete_note_comment",
449
+ :header_params => header_params,
450
+ :query_params => query_params,
451
+ :form_params => form_params,
452
+ :body => post_body,
453
+ :auth_names => auth_names,
454
+ :return_type => return_type
455
+ )
456
+
457
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
458
+ if @api_client.config.debugging
459
+ @api_client.config.logger.debug "API called: NotesApi#delete_note_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
460
+ end
461
+ return data, status_code, headers
462
+ end
463
+
464
+ # Disable public sharing.
465
+ # Owner-only. Subsequent public viewer requests 404.
466
+ # @param id [String] Note id.
467
+ # @param [Hash] opts the optional parameters
468
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
469
+ # @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.
470
+ # @return [nil]
471
+ def disable_note_share(id, opts = {})
472
+ disable_note_share_with_http_info(id, opts)
473
+ nil
474
+ end
475
+
476
+ # Disable public sharing.
477
+ # Owner-only. Subsequent public viewer requests 404.
478
+ # @param id [String] Note id.
479
+ # @param [Hash] opts the optional parameters
480
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
481
+ # @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.
482
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
483
+ def disable_note_share_with_http_info(id, opts = {})
484
+ if @api_client.config.debugging
485
+ @api_client.config.logger.debug 'Calling API: NotesApi.disable_note_share ...'
486
+ end
487
+ # verify the required parameter 'id' is set
488
+ if @api_client.config.client_side_validation && id.nil?
489
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.disable_note_share"
490
+ end
491
+ # resource path
492
+ local_var_path = '/v1/notes/{id}/share'.sub('{id}', CGI.escape(id.to_s))
493
+
494
+ # query parameters
495
+ query_params = opts[:query_params] || {}
496
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
497
+
498
+ # header parameters
499
+ header_params = opts[:header_params] || {}
500
+ # HTTP header 'Accept' (if needed)
501
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
502
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
503
+
504
+ # form parameters
505
+ form_params = opts[:form_params] || {}
506
+
507
+ # http body (model)
508
+ post_body = opts[:debug_body]
509
+
510
+ # return_type
511
+ return_type = opts[:debug_return_type]
512
+
513
+ # auth_names
514
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
515
+
516
+ new_options = opts.merge(
517
+ :operation => :"NotesApi.disable_note_share",
518
+ :header_params => header_params,
519
+ :query_params => query_params,
520
+ :form_params => form_params,
521
+ :body => post_body,
522
+ :auth_names => auth_names,
523
+ :return_type => return_type
524
+ )
525
+
526
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
527
+ if @api_client.config.debugging
528
+ @api_client.config.logger.debug "API called: NotesApi#disable_note_share\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
529
+ end
530
+ return data, status_code, headers
531
+ end
532
+
533
+ # Enable (or update password on) public sharing.
534
+ # Owner-only. Calling with an empty body or `setPassword: false` flips the note public without changing the password. With `setPassword: true`, applies `password` (empty string clears).
535
+ # @param id [String] Note id.
536
+ # @param [Hash] opts the optional parameters
537
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
538
+ # @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.
539
+ # @option opts [EnableShareRequest] :enable_share_request
540
+ # @return [ShareSettings]
541
+ def enable_note_share(id, opts = {})
542
+ data, _status_code, _headers = enable_note_share_with_http_info(id, opts)
543
+ data
544
+ end
545
+
546
+ # Enable (or update password on) public sharing.
547
+ # Owner-only. Calling with an empty body or &#x60;setPassword: false&#x60; flips the note public without changing the password. With &#x60;setPassword: true&#x60;, applies &#x60;password&#x60; (empty string clears).
548
+ # @param id [String] Note id.
549
+ # @param [Hash] opts the optional parameters
550
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
551
+ # @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.
552
+ # @option opts [EnableShareRequest] :enable_share_request
553
+ # @return [Array<(ShareSettings, Integer, Hash)>] ShareSettings data, response status code and response headers
554
+ def enable_note_share_with_http_info(id, opts = {})
555
+ if @api_client.config.debugging
556
+ @api_client.config.logger.debug 'Calling API: NotesApi.enable_note_share ...'
557
+ end
558
+ # verify the required parameter 'id' is set
559
+ if @api_client.config.client_side_validation && id.nil?
560
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.enable_note_share"
561
+ end
562
+ # resource path
563
+ local_var_path = '/v1/notes/{id}/share'.sub('{id}', CGI.escape(id.to_s))
564
+
565
+ # query parameters
566
+ query_params = opts[:query_params] || {}
567
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
568
+
569
+ # header parameters
570
+ header_params = opts[:header_params] || {}
571
+ # HTTP header 'Accept' (if needed)
572
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
573
+ # HTTP header 'Content-Type'
574
+ content_type = @api_client.select_header_content_type(['application/json'])
575
+ if !content_type.nil?
576
+ header_params['Content-Type'] = content_type
577
+ end
578
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
579
+
580
+ # form parameters
581
+ form_params = opts[:form_params] || {}
582
+
583
+ # http body (model)
584
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'enable_share_request'])
585
+
586
+ # return_type
587
+ return_type = opts[:debug_return_type] || 'ShareSettings'
588
+
589
+ # auth_names
590
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
591
+
592
+ new_options = opts.merge(
593
+ :operation => :"NotesApi.enable_note_share",
594
+ :header_params => header_params,
595
+ :query_params => query_params,
596
+ :form_params => form_params,
597
+ :body => post_body,
598
+ :auth_names => auth_names,
599
+ :return_type => return_type
600
+ )
601
+
602
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
603
+ if @api_client.config.debugging
604
+ @api_client.config.logger.debug "API called: NotesApi#enable_note_share\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
605
+ end
606
+ return data, status_code, headers
607
+ end
608
+
609
+ # Fetch one block.
610
+ # @param id [String] Block id.
611
+ # @param [Hash] opts the optional parameters
612
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
613
+ # @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.
614
+ # @return [Block]
615
+ def get_block(id, opts = {})
616
+ data, _status_code, _headers = get_block_with_http_info(id, opts)
617
+ data
618
+ end
619
+
620
+ # Fetch one block.
621
+ # @param id [String] Block id.
622
+ # @param [Hash] opts the optional parameters
623
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
624
+ # @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.
625
+ # @return [Array<(Block, Integer, Hash)>] Block data, response status code and response headers
626
+ def get_block_with_http_info(id, opts = {})
627
+ if @api_client.config.debugging
628
+ @api_client.config.logger.debug 'Calling API: NotesApi.get_block ...'
629
+ end
630
+ # verify the required parameter 'id' is set
631
+ if @api_client.config.client_side_validation && id.nil?
632
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.get_block"
633
+ end
634
+ # resource path
635
+ local_var_path = '/v1/notes/blocks/{id}'.sub('{id}', CGI.escape(id.to_s))
636
+
637
+ # query parameters
638
+ query_params = opts[:query_params] || {}
639
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
640
+
641
+ # header parameters
642
+ header_params = opts[:header_params] || {}
643
+ # HTTP header 'Accept' (if needed)
644
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
645
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
646
+
647
+ # form parameters
648
+ form_params = opts[:form_params] || {}
649
+
650
+ # http body (model)
651
+ post_body = opts[:debug_body]
652
+
653
+ # return_type
654
+ return_type = opts[:debug_return_type] || 'Block'
655
+
656
+ # auth_names
657
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
658
+
659
+ new_options = opts.merge(
660
+ :operation => :"NotesApi.get_block",
661
+ :header_params => header_params,
662
+ :query_params => query_params,
663
+ :form_params => form_params,
664
+ :body => post_body,
665
+ :auth_names => auth_names,
666
+ :return_type => return_type
667
+ )
668
+
669
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
670
+ if @api_client.config.debugging
671
+ @api_client.config.logger.debug "API called: NotesApi#get_block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
672
+ end
673
+ return data, status_code, headers
674
+ end
675
+
676
+ # Fetch one note.
677
+ # @param id [String] Note id.
678
+ # @param [Hash] opts the optional parameters
679
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
680
+ # @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.
681
+ # @return [Note]
682
+ def get_note(id, opts = {})
683
+ data, _status_code, _headers = get_note_with_http_info(id, opts)
684
+ data
685
+ end
686
+
687
+ # Fetch one note.
688
+ # @param id [String] Note id.
689
+ # @param [Hash] opts the optional parameters
690
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
691
+ # @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.
692
+ # @return [Array<(Note, Integer, Hash)>] Note data, response status code and response headers
693
+ def get_note_with_http_info(id, opts = {})
694
+ if @api_client.config.debugging
695
+ @api_client.config.logger.debug 'Calling API: NotesApi.get_note ...'
696
+ end
697
+ # verify the required parameter 'id' is set
698
+ if @api_client.config.client_side_validation && id.nil?
699
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.get_note"
700
+ end
701
+ # resource path
702
+ local_var_path = '/v1/notes/{id}'.sub('{id}', CGI.escape(id.to_s))
703
+
704
+ # query parameters
705
+ query_params = opts[:query_params] || {}
706
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
707
+
708
+ # header parameters
709
+ header_params = opts[:header_params] || {}
710
+ # HTTP header 'Accept' (if needed)
711
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
712
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
713
+
714
+ # form parameters
715
+ form_params = opts[:form_params] || {}
716
+
717
+ # http body (model)
718
+ post_body = opts[:debug_body]
719
+
720
+ # return_type
721
+ return_type = opts[:debug_return_type] || 'Note'
722
+
723
+ # auth_names
724
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
725
+
726
+ new_options = opts.merge(
727
+ :operation => :"NotesApi.get_note",
728
+ :header_params => header_params,
729
+ :query_params => query_params,
730
+ :form_params => form_params,
731
+ :body => post_body,
732
+ :auth_names => auth_names,
733
+ :return_type => return_type
734
+ )
735
+
736
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
737
+ if @api_client.config.debugging
738
+ @api_client.config.logger.debug "API called: NotesApi#get_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
739
+ end
740
+ return data, status_code, headers
741
+ end
742
+
743
+ # Fetch one comment.
744
+ # Useful for permalink hydration when the renderer deep-links into a reply thread.
745
+ # @param id [String] Note id.
746
+ # @param comment_id [String] Comment id.
747
+ # @param [Hash] opts the optional parameters
748
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
749
+ # @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.
750
+ # @return [CommentResponse]
751
+ def get_note_comment(id, comment_id, opts = {})
752
+ data, _status_code, _headers = get_note_comment_with_http_info(id, comment_id, opts)
753
+ data
754
+ end
755
+
756
+ # Fetch one comment.
757
+ # Useful for permalink hydration when the renderer deep-links into a reply thread.
758
+ # @param id [String] Note id.
759
+ # @param comment_id [String] Comment id.
760
+ # @param [Hash] opts the optional parameters
761
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
762
+ # @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.
763
+ # @return [Array<(CommentResponse, Integer, Hash)>] CommentResponse data, response status code and response headers
764
+ def get_note_comment_with_http_info(id, comment_id, opts = {})
765
+ if @api_client.config.debugging
766
+ @api_client.config.logger.debug 'Calling API: NotesApi.get_note_comment ...'
767
+ end
768
+ # verify the required parameter 'id' is set
769
+ if @api_client.config.client_side_validation && id.nil?
770
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.get_note_comment"
771
+ end
772
+ # verify the required parameter 'comment_id' is set
773
+ if @api_client.config.client_side_validation && comment_id.nil?
774
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling NotesApi.get_note_comment"
775
+ end
776
+ # resource path
777
+ local_var_path = '/v1/notes/{id}/comments/{commentId}'.sub('{id}', CGI.escape(id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s))
778
+
779
+ # query parameters
780
+ query_params = opts[:query_params] || {}
781
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
782
+
783
+ # header parameters
784
+ header_params = opts[:header_params] || {}
785
+ # HTTP header 'Accept' (if needed)
786
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
787
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
788
+
789
+ # form parameters
790
+ form_params = opts[:form_params] || {}
791
+
792
+ # http body (model)
793
+ post_body = opts[:debug_body]
794
+
795
+ # return_type
796
+ return_type = opts[:debug_return_type] || 'CommentResponse'
797
+
798
+ # auth_names
799
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
800
+
801
+ new_options = opts.merge(
802
+ :operation => :"NotesApi.get_note_comment",
803
+ :header_params => header_params,
804
+ :query_params => query_params,
805
+ :form_params => form_params,
806
+ :body => post_body,
807
+ :auth_names => auth_names,
808
+ :return_type => return_type
809
+ )
810
+
811
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
812
+ if @api_client.config.debugging
813
+ @api_client.config.logger.debug "API called: NotesApi#get_note_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
814
+ end
815
+ return data, status_code, headers
816
+ end
817
+
818
+ # Fetch share settings for a note.
819
+ # Owner-only. Returns the current public-share configuration, including the share token and computed public viewer URL when the note is currently public.
820
+ # @param id [String] Note id.
821
+ # @param [Hash] opts the optional parameters
822
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
823
+ # @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.
824
+ # @return [ShareSettings]
825
+ def get_note_share_settings(id, opts = {})
826
+ data, _status_code, _headers = get_note_share_settings_with_http_info(id, opts)
827
+ data
828
+ end
829
+
830
+ # Fetch share settings for a note.
831
+ # Owner-only. Returns the current public-share configuration, including the share token and computed public viewer URL when the note is currently public.
832
+ # @param id [String] Note id.
833
+ # @param [Hash] opts the optional parameters
834
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
835
+ # @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.
836
+ # @return [Array<(ShareSettings, Integer, Hash)>] ShareSettings data, response status code and response headers
837
+ def get_note_share_settings_with_http_info(id, opts = {})
838
+ if @api_client.config.debugging
839
+ @api_client.config.logger.debug 'Calling API: NotesApi.get_note_share_settings ...'
840
+ end
841
+ # verify the required parameter 'id' is set
842
+ if @api_client.config.client_side_validation && id.nil?
843
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.get_note_share_settings"
844
+ end
845
+ # resource path
846
+ local_var_path = '/v1/notes/{id}/share'.sub('{id}', CGI.escape(id.to_s))
847
+
848
+ # query parameters
849
+ query_params = opts[:query_params] || {}
850
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
851
+
852
+ # header parameters
853
+ header_params = opts[:header_params] || {}
854
+ # HTTP header 'Accept' (if needed)
855
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
856
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
857
+
858
+ # form parameters
859
+ form_params = opts[:form_params] || {}
860
+
861
+ # http body (model)
862
+ post_body = opts[:debug_body]
863
+
864
+ # return_type
865
+ return_type = opts[:debug_return_type] || 'ShareSettings'
866
+
867
+ # auth_names
868
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
869
+
870
+ new_options = opts.merge(
871
+ :operation => :"NotesApi.get_note_share_settings",
872
+ :header_params => header_params,
873
+ :query_params => query_params,
874
+ :form_params => form_params,
875
+ :body => post_body,
876
+ :auth_names => auth_names,
877
+ :return_type => return_type
878
+ )
879
+
880
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
881
+ if @api_client.config.debugging
882
+ @api_client.config.logger.debug "API called: NotesApi#get_note_share_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
883
+ end
884
+ return data, status_code, headers
885
+ end
886
+
887
+ # Fetch a publicly shared note.
888
+ # Unauthenticated. The share token is the credential. For password-protected notes the password is supplied via the `?password=` query param; the response distinguishes \"no password supplied\" from \"wrong password\" so the viewer can render the right prompt. Unknown tokens and disabled-share notes both return `404` to prevent token enumeration.
889
+ # @param token [String] Opaque public-share token.
890
+ # @param [Hash] opts the optional parameters
891
+ # @option opts [String] :password Optional viewer password.
892
+ # @return [Hash<String, Object>]
893
+ def get_public_note(token, opts = {})
894
+ data, _status_code, _headers = get_public_note_with_http_info(token, opts)
895
+ data
896
+ end
897
+
898
+ # Fetch a publicly shared note.
899
+ # Unauthenticated. The share token is the credential. For password-protected notes the password is supplied via the &#x60;?password&#x3D;&#x60; query param; the response distinguishes \&quot;no password supplied\&quot; from \&quot;wrong password\&quot; so the viewer can render the right prompt. Unknown tokens and disabled-share notes both return &#x60;404&#x60; to prevent token enumeration.
900
+ # @param token [String] Opaque public-share token.
901
+ # @param [Hash] opts the optional parameters
902
+ # @option opts [String] :password Optional viewer password.
903
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
904
+ def get_public_note_with_http_info(token, opts = {})
905
+ if @api_client.config.debugging
906
+ @api_client.config.logger.debug 'Calling API: NotesApi.get_public_note ...'
907
+ end
908
+ # verify the required parameter 'token' is set
909
+ if @api_client.config.client_side_validation && token.nil?
910
+ fail ArgumentError, "Missing the required parameter 'token' when calling NotesApi.get_public_note"
911
+ end
912
+ # resource path
913
+ local_var_path = '/public/notes/{token}'.sub('{token}', CGI.escape(token.to_s))
914
+
915
+ # query parameters
916
+ query_params = opts[:query_params] || {}
917
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
918
+
919
+ # header parameters
920
+ header_params = opts[:header_params] || {}
921
+ # HTTP header 'Accept' (if needed)
922
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
923
+
924
+ # form parameters
925
+ form_params = opts[:form_params] || {}
926
+
927
+ # http body (model)
928
+ post_body = opts[:debug_body]
929
+
930
+ # return_type
931
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
932
+
933
+ # auth_names
934
+ auth_names = opts[:debug_auth_names] || []
935
+
936
+ new_options = opts.merge(
937
+ :operation => :"NotesApi.get_public_note",
938
+ :header_params => header_params,
939
+ :query_params => query_params,
940
+ :form_params => form_params,
941
+ :body => post_body,
942
+ :auth_names => auth_names,
943
+ :return_type => return_type
944
+ )
945
+
946
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
947
+ if @api_client.config.debugging
948
+ @api_client.config.logger.debug "API called: NotesApi#get_public_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
949
+ end
950
+ return data, status_code, headers
951
+ end
952
+
953
+ # List blocks under a note.
954
+ # Returns the block tree for a note, paginated. Block listing always targets a single account (the one that owns the note) so it does not fan out — the response is a plain `{ blocks, total }`.
955
+ # @param id [String] Note id.
956
+ # @param [Hash] opts the optional parameters
957
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
958
+ # @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.
959
+ # @option opts [String] :parent_id Filter to children of this block id. Omit to list root-level blocks.
960
+ # @option opts [Integer] :limit (default to 100)
961
+ # @option opts [Integer] :offset (default to 0)
962
+ # @return [BlockListResponse]
963
+ def list_blocks(id, opts = {})
964
+ data, _status_code, _headers = list_blocks_with_http_info(id, opts)
965
+ data
966
+ end
967
+
968
+ # List blocks under a note.
969
+ # Returns the block tree for a note, paginated. Block listing always targets a single account (the one that owns the note) so it does not fan out — the response is a plain &#x60;{ blocks, total }&#x60;.
970
+ # @param id [String] Note id.
971
+ # @param [Hash] opts the optional parameters
972
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
973
+ # @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.
974
+ # @option opts [String] :parent_id Filter to children of this block id. Omit to list root-level blocks.
975
+ # @option opts [Integer] :limit (default to 100)
976
+ # @option opts [Integer] :offset (default to 0)
977
+ # @return [Array<(BlockListResponse, Integer, Hash)>] BlockListResponse data, response status code and response headers
978
+ def list_blocks_with_http_info(id, opts = {})
979
+ if @api_client.config.debugging
980
+ @api_client.config.logger.debug 'Calling API: NotesApi.list_blocks ...'
981
+ end
982
+ # verify the required parameter 'id' is set
983
+ if @api_client.config.client_side_validation && id.nil?
984
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.list_blocks"
985
+ end
986
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
987
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling NotesApi.list_blocks, must be greater than or equal to 1.'
988
+ end
989
+
990
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
991
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling NotesApi.list_blocks, must be greater than or equal to 0.'
992
+ end
993
+
994
+ # resource path
995
+ local_var_path = '/v1/notes/{id}/blocks'.sub('{id}', CGI.escape(id.to_s))
996
+
997
+ # query parameters
998
+ query_params = opts[:query_params] || {}
999
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
1000
+ query_params[:'parent_id'] = opts[:'parent_id'] if !opts[:'parent_id'].nil?
1001
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1002
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
1003
+
1004
+ # header parameters
1005
+ header_params = opts[:header_params] || {}
1006
+ # HTTP header 'Accept' (if needed)
1007
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1008
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
1009
+
1010
+ # form parameters
1011
+ form_params = opts[:form_params] || {}
1012
+
1013
+ # http body (model)
1014
+ post_body = opts[:debug_body]
1015
+
1016
+ # return_type
1017
+ return_type = opts[:debug_return_type] || 'BlockListResponse'
1018
+
1019
+ # auth_names
1020
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1021
+
1022
+ new_options = opts.merge(
1023
+ :operation => :"NotesApi.list_blocks",
1024
+ :header_params => header_params,
1025
+ :query_params => query_params,
1026
+ :form_params => form_params,
1027
+ :body => post_body,
1028
+ :auth_names => auth_names,
1029
+ :return_type => return_type
1030
+ )
1031
+
1032
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1033
+ if @api_client.config.debugging
1034
+ @api_client.config.logger.debug "API called: NotesApi#list_blocks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1035
+ end
1036
+ return data, status_code, headers
1037
+ end
1038
+
1039
+ # List comments on a note.
1040
+ # Returns active (non-deleted) comments. When `?accountId=` targets an external provider that supports comments (e.g. Notion), the provider is queried directly; otherwise the native store is used.
1041
+ # @param id [String] Note id.
1042
+ # @param [Hash] opts the optional parameters
1043
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1044
+ # @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.
1045
+ # @return [CommentListResponse]
1046
+ def list_note_comments(id, opts = {})
1047
+ data, _status_code, _headers = list_note_comments_with_http_info(id, opts)
1048
+ data
1049
+ end
1050
+
1051
+ # List comments on a note.
1052
+ # Returns active (non-deleted) comments. When &#x60;?accountId&#x3D;&#x60; targets an external provider that supports comments (e.g. Notion), the provider is queried directly; otherwise the native store is used.
1053
+ # @param id [String] Note id.
1054
+ # @param [Hash] opts the optional parameters
1055
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1056
+ # @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.
1057
+ # @return [Array<(CommentListResponse, Integer, Hash)>] CommentListResponse data, response status code and response headers
1058
+ def list_note_comments_with_http_info(id, opts = {})
1059
+ if @api_client.config.debugging
1060
+ @api_client.config.logger.debug 'Calling API: NotesApi.list_note_comments ...'
1061
+ end
1062
+ # verify the required parameter 'id' is set
1063
+ if @api_client.config.client_side_validation && id.nil?
1064
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.list_note_comments"
1065
+ end
1066
+ # resource path
1067
+ local_var_path = '/v1/notes/{id}/comments'.sub('{id}', CGI.escape(id.to_s))
1068
+
1069
+ # query parameters
1070
+ query_params = opts[:query_params] || {}
1071
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
1072
+
1073
+ # header parameters
1074
+ header_params = opts[:header_params] || {}
1075
+ # HTTP header 'Accept' (if needed)
1076
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1077
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
1078
+
1079
+ # form parameters
1080
+ form_params = opts[:form_params] || {}
1081
+
1082
+ # http body (model)
1083
+ post_body = opts[:debug_body]
1084
+
1085
+ # return_type
1086
+ return_type = opts[:debug_return_type] || 'CommentListResponse'
1087
+
1088
+ # auth_names
1089
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1090
+
1091
+ new_options = opts.merge(
1092
+ :operation => :"NotesApi.list_note_comments",
1093
+ :header_params => header_params,
1094
+ :query_params => query_params,
1095
+ :form_params => form_params,
1096
+ :body => post_body,
1097
+ :auth_names => auth_names,
1098
+ :return_type => return_type
1099
+ )
1100
+
1101
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1102
+ if @api_client.config.debugging
1103
+ @api_client.config.logger.debug "API called: NotesApi#list_note_comments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1104
+ end
1105
+ return data, status_code, headers
1106
+ end
1107
+
1108
+ # List notes across connected accounts.
1109
+ # Fan-out list. Returns every note visible to the caller across every connected notes provider, paginated by `limit` / `offset`. Pass `?accountId=` or `?provider=` to scope to a single source.
1110
+ # @param [Hash] opts the optional parameters
1111
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1112
+ # @option opts [String] :provider Provider id (e.g. &#x60;native-notes&#x60;, &#x60;notion&#x60;). Selects every connected account for the provider. Mutually exclusive with &#x60;accountId&#x60;.
1113
+ # @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.
1114
+ # @option opts [Boolean] :archived When &#x60;true&#x60;, return archived notes instead of active ones. (default to false)
1115
+ # @option opts [String] :parent_id Filter to notes nested under this parent note id.
1116
+ # @option opts [Array<String>] :tags Repeatable. Filter to notes carrying every tag listed.
1117
+ # @option opts [Integer] :limit Max items to return. Defaults to 50. (default to 50)
1118
+ # @option opts [Integer] :offset Number of items to skip. (default to 0)
1119
+ # @option opts [String] :sort_by Sort field. Provider-dependent; the native provider supports &#x60;updated_at&#x60;, &#x60;created_at&#x60;, &#x60;title&#x60;. (default to 'updated_at')
1120
+ # @option opts [String] :sort_order (default to 'desc')
1121
+ # @return [NoteListEnvelope]
1122
+ def list_notes(opts = {})
1123
+ data, _status_code, _headers = list_notes_with_http_info(opts)
1124
+ data
1125
+ end
1126
+
1127
+ # List notes across connected accounts.
1128
+ # Fan-out list. Returns every note visible to the caller across every connected notes provider, paginated by &#x60;limit&#x60; / &#x60;offset&#x60;. Pass &#x60;?accountId&#x3D;&#x60; or &#x60;?provider&#x3D;&#x60; to scope to a single source.
1129
+ # @param [Hash] opts the optional parameters
1130
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1131
+ # @option opts [String] :provider Provider id (e.g. &#x60;native-notes&#x60;, &#x60;notion&#x60;). Selects every connected account for the provider. Mutually exclusive with &#x60;accountId&#x60;.
1132
+ # @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.
1133
+ # @option opts [Boolean] :archived When &#x60;true&#x60;, return archived notes instead of active ones. (default to false)
1134
+ # @option opts [String] :parent_id Filter to notes nested under this parent note id.
1135
+ # @option opts [Array<String>] :tags Repeatable. Filter to notes carrying every tag listed.
1136
+ # @option opts [Integer] :limit Max items to return. Defaults to 50. (default to 50)
1137
+ # @option opts [Integer] :offset Number of items to skip. (default to 0)
1138
+ # @option opts [String] :sort_by Sort field. Provider-dependent; the native provider supports &#x60;updated_at&#x60;, &#x60;created_at&#x60;, &#x60;title&#x60;. (default to 'updated_at')
1139
+ # @option opts [String] :sort_order (default to 'desc')
1140
+ # @return [Array<(NoteListEnvelope, Integer, Hash)>] NoteListEnvelope data, response status code and response headers
1141
+ def list_notes_with_http_info(opts = {})
1142
+ if @api_client.config.debugging
1143
+ @api_client.config.logger.debug 'Calling API: NotesApi.list_notes ...'
1144
+ end
1145
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1146
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling NotesApi.list_notes, must be greater than or equal to 1.'
1147
+ end
1148
+
1149
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
1150
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling NotesApi.list_notes, must be greater than or equal to 0.'
1151
+ end
1152
+
1153
+ allowable_values = ["asc", "desc"]
1154
+ if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
1155
+ fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
1156
+ end
1157
+ # resource path
1158
+ local_var_path = '/v1/notes'
1159
+
1160
+ # query parameters
1161
+ query_params = opts[:query_params] || {}
1162
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
1163
+ query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
1164
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
1165
+ query_params[:'parent_id'] = opts[:'parent_id'] if !opts[:'parent_id'].nil?
1166
+ query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :multi) if !opts[:'tags'].nil?
1167
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1168
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
1169
+ query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
1170
+ query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
1171
+
1172
+ # header parameters
1173
+ header_params = opts[:header_params] || {}
1174
+ # HTTP header 'Accept' (if needed)
1175
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1176
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
1177
+
1178
+ # form parameters
1179
+ form_params = opts[:form_params] || {}
1180
+
1181
+ # http body (model)
1182
+ post_body = opts[:debug_body]
1183
+
1184
+ # return_type
1185
+ return_type = opts[:debug_return_type] || 'NoteListEnvelope'
1186
+
1187
+ # auth_names
1188
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1189
+
1190
+ new_options = opts.merge(
1191
+ :operation => :"NotesApi.list_notes",
1192
+ :header_params => header_params,
1193
+ :query_params => query_params,
1194
+ :form_params => form_params,
1195
+ :body => post_body,
1196
+ :auth_names => auth_names,
1197
+ :return_type => return_type
1198
+ )
1199
+
1200
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1201
+ if @api_client.config.debugging
1202
+ @api_client.config.logger.debug "API called: NotesApi#list_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1203
+ end
1204
+ return data, status_code, headers
1205
+ end
1206
+
1207
+ # Reparent or reorder a block.
1208
+ # @param id [String] Block id.
1209
+ # @param move_block_request [MoveBlockRequest]
1210
+ # @param [Hash] opts the optional parameters
1211
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1212
+ # @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.
1213
+ # @return [SuccessFlag]
1214
+ def move_block(id, move_block_request, opts = {})
1215
+ data, _status_code, _headers = move_block_with_http_info(id, move_block_request, opts)
1216
+ data
1217
+ end
1218
+
1219
+ # Reparent or reorder a block.
1220
+ # @param id [String] Block id.
1221
+ # @param move_block_request [MoveBlockRequest]
1222
+ # @param [Hash] opts the optional parameters
1223
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1224
+ # @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.
1225
+ # @return [Array<(SuccessFlag, Integer, Hash)>] SuccessFlag data, response status code and response headers
1226
+ def move_block_with_http_info(id, move_block_request, opts = {})
1227
+ if @api_client.config.debugging
1228
+ @api_client.config.logger.debug 'Calling API: NotesApi.move_block ...'
1229
+ end
1230
+ # verify the required parameter 'id' is set
1231
+ if @api_client.config.client_side_validation && id.nil?
1232
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.move_block"
1233
+ end
1234
+ # verify the required parameter 'move_block_request' is set
1235
+ if @api_client.config.client_side_validation && move_block_request.nil?
1236
+ fail ArgumentError, "Missing the required parameter 'move_block_request' when calling NotesApi.move_block"
1237
+ end
1238
+ # resource path
1239
+ local_var_path = '/v1/notes/blocks/{id}/move'.sub('{id}', CGI.escape(id.to_s))
1240
+
1241
+ # query parameters
1242
+ query_params = opts[:query_params] || {}
1243
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
1244
+
1245
+ # header parameters
1246
+ header_params = opts[:header_params] || {}
1247
+ # HTTP header 'Accept' (if needed)
1248
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1249
+ # HTTP header 'Content-Type'
1250
+ content_type = @api_client.select_header_content_type(['application/json'])
1251
+ if !content_type.nil?
1252
+ header_params['Content-Type'] = content_type
1253
+ end
1254
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
1255
+
1256
+ # form parameters
1257
+ form_params = opts[:form_params] || {}
1258
+
1259
+ # http body (model)
1260
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(move_block_request)
1261
+
1262
+ # return_type
1263
+ return_type = opts[:debug_return_type] || 'SuccessFlag'
1264
+
1265
+ # auth_names
1266
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1267
+
1268
+ new_options = opts.merge(
1269
+ :operation => :"NotesApi.move_block",
1270
+ :header_params => header_params,
1271
+ :query_params => query_params,
1272
+ :form_params => form_params,
1273
+ :body => post_body,
1274
+ :auth_names => auth_names,
1275
+ :return_type => return_type
1276
+ )
1277
+
1278
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1279
+ if @api_client.config.debugging
1280
+ @api_client.config.logger.debug "API called: NotesApi#move_block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1281
+ end
1282
+ return data, status_code, headers
1283
+ end
1284
+
1285
+ # Rotate the share token, invalidating any outstanding URLs.
1286
+ # @param id [String] Note id.
1287
+ # @param [Hash] opts the optional parameters
1288
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1289
+ # @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.
1290
+ # @return [ShareSettings]
1291
+ def rotate_note_share_token(id, opts = {})
1292
+ data, _status_code, _headers = rotate_note_share_token_with_http_info(id, opts)
1293
+ data
1294
+ end
1295
+
1296
+ # Rotate the share token, invalidating any outstanding URLs.
1297
+ # @param id [String] Note id.
1298
+ # @param [Hash] opts the optional parameters
1299
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1300
+ # @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.
1301
+ # @return [Array<(ShareSettings, Integer, Hash)>] ShareSettings data, response status code and response headers
1302
+ def rotate_note_share_token_with_http_info(id, opts = {})
1303
+ if @api_client.config.debugging
1304
+ @api_client.config.logger.debug 'Calling API: NotesApi.rotate_note_share_token ...'
1305
+ end
1306
+ # verify the required parameter 'id' is set
1307
+ if @api_client.config.client_side_validation && id.nil?
1308
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.rotate_note_share_token"
1309
+ end
1310
+ # resource path
1311
+ local_var_path = '/v1/notes/{id}/share/rotate'.sub('{id}', CGI.escape(id.to_s))
1312
+
1313
+ # query parameters
1314
+ query_params = opts[:query_params] || {}
1315
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
1316
+
1317
+ # header parameters
1318
+ header_params = opts[:header_params] || {}
1319
+ # HTTP header 'Accept' (if needed)
1320
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1321
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
1322
+
1323
+ # form parameters
1324
+ form_params = opts[:form_params] || {}
1325
+
1326
+ # http body (model)
1327
+ post_body = opts[:debug_body]
1328
+
1329
+ # return_type
1330
+ return_type = opts[:debug_return_type] || 'ShareSettings'
1331
+
1332
+ # auth_names
1333
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1334
+
1335
+ new_options = opts.merge(
1336
+ :operation => :"NotesApi.rotate_note_share_token",
1337
+ :header_params => header_params,
1338
+ :query_params => query_params,
1339
+ :form_params => form_params,
1340
+ :body => post_body,
1341
+ :auth_names => auth_names,
1342
+ :return_type => return_type
1343
+ )
1344
+
1345
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1346
+ if @api_client.config.debugging
1347
+ @api_client.config.logger.debug "API called: NotesApi#rotate_note_share_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1348
+ end
1349
+ return data, status_code, headers
1350
+ end
1351
+
1352
+ # Update a block (partial).
1353
+ # @param id [String] Block id.
1354
+ # @param update_block_request [UpdateBlockRequest]
1355
+ # @param [Hash] opts the optional parameters
1356
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1357
+ # @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.
1358
+ # @return [Block]
1359
+ def update_block(id, update_block_request, opts = {})
1360
+ data, _status_code, _headers = update_block_with_http_info(id, update_block_request, opts)
1361
+ data
1362
+ end
1363
+
1364
+ # Update a block (partial).
1365
+ # @param id [String] Block id.
1366
+ # @param update_block_request [UpdateBlockRequest]
1367
+ # @param [Hash] opts the optional parameters
1368
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1369
+ # @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.
1370
+ # @return [Array<(Block, Integer, Hash)>] Block data, response status code and response headers
1371
+ def update_block_with_http_info(id, update_block_request, opts = {})
1372
+ if @api_client.config.debugging
1373
+ @api_client.config.logger.debug 'Calling API: NotesApi.update_block ...'
1374
+ end
1375
+ # verify the required parameter 'id' is set
1376
+ if @api_client.config.client_side_validation && id.nil?
1377
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.update_block"
1378
+ end
1379
+ # verify the required parameter 'update_block_request' is set
1380
+ if @api_client.config.client_side_validation && update_block_request.nil?
1381
+ fail ArgumentError, "Missing the required parameter 'update_block_request' when calling NotesApi.update_block"
1382
+ end
1383
+ # resource path
1384
+ local_var_path = '/v1/notes/blocks/{id}'.sub('{id}', CGI.escape(id.to_s))
1385
+
1386
+ # query parameters
1387
+ query_params = opts[:query_params] || {}
1388
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
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
+ # HTTP header 'Content-Type'
1395
+ content_type = @api_client.select_header_content_type(['application/json'])
1396
+ if !content_type.nil?
1397
+ header_params['Content-Type'] = content_type
1398
+ end
1399
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
1400
+
1401
+ # form parameters
1402
+ form_params = opts[:form_params] || {}
1403
+
1404
+ # http body (model)
1405
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_block_request)
1406
+
1407
+ # return_type
1408
+ return_type = opts[:debug_return_type] || 'Block'
1409
+
1410
+ # auth_names
1411
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1412
+
1413
+ new_options = opts.merge(
1414
+ :operation => :"NotesApi.update_block",
1415
+ :header_params => header_params,
1416
+ :query_params => query_params,
1417
+ :form_params => form_params,
1418
+ :body => post_body,
1419
+ :auth_names => auth_names,
1420
+ :return_type => return_type
1421
+ )
1422
+
1423
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1424
+ if @api_client.config.debugging
1425
+ @api_client.config.logger.debug "API called: NotesApi#update_block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1426
+ end
1427
+ return data, status_code, headers
1428
+ end
1429
+
1430
+ # Update a note (partial).
1431
+ # @param id [String] Note id.
1432
+ # @param update_note_request [UpdateNoteRequest]
1433
+ # @param [Hash] opts the optional parameters
1434
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1435
+ # @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.
1436
+ # @return [Note]
1437
+ def update_note(id, update_note_request, opts = {})
1438
+ data, _status_code, _headers = update_note_with_http_info(id, update_note_request, opts)
1439
+ data
1440
+ end
1441
+
1442
+ # Update a note (partial).
1443
+ # @param id [String] Note id.
1444
+ # @param update_note_request [UpdateNoteRequest]
1445
+ # @param [Hash] opts the optional parameters
1446
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1447
+ # @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.
1448
+ # @return [Array<(Note, Integer, Hash)>] Note data, response status code and response headers
1449
+ def update_note_with_http_info(id, update_note_request, opts = {})
1450
+ if @api_client.config.debugging
1451
+ @api_client.config.logger.debug 'Calling API: NotesApi.update_note ...'
1452
+ end
1453
+ # verify the required parameter 'id' is set
1454
+ if @api_client.config.client_side_validation && id.nil?
1455
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.update_note"
1456
+ end
1457
+ # verify the required parameter 'update_note_request' is set
1458
+ if @api_client.config.client_side_validation && update_note_request.nil?
1459
+ fail ArgumentError, "Missing the required parameter 'update_note_request' when calling NotesApi.update_note"
1460
+ end
1461
+ # resource path
1462
+ local_var_path = '/v1/notes/{id}'.sub('{id}', CGI.escape(id.to_s))
1463
+
1464
+ # query parameters
1465
+ query_params = opts[:query_params] || {}
1466
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
1467
+
1468
+ # header parameters
1469
+ header_params = opts[:header_params] || {}
1470
+ # HTTP header 'Accept' (if needed)
1471
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1472
+ # HTTP header 'Content-Type'
1473
+ content_type = @api_client.select_header_content_type(['application/json'])
1474
+ if !content_type.nil?
1475
+ header_params['Content-Type'] = content_type
1476
+ end
1477
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
1478
+
1479
+ # form parameters
1480
+ form_params = opts[:form_params] || {}
1481
+
1482
+ # http body (model)
1483
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_note_request)
1484
+
1485
+ # return_type
1486
+ return_type = opts[:debug_return_type] || 'Note'
1487
+
1488
+ # auth_names
1489
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1490
+
1491
+ new_options = opts.merge(
1492
+ :operation => :"NotesApi.update_note",
1493
+ :header_params => header_params,
1494
+ :query_params => query_params,
1495
+ :form_params => form_params,
1496
+ :body => post_body,
1497
+ :auth_names => auth_names,
1498
+ :return_type => return_type
1499
+ )
1500
+
1501
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1502
+ if @api_client.config.debugging
1503
+ @api_client.config.logger.debug "API called: NotesApi#update_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1504
+ end
1505
+ return data, status_code, headers
1506
+ end
1507
+
1508
+ # Edit a comment.
1509
+ # Only the comment author can edit. The note owner can delete via `DELETE` but cannot rewrite.
1510
+ # @param id [String] Note id.
1511
+ # @param comment_id [String] Comment id.
1512
+ # @param update_comment_request [UpdateCommentRequest]
1513
+ # @param [Hash] opts the optional parameters
1514
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1515
+ # @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.
1516
+ # @return [CommentMutationResponse]
1517
+ def update_note_comment(id, comment_id, update_comment_request, opts = {})
1518
+ data, _status_code, _headers = update_note_comment_with_http_info(id, comment_id, update_comment_request, opts)
1519
+ data
1520
+ end
1521
+
1522
+ # Edit a comment.
1523
+ # Only the comment author can edit. The note owner can delete via &#x60;DELETE&#x60; but cannot rewrite.
1524
+ # @param id [String] Note id.
1525
+ # @param comment_id [String] Comment id.
1526
+ # @param update_comment_request [UpdateCommentRequest]
1527
+ # @param [Hash] opts the optional parameters
1528
+ # @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 &#x60;provider&#x60;. If omitted on a list endpoint the call fans out across every connected account.
1529
+ # @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.
1530
+ # @return [Array<(CommentMutationResponse, Integer, Hash)>] CommentMutationResponse data, response status code and response headers
1531
+ def update_note_comment_with_http_info(id, comment_id, update_comment_request, opts = {})
1532
+ if @api_client.config.debugging
1533
+ @api_client.config.logger.debug 'Calling API: NotesApi.update_note_comment ...'
1534
+ end
1535
+ # verify the required parameter 'id' is set
1536
+ if @api_client.config.client_side_validation && id.nil?
1537
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.update_note_comment"
1538
+ end
1539
+ # verify the required parameter 'comment_id' is set
1540
+ if @api_client.config.client_side_validation && comment_id.nil?
1541
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling NotesApi.update_note_comment"
1542
+ end
1543
+ # verify the required parameter 'update_comment_request' is set
1544
+ if @api_client.config.client_side_validation && update_comment_request.nil?
1545
+ fail ArgumentError, "Missing the required parameter 'update_comment_request' when calling NotesApi.update_note_comment"
1546
+ end
1547
+ # resource path
1548
+ local_var_path = '/v1/notes/{id}/comments/{commentId}'.sub('{id}', CGI.escape(id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s))
1549
+
1550
+ # query parameters
1551
+ query_params = opts[:query_params] || {}
1552
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
1553
+
1554
+ # header parameters
1555
+ header_params = opts[:header_params] || {}
1556
+ # HTTP header 'Accept' (if needed)
1557
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1558
+ # HTTP header 'Content-Type'
1559
+ content_type = @api_client.select_header_content_type(['application/json'])
1560
+ if !content_type.nil?
1561
+ header_params['Content-Type'] = content_type
1562
+ end
1563
+ header_params[:'X-Workspace-ID'] = opts[:'x_workspace_id'] if !opts[:'x_workspace_id'].nil?
1564
+
1565
+ # form parameters
1566
+ form_params = opts[:form_params] || {}
1567
+
1568
+ # http body (model)
1569
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_comment_request)
1570
+
1571
+ # return_type
1572
+ return_type = opts[:debug_return_type] || 'CommentMutationResponse'
1573
+
1574
+ # auth_names
1575
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1576
+
1577
+ new_options = opts.merge(
1578
+ :operation => :"NotesApi.update_note_comment",
1579
+ :header_params => header_params,
1580
+ :query_params => query_params,
1581
+ :form_params => form_params,
1582
+ :body => post_body,
1583
+ :auth_names => auth_names,
1584
+ :return_type => return_type
1585
+ )
1586
+
1587
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1588
+ if @api_client.config.debugging
1589
+ @api_client.config.logger.debug "API called: NotesApi#update_note_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1590
+ end
1591
+ return data, status_code, headers
1592
+ end
1593
+
1594
+ # @param org [String]
1595
+ # @param workspace [String]
1596
+ # @param request_body [Hash<String, Object>]
1597
+ # @param [Hash] opts the optional parameters
1598
+ # @return [Hash<String, Object>]
1599
+ def workspace_create_note(org, workspace, request_body, opts = {})
1600
+ data, _status_code, _headers = workspace_create_note_with_http_info(org, workspace, request_body, opts)
1601
+ data
1602
+ end
1603
+
1604
+ # @param org [String]
1605
+ # @param workspace [String]
1606
+ # @param request_body [Hash<String, Object>]
1607
+ # @param [Hash] opts the optional parameters
1608
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
1609
+ def workspace_create_note_with_http_info(org, workspace, request_body, opts = {})
1610
+ if @api_client.config.debugging
1611
+ @api_client.config.logger.debug 'Calling API: NotesApi.workspace_create_note ...'
1612
+ end
1613
+ # verify the required parameter 'org' is set
1614
+ if @api_client.config.client_side_validation && org.nil?
1615
+ fail ArgumentError, "Missing the required parameter 'org' when calling NotesApi.workspace_create_note"
1616
+ end
1617
+ # verify the required parameter 'workspace' is set
1618
+ if @api_client.config.client_side_validation && workspace.nil?
1619
+ fail ArgumentError, "Missing the required parameter 'workspace' when calling NotesApi.workspace_create_note"
1620
+ end
1621
+ # verify the required parameter 'request_body' is set
1622
+ if @api_client.config.client_side_validation && request_body.nil?
1623
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling NotesApi.workspace_create_note"
1624
+ end
1625
+ # resource path
1626
+ local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/notes'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
1627
+
1628
+ # query parameters
1629
+ query_params = opts[:query_params] || {}
1630
+
1631
+ # header parameters
1632
+ header_params = opts[:header_params] || {}
1633
+ # HTTP header 'Accept' (if needed)
1634
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1635
+ # HTTP header 'Content-Type'
1636
+ content_type = @api_client.select_header_content_type(['application/json'])
1637
+ if !content_type.nil?
1638
+ header_params['Content-Type'] = content_type
1639
+ end
1640
+
1641
+ # form parameters
1642
+ form_params = opts[:form_params] || {}
1643
+
1644
+ # http body (model)
1645
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
1646
+
1647
+ # return_type
1648
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1649
+
1650
+ # auth_names
1651
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1652
+
1653
+ new_options = opts.merge(
1654
+ :operation => :"NotesApi.workspace_create_note",
1655
+ :header_params => header_params,
1656
+ :query_params => query_params,
1657
+ :form_params => form_params,
1658
+ :body => post_body,
1659
+ :auth_names => auth_names,
1660
+ :return_type => return_type
1661
+ )
1662
+
1663
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1664
+ if @api_client.config.debugging
1665
+ @api_client.config.logger.debug "API called: NotesApi#workspace_create_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1666
+ end
1667
+ return data, status_code, headers
1668
+ end
1669
+
1670
+ # @param org [String]
1671
+ # @param workspace [String]
1672
+ # @param id [String]
1673
+ # @param request_body [Hash<String, Object>]
1674
+ # @param [Hash] opts the optional parameters
1675
+ # @return [Hash<String, Object>]
1676
+ def workspace_create_note_block(org, workspace, id, request_body, opts = {})
1677
+ data, _status_code, _headers = workspace_create_note_block_with_http_info(org, workspace, id, request_body, opts)
1678
+ data
1679
+ end
1680
+
1681
+ # @param org [String]
1682
+ # @param workspace [String]
1683
+ # @param id [String]
1684
+ # @param request_body [Hash<String, Object>]
1685
+ # @param [Hash] opts the optional parameters
1686
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
1687
+ def workspace_create_note_block_with_http_info(org, workspace, id, request_body, opts = {})
1688
+ if @api_client.config.debugging
1689
+ @api_client.config.logger.debug 'Calling API: NotesApi.workspace_create_note_block ...'
1690
+ end
1691
+ # verify the required parameter 'org' is set
1692
+ if @api_client.config.client_side_validation && org.nil?
1693
+ fail ArgumentError, "Missing the required parameter 'org' when calling NotesApi.workspace_create_note_block"
1694
+ end
1695
+ # verify the required parameter 'workspace' is set
1696
+ if @api_client.config.client_side_validation && workspace.nil?
1697
+ fail ArgumentError, "Missing the required parameter 'workspace' when calling NotesApi.workspace_create_note_block"
1698
+ end
1699
+ # verify the required parameter 'id' is set
1700
+ if @api_client.config.client_side_validation && id.nil?
1701
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.workspace_create_note_block"
1702
+ end
1703
+ # verify the required parameter 'request_body' is set
1704
+ if @api_client.config.client_side_validation && request_body.nil?
1705
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling NotesApi.workspace_create_note_block"
1706
+ end
1707
+ # resource path
1708
+ local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/notes/{id}/blocks'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
1709
+
1710
+ # query parameters
1711
+ query_params = opts[:query_params] || {}
1712
+
1713
+ # header parameters
1714
+ header_params = opts[:header_params] || {}
1715
+ # HTTP header 'Accept' (if needed)
1716
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1717
+ # HTTP header 'Content-Type'
1718
+ content_type = @api_client.select_header_content_type(['application/json'])
1719
+ if !content_type.nil?
1720
+ header_params['Content-Type'] = content_type
1721
+ end
1722
+
1723
+ # form parameters
1724
+ form_params = opts[:form_params] || {}
1725
+
1726
+ # http body (model)
1727
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
1728
+
1729
+ # return_type
1730
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1731
+
1732
+ # auth_names
1733
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1734
+
1735
+ new_options = opts.merge(
1736
+ :operation => :"NotesApi.workspace_create_note_block",
1737
+ :header_params => header_params,
1738
+ :query_params => query_params,
1739
+ :form_params => form_params,
1740
+ :body => post_body,
1741
+ :auth_names => auth_names,
1742
+ :return_type => return_type
1743
+ )
1744
+
1745
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1746
+ if @api_client.config.debugging
1747
+ @api_client.config.logger.debug "API called: NotesApi#workspace_create_note_block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1748
+ end
1749
+ return data, status_code, headers
1750
+ end
1751
+
1752
+ # @param org [String]
1753
+ # @param workspace [String]
1754
+ # @param id [String]
1755
+ # @param [Hash] opts the optional parameters
1756
+ # @return [nil]
1757
+ def workspace_delete_note(org, workspace, id, opts = {})
1758
+ workspace_delete_note_with_http_info(org, workspace, id, opts)
1759
+ nil
1760
+ end
1761
+
1762
+ # @param org [String]
1763
+ # @param workspace [String]
1764
+ # @param id [String]
1765
+ # @param [Hash] opts the optional parameters
1766
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1767
+ def workspace_delete_note_with_http_info(org, workspace, id, opts = {})
1768
+ if @api_client.config.debugging
1769
+ @api_client.config.logger.debug 'Calling API: NotesApi.workspace_delete_note ...'
1770
+ end
1771
+ # verify the required parameter 'org' is set
1772
+ if @api_client.config.client_side_validation && org.nil?
1773
+ fail ArgumentError, "Missing the required parameter 'org' when calling NotesApi.workspace_delete_note"
1774
+ end
1775
+ # verify the required parameter 'workspace' is set
1776
+ if @api_client.config.client_side_validation && workspace.nil?
1777
+ fail ArgumentError, "Missing the required parameter 'workspace' when calling NotesApi.workspace_delete_note"
1778
+ end
1779
+ # verify the required parameter 'id' is set
1780
+ if @api_client.config.client_side_validation && id.nil?
1781
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.workspace_delete_note"
1782
+ end
1783
+ # resource path
1784
+ local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/notes/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
1785
+
1786
+ # query parameters
1787
+ query_params = opts[:query_params] || {}
1788
+
1789
+ # header parameters
1790
+ header_params = opts[:header_params] || {}
1791
+ # HTTP header 'Accept' (if needed)
1792
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1793
+
1794
+ # form parameters
1795
+ form_params = opts[:form_params] || {}
1796
+
1797
+ # http body (model)
1798
+ post_body = opts[:debug_body]
1799
+
1800
+ # return_type
1801
+ return_type = opts[:debug_return_type]
1802
+
1803
+ # auth_names
1804
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1805
+
1806
+ new_options = opts.merge(
1807
+ :operation => :"NotesApi.workspace_delete_note",
1808
+ :header_params => header_params,
1809
+ :query_params => query_params,
1810
+ :form_params => form_params,
1811
+ :body => post_body,
1812
+ :auth_names => auth_names,
1813
+ :return_type => return_type
1814
+ )
1815
+
1816
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1817
+ if @api_client.config.debugging
1818
+ @api_client.config.logger.debug "API called: NotesApi#workspace_delete_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1819
+ end
1820
+ return data, status_code, headers
1821
+ end
1822
+
1823
+ # @param org [String]
1824
+ # @param workspace [String]
1825
+ # @param id [String]
1826
+ # @param [Hash] opts the optional parameters
1827
+ # @return [nil]
1828
+ def workspace_delete_note_block(org, workspace, id, opts = {})
1829
+ workspace_delete_note_block_with_http_info(org, workspace, id, opts)
1830
+ nil
1831
+ end
1832
+
1833
+ # @param org [String]
1834
+ # @param workspace [String]
1835
+ # @param id [String]
1836
+ # @param [Hash] opts the optional parameters
1837
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1838
+ def workspace_delete_note_block_with_http_info(org, workspace, id, opts = {})
1839
+ if @api_client.config.debugging
1840
+ @api_client.config.logger.debug 'Calling API: NotesApi.workspace_delete_note_block ...'
1841
+ end
1842
+ # verify the required parameter 'org' is set
1843
+ if @api_client.config.client_side_validation && org.nil?
1844
+ fail ArgumentError, "Missing the required parameter 'org' when calling NotesApi.workspace_delete_note_block"
1845
+ end
1846
+ # verify the required parameter 'workspace' is set
1847
+ if @api_client.config.client_side_validation && workspace.nil?
1848
+ fail ArgumentError, "Missing the required parameter 'workspace' when calling NotesApi.workspace_delete_note_block"
1849
+ end
1850
+ # verify the required parameter 'id' is set
1851
+ if @api_client.config.client_side_validation && id.nil?
1852
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.workspace_delete_note_block"
1853
+ end
1854
+ # resource path
1855
+ local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/notes/blocks/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
1856
+
1857
+ # query parameters
1858
+ query_params = opts[:query_params] || {}
1859
+
1860
+ # header parameters
1861
+ header_params = opts[:header_params] || {}
1862
+ # HTTP header 'Accept' (if needed)
1863
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1864
+
1865
+ # form parameters
1866
+ form_params = opts[:form_params] || {}
1867
+
1868
+ # http body (model)
1869
+ post_body = opts[:debug_body]
1870
+
1871
+ # return_type
1872
+ return_type = opts[:debug_return_type]
1873
+
1874
+ # auth_names
1875
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1876
+
1877
+ new_options = opts.merge(
1878
+ :operation => :"NotesApi.workspace_delete_note_block",
1879
+ :header_params => header_params,
1880
+ :query_params => query_params,
1881
+ :form_params => form_params,
1882
+ :body => post_body,
1883
+ :auth_names => auth_names,
1884
+ :return_type => return_type
1885
+ )
1886
+
1887
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1888
+ if @api_client.config.debugging
1889
+ @api_client.config.logger.debug "API called: NotesApi#workspace_delete_note_block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1890
+ end
1891
+ return data, status_code, headers
1892
+ end
1893
+
1894
+ # @param org [String]
1895
+ # @param workspace [String]
1896
+ # @param id [String]
1897
+ # @param [Hash] opts the optional parameters
1898
+ # @return [Hash<String, Object>]
1899
+ def workspace_get_note(org, workspace, id, opts = {})
1900
+ data, _status_code, _headers = workspace_get_note_with_http_info(org, workspace, id, opts)
1901
+ data
1902
+ end
1903
+
1904
+ # @param org [String]
1905
+ # @param workspace [String]
1906
+ # @param id [String]
1907
+ # @param [Hash] opts the optional parameters
1908
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
1909
+ def workspace_get_note_with_http_info(org, workspace, id, opts = {})
1910
+ if @api_client.config.debugging
1911
+ @api_client.config.logger.debug 'Calling API: NotesApi.workspace_get_note ...'
1912
+ end
1913
+ # verify the required parameter 'org' is set
1914
+ if @api_client.config.client_side_validation && org.nil?
1915
+ fail ArgumentError, "Missing the required parameter 'org' when calling NotesApi.workspace_get_note"
1916
+ end
1917
+ # verify the required parameter 'workspace' is set
1918
+ if @api_client.config.client_side_validation && workspace.nil?
1919
+ fail ArgumentError, "Missing the required parameter 'workspace' when calling NotesApi.workspace_get_note"
1920
+ end
1921
+ # verify the required parameter 'id' is set
1922
+ if @api_client.config.client_side_validation && id.nil?
1923
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.workspace_get_note"
1924
+ end
1925
+ # resource path
1926
+ local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/notes/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
1927
+
1928
+ # query parameters
1929
+ query_params = opts[:query_params] || {}
1930
+
1931
+ # header parameters
1932
+ header_params = opts[:header_params] || {}
1933
+ # HTTP header 'Accept' (if needed)
1934
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1935
+
1936
+ # form parameters
1937
+ form_params = opts[:form_params] || {}
1938
+
1939
+ # http body (model)
1940
+ post_body = opts[:debug_body]
1941
+
1942
+ # return_type
1943
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1944
+
1945
+ # auth_names
1946
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
1947
+
1948
+ new_options = opts.merge(
1949
+ :operation => :"NotesApi.workspace_get_note",
1950
+ :header_params => header_params,
1951
+ :query_params => query_params,
1952
+ :form_params => form_params,
1953
+ :body => post_body,
1954
+ :auth_names => auth_names,
1955
+ :return_type => return_type
1956
+ )
1957
+
1958
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1959
+ if @api_client.config.debugging
1960
+ @api_client.config.logger.debug "API called: NotesApi#workspace_get_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1961
+ end
1962
+ return data, status_code, headers
1963
+ end
1964
+
1965
+ # @param org [String]
1966
+ # @param workspace [String]
1967
+ # @param id [String]
1968
+ # @param [Hash] opts the optional parameters
1969
+ # @return [Hash<String, Object>]
1970
+ def workspace_get_note_block(org, workspace, id, opts = {})
1971
+ data, _status_code, _headers = workspace_get_note_block_with_http_info(org, workspace, id, opts)
1972
+ data
1973
+ end
1974
+
1975
+ # @param org [String]
1976
+ # @param workspace [String]
1977
+ # @param id [String]
1978
+ # @param [Hash] opts the optional parameters
1979
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
1980
+ def workspace_get_note_block_with_http_info(org, workspace, id, opts = {})
1981
+ if @api_client.config.debugging
1982
+ @api_client.config.logger.debug 'Calling API: NotesApi.workspace_get_note_block ...'
1983
+ end
1984
+ # verify the required parameter 'org' is set
1985
+ if @api_client.config.client_side_validation && org.nil?
1986
+ fail ArgumentError, "Missing the required parameter 'org' when calling NotesApi.workspace_get_note_block"
1987
+ end
1988
+ # verify the required parameter 'workspace' is set
1989
+ if @api_client.config.client_side_validation && workspace.nil?
1990
+ fail ArgumentError, "Missing the required parameter 'workspace' when calling NotesApi.workspace_get_note_block"
1991
+ end
1992
+ # verify the required parameter 'id' is set
1993
+ if @api_client.config.client_side_validation && id.nil?
1994
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.workspace_get_note_block"
1995
+ end
1996
+ # resource path
1997
+ local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/notes/blocks/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
1998
+
1999
+ # query parameters
2000
+ query_params = opts[:query_params] || {}
2001
+
2002
+ # header parameters
2003
+ header_params = opts[:header_params] || {}
2004
+ # HTTP header 'Accept' (if needed)
2005
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2006
+
2007
+ # form parameters
2008
+ form_params = opts[:form_params] || {}
2009
+
2010
+ # http body (model)
2011
+ post_body = opts[:debug_body]
2012
+
2013
+ # return_type
2014
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
2015
+
2016
+ # auth_names
2017
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
2018
+
2019
+ new_options = opts.merge(
2020
+ :operation => :"NotesApi.workspace_get_note_block",
2021
+ :header_params => header_params,
2022
+ :query_params => query_params,
2023
+ :form_params => form_params,
2024
+ :body => post_body,
2025
+ :auth_names => auth_names,
2026
+ :return_type => return_type
2027
+ )
2028
+
2029
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2030
+ if @api_client.config.debugging
2031
+ @api_client.config.logger.debug "API called: NotesApi#workspace_get_note_block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2032
+ end
2033
+ return data, status_code, headers
2034
+ end
2035
+
2036
+ # @param org [String]
2037
+ # @param workspace [String]
2038
+ # @param id [String]
2039
+ # @param [Hash] opts the optional parameters
2040
+ # @return [Hash<String, Object>]
2041
+ def workspace_list_note_blocks(org, workspace, id, opts = {})
2042
+ data, _status_code, _headers = workspace_list_note_blocks_with_http_info(org, workspace, id, opts)
2043
+ data
2044
+ end
2045
+
2046
+ # @param org [String]
2047
+ # @param workspace [String]
2048
+ # @param id [String]
2049
+ # @param [Hash] opts the optional parameters
2050
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
2051
+ def workspace_list_note_blocks_with_http_info(org, workspace, id, opts = {})
2052
+ if @api_client.config.debugging
2053
+ @api_client.config.logger.debug 'Calling API: NotesApi.workspace_list_note_blocks ...'
2054
+ end
2055
+ # verify the required parameter 'org' is set
2056
+ if @api_client.config.client_side_validation && org.nil?
2057
+ fail ArgumentError, "Missing the required parameter 'org' when calling NotesApi.workspace_list_note_blocks"
2058
+ end
2059
+ # verify the required parameter 'workspace' is set
2060
+ if @api_client.config.client_side_validation && workspace.nil?
2061
+ fail ArgumentError, "Missing the required parameter 'workspace' when calling NotesApi.workspace_list_note_blocks"
2062
+ end
2063
+ # verify the required parameter 'id' is set
2064
+ if @api_client.config.client_side_validation && id.nil?
2065
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.workspace_list_note_blocks"
2066
+ end
2067
+ # resource path
2068
+ local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/notes/{id}/blocks'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
2069
+
2070
+ # query parameters
2071
+ query_params = opts[:query_params] || {}
2072
+
2073
+ # header parameters
2074
+ header_params = opts[:header_params] || {}
2075
+ # HTTP header 'Accept' (if needed)
2076
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2077
+
2078
+ # form parameters
2079
+ form_params = opts[:form_params] || {}
2080
+
2081
+ # http body (model)
2082
+ post_body = opts[:debug_body]
2083
+
2084
+ # return_type
2085
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
2086
+
2087
+ # auth_names
2088
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
2089
+
2090
+ new_options = opts.merge(
2091
+ :operation => :"NotesApi.workspace_list_note_blocks",
2092
+ :header_params => header_params,
2093
+ :query_params => query_params,
2094
+ :form_params => form_params,
2095
+ :body => post_body,
2096
+ :auth_names => auth_names,
2097
+ :return_type => return_type
2098
+ )
2099
+
2100
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2101
+ if @api_client.config.debugging
2102
+ @api_client.config.logger.debug "API called: NotesApi#workspace_list_note_blocks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2103
+ end
2104
+ return data, status_code, headers
2105
+ end
2106
+
2107
+ # @param org [String]
2108
+ # @param workspace [String]
2109
+ # @param [Hash] opts the optional parameters
2110
+ # @return [Hash<String, Object>]
2111
+ def workspace_list_notes(org, workspace, opts = {})
2112
+ data, _status_code, _headers = workspace_list_notes_with_http_info(org, workspace, opts)
2113
+ data
2114
+ end
2115
+
2116
+ # @param org [String]
2117
+ # @param workspace [String]
2118
+ # @param [Hash] opts the optional parameters
2119
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
2120
+ def workspace_list_notes_with_http_info(org, workspace, opts = {})
2121
+ if @api_client.config.debugging
2122
+ @api_client.config.logger.debug 'Calling API: NotesApi.workspace_list_notes ...'
2123
+ end
2124
+ # verify the required parameter 'org' is set
2125
+ if @api_client.config.client_side_validation && org.nil?
2126
+ fail ArgumentError, "Missing the required parameter 'org' when calling NotesApi.workspace_list_notes"
2127
+ end
2128
+ # verify the required parameter 'workspace' is set
2129
+ if @api_client.config.client_side_validation && workspace.nil?
2130
+ fail ArgumentError, "Missing the required parameter 'workspace' when calling NotesApi.workspace_list_notes"
2131
+ end
2132
+ # resource path
2133
+ local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/notes'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s))
2134
+
2135
+ # query parameters
2136
+ query_params = opts[:query_params] || {}
2137
+
2138
+ # header parameters
2139
+ header_params = opts[:header_params] || {}
2140
+ # HTTP header 'Accept' (if needed)
2141
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2142
+
2143
+ # form parameters
2144
+ form_params = opts[:form_params] || {}
2145
+
2146
+ # http body (model)
2147
+ post_body = opts[:debug_body]
2148
+
2149
+ # return_type
2150
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
2151
+
2152
+ # auth_names
2153
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
2154
+
2155
+ new_options = opts.merge(
2156
+ :operation => :"NotesApi.workspace_list_notes",
2157
+ :header_params => header_params,
2158
+ :query_params => query_params,
2159
+ :form_params => form_params,
2160
+ :body => post_body,
2161
+ :auth_names => auth_names,
2162
+ :return_type => return_type
2163
+ )
2164
+
2165
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2166
+ if @api_client.config.debugging
2167
+ @api_client.config.logger.debug "API called: NotesApi#workspace_list_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2168
+ end
2169
+ return data, status_code, headers
2170
+ end
2171
+
2172
+ # @param org [String]
2173
+ # @param workspace [String]
2174
+ # @param id [String]
2175
+ # @param request_body [Hash<String, Object>]
2176
+ # @param [Hash] opts the optional parameters
2177
+ # @return [Hash<String, Object>]
2178
+ def workspace_move_note_block(org, workspace, id, request_body, opts = {})
2179
+ data, _status_code, _headers = workspace_move_note_block_with_http_info(org, workspace, id, request_body, opts)
2180
+ data
2181
+ end
2182
+
2183
+ # @param org [String]
2184
+ # @param workspace [String]
2185
+ # @param id [String]
2186
+ # @param request_body [Hash<String, Object>]
2187
+ # @param [Hash] opts the optional parameters
2188
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
2189
+ def workspace_move_note_block_with_http_info(org, workspace, id, request_body, opts = {})
2190
+ if @api_client.config.debugging
2191
+ @api_client.config.logger.debug 'Calling API: NotesApi.workspace_move_note_block ...'
2192
+ end
2193
+ # verify the required parameter 'org' is set
2194
+ if @api_client.config.client_side_validation && org.nil?
2195
+ fail ArgumentError, "Missing the required parameter 'org' when calling NotesApi.workspace_move_note_block"
2196
+ end
2197
+ # verify the required parameter 'workspace' is set
2198
+ if @api_client.config.client_side_validation && workspace.nil?
2199
+ fail ArgumentError, "Missing the required parameter 'workspace' when calling NotesApi.workspace_move_note_block"
2200
+ end
2201
+ # verify the required parameter 'id' is set
2202
+ if @api_client.config.client_side_validation && id.nil?
2203
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.workspace_move_note_block"
2204
+ end
2205
+ # verify the required parameter 'request_body' is set
2206
+ if @api_client.config.client_side_validation && request_body.nil?
2207
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling NotesApi.workspace_move_note_block"
2208
+ end
2209
+ # resource path
2210
+ local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/notes/blocks/{id}/move'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
2211
+
2212
+ # query parameters
2213
+ query_params = opts[:query_params] || {}
2214
+
2215
+ # header parameters
2216
+ header_params = opts[:header_params] || {}
2217
+ # HTTP header 'Accept' (if needed)
2218
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2219
+ # HTTP header 'Content-Type'
2220
+ content_type = @api_client.select_header_content_type(['application/json'])
2221
+ if !content_type.nil?
2222
+ header_params['Content-Type'] = content_type
2223
+ end
2224
+
2225
+ # form parameters
2226
+ form_params = opts[:form_params] || {}
2227
+
2228
+ # http body (model)
2229
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
2230
+
2231
+ # return_type
2232
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
2233
+
2234
+ # auth_names
2235
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
2236
+
2237
+ new_options = opts.merge(
2238
+ :operation => :"NotesApi.workspace_move_note_block",
2239
+ :header_params => header_params,
2240
+ :query_params => query_params,
2241
+ :form_params => form_params,
2242
+ :body => post_body,
2243
+ :auth_names => auth_names,
2244
+ :return_type => return_type
2245
+ )
2246
+
2247
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2248
+ if @api_client.config.debugging
2249
+ @api_client.config.logger.debug "API called: NotesApi#workspace_move_note_block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2250
+ end
2251
+ return data, status_code, headers
2252
+ end
2253
+
2254
+ # @param org [String]
2255
+ # @param workspace [String]
2256
+ # @param id [String]
2257
+ # @param request_body [Hash<String, Object>]
2258
+ # @param [Hash] opts the optional parameters
2259
+ # @return [Hash<String, Object>]
2260
+ def workspace_update_note(org, workspace, id, request_body, opts = {})
2261
+ data, _status_code, _headers = workspace_update_note_with_http_info(org, workspace, id, request_body, opts)
2262
+ data
2263
+ end
2264
+
2265
+ # @param org [String]
2266
+ # @param workspace [String]
2267
+ # @param id [String]
2268
+ # @param request_body [Hash<String, Object>]
2269
+ # @param [Hash] opts the optional parameters
2270
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
2271
+ def workspace_update_note_with_http_info(org, workspace, id, request_body, opts = {})
2272
+ if @api_client.config.debugging
2273
+ @api_client.config.logger.debug 'Calling API: NotesApi.workspace_update_note ...'
2274
+ end
2275
+ # verify the required parameter 'org' is set
2276
+ if @api_client.config.client_side_validation && org.nil?
2277
+ fail ArgumentError, "Missing the required parameter 'org' when calling NotesApi.workspace_update_note"
2278
+ end
2279
+ # verify the required parameter 'workspace' is set
2280
+ if @api_client.config.client_side_validation && workspace.nil?
2281
+ fail ArgumentError, "Missing the required parameter 'workspace' when calling NotesApi.workspace_update_note"
2282
+ end
2283
+ # verify the required parameter 'id' is set
2284
+ if @api_client.config.client_side_validation && id.nil?
2285
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.workspace_update_note"
2286
+ end
2287
+ # verify the required parameter 'request_body' is set
2288
+ if @api_client.config.client_side_validation && request_body.nil?
2289
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling NotesApi.workspace_update_note"
2290
+ end
2291
+ # resource path
2292
+ local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/notes/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
2293
+
2294
+ # query parameters
2295
+ query_params = opts[:query_params] || {}
2296
+
2297
+ # header parameters
2298
+ header_params = opts[:header_params] || {}
2299
+ # HTTP header 'Accept' (if needed)
2300
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2301
+ # HTTP header 'Content-Type'
2302
+ content_type = @api_client.select_header_content_type(['application/json'])
2303
+ if !content_type.nil?
2304
+ header_params['Content-Type'] = content_type
2305
+ end
2306
+
2307
+ # form parameters
2308
+ form_params = opts[:form_params] || {}
2309
+
2310
+ # http body (model)
2311
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
2312
+
2313
+ # return_type
2314
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
2315
+
2316
+ # auth_names
2317
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
2318
+
2319
+ new_options = opts.merge(
2320
+ :operation => :"NotesApi.workspace_update_note",
2321
+ :header_params => header_params,
2322
+ :query_params => query_params,
2323
+ :form_params => form_params,
2324
+ :body => post_body,
2325
+ :auth_names => auth_names,
2326
+ :return_type => return_type
2327
+ )
2328
+
2329
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2330
+ if @api_client.config.debugging
2331
+ @api_client.config.logger.debug "API called: NotesApi#workspace_update_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2332
+ end
2333
+ return data, status_code, headers
2334
+ end
2335
+
2336
+ # @param org [String]
2337
+ # @param workspace [String]
2338
+ # @param id [String]
2339
+ # @param request_body [Hash<String, Object>]
2340
+ # @param [Hash] opts the optional parameters
2341
+ # @return [Hash<String, Object>]
2342
+ def workspace_update_note_block(org, workspace, id, request_body, opts = {})
2343
+ data, _status_code, _headers = workspace_update_note_block_with_http_info(org, workspace, id, request_body, opts)
2344
+ data
2345
+ end
2346
+
2347
+ # @param org [String]
2348
+ # @param workspace [String]
2349
+ # @param id [String]
2350
+ # @param request_body [Hash<String, Object>]
2351
+ # @param [Hash] opts the optional parameters
2352
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
2353
+ def workspace_update_note_block_with_http_info(org, workspace, id, request_body, opts = {})
2354
+ if @api_client.config.debugging
2355
+ @api_client.config.logger.debug 'Calling API: NotesApi.workspace_update_note_block ...'
2356
+ end
2357
+ # verify the required parameter 'org' is set
2358
+ if @api_client.config.client_side_validation && org.nil?
2359
+ fail ArgumentError, "Missing the required parameter 'org' when calling NotesApi.workspace_update_note_block"
2360
+ end
2361
+ # verify the required parameter 'workspace' is set
2362
+ if @api_client.config.client_side_validation && workspace.nil?
2363
+ fail ArgumentError, "Missing the required parameter 'workspace' when calling NotesApi.workspace_update_note_block"
2364
+ end
2365
+ # verify the required parameter 'id' is set
2366
+ if @api_client.config.client_side_validation && id.nil?
2367
+ fail ArgumentError, "Missing the required parameter 'id' when calling NotesApi.workspace_update_note_block"
2368
+ end
2369
+ # verify the required parameter 'request_body' is set
2370
+ if @api_client.config.client_side_validation && request_body.nil?
2371
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling NotesApi.workspace_update_note_block"
2372
+ end
2373
+ # resource path
2374
+ local_var_path = '/v1/organizations/{org}/workspaces/{workspace}/notes/blocks/{id}'.sub('{org}', CGI.escape(org.to_s)).sub('{workspace}', CGI.escape(workspace.to_s)).sub('{id}', CGI.escape(id.to_s))
2375
+
2376
+ # query parameters
2377
+ query_params = opts[:query_params] || {}
2378
+
2379
+ # header parameters
2380
+ header_params = opts[:header_params] || {}
2381
+ # HTTP header 'Accept' (if needed)
2382
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2383
+ # HTTP header 'Content-Type'
2384
+ content_type = @api_client.select_header_content_type(['application/json'])
2385
+ if !content_type.nil?
2386
+ header_params['Content-Type'] = content_type
2387
+ end
2388
+
2389
+ # form parameters
2390
+ form_params = opts[:form_params] || {}
2391
+
2392
+ # http body (model)
2393
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
2394
+
2395
+ # return_type
2396
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
2397
+
2398
+ # auth_names
2399
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
2400
+
2401
+ new_options = opts.merge(
2402
+ :operation => :"NotesApi.workspace_update_note_block",
2403
+ :header_params => header_params,
2404
+ :query_params => query_params,
2405
+ :form_params => form_params,
2406
+ :body => post_body,
2407
+ :auth_names => auth_names,
2408
+ :return_type => return_type
2409
+ )
2410
+
2411
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2412
+ if @api_client.config.debugging
2413
+ @api_client.config.logger.debug "API called: NotesApi#workspace_update_note_block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2414
+ end
2415
+ return data, status_code, headers
2416
+ end
2417
+ end
2418
+ end