@cloudpdf/sdk 3.0.0-next.1 → 3.0.0-next.3

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 (281) hide show
  1. package/README.md +23 -46
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +3 -0
  4. package/dist/cjs/Client.js +9 -4
  5. package/dist/cjs/CloudPDFClient.d.ts +20 -0
  6. package/dist/cjs/CloudPDFClient.js +39 -0
  7. package/dist/cjs/api/errors/ConflictError.d.ts +7 -0
  8. package/dist/cjs/api/errors/ConflictError.js +54 -0
  9. package/dist/cjs/api/errors/GoneError.d.ts +7 -0
  10. package/dist/cjs/api/errors/GoneError.js +54 -0
  11. package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +7 -0
  12. package/dist/cjs/api/errors/UnprocessableEntityError.js +54 -0
  13. package/dist/cjs/api/errors/index.d.ts +3 -0
  14. package/dist/cjs/api/errors/index.js +3 -0
  15. package/dist/cjs/api/resources/documents/client/Client.d.ts +14 -5
  16. package/dist/cjs/api/resources/documents/client/Client.js +26 -14
  17. package/dist/cjs/api/resources/documents/client/requests/DocumentsInitRequest.d.ts +7 -0
  18. package/dist/cjs/api/resources/documents/client/requests/DocumentsInitRequest.js +5 -0
  19. package/dist/cjs/api/resources/documents/client/requests/UploadProxyDocumentsRequest.d.ts +14 -0
  20. package/dist/cjs/api/resources/documents/client/requests/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/index.d.ts +2 -0
  22. package/dist/cjs/api/resources/index.js +3 -1
  23. package/dist/cjs/api/resources/shares/client/Client.d.ts +119 -0
  24. package/dist/cjs/api/resources/shares/client/Client.js +422 -0
  25. package/dist/cjs/api/resources/shares/client/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/shares/client/index.js +17 -0
  27. package/dist/cjs/api/resources/shares/client/requests/DeleteSharesRequest.d.ts +11 -0
  28. package/dist/cjs/api/resources/shares/client/requests/GetSharesRequest.d.ts +11 -0
  29. package/dist/cjs/api/resources/shares/client/requests/GetSharesRequest.js +3 -0
  30. package/dist/cjs/api/resources/shares/client/requests/ListSharesRequest.d.ts +12 -0
  31. package/dist/cjs/api/resources/shares/client/requests/ListSharesRequest.js +3 -0
  32. package/dist/cjs/api/resources/shares/client/requests/SharesCreateRequest.d.ts +18 -0
  33. package/dist/cjs/api/resources/shares/client/requests/SharesCreateRequest.js +3 -0
  34. package/dist/cjs/api/resources/shares/client/requests/SharesExchangeRequest.d.ts +10 -0
  35. package/dist/cjs/api/resources/shares/client/requests/SharesExchangeRequest.js +3 -0
  36. package/dist/cjs/api/resources/shares/client/requests/SharesUpdateRequest.d.ts +17 -0
  37. package/dist/cjs/api/resources/shares/client/requests/SharesUpdateRequest.js +3 -0
  38. package/dist/cjs/api/resources/shares/client/requests/index.d.ts +6 -0
  39. package/dist/cjs/api/resources/shares/client/requests/index.js +2 -0
  40. package/dist/cjs/api/resources/shares/exports.d.ts +2 -0
  41. package/dist/cjs/api/resources/shares/exports.js +21 -0
  42. package/dist/cjs/api/resources/shares/index.d.ts +1 -0
  43. package/dist/cjs/api/resources/shares/index.js +17 -0
  44. package/dist/cjs/api/resources/tenants/client/Client.d.ts +50 -0
  45. package/dist/cjs/api/resources/tenants/client/Client.js +181 -0
  46. package/dist/cjs/api/resources/tenants/client/requests/ResumeTenantsRequest.d.ts +9 -0
  47. package/dist/cjs/api/resources/tenants/client/requests/ResumeTenantsRequest.js +3 -0
  48. package/dist/cjs/api/resources/tenants/client/requests/TenantsSuspendRequest.d.ts +10 -0
  49. package/dist/cjs/api/resources/tenants/client/requests/TenantsSuspendRequest.js +3 -0
  50. package/dist/cjs/api/resources/tenants/client/requests/UsageTenantsRequest.d.ts +10 -0
  51. package/dist/cjs/api/resources/tenants/client/requests/UsageTenantsRequest.js +3 -0
  52. package/dist/cjs/api/resources/tenants/client/requests/index.d.ts +3 -0
  53. package/dist/cjs/api/types/DocumentsInit200ResponseCreatedUpload.d.ts +3 -3
  54. package/dist/cjs/api/types/DocumentsInit200ResponseResumedUpload.d.ts +3 -3
  55. package/dist/cjs/api/types/DocumentsUploadProxy200Response.d.ts +3 -0
  56. package/dist/cjs/api/types/DocumentsUploadProxy200Response.js +3 -0
  57. package/dist/cjs/api/types/DocumentsUploadProxy400Response.d.ts +9 -0
  58. package/dist/cjs/api/types/DocumentsUploadProxy400Response.js +3 -0
  59. package/dist/cjs/api/types/DocumentsUploadProxy409Response.d.ts +9 -0
  60. package/dist/cjs/api/types/DocumentsUploadProxy409Response.js +3 -0
  61. package/dist/cjs/api/types/SharesCreate200Response.d.ts +22 -0
  62. package/dist/cjs/api/types/SharesCreate200Response.js +3 -0
  63. package/dist/cjs/api/types/SharesCreate400Response.d.ts +9 -0
  64. package/dist/cjs/api/types/SharesCreate400Response.js +3 -0
  65. package/dist/cjs/api/types/SharesCreate403Response.d.ts +9 -0
  66. package/dist/cjs/api/types/SharesCreate403Response.js +3 -0
  67. package/dist/cjs/api/types/SharesCreate404Response.d.ts +9 -0
  68. package/dist/cjs/api/types/SharesCreate404Response.js +3 -0
  69. package/dist/cjs/api/types/SharesDeleteResponse.d.ts +9 -0
  70. package/dist/cjs/api/types/SharesDeleteResponse.js +3 -0
  71. package/dist/cjs/api/types/SharesExchange200Response.d.ts +6 -0
  72. package/dist/cjs/api/types/SharesExchange200Response.js +3 -0
  73. package/dist/cjs/api/types/SharesExchange400Response.d.ts +9 -0
  74. package/dist/cjs/api/types/SharesExchange400Response.js +3 -0
  75. package/dist/cjs/api/types/SharesExchange403Response.d.ts +9 -0
  76. package/dist/cjs/api/types/SharesExchange403Response.js +3 -0
  77. package/dist/cjs/api/types/SharesExchange404Response.d.ts +9 -0
  78. package/dist/cjs/api/types/SharesExchange404Response.js +3 -0
  79. package/dist/cjs/api/types/SharesExchange410Response.d.ts +9 -0
  80. package/dist/cjs/api/types/SharesExchange410Response.js +3 -0
  81. package/dist/cjs/api/types/SharesExchange422Response.d.ts +9 -0
  82. package/dist/cjs/api/types/SharesExchange422Response.js +3 -0
  83. package/dist/cjs/api/types/SharesGet200Response.d.ts +22 -0
  84. package/dist/cjs/api/types/SharesGet200Response.js +3 -0
  85. package/dist/cjs/api/types/SharesGet404Response.d.ts +9 -0
  86. package/dist/cjs/api/types/SharesGet404Response.js +3 -0
  87. package/dist/cjs/api/types/SharesList200Response.d.ts +26 -0
  88. package/dist/cjs/api/types/SharesList200Response.js +3 -0
  89. package/dist/cjs/api/types/SharesList400Response.d.ts +9 -0
  90. package/dist/cjs/api/types/SharesList400Response.js +3 -0
  91. package/dist/cjs/api/types/SharesUpdate200Response.d.ts +22 -0
  92. package/dist/cjs/api/types/SharesUpdate200Response.js +3 -0
  93. package/dist/cjs/api/types/SharesUpdate400Response.d.ts +9 -0
  94. package/dist/cjs/api/types/SharesUpdate400Response.js +3 -0
  95. package/dist/cjs/api/types/SharesUpdate404Response.d.ts +9 -0
  96. package/dist/cjs/api/types/SharesUpdate404Response.js +3 -0
  97. package/dist/cjs/api/types/TenantsCreate200Response.d.ts +8 -0
  98. package/dist/cjs/api/types/TenantsCreate200Response.js +11 -0
  99. package/dist/cjs/api/types/TenantsGet200Response.d.ts +8 -0
  100. package/dist/cjs/api/types/TenantsGet200Response.js +11 -0
  101. package/dist/cjs/api/types/TenantsList200Response.d.ts +8 -0
  102. package/dist/cjs/api/types/TenantsList200Response.js +14 -0
  103. package/dist/cjs/api/types/TenantsResumeResponse.d.ts +9 -0
  104. package/dist/cjs/api/types/TenantsResumeResponse.js +3 -0
  105. package/dist/cjs/api/types/TenantsSuspendResponse.d.ts +9 -0
  106. package/dist/cjs/api/types/TenantsSuspendResponse.js +3 -0
  107. package/dist/cjs/api/types/TenantsUsage200Response.d.ts +13 -0
  108. package/dist/cjs/api/types/TenantsUsage200Response.js +3 -0
  109. package/dist/cjs/api/types/TenantsUsage400Response.d.ts +9 -0
  110. package/dist/cjs/api/types/TenantsUsage400Response.js +3 -0
  111. package/dist/cjs/api/types/TenantsUsage404Response.d.ts +9 -0
  112. package/dist/cjs/api/types/TenantsUsage404Response.js +3 -0
  113. package/dist/cjs/api/types/TokensIssueRequest.d.ts +2 -1
  114. package/dist/cjs/api/types/index.d.ts +26 -2
  115. package/dist/cjs/api/types/index.js +26 -2
  116. package/dist/cjs/auth/BearerAuthProvider.d.ts +1 -1
  117. package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +15 -0
  118. package/dist/cjs/core/form-data-utils/FormDataWrapper.js +188 -0
  119. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  120. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +12 -0
  121. package/dist/cjs/core/form-data-utils/index.d.ts +2 -0
  122. package/dist/cjs/core/form-data-utils/index.js +20 -0
  123. package/dist/cjs/core/index.d.ts +1 -0
  124. package/dist/cjs/core/index.js +1 -0
  125. package/dist/cjs/index.d.ts +3 -1
  126. package/dist/cjs/index.js +5 -2
  127. package/dist/cjs/uploads/Uploads.d.ts +7 -0
  128. package/dist/cjs/uploads/Uploads.js +78 -0
  129. package/dist/cjs/uploads/index.d.ts +2 -0
  130. package/dist/cjs/uploads/index.js +5 -0
  131. package/dist/cjs/uploads/source.d.ts +10 -0
  132. package/dist/cjs/uploads/source.js +155 -0
  133. package/dist/cjs/uploads/types.d.ts +46 -0
  134. package/dist/cjs/uploads/types.js +2 -0
  135. package/dist/cjs/version.d.ts +1 -1
  136. package/dist/cjs/version.js +1 -1
  137. package/dist/esm/BaseClient.mjs +2 -2
  138. package/dist/esm/Client.d.mts +3 -0
  139. package/dist/esm/Client.mjs +5 -0
  140. package/dist/esm/CloudPDFClient.d.mts +20 -0
  141. package/dist/esm/CloudPDFClient.mjs +35 -0
  142. package/dist/esm/api/errors/ConflictError.d.mts +7 -0
  143. package/dist/esm/api/errors/ConflictError.mjs +17 -0
  144. package/dist/esm/api/errors/GoneError.d.mts +7 -0
  145. package/dist/esm/api/errors/GoneError.mjs +17 -0
  146. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +7 -0
  147. package/dist/esm/api/errors/UnprocessableEntityError.mjs +17 -0
  148. package/dist/esm/api/errors/index.d.mts +3 -0
  149. package/dist/esm/api/errors/index.mjs +3 -0
  150. package/dist/esm/api/resources/documents/client/Client.d.mts +14 -5
  151. package/dist/esm/api/resources/documents/client/Client.mjs +27 -15
  152. package/dist/esm/api/resources/documents/client/requests/DocumentsInitRequest.d.mts +7 -0
  153. package/dist/esm/api/resources/documents/client/requests/DocumentsInitRequest.mjs +5 -0
  154. package/dist/esm/api/resources/documents/client/requests/UploadProxyDocumentsRequest.d.mts +14 -0
  155. package/dist/esm/api/resources/documents/client/requests/index.d.mts +1 -0
  156. package/dist/esm/api/resources/index.d.mts +2 -0
  157. package/dist/esm/api/resources/index.mjs +2 -0
  158. package/dist/esm/api/resources/shares/client/Client.d.mts +119 -0
  159. package/dist/esm/api/resources/shares/client/Client.mjs +385 -0
  160. package/dist/esm/api/resources/shares/client/index.d.mts +1 -0
  161. package/dist/esm/api/resources/shares/client/index.mjs +1 -0
  162. package/dist/esm/api/resources/shares/client/requests/DeleteSharesRequest.d.mts +11 -0
  163. package/dist/esm/api/resources/shares/client/requests/GetSharesRequest.d.mts +11 -0
  164. package/dist/esm/api/resources/shares/client/requests/GetSharesRequest.mjs +2 -0
  165. package/dist/esm/api/resources/shares/client/requests/ListSharesRequest.d.mts +12 -0
  166. package/dist/esm/api/resources/shares/client/requests/ListSharesRequest.mjs +2 -0
  167. package/dist/esm/api/resources/shares/client/requests/SharesCreateRequest.d.mts +18 -0
  168. package/dist/esm/api/resources/shares/client/requests/SharesCreateRequest.mjs +2 -0
  169. package/dist/esm/api/resources/shares/client/requests/SharesExchangeRequest.d.mts +10 -0
  170. package/dist/esm/api/resources/shares/client/requests/SharesExchangeRequest.mjs +2 -0
  171. package/dist/esm/api/resources/shares/client/requests/SharesUpdateRequest.d.mts +17 -0
  172. package/dist/esm/api/resources/shares/client/requests/SharesUpdateRequest.mjs +2 -0
  173. package/dist/esm/api/resources/shares/client/requests/index.d.mts +6 -0
  174. package/dist/esm/api/resources/shares/client/requests/index.mjs +1 -0
  175. package/dist/esm/api/resources/shares/exports.d.mts +2 -0
  176. package/dist/esm/api/resources/shares/exports.mjs +3 -0
  177. package/dist/esm/api/resources/shares/index.d.mts +1 -0
  178. package/dist/esm/api/resources/shares/index.mjs +1 -0
  179. package/dist/esm/api/resources/tenants/client/Client.d.mts +50 -0
  180. package/dist/esm/api/resources/tenants/client/Client.mjs +181 -0
  181. package/dist/esm/api/resources/tenants/client/requests/ResumeTenantsRequest.d.mts +9 -0
  182. package/dist/esm/api/resources/tenants/client/requests/ResumeTenantsRequest.mjs +2 -0
  183. package/dist/esm/api/resources/tenants/client/requests/TenantsSuspendRequest.d.mts +10 -0
  184. package/dist/esm/api/resources/tenants/client/requests/TenantsSuspendRequest.mjs +2 -0
  185. package/dist/esm/api/resources/tenants/client/requests/UsageTenantsRequest.d.mts +10 -0
  186. package/dist/esm/api/resources/tenants/client/requests/UsageTenantsRequest.mjs +2 -0
  187. package/dist/esm/api/resources/tenants/client/requests/index.d.mts +3 -0
  188. package/dist/esm/api/types/DocumentsInit200ResponseCreatedUpload.d.mts +3 -3
  189. package/dist/esm/api/types/DocumentsInit200ResponseResumedUpload.d.mts +3 -3
  190. package/dist/esm/api/types/DocumentsUploadProxy200Response.d.mts +3 -0
  191. package/dist/esm/api/types/DocumentsUploadProxy200Response.mjs +2 -0
  192. package/dist/esm/api/types/DocumentsUploadProxy400Response.d.mts +9 -0
  193. package/dist/esm/api/types/DocumentsUploadProxy400Response.mjs +2 -0
  194. package/dist/esm/api/types/DocumentsUploadProxy409Response.d.mts +9 -0
  195. package/dist/esm/api/types/DocumentsUploadProxy409Response.mjs +2 -0
  196. package/dist/esm/api/types/SharesCreate200Response.d.mts +22 -0
  197. package/dist/esm/api/types/SharesCreate200Response.mjs +2 -0
  198. package/dist/esm/api/types/SharesCreate400Response.d.mts +9 -0
  199. package/dist/esm/api/types/SharesCreate400Response.mjs +2 -0
  200. package/dist/esm/api/types/SharesCreate403Response.d.mts +9 -0
  201. package/dist/esm/api/types/SharesCreate403Response.mjs +2 -0
  202. package/dist/esm/api/types/SharesCreate404Response.d.mts +9 -0
  203. package/dist/esm/api/types/SharesCreate404Response.mjs +2 -0
  204. package/dist/esm/api/types/SharesDeleteResponse.d.mts +9 -0
  205. package/dist/esm/api/types/SharesDeleteResponse.mjs +2 -0
  206. package/dist/esm/api/types/SharesExchange200Response.d.mts +6 -0
  207. package/dist/esm/api/types/SharesExchange200Response.mjs +2 -0
  208. package/dist/esm/api/types/SharesExchange400Response.d.mts +9 -0
  209. package/dist/esm/api/types/SharesExchange400Response.mjs +2 -0
  210. package/dist/esm/api/types/SharesExchange403Response.d.mts +9 -0
  211. package/dist/esm/api/types/SharesExchange403Response.mjs +2 -0
  212. package/dist/esm/api/types/SharesExchange404Response.d.mts +9 -0
  213. package/dist/esm/api/types/SharesExchange404Response.mjs +2 -0
  214. package/dist/esm/api/types/SharesExchange410Response.d.mts +9 -0
  215. package/dist/esm/api/types/SharesExchange410Response.mjs +2 -0
  216. package/dist/esm/api/types/SharesExchange422Response.d.mts +9 -0
  217. package/dist/esm/api/types/SharesExchange422Response.mjs +2 -0
  218. package/dist/esm/api/types/SharesGet200Response.d.mts +22 -0
  219. package/dist/esm/api/types/SharesGet200Response.mjs +2 -0
  220. package/dist/esm/api/types/SharesGet404Response.d.mts +9 -0
  221. package/dist/esm/api/types/SharesGet404Response.mjs +2 -0
  222. package/dist/esm/api/types/SharesList200Response.d.mts +26 -0
  223. package/dist/esm/api/types/SharesList200Response.mjs +2 -0
  224. package/dist/esm/api/types/SharesList400Response.d.mts +9 -0
  225. package/dist/esm/api/types/SharesList400Response.mjs +2 -0
  226. package/dist/esm/api/types/SharesUpdate200Response.d.mts +22 -0
  227. package/dist/esm/api/types/SharesUpdate200Response.mjs +2 -0
  228. package/dist/esm/api/types/SharesUpdate400Response.d.mts +9 -0
  229. package/dist/esm/api/types/SharesUpdate400Response.mjs +2 -0
  230. package/dist/esm/api/types/SharesUpdate404Response.d.mts +9 -0
  231. package/dist/esm/api/types/SharesUpdate404Response.mjs +2 -0
  232. package/dist/esm/api/types/TenantsCreate200Response.d.mts +8 -0
  233. package/dist/esm/api/types/TenantsCreate200Response.mjs +10 -1
  234. package/dist/esm/api/types/TenantsGet200Response.d.mts +8 -0
  235. package/dist/esm/api/types/TenantsGet200Response.mjs +10 -1
  236. package/dist/esm/api/types/TenantsList200Response.d.mts +8 -0
  237. package/dist/esm/api/types/TenantsList200Response.mjs +13 -1
  238. package/dist/esm/api/types/TenantsResumeResponse.d.mts +9 -0
  239. package/dist/esm/api/types/TenantsResumeResponse.mjs +2 -0
  240. package/dist/esm/api/types/TenantsSuspendResponse.d.mts +9 -0
  241. package/dist/esm/api/types/TenantsSuspendResponse.mjs +2 -0
  242. package/dist/esm/api/types/TenantsUsage200Response.d.mts +13 -0
  243. package/dist/esm/api/types/TenantsUsage200Response.mjs +2 -0
  244. package/dist/esm/api/types/TenantsUsage400Response.d.mts +9 -0
  245. package/dist/esm/api/types/TenantsUsage400Response.mjs +2 -0
  246. package/dist/esm/api/types/TenantsUsage404Response.d.mts +9 -0
  247. package/dist/esm/api/types/TenantsUsage404Response.mjs +2 -0
  248. package/dist/esm/api/types/TokensIssueRequest.d.mts +2 -1
  249. package/dist/esm/api/types/index.d.mts +26 -2
  250. package/dist/esm/api/types/index.mjs +26 -2
  251. package/dist/esm/auth/BearerAuthProvider.d.mts +1 -1
  252. package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +15 -0
  253. package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +150 -0
  254. package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
  255. package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +9 -0
  256. package/dist/esm/core/form-data-utils/index.d.mts +2 -0
  257. package/dist/esm/core/form-data-utils/index.mjs +2 -0
  258. package/dist/esm/core/index.d.mts +1 -0
  259. package/dist/esm/core/index.mjs +1 -0
  260. package/dist/esm/index.d.mts +3 -1
  261. package/dist/esm/index.mjs +3 -1
  262. package/dist/esm/uploads/Uploads.d.mts +7 -0
  263. package/dist/esm/uploads/Uploads.mjs +74 -0
  264. package/dist/esm/uploads/index.d.mts +2 -0
  265. package/dist/esm/uploads/index.mjs +1 -0
  266. package/dist/esm/uploads/source.d.mts +10 -0
  267. package/dist/esm/uploads/source.mjs +119 -0
  268. package/dist/esm/uploads/types.d.mts +46 -0
  269. package/dist/esm/uploads/types.mjs +1 -0
  270. package/dist/esm/version.d.mts +1 -1
  271. package/dist/esm/version.mjs +1 -1
  272. package/package.json +188 -177
  273. package/reference.md +588 -0
  274. package/dist/cjs/api/types/DocumentsUploadDirect200Response.d.ts +0 -3
  275. package/dist/cjs/api/types/DocumentsUploadDirect400Response.d.ts +0 -9
  276. package/dist/esm/api/types/DocumentsUploadDirect200Response.d.mts +0 -3
  277. package/dist/esm/api/types/DocumentsUploadDirect400Response.d.mts +0 -9
  278. /package/dist/cjs/api/{types/DocumentsUploadDirect200Response.js → resources/documents/client/requests/UploadProxyDocumentsRequest.js} +0 -0
  279. /package/dist/cjs/api/{types/DocumentsUploadDirect400Response.js → resources/shares/client/requests/DeleteSharesRequest.js} +0 -0
  280. /package/dist/esm/api/{types/DocumentsUploadDirect200Response.mjs → resources/documents/client/requests/UploadProxyDocumentsRequest.mjs} +0 -0
  281. /package/dist/esm/api/{types/DocumentsUploadDirect400Response.mjs → resources/shares/client/requests/DeleteSharesRequest.mjs} +0 -0
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * shareToken: "shareToken"
5
+ * }
6
+ */
7
+ export interface SharesExchangeRequest {
8
+ shareToken: string;
9
+ password?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * tenantId: "tenantId",
5
+ * shareId: "shareId"
6
+ * }
7
+ */
8
+ export interface SharesUpdateRequest {
9
+ tenantId: string;
10
+ shareId: string;
11
+ scope?: string[];
12
+ origins?: string[] | null;
13
+ password?: string | null;
14
+ sessionTtlSeconds?: number;
15
+ disabled?: boolean;
16
+ expiresAt?: number | null;
17
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export type { DeleteSharesRequest } from "./DeleteSharesRequest.js";
2
+ export type { GetSharesRequest } from "./GetSharesRequest.js";
3
+ export type { ListSharesRequest } from "./ListSharesRequest.js";
4
+ export type { SharesCreateRequest } from "./SharesCreateRequest.js";
5
+ export type { SharesExchangeRequest } from "./SharesExchangeRequest.js";
6
+ export type { SharesUpdateRequest } from "./SharesUpdateRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { SharesClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.SharesClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "SharesClient", { enumerable: true, get: function () { return Client_js_1.SharesClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -70,4 +70,54 @@ export declare class TenantsClient {
70
70
  */
71
71
  delete(request: CloudPDF.DeleteTenantsRequest, requestOptions?: TenantsClient.RequestOptions): core.HttpResponsePromise<void>;
72
72
  private __delete;
73
+ /**
74
+ * @param {CloudPDF.ResumeTenantsRequest} request
75
+ * @param {TenantsClient.RequestOptions} requestOptions - Request-specific configuration.
76
+ *
77
+ * @throws {@link CloudPDF.NotFoundError}
78
+ * @throws {@link errors.CloudPDFError}
79
+ * @throws {@link errors.CloudPDFTimeoutError}
80
+ *
81
+ * @example
82
+ * await client.tenants.resume({
83
+ * tenantId: "tenantId"
84
+ * })
85
+ */
86
+ resume(request: CloudPDF.ResumeTenantsRequest, requestOptions?: TenantsClient.RequestOptions): core.HttpResponsePromise<void>;
87
+ private __resume;
88
+ /**
89
+ * Instantly reversible with resume. The API token is exempt, so a suspended tenant can still be inspected, exported, resumed, or deleted.
90
+ *
91
+ * @param {CloudPDF.TenantsSuspendRequest} request
92
+ * @param {TenantsClient.RequestOptions} requestOptions - Request-specific configuration.
93
+ *
94
+ * @throws {@link CloudPDF.NotFoundError}
95
+ * @throws {@link errors.CloudPDFError}
96
+ * @throws {@link errors.CloudPDFTimeoutError}
97
+ *
98
+ * @example
99
+ * await client.tenants.suspend({
100
+ * tenantId: "tenantId"
101
+ * })
102
+ */
103
+ suspend(request: CloudPDF.TenantsSuspendRequest, requestOptions?: TenantsClient.RequestOptions): core.HttpResponsePromise<void>;
104
+ private __suspend;
105
+ /**
106
+ * Facts only — no limits or billing state. Views count share exchanges plus authorized /v1/access grants, deduplicated across the two.
107
+ *
108
+ * @param {CloudPDF.UsageTenantsRequest} request
109
+ * @param {TenantsClient.RequestOptions} requestOptions - Request-specific configuration.
110
+ *
111
+ * @throws {@link CloudPDF.BadRequestError}
112
+ * @throws {@link CloudPDF.NotFoundError}
113
+ * @throws {@link errors.CloudPDFError}
114
+ * @throws {@link errors.CloudPDFTimeoutError}
115
+ *
116
+ * @example
117
+ * await client.tenants.usage({
118
+ * tenantId: "tenantId"
119
+ * })
120
+ */
121
+ usage(request: CloudPDF.UsageTenantsRequest, requestOptions?: TenantsClient.RequestOptions): core.HttpResponsePromise<CloudPDF.TenantsUsage200Response>;
122
+ private __usage;
73
123
  }
@@ -42,6 +42,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
42
42
  step((generator = generator.apply(thisArg, _arguments || [])).next());
43
43
  });
44
44
  };
45
+ var __rest = (this && this.__rest) || function (s, e) {
46
+ var t = {};
47
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
48
+ t[p] = s[p];
49
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
50
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
51
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
52
+ t[p[i]] = s[p[i]];
53
+ }
54
+ return t;
55
+ };
45
56
  Object.defineProperty(exports, "__esModule", { value: true });
46
57
  exports.TenantsClient = void 0;
47
58
  const BaseClient_js_1 = require("../../../../BaseClient.js");
@@ -269,5 +280,175 @@ class TenantsClient {
269
280
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/tenants/{tenantId}");
270
281
  });
271
282
  }
283
+ /**
284
+ * @param {CloudPDF.ResumeTenantsRequest} request
285
+ * @param {TenantsClient.RequestOptions} requestOptions - Request-specific configuration.
286
+ *
287
+ * @throws {@link CloudPDF.NotFoundError}
288
+ * @throws {@link errors.CloudPDFError}
289
+ * @throws {@link errors.CloudPDFTimeoutError}
290
+ *
291
+ * @example
292
+ * await client.tenants.resume({
293
+ * tenantId: "tenantId"
294
+ * })
295
+ */
296
+ resume(request, requestOptions) {
297
+ return core.HttpResponsePromise.fromPromise(this.__resume(request, requestOptions));
298
+ }
299
+ __resume(request, requestOptions) {
300
+ return __awaiter(this, void 0, void 0, function* () {
301
+ var _a, _b, _c, _d, _e, _f, _g, _h;
302
+ const { tenantId } = request;
303
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
304
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
305
+ const _response = yield core.fetcher({
306
+ 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/tenants/${core.url.encodePathParam(tenantId)}/resume`),
307
+ method: "POST",
308
+ headers: _headers,
309
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
310
+ 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,
311
+ 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,
312
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
313
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
314
+ logging: this._options.logging,
315
+ });
316
+ if (_response.ok) {
317
+ return { data: undefined, rawResponse: _response.rawResponse };
318
+ }
319
+ if (_response.error.reason === "status-code") {
320
+ switch (_response.error.statusCode) {
321
+ case 404:
322
+ throw new CloudPDF.NotFoundError(_response.error.body, _response.rawResponse);
323
+ default:
324
+ throw new errors.CloudPDFError({
325
+ statusCode: _response.error.statusCode,
326
+ body: _response.error.body,
327
+ rawResponse: _response.rawResponse,
328
+ });
329
+ }
330
+ }
331
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/tenants/{tenantId}/resume");
332
+ });
333
+ }
334
+ /**
335
+ * Instantly reversible with resume. The API token is exempt, so a suspended tenant can still be inspected, exported, resumed, or deleted.
336
+ *
337
+ * @param {CloudPDF.TenantsSuspendRequest} request
338
+ * @param {TenantsClient.RequestOptions} requestOptions - Request-specific configuration.
339
+ *
340
+ * @throws {@link CloudPDF.NotFoundError}
341
+ * @throws {@link errors.CloudPDFError}
342
+ * @throws {@link errors.CloudPDFTimeoutError}
343
+ *
344
+ * @example
345
+ * await client.tenants.suspend({
346
+ * tenantId: "tenantId"
347
+ * })
348
+ */
349
+ suspend(request, requestOptions) {
350
+ return core.HttpResponsePromise.fromPromise(this.__suspend(request, requestOptions));
351
+ }
352
+ __suspend(request, requestOptions) {
353
+ return __awaiter(this, void 0, void 0, function* () {
354
+ var _a, _b, _c, _d, _e, _f, _g, _h;
355
+ const { tenantId } = request, _body = __rest(request, ["tenantId"]);
356
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
357
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
358
+ const _response = yield core.fetcher({
359
+ 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/tenants/${core.url.encodePathParam(tenantId)}/suspend`),
360
+ method: "POST",
361
+ headers: _headers,
362
+ contentType: "application/json",
363
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
364
+ requestType: "json",
365
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
366
+ 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,
367
+ 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,
368
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
369
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
370
+ logging: this._options.logging,
371
+ });
372
+ if (_response.ok) {
373
+ return { data: undefined, rawResponse: _response.rawResponse };
374
+ }
375
+ if (_response.error.reason === "status-code") {
376
+ switch (_response.error.statusCode) {
377
+ case 404:
378
+ throw new CloudPDF.NotFoundError(_response.error.body, _response.rawResponse);
379
+ default:
380
+ throw new errors.CloudPDFError({
381
+ statusCode: _response.error.statusCode,
382
+ body: _response.error.body,
383
+ rawResponse: _response.rawResponse,
384
+ });
385
+ }
386
+ }
387
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/tenants/{tenantId}/suspend");
388
+ });
389
+ }
390
+ /**
391
+ * Facts only — no limits or billing state. Views count share exchanges plus authorized /v1/access grants, deduplicated across the two.
392
+ *
393
+ * @param {CloudPDF.UsageTenantsRequest} request
394
+ * @param {TenantsClient.RequestOptions} requestOptions - Request-specific configuration.
395
+ *
396
+ * @throws {@link CloudPDF.BadRequestError}
397
+ * @throws {@link CloudPDF.NotFoundError}
398
+ * @throws {@link errors.CloudPDFError}
399
+ * @throws {@link errors.CloudPDFTimeoutError}
400
+ *
401
+ * @example
402
+ * await client.tenants.usage({
403
+ * tenantId: "tenantId"
404
+ * })
405
+ */
406
+ usage(request, requestOptions) {
407
+ return core.HttpResponsePromise.fromPromise(this.__usage(request, requestOptions));
408
+ }
409
+ __usage(request, requestOptions) {
410
+ return __awaiter(this, void 0, void 0, function* () {
411
+ var _a, _b, _c, _d, _e, _f, _g, _h;
412
+ const { tenantId, period } = request;
413
+ const _queryParams = {
414
+ period,
415
+ };
416
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
417
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
418
+ const _response = yield core.fetcher({
419
+ 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/tenants/${core.url.encodePathParam(tenantId)}/usage`),
420
+ method: "GET",
421
+ headers: _headers,
422
+ queryString: core.url
423
+ .queryBuilder()
424
+ .addMany(_queryParams)
425
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
426
+ .build(),
427
+ 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,
428
+ 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,
429
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
430
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
431
+ logging: this._options.logging,
432
+ });
433
+ if (_response.ok) {
434
+ return { data: _response.body, rawResponse: _response.rawResponse };
435
+ }
436
+ if (_response.error.reason === "status-code") {
437
+ switch (_response.error.statusCode) {
438
+ case 400:
439
+ throw new CloudPDF.BadRequestError(_response.error.body, _response.rawResponse);
440
+ case 404:
441
+ throw new CloudPDF.NotFoundError(_response.error.body, _response.rawResponse);
442
+ default:
443
+ throw new errors.CloudPDFError({
444
+ statusCode: _response.error.statusCode,
445
+ body: _response.error.body,
446
+ rawResponse: _response.rawResponse,
447
+ });
448
+ }
449
+ }
450
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/tenants/{tenantId}/usage");
451
+ });
452
+ }
272
453
  }
273
454
  exports.TenantsClient = TenantsClient;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * tenantId: "tenantId"
5
+ * }
6
+ */
7
+ export interface ResumeTenantsRequest {
8
+ tenantId: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * tenantId: "tenantId"
5
+ * }
6
+ */
7
+ export interface TenantsSuspendRequest {
8
+ tenantId: string;
9
+ reason?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * tenantId: "tenantId"
5
+ * }
6
+ */
7
+ export interface UsageTenantsRequest {
8
+ tenantId: string;
9
+ period?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,7 @@
1
1
  export type { DeleteTenantsRequest } from "./DeleteTenantsRequest.js";
2
2
  export type { GetTenantsRequest } from "./GetTenantsRequest.js";
3
3
  export type { ListTenantsRequest } from "./ListTenantsRequest.js";
4
+ export type { ResumeTenantsRequest } from "./ResumeTenantsRequest.js";
4
5
  export type { TenantsCreateRequest } from "./TenantsCreateRequest.js";
6
+ export type { TenantsSuspendRequest } from "./TenantsSuspendRequest.js";
7
+ export type { UsageTenantsRequest } from "./UsageTenantsRequest.js";
@@ -1,5 +1,5 @@
1
1
  import type * as CloudPDF from "../index.js";
2
- export type DocumentsInit200ResponseCreatedUpload = CloudPDF.DocumentsInit200ResponseCreatedUpload.Presigned | CloudPDF.DocumentsInit200ResponseCreatedUpload.Direct;
2
+ export type DocumentsInit200ResponseCreatedUpload = CloudPDF.DocumentsInit200ResponseCreatedUpload.Presigned | CloudPDF.DocumentsInit200ResponseCreatedUpload.Proxy;
3
3
  export declare namespace DocumentsInit200ResponseCreatedUpload {
4
4
  interface Presigned {
5
5
  kind: "presigned";
@@ -20,8 +20,8 @@ export declare namespace DocumentsInit200ResponseCreatedUpload {
20
20
  type Method = (typeof Method)[keyof typeof Method];
21
21
  }
22
22
  }
23
- interface Direct {
24
- kind: "direct";
23
+ interface Proxy {
24
+ kind: "proxy";
25
25
  url: string;
26
26
  key: string;
27
27
  }
@@ -1,5 +1,5 @@
1
1
  import type * as CloudPDF from "../index.js";
2
- export type DocumentsInit200ResponseResumedUpload = CloudPDF.DocumentsInit200ResponseResumedUpload.Presigned | CloudPDF.DocumentsInit200ResponseResumedUpload.Direct;
2
+ export type DocumentsInit200ResponseResumedUpload = CloudPDF.DocumentsInit200ResponseResumedUpload.Presigned | CloudPDF.DocumentsInit200ResponseResumedUpload.Proxy;
3
3
  export declare namespace DocumentsInit200ResponseResumedUpload {
4
4
  interface Presigned {
5
5
  kind: "presigned";
@@ -20,8 +20,8 @@ export declare namespace DocumentsInit200ResponseResumedUpload {
20
20
  type Method = (typeof Method)[keyof typeof Method];
21
21
  }
22
22
  }
23
- interface Direct {
24
- kind: "direct";
23
+ interface Proxy {
24
+ kind: "proxy";
25
25
  url: string;
26
26
  key: string;
27
27
  }
@@ -0,0 +1,3 @@
1
+ export interface DocumentsUploadProxy200Response {
2
+ sha256: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface DocumentsUploadProxy400Response {
2
+ error: DocumentsUploadProxy400Response.Error_;
3
+ }
4
+ export declare namespace DocumentsUploadProxy400Response {
5
+ interface Error_ {
6
+ code: string;
7
+ message: string;
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface DocumentsUploadProxy409Response {
2
+ error: DocumentsUploadProxy409Response.Error_;
3
+ }
4
+ export declare namespace DocumentsUploadProxy409Response {
5
+ interface Error_ {
6
+ code: string;
7
+ message: string;
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ export interface SharesCreate200Response {
2
+ share: SharesCreate200Response.Share;
3
+ }
4
+ export declare namespace SharesCreate200Response {
5
+ interface Share {
6
+ id: string;
7
+ tenantId: string;
8
+ docId: string;
9
+ layerName: string;
10
+ scope: string[];
11
+ origins: string[] | null;
12
+ passwordProtected: boolean;
13
+ sessionTtlSeconds: number;
14
+ disabled: boolean;
15
+ expiresAt: number | null;
16
+ exchangeCount: number;
17
+ lastExchangedAt: number | null;
18
+ createdBy: string;
19
+ createdAt: number;
20
+ updatedAt: number;
21
+ }
22
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface SharesCreate400Response {
2
+ error: SharesCreate400Response.Error_;
3
+ }
4
+ export declare namespace SharesCreate400Response {
5
+ interface Error_ {
6
+ code: string;
7
+ message: string;
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface SharesCreate403Response {
2
+ error: SharesCreate403Response.Error_;
3
+ }
4
+ export declare namespace SharesCreate403Response {
5
+ interface Error_ {
6
+ code: string;
7
+ message: string;
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface SharesCreate404Response {
2
+ error: SharesCreate404Response.Error_;
3
+ }
4
+ export declare namespace SharesCreate404Response {
5
+ interface Error_ {
6
+ code: string;
7
+ message: string;
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface SharesDeleteResponse {
2
+ error: SharesDeleteResponse.Error_;
3
+ }
4
+ export declare namespace SharesDeleteResponse {
5
+ interface Error_ {
6
+ code: string;
7
+ message: string;
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface SharesExchange200Response {
2
+ token: string;
3
+ docId: string;
4
+ layerName: string;
5
+ expiresAt: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface SharesExchange400Response {
2
+ error: SharesExchange400Response.Error_;
3
+ }
4
+ export declare namespace SharesExchange400Response {
5
+ interface Error_ {
6
+ code: string;
7
+ message: string;
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface SharesExchange403Response {
2
+ error: SharesExchange403Response.Error_;
3
+ }
4
+ export declare namespace SharesExchange403Response {
5
+ interface Error_ {
6
+ code: string;
7
+ message: string;
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface SharesExchange404Response {
2
+ error: SharesExchange404Response.Error_;
3
+ }
4
+ export declare namespace SharesExchange404Response {
5
+ interface Error_ {
6
+ code: string;
7
+ message: string;
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });