@functional-systems/lambdadb 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (484) hide show
  1. package/README.md +10 -11
  2. package/RUNTIMES.md +6 -6
  3. package/_speakeasy/.github/action-inputs-config.json +53 -0
  4. package/_speakeasy/.github/action-security-config.json +88 -0
  5. package/dist/commonjs/funcs/collectionsCreate.js +1 -1
  6. package/dist/commonjs/funcs/collectionsCreate.js.map +1 -1
  7. package/dist/commonjs/funcs/collectionsDelete.js +1 -1
  8. package/dist/commonjs/funcs/collectionsDelete.js.map +1 -1
  9. package/dist/commonjs/funcs/collectionsDocsBulkUpsert.js +1 -1
  10. package/dist/commonjs/funcs/collectionsDocsBulkUpsert.js.map +1 -1
  11. package/dist/commonjs/funcs/collectionsDocsDelete.js +1 -1
  12. package/dist/commonjs/funcs/collectionsDocsDelete.js.map +1 -1
  13. package/dist/commonjs/funcs/collectionsDocsFetch.js +1 -1
  14. package/dist/commonjs/funcs/collectionsDocsFetch.js.map +1 -1
  15. package/dist/commonjs/funcs/collectionsDocsGetBulkUpsert.js +1 -1
  16. package/dist/commonjs/funcs/collectionsDocsGetBulkUpsert.js.map +1 -1
  17. package/dist/commonjs/funcs/collectionsDocsListDocs.d.ts +15 -0
  18. package/dist/commonjs/funcs/collectionsDocsListDocs.d.ts.map +1 -0
  19. package/dist/commonjs/funcs/collectionsDocsListDocs.js +135 -0
  20. package/dist/commonjs/funcs/collectionsDocsListDocs.js.map +1 -0
  21. package/dist/commonjs/funcs/collectionsDocsUpdate.js +1 -1
  22. package/dist/commonjs/funcs/collectionsDocsUpdate.js.map +1 -1
  23. package/dist/commonjs/funcs/collectionsDocsUpsert.js +1 -1
  24. package/dist/commonjs/funcs/collectionsDocsUpsert.js.map +1 -1
  25. package/dist/commonjs/funcs/collectionsGet.js +1 -1
  26. package/dist/commonjs/funcs/collectionsGet.js.map +1 -1
  27. package/dist/commonjs/funcs/collectionsList.js +1 -1
  28. package/dist/commonjs/funcs/collectionsList.js.map +1 -1
  29. package/dist/commonjs/funcs/collectionsQuery.js +1 -1
  30. package/dist/commonjs/funcs/collectionsQuery.js.map +1 -1
  31. package/dist/commonjs/funcs/collectionsUpdate.js +1 -1
  32. package/dist/commonjs/funcs/collectionsUpdate.js.map +1 -1
  33. package/dist/commonjs/hooks/hooks.d.ts.map +1 -1
  34. package/dist/commonjs/hooks/hooks.js +0 -2
  35. package/dist/commonjs/hooks/hooks.js.map +1 -1
  36. package/dist/commonjs/lib/base64.d.ts +1 -1
  37. package/dist/commonjs/lib/base64.d.ts.map +1 -1
  38. package/dist/commonjs/lib/base64.js +1 -1
  39. package/dist/commonjs/lib/base64.js.map +1 -1
  40. package/dist/commonjs/lib/config.d.ts +3 -3
  41. package/dist/commonjs/lib/config.js +3 -3
  42. package/dist/commonjs/lib/encodings.d.ts +1 -0
  43. package/dist/commonjs/lib/encodings.d.ts.map +1 -1
  44. package/dist/commonjs/lib/encodings.js +12 -1
  45. package/dist/commonjs/lib/encodings.js.map +1 -1
  46. package/dist/commonjs/lib/env.d.ts +1 -1
  47. package/dist/commonjs/lib/env.d.ts.map +1 -1
  48. package/dist/commonjs/lib/env.js +19 -2
  49. package/dist/commonjs/lib/env.js.map +1 -1
  50. package/dist/commonjs/lib/schemas.d.ts +1 -1
  51. package/dist/commonjs/lib/schemas.d.ts.map +1 -1
  52. package/dist/commonjs/lib/schemas.js +2 -2
  53. package/dist/commonjs/lib/schemas.js.map +1 -1
  54. package/dist/commonjs/lib/sdks.js +2 -2
  55. package/dist/commonjs/lib/sdks.js.map +1 -1
  56. package/dist/commonjs/lib/security.d.ts.map +1 -1
  57. package/dist/commonjs/lib/security.js.map +1 -1
  58. package/dist/commonjs/lib/url.js +1 -1
  59. package/dist/commonjs/lib/url.js.map +1 -1
  60. package/dist/commonjs/models/collectionresponse.d.ts +8 -30
  61. package/dist/commonjs/models/collectionresponse.d.ts.map +1 -1
  62. package/dist/commonjs/models/collectionresponse.js +5 -28
  63. package/dist/commonjs/models/collectionresponse.js.map +1 -1
  64. package/dist/commonjs/models/errors/badrequesterror.d.ts +1 -19
  65. package/dist/commonjs/models/errors/badrequesterror.d.ts.map +1 -1
  66. package/dist/commonjs/models/errors/badrequesterror.js +2 -19
  67. package/dist/commonjs/models/errors/badrequesterror.js.map +1 -1
  68. package/dist/commonjs/models/errors/index.d.ts +1 -0
  69. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  70. package/dist/commonjs/models/errors/index.js +1 -0
  71. package/dist/commonjs/models/errors/index.js.map +1 -1
  72. package/dist/commonjs/models/errors/internalservererror.d.ts +1 -19
  73. package/dist/commonjs/models/errors/internalservererror.d.ts.map +1 -1
  74. package/dist/commonjs/models/errors/internalservererror.js +2 -19
  75. package/dist/commonjs/models/errors/internalservererror.js.map +1 -1
  76. package/dist/commonjs/models/errors/resourcealreadyexistserror.d.ts +1 -19
  77. package/dist/commonjs/models/errors/resourcealreadyexistserror.d.ts.map +1 -1
  78. package/dist/commonjs/models/errors/resourcealreadyexistserror.js +2 -19
  79. package/dist/commonjs/models/errors/resourcealreadyexistserror.js.map +1 -1
  80. package/dist/commonjs/models/errors/resourcenotfounderror.d.ts +1 -19
  81. package/dist/commonjs/models/errors/resourcenotfounderror.d.ts.map +1 -1
  82. package/dist/commonjs/models/errors/resourcenotfounderror.js +2 -19
  83. package/dist/commonjs/models/errors/resourcenotfounderror.js.map +1 -1
  84. package/dist/commonjs/models/errors/responsevalidationerror.js +1 -1
  85. package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -1
  86. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -1
  87. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
  88. package/dist/commonjs/models/errors/sdkvalidationerror.js +1 -1
  89. package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
  90. package/dist/commonjs/models/errors/toomanyrequestserror.d.ts +1 -19
  91. package/dist/commonjs/models/errors/toomanyrequestserror.d.ts.map +1 -1
  92. package/dist/commonjs/models/errors/toomanyrequestserror.js +2 -19
  93. package/dist/commonjs/models/errors/toomanyrequestserror.js.map +1 -1
  94. package/dist/commonjs/models/errors/unauthenticatederror.d.ts +1 -19
  95. package/dist/commonjs/models/errors/unauthenticatederror.d.ts.map +1 -1
  96. package/dist/commonjs/models/errors/unauthenticatederror.js +2 -19
  97. package/dist/commonjs/models/errors/unauthenticatederror.js.map +1 -1
  98. package/dist/commonjs/models/fieldsselectorunion.d.ts +47 -0
  99. package/dist/commonjs/models/fieldsselectorunion.d.ts.map +1 -0
  100. package/dist/commonjs/models/fieldsselectorunion.js +68 -0
  101. package/dist/commonjs/models/fieldsselectorunion.js.map +1 -0
  102. package/dist/commonjs/models/index.d.ts +3 -0
  103. package/dist/commonjs/models/index.d.ts.map +1 -1
  104. package/dist/commonjs/models/index.js +3 -0
  105. package/dist/commonjs/models/index.js.map +1 -1
  106. package/dist/commonjs/models/indexconfigsunion.d.ts +38 -204
  107. package/dist/commonjs/models/indexconfigsunion.d.ts.map +1 -1
  108. package/dist/commonjs/models/indexconfigsunion.js +28 -162
  109. package/dist/commonjs/models/indexconfigsunion.js.map +1 -1
  110. package/dist/commonjs/models/messageresponse.d.ts +1 -20
  111. package/dist/commonjs/models/messageresponse.d.ts.map +1 -1
  112. package/dist/commonjs/models/messageresponse.js +2 -21
  113. package/dist/commonjs/models/messageresponse.js.map +1 -1
  114. package/dist/commonjs/models/operations/bulkupsertdocs.d.ts +1 -33
  115. package/dist/commonjs/models/operations/bulkupsertdocs.d.ts.map +1 -1
  116. package/dist/commonjs/models/operations/bulkupsertdocs.js +2 -46
  117. package/dist/commonjs/models/operations/bulkupsertdocs.js.map +1 -1
  118. package/dist/commonjs/models/operations/createcollection.d.ts +3 -35
  119. package/dist/commonjs/models/operations/createcollection.d.ts.map +1 -1
  120. package/dist/commonjs/models/operations/createcollection.js +3 -45
  121. package/dist/commonjs/models/operations/createcollection.js.map +1 -1
  122. package/dist/commonjs/models/operations/deletecollection.d.ts +1 -18
  123. package/dist/commonjs/models/operations/deletecollection.d.ts.map +1 -1
  124. package/dist/commonjs/models/operations/deletecollection.js +2 -22
  125. package/dist/commonjs/models/operations/deletecollection.js.map +1 -1
  126. package/dist/commonjs/models/operations/deletedocs.d.ts +4 -33
  127. package/dist/commonjs/models/operations/deletedocs.d.ts.map +1 -1
  128. package/dist/commonjs/models/operations/deletedocs.js +4 -47
  129. package/dist/commonjs/models/operations/deletedocs.js.map +1 -1
  130. package/dist/commonjs/models/operations/fetchdocs.d.ts +9 -74
  131. package/dist/commonjs/models/operations/fetchdocs.d.ts.map +1 -1
  132. package/dist/commonjs/models/operations/fetchdocs.js +5 -88
  133. package/dist/commonjs/models/operations/fetchdocs.js.map +1 -1
  134. package/dist/commonjs/models/operations/getbulkupsertdocs.d.ts +4 -74
  135. package/dist/commonjs/models/operations/getbulkupsertdocs.d.ts.map +1 -1
  136. package/dist/commonjs/models/operations/getbulkupsertdocs.js +2 -70
  137. package/dist/commonjs/models/operations/getbulkupsertdocs.js.map +1 -1
  138. package/dist/commonjs/models/operations/getcollection.d.ts +1 -35
  139. package/dist/commonjs/models/operations/getcollection.d.ts.map +1 -1
  140. package/dist/commonjs/models/operations/getcollection.js +2 -40
  141. package/dist/commonjs/models/operations/getcollection.js.map +1 -1
  142. package/dist/commonjs/models/operations/index.d.ts +1 -0
  143. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  144. package/dist/commonjs/models/operations/index.js +1 -0
  145. package/dist/commonjs/models/operations/index.js.map +1 -1
  146. package/dist/commonjs/models/operations/listcollections.d.ts +1 -20
  147. package/dist/commonjs/models/operations/listcollections.d.ts.map +1 -1
  148. package/dist/commonjs/models/operations/listcollections.js +2 -21
  149. package/dist/commonjs/models/operations/listcollections.js.map +1 -1
  150. package/dist/commonjs/models/operations/listdocs.d.ts +43 -0
  151. package/dist/commonjs/models/operations/listdocs.d.ts.map +1 -0
  152. package/dist/commonjs/models/operations/listdocs.js +62 -0
  153. package/dist/commonjs/models/operations/listdocs.js.map +1 -0
  154. package/dist/commonjs/models/operations/querycollection.d.ts +7 -79
  155. package/dist/commonjs/models/operations/querycollection.d.ts.map +1 -1
  156. package/dist/commonjs/models/operations/querycollection.js +5 -94
  157. package/dist/commonjs/models/operations/querycollection.js.map +1 -1
  158. package/dist/commonjs/models/operations/updatecollection.d.ts +1 -50
  159. package/dist/commonjs/models/operations/updatecollection.d.ts.map +1 -1
  160. package/dist/commonjs/models/operations/updatecollection.js +2 -64
  161. package/dist/commonjs/models/operations/updatecollection.js.map +1 -1
  162. package/dist/commonjs/models/operations/updatedocs.d.ts +1 -33
  163. package/dist/commonjs/models/operations/updatedocs.d.ts.map +1 -1
  164. package/dist/commonjs/models/operations/updatedocs.js +2 -46
  165. package/dist/commonjs/models/operations/updatedocs.js.map +1 -1
  166. package/dist/commonjs/models/operations/upsertdocs.d.ts +1 -33
  167. package/dist/commonjs/models/operations/upsertdocs.d.ts.map +1 -1
  168. package/dist/commonjs/models/operations/upsertdocs.js +2 -46
  169. package/dist/commonjs/models/operations/upsertdocs.js.map +1 -1
  170. package/dist/commonjs/models/partitionconfig.d.ts +45 -0
  171. package/dist/commonjs/models/partitionconfig.d.ts.map +1 -0
  172. package/dist/commonjs/models/partitionconfig.js +73 -0
  173. package/dist/commonjs/models/partitionconfig.js.map +1 -0
  174. package/dist/commonjs/models/partitionfilter.d.ts +20 -0
  175. package/dist/commonjs/models/partitionfilter.d.ts.map +1 -0
  176. package/dist/commonjs/models/partitionfilter.js +50 -0
  177. package/dist/commonjs/models/partitionfilter.js.map +1 -0
  178. package/dist/commonjs/models/security.d.ts +1 -18
  179. package/dist/commonjs/models/security.d.ts.map +1 -1
  180. package/dist/commonjs/models/security.js +2 -26
  181. package/dist/commonjs/models/security.js.map +1 -1
  182. package/dist/commonjs/models/status.d.ts +1 -21
  183. package/dist/commonjs/models/status.d.ts.map +1 -1
  184. package/dist/commonjs/models/status.js +2 -15
  185. package/dist/commonjs/models/status.js.map +1 -1
  186. package/dist/commonjs/sdk/docs.d.ts +4 -0
  187. package/dist/commonjs/sdk/docs.d.ts.map +1 -1
  188. package/dist/commonjs/sdk/docs.js +7 -0
  189. package/dist/commonjs/sdk/docs.js.map +1 -1
  190. package/dist/commonjs/types/blobs.d.ts +1 -1
  191. package/dist/commonjs/types/blobs.d.ts.map +1 -1
  192. package/dist/commonjs/types/blobs.js +1 -1
  193. package/dist/commonjs/types/blobs.js.map +1 -1
  194. package/dist/commonjs/types/constdatetime.d.ts +1 -1
  195. package/dist/commonjs/types/constdatetime.d.ts.map +1 -1
  196. package/dist/commonjs/types/constdatetime.js +1 -1
  197. package/dist/commonjs/types/constdatetime.js.map +1 -1
  198. package/dist/commonjs/types/enums.d.ts +8 -11
  199. package/dist/commonjs/types/enums.d.ts.map +1 -1
  200. package/dist/commonjs/types/enums.js +59 -3
  201. package/dist/commonjs/types/enums.js.map +1 -1
  202. package/dist/commonjs/types/index.d.ts +2 -2
  203. package/dist/commonjs/types/index.d.ts.map +1 -1
  204. package/dist/commonjs/types/index.js +16 -3
  205. package/dist/commonjs/types/index.js.map +1 -1
  206. package/dist/commonjs/types/unrecognized.d.ts +16 -0
  207. package/dist/commonjs/types/unrecognized.d.ts.map +1 -0
  208. package/dist/commonjs/types/unrecognized.js +34 -0
  209. package/dist/commonjs/types/unrecognized.js.map +1 -0
  210. package/dist/esm/funcs/collectionsCreate.js +1 -1
  211. package/dist/esm/funcs/collectionsCreate.js.map +1 -1
  212. package/dist/esm/funcs/collectionsDelete.js +1 -1
  213. package/dist/esm/funcs/collectionsDelete.js.map +1 -1
  214. package/dist/esm/funcs/collectionsDocsBulkUpsert.js +1 -1
  215. package/dist/esm/funcs/collectionsDocsBulkUpsert.js.map +1 -1
  216. package/dist/esm/funcs/collectionsDocsDelete.js +1 -1
  217. package/dist/esm/funcs/collectionsDocsDelete.js.map +1 -1
  218. package/dist/esm/funcs/collectionsDocsFetch.js +1 -1
  219. package/dist/esm/funcs/collectionsDocsFetch.js.map +1 -1
  220. package/dist/esm/funcs/collectionsDocsGetBulkUpsert.js +1 -1
  221. package/dist/esm/funcs/collectionsDocsGetBulkUpsert.js.map +1 -1
  222. package/dist/esm/funcs/collectionsDocsListDocs.d.ts +15 -0
  223. package/dist/esm/funcs/collectionsDocsListDocs.d.ts.map +1 -0
  224. package/dist/esm/funcs/collectionsDocsListDocs.js +99 -0
  225. package/dist/esm/funcs/collectionsDocsListDocs.js.map +1 -0
  226. package/dist/esm/funcs/collectionsDocsUpdate.js +1 -1
  227. package/dist/esm/funcs/collectionsDocsUpdate.js.map +1 -1
  228. package/dist/esm/funcs/collectionsDocsUpsert.js +1 -1
  229. package/dist/esm/funcs/collectionsDocsUpsert.js.map +1 -1
  230. package/dist/esm/funcs/collectionsGet.js +1 -1
  231. package/dist/esm/funcs/collectionsGet.js.map +1 -1
  232. package/dist/esm/funcs/collectionsList.js +1 -1
  233. package/dist/esm/funcs/collectionsList.js.map +1 -1
  234. package/dist/esm/funcs/collectionsQuery.js +1 -1
  235. package/dist/esm/funcs/collectionsQuery.js.map +1 -1
  236. package/dist/esm/funcs/collectionsUpdate.js +1 -1
  237. package/dist/esm/funcs/collectionsUpdate.js.map +1 -1
  238. package/dist/esm/hooks/hooks.d.ts.map +1 -1
  239. package/dist/esm/hooks/hooks.js +0 -2
  240. package/dist/esm/hooks/hooks.js.map +1 -1
  241. package/dist/esm/lib/base64.d.ts +1 -1
  242. package/dist/esm/lib/base64.d.ts.map +1 -1
  243. package/dist/esm/lib/base64.js +1 -1
  244. package/dist/esm/lib/base64.js.map +1 -1
  245. package/dist/esm/lib/config.d.ts +3 -3
  246. package/dist/esm/lib/config.js +3 -3
  247. package/dist/esm/lib/encodings.d.ts +1 -0
  248. package/dist/esm/lib/encodings.d.ts.map +1 -1
  249. package/dist/esm/lib/encodings.js +12 -1
  250. package/dist/esm/lib/encodings.js.map +1 -1
  251. package/dist/esm/lib/env.d.ts +1 -1
  252. package/dist/esm/lib/env.d.ts.map +1 -1
  253. package/dist/esm/lib/env.js +19 -2
  254. package/dist/esm/lib/env.js.map +1 -1
  255. package/dist/esm/lib/schemas.d.ts +1 -1
  256. package/dist/esm/lib/schemas.d.ts.map +1 -1
  257. package/dist/esm/lib/schemas.js +1 -1
  258. package/dist/esm/lib/schemas.js.map +1 -1
  259. package/dist/esm/lib/sdks.js +2 -2
  260. package/dist/esm/lib/sdks.js.map +1 -1
  261. package/dist/esm/lib/security.d.ts.map +1 -1
  262. package/dist/esm/lib/security.js.map +1 -1
  263. package/dist/esm/lib/url.js +1 -1
  264. package/dist/esm/lib/url.js.map +1 -1
  265. package/dist/esm/models/collectionresponse.d.ts +8 -30
  266. package/dist/esm/models/collectionresponse.d.ts.map +1 -1
  267. package/dist/esm/models/collectionresponse.js +6 -28
  268. package/dist/esm/models/collectionresponse.js.map +1 -1
  269. package/dist/esm/models/errors/badrequesterror.d.ts +1 -19
  270. package/dist/esm/models/errors/badrequesterror.d.ts.map +1 -1
  271. package/dist/esm/models/errors/badrequesterror.js +1 -18
  272. package/dist/esm/models/errors/badrequesterror.js.map +1 -1
  273. package/dist/esm/models/errors/index.d.ts +1 -0
  274. package/dist/esm/models/errors/index.d.ts.map +1 -1
  275. package/dist/esm/models/errors/index.js +1 -0
  276. package/dist/esm/models/errors/index.js.map +1 -1
  277. package/dist/esm/models/errors/internalservererror.d.ts +1 -19
  278. package/dist/esm/models/errors/internalservererror.d.ts.map +1 -1
  279. package/dist/esm/models/errors/internalservererror.js +1 -18
  280. package/dist/esm/models/errors/internalservererror.js.map +1 -1
  281. package/dist/esm/models/errors/resourcealreadyexistserror.d.ts +1 -19
  282. package/dist/esm/models/errors/resourcealreadyexistserror.d.ts.map +1 -1
  283. package/dist/esm/models/errors/resourcealreadyexistserror.js +1 -18
  284. package/dist/esm/models/errors/resourcealreadyexistserror.js.map +1 -1
  285. package/dist/esm/models/errors/resourcenotfounderror.d.ts +1 -19
  286. package/dist/esm/models/errors/resourcenotfounderror.d.ts.map +1 -1
  287. package/dist/esm/models/errors/resourcenotfounderror.js +1 -18
  288. package/dist/esm/models/errors/resourcenotfounderror.js.map +1 -1
  289. package/dist/esm/models/errors/responsevalidationerror.js +1 -1
  290. package/dist/esm/models/errors/responsevalidationerror.js.map +1 -1
  291. package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -1
  292. package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
  293. package/dist/esm/models/errors/sdkvalidationerror.js +1 -1
  294. package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
  295. package/dist/esm/models/errors/toomanyrequestserror.d.ts +1 -19
  296. package/dist/esm/models/errors/toomanyrequestserror.d.ts.map +1 -1
  297. package/dist/esm/models/errors/toomanyrequestserror.js +1 -18
  298. package/dist/esm/models/errors/toomanyrequestserror.js.map +1 -1
  299. package/dist/esm/models/errors/unauthenticatederror.d.ts +1 -19
  300. package/dist/esm/models/errors/unauthenticatederror.d.ts.map +1 -1
  301. package/dist/esm/models/errors/unauthenticatederror.js +1 -18
  302. package/dist/esm/models/errors/unauthenticatederror.js.map +1 -1
  303. package/dist/esm/models/fieldsselectorunion.d.ts +47 -0
  304. package/dist/esm/models/fieldsselectorunion.d.ts.map +1 -0
  305. package/dist/esm/models/fieldsselectorunion.js +29 -0
  306. package/dist/esm/models/fieldsselectorunion.js.map +1 -0
  307. package/dist/esm/models/index.d.ts +3 -0
  308. package/dist/esm/models/index.d.ts.map +1 -1
  309. package/dist/esm/models/index.js +3 -0
  310. package/dist/esm/models/index.js.map +1 -1
  311. package/dist/esm/models/indexconfigsunion.d.ts +38 -204
  312. package/dist/esm/models/indexconfigsunion.d.ts.map +1 -1
  313. package/dist/esm/models/indexconfigsunion.js +27 -161
  314. package/dist/esm/models/indexconfigsunion.js.map +1 -1
  315. package/dist/esm/models/messageresponse.d.ts +1 -20
  316. package/dist/esm/models/messageresponse.d.ts.map +1 -1
  317. package/dist/esm/models/messageresponse.js +1 -19
  318. package/dist/esm/models/messageresponse.js.map +1 -1
  319. package/dist/esm/models/operations/bulkupsertdocs.d.ts +1 -33
  320. package/dist/esm/models/operations/bulkupsertdocs.d.ts.map +1 -1
  321. package/dist/esm/models/operations/bulkupsertdocs.js +1 -43
  322. package/dist/esm/models/operations/bulkupsertdocs.js.map +1 -1
  323. package/dist/esm/models/operations/createcollection.d.ts +3 -35
  324. package/dist/esm/models/operations/createcollection.d.ts.map +1 -1
  325. package/dist/esm/models/operations/createcollection.js +2 -42
  326. package/dist/esm/models/operations/createcollection.js.map +1 -1
  327. package/dist/esm/models/operations/deletecollection.d.ts +1 -18
  328. package/dist/esm/models/operations/deletecollection.d.ts.map +1 -1
  329. package/dist/esm/models/operations/deletecollection.js +1 -20
  330. package/dist/esm/models/operations/deletecollection.js.map +1 -1
  331. package/dist/esm/models/operations/deletedocs.d.ts +4 -33
  332. package/dist/esm/models/operations/deletedocs.d.ts.map +1 -1
  333. package/dist/esm/models/operations/deletedocs.js +3 -44
  334. package/dist/esm/models/operations/deletedocs.js.map +1 -1
  335. package/dist/esm/models/operations/fetchdocs.d.ts +9 -74
  336. package/dist/esm/models/operations/fetchdocs.d.ts.map +1 -1
  337. package/dist/esm/models/operations/fetchdocs.js +4 -83
  338. package/dist/esm/models/operations/fetchdocs.js.map +1 -1
  339. package/dist/esm/models/operations/getbulkupsertdocs.d.ts +4 -74
  340. package/dist/esm/models/operations/getbulkupsertdocs.d.ts.map +1 -1
  341. package/dist/esm/models/operations/getbulkupsertdocs.js +1 -67
  342. package/dist/esm/models/operations/getbulkupsertdocs.js.map +1 -1
  343. package/dist/esm/models/operations/getcollection.d.ts +1 -35
  344. package/dist/esm/models/operations/getcollection.d.ts.map +1 -1
  345. package/dist/esm/models/operations/getcollection.js +1 -37
  346. package/dist/esm/models/operations/getcollection.js.map +1 -1
  347. package/dist/esm/models/operations/index.d.ts +1 -0
  348. package/dist/esm/models/operations/index.d.ts.map +1 -1
  349. package/dist/esm/models/operations/index.js +1 -0
  350. package/dist/esm/models/operations/index.js.map +1 -1
  351. package/dist/esm/models/operations/listcollections.d.ts +1 -20
  352. package/dist/esm/models/operations/listcollections.d.ts.map +1 -1
  353. package/dist/esm/models/operations/listcollections.js +1 -19
  354. package/dist/esm/models/operations/listcollections.js.map +1 -1
  355. package/dist/esm/models/operations/listdocs.d.ts +43 -0
  356. package/dist/esm/models/operations/listdocs.d.ts.map +1 -0
  357. package/dist/esm/models/operations/listdocs.js +24 -0
  358. package/dist/esm/models/operations/listdocs.js.map +1 -0
  359. package/dist/esm/models/operations/querycollection.d.ts +7 -79
  360. package/dist/esm/models/operations/querycollection.d.ts.map +1 -1
  361. package/dist/esm/models/operations/querycollection.js +4 -89
  362. package/dist/esm/models/operations/querycollection.js.map +1 -1
  363. package/dist/esm/models/operations/updatecollection.d.ts +1 -50
  364. package/dist/esm/models/operations/updatecollection.d.ts.map +1 -1
  365. package/dist/esm/models/operations/updatecollection.js +1 -60
  366. package/dist/esm/models/operations/updatecollection.js.map +1 -1
  367. package/dist/esm/models/operations/updatedocs.d.ts +1 -33
  368. package/dist/esm/models/operations/updatedocs.d.ts.map +1 -1
  369. package/dist/esm/models/operations/updatedocs.js +1 -43
  370. package/dist/esm/models/operations/updatedocs.js.map +1 -1
  371. package/dist/esm/models/operations/upsertdocs.d.ts +1 -33
  372. package/dist/esm/models/operations/upsertdocs.d.ts.map +1 -1
  373. package/dist/esm/models/operations/upsertdocs.js +1 -43
  374. package/dist/esm/models/operations/upsertdocs.js.map +1 -1
  375. package/dist/esm/models/partitionconfig.d.ts +45 -0
  376. package/dist/esm/models/partitionconfig.d.ts.map +1 -0
  377. package/dist/esm/models/partitionconfig.js +35 -0
  378. package/dist/esm/models/partitionconfig.js.map +1 -0
  379. package/dist/esm/models/partitionfilter.d.ts +20 -0
  380. package/dist/esm/models/partitionfilter.d.ts.map +1 -0
  381. package/dist/esm/models/partitionfilter.js +13 -0
  382. package/dist/esm/models/partitionfilter.js.map +1 -0
  383. package/dist/esm/models/security.d.ts +1 -18
  384. package/dist/esm/models/security.d.ts.map +1 -1
  385. package/dist/esm/models/security.js +1 -24
  386. package/dist/esm/models/security.js.map +1 -1
  387. package/dist/esm/models/status.d.ts +1 -21
  388. package/dist/esm/models/status.d.ts.map +1 -1
  389. package/dist/esm/models/status.js +1 -14
  390. package/dist/esm/models/status.js.map +1 -1
  391. package/dist/esm/sdk/docs.d.ts +4 -0
  392. package/dist/esm/sdk/docs.d.ts.map +1 -1
  393. package/dist/esm/sdk/docs.js +7 -0
  394. package/dist/esm/sdk/docs.js.map +1 -1
  395. package/dist/esm/types/blobs.d.ts +1 -1
  396. package/dist/esm/types/blobs.d.ts.map +1 -1
  397. package/dist/esm/types/blobs.js +1 -1
  398. package/dist/esm/types/blobs.js.map +1 -1
  399. package/dist/esm/types/constdatetime.d.ts +1 -1
  400. package/dist/esm/types/constdatetime.d.ts.map +1 -1
  401. package/dist/esm/types/constdatetime.js +1 -1
  402. package/dist/esm/types/constdatetime.js.map +1 -1
  403. package/dist/esm/types/enums.d.ts +8 -11
  404. package/dist/esm/types/enums.d.ts.map +1 -1
  405. package/dist/esm/types/enums.js +22 -2
  406. package/dist/esm/types/enums.js.map +1 -1
  407. package/dist/esm/types/index.d.ts +2 -2
  408. package/dist/esm/types/index.d.ts.map +1 -1
  409. package/dist/esm/types/index.js +1 -1
  410. package/dist/esm/types/index.js.map +1 -1
  411. package/dist/esm/types/unrecognized.d.ts +16 -0
  412. package/dist/esm/types/unrecognized.d.ts.map +1 -0
  413. package/dist/esm/types/unrecognized.js +31 -0
  414. package/dist/esm/types/unrecognized.js.map +1 -0
  415. package/examples/collectionsList.example.ts +2 -2
  416. package/examples/package-lock.json +3 -3
  417. package/jsr.json +1 -1
  418. package/package.json +3 -3
  419. package/src/funcs/collectionsCreate.ts +1 -1
  420. package/src/funcs/collectionsDelete.ts +1 -1
  421. package/src/funcs/collectionsDocsBulkUpsert.ts +1 -1
  422. package/src/funcs/collectionsDocsDelete.ts +1 -1
  423. package/src/funcs/collectionsDocsFetch.ts +1 -1
  424. package/src/funcs/collectionsDocsGetBulkUpsert.ts +1 -1
  425. package/src/funcs/collectionsDocsListDocs.ts +204 -0
  426. package/src/funcs/collectionsDocsUpdate.ts +1 -1
  427. package/src/funcs/collectionsDocsUpsert.ts +1 -1
  428. package/src/funcs/collectionsGet.ts +1 -1
  429. package/src/funcs/collectionsList.ts +1 -1
  430. package/src/funcs/collectionsQuery.ts +1 -1
  431. package/src/funcs/collectionsUpdate.ts +1 -1
  432. package/src/hooks/hooks.ts +0 -3
  433. package/src/lib/base64.ts +1 -1
  434. package/src/lib/config.ts +3 -3
  435. package/src/lib/encodings.ts +17 -3
  436. package/src/lib/env.ts +21 -5
  437. package/src/lib/schemas.ts +1 -1
  438. package/src/lib/sdks.ts +2 -2
  439. package/src/lib/security.ts +4 -1
  440. package/src/lib/url.ts +1 -1
  441. package/src/models/collectionresponse.ts +12 -56
  442. package/src/models/errors/badrequesterror.ts +1 -30
  443. package/src/models/errors/index.ts +1 -0
  444. package/src/models/errors/internalservererror.ts +1 -30
  445. package/src/models/errors/resourcealreadyexistserror.ts +1 -30
  446. package/src/models/errors/resourcenotfounderror.ts +1 -30
  447. package/src/models/errors/responsevalidationerror.ts +1 -1
  448. package/src/models/errors/sdkvalidationerror.ts +1 -1
  449. package/src/models/errors/toomanyrequestserror.ts +1 -30
  450. package/src/models/errors/unauthenticatederror.ts +1 -30
  451. package/src/models/fieldsselectorunion.ts +99 -0
  452. package/src/models/index.ts +3 -0
  453. package/src/models/indexconfigsunion.ts +76 -216
  454. package/src/models/messageresponse.ts +1 -34
  455. package/src/models/operations/bulkupsertdocs.ts +1 -73
  456. package/src/models/operations/createcollection.ts +4 -73
  457. package/src/models/operations/deletecollection.ts +1 -36
  458. package/src/models/operations/deletedocs.ts +5 -74
  459. package/src/models/operations/fetchdocs.ts +11 -144
  460. package/src/models/operations/getbulkupsertdocs.ts +4 -109
  461. package/src/models/operations/getcollection.ts +1 -68
  462. package/src/models/operations/index.ts +1 -0
  463. package/src/models/operations/listcollections.ts +1 -36
  464. package/src/models/operations/listdocs.ts +80 -0
  465. package/src/models/operations/querycollection.ts +9 -159
  466. package/src/models/operations/updatecollection.ts +1 -105
  467. package/src/models/operations/updatedocs.ts +1 -73
  468. package/src/models/operations/upsertdocs.ts +1 -73
  469. package/src/models/partitionconfig.ts +85 -0
  470. package/src/models/partitionfilter.ts +38 -0
  471. package/src/models/security.ts +1 -40
  472. package/src/models/status.ts +1 -16
  473. package/src/sdk/docs.ts +15 -0
  474. package/src/types/blobs.ts +7 -6
  475. package/src/types/constdatetime.ts +1 -1
  476. package/src/types/enums.ts +38 -9
  477. package/src/types/index.ts +2 -2
  478. package/src/types/unrecognized.ts +35 -0
  479. package/tsconfig.json +1 -2
  480. package/.devcontainer/README.md +0 -30
  481. package/docs/sdks/collections/README.md +0 -551
  482. package/docs/sdks/docs/README.md +0 -594
  483. package/docs/sdks/lambdadb/README.md +0 -7
  484. package/examples/README.md +0 -31
@@ -2,23 +2,18 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../lib/schemas.js";
7
7
  import { ClosedEnum } from "../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../types/fp.js";
9
9
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
10
10
 
11
- export const TypeObject = {
12
- Object: "object",
13
- } as const;
14
- export type TypeObject = ClosedEnum<typeof TypeObject>;
15
-
16
11
  export type IndexConfigsObject = {
17
- type: TypeObject;
12
+ type: "object";
18
13
  objectIndexConfigs: { [k: string]: any };
19
14
  };
20
15
 
21
- export const Type = {
16
+ export const TypeEnum = {
22
17
  Keyword: "keyword",
23
18
  Long: "long",
24
19
  Double: "double",
@@ -26,20 +21,15 @@ export const Type = {
26
21
  Boolean: "boolean",
27
22
  SparseVector: "sparseVector",
28
23
  } as const;
29
- export type Type = ClosedEnum<typeof Type>;
24
+ export type TypeEnum = ClosedEnum<typeof TypeEnum>;
30
25
 
31
26
  /**
32
27
  * Types that do not need additional parameters.
33
28
  */
34
29
  export type IndexConfigs = {
35
- type: Type;
30
+ type: TypeEnum;
36
31
  };
37
32
 
38
- export const TypeVector = {
39
- Vector: "vector",
40
- } as const;
41
- export type TypeVector = ClosedEnum<typeof TypeVector>;
42
-
43
33
  /**
44
34
  * Vector similarity metric.
45
35
  */
@@ -55,7 +45,7 @@ export const Similarity = {
55
45
  export type Similarity = ClosedEnum<typeof Similarity>;
56
46
 
57
47
  export type IndexConfigsVector = {
58
- type: TypeVector;
48
+ type: "vector";
59
49
  /**
60
50
  * Vector dimensions.
61
51
  */
@@ -66,11 +56,6 @@ export type IndexConfigsVector = {
66
56
  similarity?: Similarity | undefined;
67
57
  };
68
58
 
69
- export const TypeText = {
70
- Text: "text",
71
- } as const;
72
- export type TypeText = ClosedEnum<typeof TypeText>;
73
-
74
59
  export const Analyzer = {
75
60
  Standard: "standard",
76
61
  Korean: "korean",
@@ -80,7 +65,7 @@ export const Analyzer = {
80
65
  export type Analyzer = ClosedEnum<typeof Analyzer>;
81
66
 
82
67
  export type IndexConfigsText = {
83
- type: TypeText;
68
+ type: "text";
84
69
  /**
85
70
  * Analyzers.
86
71
  */
@@ -88,29 +73,15 @@ export type IndexConfigsText = {
88
73
  };
89
74
 
90
75
  export type IndexConfigsUnion =
91
- | IndexConfigsVector
92
- | IndexConfigsObject
93
76
  | IndexConfigsText
94
- | IndexConfigs;
95
-
96
- /** @internal */
97
- export const TypeObject$inboundSchema: z.ZodNativeEnum<typeof TypeObject> = z
98
- .nativeEnum(TypeObject);
99
-
100
- /** @internal */
101
- export const TypeObject$outboundSchema: z.ZodNativeEnum<typeof TypeObject> =
102
- TypeObject$inboundSchema;
103
-
104
- /**
105
- * @internal
106
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
107
- */
108
- export namespace TypeObject$ {
109
- /** @deprecated use `TypeObject$inboundSchema` instead. */
110
- export const inboundSchema = TypeObject$inboundSchema;
111
- /** @deprecated use `TypeObject$outboundSchema` instead. */
112
- export const outboundSchema = TypeObject$outboundSchema;
113
- }
77
+ | IndexConfigsVector
78
+ | (IndexConfigs & { type: "keyword" })
79
+ | (IndexConfigs & { type: "long" })
80
+ | (IndexConfigs & { type: "double" })
81
+ | (IndexConfigs & { type: "datetime" })
82
+ | (IndexConfigs & { type: "boolean" })
83
+ | (IndexConfigs & { type: "sparseVector" })
84
+ | IndexConfigsObject;
114
85
 
115
86
  /** @internal */
116
87
  export const IndexConfigsObject$inboundSchema: z.ZodType<
@@ -118,13 +89,12 @@ export const IndexConfigsObject$inboundSchema: z.ZodType<
118
89
  z.ZodTypeDef,
119
90
  unknown
120
91
  > = z.object({
121
- type: TypeObject$inboundSchema,
92
+ type: z.literal("object"),
122
93
  objectIndexConfigs: z.record(z.any()),
123
94
  });
124
-
125
95
  /** @internal */
126
96
  export type IndexConfigsObject$Outbound = {
127
- type: string;
97
+ type: "object";
128
98
  objectIndexConfigs: { [k: string]: any };
129
99
  };
130
100
 
@@ -134,23 +104,10 @@ export const IndexConfigsObject$outboundSchema: z.ZodType<
134
104
  z.ZodTypeDef,
135
105
  IndexConfigsObject
136
106
  > = z.object({
137
- type: TypeObject$outboundSchema,
107
+ type: z.literal("object"),
138
108
  objectIndexConfigs: z.record(z.any()),
139
109
  });
140
110
 
141
- /**
142
- * @internal
143
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
144
- */
145
- export namespace IndexConfigsObject$ {
146
- /** @deprecated use `IndexConfigsObject$inboundSchema` instead. */
147
- export const inboundSchema = IndexConfigsObject$inboundSchema;
148
- /** @deprecated use `IndexConfigsObject$outboundSchema` instead. */
149
- export const outboundSchema = IndexConfigsObject$outboundSchema;
150
- /** @deprecated use `IndexConfigsObject$Outbound` instead. */
151
- export type Outbound = IndexConfigsObject$Outbound;
152
- }
153
-
154
111
  export function indexConfigsObjectToJSON(
155
112
  indexConfigsObject: IndexConfigsObject,
156
113
  ): string {
@@ -158,7 +115,6 @@ export function indexConfigsObjectToJSON(
158
115
  IndexConfigsObject$outboundSchema.parse(indexConfigsObject),
159
116
  );
160
117
  }
161
-
162
118
  export function indexConfigsObjectFromJSON(
163
119
  jsonString: string,
164
120
  ): SafeParseResult<IndexConfigsObject, SDKValidationError> {
@@ -170,24 +126,11 @@ export function indexConfigsObjectFromJSON(
170
126
  }
171
127
 
172
128
  /** @internal */
173
- export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
174
- Type,
175
- );
176
-
129
+ export const TypeEnum$inboundSchema: z.ZodNativeEnum<typeof TypeEnum> = z
130
+ .nativeEnum(TypeEnum);
177
131
  /** @internal */
178
- export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
179
- Type$inboundSchema;
180
-
181
- /**
182
- * @internal
183
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
184
- */
185
- export namespace Type$ {
186
- /** @deprecated use `Type$inboundSchema` instead. */
187
- export const inboundSchema = Type$inboundSchema;
188
- /** @deprecated use `Type$outboundSchema` instead. */
189
- export const outboundSchema = Type$outboundSchema;
190
- }
132
+ export const TypeEnum$outboundSchema: z.ZodNativeEnum<typeof TypeEnum> =
133
+ TypeEnum$inboundSchema;
191
134
 
192
135
  /** @internal */
193
136
  export const IndexConfigs$inboundSchema: z.ZodType<
@@ -195,9 +138,8 @@ export const IndexConfigs$inboundSchema: z.ZodType<
195
138
  z.ZodTypeDef,
196
139
  unknown
197
140
  > = z.object({
198
- type: Type$inboundSchema,
141
+ type: TypeEnum$inboundSchema,
199
142
  });
200
-
201
143
  /** @internal */
202
144
  export type IndexConfigs$Outbound = {
203
145
  type: string;
@@ -209,26 +151,12 @@ export const IndexConfigs$outboundSchema: z.ZodType<
209
151
  z.ZodTypeDef,
210
152
  IndexConfigs
211
153
  > = z.object({
212
- type: Type$outboundSchema,
154
+ type: TypeEnum$outboundSchema,
213
155
  });
214
156
 
215
- /**
216
- * @internal
217
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
218
- */
219
- export namespace IndexConfigs$ {
220
- /** @deprecated use `IndexConfigs$inboundSchema` instead. */
221
- export const inboundSchema = IndexConfigs$inboundSchema;
222
- /** @deprecated use `IndexConfigs$outboundSchema` instead. */
223
- export const outboundSchema = IndexConfigs$outboundSchema;
224
- /** @deprecated use `IndexConfigs$Outbound` instead. */
225
- export type Outbound = IndexConfigs$Outbound;
226
- }
227
-
228
157
  export function indexConfigsToJSON(indexConfigs: IndexConfigs): string {
229
158
  return JSON.stringify(IndexConfigs$outboundSchema.parse(indexConfigs));
230
159
  }
231
-
232
160
  export function indexConfigsFromJSON(
233
161
  jsonString: string,
234
162
  ): SafeParseResult<IndexConfigs, SDKValidationError> {
@@ -239,58 +167,26 @@ export function indexConfigsFromJSON(
239
167
  );
240
168
  }
241
169
 
242
- /** @internal */
243
- export const TypeVector$inboundSchema: z.ZodNativeEnum<typeof TypeVector> = z
244
- .nativeEnum(TypeVector);
245
-
246
- /** @internal */
247
- export const TypeVector$outboundSchema: z.ZodNativeEnum<typeof TypeVector> =
248
- TypeVector$inboundSchema;
249
-
250
- /**
251
- * @internal
252
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
253
- */
254
- export namespace TypeVector$ {
255
- /** @deprecated use `TypeVector$inboundSchema` instead. */
256
- export const inboundSchema = TypeVector$inboundSchema;
257
- /** @deprecated use `TypeVector$outboundSchema` instead. */
258
- export const outboundSchema = TypeVector$outboundSchema;
259
- }
260
-
261
170
  /** @internal */
262
171
  export const Similarity$inboundSchema: z.ZodNativeEnum<typeof Similarity> = z
263
172
  .nativeEnum(Similarity);
264
-
265
173
  /** @internal */
266
174
  export const Similarity$outboundSchema: z.ZodNativeEnum<typeof Similarity> =
267
175
  Similarity$inboundSchema;
268
176
 
269
- /**
270
- * @internal
271
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
272
- */
273
- export namespace Similarity$ {
274
- /** @deprecated use `Similarity$inboundSchema` instead. */
275
- export const inboundSchema = Similarity$inboundSchema;
276
- /** @deprecated use `Similarity$outboundSchema` instead. */
277
- export const outboundSchema = Similarity$outboundSchema;
278
- }
279
-
280
177
  /** @internal */
281
178
  export const IndexConfigsVector$inboundSchema: z.ZodType<
282
179
  IndexConfigsVector,
283
180
  z.ZodTypeDef,
284
181
  unknown
285
182
  > = z.object({
286
- type: TypeVector$inboundSchema,
183
+ type: z.literal("vector"),
287
184
  dimensions: z.number().int(),
288
185
  similarity: Similarity$inboundSchema.default("cosine"),
289
186
  });
290
-
291
187
  /** @internal */
292
188
  export type IndexConfigsVector$Outbound = {
293
- type: string;
189
+ type: "vector";
294
190
  dimensions: number;
295
191
  similarity: string;
296
192
  };
@@ -301,24 +197,11 @@ export const IndexConfigsVector$outboundSchema: z.ZodType<
301
197
  z.ZodTypeDef,
302
198
  IndexConfigsVector
303
199
  > = z.object({
304
- type: TypeVector$outboundSchema,
200
+ type: z.literal("vector"),
305
201
  dimensions: z.number().int(),
306
202
  similarity: Similarity$outboundSchema.default("cosine"),
307
203
  });
308
204
 
309
- /**
310
- * @internal
311
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
312
- */
313
- export namespace IndexConfigsVector$ {
314
- /** @deprecated use `IndexConfigsVector$inboundSchema` instead. */
315
- export const inboundSchema = IndexConfigsVector$inboundSchema;
316
- /** @deprecated use `IndexConfigsVector$outboundSchema` instead. */
317
- export const outboundSchema = IndexConfigsVector$outboundSchema;
318
- /** @deprecated use `IndexConfigsVector$Outbound` instead. */
319
- export type Outbound = IndexConfigsVector$Outbound;
320
- }
321
-
322
205
  export function indexConfigsVectorToJSON(
323
206
  indexConfigsVector: IndexConfigsVector,
324
207
  ): string {
@@ -326,7 +209,6 @@ export function indexConfigsVectorToJSON(
326
209
  IndexConfigsVector$outboundSchema.parse(indexConfigsVector),
327
210
  );
328
211
  }
329
-
330
212
  export function indexConfigsVectorFromJSON(
331
213
  jsonString: string,
332
214
  ): SafeParseResult<IndexConfigsVector, SDKValidationError> {
@@ -337,57 +219,25 @@ export function indexConfigsVectorFromJSON(
337
219
  );
338
220
  }
339
221
 
340
- /** @internal */
341
- export const TypeText$inboundSchema: z.ZodNativeEnum<typeof TypeText> = z
342
- .nativeEnum(TypeText);
343
-
344
- /** @internal */
345
- export const TypeText$outboundSchema: z.ZodNativeEnum<typeof TypeText> =
346
- TypeText$inboundSchema;
347
-
348
- /**
349
- * @internal
350
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
351
- */
352
- export namespace TypeText$ {
353
- /** @deprecated use `TypeText$inboundSchema` instead. */
354
- export const inboundSchema = TypeText$inboundSchema;
355
- /** @deprecated use `TypeText$outboundSchema` instead. */
356
- export const outboundSchema = TypeText$outboundSchema;
357
- }
358
-
359
222
  /** @internal */
360
223
  export const Analyzer$inboundSchema: z.ZodNativeEnum<typeof Analyzer> = z
361
224
  .nativeEnum(Analyzer);
362
-
363
225
  /** @internal */
364
226
  export const Analyzer$outboundSchema: z.ZodNativeEnum<typeof Analyzer> =
365
227
  Analyzer$inboundSchema;
366
228
 
367
- /**
368
- * @internal
369
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
370
- */
371
- export namespace Analyzer$ {
372
- /** @deprecated use `Analyzer$inboundSchema` instead. */
373
- export const inboundSchema = Analyzer$inboundSchema;
374
- /** @deprecated use `Analyzer$outboundSchema` instead. */
375
- export const outboundSchema = Analyzer$outboundSchema;
376
- }
377
-
378
229
  /** @internal */
379
230
  export const IndexConfigsText$inboundSchema: z.ZodType<
380
231
  IndexConfigsText,
381
232
  z.ZodTypeDef,
382
233
  unknown
383
234
  > = z.object({
384
- type: TypeText$inboundSchema,
235
+ type: z.literal("text"),
385
236
  analyzers: z.array(Analyzer$inboundSchema).optional(),
386
237
  });
387
-
388
238
  /** @internal */
389
239
  export type IndexConfigsText$Outbound = {
390
- type: string;
240
+ type: "text";
391
241
  analyzers?: Array<string> | undefined;
392
242
  };
393
243
 
@@ -397,23 +247,10 @@ export const IndexConfigsText$outboundSchema: z.ZodType<
397
247
  z.ZodTypeDef,
398
248
  IndexConfigsText
399
249
  > = z.object({
400
- type: TypeText$outboundSchema,
250
+ type: z.literal("text"),
401
251
  analyzers: z.array(Analyzer$outboundSchema).optional(),
402
252
  });
403
253
 
404
- /**
405
- * @internal
406
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
407
- */
408
- export namespace IndexConfigsText$ {
409
- /** @deprecated use `IndexConfigsText$inboundSchema` instead. */
410
- export const inboundSchema = IndexConfigsText$inboundSchema;
411
- /** @deprecated use `IndexConfigsText$outboundSchema` instead. */
412
- export const outboundSchema = IndexConfigsText$outboundSchema;
413
- /** @deprecated use `IndexConfigsText$Outbound` instead. */
414
- export type Outbound = IndexConfigsText$Outbound;
415
- }
416
-
417
254
  export function indexConfigsTextToJSON(
418
255
  indexConfigsText: IndexConfigsText,
419
256
  ): string {
@@ -421,7 +258,6 @@ export function indexConfigsTextToJSON(
421
258
  IndexConfigsText$outboundSchema.parse(indexConfigsText),
422
259
  );
423
260
  }
424
-
425
261
  export function indexConfigsTextFromJSON(
426
262
  jsonString: string,
427
263
  ): SafeParseResult<IndexConfigsText, SDKValidationError> {
@@ -438,18 +274,39 @@ export const IndexConfigsUnion$inboundSchema: z.ZodType<
438
274
  z.ZodTypeDef,
439
275
  unknown
440
276
  > = z.union([
277
+ z.lazy(() => IndexConfigsText$inboundSchema),
441
278
  z.lazy(() => IndexConfigsVector$inboundSchema),
279
+ z.lazy(() => IndexConfigs$inboundSchema).and(
280
+ z.object({ type: z.literal("keyword") }),
281
+ ),
282
+ z.lazy(() => IndexConfigs$inboundSchema).and(
283
+ z.object({ type: z.literal("long") }),
284
+ ),
285
+ z.lazy(() => IndexConfigs$inboundSchema).and(
286
+ z.object({ type: z.literal("double") }),
287
+ ),
288
+ z.lazy(() => IndexConfigs$inboundSchema).and(
289
+ z.object({ type: z.literal("datetime") }),
290
+ ),
291
+ z.lazy(() => IndexConfigs$inboundSchema).and(
292
+ z.object({ type: z.literal("boolean") }),
293
+ ),
294
+ z.lazy(() => IndexConfigs$inboundSchema).and(
295
+ z.object({ type: z.literal("sparseVector") }),
296
+ ),
442
297
  z.lazy(() => IndexConfigsObject$inboundSchema),
443
- z.lazy(() => IndexConfigsText$inboundSchema),
444
- z.lazy(() => IndexConfigs$inboundSchema),
445
298
  ]);
446
-
447
299
  /** @internal */
448
300
  export type IndexConfigsUnion$Outbound =
449
- | IndexConfigsVector$Outbound
450
- | IndexConfigsObject$Outbound
451
301
  | IndexConfigsText$Outbound
452
- | IndexConfigs$Outbound;
302
+ | IndexConfigsVector$Outbound
303
+ | (IndexConfigs$Outbound & { type: "keyword" })
304
+ | (IndexConfigs$Outbound & { type: "long" })
305
+ | (IndexConfigs$Outbound & { type: "double" })
306
+ | (IndexConfigs$Outbound & { type: "datetime" })
307
+ | (IndexConfigs$Outbound & { type: "boolean" })
308
+ | (IndexConfigs$Outbound & { type: "sparseVector" })
309
+ | IndexConfigsObject$Outbound;
453
310
 
454
311
  /** @internal */
455
312
  export const IndexConfigsUnion$outboundSchema: z.ZodType<
@@ -457,25 +314,29 @@ export const IndexConfigsUnion$outboundSchema: z.ZodType<
457
314
  z.ZodTypeDef,
458
315
  IndexConfigsUnion
459
316
  > = z.union([
317
+ z.lazy(() => IndexConfigsText$outboundSchema),
460
318
  z.lazy(() => IndexConfigsVector$outboundSchema),
319
+ z.lazy(() => IndexConfigs$outboundSchema).and(
320
+ z.object({ type: z.literal("keyword") }),
321
+ ),
322
+ z.lazy(() => IndexConfigs$outboundSchema).and(
323
+ z.object({ type: z.literal("long") }),
324
+ ),
325
+ z.lazy(() => IndexConfigs$outboundSchema).and(
326
+ z.object({ type: z.literal("double") }),
327
+ ),
328
+ z.lazy(() => IndexConfigs$outboundSchema).and(
329
+ z.object({ type: z.literal("datetime") }),
330
+ ),
331
+ z.lazy(() => IndexConfigs$outboundSchema).and(
332
+ z.object({ type: z.literal("boolean") }),
333
+ ),
334
+ z.lazy(() => IndexConfigs$outboundSchema).and(
335
+ z.object({ type: z.literal("sparseVector") }),
336
+ ),
461
337
  z.lazy(() => IndexConfigsObject$outboundSchema),
462
- z.lazy(() => IndexConfigsText$outboundSchema),
463
- z.lazy(() => IndexConfigs$outboundSchema),
464
338
  ]);
465
339
 
466
- /**
467
- * @internal
468
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
469
- */
470
- export namespace IndexConfigsUnion$ {
471
- /** @deprecated use `IndexConfigsUnion$inboundSchema` instead. */
472
- export const inboundSchema = IndexConfigsUnion$inboundSchema;
473
- /** @deprecated use `IndexConfigsUnion$outboundSchema` instead. */
474
- export const outboundSchema = IndexConfigsUnion$outboundSchema;
475
- /** @deprecated use `IndexConfigsUnion$Outbound` instead. */
476
- export type Outbound = IndexConfigsUnion$Outbound;
477
- }
478
-
479
340
  export function indexConfigsUnionToJSON(
480
341
  indexConfigsUnion: IndexConfigsUnion,
481
342
  ): string {
@@ -483,7 +344,6 @@ export function indexConfigsUnionToJSON(
483
344
  IndexConfigsUnion$outboundSchema.parse(indexConfigsUnion),
484
345
  );
485
346
  }
486
-
487
347
  export function indexConfigsUnionFromJSON(
488
348
  jsonString: string,
489
349
  ): SafeParseResult<IndexConfigsUnion, SDKValidationError> {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../types/fp.js";
8
8
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
@@ -20,39 +20,6 @@ export const MessageResponse$inboundSchema: z.ZodType<
20
20
  message: z.string(),
21
21
  });
22
22
 
23
- /** @internal */
24
- export type MessageResponse$Outbound = {
25
- message: string;
26
- };
27
-
28
- /** @internal */
29
- export const MessageResponse$outboundSchema: z.ZodType<
30
- MessageResponse$Outbound,
31
- z.ZodTypeDef,
32
- MessageResponse
33
- > = z.object({
34
- message: z.string(),
35
- });
36
-
37
- /**
38
- * @internal
39
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
40
- */
41
- export namespace MessageResponse$ {
42
- /** @deprecated use `MessageResponse$inboundSchema` instead. */
43
- export const inboundSchema = MessageResponse$inboundSchema;
44
- /** @deprecated use `MessageResponse$outboundSchema` instead. */
45
- export const outboundSchema = MessageResponse$outboundSchema;
46
- /** @deprecated use `MessageResponse$Outbound` instead. */
47
- export type Outbound = MessageResponse$Outbound;
48
- }
49
-
50
- export function messageResponseToJSON(
51
- messageResponse: MessageResponse,
52
- ): string {
53
- return JSON.stringify(MessageResponse$outboundSchema.parse(messageResponse));
54
- }
55
-
56
23
  export function messageResponseFromJSON(
57
24
  jsonString: string,
58
25
  ): SafeParseResult<MessageResponse, SDKValidationError> {
@@ -2,11 +2,8 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
7
 
11
8
  export type BulkUpsertDocsRequestBody = {
12
9
  /**
@@ -23,15 +20,6 @@ export type BulkUpsertDocsRequest = {
23
20
  requestBody: BulkUpsertDocsRequestBody;
24
21
  };
25
22
 
26
- /** @internal */
27
- export const BulkUpsertDocsRequestBody$inboundSchema: z.ZodType<
28
- BulkUpsertDocsRequestBody,
29
- z.ZodTypeDef,
30
- unknown
31
- > = z.object({
32
- objectKey: z.string(),
33
- });
34
-
35
23
  /** @internal */
36
24
  export type BulkUpsertDocsRequestBody$Outbound = {
37
25
  objectKey: string;
@@ -46,19 +34,6 @@ export const BulkUpsertDocsRequestBody$outboundSchema: z.ZodType<
46
34
  objectKey: z.string(),
47
35
  });
48
36
 
49
- /**
50
- * @internal
51
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
- */
53
- export namespace BulkUpsertDocsRequestBody$ {
54
- /** @deprecated use `BulkUpsertDocsRequestBody$inboundSchema` instead. */
55
- export const inboundSchema = BulkUpsertDocsRequestBody$inboundSchema;
56
- /** @deprecated use `BulkUpsertDocsRequestBody$outboundSchema` instead. */
57
- export const outboundSchema = BulkUpsertDocsRequestBody$outboundSchema;
58
- /** @deprecated use `BulkUpsertDocsRequestBody$Outbound` instead. */
59
- export type Outbound = BulkUpsertDocsRequestBody$Outbound;
60
- }
61
-
62
37
  export function bulkUpsertDocsRequestBodyToJSON(
63
38
  bulkUpsertDocsRequestBody: BulkUpsertDocsRequestBody,
64
39
  ): string {
@@ -67,30 +42,6 @@ export function bulkUpsertDocsRequestBodyToJSON(
67
42
  );
68
43
  }
69
44
 
70
- export function bulkUpsertDocsRequestBodyFromJSON(
71
- jsonString: string,
72
- ): SafeParseResult<BulkUpsertDocsRequestBody, SDKValidationError> {
73
- return safeParse(
74
- jsonString,
75
- (x) => BulkUpsertDocsRequestBody$inboundSchema.parse(JSON.parse(x)),
76
- `Failed to parse 'BulkUpsertDocsRequestBody' from JSON`,
77
- );
78
- }
79
-
80
- /** @internal */
81
- export const BulkUpsertDocsRequest$inboundSchema: z.ZodType<
82
- BulkUpsertDocsRequest,
83
- z.ZodTypeDef,
84
- unknown
85
- > = z.object({
86
- collectionName: z.string(),
87
- RequestBody: z.lazy(() => BulkUpsertDocsRequestBody$inboundSchema),
88
- }).transform((v) => {
89
- return remap$(v, {
90
- "RequestBody": "requestBody",
91
- });
92
- });
93
-
94
45
  /** @internal */
95
46
  export type BulkUpsertDocsRequest$Outbound = {
96
47
  collectionName: string;
@@ -111,19 +62,6 @@ export const BulkUpsertDocsRequest$outboundSchema: z.ZodType<
111
62
  });
112
63
  });
113
64
 
114
- /**
115
- * @internal
116
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
117
- */
118
- export namespace BulkUpsertDocsRequest$ {
119
- /** @deprecated use `BulkUpsertDocsRequest$inboundSchema` instead. */
120
- export const inboundSchema = BulkUpsertDocsRequest$inboundSchema;
121
- /** @deprecated use `BulkUpsertDocsRequest$outboundSchema` instead. */
122
- export const outboundSchema = BulkUpsertDocsRequest$outboundSchema;
123
- /** @deprecated use `BulkUpsertDocsRequest$Outbound` instead. */
124
- export type Outbound = BulkUpsertDocsRequest$Outbound;
125
- }
126
-
127
65
  export function bulkUpsertDocsRequestToJSON(
128
66
  bulkUpsertDocsRequest: BulkUpsertDocsRequest,
129
67
  ): string {
@@ -131,13 +69,3 @@ export function bulkUpsertDocsRequestToJSON(
131
69
  BulkUpsertDocsRequest$outboundSchema.parse(bulkUpsertDocsRequest),
132
70
  );
133
71
  }
134
-
135
- export function bulkUpsertDocsRequestFromJSON(
136
- jsonString: string,
137
- ): SafeParseResult<BulkUpsertDocsRequest, SDKValidationError> {
138
- return safeParse(
139
- jsonString,
140
- (x) => BulkUpsertDocsRequest$inboundSchema.parse(JSON.parse(x)),
141
- `Failed to parse 'BulkUpsertDocsRequest' from JSON`,
142
- );
143
- }