revdoku 4.1.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/README.md +53 -30
  2. package/REFERENCE.md +41 -150
  3. package/dist/apis/DefaultApi.d.ts +72 -326
  4. package/dist/apis/DefaultApi.js +104 -614
  5. package/dist/client.d.ts +1 -14
  6. package/dist/client.js +0 -43
  7. package/dist/models/AccountIdentity.d.ts +2 -2
  8. package/dist/models/AccountIdentity.js +2 -2
  9. package/dist/models/AccountIdentityAgencyAccount.d.ts +2 -2
  10. package/dist/models/AccountIdentityAgencyAccount.js +2 -2
  11. package/dist/models/AccountIdentityPermissions.d.ts +2 -2
  12. package/dist/models/AccountIdentityPermissions.js +2 -2
  13. package/dist/models/AccountLimits.d.ts +2 -2
  14. package/dist/models/AccountLimits.js +2 -2
  15. package/dist/models/AccountList.d.ts +2 -2
  16. package/dist/models/AccountList.js +2 -2
  17. package/dist/models/ActionRequest.d.ts +2 -2
  18. package/dist/models/ActionRequest.js +2 -2
  19. package/dist/models/AgentConnection.d.ts +2 -2
  20. package/dist/models/AgentConnection.js +2 -2
  21. package/dist/models/AnalyticsMetric.d.ts +2 -2
  22. package/dist/models/AnalyticsMetric.js +2 -2
  23. package/dist/models/ApiError.d.ts +2 -2
  24. package/dist/models/ApiError.js +2 -2
  25. package/dist/models/ApiErrorError.d.ts +2 -2
  26. package/dist/models/ApiErrorError.js +2 -2
  27. package/dist/models/BrowserLink.d.ts +2 -2
  28. package/dist/models/BrowserLink.js +2 -2
  29. package/dist/models/Bucket.d.ts +5 -5
  30. package/dist/models/Bucket.js +2 -2
  31. package/dist/models/BucketAction.d.ts +2 -2
  32. package/dist/models/BucketAction.js +2 -2
  33. package/dist/models/BucketAnalytics.d.ts +2 -2
  34. package/dist/models/BucketAnalytics.js +2 -2
  35. package/dist/models/BucketAnalyticsAskAi.d.ts +2 -2
  36. package/dist/models/BucketAnalyticsAskAi.js +2 -2
  37. package/dist/models/BucketAnalyticsAskAiPagesInner.d.ts +2 -2
  38. package/dist/models/BucketAnalyticsAskAiPagesInner.js +2 -2
  39. package/dist/models/BucketAnalyticsGaps.d.ts +2 -2
  40. package/dist/models/BucketAnalyticsGaps.js +2 -2
  41. package/dist/models/BucketAnalyticsGapsSearchesWithoutResultsInner.d.ts +2 -2
  42. package/dist/models/BucketAnalyticsGapsSearchesWithoutResultsInner.js +2 -2
  43. package/dist/models/BucketAnalyticsGapsUnansweredQuestionsInner.d.ts +2 -2
  44. package/dist/models/BucketAnalyticsGapsUnansweredQuestionsInner.js +2 -2
  45. package/dist/models/BucketAnalyticsGapsUnhelpfulPagesInner.d.ts +2 -2
  46. package/dist/models/BucketAnalyticsGapsUnhelpfulPagesInner.js +2 -2
  47. package/dist/models/BucketAnalyticsPages.d.ts +2 -2
  48. package/dist/models/BucketAnalyticsPages.js +2 -2
  49. package/dist/models/BucketAnalyticsPagesMissingPagesInner.d.ts +2 -2
  50. package/dist/models/BucketAnalyticsPagesMissingPagesInner.js +2 -2
  51. package/dist/models/BucketAnalyticsPagesPagesInner.d.ts +2 -2
  52. package/dist/models/BucketAnalyticsPagesPagesInner.js +2 -2
  53. package/dist/models/BucketAnalyticsPreviousPeriod.d.ts +2 -2
  54. package/dist/models/BucketAnalyticsPreviousPeriod.js +2 -2
  55. package/dist/models/BucketAnalyticsSearch.d.ts +2 -2
  56. package/dist/models/BucketAnalyticsSearch.js +2 -2
  57. package/dist/models/BucketAnalyticsSearchAiAgents.d.ts +12 -2
  58. package/dist/models/BucketAnalyticsSearchAiAgents.js +8 -2
  59. package/dist/models/BucketAnalyticsSearchAiAgentsAgentsInner.d.ts +34 -0
  60. package/dist/models/BucketAnalyticsSearchAiAgentsAgentsInner.js +50 -0
  61. package/dist/models/BucketAnalyticsSearchAiAgentsByAgentInner.d.ts +39 -0
  62. package/dist/models/BucketAnalyticsSearchAiAgentsByAgentInner.js +53 -0
  63. package/dist/models/BucketAnalyticsSearchAiAgentsByAgentInnerAgentsInner.d.ts +34 -0
  64. package/dist/models/BucketAnalyticsSearchAiAgentsByAgentInnerAgentsInner.js +50 -0
  65. package/dist/models/BucketAnalyticsSearchHumans.d.ts +7 -2
  66. package/dist/models/BucketAnalyticsSearchHumans.js +5 -2
  67. package/dist/models/BucketAnalyticsSearchHumansCountriesInner.d.ts +39 -0
  68. package/dist/models/BucketAnalyticsSearchHumansCountriesInner.js +53 -0
  69. package/dist/models/BucketAnalyticsSearchHumansTopInner.d.ts +2 -2
  70. package/dist/models/BucketAnalyticsSearchHumansTopInner.js +2 -2
  71. package/dist/models/BucketAnalyticsSearchHumansWithoutResultsInner.d.ts +2 -2
  72. package/dist/models/BucketAnalyticsSearchHumansWithoutResultsInner.js +2 -2
  73. package/dist/models/BucketAnalyticsSeriesInner.d.ts +2 -2
  74. package/dist/models/BucketAnalyticsSeriesInner.js +2 -2
  75. package/dist/models/BucketAnalyticsSources.d.ts +2 -2
  76. package/dist/models/BucketAnalyticsSources.js +2 -2
  77. package/dist/models/BucketAnalyticsSourcesAiAgents.d.ts +2 -2
  78. package/dist/models/BucketAnalyticsSourcesAiAgents.js +2 -2
  79. package/dist/models/BucketAnalyticsSourcesAiAgentsActivityInner.d.ts +2 -2
  80. package/dist/models/BucketAnalyticsSourcesAiAgentsActivityInner.js +2 -2
  81. package/dist/models/BucketAnalyticsSourcesAiAgentsAgentsInner.d.ts +2 -2
  82. package/dist/models/BucketAnalyticsSourcesAiAgentsAgentsInner.js +2 -2
  83. package/dist/models/BucketAnalyticsSourcesAiAgentsCountriesInner.d.ts +2 -2
  84. package/dist/models/BucketAnalyticsSourcesAiAgentsCountriesInner.js +2 -2
  85. package/dist/models/BucketAnalyticsSourcesAiAgentsSearchesInner.d.ts +2 -2
  86. package/dist/models/BucketAnalyticsSourcesAiAgentsSearchesInner.js +2 -2
  87. package/dist/models/BucketAnalyticsSourcesBots.d.ts +2 -2
  88. package/dist/models/BucketAnalyticsSourcesBots.js +2 -2
  89. package/dist/models/BucketAnalyticsSourcesHumans.d.ts +2 -2
  90. package/dist/models/BucketAnalyticsSourcesHumans.js +2 -2
  91. package/dist/models/BucketAnalyticsSourcesHumansCountriesInner.d.ts +2 -2
  92. package/dist/models/BucketAnalyticsSourcesHumansCountriesInner.js +2 -2
  93. package/dist/models/BucketAnalyticsSourcesHumansDownloadsInner.d.ts +2 -2
  94. package/dist/models/BucketAnalyticsSourcesHumansDownloadsInner.js +2 -2
  95. package/dist/models/BucketAnalyticsSourcesHumansOutboundLinksInner.d.ts +2 -2
  96. package/dist/models/BucketAnalyticsSourcesHumansOutboundLinksInner.js +2 -2
  97. package/dist/models/BucketAnalyticsSourcesHumansReferrersInner.d.ts +2 -2
  98. package/dist/models/BucketAnalyticsSourcesHumansReferrersInner.js +2 -2
  99. package/dist/models/BucketAnalyticsSupport.d.ts +2 -2
  100. package/dist/models/BucketAnalyticsSupport.js +2 -2
  101. package/dist/models/BucketAnalyticsTraffic.d.ts +2 -2
  102. package/dist/models/BucketAnalyticsTraffic.js +2 -2
  103. package/dist/models/BucketAnalyticsViewLimit.d.ts +2 -2
  104. package/dist/models/BucketAnalyticsViewLimit.js +2 -2
  105. package/dist/models/BucketCounts.d.ts +2 -2
  106. package/dist/models/BucketCounts.js +2 -2
  107. package/dist/models/BucketCreate.d.ts +2 -14
  108. package/dist/models/BucketCreate.js +2 -12
  109. package/dist/models/BucketEmail.d.ts +2 -2
  110. package/dist/models/BucketEmail.js +2 -2
  111. package/dist/models/BucketEmailOptions.d.ts +2 -2
  112. package/dist/models/BucketEmailOptions.js +2 -2
  113. package/dist/models/BucketFile.d.ts +2 -2
  114. package/dist/models/BucketFile.js +2 -2
  115. package/dist/models/BucketList.d.ts +2 -2
  116. package/dist/models/BucketList.js +2 -2
  117. package/dist/models/BucketLock.d.ts +2 -2
  118. package/dist/models/BucketLock.js +2 -2
  119. package/dist/models/BucketUpdate.d.ts +2 -2
  120. package/dist/models/BucketUpdate.js +2 -2
  121. package/dist/models/CodeRequested.d.ts +2 -2
  122. package/dist/models/CodeRequested.js +2 -2
  123. package/dist/models/ConnectGithubRepository201Response.d.ts +2 -2
  124. package/dist/models/ConnectGithubRepository201Response.js +2 -2
  125. package/dist/models/ConnectGithubRepository201ResponseData.d.ts +2 -2
  126. package/dist/models/ConnectGithubRepository201ResponseData.js +2 -2
  127. package/dist/models/ConnectGithubRepositoryRequest.d.ts +2 -2
  128. package/dist/models/ConnectGithubRepositoryRequest.js +2 -2
  129. package/dist/models/Connection.d.ts +2 -2
  130. package/dist/models/Connection.js +2 -2
  131. package/dist/models/ConnectionPermissions.d.ts +2 -2
  132. package/dist/models/ConnectionPermissions.js +2 -2
  133. package/dist/models/ConnectionRenewal.d.ts +2 -2
  134. package/dist/models/ConnectionRenewal.js +2 -2
  135. package/dist/models/CreateBucket201Response.d.ts +2 -2
  136. package/dist/models/CreateBucket201Response.js +2 -2
  137. package/dist/models/CreateBucket201ResponseData.d.ts +2 -2
  138. package/dist/models/CreateBucket201ResponseData.js +2 -2
  139. package/dist/models/CreateBucketRequest.d.ts +2 -2
  140. package/dist/models/CreateBucketRequest.js +2 -2
  141. package/dist/models/CreateClientAccount201Response.d.ts +2 -2
  142. package/dist/models/CreateClientAccount201Response.js +2 -2
  143. package/dist/models/CreateClientAccount201ResponseData.d.ts +2 -2
  144. package/dist/models/CreateClientAccount201ResponseData.js +2 -2
  145. package/dist/models/CreateClientAccountRequest.d.ts +2 -2
  146. package/dist/models/CreateClientAccountRequest.js +2 -2
  147. package/dist/models/CreateDashboardLink201Response.d.ts +2 -2
  148. package/dist/models/CreateDashboardLink201Response.js +2 -2
  149. package/dist/models/CreateDashboardLinkRequest.d.ts +2 -2
  150. package/dist/models/CreateDashboardLinkRequest.js +2 -2
  151. package/dist/models/CreateFileUpload201Response.d.ts +35 -0
  152. package/dist/models/CreateFileUpload201Response.js +55 -0
  153. package/dist/models/CreditsUsed.d.ts +2 -2
  154. package/dist/models/CreditsUsed.js +2 -2
  155. package/dist/models/DecodedEmailAddress.d.ts +2 -2
  156. package/dist/models/DecodedEmailAddress.js +2 -2
  157. package/dist/models/DecodedIncomingMessage.d.ts +2 -2
  158. package/dist/models/DecodedIncomingMessage.js +2 -2
  159. package/dist/models/DecodedIncomingMessageAttachmentsInner.d.ts +2 -2
  160. package/dist/models/DecodedIncomingMessageAttachmentsInner.js +2 -2
  161. package/dist/models/DeleteBucket200Response.d.ts +2 -2
  162. package/dist/models/DeleteBucket200Response.js +2 -2
  163. package/dist/models/DeleteBucketRequest.d.ts +2 -2
  164. package/dist/models/DeleteBucketRequest.js +2 -2
  165. package/dist/models/DeleteResult.d.ts +2 -2
  166. package/dist/models/DeleteResult.js +2 -2
  167. package/dist/models/Download.d.ts +2 -2
  168. package/dist/models/Download.js +2 -2
  169. package/dist/models/EmailAttachment.d.ts +3 -7
  170. package/dist/models/EmailAttachment.js +5 -7
  171. package/dist/models/EmailDelivery.d.ts +2 -2
  172. package/dist/models/EmailDelivery.js +2 -2
  173. package/dist/models/EmailForwarding.d.ts +2 -2
  174. package/dist/models/EmailForwarding.js +2 -2
  175. package/dist/models/EmailForwardingContent.d.ts +2 -2
  176. package/dist/models/EmailForwardingContent.js +2 -2
  177. package/dist/models/EmailLabel.d.ts +2 -2
  178. package/dist/models/EmailLabel.js +2 -2
  179. package/dist/models/EmailSummary.d.ts +3 -16
  180. package/dist/models/EmailSummary.js +2 -9
  181. package/dist/models/ErrorCode.d.ts +5 -25
  182. package/dist/models/ErrorCode.js +5 -25
  183. package/dist/models/EventSubscription.d.ts +2 -2
  184. package/dist/models/EventSubscription.js +2 -2
  185. package/dist/models/ExchangeConnectionGrantRequest.d.ts +2 -2
  186. package/dist/models/ExchangeConnectionGrantRequest.js +2 -2
  187. package/dist/models/FileActor.d.ts +2 -2
  188. package/dist/models/FileActor.js +2 -2
  189. package/dist/models/FileDownload.d.ts +2 -2
  190. package/dist/models/FileDownload.js +2 -2
  191. package/dist/models/FileKey.d.ts +2 -2
  192. package/dist/models/FileKey.js +2 -2
  193. package/dist/models/FileList.d.ts +2 -2
  194. package/dist/models/FileList.js +2 -2
  195. package/dist/models/FileMoveRequest.d.ts +38 -0
  196. package/dist/models/FileMoveRequest.js +54 -0
  197. package/dist/models/FileMoveResult.d.ts +48 -0
  198. package/dist/models/FileMoveResult.js +68 -0
  199. package/dist/models/FileRestoreResult.d.ts +44 -0
  200. package/dist/models/{RestoredFileVersion.js → FileRestoreResult.js} +19 -15
  201. package/dist/models/FileUpload.d.ts +39 -0
  202. package/dist/models/FileUpload.js +59 -0
  203. package/dist/models/FileUploadRequest.d.ts +50 -0
  204. package/dist/models/FileUploadRequest.js +66 -0
  205. package/dist/models/FileUploadUpload.d.ts +47 -0
  206. package/dist/models/FileUploadUpload.js +67 -0
  207. package/dist/models/FileVersion.d.ts +2 -2
  208. package/dist/models/FileVersion.js +2 -2
  209. package/dist/models/FileVersionList.d.ts +2 -2
  210. package/dist/models/FileVersionList.js +2 -2
  211. package/dist/models/FileVersionReason.d.ts +2 -2
  212. package/dist/models/FileVersionReason.js +2 -2
  213. package/dist/models/FileWriteRequest.d.ts +54 -0
  214. package/dist/models/FileWriteRequest.js +62 -0
  215. package/dist/models/FileWriteResult.d.ts +48 -0
  216. package/dist/models/{UploadedFile.js → FileWriteResult.js} +19 -17
  217. package/dist/models/GetAccountLimits200Response.d.ts +2 -2
  218. package/dist/models/GetAccountLimits200Response.js +2 -2
  219. package/dist/models/GetAccountLimits200ResponseData.d.ts +2 -2
  220. package/dist/models/GetAccountLimits200ResponseData.js +2 -2
  221. package/dist/models/GetAccountLimits200ResponseDataCredits.d.ts +2 -2
  222. package/dist/models/GetAccountLimits200ResponseDataCredits.js +2 -2
  223. package/dist/models/GetAccountLimits200ResponseDataUsage.d.ts +2 -2
  224. package/dist/models/GetAccountLimits200ResponseDataUsage.js +2 -2
  225. package/dist/models/GetAccountLimits200ResponseDataUsageBucketCreations.d.ts +2 -2
  226. package/dist/models/GetAccountLimits200ResponseDataUsageBucketCreations.js +2 -2
  227. package/dist/models/GetBucketAnalytics200Response.d.ts +2 -2
  228. package/dist/models/GetBucketAnalytics200Response.js +2 -2
  229. package/dist/models/GetBucketAnalytics200ResponseData.d.ts +2 -2
  230. package/dist/models/GetBucketAnalytics200ResponseData.js +2 -2
  231. package/dist/models/GetEventSubscription200Response.d.ts +2 -2
  232. package/dist/models/GetEventSubscription200Response.js +2 -2
  233. package/dist/models/GetEventSubscription200ResponseData.d.ts +2 -2
  234. package/dist/models/GetEventSubscription200ResponseData.js +2 -2
  235. package/dist/models/GetFileByPath200Response.d.ts +2 -2
  236. package/dist/models/GetFileByPath200Response.js +2 -2
  237. package/dist/models/GetFileByPath200ResponseData.d.ts +2 -2
  238. package/dist/models/GetFileByPath200ResponseData.js +2 -2
  239. package/dist/models/GetFileDownload200Response.d.ts +2 -2
  240. package/dist/models/GetFileDownload200Response.js +2 -2
  241. package/dist/models/GetGithubSetupLink200Response.d.ts +2 -2
  242. package/dist/models/GetGithubSetupLink200Response.js +2 -2
  243. package/dist/models/GetGithubSetupLink200ResponseData.d.ts +2 -2
  244. package/dist/models/GetGithubSetupLink200ResponseData.js +2 -2
  245. package/dist/models/GetGithubSync200Response.d.ts +2 -2
  246. package/dist/models/GetGithubSync200Response.js +2 -2
  247. package/dist/models/GetGithubSync200ResponseData.d.ts +2 -2
  248. package/dist/models/GetGithubSync200ResponseData.js +2 -2
  249. package/dist/models/GetPublication200Response.d.ts +2 -2
  250. package/dist/models/GetPublication200Response.js +2 -2
  251. package/dist/models/GetPublication200ResponseData.d.ts +2 -2
  252. package/dist/models/GetPublication200ResponseData.js +2 -2
  253. package/dist/models/GetStatus200Response.d.ts +2 -2
  254. package/dist/models/GetStatus200Response.js +2 -2
  255. package/dist/models/GetTicket200Response.d.ts +2 -2
  256. package/dist/models/GetTicket200Response.js +2 -2
  257. package/dist/models/GetTicket200ResponseData.d.ts +2 -2
  258. package/dist/models/GetTicket200ResponseData.js +2 -2
  259. package/dist/models/GetTicketMessage200Response.d.ts +2 -2
  260. package/dist/models/GetTicketMessage200Response.js +2 -2
  261. package/dist/models/GetTicketMessage200ResponseData.d.ts +2 -2
  262. package/dist/models/GetTicketMessage200ResponseData.js +2 -2
  263. package/dist/models/GetTicketMessageOriginalDownload200Response.d.ts +2 -2
  264. package/dist/models/GetTicketMessageOriginalDownload200Response.js +2 -2
  265. package/dist/models/GetTicketMessageOriginalDownload200ResponseData.d.ts +2 -2
  266. package/dist/models/GetTicketMessageOriginalDownload200ResponseData.js +2 -2
  267. package/dist/models/GetWebhook200Response.d.ts +2 -2
  268. package/dist/models/GetWebhook200Response.js +2 -2
  269. package/dist/models/GetWebhook200ResponseData.d.ts +2 -2
  270. package/dist/models/GetWebhook200ResponseData.js +2 -2
  271. package/dist/models/GithubConnect.d.ts +4 -9
  272. package/dist/models/GithubConnect.js +2 -5
  273. package/dist/models/GithubInstallation.d.ts +2 -2
  274. package/dist/models/GithubInstallation.js +2 -2
  275. package/dist/models/GithubRepository.d.ts +2 -2
  276. package/dist/models/GithubRepository.js +2 -2
  277. package/dist/models/GithubSetupLink.d.ts +2 -2
  278. package/dist/models/GithubSetupLink.js +2 -2
  279. package/dist/models/GithubSync.d.ts +3 -25
  280. package/dist/models/GithubSync.js +2 -24
  281. package/dist/models/GithubSyncError.d.ts +2 -2
  282. package/dist/models/GithubSyncError.js +2 -2
  283. package/dist/models/GithubSyncSettings.d.ts +2 -10
  284. package/dist/models/GithubSyncSettings.js +2 -6
  285. package/dist/models/GithubSyncSkippedFilesInner.d.ts +2 -2
  286. package/dist/models/GithubSyncSkippedFilesInner.js +2 -2
  287. package/dist/models/ListAccounts200Response.d.ts +2 -2
  288. package/dist/models/ListAccounts200Response.js +2 -2
  289. package/dist/models/ListBuckets200Response.d.ts +2 -2
  290. package/dist/models/ListBuckets200Response.js +2 -2
  291. package/dist/models/ListFileVersions200Response.d.ts +2 -2
  292. package/dist/models/ListFileVersions200Response.js +2 -2
  293. package/dist/models/ListFiles200Response.d.ts +2 -2
  294. package/dist/models/ListFiles200Response.js +2 -2
  295. package/dist/models/ListGithubBranches200Response.d.ts +2 -2
  296. package/dist/models/ListGithubBranches200Response.js +2 -2
  297. package/dist/models/ListGithubBranches200ResponseData.d.ts +2 -2
  298. package/dist/models/ListGithubBranches200ResponseData.js +2 -2
  299. package/dist/models/ListGithubInstallations200Response.d.ts +2 -2
  300. package/dist/models/ListGithubInstallations200Response.js +2 -2
  301. package/dist/models/ListGithubInstallations200ResponseData.d.ts +2 -2
  302. package/dist/models/ListGithubInstallations200ResponseData.js +2 -2
  303. package/dist/models/ListGithubRepositories200Response.d.ts +2 -2
  304. package/dist/models/ListGithubRepositories200Response.js +2 -2
  305. package/dist/models/ListGithubRepositories200ResponseData.d.ts +2 -2
  306. package/dist/models/ListGithubRepositories200ResponseData.js +2 -2
  307. package/dist/models/ListTicketMessages200Response.d.ts +2 -2
  308. package/dist/models/ListTicketMessages200Response.js +2 -2
  309. package/dist/models/ListTickets200Response.d.ts +2 -2
  310. package/dist/models/ListTickets200Response.js +2 -2
  311. package/dist/models/MoveFile200Response.d.ts +35 -0
  312. package/dist/models/MoveFile200Response.js +55 -0
  313. package/dist/models/Pagination.d.ts +2 -2
  314. package/dist/models/Pagination.js +2 -2
  315. package/dist/models/PreviewBucket202Response.d.ts +2 -2
  316. package/dist/models/PreviewBucket202Response.js +2 -2
  317. package/dist/models/PreviewBucket202ResponseData.d.ts +2 -2
  318. package/dist/models/PreviewBucket202ResponseData.js +2 -2
  319. package/dist/models/PreviewRequest.d.ts +2 -2
  320. package/dist/models/PreviewRequest.js +2 -2
  321. package/dist/models/Publication.d.ts +2 -2
  322. package/dist/models/Publication.js +2 -2
  323. package/dist/models/PublishBucket202Response.d.ts +2 -2
  324. package/dist/models/PublishBucket202Response.js +2 -2
  325. package/dist/models/PublishBucket202ResponseData.d.ts +2 -2
  326. package/dist/models/PublishBucket202ResponseData.js +2 -2
  327. package/dist/models/PublishBucket202ResponseDataPlanNotice.d.ts +2 -2
  328. package/dist/models/PublishBucket202ResponseDataPlanNotice.js +2 -2
  329. package/dist/models/PublishRequest.d.ts +2 -2
  330. package/dist/models/PublishRequest.js +2 -2
  331. package/dist/models/ReplyToTicket202Response.d.ts +2 -2
  332. package/dist/models/ReplyToTicket202Response.js +2 -2
  333. package/dist/models/ReplyToTicket202ResponseData.d.ts +2 -2
  334. package/dist/models/ReplyToTicket202ResponseData.js +2 -2
  335. package/dist/models/RequestSignInCode200Response.d.ts +2 -2
  336. package/dist/models/RequestSignInCode200Response.js +2 -2
  337. package/dist/models/RequestSignInCodeRequest.d.ts +2 -2
  338. package/dist/models/RequestSignInCodeRequest.js +2 -2
  339. package/dist/models/RestoreFileVersion201Response.d.ts +4 -4
  340. package/dist/models/RestoreFileVersion201Response.js +5 -5
  341. package/dist/models/SetWebhook200Response.d.ts +2 -2
  342. package/dist/models/SetWebhook200Response.js +2 -2
  343. package/dist/models/SetWebhook200ResponseData.d.ts +2 -2
  344. package/dist/models/SetWebhook200ResponseData.js +2 -2
  345. package/dist/models/SetWebhookRequest.d.ts +2 -2
  346. package/dist/models/SetWebhookRequest.js +2 -2
  347. package/dist/models/Status.d.ts +2 -2
  348. package/dist/models/Status.js +2 -2
  349. package/dist/models/StatusFeatures.d.ts +2 -2
  350. package/dist/models/StatusFeatures.js +2 -2
  351. package/dist/models/StatusUser.d.ts +2 -2
  352. package/dist/models/StatusUser.js +2 -2
  353. package/dist/models/SyncGithubRepository202Response.d.ts +2 -2
  354. package/dist/models/SyncGithubRepository202Response.js +2 -2
  355. package/dist/models/SyncGithubRepository202ResponseData.d.ts +2 -2
  356. package/dist/models/SyncGithubRepository202ResponseData.js +2 -2
  357. package/dist/models/Ticket.d.ts +13 -3
  358. package/dist/models/Ticket.js +12 -2
  359. package/dist/models/TicketEvent.d.ts +2 -2
  360. package/dist/models/TicketEvent.js +2 -2
  361. package/dist/models/TicketEventData.d.ts +2 -2
  362. package/dist/models/TicketEventData.js +2 -2
  363. package/dist/models/TicketList.d.ts +2 -2
  364. package/dist/models/TicketList.js +2 -2
  365. package/dist/models/TicketMessage.d.ts +3 -16
  366. package/dist/models/TicketMessage.js +2 -9
  367. package/dist/models/TicketMessageList.d.ts +2 -2
  368. package/dist/models/TicketMessageList.js +2 -2
  369. package/dist/models/TicketReplyRequest.d.ts +2 -2
  370. package/dist/models/TicketReplyRequest.js +2 -2
  371. package/dist/models/TicketSourcesInner.d.ts +43 -0
  372. package/dist/models/TicketSourcesInner.js +63 -0
  373. package/dist/models/TicketUpdateRequest.d.ts +7 -2
  374. package/dist/models/TicketUpdateRequest.js +5 -2
  375. package/dist/models/UpdateBucketRequest.d.ts +2 -2
  376. package/dist/models/UpdateBucketRequest.js +2 -2
  377. package/dist/models/UpdateGithubSyncRequest.d.ts +2 -2
  378. package/dist/models/UpdateGithubSyncRequest.js +2 -2
  379. package/dist/models/VerifySignInCode201Response.d.ts +2 -2
  380. package/dist/models/VerifySignInCode201Response.js +2 -2
  381. package/dist/models/VerifySignInCodeRequest.d.ts +2 -2
  382. package/dist/models/VerifySignInCodeRequest.js +2 -2
  383. package/dist/models/Webhook.d.ts +2 -2
  384. package/dist/models/Webhook.js +2 -2
  385. package/dist/models/WebhookWithSecret.d.ts +2 -2
  386. package/dist/models/WebhookWithSecret.js +2 -2
  387. package/dist/models/WriteFile201Response.d.ts +35 -0
  388. package/dist/models/WriteFile201Response.js +55 -0
  389. package/dist/models/index.d.ts +16 -34
  390. package/dist/models/index.js +16 -34
  391. package/dist/runtime.d.ts +2 -2
  392. package/dist/runtime.js +2 -2
  393. package/package.json +1 -1
  394. package/dist/models/AddUploadSessionFilesRequest.d.ts +0 -39
  395. package/dist/models/AddUploadSessionFilesRequest.js +0 -55
  396. package/dist/models/AppendText200Response.d.ts +0 -35
  397. package/dist/models/AppendText200Response.js +0 -55
  398. package/dist/models/AppendTextRequest.d.ts +0 -50
  399. package/dist/models/AppendTextRequest.js +0 -62
  400. package/dist/models/AppendTextResult.d.ts +0 -52
  401. package/dist/models/AppendTextResult.js +0 -72
  402. package/dist/models/CreateUploadSession201Response.d.ts +0 -35
  403. package/dist/models/CreateUploadSession201Response.js +0 -55
  404. package/dist/models/CreateUploadSessionRequest.d.ts +0 -63
  405. package/dist/models/CreateUploadSessionRequest.js +0 -69
  406. package/dist/models/EmailSummaryFiles.d.ts +0 -42
  407. package/dist/models/EmailSummaryFiles.js +0 -60
  408. package/dist/models/FileUploadSkip.d.ts +0 -52
  409. package/dist/models/FileUploadSkip.js +0 -58
  410. package/dist/models/FinalizeUploadSessionRequest.d.ts +0 -38
  411. package/dist/models/FinalizeUploadSessionRequest.js +0 -52
  412. package/dist/models/GithubSyncPendingChangesInner.d.ts +0 -34
  413. package/dist/models/GithubSyncPendingChangesInner.js +0 -54
  414. package/dist/models/GithubSyncPullRequest.d.ts +0 -38
  415. package/dist/models/GithubSyncPullRequest.js +0 -58
  416. package/dist/models/LockBucket200Response.d.ts +0 -35
  417. package/dist/models/LockBucket200Response.js +0 -55
  418. package/dist/models/LockBucket200ResponseData.d.ts +0 -36
  419. package/dist/models/LockBucket200ResponseData.js +0 -52
  420. package/dist/models/LockRequest.d.ts +0 -46
  421. package/dist/models/LockRequest.js +0 -58
  422. package/dist/models/MoveFileRequest.d.ts +0 -46
  423. package/dist/models/MoveFileRequest.js +0 -56
  424. package/dist/models/PathOperationResult.d.ts +0 -73
  425. package/dist/models/PathOperationResult.js +0 -81
  426. package/dist/models/PrepareFileUpload201Response.d.ts +0 -35
  427. package/dist/models/PrepareFileUpload201Response.js +0 -55
  428. package/dist/models/PrepareFileUploadRequest.d.ts +0 -55
  429. package/dist/models/PrepareFileUploadRequest.js +0 -69
  430. package/dist/models/PreparedFileUpload.d.ts +0 -79
  431. package/dist/models/PreparedFileUpload.js +0 -73
  432. package/dist/models/RenameFile200Response.d.ts +0 -35
  433. package/dist/models/RenameFile200Response.js +0 -55
  434. package/dist/models/RenameFileRequest.d.ts +0 -38
  435. package/dist/models/RenameFileRequest.js +0 -54
  436. package/dist/models/RestoredFileVersion.d.ts +0 -40
  437. package/dist/models/SaveUploadSessionBatchRequest.d.ts +0 -38
  438. package/dist/models/SaveUploadSessionBatchRequest.js +0 -52
  439. package/dist/models/SaveUploadedFile201Response.d.ts +0 -35
  440. package/dist/models/SaveUploadedFile201Response.js +0 -55
  441. package/dist/models/SaveUploadedFileRequest.d.ts +0 -78
  442. package/dist/models/SaveUploadedFileRequest.js +0 -85
  443. package/dist/models/SavedFile.d.ts +0 -49
  444. package/dist/models/SavedFile.js +0 -65
  445. package/dist/models/StorageUpload.d.ts +0 -36
  446. package/dist/models/StorageUpload.js +0 -54
  447. package/dist/models/UnlockRequest.d.ts +0 -38
  448. package/dist/models/UnlockRequest.js +0 -52
  449. package/dist/models/UploadBlob.d.ts +0 -57
  450. package/dist/models/UploadBlob.js +0 -79
  451. package/dist/models/UploadSession.d.ts +0 -94
  452. package/dist/models/UploadSession.js +0 -91
  453. package/dist/models/UploadSessionFile.d.ts +0 -46
  454. package/dist/models/UploadSessionFile.js +0 -66
  455. package/dist/models/UploadSessionResult.d.ts +0 -82
  456. package/dist/models/UploadSessionResult.js +0 -86
  457. package/dist/models/UploadSessionUpload.d.ts +0 -47
  458. package/dist/models/UploadSessionUpload.js +0 -61
  459. package/dist/models/UploadedFile.d.ts +0 -48
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Revdoku API
6
- * Buckets with an email address, private files and a site. Create buckets, read and reply to email, store files and publish sites. Guide: https://docs.revdoku.com/api/. Create an account at https://app.revdoku.com/users/sign_up.
6
+ * A bucket is the project of one docs site: its files, the published site, the site analytics, and the support email address with its tickets. Create buckets, publish sites, read and reply to support requests and store files. The dashboard calls a bucket a site. Guide: https://docs.revdoku.com/api/. Create an account at https://app.revdoku.com/users/sign_up.
7
7
  *
8
- * The version of the OpenAPI document: 4.1.0
8
+ * The version of the OpenAPI document: 5.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -25,9 +25,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ListTicketsChannelEnum = exports.ListTicketsStatusEnum = exports.ListBucketsStatusEnum = exports.GetBucketAnalyticsAudienceEnum = exports.GetBucketAnalyticsSectionEnum = exports.GetBucketAnalyticsPeriodEnum = exports.DefaultApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const ActionRequest_1 = require("../models/ActionRequest");
28
- const AddUploadSessionFilesRequest_1 = require("../models/AddUploadSessionFilesRequest");
29
- const AppendText200Response_1 = require("../models/AppendText200Response");
30
- const AppendTextRequest_1 = require("../models/AppendTextRequest");
31
28
  const ConnectGithubRepository201Response_1 = require("../models/ConnectGithubRepository201Response");
32
29
  const ConnectGithubRepositoryRequest_1 = require("../models/ConnectGithubRepositoryRequest");
33
30
  const CreateBucket201Response_1 = require("../models/CreateBucket201Response");
@@ -36,12 +33,13 @@ const CreateClientAccount201Response_1 = require("../models/CreateClientAccount2
36
33
  const CreateClientAccountRequest_1 = require("../models/CreateClientAccountRequest");
37
34
  const CreateDashboardLink201Response_1 = require("../models/CreateDashboardLink201Response");
38
35
  const CreateDashboardLinkRequest_1 = require("../models/CreateDashboardLinkRequest");
39
- const CreateUploadSession201Response_1 = require("../models/CreateUploadSession201Response");
40
- const CreateUploadSessionRequest_1 = require("../models/CreateUploadSessionRequest");
36
+ const CreateFileUpload201Response_1 = require("../models/CreateFileUpload201Response");
41
37
  const DeleteBucket200Response_1 = require("../models/DeleteBucket200Response");
42
38
  const DeleteBucketRequest_1 = require("../models/DeleteBucketRequest");
43
39
  const ExchangeConnectionGrantRequest_1 = require("../models/ExchangeConnectionGrantRequest");
44
- const FinalizeUploadSessionRequest_1 = require("../models/FinalizeUploadSessionRequest");
40
+ const FileMoveRequest_1 = require("../models/FileMoveRequest");
41
+ const FileUploadRequest_1 = require("../models/FileUploadRequest");
42
+ const FileWriteRequest_1 = require("../models/FileWriteRequest");
45
43
  const GetAccountLimits200Response_1 = require("../models/GetAccountLimits200Response");
46
44
  const GetBucketAnalytics200Response_1 = require("../models/GetBucketAnalytics200Response");
47
45
  const GetEventSubscription200Response_1 = require("../models/GetEventSubscription200Response");
@@ -64,148 +62,29 @@ const ListGithubInstallations200Response_1 = require("../models/ListGithubInstal
64
62
  const ListGithubRepositories200Response_1 = require("../models/ListGithubRepositories200Response");
65
63
  const ListTicketMessages200Response_1 = require("../models/ListTicketMessages200Response");
66
64
  const ListTickets200Response_1 = require("../models/ListTickets200Response");
67
- const LockBucket200Response_1 = require("../models/LockBucket200Response");
68
- const LockRequest_1 = require("../models/LockRequest");
69
- const MoveFileRequest_1 = require("../models/MoveFileRequest");
70
- const PrepareFileUpload201Response_1 = require("../models/PrepareFileUpload201Response");
71
- const PrepareFileUploadRequest_1 = require("../models/PrepareFileUploadRequest");
65
+ const MoveFile200Response_1 = require("../models/MoveFile200Response");
72
66
  const PreviewBucket202Response_1 = require("../models/PreviewBucket202Response");
73
67
  const PreviewRequest_1 = require("../models/PreviewRequest");
74
68
  const PublishBucket202Response_1 = require("../models/PublishBucket202Response");
75
69
  const PublishRequest_1 = require("../models/PublishRequest");
76
- const RenameFile200Response_1 = require("../models/RenameFile200Response");
77
- const RenameFileRequest_1 = require("../models/RenameFileRequest");
78
70
  const ReplyToTicket202Response_1 = require("../models/ReplyToTicket202Response");
79
71
  const RequestSignInCode200Response_1 = require("../models/RequestSignInCode200Response");
80
72
  const RequestSignInCodeRequest_1 = require("../models/RequestSignInCodeRequest");
81
73
  const RestoreFileVersion201Response_1 = require("../models/RestoreFileVersion201Response");
82
- const SaveUploadSessionBatchRequest_1 = require("../models/SaveUploadSessionBatchRequest");
83
- const SaveUploadedFile201Response_1 = require("../models/SaveUploadedFile201Response");
84
- const SaveUploadedFileRequest_1 = require("../models/SaveUploadedFileRequest");
85
74
  const SetWebhook200Response_1 = require("../models/SetWebhook200Response");
86
75
  const SetWebhookRequest_1 = require("../models/SetWebhookRequest");
87
76
  const SyncGithubRepository202Response_1 = require("../models/SyncGithubRepository202Response");
88
77
  const TicketReplyRequest_1 = require("../models/TicketReplyRequest");
89
78
  const TicketUpdateRequest_1 = require("../models/TicketUpdateRequest");
90
- const UnlockRequest_1 = require("../models/UnlockRequest");
91
79
  const UpdateBucketRequest_1 = require("../models/UpdateBucketRequest");
92
80
  const UpdateGithubSyncRequest_1 = require("../models/UpdateGithubSyncRequest");
93
81
  const VerifySignInCode201Response_1 = require("../models/VerifySignInCode201Response");
94
82
  const VerifySignInCodeRequest_1 = require("../models/VerifySignInCodeRequest");
83
+ const WriteFile201Response_1 = require("../models/WriteFile201Response");
95
84
  /**
96
85
  *
97
86
  */
98
87
  class DefaultApi extends runtime.BaseAPI {
99
- /**
100
- * Creates request options for addUploadSessionFiles without sending the request
101
- */
102
- addUploadSessionFilesRequestOpts(requestParameters) {
103
- return __awaiter(this, void 0, void 0, function* () {
104
- if (requestParameters['bucketId'] == null) {
105
- throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling addUploadSessionFiles().');
106
- }
107
- if (requestParameters['sessionId'] == null) {
108
- throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling addUploadSessionFiles().');
109
- }
110
- if (requestParameters['addUploadSessionFilesRequest'] == null) {
111
- throw new runtime.RequiredError('addUploadSessionFilesRequest', 'Required parameter "addUploadSessionFilesRequest" was null or undefined when calling addUploadSessionFiles().');
112
- }
113
- const queryParameters = {};
114
- const headerParameters = {};
115
- headerParameters['Content-Type'] = 'application/json';
116
- if (this.configuration && this.configuration.accessToken) {
117
- const token = this.configuration.accessToken;
118
- const tokenString = yield token("bearerAuth", []);
119
- if (tokenString) {
120
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
121
- }
122
- }
123
- let urlPath = `/v1/buckets/{bucket_id}/upload_sessions/{session_id}/uploads`;
124
- urlPath = urlPath.replace('{bucket_id}', encodeURIComponent(String(requestParameters['bucketId'])));
125
- urlPath = urlPath.replace('{session_id}', encodeURIComponent(String(requestParameters['sessionId'])));
126
- return {
127
- path: urlPath,
128
- method: 'POST',
129
- headers: headerParameters,
130
- query: queryParameters,
131
- body: (0, AddUploadSessionFilesRequest_1.AddUploadSessionFilesRequestToJSON)(requestParameters['addUploadSessionFilesRequest']),
132
- };
133
- });
134
- }
135
- /**
136
- * Returns upload.url and upload.headers for each file that needs bytes. Repeating a path returns a fresh target, for example after a failed PUT. Files with identical content are skipped.
137
- * Get storage targets for a batch
138
- */
139
- addUploadSessionFilesRaw(requestParameters, initOverrides) {
140
- return __awaiter(this, void 0, void 0, function* () {
141
- const requestOptions = yield this.addUploadSessionFilesRequestOpts(requestParameters);
142
- const response = yield this.request(requestOptions, initOverrides);
143
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreateUploadSession201Response_1.CreateUploadSession201ResponseFromJSON)(jsonValue));
144
- });
145
- }
146
- /**
147
- * Returns upload.url and upload.headers for each file that needs bytes. Repeating a path returns a fresh target, for example after a failed PUT. Files with identical content are skipped.
148
- * Get storage targets for a batch
149
- */
150
- addUploadSessionFiles(requestParameters, initOverrides) {
151
- return __awaiter(this, void 0, void 0, function* () {
152
- const response = yield this.addUploadSessionFilesRaw(requestParameters, initOverrides);
153
- return yield response.value();
154
- });
155
- }
156
- /**
157
- * Creates request options for appendText without sending the request
158
- */
159
- appendTextRequestOpts(requestParameters) {
160
- return __awaiter(this, void 0, void 0, function* () {
161
- if (requestParameters['bucketId'] == null) {
162
- throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling appendText().');
163
- }
164
- if (requestParameters['appendTextRequest'] == null) {
165
- throw new runtime.RequiredError('appendTextRequest', 'Required parameter "appendTextRequest" was null or undefined when calling appendText().');
166
- }
167
- const queryParameters = {};
168
- const headerParameters = {};
169
- headerParameters['Content-Type'] = 'application/json';
170
- if (this.configuration && this.configuration.accessToken) {
171
- const token = this.configuration.accessToken;
172
- const tokenString = yield token("bearerAuth", []);
173
- if (tokenString) {
174
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
175
- }
176
- }
177
- let urlPath = `/v1/buckets/{bucket_id}/files/append_text`;
178
- urlPath = urlPath.replace('{bucket_id}', encodeURIComponent(String(requestParameters['bucketId'])));
179
- return {
180
- path: urlPath,
181
- method: 'POST',
182
- headers: headerParameters,
183
- query: queryParameters,
184
- body: (0, AppendTextRequest_1.AppendTextRequestToJSON)(requestParameters['appendTextRequest']),
185
- };
186
- });
187
- }
188
- /**
189
- * Appends UTF-8 text to an existing text file and creates a new version. A missing file returns BUCKET_FILE_NOT_FOUND.
190
- * Append text to a file
191
- */
192
- appendTextRaw(requestParameters, initOverrides) {
193
- return __awaiter(this, void 0, void 0, function* () {
194
- const requestOptions = yield this.appendTextRequestOpts(requestParameters);
195
- const response = yield this.request(requestOptions, initOverrides);
196
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, AppendText200Response_1.AppendText200ResponseFromJSON)(jsonValue));
197
- });
198
- }
199
- /**
200
- * Appends UTF-8 text to an existing text file and creates a new version. A missing file returns BUCKET_FILE_NOT_FOUND.
201
- * Append text to a file
202
- */
203
- appendText(requestParameters, initOverrides) {
204
- return __awaiter(this, void 0, void 0, function* () {
205
- const response = yield this.appendTextRaw(requestParameters, initOverrides);
206
- return yield response.value();
207
- });
208
- }
209
88
  /**
210
89
  * Creates request options for archiveBucket without sending the request
211
90
  */
@@ -292,7 +171,7 @@ class DefaultApi extends runtime.BaseAPI {
292
171
  });
293
172
  }
294
173
  /**
295
- * Makes the bucket\'s files a copy of one branch of a repository, or of one folder of it. The first sync copies the files, and each later push to the branch updates them. A bucket that has files needs bucket_files: replace (the repository\'s files replace them) or copy (they become the first commit of an empty repository); its email and agent folders stay. After the first sync GitHub is the source. Needs an account owner or administrator key with admin access to all buckets. A connected GitHub account must read the repository: 403 GITHUB_APP_NOT_INSTALLED gives the links for the person in error.details.
174
+ * Makes the bucket\'s files a read-only copy of one branch of a repository, or of one folder of it. The first sync copies the files, and each later push to the branch updates them. Revdoku never writes to the repository. The copy is in the bucket folder _repo/. A bucket that has files there needs bucket_files: replace (the repository\'s files replace them); its knowledge base (_kb/), its tickets and its agent folders stay. GitHub is the source: change the files there. Needs an account owner or administrator key with admin access to all buckets. A connected GitHub account must read the repository: 403 GITHUB_APP_NOT_INSTALLED gives the links for the person in error.details.
296
175
  * Connect a GitHub repository
297
176
  */
298
177
  connectGithubRepositoryRaw(requestParameters, initOverrides) {
@@ -303,7 +182,7 @@ class DefaultApi extends runtime.BaseAPI {
303
182
  });
304
183
  }
305
184
  /**
306
- * Makes the bucket\'s files a copy of one branch of a repository, or of one folder of it. The first sync copies the files, and each later push to the branch updates them. A bucket that has files needs bucket_files: replace (the repository\'s files replace them) or copy (they become the first commit of an empty repository); its email and agent folders stay. After the first sync GitHub is the source. Needs an account owner or administrator key with admin access to all buckets. A connected GitHub account must read the repository: 403 GITHUB_APP_NOT_INSTALLED gives the links for the person in error.details.
185
+ * Makes the bucket\'s files a read-only copy of one branch of a repository, or of one folder of it. The first sync copies the files, and each later push to the branch updates them. Revdoku never writes to the repository. The copy is in the bucket folder _repo/. A bucket that has files there needs bucket_files: replace (the repository\'s files replace them); its knowledge base (_kb/), its tickets and its agent folders stay. GitHub is the source: change the files there. Needs an account owner or administrator key with admin access to all buckets. A connected GitHub account must read the repository: 403 GITHUB_APP_NOT_INSTALLED gives the links for the person in error.details.
307
186
  * Connect a GitHub repository
308
187
  */
309
188
  connectGithubRepository(requestParameters, initOverrides) {
@@ -312,63 +191,6 @@ class DefaultApi extends runtime.BaseAPI {
312
191
  return yield response.value();
313
192
  });
314
193
  }
315
- /**
316
- * Creates request options for copyFile without sending the request
317
- */
318
- copyFileRequestOpts(requestParameters) {
319
- return __awaiter(this, void 0, void 0, function* () {
320
- if (requestParameters['bucketId'] == null) {
321
- throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling copyFile().');
322
- }
323
- if (requestParameters['fileId'] == null) {
324
- throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling copyFile().');
325
- }
326
- if (requestParameters['moveFileRequest'] == null) {
327
- throw new runtime.RequiredError('moveFileRequest', 'Required parameter "moveFileRequest" was null or undefined when calling copyFile().');
328
- }
329
- const queryParameters = {};
330
- const headerParameters = {};
331
- headerParameters['Content-Type'] = 'application/json';
332
- if (this.configuration && this.configuration.accessToken) {
333
- const token = this.configuration.accessToken;
334
- const tokenString = yield token("bearerAuth", []);
335
- if (tokenString) {
336
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
337
- }
338
- }
339
- let urlPath = `/v1/buckets/{bucket_id}/files/{file_id}/copy`;
340
- urlPath = urlPath.replace('{bucket_id}', encodeURIComponent(String(requestParameters['bucketId'])));
341
- urlPath = urlPath.replace('{file_id}', encodeURIComponent(String(requestParameters['fileId'])));
342
- return {
343
- path: urlPath,
344
- method: 'POST',
345
- headers: headerParameters,
346
- query: queryParameters,
347
- body: (0, MoveFileRequest_1.MoveFileRequestToJSON)(requestParameters['moveFileRequest']),
348
- };
349
- });
350
- }
351
- /**
352
- * Works in the same bucket or into target_bucket_id. Content is not uploaded again. Send target_path for an exact path or target_folder to keep the name.
353
- * Copy a file
354
- */
355
- copyFileRaw(requestParameters, initOverrides) {
356
- return __awaiter(this, void 0, void 0, function* () {
357
- const requestOptions = yield this.copyFileRequestOpts(requestParameters);
358
- const response = yield this.request(requestOptions, initOverrides);
359
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, RenameFile200Response_1.RenameFile200ResponseFromJSON)(jsonValue));
360
- });
361
- }
362
- /**
363
- * Works in the same bucket or into target_bucket_id. Content is not uploaded again. Send target_path for an exact path or target_folder to keep the name.
364
- * Copy a file
365
- */
366
- copyFile(requestParameters, initOverrides) {
367
- return __awaiter(this, void 0, void 0, function* () {
368
- const response = yield this.copyFileRaw(requestParameters, initOverrides);
369
- return yield response.value();
370
- });
371
- }
372
194
  /**
373
195
  * Creates request options for createBucket without sending the request
374
196
  */
@@ -398,7 +220,7 @@ class DefaultApi extends runtime.BaseAPI {
398
220
  });
399
221
  }
400
222
  /**
401
- * Waits until the address can receive email. On revdokumail.com, email.username is the bucket\'s name, with no suffix: lowercase letters, digits and single hyphens, 3 to 63 characters, also the name of its site. A name that another bucket uses as an address or a site address, or that another account used, returns EMAIL_ALREADY_EXISTS; your account can use its own earlier names again. Without email.username the address takes the title\'s name when it is free, else two readable words. A custom domain takes the exact name. If confirmation does not finish, EMAIL_NOT_READY returns the created bucket_id in error.details: read that bucket instead of creating another. The title defaults to email.username; a title that another active bucket uses returns 409 BUCKET_TITLE_TAKEN. With bucket.template, the bucket starts with the files of that template; if they cannot be added, TEMPLATE_IMPORT_FAILED returns the created bucket_id in error.details: add the files to that bucket instead of creating another. Never retry a creation automatically.
223
+ * Waits until the address can receive email. On revdokumail.com, email.username is the bucket\'s name, with no suffix: lowercase letters, digits and single hyphens, 3 to 63 characters, also the name of its site. A name that another bucket uses as an address or a site address, or that another account used, returns EMAIL_ALREADY_EXISTS; your account can use its own earlier names again. Without email.username the address takes the title\'s name when it is free, else two readable words. A custom domain takes the exact name. If confirmation does not finish, EMAIL_NOT_READY returns the created bucket_id in error.details: read that bucket instead of creating another. The title defaults to email.username; a title that another active bucket uses returns 409 BUCKET_TITLE_TAKEN. Its files come from a GitHub repository: connect one with the GitHub operations. Never retry a creation automatically.
402
224
  * Create a bucket
403
225
  */
404
226
  createBucketRaw(requestParameters, initOverrides) {
@@ -409,7 +231,7 @@ class DefaultApi extends runtime.BaseAPI {
409
231
  });
410
232
  }
411
233
  /**
412
- * Waits until the address can receive email. On revdokumail.com, email.username is the bucket\'s name, with no suffix: lowercase letters, digits and single hyphens, 3 to 63 characters, also the name of its site. A name that another bucket uses as an address or a site address, or that another account used, returns EMAIL_ALREADY_EXISTS; your account can use its own earlier names again. Without email.username the address takes the title\'s name when it is free, else two readable words. A custom domain takes the exact name. If confirmation does not finish, EMAIL_NOT_READY returns the created bucket_id in error.details: read that bucket instead of creating another. The title defaults to email.username; a title that another active bucket uses returns 409 BUCKET_TITLE_TAKEN. With bucket.template, the bucket starts with the files of that template; if they cannot be added, TEMPLATE_IMPORT_FAILED returns the created bucket_id in error.details: add the files to that bucket instead of creating another. Never retry a creation automatically.
234
+ * Waits until the address can receive email. On revdokumail.com, email.username is the bucket\'s name, with no suffix: lowercase letters, digits and single hyphens, 3 to 63 characters, also the name of its site. A name that another bucket uses as an address or a site address, or that another account used, returns EMAIL_ALREADY_EXISTS; your account can use its own earlier names again. Without email.username the address takes the title\'s name when it is free, else two readable words. A custom domain takes the exact name. If confirmation does not finish, EMAIL_NOT_READY returns the created bucket_id in error.details: read that bucket instead of creating another. The title defaults to email.username; a title that another active bucket uses returns 409 BUCKET_TITLE_TAKEN. Its files come from a GitHub repository: connect one with the GitHub operations. Never retry a creation automatically.
413
235
  * Create a bucket
414
236
  */
415
237
  createBucket(requestParameters, initOverrides) {
@@ -517,15 +339,15 @@ class DefaultApi extends runtime.BaseAPI {
517
339
  });
518
340
  }
519
341
  /**
520
- * Creates request options for createUploadSession without sending the request
342
+ * Creates request options for createFileUpload without sending the request
521
343
  */
522
- createUploadSessionRequestOpts(requestParameters) {
344
+ createFileUploadRequestOpts(requestParameters) {
523
345
  return __awaiter(this, void 0, void 0, function* () {
524
346
  if (requestParameters['bucketId'] == null) {
525
- throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling createUploadSession().');
347
+ throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling createFileUpload().');
526
348
  }
527
- if (requestParameters['createUploadSessionRequest'] == null) {
528
- throw new runtime.RequiredError('createUploadSessionRequest', 'Required parameter "createUploadSessionRequest" was null or undefined when calling createUploadSession().');
349
+ if (requestParameters['fileUploadRequest'] == null) {
350
+ throw new runtime.RequiredError('fileUploadRequest', 'Required parameter "fileUploadRequest" was null or undefined when calling createFileUpload().');
529
351
  }
530
352
  const queryParameters = {};
531
353
  const headerParameters = {};
@@ -537,35 +359,35 @@ class DefaultApi extends runtime.BaseAPI {
537
359
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
538
360
  }
539
361
  }
540
- let urlPath = `/v1/buckets/{bucket_id}/upload_sessions`;
362
+ let urlPath = `/v1/buckets/{bucket_id}/uploads`;
541
363
  urlPath = urlPath.replace('{bucket_id}', encodeURIComponent(String(requestParameters['bucketId'])));
542
364
  return {
543
365
  path: urlPath,
544
366
  method: 'POST',
545
367
  headers: headerParameters,
546
368
  query: queryParameters,
547
- body: (0, CreateUploadSessionRequest_1.CreateUploadSessionRequestToJSON)(requestParameters['createUploadSessionRequest']),
369
+ body: (0, FileUploadRequest_1.FileUploadRequestToJSON)(requestParameters['fileUploadRequest']),
548
370
  };
549
371
  });
550
372
  }
551
373
  /**
552
- * Starts an upload session for many files and returns storage targets for the first files. The session locks the bucket for other writers; incoming email still arrives. Send files in batches with POST .../uploads, PUT the bytes to each upload.url, save each batch with POST .../finalize_batch, then call POST .../finalize. Unsaved uploads are discarded when the session expires.
553
- * Start a batch upload
374
+ * Requires bucket write permission. For an image of the knowledge base that is larger than 256 KB, or for a client that sends files itself. Send the bytes with PUT to upload.url with upload.headers, then call POST /files with path and signed_blob_id. The link works for one hour. The size limit is the account\'s file size limit. A path outside _kb/ or another file type returns 422 KB_PATH_REQUIRED or KB_FILE_TYPE_UNSUPPORTED, and a file above the limit 413 FILE_TOO_LARGE.
375
+ * Get an upload link for an image
554
376
  */
555
- createUploadSessionRaw(requestParameters, initOverrides) {
377
+ createFileUploadRaw(requestParameters, initOverrides) {
556
378
  return __awaiter(this, void 0, void 0, function* () {
557
- const requestOptions = yield this.createUploadSessionRequestOpts(requestParameters);
379
+ const requestOptions = yield this.createFileUploadRequestOpts(requestParameters);
558
380
  const response = yield this.request(requestOptions, initOverrides);
559
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreateUploadSession201Response_1.CreateUploadSession201ResponseFromJSON)(jsonValue));
381
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreateFileUpload201Response_1.CreateFileUpload201ResponseFromJSON)(jsonValue));
560
382
  });
561
383
  }
562
384
  /**
563
- * Starts an upload session for many files and returns storage targets for the first files. The session locks the bucket for other writers; incoming email still arrives. Send files in batches with POST .../uploads, PUT the bytes to each upload.url, save each batch with POST .../finalize_batch, then call POST .../finalize. Unsaved uploads are discarded when the session expires.
564
- * Start a batch upload
385
+ * Requires bucket write permission. For an image of the knowledge base that is larger than 256 KB, or for a client that sends files itself. Send the bytes with PUT to upload.url with upload.headers, then call POST /files with path and signed_blob_id. The link works for one hour. The size limit is the account\'s file size limit. A path outside _kb/ or another file type returns 422 KB_PATH_REQUIRED or KB_FILE_TYPE_UNSUPPORTED, and a file above the limit 413 FILE_TOO_LARGE.
386
+ * Get an upload link for an image
565
387
  */
566
- createUploadSession(requestParameters, initOverrides) {
388
+ createFileUpload(requestParameters, initOverrides) {
567
389
  return __awaiter(this, void 0, void 0, function* () {
568
- const response = yield this.createUploadSessionRaw(requestParameters, initOverrides);
390
+ const response = yield this.createFileUploadRaw(requestParameters, initOverrides);
569
391
  return yield response.value();
570
392
  });
571
393
  }
@@ -660,8 +482,8 @@ class DefaultApi extends runtime.BaseAPI {
660
482
  });
661
483
  }
662
484
  /**
663
- * Requires bucket-admin permission. Files under _mailbox/ return MAILBOX_PATH_READ_ONLY; delete the ticket message instead. Files under _agents/ and _revdoku/ return RESERVED_PATH.
664
- * Delete a file
485
+ * Requires bucket write permission, and publish permission for a file in _kb/public/. Deletes one file of the knowledge base. Its versions stay: keep the file ID of the answer, list the versions with GET /files/{file_id}/versions and restore one to bring the file back. A path outside _kb/ returns 422 KB_PATH_REQUIRED, SYNCED_COPY_READ_ONLY or RESERVED_PATH. A locked bucket or file returns 423 BUCKET_LOCKED or FILE_LOCKED.
486
+ * Delete a knowledge base file
665
487
  */
666
488
  deleteFileRaw(requestParameters, initOverrides) {
667
489
  return __awaiter(this, void 0, void 0, function* () {
@@ -671,8 +493,8 @@ class DefaultApi extends runtime.BaseAPI {
671
493
  });
672
494
  }
673
495
  /**
674
- * Requires bucket-admin permission. Files under _mailbox/ return MAILBOX_PATH_READ_ONLY; delete the ticket message instead. Files under _agents/ and _revdoku/ return RESERVED_PATH.
675
- * Delete a file
496
+ * Requires bucket write permission, and publish permission for a file in _kb/public/. Deletes one file of the knowledge base. Its versions stay: keep the file ID of the answer, list the versions with GET /files/{file_id}/versions and restore one to bring the file back. A path outside _kb/ returns 422 KB_PATH_REQUIRED, SYNCED_COPY_READ_ONLY or RESERVED_PATH. A locked bucket or file returns 423 BUCKET_LOCKED or FILE_LOCKED.
497
+ * Delete a knowledge base file
676
498
  */
677
499
  deleteFile(requestParameters, initOverrides) {
678
500
  return __awaiter(this, void 0, void 0, function* () {
@@ -889,60 +711,6 @@ class DefaultApi extends runtime.BaseAPI {
889
711
  return yield response.value();
890
712
  });
891
713
  }
892
- /**
893
- * Creates request options for finalizeUploadSession without sending the request
894
- */
895
- finalizeUploadSessionRequestOpts(requestParameters) {
896
- return __awaiter(this, void 0, void 0, function* () {
897
- if (requestParameters['bucketId'] == null) {
898
- throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling finalizeUploadSession().');
899
- }
900
- if (requestParameters['sessionId'] == null) {
901
- throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling finalizeUploadSession().');
902
- }
903
- const queryParameters = {};
904
- const headerParameters = {};
905
- headerParameters['Content-Type'] = 'application/json';
906
- if (this.configuration && this.configuration.accessToken) {
907
- const token = this.configuration.accessToken;
908
- const tokenString = yield token("bearerAuth", []);
909
- if (tokenString) {
910
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
911
- }
912
- }
913
- let urlPath = `/v1/buckets/{bucket_id}/upload_sessions/{session_id}/finalize`;
914
- urlPath = urlPath.replace('{bucket_id}', encodeURIComponent(String(requestParameters['bucketId'])));
915
- urlPath = urlPath.replace('{session_id}', encodeURIComponent(String(requestParameters['sessionId'])));
916
- return {
917
- path: urlPath,
918
- method: 'POST',
919
- headers: headerParameters,
920
- query: queryParameters,
921
- body: (0, FinalizeUploadSessionRequest_1.FinalizeUploadSessionRequestToJSON)(requestParameters['finalizeUploadSessionRequest']),
922
- };
923
- });
924
- }
925
- /**
926
- * complete=true saves the remaining uploaded files, creates one bucket version and releases the lock. A 202 response with finalize_pending=true means more files remain: call finalize again after Retry-After. complete=false cancels the session and discards its unsaved files. Finalizing a finished session returns it unchanged.
927
- * Finish or cancel a batch upload
928
- */
929
- finalizeUploadSessionRaw(requestParameters, initOverrides) {
930
- return __awaiter(this, void 0, void 0, function* () {
931
- const requestOptions = yield this.finalizeUploadSessionRequestOpts(requestParameters);
932
- const response = yield this.request(requestOptions, initOverrides);
933
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreateUploadSession201Response_1.CreateUploadSession201ResponseFromJSON)(jsonValue));
934
- });
935
- }
936
- /**
937
- * complete=true saves the remaining uploaded files, creates one bucket version and releases the lock. A 202 response with finalize_pending=true means more files remain: call finalize again after Retry-After. complete=false cancels the session and discards its unsaved files. Finalizing a finished session returns it unchanged.
938
- * Finish or cancel a batch upload
939
- */
940
- finalizeUploadSession(requestParameters, initOverrides) {
941
- return __awaiter(this, void 0, void 0, function* () {
942
- const response = yield this.finalizeUploadSessionRaw(requestParameters, initOverrides);
943
- return yield response.value();
944
- });
945
- }
946
714
  /**
947
715
  * Creates request options for getAccount without sending the request
948
716
  */
@@ -1709,9 +1477,6 @@ class DefaultApi extends runtime.BaseAPI {
1709
1477
  if (requestParameters['reason'] != null) {
1710
1478
  queryParameters['reason'] = requestParameters['reason'];
1711
1479
  }
1712
- if (requestParameters['includeStorage'] != null) {
1713
- queryParameters['include_storage'] = requestParameters['includeStorage'];
1714
- }
1715
1480
  const headerParameters = {};
1716
1481
  if (this.configuration && this.configuration.accessToken) {
1717
1482
  const token = this.configuration.accessToken;
@@ -2154,7 +1919,7 @@ class DefaultApi extends runtime.BaseAPI {
2154
1919
  });
2155
1920
  }
2156
1921
  /**
2157
- * Lists current files, including stored emails under _mailbox/. Listing never marks files read.
1922
+ * Lists current files with their real paths: _repo/ holds the read-only copy of the GitHub repository, and _kb/ holds the knowledge base (_kb/public/ and _kb/private/). Listing never marks files read.
2158
1923
  * List files
2159
1924
  */
2160
1925
  listFilesRaw(requestParameters, initOverrides) {
@@ -2165,7 +1930,7 @@ class DefaultApi extends runtime.BaseAPI {
2165
1930
  });
2166
1931
  }
2167
1932
  /**
2168
- * Lists current files, including stored emails under _mailbox/. Listing never marks files read.
1933
+ * Lists current files with their real paths: _repo/ holds the read-only copy of the GitHub repository, and _kb/ holds the knowledge base (_kb/public/ and _kb/private/). Listing never marks files read.
2169
1934
  * List files
2170
1935
  */
2171
1936
  listFiles(requestParameters, initOverrides) {
@@ -2359,9 +2124,6 @@ class DefaultApi extends runtime.BaseAPI {
2359
2124
  if (requestParameters['cursor'] != null) {
2360
2125
  queryParameters['cursor'] = requestParameters['cursor'];
2361
2126
  }
2362
- if (requestParameters['includeStorage'] != null) {
2363
- queryParameters['include_storage'] = requestParameters['includeStorage'];
2364
- }
2365
2127
  const headerParameters = {};
2366
2128
  if (this.configuration && this.configuration.accessToken) {
2367
2129
  const token = this.configuration.accessToken;
@@ -2474,59 +2236,6 @@ class DefaultApi extends runtime.BaseAPI {
2474
2236
  return yield response.value();
2475
2237
  });
2476
2238
  }
2477
- /**
2478
- * Creates request options for lockBucket without sending the request
2479
- */
2480
- lockBucketRequestOpts(requestParameters) {
2481
- return __awaiter(this, void 0, void 0, function* () {
2482
- if (requestParameters['bucketId'] == null) {
2483
- throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling lockBucket().');
2484
- }
2485
- if (requestParameters['lockRequest'] == null) {
2486
- throw new runtime.RequiredError('lockRequest', 'Required parameter "lockRequest" was null or undefined when calling lockBucket().');
2487
- }
2488
- const queryParameters = {};
2489
- const headerParameters = {};
2490
- headerParameters['Content-Type'] = 'application/json';
2491
- if (this.configuration && this.configuration.accessToken) {
2492
- const token = this.configuration.accessToken;
2493
- const tokenString = yield token("bearerAuth", []);
2494
- if (tokenString) {
2495
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
2496
- }
2497
- }
2498
- let urlPath = `/v1/buckets/{bucket_id}/lock`;
2499
- urlPath = urlPath.replace('{bucket_id}', encodeURIComponent(String(requestParameters['bucketId'])));
2500
- return {
2501
- path: urlPath,
2502
- method: 'POST',
2503
- headers: headerParameters,
2504
- query: queryParameters,
2505
- body: (0, LockRequest_1.LockRequestToJSON)(requestParameters['lockRequest']),
2506
- };
2507
- });
2508
- }
2509
- /**
2510
- * Tells other people and agents to wait while you edit. Without paths it locks the whole bucket and requires bucket-admin permission; with paths it locks those files and requires write permission. Others get 423 BUCKET_LOCKED or FILE_LOCKED until you unlock or the lock expires. A lock of someone else also returns 423. Locks never block incoming email. A batch upload (upload_sessions) locks the bucket by itself until it finishes. The MCP tool bucket_lock has the same contract.
2511
- * Lock a bucket or some of its files
2512
- */
2513
- lockBucketRaw(requestParameters, initOverrides) {
2514
- return __awaiter(this, void 0, void 0, function* () {
2515
- const requestOptions = yield this.lockBucketRequestOpts(requestParameters);
2516
- const response = yield this.request(requestOptions, initOverrides);
2517
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, LockBucket200Response_1.LockBucket200ResponseFromJSON)(jsonValue));
2518
- });
2519
- }
2520
- /**
2521
- * Tells other people and agents to wait while you edit. Without paths it locks the whole bucket and requires bucket-admin permission; with paths it locks those files and requires write permission. Others get 423 BUCKET_LOCKED or FILE_LOCKED until you unlock or the lock expires. A lock of someone else also returns 423. Locks never block incoming email. A batch upload (upload_sessions) locks the bucket by itself until it finishes. The MCP tool bucket_lock has the same contract.
2522
- * Lock a bucket or some of its files
2523
- */
2524
- lockBucket(requestParameters, initOverrides) {
2525
- return __awaiter(this, void 0, void 0, function* () {
2526
- const response = yield this.lockBucketRaw(requestParameters, initOverrides);
2527
- return yield response.value();
2528
- });
2529
- }
2530
2239
  /**
2531
2240
  * Creates request options for moveFile without sending the request
2532
2241
  */
@@ -2538,8 +2247,8 @@ class DefaultApi extends runtime.BaseAPI {
2538
2247
  if (requestParameters['fileId'] == null) {
2539
2248
  throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling moveFile().');
2540
2249
  }
2541
- if (requestParameters['moveFileRequest'] == null) {
2542
- throw new runtime.RequiredError('moveFileRequest', 'Required parameter "moveFileRequest" was null or undefined when calling moveFile().');
2250
+ if (requestParameters['fileMoveRequest'] == null) {
2251
+ throw new runtime.RequiredError('fileMoveRequest', 'Required parameter "fileMoveRequest" was null or undefined when calling moveFile().');
2543
2252
  }
2544
2253
  const queryParameters = {};
2545
2254
  const headerParameters = {};
@@ -2559,24 +2268,24 @@ class DefaultApi extends runtime.BaseAPI {
2559
2268
  method: 'POST',
2560
2269
  headers: headerParameters,
2561
2270
  query: queryParameters,
2562
- body: (0, MoveFileRequest_1.MoveFileRequestToJSON)(requestParameters['moveFileRequest']),
2271
+ body: (0, FileMoveRequest_1.FileMoveRequestToJSON)(requestParameters['fileMoveRequest']),
2563
2272
  };
2564
2273
  });
2565
2274
  }
2566
2275
  /**
2567
- * Works in the same bucket or into target_bucket_id. Content is not uploaded again. Send target_path for an exact path or target_folder to keep the name.
2568
- * Move a file
2276
+ * Requires bucket write permission. Moves one file inside the knowledge base to new_path: a new name (a rename), another folder, or from _kb/private/ to _kb/public/ and back. A move to or from _kb/public/ needs publish permission (403 KB_PUBLISH_PERMISSION_REQUIRED). The file keeps its ID and its versions. A file at the new path returns 409 BUCKET_FILE_PATH_EXISTS. The site changes after the next publish. A path outside _kb/ returns 422 KB_PATH_REQUIRED, SYNCED_COPY_READ_ONLY or RESERVED_PATH. A locked bucket or file returns 423 BUCKET_LOCKED or FILE_LOCKED.
2277
+ * Move or rename a knowledge base file
2569
2278
  */
2570
2279
  moveFileRaw(requestParameters, initOverrides) {
2571
2280
  return __awaiter(this, void 0, void 0, function* () {
2572
2281
  const requestOptions = yield this.moveFileRequestOpts(requestParameters);
2573
2282
  const response = yield this.request(requestOptions, initOverrides);
2574
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, RenameFile200Response_1.RenameFile200ResponseFromJSON)(jsonValue));
2283
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, MoveFile200Response_1.MoveFile200ResponseFromJSON)(jsonValue));
2575
2284
  });
2576
2285
  }
2577
2286
  /**
2578
- * Works in the same bucket or into target_bucket_id. Content is not uploaded again. Send target_path for an exact path or target_folder to keep the name.
2579
- * Move a file
2287
+ * Requires bucket write permission. Moves one file inside the knowledge base to new_path: a new name (a rename), another folder, or from _kb/private/ to _kb/public/ and back. A move to or from _kb/public/ needs publish permission (403 KB_PUBLISH_PERMISSION_REQUIRED). The file keeps its ID and its versions. A file at the new path returns 409 BUCKET_FILE_PATH_EXISTS. The site changes after the next publish. A path outside _kb/ returns 422 KB_PATH_REQUIRED, SYNCED_COPY_READ_ONLY or RESERVED_PATH. A locked bucket or file returns 423 BUCKET_LOCKED or FILE_LOCKED.
2288
+ * Move or rename a knowledge base file
2580
2289
  */
2581
2290
  moveFile(requestParameters, initOverrides) {
2582
2291
  return __awaiter(this, void 0, void 0, function* () {
@@ -2584,59 +2293,6 @@ class DefaultApi extends runtime.BaseAPI {
2584
2293
  return yield response.value();
2585
2294
  });
2586
2295
  }
2587
- /**
2588
- * Creates request options for prepareFileUpload without sending the request
2589
- */
2590
- prepareFileUploadRequestOpts(requestParameters) {
2591
- return __awaiter(this, void 0, void 0, function* () {
2592
- if (requestParameters['bucketId'] == null) {
2593
- throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling prepareFileUpload().');
2594
- }
2595
- if (requestParameters['prepareFileUploadRequest'] == null) {
2596
- throw new runtime.RequiredError('prepareFileUploadRequest', 'Required parameter "prepareFileUploadRequest" was null or undefined when calling prepareFileUpload().');
2597
- }
2598
- const queryParameters = {};
2599
- const headerParameters = {};
2600
- headerParameters['Content-Type'] = 'application/json';
2601
- if (this.configuration && this.configuration.accessToken) {
2602
- const token = this.configuration.accessToken;
2603
- const tokenString = yield token("bearerAuth", []);
2604
- if (tokenString) {
2605
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
2606
- }
2607
- }
2608
- let urlPath = `/v1/buckets/{bucket_id}/uploads`;
2609
- urlPath = urlPath.replace('{bucket_id}', encodeURIComponent(String(requestParameters['bucketId'])));
2610
- return {
2611
- path: urlPath,
2612
- method: 'POST',
2613
- headers: headerParameters,
2614
- query: queryParameters,
2615
- body: (0, PrepareFileUploadRequest_1.PrepareFileUploadRequestToJSON)(requestParameters['prepareFileUploadRequest']),
2616
- };
2617
- });
2618
- }
2619
- /**
2620
- * Returns a storage URL. Then PUT the bytes to direct_upload.url with exactly direct_upload.headers and no API key (step 2), and save the file with POST /v1/buckets/{bucket_id}/files (step 3). Identical content at the same path returns skipped=true and duplicate=true without an upload.
2621
- * Prepare a file upload (step 1 of 3)
2622
- */
2623
- prepareFileUploadRaw(requestParameters, initOverrides) {
2624
- return __awaiter(this, void 0, void 0, function* () {
2625
- const requestOptions = yield this.prepareFileUploadRequestOpts(requestParameters);
2626
- const response = yield this.request(requestOptions, initOverrides);
2627
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, PrepareFileUpload201Response_1.PrepareFileUpload201ResponseFromJSON)(jsonValue));
2628
- });
2629
- }
2630
- /**
2631
- * Returns a storage URL. Then PUT the bytes to direct_upload.url with exactly direct_upload.headers and no API key (step 2), and save the file with POST /v1/buckets/{bucket_id}/files (step 3). Identical content at the same path returns skipped=true and duplicate=true without an upload.
2632
- * Prepare a file upload (step 1 of 3)
2633
- */
2634
- prepareFileUpload(requestParameters, initOverrides) {
2635
- return __awaiter(this, void 0, void 0, function* () {
2636
- const response = yield this.prepareFileUploadRaw(requestParameters, initOverrides);
2637
- return yield response.value();
2638
- });
2639
- }
2640
2296
  /**
2641
2297
  * Creates request options for previewBucket without sending the request
2642
2298
  */
@@ -2737,63 +2393,6 @@ class DefaultApi extends runtime.BaseAPI {
2737
2393
  return yield response.value();
2738
2394
  });
2739
2395
  }
2740
- /**
2741
- * Creates request options for renameFile without sending the request
2742
- */
2743
- renameFileRequestOpts(requestParameters) {
2744
- return __awaiter(this, void 0, void 0, function* () {
2745
- if (requestParameters['bucketId'] == null) {
2746
- throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling renameFile().');
2747
- }
2748
- if (requestParameters['fileId'] == null) {
2749
- throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling renameFile().');
2750
- }
2751
- if (requestParameters['renameFileRequest'] == null) {
2752
- throw new runtime.RequiredError('renameFileRequest', 'Required parameter "renameFileRequest" was null or undefined when calling renameFile().');
2753
- }
2754
- const queryParameters = {};
2755
- const headerParameters = {};
2756
- headerParameters['Content-Type'] = 'application/json';
2757
- if (this.configuration && this.configuration.accessToken) {
2758
- const token = this.configuration.accessToken;
2759
- const tokenString = yield token("bearerAuth", []);
2760
- if (tokenString) {
2761
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
2762
- }
2763
- }
2764
- let urlPath = `/v1/buckets/{bucket_id}/files/{file_id}/rename`;
2765
- urlPath = urlPath.replace('{bucket_id}', encodeURIComponent(String(requestParameters['bucketId'])));
2766
- urlPath = urlPath.replace('{file_id}', encodeURIComponent(String(requestParameters['fileId'])));
2767
- return {
2768
- path: urlPath,
2769
- method: 'POST',
2770
- headers: headerParameters,
2771
- query: queryParameters,
2772
- body: (0, RenameFileRequest_1.RenameFileRequestToJSON)(requestParameters['renameFileRequest']),
2773
- };
2774
- });
2775
- }
2776
- /**
2777
- * Changes the path without uploading the content again.
2778
- * Rename or move a file in the same bucket
2779
- */
2780
- renameFileRaw(requestParameters, initOverrides) {
2781
- return __awaiter(this, void 0, void 0, function* () {
2782
- const requestOptions = yield this.renameFileRequestOpts(requestParameters);
2783
- const response = yield this.request(requestOptions, initOverrides);
2784
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, RenameFile200Response_1.RenameFile200ResponseFromJSON)(jsonValue));
2785
- });
2786
- }
2787
- /**
2788
- * Changes the path without uploading the content again.
2789
- * Rename or move a file in the same bucket
2790
- */
2791
- renameFile(requestParameters, initOverrides) {
2792
- return __awaiter(this, void 0, void 0, function* () {
2793
- const response = yield this.renameFileRaw(requestParameters, initOverrides);
2794
- return yield response.value();
2795
- });
2796
- }
2797
2396
  /**
2798
2397
  * Creates request options for replyToTicket without sending the request
2799
2398
  */
@@ -2907,9 +2506,6 @@ class DefaultApi extends runtime.BaseAPI {
2907
2506
  if (requestParameters['versionId'] == null) {
2908
2507
  throw new runtime.RequiredError('versionId', 'Required parameter "versionId" was null or undefined when calling restoreFileVersion().');
2909
2508
  }
2910
- if (requestParameters['actionRequest'] == null) {
2911
- throw new runtime.RequiredError('actionRequest', 'Required parameter "actionRequest" was null or undefined when calling restoreFileVersion().');
2912
- }
2913
2509
  const queryParameters = {};
2914
2510
  const headerParameters = {};
2915
2511
  headerParameters['Content-Type'] = 'application/json';
@@ -2934,7 +2530,7 @@ class DefaultApi extends runtime.BaseAPI {
2934
2530
  });
2935
2531
  }
2936
2532
  /**
2937
- * Creates a new current version with the content of the selected version. History is kept. Requires a plan with version restore.
2533
+ * Requires bucket write permission, and publish permission for a file in _kb/public/. Makes an earlier version of a knowledge base file the current one, as a new version. A deleted file comes back with it: use the file ID that the delete returned. When another file took its path meanwhile, the answer is 409 BUCKET_FILE_PATH_EXISTS. The current version returns 422 FILE_VERSION_ALREADY_CURRENT. A path outside _kb/ returns 422 KB_PATH_REQUIRED, SYNCED_COPY_READ_ONLY or RESERVED_PATH. A locked bucket or file returns 423 BUCKET_LOCKED or FILE_LOCKED.
2938
2534
  * Restore a file version
2939
2535
  */
2940
2536
  restoreFileVersionRaw(requestParameters, initOverrides) {
@@ -2945,7 +2541,7 @@ class DefaultApi extends runtime.BaseAPI {
2945
2541
  });
2946
2542
  }
2947
2543
  /**
2948
- * Creates a new current version with the content of the selected version. History is kept. Requires a plan with version restore.
2544
+ * Requires bucket write permission, and publish permission for a file in _kb/public/. Makes an earlier version of a knowledge base file the current one, as a new version. A deleted file comes back with it: use the file ID that the delete returned. When another file took its path meanwhile, the answer is 409 BUCKET_FILE_PATH_EXISTS. The current version returns 422 FILE_VERSION_ALREADY_CURRENT. A path outside _kb/ returns 422 KB_PATH_REQUIRED, SYNCED_COPY_READ_ONLY or RESERVED_PATH. A locked bucket or file returns 423 BUCKET_LOCKED or FILE_LOCKED.
2949
2545
  * Restore a file version
2950
2546
  */
2951
2547
  restoreFileVersion(requestParameters, initOverrides) {
@@ -2954,113 +2550,6 @@ class DefaultApi extends runtime.BaseAPI {
2954
2550
  return yield response.value();
2955
2551
  });
2956
2552
  }
2957
- /**
2958
- * Creates request options for saveUploadSessionBatch without sending the request
2959
- */
2960
- saveUploadSessionBatchRequestOpts(requestParameters) {
2961
- return __awaiter(this, void 0, void 0, function* () {
2962
- if (requestParameters['bucketId'] == null) {
2963
- throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling saveUploadSessionBatch().');
2964
- }
2965
- if (requestParameters['sessionId'] == null) {
2966
- throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling saveUploadSessionBatch().');
2967
- }
2968
- const queryParameters = {};
2969
- const headerParameters = {};
2970
- headerParameters['Content-Type'] = 'application/json';
2971
- if (this.configuration && this.configuration.accessToken) {
2972
- const token = this.configuration.accessToken;
2973
- const tokenString = yield token("bearerAuth", []);
2974
- if (tokenString) {
2975
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
2976
- }
2977
- }
2978
- let urlPath = `/v1/buckets/{bucket_id}/upload_sessions/{session_id}/finalize_batch`;
2979
- urlPath = urlPath.replace('{bucket_id}', encodeURIComponent(String(requestParameters['bucketId'])));
2980
- urlPath = urlPath.replace('{session_id}', encodeURIComponent(String(requestParameters['sessionId'])));
2981
- return {
2982
- path: urlPath,
2983
- method: 'POST',
2984
- headers: headerParameters,
2985
- query: queryParameters,
2986
- body: (0, SaveUploadSessionBatchRequest_1.SaveUploadSessionBatchRequestToJSON)(requestParameters['saveUploadSessionBatchRequest']),
2987
- };
2988
- });
2989
- }
2990
- /**
2991
- * Saves up to limit files whose bytes were uploaded. Call it after each batch to keep each request short. DIRECT_UPLOAD_NOT_FOUND names a file whose bytes are missing in error.details.path; upload it again and retry.
2992
- * Save uploaded files
2993
- */
2994
- saveUploadSessionBatchRaw(requestParameters, initOverrides) {
2995
- return __awaiter(this, void 0, void 0, function* () {
2996
- const requestOptions = yield this.saveUploadSessionBatchRequestOpts(requestParameters);
2997
- const response = yield this.request(requestOptions, initOverrides);
2998
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreateUploadSession201Response_1.CreateUploadSession201ResponseFromJSON)(jsonValue));
2999
- });
3000
- }
3001
- /**
3002
- * Saves up to limit files whose bytes were uploaded. Call it after each batch to keep each request short. DIRECT_UPLOAD_NOT_FOUND names a file whose bytes are missing in error.details.path; upload it again and retry.
3003
- * Save uploaded files
3004
- */
3005
- saveUploadSessionBatch(requestParameters, initOverrides) {
3006
- return __awaiter(this, void 0, void 0, function* () {
3007
- const response = yield this.saveUploadSessionBatchRaw(requestParameters, initOverrides);
3008
- return yield response.value();
3009
- });
3010
- }
3011
- /**
3012
- * Creates request options for saveUploadedFile without sending the request
3013
- */
3014
- saveUploadedFileRequestOpts(requestParameters) {
3015
- return __awaiter(this, void 0, void 0, function* () {
3016
- if (requestParameters['bucketId'] == null) {
3017
- throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling saveUploadedFile().');
3018
- }
3019
- if (requestParameters['saveUploadedFileRequest'] == null) {
3020
- throw new runtime.RequiredError('saveUploadedFileRequest', 'Required parameter "saveUploadedFileRequest" was null or undefined when calling saveUploadedFile().');
3021
- }
3022
- const queryParameters = {};
3023
- const headerParameters = {};
3024
- headerParameters['Content-Type'] = 'application/json';
3025
- if (this.configuration && this.configuration.accessToken) {
3026
- const token = this.configuration.accessToken;
3027
- const tokenString = yield token("bearerAuth", []);
3028
- if (tokenString) {
3029
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
3030
- }
3031
- }
3032
- let urlPath = `/v1/buckets/{bucket_id}/files`;
3033
- urlPath = urlPath.replace('{bucket_id}', encodeURIComponent(String(requestParameters['bucketId'])));
3034
- return {
3035
- path: urlPath,
3036
- method: 'POST',
3037
- headers: headerParameters,
3038
- query: queryParameters,
3039
- body: (0, SaveUploadedFileRequest_1.SaveUploadedFileRequestToJSON)(requestParameters['saveUploadedFileRequest']),
3040
- };
3041
- });
3042
- }
3043
- /**
3044
- * Saves the uploaded blob at path. An existing path gets a new version.
3045
- * Save an uploaded file (step 3 of 3)
3046
- */
3047
- saveUploadedFileRaw(requestParameters, initOverrides) {
3048
- return __awaiter(this, void 0, void 0, function* () {
3049
- const requestOptions = yield this.saveUploadedFileRequestOpts(requestParameters);
3050
- const response = yield this.request(requestOptions, initOverrides);
3051
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, SaveUploadedFile201Response_1.SaveUploadedFile201ResponseFromJSON)(jsonValue));
3052
- });
3053
- }
3054
- /**
3055
- * Saves the uploaded blob at path. An existing path gets a new version.
3056
- * Save an uploaded file (step 3 of 3)
3057
- */
3058
- saveUploadedFile(requestParameters, initOverrides) {
3059
- return __awaiter(this, void 0, void 0, function* () {
3060
- const response = yield this.saveUploadedFileRaw(requestParameters, initOverrides);
3061
- return yield response.value();
3062
- });
3063
- }
3064
2553
  /**
3065
2554
  * Creates request options for setWebhook without sending the request
3066
2555
  */
@@ -3217,59 +2706,6 @@ class DefaultApi extends runtime.BaseAPI {
3217
2706
  return yield response.value();
3218
2707
  });
3219
2708
  }
3220
- /**
3221
- * Creates request options for unlockBucket without sending the request
3222
- */
3223
- unlockBucketRequestOpts(requestParameters) {
3224
- return __awaiter(this, void 0, void 0, function* () {
3225
- if (requestParameters['bucketId'] == null) {
3226
- throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling unlockBucket().');
3227
- }
3228
- if (requestParameters['unlockRequest'] == null) {
3229
- throw new runtime.RequiredError('unlockRequest', 'Required parameter "unlockRequest" was null or undefined when calling unlockBucket().');
3230
- }
3231
- const queryParameters = {};
3232
- const headerParameters = {};
3233
- headerParameters['Content-Type'] = 'application/json';
3234
- if (this.configuration && this.configuration.accessToken) {
3235
- const token = this.configuration.accessToken;
3236
- const tokenString = yield token("bearerAuth", []);
3237
- if (tokenString) {
3238
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
3239
- }
3240
- }
3241
- let urlPath = `/v1/buckets/{bucket_id}/unlock`;
3242
- urlPath = urlPath.replace('{bucket_id}', encodeURIComponent(String(requestParameters['bucketId'])));
3243
- return {
3244
- path: urlPath,
3245
- method: 'POST',
3246
- headers: headerParameters,
3247
- query: queryParameters,
3248
- body: (0, UnlockRequest_1.UnlockRequestToJSON)(requestParameters['unlockRequest']),
3249
- };
3250
- });
3251
- }
3252
- /**
3253
- * Removes your lock of the whole bucket (bucket-admin permission) or of the listed files (write permission). A lock of someone else, a running batch upload or a deletion returns 423 BUCKET_LOCKED or FILE_LOCKED. Unlocking an unlocked bucket returns its lock state.
3254
- * Remove your lock
3255
- */
3256
- unlockBucketRaw(requestParameters, initOverrides) {
3257
- return __awaiter(this, void 0, void 0, function* () {
3258
- const requestOptions = yield this.unlockBucketRequestOpts(requestParameters);
3259
- const response = yield this.request(requestOptions, initOverrides);
3260
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, LockBucket200Response_1.LockBucket200ResponseFromJSON)(jsonValue));
3261
- });
3262
- }
3263
- /**
3264
- * Removes your lock of the whole bucket (bucket-admin permission) or of the listed files (write permission). A lock of someone else, a running batch upload or a deletion returns 423 BUCKET_LOCKED or FILE_LOCKED. Unlocking an unlocked bucket returns its lock state.
3265
- * Remove your lock
3266
- */
3267
- unlockBucket(requestParameters, initOverrides) {
3268
- return __awaiter(this, void 0, void 0, function* () {
3269
- const response = yield this.unlockBucketRaw(requestParameters, initOverrides);
3270
- return yield response.value();
3271
- });
3272
- }
3273
2709
  /**
3274
2710
  * Creates request options for unpublishBucket without sending the request
3275
2711
  */
@@ -3404,7 +2840,7 @@ class DefaultApi extends runtime.BaseAPI {
3404
2840
  });
3405
2841
  }
3406
2842
  /**
3407
- * Sets auto_publish and the mode of edits made in Revdoku: push_revdoku_edits false makes the files a read-only copy, auto_commit true commits edits to the branch at each sync, and auto_commit false keeps them in pending_changes until a person publishes them in the dashboard. Needs an account owner or administrator key with admin access to all buckets.
2843
+ * Sets auto_publish: whether the site publishes again after each sync. Needs an account owner or administrator key with admin access to all buckets.
3408
2844
  * Change GitHub sync settings
3409
2845
  */
3410
2846
  updateGithubSyncRaw(requestParameters, initOverrides) {
@@ -3415,7 +2851,7 @@ class DefaultApi extends runtime.BaseAPI {
3415
2851
  });
3416
2852
  }
3417
2853
  /**
3418
- * Sets auto_publish and the mode of edits made in Revdoku: push_revdoku_edits false makes the files a read-only copy, auto_commit true commits edits to the branch at each sync, and auto_commit false keeps them in pending_changes until a person publishes them in the dashboard. Needs an account owner or administrator key with admin access to all buckets.
2854
+ * Sets auto_publish: whether the site publishes again after each sync. Needs an account owner or administrator key with admin access to all buckets.
3419
2855
  * Change GitHub sync settings
3420
2856
  */
3421
2857
  updateGithubSync(requestParameters, initOverrides) {
@@ -3461,8 +2897,8 @@ class DefaultApi extends runtime.BaseAPI {
3461
2897
  });
3462
2898
  }
3463
2899
  /**
3464
- * Requires bucket write permission. status solved or open changes every ticket of a merged conversation. add_labels labels the first message; remove_labels removes the labels from every message. Built-in labels such as Junk change only in the dashboard. While an agent works on a message, a label change returns 423 EMAIL_LOCKED.
3465
- * Solve, reopen or label a ticket
2900
+ * Requires bucket write permission. status is open, pending (it waits for the requester) or solved; it changes every ticket of a merged conversation. internal_note sets the team\'s note on the ticket: it is never sent to the requester, and a change of it is no activity of the ticket. add_labels labels the first message; remove_labels removes the labels from every message. Built-in labels such as Junk change only in the dashboard. While an agent works on a message, a label change returns 423 EMAIL_LOCKED.
2901
+ * Change a ticket: status, internal note or labels
3466
2902
  */
3467
2903
  updateTicketRaw(requestParameters, initOverrides) {
3468
2904
  return __awaiter(this, void 0, void 0, function* () {
@@ -3472,8 +2908,8 @@ class DefaultApi extends runtime.BaseAPI {
3472
2908
  });
3473
2909
  }
3474
2910
  /**
3475
- * Requires bucket write permission. status solved or open changes every ticket of a merged conversation. add_labels labels the first message; remove_labels removes the labels from every message. Built-in labels such as Junk change only in the dashboard. While an agent works on a message, a label change returns 423 EMAIL_LOCKED.
3476
- * Solve, reopen or label a ticket
2911
+ * Requires bucket write permission. status is open, pending (it waits for the requester) or solved; it changes every ticket of a merged conversation. internal_note sets the team\'s note on the ticket: it is never sent to the requester, and a change of it is no activity of the ticket. add_labels labels the first message; remove_labels removes the labels from every message. Built-in labels such as Junk change only in the dashboard. While an agent works on a message, a label change returns 423 EMAIL_LOCKED.
2912
+ * Change a ticket: status, internal note or labels
3477
2913
  */
3478
2914
  updateTicket(requestParameters, initOverrides) {
3479
2915
  return __awaiter(this, void 0, void 0, function* () {
@@ -3523,6 +2959,59 @@ class DefaultApi extends runtime.BaseAPI {
3523
2959
  return yield response.value();
3524
2960
  });
3525
2961
  }
2962
+ /**
2963
+ * Creates request options for writeFile without sending the request
2964
+ */
2965
+ writeFileRequestOpts(requestParameters) {
2966
+ return __awaiter(this, void 0, void 0, function* () {
2967
+ if (requestParameters['bucketId'] == null) {
2968
+ throw new runtime.RequiredError('bucketId', 'Required parameter "bucketId" was null or undefined when calling writeFile().');
2969
+ }
2970
+ if (requestParameters['fileWriteRequest'] == null) {
2971
+ throw new runtime.RequiredError('fileWriteRequest', 'Required parameter "fileWriteRequest" was null or undefined when calling writeFile().');
2972
+ }
2973
+ const queryParameters = {};
2974
+ const headerParameters = {};
2975
+ headerParameters['Content-Type'] = 'application/json';
2976
+ if (this.configuration && this.configuration.accessToken) {
2977
+ const token = this.configuration.accessToken;
2978
+ const tokenString = yield token("bearerAuth", []);
2979
+ if (tokenString) {
2980
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2981
+ }
2982
+ }
2983
+ let urlPath = `/v1/buckets/{bucket_id}/files`;
2984
+ urlPath = urlPath.replace('{bucket_id}', encodeURIComponent(String(requestParameters['bucketId'])));
2985
+ return {
2986
+ path: urlPath,
2987
+ method: 'POST',
2988
+ headers: headerParameters,
2989
+ query: queryParameters,
2990
+ body: (0, FileWriteRequest_1.FileWriteRequestToJSON)(requestParameters['fileWriteRequest']),
2991
+ };
2992
+ });
2993
+ }
2994
+ /**
2995
+ * Requires bucket write permission. The knowledge base is the bucket folder _kb/: _kb/public/ is published with the site, and _kb/private/ is never published. Every other file of a bucket is read-only: the files of _repo/ change on GitHub. Send one of content (a page), content_base64 (a small image) or signed_blob_id (an uploaded image). A file at the path gets a new version. A file in _kb/public/ needs publish permission; without it the answer is 403 KB_PUBLISH_PERMISSION_REQUIRED. A write never publishes: the site shows a public file after the next publish. Another path returns 422 KB_PATH_REQUIRED, SYNCED_COPY_READ_ONLY or RESERVED_PATH, and another file type 422 KB_FILE_TYPE_UNSUPPORTED. A page of _kb/public/ with the front matter line do_not_publish: true stays off the site, and the site\'s AI Support Agent still answers visitors from it: put only facts that visitors may know there, never secrets. A file above the account\'s file size limit returns 413 FILE_TOO_LARGE. A locked bucket or file returns 423 BUCKET_LOCKED or FILE_LOCKED.
2996
+ * Write a knowledge base file
2997
+ */
2998
+ writeFileRaw(requestParameters, initOverrides) {
2999
+ return __awaiter(this, void 0, void 0, function* () {
3000
+ const requestOptions = yield this.writeFileRequestOpts(requestParameters);
3001
+ const response = yield this.request(requestOptions, initOverrides);
3002
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, WriteFile201Response_1.WriteFile201ResponseFromJSON)(jsonValue));
3003
+ });
3004
+ }
3005
+ /**
3006
+ * Requires bucket write permission. The knowledge base is the bucket folder _kb/: _kb/public/ is published with the site, and _kb/private/ is never published. Every other file of a bucket is read-only: the files of _repo/ change on GitHub. Send one of content (a page), content_base64 (a small image) or signed_blob_id (an uploaded image). A file at the path gets a new version. A file in _kb/public/ needs publish permission; without it the answer is 403 KB_PUBLISH_PERMISSION_REQUIRED. A write never publishes: the site shows a public file after the next publish. Another path returns 422 KB_PATH_REQUIRED, SYNCED_COPY_READ_ONLY or RESERVED_PATH, and another file type 422 KB_FILE_TYPE_UNSUPPORTED. A page of _kb/public/ with the front matter line do_not_publish: true stays off the site, and the site\'s AI Support Agent still answers visitors from it: put only facts that visitors may know there, never secrets. A file above the account\'s file size limit returns 413 FILE_TOO_LARGE. A locked bucket or file returns 423 BUCKET_LOCKED or FILE_LOCKED.
3007
+ * Write a knowledge base file
3008
+ */
3009
+ writeFile(requestParameters, initOverrides) {
3010
+ return __awaiter(this, void 0, void 0, function* () {
3011
+ const response = yield this.writeFileRaw(requestParameters, initOverrides);
3012
+ return yield response.value();
3013
+ });
3014
+ }
3526
3015
  }
3527
3016
  exports.DefaultApi = DefaultApi;
3528
3017
  /**
@@ -3575,6 +3064,7 @@ exports.ListBucketsStatusEnum = {
3575
3064
  */
3576
3065
  exports.ListTicketsStatusEnum = {
3577
3066
  Open: 'open',
3067
+ Pending: 'pending',
3578
3068
  Solved: 'solved',
3579
3069
  All: 'all',
3580
3070
  };