@cloudpdf/sdk 3.0.0-next.15 → 3.0.0-next.16

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 (284) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/errors/ContentTooLargeError.d.ts +1 -3
  3. package/dist/cjs/api/resources/doc/client/Client.d.ts +7 -1
  4. package/dist/cjs/api/resources/doc/client/Client.js +23 -13
  5. package/dist/cjs/api/resources/doc/resources/annotations/client/Client.d.ts +11 -0
  6. package/dist/cjs/api/resources/doc/resources/annotations/client/Client.js +52 -0
  7. package/dist/cjs/api/resources/doc/resources/annotations/client/requests/ReadFileAnnotationsRequest.d.ts +19 -0
  8. package/dist/cjs/api/resources/doc/resources/annotations/client/requests/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/doc/resources/attachments/client/Client.d.ts +42 -0
  10. package/dist/cjs/api/resources/doc/resources/attachments/client/Client.js +167 -0
  11. package/dist/cjs/api/resources/doc/resources/attachments/client/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/doc/resources/attachments/client/index.js +17 -0
  13. package/dist/cjs/api/resources/doc/resources/{pages/client/requests/DeletePagesRequest.d.ts → attachments/client/requests/DownloadAttachmentsRequest.d.ts} +4 -8
  14. package/dist/cjs/api/resources/doc/resources/{pages/client/requests/InsertPagesRequest.d.ts → attachments/client/requests/ListAttachmentsRequest.d.ts} +1 -6
  15. package/dist/cjs/api/resources/doc/resources/attachments/client/requests/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/doc/resources/attachments/client/requests/index.js +2 -0
  17. package/dist/cjs/api/resources/doc/resources/attachments/exports.d.ts +2 -0
  18. package/dist/cjs/api/resources/doc/resources/attachments/exports.js +21 -0
  19. package/dist/cjs/api/resources/doc/resources/attachments/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/doc/resources/attachments/index.js +17 -0
  21. package/dist/cjs/api/resources/doc/resources/index.d.ts +4 -0
  22. package/dist/cjs/api/resources/doc/resources/index.js +5 -1
  23. package/dist/cjs/api/resources/doc/resources/outline/client/Client.d.ts +29 -0
  24. package/dist/cjs/api/resources/doc/resources/outline/client/Client.js +110 -0
  25. package/dist/cjs/api/resources/doc/resources/outline/client/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/doc/resources/outline/client/index.js +17 -0
  27. package/dist/{esm/api/resources/doc/resources/pages/client/requests/InsertPagesRequest.d.mts → cjs/api/resources/doc/resources/outline/client/requests/GetOutlineRequest.d.ts} +1 -6
  28. package/dist/cjs/api/resources/doc/resources/outline/client/requests/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/doc/resources/outline/client/requests/index.js +2 -0
  30. package/dist/cjs/api/resources/doc/resources/outline/exports.d.ts +2 -0
  31. package/dist/cjs/api/resources/doc/resources/outline/exports.js +21 -0
  32. package/dist/cjs/api/resources/doc/resources/outline/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/doc/resources/outline/index.js +17 -0
  34. package/dist/cjs/api/resources/doc/resources/pages/client/Client.d.ts +1 -106
  35. package/dist/cjs/api/resources/doc/resources/pages/client/Client.js +1 -316
  36. package/dist/cjs/api/resources/doc/resources/pages/client/requests/index.d.ts +0 -5
  37. package/dist/cjs/api/types/Annotation.d.ts +1 -10
  38. package/dist/cjs/api/types/Attachment.d.ts +23 -0
  39. package/dist/cjs/api/types/Attachment.js +13 -0
  40. package/dist/cjs/api/types/AttachmentFileBase.d.ts +5 -0
  41. package/dist/cjs/api/types/AttachmentFileInfo.d.ts +9 -0
  42. package/dist/cjs/api/types/AttachmentList.d.ts +4 -0
  43. package/dist/cjs/api/types/AttachmentMutationMeta.d.ts +23 -0
  44. package/dist/cjs/api/types/AttachmentMutationMeta.js +16 -0
  45. package/dist/cjs/api/types/CacheDelta.d.ts +1 -0
  46. package/dist/cjs/api/types/ChangeItem.d.ts +634 -1
  47. package/dist/cjs/api/types/ChangeItem.js +129 -0
  48. package/dist/cjs/api/types/ChangeItemPagesDeleteLayoutNamedPagesItemTarget.d.ts +15 -0
  49. package/dist/cjs/api/types/ChangeItemPagesInsertBlankLayoutNamedPagesItemTarget.d.ts +15 -0
  50. package/dist/cjs/api/types/ChangeItemPagesInsertLayoutNamedPagesItemTarget.d.ts +15 -0
  51. package/dist/cjs/api/types/ChangeItemPagesReorderLayoutNamedPagesItemTarget.d.ts +15 -0
  52. package/dist/cjs/api/types/ChangeItemPagesRestoreLayoutNamedPagesItemTarget.d.ts +15 -0
  53. package/dist/cjs/api/types/ChangeItemPagesRotateLayoutNamedPagesItemTarget.d.ts +15 -0
  54. package/dist/cjs/api/types/ChangeOp.d.ts +93 -1
  55. package/dist/cjs/api/types/ChangeOp.js +9 -0
  56. package/dist/cjs/api/types/DocAnnotationsReadFile400Response.d.ts +2 -0
  57. package/dist/cjs/api/types/DocAnnotationsReadFile404Response.d.ts +2 -0
  58. package/dist/cjs/api/types/DocAnnotationsReadFile413Response.d.ts +2 -0
  59. package/dist/cjs/api/types/DocAttachmentsDownload400Response.d.ts +2 -0
  60. package/dist/cjs/api/types/DocAttachmentsDownload404Response.d.ts +2 -0
  61. package/dist/cjs/api/types/DocAttachmentsDownload413Response.d.ts +2 -0
  62. package/dist/cjs/api/types/DocAttachmentsList200Response.d.ts +2 -0
  63. package/dist/cjs/api/types/DocAttachmentsList404Response.d.ts +2 -0
  64. package/dist/cjs/api/types/DocManifest200Response.d.ts +7 -0
  65. package/dist/cjs/api/types/DocManifest200Response.js +4 -0
  66. package/dist/cjs/api/types/DocOutlineGet200Response.d.ts +2 -0
  67. package/dist/cjs/api/types/DocOutlineGet404Response.d.ts +2 -0
  68. package/dist/cjs/api/types/DocumentOutline.d.ts +5 -0
  69. package/dist/cjs/api/types/DocumentOutline.js +3 -0
  70. package/dist/cjs/api/types/OutlineItem.d.ts +12 -0
  71. package/dist/cjs/api/types/OutlineItem.js +3 -0
  72. package/dist/cjs/api/types/OutlineItemDraft.d.ts +8 -0
  73. package/dist/cjs/api/types/OutlineItemDraft.js +3 -0
  74. package/dist/cjs/api/types/OutlineItemPatch.d.ts +9 -0
  75. package/dist/cjs/api/types/OutlineItemPatch.js +3 -0
  76. package/dist/cjs/api/types/OutlineItemRef.d.ts +10 -0
  77. package/dist/cjs/api/types/OutlineItemRef.js +10 -0
  78. package/dist/cjs/api/types/OutlineMutationMeta.d.ts +8 -0
  79. package/dist/cjs/api/types/OutlineMutationMeta.js +3 -0
  80. package/dist/cjs/api/types/OutlineOrder.d.ts +5 -0
  81. package/dist/cjs/api/types/OutlineOrder.js +3 -0
  82. package/dist/cjs/api/types/OutlinePosition.d.ts +5 -0
  83. package/dist/cjs/api/types/OutlinePosition.js +3 -0
  84. package/dist/cjs/api/types/index.d.ts +29 -23
  85. package/dist/cjs/api/types/index.js +29 -23
  86. package/dist/cjs/version.d.ts +1 -1
  87. package/dist/cjs/version.js +1 -1
  88. package/dist/esm/BaseClient.mjs +2 -2
  89. package/dist/esm/api/errors/ContentTooLargeError.d.mts +1 -3
  90. package/dist/esm/api/resources/doc/client/Client.d.mts +7 -1
  91. package/dist/esm/api/resources/doc/client/Client.mjs +11 -1
  92. package/dist/esm/api/resources/doc/resources/annotations/client/Client.d.mts +11 -0
  93. package/dist/esm/api/resources/doc/resources/annotations/client/Client.mjs +52 -0
  94. package/dist/esm/api/resources/doc/resources/annotations/client/requests/ReadFileAnnotationsRequest.d.mts +19 -0
  95. package/dist/esm/api/resources/doc/resources/annotations/client/requests/index.d.mts +1 -0
  96. package/dist/esm/api/resources/doc/resources/attachments/client/Client.d.mts +42 -0
  97. package/dist/esm/api/resources/doc/resources/attachments/client/Client.mjs +130 -0
  98. package/dist/esm/api/resources/doc/resources/attachments/client/index.d.mts +1 -0
  99. package/dist/esm/api/resources/doc/resources/attachments/client/index.mjs +1 -0
  100. package/dist/{cjs/api/resources/doc/resources/pages/client/requests/RotatePagesRequest.d.ts → esm/api/resources/doc/resources/attachments/client/requests/DownloadAttachmentsRequest.d.mts} +4 -8
  101. package/dist/esm/api/resources/doc/resources/attachments/client/requests/ListAttachmentsRequest.d.mts +13 -0
  102. package/dist/esm/api/resources/doc/resources/attachments/client/requests/index.d.mts +2 -0
  103. package/dist/esm/api/resources/doc/resources/attachments/client/requests/index.mjs +1 -0
  104. package/dist/esm/api/resources/doc/resources/attachments/exports.d.mts +2 -0
  105. package/dist/esm/api/resources/doc/resources/attachments/exports.mjs +3 -0
  106. package/dist/esm/api/resources/doc/resources/attachments/index.d.mts +1 -0
  107. package/dist/esm/api/resources/doc/resources/attachments/index.mjs +1 -0
  108. package/dist/esm/api/resources/doc/resources/index.d.mts +4 -0
  109. package/dist/esm/api/resources/doc/resources/index.mjs +4 -0
  110. package/dist/esm/api/resources/doc/resources/outline/client/Client.d.mts +29 -0
  111. package/dist/esm/api/resources/doc/resources/outline/client/Client.mjs +73 -0
  112. package/dist/esm/api/resources/doc/resources/outline/client/index.d.mts +1 -0
  113. package/dist/esm/api/resources/doc/resources/outline/client/index.mjs +1 -0
  114. package/dist/esm/api/resources/doc/resources/outline/client/requests/GetOutlineRequest.d.mts +13 -0
  115. package/dist/esm/api/resources/doc/resources/outline/client/requests/index.d.mts +1 -0
  116. package/dist/esm/api/resources/doc/resources/outline/client/requests/index.mjs +1 -0
  117. package/dist/esm/api/resources/doc/resources/outline/exports.d.mts +2 -0
  118. package/dist/esm/api/resources/doc/resources/outline/exports.mjs +3 -0
  119. package/dist/esm/api/resources/doc/resources/outline/index.d.mts +1 -0
  120. package/dist/esm/api/resources/doc/resources/outline/index.mjs +1 -0
  121. package/dist/esm/api/resources/doc/resources/pages/client/Client.d.mts +1 -106
  122. package/dist/esm/api/resources/doc/resources/pages/client/Client.mjs +1 -316
  123. package/dist/esm/api/resources/doc/resources/pages/client/requests/index.d.mts +0 -5
  124. package/dist/esm/api/types/Annotation.d.mts +1 -10
  125. package/dist/esm/api/types/Attachment.d.mts +23 -0
  126. package/dist/esm/api/types/Attachment.mjs +10 -0
  127. package/dist/esm/api/types/AttachmentFileBase.d.mts +5 -0
  128. package/dist/esm/api/types/AttachmentFileInfo.d.mts +9 -0
  129. package/dist/esm/api/types/AttachmentList.d.mts +4 -0
  130. package/dist/esm/api/types/AttachmentMutationMeta.d.mts +23 -0
  131. package/dist/esm/api/types/AttachmentMutationMeta.mjs +13 -0
  132. package/dist/esm/api/types/CacheDelta.d.mts +1 -0
  133. package/dist/esm/api/types/ChangeItem.d.mts +634 -1
  134. package/dist/esm/api/types/ChangeItem.mjs +129 -0
  135. package/dist/esm/api/types/ChangeItemPagesDeleteLayoutNamedPagesItemTarget.d.mts +15 -0
  136. package/dist/esm/api/types/ChangeItemPagesInsertBlankLayoutNamedPagesItemTarget.d.mts +15 -0
  137. package/dist/esm/api/types/ChangeItemPagesInsertLayoutNamedPagesItemTarget.d.mts +15 -0
  138. package/dist/esm/api/types/ChangeItemPagesReorderLayoutNamedPagesItemTarget.d.mts +15 -0
  139. package/dist/esm/api/types/ChangeItemPagesRestoreLayoutNamedPagesItemTarget.d.mts +15 -0
  140. package/dist/esm/api/types/ChangeItemPagesRotateLayoutNamedPagesItemTarget.d.mts +15 -0
  141. package/dist/esm/api/types/ChangeOp.d.mts +93 -1
  142. package/dist/esm/api/types/ChangeOp.mjs +9 -0
  143. package/dist/esm/api/types/DocAnnotationsReadFile400Response.d.mts +2 -0
  144. package/dist/esm/api/types/DocAnnotationsReadFile404Response.d.mts +2 -0
  145. package/dist/esm/api/types/DocAnnotationsReadFile413Response.d.mts +2 -0
  146. package/dist/esm/api/types/DocAttachmentsDownload400Response.d.mts +2 -0
  147. package/dist/esm/api/types/DocAttachmentsDownload404Response.d.mts +2 -0
  148. package/dist/esm/api/types/DocAttachmentsDownload413Response.d.mts +2 -0
  149. package/dist/esm/api/types/DocAttachmentsList200Response.d.mts +2 -0
  150. package/dist/esm/api/types/DocAttachmentsList404Response.d.mts +2 -0
  151. package/dist/esm/api/types/DocManifest200Response.d.mts +7 -0
  152. package/dist/esm/api/types/DocManifest200Response.mjs +4 -0
  153. package/dist/esm/api/types/DocOutlineGet200Response.d.mts +2 -0
  154. package/dist/esm/api/types/DocOutlineGet404Response.d.mts +2 -0
  155. package/dist/esm/api/types/DocumentOutline.d.mts +5 -0
  156. package/dist/esm/api/types/DocumentOutline.mjs +2 -0
  157. package/dist/esm/api/types/OutlineItem.d.mts +12 -0
  158. package/dist/esm/api/types/OutlineItem.mjs +2 -0
  159. package/dist/esm/api/types/OutlineItemDraft.d.mts +8 -0
  160. package/dist/esm/api/types/OutlineItemDraft.mjs +2 -0
  161. package/dist/esm/api/types/OutlineItemPatch.d.mts +9 -0
  162. package/dist/esm/api/types/OutlineItemPatch.mjs +2 -0
  163. package/dist/esm/api/types/OutlineItemRef.d.mts +10 -0
  164. package/dist/esm/api/types/OutlineItemRef.mjs +7 -0
  165. package/dist/esm/api/types/OutlineMutationMeta.d.mts +8 -0
  166. package/dist/esm/api/types/OutlineMutationMeta.mjs +2 -0
  167. package/dist/esm/api/types/OutlineOrder.d.mts +5 -0
  168. package/dist/esm/api/types/OutlineOrder.mjs +2 -0
  169. package/dist/esm/api/types/OutlinePosition.d.mts +5 -0
  170. package/dist/esm/api/types/OutlinePosition.mjs +2 -0
  171. package/dist/esm/api/types/index.d.mts +29 -23
  172. package/dist/esm/api/types/index.mjs +29 -23
  173. package/dist/esm/version.d.mts +1 -1
  174. package/dist/esm/version.mjs +1 -1
  175. package/package.json +23 -1
  176. package/reference.md +174 -222
  177. package/dist/cjs/api/resources/doc/resources/pages/client/requests/DocPagesReorderRequest.d.ts +0 -23
  178. package/dist/cjs/api/resources/doc/resources/pages/client/requests/InsertBlankPagesRequest.d.ts +0 -20
  179. package/dist/cjs/api/types/DocPagesDelete200Response.d.ts +0 -95
  180. package/dist/cjs/api/types/DocPagesDelete200Response.js +0 -23
  181. package/dist/cjs/api/types/DocPagesDelete200ResponseLayoutNamedPagesItemTarget.d.ts +0 -15
  182. package/dist/cjs/api/types/DocPagesDelete400Response.d.ts +0 -2
  183. package/dist/cjs/api/types/DocPagesDelete404Response.d.ts +0 -2
  184. package/dist/cjs/api/types/DocPagesDeleteRequest.d.ts +0 -1
  185. package/dist/cjs/api/types/DocPagesInsert200Response.d.ts +0 -96
  186. package/dist/cjs/api/types/DocPagesInsert200Response.js +0 -23
  187. package/dist/cjs/api/types/DocPagesInsert200ResponseLayoutNamedPagesItemTarget.d.ts +0 -15
  188. package/dist/cjs/api/types/DocPagesInsert400Response.d.ts +0 -2
  189. package/dist/cjs/api/types/DocPagesInsert404Response.d.ts +0 -2
  190. package/dist/cjs/api/types/DocPagesInsertBlank200Response.d.ts +0 -96
  191. package/dist/cjs/api/types/DocPagesInsertBlank200Response.js +0 -23
  192. package/dist/cjs/api/types/DocPagesInsertBlank200ResponseLayoutNamedPagesItemTarget.d.ts +0 -15
  193. package/dist/cjs/api/types/DocPagesInsertBlank400Response.d.ts +0 -2
  194. package/dist/cjs/api/types/DocPagesInsertBlank404Response.d.ts +0 -2
  195. package/dist/cjs/api/types/DocPagesInsertBlankRequest.d.ts +0 -1
  196. package/dist/cjs/api/types/DocPagesReorder200Response.d.ts +0 -96
  197. package/dist/cjs/api/types/DocPagesReorder200Response.js +0 -23
  198. package/dist/cjs/api/types/DocPagesReorder200ResponseLayoutNamedPagesItemTarget.d.ts +0 -15
  199. package/dist/cjs/api/types/DocPagesReorder400Response.d.ts +0 -2
  200. package/dist/cjs/api/types/DocPagesReorder404Response.d.ts +0 -2
  201. package/dist/cjs/api/types/DocPagesRotate200Response.d.ts +0 -95
  202. package/dist/cjs/api/types/DocPagesRotate200Response.js +0 -23
  203. package/dist/cjs/api/types/DocPagesRotate200ResponseLayoutNamedPagesItemTarget.d.ts +0 -15
  204. package/dist/cjs/api/types/DocPagesRotate400Response.d.ts +0 -2
  205. package/dist/cjs/api/types/DocPagesRotate404Response.d.ts +0 -2
  206. package/dist/cjs/api/types/DocPagesRotateRequest.d.ts +0 -1
  207. package/dist/esm/api/resources/doc/resources/pages/client/requests/DeletePagesRequest.d.mts +0 -20
  208. package/dist/esm/api/resources/doc/resources/pages/client/requests/DocPagesReorderRequest.d.mts +0 -23
  209. package/dist/esm/api/resources/doc/resources/pages/client/requests/InsertBlankPagesRequest.d.mts +0 -20
  210. package/dist/esm/api/resources/doc/resources/pages/client/requests/RotatePagesRequest.d.mts +0 -20
  211. package/dist/esm/api/types/DocPagesDelete200Response.d.mts +0 -95
  212. package/dist/esm/api/types/DocPagesDelete200Response.mjs +0 -20
  213. package/dist/esm/api/types/DocPagesDelete200ResponseLayoutNamedPagesItemTarget.d.mts +0 -15
  214. package/dist/esm/api/types/DocPagesDelete400Response.d.mts +0 -2
  215. package/dist/esm/api/types/DocPagesDelete404Response.d.mts +0 -2
  216. package/dist/esm/api/types/DocPagesDeleteRequest.d.mts +0 -1
  217. package/dist/esm/api/types/DocPagesInsert200Response.d.mts +0 -96
  218. package/dist/esm/api/types/DocPagesInsert200Response.mjs +0 -20
  219. package/dist/esm/api/types/DocPagesInsert200ResponseLayoutNamedPagesItemTarget.d.mts +0 -15
  220. package/dist/esm/api/types/DocPagesInsert400Response.d.mts +0 -2
  221. package/dist/esm/api/types/DocPagesInsert404Response.d.mts +0 -2
  222. package/dist/esm/api/types/DocPagesInsertBlank200Response.d.mts +0 -96
  223. package/dist/esm/api/types/DocPagesInsertBlank200Response.mjs +0 -20
  224. package/dist/esm/api/types/DocPagesInsertBlank200ResponseLayoutNamedPagesItemTarget.d.mts +0 -15
  225. package/dist/esm/api/types/DocPagesInsertBlank400Response.d.mts +0 -2
  226. package/dist/esm/api/types/DocPagesInsertBlank404Response.d.mts +0 -2
  227. package/dist/esm/api/types/DocPagesInsertBlankRequest.d.mts +0 -1
  228. package/dist/esm/api/types/DocPagesReorder200Response.d.mts +0 -96
  229. package/dist/esm/api/types/DocPagesReorder200Response.mjs +0 -20
  230. package/dist/esm/api/types/DocPagesReorder200ResponseLayoutNamedPagesItemTarget.d.mts +0 -15
  231. package/dist/esm/api/types/DocPagesReorder400Response.d.mts +0 -2
  232. package/dist/esm/api/types/DocPagesReorder404Response.d.mts +0 -2
  233. package/dist/esm/api/types/DocPagesRotate200Response.d.mts +0 -95
  234. package/dist/esm/api/types/DocPagesRotate200Response.mjs +0 -20
  235. package/dist/esm/api/types/DocPagesRotate200ResponseLayoutNamedPagesItemTarget.d.mts +0 -15
  236. package/dist/esm/api/types/DocPagesRotate400Response.d.mts +0 -2
  237. package/dist/esm/api/types/DocPagesRotate404Response.d.mts +0 -2
  238. package/dist/esm/api/types/DocPagesRotateRequest.d.mts +0 -1
  239. /package/dist/cjs/api/resources/doc/resources/{pages/client/requests/DeletePagesRequest.js → annotations/client/requests/ReadFileAnnotationsRequest.js} +0 -0
  240. /package/dist/cjs/api/resources/doc/resources/{pages/client/requests/DocPagesReorderRequest.js → attachments/client/requests/DownloadAttachmentsRequest.js} +0 -0
  241. /package/dist/cjs/api/resources/doc/resources/{pages/client/requests/InsertBlankPagesRequest.js → attachments/client/requests/ListAttachmentsRequest.js} +0 -0
  242. /package/dist/cjs/api/resources/doc/resources/{pages/client/requests/InsertPagesRequest.js → outline/client/requests/GetOutlineRequest.js} +0 -0
  243. /package/dist/cjs/api/{resources/doc/resources/pages/client/requests/RotatePagesRequest.js → types/AttachmentFileBase.js} +0 -0
  244. /package/dist/cjs/api/types/{DocPagesDelete200ResponseLayoutNamedPagesItemTarget.js → AttachmentFileInfo.js} +0 -0
  245. /package/dist/cjs/api/types/{DocPagesDelete400Response.js → AttachmentList.js} +0 -0
  246. /package/dist/cjs/api/types/{DocPagesDelete404Response.js → ChangeItemPagesDeleteLayoutNamedPagesItemTarget.js} +0 -0
  247. /package/dist/cjs/api/types/{DocPagesDeleteRequest.js → ChangeItemPagesInsertBlankLayoutNamedPagesItemTarget.js} +0 -0
  248. /package/dist/cjs/api/types/{DocPagesInsert200ResponseLayoutNamedPagesItemTarget.js → ChangeItemPagesInsertLayoutNamedPagesItemTarget.js} +0 -0
  249. /package/dist/cjs/api/types/{DocPagesInsert400Response.js → ChangeItemPagesReorderLayoutNamedPagesItemTarget.js} +0 -0
  250. /package/dist/cjs/api/types/{DocPagesInsert404Response.js → ChangeItemPagesRestoreLayoutNamedPagesItemTarget.js} +0 -0
  251. /package/dist/cjs/api/types/{DocPagesInsertBlank200ResponseLayoutNamedPagesItemTarget.js → ChangeItemPagesRotateLayoutNamedPagesItemTarget.js} +0 -0
  252. /package/dist/cjs/api/types/{DocPagesInsertBlank400Response.js → DocAnnotationsReadFile400Response.js} +0 -0
  253. /package/dist/cjs/api/types/{DocPagesInsertBlank404Response.js → DocAnnotationsReadFile404Response.js} +0 -0
  254. /package/dist/cjs/api/types/{DocPagesInsertBlankRequest.js → DocAnnotationsReadFile413Response.js} +0 -0
  255. /package/dist/cjs/api/types/{DocPagesReorder200ResponseLayoutNamedPagesItemTarget.js → DocAttachmentsDownload400Response.js} +0 -0
  256. /package/dist/cjs/api/types/{DocPagesReorder400Response.js → DocAttachmentsDownload404Response.js} +0 -0
  257. /package/dist/cjs/api/types/{DocPagesReorder404Response.js → DocAttachmentsDownload413Response.js} +0 -0
  258. /package/dist/cjs/api/types/{DocPagesRotate200ResponseLayoutNamedPagesItemTarget.js → DocAttachmentsList200Response.js} +0 -0
  259. /package/dist/cjs/api/types/{DocPagesRotate400Response.js → DocAttachmentsList404Response.js} +0 -0
  260. /package/dist/cjs/api/types/{DocPagesRotate404Response.js → DocOutlineGet200Response.js} +0 -0
  261. /package/dist/cjs/api/types/{DocPagesRotateRequest.js → DocOutlineGet404Response.js} +0 -0
  262. /package/dist/esm/api/resources/doc/resources/{pages/client/requests/DeletePagesRequest.mjs → annotations/client/requests/ReadFileAnnotationsRequest.mjs} +0 -0
  263. /package/dist/esm/api/resources/doc/resources/{pages/client/requests/DocPagesReorderRequest.mjs → attachments/client/requests/DownloadAttachmentsRequest.mjs} +0 -0
  264. /package/dist/esm/api/resources/doc/resources/{pages/client/requests/InsertBlankPagesRequest.mjs → attachments/client/requests/ListAttachmentsRequest.mjs} +0 -0
  265. /package/dist/esm/api/resources/doc/resources/{pages/client/requests/InsertPagesRequest.mjs → outline/client/requests/GetOutlineRequest.mjs} +0 -0
  266. /package/dist/esm/api/{resources/doc/resources/pages/client/requests/RotatePagesRequest.mjs → types/AttachmentFileBase.mjs} +0 -0
  267. /package/dist/esm/api/types/{DocPagesDelete200ResponseLayoutNamedPagesItemTarget.mjs → AttachmentFileInfo.mjs} +0 -0
  268. /package/dist/esm/api/types/{DocPagesDelete400Response.mjs → AttachmentList.mjs} +0 -0
  269. /package/dist/esm/api/types/{DocPagesDelete404Response.mjs → ChangeItemPagesDeleteLayoutNamedPagesItemTarget.mjs} +0 -0
  270. /package/dist/esm/api/types/{DocPagesDeleteRequest.mjs → ChangeItemPagesInsertBlankLayoutNamedPagesItemTarget.mjs} +0 -0
  271. /package/dist/esm/api/types/{DocPagesInsert200ResponseLayoutNamedPagesItemTarget.mjs → ChangeItemPagesInsertLayoutNamedPagesItemTarget.mjs} +0 -0
  272. /package/dist/esm/api/types/{DocPagesInsert400Response.mjs → ChangeItemPagesReorderLayoutNamedPagesItemTarget.mjs} +0 -0
  273. /package/dist/esm/api/types/{DocPagesInsert404Response.mjs → ChangeItemPagesRestoreLayoutNamedPagesItemTarget.mjs} +0 -0
  274. /package/dist/esm/api/types/{DocPagesInsertBlank200ResponseLayoutNamedPagesItemTarget.mjs → ChangeItemPagesRotateLayoutNamedPagesItemTarget.mjs} +0 -0
  275. /package/dist/esm/api/types/{DocPagesInsertBlank400Response.mjs → DocAnnotationsReadFile400Response.mjs} +0 -0
  276. /package/dist/esm/api/types/{DocPagesInsertBlank404Response.mjs → DocAnnotationsReadFile404Response.mjs} +0 -0
  277. /package/dist/esm/api/types/{DocPagesInsertBlankRequest.mjs → DocAnnotationsReadFile413Response.mjs} +0 -0
  278. /package/dist/esm/api/types/{DocPagesReorder200ResponseLayoutNamedPagesItemTarget.mjs → DocAttachmentsDownload400Response.mjs} +0 -0
  279. /package/dist/esm/api/types/{DocPagesReorder400Response.mjs → DocAttachmentsDownload404Response.mjs} +0 -0
  280. /package/dist/esm/api/types/{DocPagesReorder404Response.mjs → DocAttachmentsDownload413Response.mjs} +0 -0
  281. /package/dist/esm/api/types/{DocPagesRotate200ResponseLayoutNamedPagesItemTarget.mjs → DocAttachmentsList200Response.mjs} +0 -0
  282. /package/dist/esm/api/types/{DocPagesRotate400Response.mjs → DocAttachmentsList404Response.mjs} +0 -0
  283. /package/dist/esm/api/types/{DocPagesRotate404Response.mjs → DocOutlineGet200Response.mjs} +0 -0
  284. /package/dist/esm/api/types/{DocPagesRotateRequest.mjs → DocOutlineGet404Response.mjs} +0 -0
@@ -1,20 +1,16 @@
1
- import type * as CloudPDF from "../../../../../../index.js";
2
1
  /**
3
2
  * @example
4
3
  * {
5
4
  * docId: "docId",
6
5
  * layerName: "layerName",
7
- * body: {
8
- * "key": "value"
9
- * }
6
+ * fileKey: "fileKey"
10
7
  * }
11
8
  */
12
- export interface RotatePagesRequest {
9
+ export interface DownloadAttachmentsRequest {
13
10
  docId: string;
14
11
  layerName: string;
12
+ /** The embedded file's name-tree key (its `ref.key`), token-text encoded, as `fieldKey` is. */
13
+ fileKey: string;
15
14
  /** Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. */
16
15
  "X-Document-Password"?: string;
17
- /** Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing. */
18
- "Idempotency-Key"?: string;
19
- body: CloudPDF.DocPagesRotateRequest;
20
16
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * docId: "docId",
5
+ * layerName: "layerName"
6
+ * }
7
+ */
8
+ export interface ListAttachmentsRequest {
9
+ docId: string;
10
+ layerName: string;
11
+ /** Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. */
12
+ "X-Document-Password"?: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ export type { DownloadAttachmentsRequest } from "./DownloadAttachmentsRequest.mjs";
2
+ export type { ListAttachmentsRequest } from "./ListAttachmentsRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { AttachmentsClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { AttachmentsClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -1,9 +1,13 @@
1
1
  export * from "./annotations/client/requests/index.mjs";
2
2
  export * as annotations from "./annotations/index.mjs";
3
+ export * from "./attachments/client/requests/index.mjs";
4
+ export * as attachments from "./attachments/index.mjs";
3
5
  export * from "./forms/client/requests/index.mjs";
4
6
  export * as forms from "./forms/index.mjs";
5
7
  export * from "./metadata/client/requests/index.mjs";
6
8
  export * as metadata from "./metadata/index.mjs";
9
+ export * from "./outline/client/requests/index.mjs";
10
+ export * as outline from "./outline/index.mjs";
7
11
  export * from "./pages/client/requests/index.mjs";
8
12
  export * as pages from "./pages/index.mjs";
9
13
  export * from "./redactions/client/requests/index.mjs";
@@ -1,9 +1,13 @@
1
1
  export * from "./annotations/client/requests/index.mjs";
2
2
  export * as annotations from "./annotations/index.mjs";
3
+ export * from "./attachments/client/requests/index.mjs";
4
+ export * as attachments from "./attachments/index.mjs";
3
5
  export * from "./forms/client/requests/index.mjs";
4
6
  export * as forms from "./forms/index.mjs";
5
7
  export * from "./metadata/client/requests/index.mjs";
6
8
  export * as metadata from "./metadata/index.mjs";
9
+ export * from "./outline/client/requests/index.mjs";
10
+ export * as outline from "./outline/index.mjs";
7
11
  export * from "./pages/client/requests/index.mjs";
8
12
  export * as pages from "./pages/index.mjs";
9
13
  export * from "./redactions/client/requests/index.mjs";
@@ -0,0 +1,29 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
+ import * as core from "../../../../../../core/index.mjs";
4
+ import * as CloudPDF from "../../../../../index.mjs";
5
+ export declare namespace OutlineClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class OutlineClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<OutlineClient.Options>;
12
+ constructor(options: OutlineClient.Options);
13
+ /**
14
+ * @param {CloudPDF.doc.GetOutlineRequest} request
15
+ * @param {OutlineClient.RequestOptions} requestOptions - Request-specific configuration.
16
+ *
17
+ * @throws {@link CloudPDF.NotFoundError}
18
+ * @throws {@link errors.CloudPDFError}
19
+ * @throws {@link errors.CloudPDFTimeoutError}
20
+ *
21
+ * @example
22
+ * await client.doc.outline.get({
23
+ * docId: "docId",
24
+ * layerName: "layerName"
25
+ * })
26
+ */
27
+ get(request: CloudPDF.doc.GetOutlineRequest, requestOptions?: OutlineClient.RequestOptions): core.HttpResponsePromise<CloudPDF.DocOutlineGet200Response>;
28
+ private __get;
29
+ }
@@ -0,0 +1,73 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
13
+ import * as core from "../../../../../../core/index.mjs";
14
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
15
+ import * as errors from "../../../../../../errors/index.mjs";
16
+ import * as CloudPDF from "../../../../../index.mjs";
17
+ export class OutlineClient {
18
+ constructor(options) {
19
+ this._options = normalizeClientOptionsWithAuth(options);
20
+ }
21
+ /**
22
+ * @param {CloudPDF.doc.GetOutlineRequest} request
23
+ * @param {OutlineClient.RequestOptions} requestOptions - Request-specific configuration.
24
+ *
25
+ * @throws {@link CloudPDF.NotFoundError}
26
+ * @throws {@link errors.CloudPDFError}
27
+ * @throws {@link errors.CloudPDFTimeoutError}
28
+ *
29
+ * @example
30
+ * await client.doc.outline.get({
31
+ * docId: "docId",
32
+ * layerName: "layerName"
33
+ * })
34
+ */
35
+ get(request, requestOptions) {
36
+ return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
37
+ }
38
+ __get(request, requestOptions) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ var _a, _b, _c, _d, _e, _f, _g, _h;
41
+ const { docId, layerName, "X-Document-Password": documentPassword } = request;
42
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
43
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Document-Password": documentPassword }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
44
+ const _response = yield core.fetcher({
45
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `v1/docs/${core.url.encodePathParam(docId)}/layers/${core.url.encodePathParam(layerName)}/outline`),
46
+ method: "GET",
47
+ headers: _headers,
48
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
49
+ timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
50
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
51
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
52
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
53
+ logging: this._options.logging,
54
+ });
55
+ if (_response.ok) {
56
+ return { data: _response.body, rawResponse: _response.rawResponse };
57
+ }
58
+ if (_response.error.reason === "status-code") {
59
+ switch (_response.error.statusCode) {
60
+ case 404:
61
+ throw new CloudPDF.NotFoundError(_response.error.body, _response.rawResponse);
62
+ default:
63
+ throw new errors.CloudPDFError({
64
+ statusCode: _response.error.statusCode,
65
+ body: _response.error.body,
66
+ rawResponse: _response.rawResponse,
67
+ });
68
+ }
69
+ }
70
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/docs/{docId}/layers/{layerName}/outline");
71
+ });
72
+ }
73
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * docId: "docId",
5
+ * layerName: "layerName"
6
+ * }
7
+ */
8
+ export interface GetOutlineRequest {
9
+ docId: string;
10
+ layerName: string;
11
+ /** Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. */
12
+ "X-Document-Password"?: string;
13
+ }
@@ -0,0 +1 @@
1
+ export type { GetOutlineRequest } from "./GetOutlineRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { OutlineClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { OutlineClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -46,27 +46,7 @@ export declare class PagesClient {
46
46
  viewports(request: CloudPDF.doc.ViewportsPagesRequest, requestOptions?: PagesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.DocPagesViewports200Response>;
47
47
  private __viewports;
48
48
  /**
49
- * @param {CloudPDF.doc.DeletePagesRequest} request
50
- * @param {PagesClient.RequestOptions} requestOptions - Request-specific configuration.
51
- *
52
- * @throws {@link CloudPDF.BadRequestError}
53
- * @throws {@link CloudPDF.NotFoundError}
54
- * @throws {@link errors.CloudPDFError}
55
- * @throws {@link errors.CloudPDFTimeoutError}
56
- *
57
- * @example
58
- * await client.doc.pages.delete({
59
- * docId: "docId",
60
- * layerName: "layerName",
61
- * body: {
62
- * "key": "value"
63
- * }
64
- * })
65
- */
66
- delete(request: CloudPDF.doc.DeletePagesRequest, requestOptions?: PagesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.DocPagesDelete200Response>;
67
- private __delete;
68
- /**
69
- * A read, not a mutation: the source document is untouched and no event is published. Body is `{"pages": PageRef[]}`; the response body is the new PDF.
49
+ * A read, not a mutation: the source document is untouched and no event is published. Body is `{"pages": PageRef[], "flatten"?: {"usage"?: "display" | "print"}, "includeAnnotations"?: boolean, "includeFormFields"?: boolean}`; the response body is the new PDF. With `flatten` the copy is the pages as they draw for `usage` (`"print"`: a print copy): the annotations and form fields painted in, nothing interactive left, layers in their state for the usage. A flattened copy takes `doc.download` or `doc.download.flattened`, and paints only what the caller may read; `includeAnnotations` and `includeFormFields` choose what it paints, and are refused without `flatten`.
70
50
  *
71
51
  * @throws {@link CloudPDF.BadRequestError}
72
52
  * @throws {@link CloudPDF.NotFoundError}
@@ -95,49 +75,6 @@ export declare class PagesClient {
95
75
  */
96
76
  flatten(request: CloudPDF.doc.FlattenPagesRequest, requestOptions?: PagesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.DocPagesFlatten200Response>;
97
77
  private __flatten;
98
- /**
99
- * Multipart: a JSON `body` part `{"position"?: PagePosition, "resources": {"source": "<key>"}}` (position omitted → the end), and the standalone PDF whose pages are copied in as the part `resource:<key>`. The inserted copies get fresh page object numbers, returned in insertion order.
100
- *
101
- * @param {CloudPDF.doc.InsertPagesRequest} request
102
- * @param {PagesClient.RequestOptions} requestOptions - Request-specific configuration.
103
- *
104
- * @throws {@link CloudPDF.BadRequestError}
105
- * @throws {@link CloudPDF.NotFoundError}
106
- * @throws {@link errors.CloudPDFError}
107
- * @throws {@link errors.CloudPDFTimeoutError}
108
- *
109
- * @example
110
- * import { createReadStream } from "fs";
111
- * await client.doc.pages.insert({
112
- * file: fs.createReadStream("/path/to/your/file"),
113
- * docId: "docId",
114
- * layerName: "layerName"
115
- * })
116
- */
117
- insert(request: CloudPDF.doc.InsertPagesRequest, requestOptions?: PagesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.DocPagesInsert200Response>;
118
- private __insert;
119
- /**
120
- * Body is `{"size": {"width", "height"}, "count"?, "position"?}` — size in PDF points, count in [1, 100], `position` a `PagePosition` (omitted → the end).
121
- *
122
- * @param {CloudPDF.doc.InsertBlankPagesRequest} request
123
- * @param {PagesClient.RequestOptions} requestOptions - Request-specific configuration.
124
- *
125
- * @throws {@link CloudPDF.BadRequestError}
126
- * @throws {@link CloudPDF.NotFoundError}
127
- * @throws {@link errors.CloudPDFError}
128
- * @throws {@link errors.CloudPDFTimeoutError}
129
- *
130
- * @example
131
- * await client.doc.pages.insertBlank({
132
- * docId: "docId",
133
- * layerName: "layerName",
134
- * body: {
135
- * "key": "value"
136
- * }
137
- * })
138
- */
139
- insertBlank(request: CloudPDF.doc.InsertBlankPagesRequest, requestOptions?: PagesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.DocPagesInsertBlank200Response>;
140
- private __insertBlank;
141
78
  /**
142
79
  * @param {CloudPDF.doc.SetNamePagesRequest} request
143
80
  * @param {PagesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -178,46 +115,4 @@ export declare class PagesClient {
178
115
  */
179
116
  removeName(request: CloudPDF.doc.RemoveNamePagesRequest, requestOptions?: PagesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.DocPagesRemoveName200Response>;
180
117
  private __removeName;
181
- /**
182
- * @param {CloudPDF.doc.DocPagesReorderRequest} request
183
- * @param {PagesClient.RequestOptions} requestOptions - Request-specific configuration.
184
- *
185
- * @throws {@link CloudPDF.BadRequestError}
186
- * @throws {@link CloudPDF.NotFoundError}
187
- * @throws {@link errors.CloudPDFError}
188
- * @throws {@link errors.CloudPDFTimeoutError}
189
- *
190
- * @example
191
- * await client.doc.pages.reorder({
192
- * docId: "docId",
193
- * layerName: "layerName",
194
- * pages: [{
195
- * kind: "objectNumber",
196
- * objectNumber: 1
197
- * }],
198
- * position: "start"
199
- * })
200
- */
201
- reorder(request: CloudPDF.doc.DocPagesReorderRequest, requestOptions?: PagesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.DocPagesReorder200Response>;
202
- private __reorder;
203
- /**
204
- * @param {CloudPDF.doc.RotatePagesRequest} request
205
- * @param {PagesClient.RequestOptions} requestOptions - Request-specific configuration.
206
- *
207
- * @throws {@link CloudPDF.BadRequestError}
208
- * @throws {@link CloudPDF.NotFoundError}
209
- * @throws {@link errors.CloudPDFError}
210
- * @throws {@link errors.CloudPDFTimeoutError}
211
- *
212
- * @example
213
- * await client.doc.pages.rotate({
214
- * docId: "docId",
215
- * layerName: "layerName",
216
- * body: {
217
- * "key": "value"
218
- * }
219
- * })
220
- */
221
- rotate(request: CloudPDF.doc.RotatePagesRequest, requestOptions?: PagesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.DocPagesRotate200Response>;
222
- private __rotate;
223
118
  }