@factify/sdk 0.3.9 → 0.3.10

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 (378) hide show
  1. package/FUNCTIONS.md +5 -7
  2. package/README.md +46 -54
  3. package/dist/commonjs/funcs/apiKeysCreateAPIKey.d.ts +19 -0
  4. package/dist/commonjs/funcs/apiKeysCreateAPIKey.d.ts.map +1 -0
  5. package/dist/commonjs/funcs/apiKeysCreateAPIKey.js +122 -0
  6. package/dist/commonjs/funcs/apiKeysCreateAPIKey.js.map +1 -0
  7. package/dist/commonjs/funcs/{versionsUpdate.d.ts → apiKeysListAPIKeys.d.ts} +4 -4
  8. package/dist/commonjs/funcs/apiKeysListAPIKeys.d.ts.map +1 -0
  9. package/dist/commonjs/funcs/apiKeysListAPIKeys.js +127 -0
  10. package/dist/commonjs/funcs/apiKeysListAPIKeys.js.map +1 -0
  11. package/dist/commonjs/funcs/apiKeysRevokeAPIKey.d.ts +18 -0
  12. package/dist/commonjs/funcs/apiKeysRevokeAPIKey.d.ts.map +1 -0
  13. package/dist/commonjs/funcs/apiKeysRevokeAPIKey.js +127 -0
  14. package/dist/commonjs/funcs/apiKeysRevokeAPIKey.js.map +1 -0
  15. package/dist/commonjs/funcs/organizationsCreateOrganization.d.ts +19 -0
  16. package/dist/commonjs/funcs/organizationsCreateOrganization.d.ts.map +1 -0
  17. package/dist/commonjs/funcs/organizationsCreateOrganization.js +122 -0
  18. package/dist/commonjs/funcs/organizationsCreateOrganization.js.map +1 -0
  19. package/dist/commonjs/funcs/organizationsGetOrganization.d.ts +18 -0
  20. package/dist/commonjs/funcs/organizationsGetOrganization.d.ts.map +1 -0
  21. package/dist/commonjs/funcs/organizationsGetOrganization.js +126 -0
  22. package/dist/commonjs/funcs/organizationsGetOrganization.js.map +1 -0
  23. package/dist/commonjs/funcs/organizationsListOrganizations.d.ts +18 -0
  24. package/dist/commonjs/funcs/organizationsListOrganizations.d.ts.map +1 -0
  25. package/dist/commonjs/funcs/organizationsListOrganizations.js +125 -0
  26. package/dist/commonjs/funcs/organizationsListOrganizations.js.map +1 -0
  27. package/dist/{esm/funcs/versionsUpdate.d.ts → commonjs/funcs/versionsGetVersion.d.ts} +4 -4
  28. package/dist/commonjs/funcs/versionsGetVersion.d.ts.map +1 -0
  29. package/dist/commonjs/funcs/{versionsGet.js → versionsGetVersion.js} +7 -11
  30. package/dist/commonjs/funcs/versionsGetVersion.js.map +1 -0
  31. package/dist/commonjs/funcs/{versionsGet.d.ts → versionsUpdateVersion.d.ts} +4 -4
  32. package/dist/commonjs/funcs/versionsUpdateVersion.d.ts.map +1 -0
  33. package/dist/commonjs/funcs/{versionsUpdate.js → versionsUpdateVersion.js} +7 -11
  34. package/dist/commonjs/funcs/{versionsGet.js.map → versionsUpdateVersion.js.map} +1 -1
  35. package/dist/commonjs/lib/config.d.ts +3 -3
  36. package/dist/commonjs/lib/config.js +3 -3
  37. package/dist/commonjs/lib/config.js.map +1 -1
  38. package/dist/commonjs/lib/sdks.js +2 -2
  39. package/dist/commonjs/lib/sdks.js.map +1 -1
  40. package/dist/commonjs/models/components/apikey.d.ts +56 -0
  41. package/dist/commonjs/models/components/apikey.d.ts.map +1 -0
  42. package/dist/commonjs/models/components/apikey.js +68 -0
  43. package/dist/commonjs/models/components/apikey.js.map +1 -0
  44. package/dist/commonjs/models/components/createapikeyrequest.d.ts +37 -0
  45. package/dist/commonjs/models/components/createapikeyrequest.d.ts.map +1 -0
  46. package/dist/commonjs/models/components/createapikeyrequest.js +57 -0
  47. package/dist/commonjs/models/components/createapikeyrequest.js.map +1 -0
  48. package/dist/commonjs/models/components/createapikeyresponse.d.ts +29 -0
  49. package/dist/commonjs/models/components/createapikeyresponse.d.ts.map +1 -0
  50. package/dist/commonjs/models/components/createapikeyresponse.js +58 -0
  51. package/dist/commonjs/models/components/createapikeyresponse.js.map +1 -0
  52. package/dist/commonjs/models/components/createdocumentresponse.d.ts +1 -1
  53. package/dist/commonjs/models/components/createdocumentresponse.d.ts.map +1 -1
  54. package/dist/commonjs/models/components/createdocumentresponse.js +1 -2
  55. package/dist/commonjs/models/components/createdocumentresponse.js.map +1 -1
  56. package/dist/commonjs/models/components/createorganizationrequest.d.ts +28 -0
  57. package/dist/commonjs/models/components/createorganizationrequest.d.ts.map +1 -0
  58. package/dist/commonjs/models/components/createorganizationrequest.js +55 -0
  59. package/dist/commonjs/models/components/createorganizationrequest.js.map +1 -0
  60. package/dist/commonjs/models/components/createorganizationresponse.d.ts +17 -0
  61. package/dist/commonjs/models/components/createorganizationresponse.d.ts.map +1 -0
  62. package/dist/commonjs/models/components/createorganizationresponse.js +51 -0
  63. package/dist/commonjs/models/components/createorganizationresponse.js.map +1 -0
  64. package/dist/commonjs/models/components/getdocumentresponse.d.ts +1 -1
  65. package/dist/commonjs/models/components/getdocumentresponse.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/getdocumentresponse.js +1 -2
  67. package/dist/commonjs/models/components/getdocumentresponse.js.map +1 -1
  68. package/dist/commonjs/models/components/getorganizationresponse.d.ts +17 -0
  69. package/dist/commonjs/models/components/getorganizationresponse.d.ts.map +1 -0
  70. package/dist/commonjs/models/components/getorganizationresponse.js +51 -0
  71. package/dist/commonjs/models/components/getorganizationresponse.js.map +1 -0
  72. package/dist/commonjs/models/components/index.d.ts +10 -0
  73. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  74. package/dist/commonjs/models/components/index.js +10 -0
  75. package/dist/commonjs/models/components/index.js.map +1 -1
  76. package/dist/commonjs/models/components/listapikeysresponse.d.ts +25 -0
  77. package/dist/commonjs/models/components/listapikeysresponse.d.ts.map +1 -0
  78. package/dist/commonjs/models/components/listapikeysresponse.js +54 -0
  79. package/dist/commonjs/models/components/listapikeysresponse.js.map +1 -0
  80. package/dist/commonjs/models/components/listdocumentpoliciesresponse.d.ts +1 -1
  81. package/dist/commonjs/models/components/listdocumentpoliciesresponse.d.ts.map +1 -1
  82. package/dist/commonjs/models/components/listdocumentpoliciesresponse.js +1 -1
  83. package/dist/commonjs/models/components/listdocumentpoliciesresponse.js.map +1 -1
  84. package/dist/commonjs/models/components/listdocumentsresponse.d.ts +1 -1
  85. package/dist/commonjs/models/components/listdocumentsresponse.d.ts.map +1 -1
  86. package/dist/commonjs/models/components/listdocumentsresponse.js +1 -1
  87. package/dist/commonjs/models/components/listdocumentsresponse.js.map +1 -1
  88. package/dist/commonjs/models/components/listorganizationsresponse.d.ts +25 -0
  89. package/dist/commonjs/models/components/listorganizationsresponse.d.ts.map +1 -0
  90. package/dist/commonjs/models/components/listorganizationsresponse.js +54 -0
  91. package/dist/commonjs/models/components/listorganizationsresponse.js.map +1 -0
  92. package/dist/commonjs/models/components/listversionsresponse.d.ts +1 -1
  93. package/dist/commonjs/models/components/listversionsresponse.d.ts.map +1 -1
  94. package/dist/commonjs/models/components/listversionsresponse.js +1 -1
  95. package/dist/commonjs/models/components/listversionsresponse.js.map +1 -1
  96. package/dist/commonjs/models/components/organization.d.ts +27 -0
  97. package/dist/commonjs/models/components/organization.d.ts.map +1 -0
  98. package/dist/commonjs/models/components/organization.js +58 -0
  99. package/dist/commonjs/models/components/organization.js.map +1 -0
  100. package/dist/commonjs/models/components/revokeapikeyresponse.d.ts +17 -0
  101. package/dist/commonjs/models/components/revokeapikeyresponse.d.ts.map +1 -0
  102. package/dist/commonjs/models/components/revokeapikeyresponse.js +56 -0
  103. package/dist/commonjs/models/components/revokeapikeyresponse.js.map +1 -0
  104. package/dist/commonjs/models/components/updatedocumentresponse.d.ts +1 -1
  105. package/dist/commonjs/models/components/updatedocumentresponse.d.ts.map +1 -1
  106. package/dist/commonjs/models/components/updatedocumentresponse.js +1 -2
  107. package/dist/commonjs/models/components/updatedocumentresponse.js.map +1 -1
  108. package/dist/commonjs/models/operations/createapikey.d.ts +18 -0
  109. package/dist/commonjs/models/operations/createapikey.d.ts.map +1 -0
  110. package/dist/commonjs/models/operations/createapikey.js +61 -0
  111. package/dist/commonjs/models/operations/createapikey.js.map +1 -0
  112. package/dist/commonjs/models/operations/createorganization.d.ts +18 -0
  113. package/dist/commonjs/models/operations/createorganization.d.ts.map +1 -0
  114. package/dist/commonjs/models/operations/createorganization.js +61 -0
  115. package/dist/commonjs/models/operations/createorganization.js.map +1 -0
  116. package/dist/commonjs/models/operations/getorganization.d.ts +34 -0
  117. package/dist/commonjs/models/operations/getorganization.d.ts.map +1 -0
  118. package/dist/commonjs/models/operations/getorganization.js +73 -0
  119. package/dist/commonjs/models/operations/getorganization.js.map +1 -0
  120. package/dist/commonjs/models/operations/getversion.d.ts +34 -0
  121. package/dist/commonjs/models/operations/getversion.d.ts.map +1 -0
  122. package/dist/commonjs/models/operations/{getdocumentversion.js → getversion.js} +10 -12
  123. package/dist/commonjs/models/operations/getversion.js.map +1 -0
  124. package/dist/commonjs/models/operations/index.d.ts +8 -2
  125. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  126. package/dist/commonjs/models/operations/index.js +8 -2
  127. package/dist/commonjs/models/operations/index.js.map +1 -1
  128. package/dist/commonjs/models/operations/listapikeys.d.ts +54 -0
  129. package/dist/commonjs/models/operations/listapikeys.d.ts.map +1 -0
  130. package/dist/commonjs/models/operations/listapikeys.js +79 -0
  131. package/dist/commonjs/models/operations/listapikeys.js.map +1 -0
  132. package/dist/commonjs/models/operations/listorganizations.d.ts +36 -0
  133. package/dist/commonjs/models/operations/listorganizations.d.ts.map +1 -0
  134. package/dist/commonjs/models/operations/listorganizations.js +75 -0
  135. package/dist/commonjs/models/operations/listorganizations.js.map +1 -0
  136. package/dist/commonjs/models/operations/revokeapikey.d.ts +55 -0
  137. package/dist/commonjs/models/operations/revokeapikey.d.ts.map +1 -0
  138. package/dist/commonjs/models/operations/revokeapikey.js +82 -0
  139. package/dist/commonjs/models/operations/revokeapikey.js.map +1 -0
  140. package/dist/commonjs/models/operations/{updatedocumentversion.d.ts → updateversion.d.ts} +14 -22
  141. package/dist/commonjs/models/operations/updateversion.d.ts.map +1 -0
  142. package/dist/commonjs/models/operations/{updatedocumentversion.js → updateversion.js} +14 -16
  143. package/dist/commonjs/models/operations/updateversion.js.map +1 -0
  144. package/dist/commonjs/sdk/apikeys.d.ts +27 -0
  145. package/dist/commonjs/sdk/apikeys.d.ts.map +1 -0
  146. package/dist/commonjs/sdk/apikeys.js +42 -0
  147. package/dist/commonjs/sdk/apikeys.js.map +1 -0
  148. package/dist/commonjs/sdk/organizations.d.ts +27 -0
  149. package/dist/commonjs/sdk/organizations.d.ts.map +1 -0
  150. package/dist/commonjs/sdk/organizations.js +42 -0
  151. package/dist/commonjs/sdk/organizations.js.map +1 -0
  152. package/dist/commonjs/sdk/sdk.d.ts +6 -0
  153. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  154. package/dist/commonjs/sdk/sdk.js +8 -0
  155. package/dist/commonjs/sdk/sdk.js.map +1 -1
  156. package/dist/commonjs/sdk/versions.d.ts +2 -2
  157. package/dist/commonjs/sdk/versions.d.ts.map +1 -1
  158. package/dist/commonjs/sdk/versions.js +6 -6
  159. package/dist/commonjs/sdk/versions.js.map +1 -1
  160. package/dist/esm/funcs/apiKeysCreateAPIKey.d.ts +19 -0
  161. package/dist/esm/funcs/apiKeysCreateAPIKey.d.ts.map +1 -0
  162. package/dist/esm/funcs/apiKeysCreateAPIKey.js +86 -0
  163. package/dist/esm/funcs/apiKeysCreateAPIKey.js.map +1 -0
  164. package/dist/esm/funcs/apiKeysListAPIKeys.d.ts +18 -0
  165. package/dist/esm/funcs/apiKeysListAPIKeys.d.ts.map +1 -0
  166. package/dist/esm/funcs/apiKeysListAPIKeys.js +91 -0
  167. package/dist/esm/funcs/apiKeysListAPIKeys.js.map +1 -0
  168. package/dist/esm/funcs/apiKeysRevokeAPIKey.d.ts +18 -0
  169. package/dist/esm/funcs/apiKeysRevokeAPIKey.d.ts.map +1 -0
  170. package/dist/esm/funcs/apiKeysRevokeAPIKey.js +91 -0
  171. package/dist/esm/funcs/apiKeysRevokeAPIKey.js.map +1 -0
  172. package/dist/esm/funcs/organizationsCreateOrganization.d.ts +19 -0
  173. package/dist/esm/funcs/organizationsCreateOrganization.d.ts.map +1 -0
  174. package/dist/esm/funcs/organizationsCreateOrganization.js +86 -0
  175. package/dist/esm/funcs/organizationsCreateOrganization.js.map +1 -0
  176. package/dist/esm/funcs/organizationsGetOrganization.d.ts +18 -0
  177. package/dist/esm/funcs/organizationsGetOrganization.d.ts.map +1 -0
  178. package/dist/esm/funcs/organizationsGetOrganization.js +90 -0
  179. package/dist/esm/funcs/organizationsGetOrganization.js.map +1 -0
  180. package/dist/esm/funcs/organizationsListOrganizations.d.ts +18 -0
  181. package/dist/esm/funcs/organizationsListOrganizations.d.ts.map +1 -0
  182. package/dist/esm/funcs/organizationsListOrganizations.js +89 -0
  183. package/dist/esm/funcs/organizationsListOrganizations.js.map +1 -0
  184. package/dist/esm/funcs/versionsGetVersion.d.ts +18 -0
  185. package/dist/esm/funcs/versionsGetVersion.d.ts.map +1 -0
  186. package/dist/esm/funcs/{versionsGet.js → versionsGetVersion.js} +6 -10
  187. package/dist/esm/funcs/versionsGetVersion.js.map +1 -0
  188. package/dist/esm/funcs/{versionsGet.d.ts → versionsUpdateVersion.d.ts} +4 -4
  189. package/dist/esm/funcs/versionsUpdateVersion.d.ts.map +1 -0
  190. package/dist/esm/funcs/{versionsUpdate.js → versionsUpdateVersion.js} +6 -10
  191. package/dist/esm/funcs/versionsUpdateVersion.js.map +1 -0
  192. package/dist/esm/lib/config.d.ts +3 -3
  193. package/dist/esm/lib/config.js +3 -3
  194. package/dist/esm/lib/config.js.map +1 -1
  195. package/dist/esm/lib/sdks.js +2 -2
  196. package/dist/esm/lib/sdks.js.map +1 -1
  197. package/dist/esm/models/components/apikey.d.ts +56 -0
  198. package/dist/esm/models/components/apikey.d.ts.map +1 -0
  199. package/dist/esm/models/components/apikey.js +31 -0
  200. package/dist/esm/models/components/apikey.js.map +1 -0
  201. package/dist/esm/models/components/createapikeyrequest.d.ts +37 -0
  202. package/dist/esm/models/components/createapikeyrequest.d.ts.map +1 -0
  203. package/dist/esm/models/components/createapikeyrequest.js +20 -0
  204. package/dist/esm/models/components/createapikeyrequest.js.map +1 -0
  205. package/dist/esm/models/components/createapikeyresponse.d.ts +29 -0
  206. package/dist/esm/models/components/createapikeyresponse.d.ts.map +1 -0
  207. package/dist/esm/models/components/createapikeyresponse.js +21 -0
  208. package/dist/esm/models/components/createapikeyresponse.js.map +1 -0
  209. package/dist/esm/models/components/createdocumentresponse.d.ts +1 -1
  210. package/dist/esm/models/components/createdocumentresponse.d.ts.map +1 -1
  211. package/dist/esm/models/components/createdocumentresponse.js +1 -2
  212. package/dist/esm/models/components/createdocumentresponse.js.map +1 -1
  213. package/dist/esm/models/components/createorganizationrequest.d.ts +28 -0
  214. package/dist/esm/models/components/createorganizationrequest.d.ts.map +1 -0
  215. package/dist/esm/models/components/createorganizationrequest.js +18 -0
  216. package/dist/esm/models/components/createorganizationrequest.js.map +1 -0
  217. package/dist/esm/models/components/createorganizationresponse.d.ts +17 -0
  218. package/dist/esm/models/components/createorganizationresponse.d.ts.map +1 -0
  219. package/dist/esm/models/components/createorganizationresponse.js +14 -0
  220. package/dist/esm/models/components/createorganizationresponse.js.map +1 -0
  221. package/dist/esm/models/components/getdocumentresponse.d.ts +1 -1
  222. package/dist/esm/models/components/getdocumentresponse.d.ts.map +1 -1
  223. package/dist/esm/models/components/getdocumentresponse.js +1 -2
  224. package/dist/esm/models/components/getdocumentresponse.js.map +1 -1
  225. package/dist/esm/models/components/getorganizationresponse.d.ts +17 -0
  226. package/dist/esm/models/components/getorganizationresponse.d.ts.map +1 -0
  227. package/dist/esm/models/components/getorganizationresponse.js +14 -0
  228. package/dist/esm/models/components/getorganizationresponse.js.map +1 -0
  229. package/dist/esm/models/components/index.d.ts +10 -0
  230. package/dist/esm/models/components/index.d.ts.map +1 -1
  231. package/dist/esm/models/components/index.js +10 -0
  232. package/dist/esm/models/components/index.js.map +1 -1
  233. package/dist/esm/models/components/listapikeysresponse.d.ts +25 -0
  234. package/dist/esm/models/components/listapikeysresponse.d.ts.map +1 -0
  235. package/dist/esm/models/components/listapikeysresponse.js +17 -0
  236. package/dist/esm/models/components/listapikeysresponse.js.map +1 -0
  237. package/dist/esm/models/components/listdocumentpoliciesresponse.d.ts +1 -1
  238. package/dist/esm/models/components/listdocumentpoliciesresponse.d.ts.map +1 -1
  239. package/dist/esm/models/components/listdocumentpoliciesresponse.js +1 -1
  240. package/dist/esm/models/components/listdocumentpoliciesresponse.js.map +1 -1
  241. package/dist/esm/models/components/listdocumentsresponse.d.ts +1 -1
  242. package/dist/esm/models/components/listdocumentsresponse.d.ts.map +1 -1
  243. package/dist/esm/models/components/listdocumentsresponse.js +1 -1
  244. package/dist/esm/models/components/listdocumentsresponse.js.map +1 -1
  245. package/dist/esm/models/components/listorganizationsresponse.d.ts +25 -0
  246. package/dist/esm/models/components/listorganizationsresponse.d.ts.map +1 -0
  247. package/dist/esm/models/components/listorganizationsresponse.js +17 -0
  248. package/dist/esm/models/components/listorganizationsresponse.js.map +1 -0
  249. package/dist/esm/models/components/listversionsresponse.d.ts +1 -1
  250. package/dist/esm/models/components/listversionsresponse.d.ts.map +1 -1
  251. package/dist/esm/models/components/listversionsresponse.js +1 -1
  252. package/dist/esm/models/components/listversionsresponse.js.map +1 -1
  253. package/dist/esm/models/components/organization.d.ts +27 -0
  254. package/dist/esm/models/components/organization.d.ts.map +1 -0
  255. package/dist/esm/models/components/organization.js +21 -0
  256. package/dist/esm/models/components/organization.js.map +1 -0
  257. package/dist/esm/models/components/revokeapikeyresponse.d.ts +17 -0
  258. package/dist/esm/models/components/revokeapikeyresponse.d.ts.map +1 -0
  259. package/dist/esm/models/components/revokeapikeyresponse.js +19 -0
  260. package/dist/esm/models/components/revokeapikeyresponse.js.map +1 -0
  261. package/dist/esm/models/components/updatedocumentresponse.d.ts +1 -1
  262. package/dist/esm/models/components/updatedocumentresponse.d.ts.map +1 -1
  263. package/dist/esm/models/components/updatedocumentresponse.js +1 -2
  264. package/dist/esm/models/components/updatedocumentresponse.js.map +1 -1
  265. package/dist/esm/models/operations/createapikey.d.ts +18 -0
  266. package/dist/esm/models/operations/createapikey.d.ts.map +1 -0
  267. package/dist/esm/models/operations/createapikey.js +24 -0
  268. package/dist/esm/models/operations/createapikey.js.map +1 -0
  269. package/dist/esm/models/operations/createorganization.d.ts +18 -0
  270. package/dist/esm/models/operations/createorganization.d.ts.map +1 -0
  271. package/dist/esm/models/operations/createorganization.js +24 -0
  272. package/dist/esm/models/operations/createorganization.js.map +1 -0
  273. package/dist/esm/models/operations/getorganization.d.ts +34 -0
  274. package/dist/esm/models/operations/getorganization.d.ts.map +1 -0
  275. package/dist/esm/models/operations/getorganization.js +35 -0
  276. package/dist/esm/models/operations/getorganization.js.map +1 -0
  277. package/dist/esm/models/operations/getversion.d.ts +34 -0
  278. package/dist/esm/models/operations/getversion.d.ts.map +1 -0
  279. package/dist/esm/models/operations/{getdocumentversion.js → getversion.js} +7 -9
  280. package/dist/esm/models/operations/getversion.js.map +1 -0
  281. package/dist/esm/models/operations/index.d.ts +8 -2
  282. package/dist/esm/models/operations/index.d.ts.map +1 -1
  283. package/dist/esm/models/operations/index.js +8 -2
  284. package/dist/esm/models/operations/index.js.map +1 -1
  285. package/dist/esm/models/operations/listapikeys.d.ts +54 -0
  286. package/dist/esm/models/operations/listapikeys.d.ts.map +1 -0
  287. package/dist/esm/models/operations/listapikeys.js +41 -0
  288. package/dist/esm/models/operations/listapikeys.js.map +1 -0
  289. package/dist/esm/models/operations/listorganizations.d.ts +36 -0
  290. package/dist/esm/models/operations/listorganizations.d.ts.map +1 -0
  291. package/dist/esm/models/operations/listorganizations.js +37 -0
  292. package/dist/esm/models/operations/listorganizations.js.map +1 -0
  293. package/dist/esm/models/operations/revokeapikey.d.ts +55 -0
  294. package/dist/esm/models/operations/revokeapikey.d.ts.map +1 -0
  295. package/dist/esm/models/operations/revokeapikey.js +43 -0
  296. package/dist/esm/models/operations/revokeapikey.js.map +1 -0
  297. package/dist/esm/models/operations/{updatedocumentversion.d.ts → updateversion.d.ts} +14 -22
  298. package/dist/esm/models/operations/updateversion.d.ts.map +1 -0
  299. package/dist/esm/models/operations/{updatedocumentversion.js → updateversion.js} +11 -13
  300. package/dist/esm/models/operations/updateversion.js.map +1 -0
  301. package/dist/esm/sdk/apikeys.d.ts +27 -0
  302. package/dist/esm/sdk/apikeys.d.ts.map +1 -0
  303. package/dist/esm/sdk/apikeys.js +38 -0
  304. package/dist/esm/sdk/apikeys.js.map +1 -0
  305. package/dist/esm/sdk/organizations.d.ts +27 -0
  306. package/dist/esm/sdk/organizations.d.ts.map +1 -0
  307. package/dist/esm/sdk/organizations.js +38 -0
  308. package/dist/esm/sdk/organizations.js.map +1 -0
  309. package/dist/esm/sdk/sdk.d.ts +6 -0
  310. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  311. package/dist/esm/sdk/sdk.js +8 -0
  312. package/dist/esm/sdk/sdk.js.map +1 -1
  313. package/dist/esm/sdk/versions.d.ts +2 -2
  314. package/dist/esm/sdk/versions.d.ts.map +1 -1
  315. package/dist/esm/sdk/versions.js +6 -6
  316. package/dist/esm/sdk/versions.js.map +1 -1
  317. package/examples/{documentsList.example.ts → apiKeysListAPIKeys.example.ts} +4 -7
  318. package/examples/package-lock.json +1 -1
  319. package/jsr.json +1 -1
  320. package/openapi.json +903 -112
  321. package/package.json +1 -1
  322. package/src/funcs/apiKeysCreateAPIKey.ts +175 -0
  323. package/src/funcs/apiKeysListAPIKeys.ts +181 -0
  324. package/src/funcs/apiKeysRevokeAPIKey.ts +181 -0
  325. package/src/funcs/organizationsCreateOrganization.ts +176 -0
  326. package/src/funcs/organizationsGetOrganization.ts +182 -0
  327. package/src/funcs/organizationsListOrganizations.ts +183 -0
  328. package/src/funcs/{versionsGet.ts → versionsGetVersion.ts} +10 -17
  329. package/src/funcs/{versionsUpdate.ts → versionsUpdateVersion.ts} +10 -17
  330. package/src/lib/config.ts +3 -3
  331. package/src/lib/sdks.ts +2 -2
  332. package/src/models/components/apikey.ts +94 -0
  333. package/src/models/components/createapikeyrequest.ts +66 -0
  334. package/src/models/components/createapikeyresponse.ts +59 -0
  335. package/src/models/components/createdocumentresponse.ts +2 -3
  336. package/src/models/components/createorganizationrequest.ts +55 -0
  337. package/src/models/components/createorganizationresponse.ts +37 -0
  338. package/src/models/components/getdocumentresponse.ts +2 -3
  339. package/src/models/components/getorganizationresponse.ts +37 -0
  340. package/src/models/components/index.ts +10 -0
  341. package/src/models/components/listapikeysresponse.ts +47 -0
  342. package/src/models/components/listdocumentpoliciesresponse.ts +2 -2
  343. package/src/models/components/listdocumentsresponse.ts +2 -2
  344. package/src/models/components/listorganizationsresponse.ts +47 -0
  345. package/src/models/components/listversionsresponse.ts +2 -2
  346. package/src/models/components/organization.ts +56 -0
  347. package/src/models/components/revokeapikeyresponse.ts +45 -0
  348. package/src/models/components/updatedocumentresponse.ts +2 -3
  349. package/src/models/operations/createapikey.ts +51 -0
  350. package/src/models/operations/createorganization.ts +53 -0
  351. package/src/models/operations/getorganization.ts +89 -0
  352. package/src/models/operations/{getdocumentversion.ts → getversion.ts} +16 -26
  353. package/src/models/operations/index.ts +8 -2
  354. package/src/models/operations/listapikeys.ts +115 -0
  355. package/src/models/operations/listorganizations.ts +93 -0
  356. package/src/models/operations/revokeapikey.ts +128 -0
  357. package/src/models/operations/{updatedocumentversion.ts → updateversion.ts} +28 -38
  358. package/src/sdk/apikeys.ts +64 -0
  359. package/src/sdk/organizations.ts +64 -0
  360. package/src/sdk/sdk.ts +12 -0
  361. package/src/sdk/versions.ts +10 -10
  362. package/dist/commonjs/funcs/versionsGet.d.ts.map +0 -1
  363. package/dist/commonjs/funcs/versionsUpdate.d.ts.map +0 -1
  364. package/dist/commonjs/funcs/versionsUpdate.js.map +0 -1
  365. package/dist/commonjs/models/operations/getdocumentversion.d.ts +0 -42
  366. package/dist/commonjs/models/operations/getdocumentversion.d.ts.map +0 -1
  367. package/dist/commonjs/models/operations/getdocumentversion.js.map +0 -1
  368. package/dist/commonjs/models/operations/updatedocumentversion.d.ts.map +0 -1
  369. package/dist/commonjs/models/operations/updatedocumentversion.js.map +0 -1
  370. package/dist/esm/funcs/versionsGet.d.ts.map +0 -1
  371. package/dist/esm/funcs/versionsGet.js.map +0 -1
  372. package/dist/esm/funcs/versionsUpdate.d.ts.map +0 -1
  373. package/dist/esm/funcs/versionsUpdate.js.map +0 -1
  374. package/dist/esm/models/operations/getdocumentversion.d.ts +0 -42
  375. package/dist/esm/models/operations/getdocumentversion.d.ts.map +0 -1
  376. package/dist/esm/models/operations/getdocumentversion.js.map +0 -1
  377. package/dist/esm/models/operations/updatedocumentversion.d.ts.map +0 -1
  378. package/dist/esm/models/operations/updatedocumentversion.js.map +0 -1
@@ -32,13 +32,13 @@ import { Result } from "../types/fp.js";
32
32
  * @remarks
33
33
  * Update version title and description.
34
34
  */
35
- export function versionsUpdate(
35
+ export function versionsUpdateVersion(
36
36
  client: FactifyCore,
37
- request: operations.UpdateDocumentVersionRequest,
37
+ request: operations.UpdateVersionRequest,
38
38
  options?: RequestOptions,
39
39
  ): APIPromise<
40
40
  Result<
41
- operations.UpdateDocumentVersionResponse,
41
+ operations.UpdateVersionResponse,
42
42
  | errors.ErrorT
43
43
  | FactifyError
44
44
  | ResponseValidationError
@@ -59,12 +59,12 @@ export function versionsUpdate(
59
59
 
60
60
  async function $do(
61
61
  client: FactifyCore,
62
- request: operations.UpdateDocumentVersionRequest,
62
+ request: operations.UpdateVersionRequest,
63
63
  options?: RequestOptions,
64
64
  ): Promise<
65
65
  [
66
66
  Result<
67
- operations.UpdateDocumentVersionResponse,
67
+ operations.UpdateVersionResponse,
68
68
  | errors.ErrorT
69
69
  | FactifyError
70
70
  | ResponseValidationError
@@ -80,8 +80,7 @@ async function $do(
80
80
  > {
81
81
  const parsed = safeParse(
82
82
  request,
83
- (value) =>
84
- z.parse(operations.UpdateDocumentVersionRequest$outboundSchema, value),
83
+ (value) => z.parse(operations.UpdateVersionRequest$outboundSchema, value),
85
84
  "Input validation failed",
86
85
  );
87
86
  if (!parsed.ok) {
@@ -91,19 +90,13 @@ async function $do(
91
90
  const body = encodeJSON("body", payload.body, { explode: true });
92
91
 
93
92
  const pathParams = {
94
- document_id: encodeSimple("document_id", payload.document_id, {
95
- explode: false,
96
- charEncoding: "percent",
97
- }),
98
93
  version_id: encodeSimple("version_id", payload.version_id, {
99
94
  explode: false,
100
95
  charEncoding: "percent",
101
96
  }),
102
97
  };
103
98
 
104
- const path = pathToFunc(
105
- "/v1beta/documents/{document_id}/versions/{version_id}",
106
- )(pathParams);
99
+ const path = pathToFunc("/v1beta/versions/{version_id}")(pathParams);
107
100
 
108
101
  const headers = new Headers(compactMap({
109
102
  "Content-Type": "application/json",
@@ -117,7 +110,7 @@ async function $do(
117
110
  const context = {
118
111
  options: client._options,
119
112
  baseURL: options?.serverURL ?? client._baseURL ?? "",
120
- operationID: "updateDocumentVersion",
113
+ operationID: "updateVersion",
121
114
  oAuth2Scopes: null,
122
115
 
123
116
  resolvedSecurity: requestSecurity,
@@ -160,7 +153,7 @@ async function $do(
160
153
  };
161
154
 
162
155
  const [result] = await M.match<
163
- operations.UpdateDocumentVersionResponse,
156
+ operations.UpdateVersionResponse,
164
157
  | errors.ErrorT
165
158
  | FactifyError
166
159
  | ResponseValidationError
@@ -171,7 +164,7 @@ async function $do(
171
164
  | UnexpectedClientError
172
165
  | SDKValidationError
173
166
  >(
174
- M.json(200, operations.UpdateDocumentVersionResponse$inboundSchema, {
167
+ M.json(200, operations.UpdateVersionResponse$inboundSchema, {
175
168
  key: "Version",
176
169
  }),
177
170
  M.jsonErr([400, 401, 403, 404], errors.ErrorT$inboundSchema),
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.0.0",
68
- sdkVersion: "0.3.9",
69
- genVersion: "2.791.1",
70
- userAgent: "speakeasy-sdk/typescript 0.3.9 2.791.1 1.0.0 @factify/sdk",
68
+ sdkVersion: "0.3.10",
69
+ genVersion: "2.794.1",
70
+ userAgent: "speakeasy-sdk/typescript 0.3.10 2.794.1 1.0.0 @factify/sdk",
71
71
  } as const;
package/src/lib/sdks.ts CHANGED
@@ -303,9 +303,9 @@ export class ClientSDK {
303
303
  }
304
304
  }
305
305
 
306
- const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
306
+ const jsonLikeContentTypeRE = /^(application|text)\/([^+]+\+)*json.*/;
307
307
  const jsonlLikeContentTypeRE =
308
- /(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
308
+ /^(application|text)\/([^+]+\+)*(jsonl|x-ndjson)\b.*/;
309
309
  async function logRequest(logger: Logger | undefined, req: Request) {
310
310
  if (!logger) {
311
311
  return;
@@ -0,0 +1,94 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * ApiKey represents an authentication credential for programmatic API access.
14
+ */
15
+ export type ApiKey = {
16
+ /**
17
+ * Timestamp when the key was created.
18
+ */
19
+ createdAt: Date;
20
+ /**
21
+ * Expiration timestamp. If set, the key becomes invalid after this time.
22
+ */
23
+ expiresAt?: Date | undefined;
24
+ /**
25
+ * Unique ID for the API key.
26
+ *
27
+ * @remarks
28
+ * Pattern: key_[0-9a-hjkmnp-tv-z]{26}
29
+ */
30
+ id: string;
31
+ /**
32
+ * Whether the key is currently active (not revoked and not expired).
33
+ *
34
+ * @remarks
35
+ * Computed: is_active = (revoked_at == null) && (expires_at == null || expires_at > now())
36
+ */
37
+ isActive: boolean;
38
+ /**
39
+ * Truncated key prefix for identification in UI (e.g., "ffy_prod_01jd4h5...").
40
+ *
41
+ * @remarks
42
+ * Shows the first 16 characters for better uniqueness while maintaining security.
43
+ */
44
+ keyPrefix: string;
45
+ /**
46
+ * Human-readable name for the key (e.g., "Production", "Staging").
47
+ */
48
+ name: string;
49
+ /**
50
+ * ID of the organization this key belongs to.
51
+ *
52
+ * @remarks
53
+ * Pattern: org_[0-9a-hjkmnp-tv-z]{26}
54
+ */
55
+ organizationId: string;
56
+ /**
57
+ * Timestamp when the key was revoked. Null if the key has not been revoked.
58
+ */
59
+ revokedAt?: Date | undefined;
60
+ };
61
+
62
+ /** @internal */
63
+ export const ApiKey$inboundSchema: z.ZodMiniType<ApiKey, unknown> = z.pipe(
64
+ z.object({
65
+ created_at: types.date(),
66
+ expires_at: types.optional(types.date()),
67
+ id: types.string(),
68
+ is_active: types.boolean(),
69
+ key_prefix: types.string(),
70
+ name: types.string(),
71
+ organization_id: types.string(),
72
+ revoked_at: types.optional(types.date()),
73
+ }),
74
+ z.transform((v) => {
75
+ return remap$(v, {
76
+ "created_at": "createdAt",
77
+ "expires_at": "expiresAt",
78
+ "is_active": "isActive",
79
+ "key_prefix": "keyPrefix",
80
+ "organization_id": "organizationId",
81
+ "revoked_at": "revokedAt",
82
+ });
83
+ }),
84
+ );
85
+
86
+ export function apiKeyFromJSON(
87
+ jsonString: string,
88
+ ): SafeParseResult<ApiKey, SDKValidationError> {
89
+ return safeParse(
90
+ jsonString,
91
+ (x) => ApiKey$inboundSchema.parse(JSON.parse(x)),
92
+ `Failed to parse 'ApiKey' from JSON`,
93
+ );
94
+ }
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ /**
9
+ * CreateApiKeyRequest contains the data needed to create a new API key.
10
+ */
11
+ export type CreateApiKeyRequest = {
12
+ /**
13
+ * Expiration timestamp. If not set, the key does not expire.
14
+ *
15
+ * @remarks
16
+ * When set, must be in the future and within 1 year.
17
+ * Security note: Keys without expiration should be rotated periodically.
18
+ * timestamp.gt_now = true
19
+ * timestamp.within = 8760h0m0s
20
+ */
21
+ expiresAt?: Date | undefined;
22
+ /**
23
+ * Human-readable name for the key (e.g., "Production", "Staging").
24
+ */
25
+ name: string;
26
+ /**
27
+ * Organization ID to create the key for.
28
+ *
29
+ * @remarks
30
+ * Pattern: org_[0-9a-hjkmnp-tv-z]{26}
31
+ */
32
+ organizationId: string;
33
+ };
34
+
35
+ /** @internal */
36
+ export type CreateApiKeyRequest$Outbound = {
37
+ expires_at?: string | undefined;
38
+ name: string;
39
+ organization_id: string;
40
+ };
41
+
42
+ /** @internal */
43
+ export const CreateApiKeyRequest$outboundSchema: z.ZodMiniType<
44
+ CreateApiKeyRequest$Outbound,
45
+ CreateApiKeyRequest
46
+ > = z.pipe(
47
+ z.object({
48
+ expiresAt: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
49
+ name: z.string(),
50
+ organizationId: z.string(),
51
+ }),
52
+ z.transform((v) => {
53
+ return remap$(v, {
54
+ expiresAt: "expires_at",
55
+ organizationId: "organization_id",
56
+ });
57
+ }),
58
+ );
59
+
60
+ export function createApiKeyRequestToJSON(
61
+ createApiKeyRequest: CreateApiKeyRequest,
62
+ ): string {
63
+ return JSON.stringify(
64
+ CreateApiKeyRequest$outboundSchema.parse(createApiKeyRequest),
65
+ );
66
+ }
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import { ApiKey, ApiKey$inboundSchema } from "./apikey.js";
12
+
13
+ /**
14
+ * CreateApiKeyResponse contains the newly created API key and its secret.
15
+ */
16
+ export type CreateApiKeyResponse = {
17
+ /**
18
+ * ApiKey represents an authentication credential for programmatic API access.
19
+ */
20
+ apiKey: ApiKey;
21
+ /**
22
+ * The API key secret. This is only returned once and cannot be retrieved later.
23
+ *
24
+ * @remarks
25
+ * Format: ffy_{env}_{base32_uuid7}{base62_random}
26
+ * - env: "prod" or "test"
27
+ * - base32_uuid7: 26 chars (TypeID base32 alphabet: 0-9a-hjkmnp-tv-z)
28
+ * - base62_random: 43 chars (0-9A-Za-z)
29
+ * Store this value securely - it will not be shown again.
30
+ * SECURITY WARNING: This field must NEVER be logged. Handlers must redact secrets from all logs.
31
+ */
32
+ secret: string;
33
+ };
34
+
35
+ /** @internal */
36
+ export const CreateApiKeyResponse$inboundSchema: z.ZodMiniType<
37
+ CreateApiKeyResponse,
38
+ unknown
39
+ > = z.pipe(
40
+ z.object({
41
+ api_key: ApiKey$inboundSchema,
42
+ secret: types.string(),
43
+ }),
44
+ z.transform((v) => {
45
+ return remap$(v, {
46
+ "api_key": "apiKey",
47
+ });
48
+ }),
49
+ );
50
+
51
+ export function createApiKeyResponseFromJSON(
52
+ jsonString: string,
53
+ ): SafeParseResult<CreateApiKeyResponse, SDKValidationError> {
54
+ return safeParse(
55
+ jsonString,
56
+ (x) => CreateApiKeyResponse$inboundSchema.parse(JSON.parse(x)),
57
+ `Failed to parse 'CreateApiKeyResponse' from JSON`,
58
+ );
59
+ }
@@ -5,7 +5,6 @@
5
5
  import * as z from "zod/v4-mini";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
- import * as types from "../../types/primitives.js";
9
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
9
  import { Document, Document$inboundSchema } from "./document.js";
11
10
 
@@ -16,7 +15,7 @@ export type CreateDocumentResponse = {
16
15
  /**
17
16
  * Document represents a Factify document.
18
17
  */
19
- document?: Document | undefined;
18
+ document: Document;
20
19
  };
21
20
 
22
21
  /** @internal */
@@ -24,7 +23,7 @@ export const CreateDocumentResponse$inboundSchema: z.ZodMiniType<
24
23
  CreateDocumentResponse,
25
24
  unknown
26
25
  > = z.object({
27
- document: types.optional(Document$inboundSchema),
26
+ document: Document$inboundSchema,
28
27
  });
29
28
 
30
29
  export function createDocumentResponseFromJSON(
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ /**
9
+ * CreateOrganizationRequest contains the data needed to create a new organization.
10
+ */
11
+ export type CreateOrganizationRequest = {
12
+ /**
13
+ * Human-readable organization name.
14
+ */
15
+ name: string;
16
+ /**
17
+ * Owner user ID. If not provided, the authenticated user becomes the owner.
18
+ *
19
+ * @remarks
20
+ * Authorization: Specifying a different user requires system maintainer role.
21
+ * Required when the caller is a service account (service accounts cannot own organizations).
22
+ * Pattern: user_[0-9a-hjkmnp-tv-z]{26}
23
+ */
24
+ ownerUserId?: string | undefined;
25
+ };
26
+
27
+ /** @internal */
28
+ export type CreateOrganizationRequest$Outbound = {
29
+ name: string;
30
+ owner_user_id?: string | undefined;
31
+ };
32
+
33
+ /** @internal */
34
+ export const CreateOrganizationRequest$outboundSchema: z.ZodMiniType<
35
+ CreateOrganizationRequest$Outbound,
36
+ CreateOrganizationRequest
37
+ > = z.pipe(
38
+ z.object({
39
+ name: z.string(),
40
+ ownerUserId: z.optional(z.string()),
41
+ }),
42
+ z.transform((v) => {
43
+ return remap$(v, {
44
+ ownerUserId: "owner_user_id",
45
+ });
46
+ }),
47
+ );
48
+
49
+ export function createOrganizationRequestToJSON(
50
+ createOrganizationRequest: CreateOrganizationRequest,
51
+ ): string {
52
+ return JSON.stringify(
53
+ CreateOrganizationRequest$outboundSchema.parse(createOrganizationRequest),
54
+ );
55
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import { Organization, Organization$inboundSchema } from "./organization.js";
10
+
11
+ /**
12
+ * CreateOrganizationResponse contains the newly created organization.
13
+ */
14
+ export type CreateOrganizationResponse = {
15
+ /**
16
+ * Organization represents a Factify organization.
17
+ */
18
+ organization: Organization;
19
+ };
20
+
21
+ /** @internal */
22
+ export const CreateOrganizationResponse$inboundSchema: z.ZodMiniType<
23
+ CreateOrganizationResponse,
24
+ unknown
25
+ > = z.object({
26
+ organization: Organization$inboundSchema,
27
+ });
28
+
29
+ export function createOrganizationResponseFromJSON(
30
+ jsonString: string,
31
+ ): SafeParseResult<CreateOrganizationResponse, SDKValidationError> {
32
+ return safeParse(
33
+ jsonString,
34
+ (x) => CreateOrganizationResponse$inboundSchema.parse(JSON.parse(x)),
35
+ `Failed to parse 'CreateOrganizationResponse' from JSON`,
36
+ );
37
+ }
@@ -5,7 +5,6 @@
5
5
  import * as z from "zod/v4-mini";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
- import * as types from "../../types/primitives.js";
9
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
9
  import { Document, Document$inboundSchema } from "./document.js";
11
10
 
@@ -16,7 +15,7 @@ export type GetDocumentResponse = {
16
15
  /**
17
16
  * Document represents a Factify document.
18
17
  */
19
- document?: Document | undefined;
18
+ document: Document;
20
19
  };
21
20
 
22
21
  /** @internal */
@@ -24,7 +23,7 @@ export const GetDocumentResponse$inboundSchema: z.ZodMiniType<
24
23
  GetDocumentResponse,
25
24
  unknown
26
25
  > = z.object({
27
- document: types.optional(Document$inboundSchema),
26
+ document: Document$inboundSchema,
28
27
  });
29
28
 
30
29
  export function getDocumentResponseFromJSON(
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import { Organization, Organization$inboundSchema } from "./organization.js";
10
+
11
+ /**
12
+ * GetOrganizationResponse contains the requested organization.
13
+ */
14
+ export type GetOrganizationResponse = {
15
+ /**
16
+ * Organization represents a Factify organization.
17
+ */
18
+ organization: Organization;
19
+ };
20
+
21
+ /** @internal */
22
+ export const GetOrganizationResponse$inboundSchema: z.ZodMiniType<
23
+ GetOrganizationResponse,
24
+ unknown
25
+ > = z.object({
26
+ organization: Organization$inboundSchema,
27
+ });
28
+
29
+ export function getOrganizationResponseFromJSON(
30
+ jsonString: string,
31
+ ): SafeParseResult<GetOrganizationResponse, SDKValidationError> {
32
+ return safeParse(
33
+ jsonString,
34
+ (x) => GetOrganizationResponse$inboundSchema.parse(JSON.parse(x)),
35
+ `Failed to parse 'GetOrganizationResponse' from JSON`,
36
+ );
37
+ }
@@ -3,8 +3,13 @@
3
3
  */
4
4
 
5
5
  export * from "./accesslevel.js";
6
+ export * from "./apikey.js";
7
+ export * from "./createapikeyrequest.js";
8
+ export * from "./createapikeyresponse.js";
6
9
  export * from "./createdocumentrequest.js";
7
10
  export * from "./createdocumentresponse.js";
11
+ export * from "./createorganizationrequest.js";
12
+ export * from "./createorganizationresponse.js";
8
13
  export * from "./createversionrequest.js";
9
14
  export * from "./document.js";
10
15
  export * from "./documentpolicy.js";
@@ -12,13 +17,18 @@ export * from "./empty.js";
12
17
  export * from "./error.js";
13
18
  export * from "./generateentrypageresponse.js";
14
19
  export * from "./getdocumentresponse.js";
20
+ export * from "./getorganizationresponse.js";
15
21
  export * from "./httpmetadata.js";
22
+ export * from "./listapikeysresponse.js";
16
23
  export * from "./listdocumentpoliciesresponse.js";
17
24
  export * from "./listdocumentsresponse.js";
25
+ export * from "./listorganizationsresponse.js";
18
26
  export * from "./listversionsresponse.js";
27
+ export * from "./organization.js";
19
28
  export * from "./pagination.js";
20
29
  export * from "./policy.js";
21
30
  export * from "./processingstatus.js";
31
+ export * from "./revokeapikeyresponse.js";
22
32
  export * from "./security.js";
23
33
  export * from "./updatedocumentresponse.js";
24
34
  export * from "./user.js";
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import { ApiKey, ApiKey$inboundSchema } from "./apikey.js";
11
+ import { Pagination, Pagination$inboundSchema } from "./pagination.js";
12
+
13
+ /**
14
+ * ListApiKeysResponse contains a page of API keys.
15
+ */
16
+ export type ListApiKeysResponse = {
17
+ /**
18
+ * List of API keys (secrets are never included).
19
+ */
20
+ items?: Array<ApiKey> | undefined;
21
+ /**
22
+ * Pagination contains cursor-based pagination metadata.
23
+ *
24
+ * @remarks
25
+ * Follows Google AIP-158 for pagination field naming.
26
+ */
27
+ pagination: Pagination;
28
+ };
29
+
30
+ /** @internal */
31
+ export const ListApiKeysResponse$inboundSchema: z.ZodMiniType<
32
+ ListApiKeysResponse,
33
+ unknown
34
+ > = z.object({
35
+ items: types.optional(z.array(ApiKey$inboundSchema)),
36
+ pagination: Pagination$inboundSchema,
37
+ });
38
+
39
+ export function listApiKeysResponseFromJSON(
40
+ jsonString: string,
41
+ ): SafeParseResult<ListApiKeysResponse, SDKValidationError> {
42
+ return safeParse(
43
+ jsonString,
44
+ (x) => ListApiKeysResponse$inboundSchema.parse(JSON.parse(x)),
45
+ `Failed to parse 'ListApiKeysResponse' from JSON`,
46
+ );
47
+ }
@@ -27,7 +27,7 @@ export type ListDocumentPoliciesResponse = {
27
27
  * @remarks
28
28
  * Follows Google AIP-158 for pagination field naming.
29
29
  */
30
- pagination?: Pagination | undefined;
30
+ pagination: Pagination;
31
31
  };
32
32
 
33
33
  /** @internal */
@@ -36,7 +36,7 @@ export const ListDocumentPoliciesResponse$inboundSchema: z.ZodMiniType<
36
36
  unknown
37
37
  > = z.object({
38
38
  items: types.optional(z.array(DocumentPolicy$inboundSchema)),
39
- pagination: types.optional(Pagination$inboundSchema),
39
+ pagination: Pagination$inboundSchema,
40
40
  });
41
41
 
42
42
  export function listDocumentPoliciesResponseFromJSON(
@@ -24,7 +24,7 @@ export type ListDocumentsResponse = {
24
24
  * @remarks
25
25
  * Follows Google AIP-158 for pagination field naming.
26
26
  */
27
- pagination?: Pagination | undefined;
27
+ pagination: Pagination;
28
28
  };
29
29
 
30
30
  /** @internal */
@@ -33,7 +33,7 @@ export const ListDocumentsResponse$inboundSchema: z.ZodMiniType<
33
33
  unknown
34
34
  > = z.object({
35
35
  items: types.optional(z.array(Document$inboundSchema)),
36
- pagination: types.optional(Pagination$inboundSchema),
36
+ pagination: Pagination$inboundSchema,
37
37
  });
38
38
 
39
39
  export function listDocumentsResponseFromJSON(
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import { Organization, Organization$inboundSchema } from "./organization.js";
11
+ import { Pagination, Pagination$inboundSchema } from "./pagination.js";
12
+
13
+ /**
14
+ * ListOrganizationsResponse contains a page of organizations.
15
+ */
16
+ export type ListOrganizationsResponse = {
17
+ /**
18
+ * List of organizations.
19
+ */
20
+ items?: Array<Organization> | undefined;
21
+ /**
22
+ * Pagination contains cursor-based pagination metadata.
23
+ *
24
+ * @remarks
25
+ * Follows Google AIP-158 for pagination field naming.
26
+ */
27
+ pagination: Pagination;
28
+ };
29
+
30
+ /** @internal */
31
+ export const ListOrganizationsResponse$inboundSchema: z.ZodMiniType<
32
+ ListOrganizationsResponse,
33
+ unknown
34
+ > = z.object({
35
+ items: types.optional(z.array(Organization$inboundSchema)),
36
+ pagination: Pagination$inboundSchema,
37
+ });
38
+
39
+ export function listOrganizationsResponseFromJSON(
40
+ jsonString: string,
41
+ ): SafeParseResult<ListOrganizationsResponse, SDKValidationError> {
42
+ return safeParse(
43
+ jsonString,
44
+ (x) => ListOrganizationsResponse$inboundSchema.parse(JSON.parse(x)),
45
+ `Failed to parse 'ListOrganizationsResponse' from JSON`,
46
+ );
47
+ }