@s2-dev/streamstore 0.2.5

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 (467) hide show
  1. package/.devcontainer/README.md +35 -0
  2. package/.devcontainer/devcontainer.json +45 -0
  3. package/FUNCTIONS.md +106 -0
  4. package/README.md +559 -0
  5. package/RUNTIMES.md +48 -0
  6. package/core.d.ts +10 -0
  7. package/core.d.ts.map +1 -0
  8. package/core.js +17 -0
  9. package/core.js.map +1 -0
  10. package/docs/sdks/account/README.md +406 -0
  11. package/docs/sdks/basin/README.md +415 -0
  12. package/docs/sdks/s2/README.md +7 -0
  13. package/docs/sdks/stream/README.md +267 -0
  14. package/funcs/accountCreateBasin.d.ts +14 -0
  15. package/funcs/accountCreateBasin.d.ts.map +1 -0
  16. package/funcs/accountCreateBasin.js +118 -0
  17. package/funcs/accountCreateBasin.js.map +1 -0
  18. package/funcs/accountDeleteBasin.d.ts +13 -0
  19. package/funcs/accountDeleteBasin.d.ts.map +1 -0
  20. package/funcs/accountDeleteBasin.js +114 -0
  21. package/funcs/accountDeleteBasin.js.map +1 -0
  22. package/funcs/accountGetBasinConfig.d.ts +14 -0
  23. package/funcs/accountGetBasinConfig.d.ts.map +1 -0
  24. package/funcs/accountGetBasinConfig.js +114 -0
  25. package/funcs/accountGetBasinConfig.js.map +1 -0
  26. package/funcs/accountListBasins.d.ts +16 -0
  27. package/funcs/accountListBasins.d.ts.map +1 -0
  28. package/funcs/accountListBasins.js +130 -0
  29. package/funcs/accountListBasins.js.map +1 -0
  30. package/funcs/accountReconfigureBasin.d.ts +14 -0
  31. package/funcs/accountReconfigureBasin.d.ts.map +1 -0
  32. package/funcs/accountReconfigureBasin.js +115 -0
  33. package/funcs/accountReconfigureBasin.js.map +1 -0
  34. package/funcs/basinCreateStream.d.ts +14 -0
  35. package/funcs/basinCreateStream.d.ts.map +1 -0
  36. package/funcs/basinCreateStream.js +123 -0
  37. package/funcs/basinCreateStream.js.map +1 -0
  38. package/funcs/basinDeleteStream.d.ts +13 -0
  39. package/funcs/basinDeleteStream.d.ts.map +1 -0
  40. package/funcs/basinDeleteStream.js +119 -0
  41. package/funcs/basinDeleteStream.js.map +1 -0
  42. package/funcs/basinGetStreamConfig.d.ts +14 -0
  43. package/funcs/basinGetStreamConfig.d.ts.map +1 -0
  44. package/funcs/basinGetStreamConfig.js +119 -0
  45. package/funcs/basinGetStreamConfig.js.map +1 -0
  46. package/funcs/basinListStreams.d.ts +16 -0
  47. package/funcs/basinListStreams.d.ts.map +1 -0
  48. package/funcs/basinListStreams.js +137 -0
  49. package/funcs/basinListStreams.js.map +1 -0
  50. package/funcs/basinReconfigureStream.d.ts +14 -0
  51. package/funcs/basinReconfigureStream.d.ts.map +1 -0
  52. package/funcs/basinReconfigureStream.js +120 -0
  53. package/funcs/basinReconfigureStream.js.map +1 -0
  54. package/funcs/streamAppend.d.ts +14 -0
  55. package/funcs/streamAppend.d.ts.map +1 -0
  56. package/funcs/streamAppend.js +124 -0
  57. package/funcs/streamAppend.js.map +1 -0
  58. package/funcs/streamCheckTail.d.ts +14 -0
  59. package/funcs/streamCheckTail.d.ts.map +1 -0
  60. package/funcs/streamCheckTail.js +119 -0
  61. package/funcs/streamCheckTail.js.map +1 -0
  62. package/funcs/streamRead.d.ts +19 -0
  63. package/funcs/streamRead.d.ts.map +1 -0
  64. package/funcs/streamRead.js +134 -0
  65. package/funcs/streamRead.js.map +1 -0
  66. package/hooks/hooks.d.ts +24 -0
  67. package/hooks/hooks.d.ts.map +1 -0
  68. package/hooks/hooks.js +86 -0
  69. package/hooks/hooks.js.map +1 -0
  70. package/hooks/index.d.ts +3 -0
  71. package/hooks/index.d.ts.map +1 -0
  72. package/hooks/index.js +22 -0
  73. package/hooks/index.js.map +1 -0
  74. package/hooks/registration.d.ts +3 -0
  75. package/hooks/registration.d.ts.map +1 -0
  76. package/hooks/registration.js +15 -0
  77. package/hooks/registration.js.map +1 -0
  78. package/hooks/types.d.ts +77 -0
  79. package/hooks/types.d.ts.map +1 -0
  80. package/hooks/types.js +6 -0
  81. package/hooks/types.js.map +1 -0
  82. package/index.d.ts +4 -0
  83. package/index.d.ts.map +1 -0
  84. package/index.js +46 -0
  85. package/index.js.map +1 -0
  86. package/jsr.json +28 -0
  87. package/lib/base64.d.ts +10 -0
  88. package/lib/base64.d.ts.map +1 -0
  89. package/lib/base64.js +71 -0
  90. package/lib/base64.js.map +1 -0
  91. package/lib/config.d.ts +34 -0
  92. package/lib/config.d.ts.map +1 -0
  93. package/lib/config.js +35 -0
  94. package/lib/config.js.map +1 -0
  95. package/lib/dlv.d.ts +14 -0
  96. package/lib/dlv.d.ts.map +1 -0
  97. package/lib/dlv.js +49 -0
  98. package/lib/dlv.js.map +1 -0
  99. package/lib/encodings.d.ts +52 -0
  100. package/lib/encodings.d.ts.map +1 -0
  101. package/lib/encodings.js +368 -0
  102. package/lib/encodings.js.map +1 -0
  103. package/lib/env.d.ts +15 -0
  104. package/lib/env.d.ts.map +1 -0
  105. package/lib/env.js +65 -0
  106. package/lib/env.js.map +1 -0
  107. package/lib/event-streams.d.ts +17 -0
  108. package/lib/event-streams.d.ts.map +1 -0
  109. package/lib/event-streams.js +220 -0
  110. package/lib/event-streams.js.map +1 -0
  111. package/lib/files.d.ts +8 -0
  112. package/lib/files.d.ts.map +1 -0
  113. package/lib/files.js +36 -0
  114. package/lib/files.js.map +1 -0
  115. package/lib/http.d.ts +67 -0
  116. package/lib/http.d.ts.map +1 -0
  117. package/lib/http.js +217 -0
  118. package/lib/http.js.map +1 -0
  119. package/lib/is-plain-object.d.ts +2 -0
  120. package/lib/is-plain-object.d.ts.map +1 -0
  121. package/lib/is-plain-object.js +41 -0
  122. package/lib/is-plain-object.js.map +1 -0
  123. package/lib/logger.d.ts +6 -0
  124. package/lib/logger.d.ts.map +1 -0
  125. package/lib/logger.js +6 -0
  126. package/lib/logger.js.map +1 -0
  127. package/lib/matchers.d.ts +64 -0
  128. package/lib/matchers.d.ts.map +1 -0
  129. package/lib/matchers.js +207 -0
  130. package/lib/matchers.js.map +1 -0
  131. package/lib/primitives.d.ts +23 -0
  132. package/lib/primitives.d.ts.map +1 -0
  133. package/lib/primitives.js +104 -0
  134. package/lib/primitives.js.map +1 -0
  135. package/lib/retries.d.ts +38 -0
  136. package/lib/retries.d.ts.map +1 -0
  137. package/lib/retries.js +154 -0
  138. package/lib/retries.js.map +1 -0
  139. package/lib/schemas.d.ts +19 -0
  140. package/lib/schemas.d.ts.map +1 -0
  141. package/lib/schemas.js +62 -0
  142. package/lib/schemas.js.map +1 -0
  143. package/lib/sdks.d.ts +60 -0
  144. package/lib/sdks.d.ts.map +1 -0
  145. package/lib/sdks.js +280 -0
  146. package/lib/sdks.js.map +1 -0
  147. package/lib/security.d.ts +82 -0
  148. package/lib/security.d.ts.map +1 -0
  149. package/lib/security.js +139 -0
  150. package/lib/security.js.map +1 -0
  151. package/lib/url.d.ts +5 -0
  152. package/lib/url.d.ts.map +1 -0
  153. package/lib/url.js +25 -0
  154. package/lib/url.js.map +1 -0
  155. package/models/components/appendinput.d.ts +49 -0
  156. package/models/components/appendinput.d.ts.map +1 -0
  157. package/models/components/appendinput.js +85 -0
  158. package/models/components/appendinput.js.map +1 -0
  159. package/models/components/appendoutput.d.ts +51 -0
  160. package/models/components/appendoutput.d.ts.map +1 -0
  161. package/models/components/appendoutput.js +86 -0
  162. package/models/components/appendoutput.js.map +1 -0
  163. package/models/components/appendrecord.d.ts +40 -0
  164. package/models/components/appendrecord.d.ts.map +1 -0
  165. package/models/components/appendrecord.js +71 -0
  166. package/models/components/appendrecord.js.map +1 -0
  167. package/models/components/assignment.d.ts +90 -0
  168. package/models/components/assignment.d.ts.map +1 -0
  169. package/models/components/assignment.js +127 -0
  170. package/models/components/assignment.js.map +1 -0
  171. package/models/components/basinconfig.d.ts +33 -0
  172. package/models/components/basinconfig.d.ts.map +1 -0
  173. package/models/components/basinconfig.js +79 -0
  174. package/models/components/basinconfig.js.map +1 -0
  175. package/models/components/basininfo.d.ts +51 -0
  176. package/models/components/basininfo.d.ts.map +1 -0
  177. package/models/components/basininfo.js +76 -0
  178. package/models/components/basininfo.js.map +1 -0
  179. package/models/components/basinstate.d.ts +40 -0
  180. package/models/components/basinstate.d.ts.map +1 -0
  181. package/models/components/basinstate.js +66 -0
  182. package/models/components/basinstate.js.map +1 -0
  183. package/models/components/checktailresponse.d.ts +35 -0
  184. package/models/components/checktailresponse.d.ts.map +1 -0
  185. package/models/components/checktailresponse.js +78 -0
  186. package/models/components/checktailresponse.js.map +1 -0
  187. package/models/components/createbasinrequest.d.ts +36 -0
  188. package/models/components/createbasinrequest.d.ts.map +1 -0
  189. package/models/components/createbasinrequest.js +73 -0
  190. package/models/components/createbasinrequest.js.map +1 -0
  191. package/models/components/createstreamrequest.d.ts +33 -0
  192. package/models/components/createstreamrequest.d.ts.map +1 -0
  193. package/models/components/createstreamrequest.js +70 -0
  194. package/models/components/createstreamrequest.js.map +1 -0
  195. package/models/components/header.d.ts +43 -0
  196. package/models/components/header.d.ts.map +1 -0
  197. package/models/components/header.js +72 -0
  198. package/models/components/header.js.map +1 -0
  199. package/models/components/index.d.ts +23 -0
  200. package/models/components/index.d.ts.map +1 -0
  201. package/models/components/index.js +42 -0
  202. package/models/components/index.js.map +1 -0
  203. package/models/components/listbasinsresponse.d.ts +41 -0
  204. package/models/components/listbasinsresponse.d.ts.map +1 -0
  205. package/models/components/listbasinsresponse.js +81 -0
  206. package/models/components/listbasinsresponse.js.map +1 -0
  207. package/models/components/liststreamsresponse.d.ts +41 -0
  208. package/models/components/liststreamsresponse.d.ts.map +1 -0
  209. package/models/components/liststreamsresponse.js +81 -0
  210. package/models/components/liststreamsresponse.js.map +1 -0
  211. package/models/components/output.d.ts +140 -0
  212. package/models/components/output.d.ts.map +1 -0
  213. package/models/components/output.js +174 -0
  214. package/models/components/output.js.map +1 -0
  215. package/models/components/readresponse.d.ts +83 -0
  216. package/models/components/readresponse.d.ts.map +1 -0
  217. package/models/components/readresponse.js +141 -0
  218. package/models/components/readresponse.js.map +1 -0
  219. package/models/components/retentionpolicy.d.ts +68 -0
  220. package/models/components/retentionpolicy.d.ts.map +1 -0
  221. package/models/components/retentionpolicy.js +94 -0
  222. package/models/components/retentionpolicy.js.map +1 -0
  223. package/models/components/security.d.ts +29 -0
  224. package/models/components/security.d.ts.map +1 -0
  225. package/models/components/security.js +69 -0
  226. package/models/components/security.js.map +1 -0
  227. package/models/components/sequencedrecord.d.ts +46 -0
  228. package/models/components/sequencedrecord.d.ts.map +1 -0
  229. package/models/components/sequencedrecord.js +83 -0
  230. package/models/components/sequencedrecord.js.map +1 -0
  231. package/models/components/sequencedrecordbatch.d.ts +36 -0
  232. package/models/components/sequencedrecordbatch.d.ts.map +1 -0
  233. package/models/components/sequencedrecordbatch.js +70 -0
  234. package/models/components/sequencedrecordbatch.js.map +1 -0
  235. package/models/components/storageclass.d.ts +37 -0
  236. package/models/components/storageclass.d.ts.map +1 -0
  237. package/models/components/storageclass.js +64 -0
  238. package/models/components/storageclass.js.map +1 -0
  239. package/models/components/streamconfig.d.ts +39 -0
  240. package/models/components/streamconfig.d.ts.map +1 -0
  241. package/models/components/streamconfig.js +84 -0
  242. package/models/components/streamconfig.js.map +1 -0
  243. package/models/components/streaminfo.d.ts +45 -0
  244. package/models/components/streaminfo.d.ts.map +1 -0
  245. package/models/components/streaminfo.js +84 -0
  246. package/models/components/streaminfo.js.map +1 -0
  247. package/models/errors/apierror.d.ts +8 -0
  248. package/models/errors/apierror.d.ts.map +1 -0
  249. package/models/errors/apierror.js +21 -0
  250. package/models/errors/apierror.js.map +1 -0
  251. package/models/errors/errorresponse.d.ts +31 -0
  252. package/models/errors/errorresponse.d.ts.map +1 -0
  253. package/models/errors/errorresponse.js +77 -0
  254. package/models/errors/errorresponse.js.map +1 -0
  255. package/models/errors/httpclienterrors.d.ts +44 -0
  256. package/models/errors/httpclienterrors.d.ts.map +1 -0
  257. package/models/errors/httpclienterrors.js +78 -0
  258. package/models/errors/httpclienterrors.js.map +1 -0
  259. package/models/errors/index.d.ts +5 -0
  260. package/models/errors/index.d.ts.map +1 -0
  261. package/models/errors/index.js +24 -0
  262. package/models/errors/index.js.map +1 -0
  263. package/models/errors/sdkvalidationerror.d.ts +20 -0
  264. package/models/errors/sdkvalidationerror.d.ts.map +1 -0
  265. package/models/errors/sdkvalidationerror.js +115 -0
  266. package/models/errors/sdkvalidationerror.js.map +1 -0
  267. package/models/operations/append.d.ts +97 -0
  268. package/models/operations/append.d.ts.map +1 -0
  269. package/models/operations/append.js +134 -0
  270. package/models/operations/append.js.map +1 -0
  271. package/models/operations/checktail.d.ts +33 -0
  272. package/models/operations/checktail.d.ts.map +1 -0
  273. package/models/operations/checktail.js +75 -0
  274. package/models/operations/checktail.js.map +1 -0
  275. package/models/operations/createbasin.d.ts +37 -0
  276. package/models/operations/createbasin.d.ts.map +1 -0
  277. package/models/operations/createbasin.js +85 -0
  278. package/models/operations/createbasin.js.map +1 -0
  279. package/models/operations/createstream.d.ts +38 -0
  280. package/models/operations/createstream.d.ts.map +1 -0
  281. package/models/operations/createstream.js +91 -0
  282. package/models/operations/createstream.js.map +1 -0
  283. package/models/operations/deletebasin.d.ts +32 -0
  284. package/models/operations/deletebasin.d.ts.map +1 -0
  285. package/models/operations/deletebasin.js +69 -0
  286. package/models/operations/deletebasin.js.map +1 -0
  287. package/models/operations/deletestream.d.ts +33 -0
  288. package/models/operations/deletestream.d.ts.map +1 -0
  289. package/models/operations/deletestream.js +75 -0
  290. package/models/operations/deletestream.js.map +1 -0
  291. package/models/operations/getbasinconfig.d.ts +32 -0
  292. package/models/operations/getbasinconfig.d.ts.map +1 -0
  293. package/models/operations/getbasinconfig.js +69 -0
  294. package/models/operations/getbasinconfig.js.map +1 -0
  295. package/models/operations/getstreamconfig.d.ts +33 -0
  296. package/models/operations/getstreamconfig.d.ts.map +1 -0
  297. package/models/operations/getstreamconfig.js +75 -0
  298. package/models/operations/getstreamconfig.js.map +1 -0
  299. package/models/operations/index.d.ts +14 -0
  300. package/models/operations/index.d.ts.map +1 -0
  301. package/models/operations/index.js +33 -0
  302. package/models/operations/index.js.map +1 -0
  303. package/models/operations/listbasins.d.ts +72 -0
  304. package/models/operations/listbasins.d.ts.map +1 -0
  305. package/models/operations/listbasins.js +118 -0
  306. package/models/operations/listbasins.js.map +1 -0
  307. package/models/operations/liststreams.d.ts +73 -0
  308. package/models/operations/liststreams.d.ts.map +1 -0
  309. package/models/operations/liststreams.js +124 -0
  310. package/models/operations/liststreams.js.map +1 -0
  311. package/models/operations/read.d.ts +163 -0
  312. package/models/operations/read.d.ts.map +1 -0
  313. package/models/operations/read.js +200 -0
  314. package/models/operations/read.js.map +1 -0
  315. package/models/operations/reconfigurebasin.d.ts +35 -0
  316. package/models/operations/reconfigurebasin.d.ts.map +1 -0
  317. package/models/operations/reconfigurebasin.js +81 -0
  318. package/models/operations/reconfigurebasin.js.map +1 -0
  319. package/models/operations/reconfigurestream.d.ts +36 -0
  320. package/models/operations/reconfigurestream.d.ts.map +1 -0
  321. package/models/operations/reconfigurestream.js +87 -0
  322. package/models/operations/reconfigurestream.js.map +1 -0
  323. package/package.json +32 -0
  324. package/sdk/account.d.ts +29 -0
  325. package/sdk/account.d.ts.map +1 -0
  326. package/sdk/account.js +48 -0
  327. package/sdk/account.js.map +1 -0
  328. package/sdk/basin.d.ts +29 -0
  329. package/sdk/basin.d.ts.map +1 -0
  330. package/sdk/basin.js +48 -0
  331. package/sdk/basin.js.map +1 -0
  332. package/sdk/index.d.ts +2 -0
  333. package/sdk/index.d.ts.map +1 -0
  334. package/sdk/index.js +21 -0
  335. package/sdk/index.js.map +1 -0
  336. package/sdk/sdk.d.ts +13 -0
  337. package/sdk/sdk.d.ts.map +1 -0
  338. package/sdk/sdk.js +23 -0
  339. package/sdk/sdk.js.map +1 -0
  340. package/sdk/stream.d.ts +22 -0
  341. package/sdk/stream.d.ts.map +1 -0
  342. package/sdk/stream.js +35 -0
  343. package/sdk/stream.js.map +1 -0
  344. package/src/core.ts +13 -0
  345. package/src/funcs/accountCreateBasin.ts +149 -0
  346. package/src/funcs/accountDeleteBasin.ts +141 -0
  347. package/src/funcs/accountGetBasinConfig.ts +141 -0
  348. package/src/funcs/accountListBasins.ts +188 -0
  349. package/src/funcs/accountReconfigureBasin.ts +142 -0
  350. package/src/funcs/basinCreateStream.ts +155 -0
  351. package/src/funcs/basinDeleteStream.ts +147 -0
  352. package/src/funcs/basinGetStreamConfig.ts +147 -0
  353. package/src/funcs/basinListStreams.ts +196 -0
  354. package/src/funcs/basinReconfigureStream.ts +148 -0
  355. package/src/funcs/streamAppend.ts +152 -0
  356. package/src/funcs/streamCheckTail.ts +147 -0
  357. package/src/funcs/streamRead.ts +163 -0
  358. package/src/hooks/hooks.ts +132 -0
  359. package/src/hooks/index.ts +6 -0
  360. package/src/hooks/registration.ts +14 -0
  361. package/src/hooks/types.ts +109 -0
  362. package/src/index.ts +7 -0
  363. package/src/lib/base64.ts +37 -0
  364. package/src/lib/config.ts +60 -0
  365. package/src/lib/dlv.ts +53 -0
  366. package/src/lib/encodings.ts +483 -0
  367. package/src/lib/env.ts +41 -0
  368. package/src/lib/event-streams.ts +264 -0
  369. package/src/lib/files.ts +40 -0
  370. package/src/lib/http.ts +323 -0
  371. package/src/lib/is-plain-object.ts +43 -0
  372. package/src/lib/logger.ts +9 -0
  373. package/src/lib/matchers.ts +325 -0
  374. package/src/lib/primitives.ts +136 -0
  375. package/src/lib/retries.ts +219 -0
  376. package/src/lib/schemas.ts +91 -0
  377. package/src/lib/sdks.ts +400 -0
  378. package/src/lib/security.ts +254 -0
  379. package/src/lib/url.ts +33 -0
  380. package/src/models/components/appendinput.ts +102 -0
  381. package/src/models/components/appendoutput.ts +101 -0
  382. package/src/models/components/appendrecord.ts +75 -0
  383. package/src/models/components/assignment.ts +177 -0
  384. package/src/models/components/basinconfig.ts +80 -0
  385. package/src/models/components/basininfo.ts +94 -0
  386. package/src/models/components/basinstate.ts +39 -0
  387. package/src/models/components/checktailresponse.ts +81 -0
  388. package/src/models/components/createbasinrequest.ts +85 -0
  389. package/src/models/components/createstreamrequest.ts +75 -0
  390. package/src/models/components/header.ts +75 -0
  391. package/src/models/components/index.ts +26 -0
  392. package/src/models/components/listbasinsresponse.ts +94 -0
  393. package/src/models/components/liststreamsresponse.ts +94 -0
  394. package/src/models/components/output.ts +277 -0
  395. package/src/models/components/readresponse.ts +197 -0
  396. package/src/models/components/retentionpolicy.ts +122 -0
  397. package/src/models/components/security.ts +62 -0
  398. package/src/models/components/sequencedrecord.ts +99 -0
  399. package/src/models/components/sequencedrecordbatch.ts +78 -0
  400. package/src/models/components/storageclass.ts +38 -0
  401. package/src/models/components/streamconfig.ts +94 -0
  402. package/src/models/components/streaminfo.ts +93 -0
  403. package/src/models/errors/apierror.ts +27 -0
  404. package/src/models/errors/errorresponse.ts +69 -0
  405. package/src/models/errors/httpclienterrors.ts +62 -0
  406. package/src/models/errors/index.ts +8 -0
  407. package/src/models/errors/sdkvalidationerror.ts +97 -0
  408. package/src/models/operations/append.ts +176 -0
  409. package/src/models/operations/checktail.ts +76 -0
  410. package/src/models/operations/createbasin.ts +89 -0
  411. package/src/models/operations/createstream.ts +96 -0
  412. package/src/models/operations/deletebasin.ts +69 -0
  413. package/src/models/operations/deletestream.ts +76 -0
  414. package/src/models/operations/getbasinconfig.ts +69 -0
  415. package/src/models/operations/getstreamconfig.ts +76 -0
  416. package/src/models/operations/index.ts +17 -0
  417. package/src/models/operations/listbasins.ts +163 -0
  418. package/src/models/operations/liststreams.ts +170 -0
  419. package/src/models/operations/read.ts +309 -0
  420. package/src/models/operations/reconfigurebasin.ts +83 -0
  421. package/src/models/operations/reconfigurestream.ts +90 -0
  422. package/src/sdk/account.ts +86 -0
  423. package/src/sdk/basin.ts +86 -0
  424. package/src/sdk/index.ts +5 -0
  425. package/src/sdk/sdk.ts +25 -0
  426. package/src/sdk/stream.ts +57 -0
  427. package/src/types/blobs.ts +31 -0
  428. package/src/types/constdatetime.ts +15 -0
  429. package/src/types/enums.ts +16 -0
  430. package/src/types/fp.ts +50 -0
  431. package/src/types/index.ts +11 -0
  432. package/src/types/operations.ts +105 -0
  433. package/src/types/rfcdate.ts +54 -0
  434. package/src/types/streams.ts +21 -0
  435. package/tsconfig.json +41 -0
  436. package/types/blobs.d.ts +4 -0
  437. package/types/blobs.d.ts.map +1 -0
  438. package/types/blobs.js +62 -0
  439. package/types/blobs.js.map +1 -0
  440. package/types/constdatetime.d.ts +3 -0
  441. package/types/constdatetime.d.ts.map +1 -0
  442. package/types/constdatetime.js +46 -0
  443. package/types/constdatetime.js.map +1 -0
  444. package/types/enums.d.ts +12 -0
  445. package/types/enums.d.ts.map +1 -0
  446. package/types/enums.js +10 -0
  447. package/types/enums.js.map +1 -0
  448. package/types/fp.d.ts +31 -0
  449. package/types/fp.d.ts.map +1 -0
  450. package/types/fp.js +37 -0
  451. package/types/fp.js.map +1 -0
  452. package/types/index.d.ts +8 -0
  453. package/types/index.d.ts.map +1 -0
  454. package/types/index.js +16 -0
  455. package/types/index.js.map +1 -0
  456. package/types/operations.d.ts +27 -0
  457. package/types/operations.d.ts.map +1 -0
  458. package/types/operations.js +83 -0
  459. package/types/operations.js.map +1 -0
  460. package/types/rfcdate.d.ts +21 -0
  461. package/types/rfcdate.d.ts.map +1 -0
  462. package/types/rfcdate.js +46 -0
  463. package/types/rfcdate.js.map +1 -0
  464. package/types/streams.d.ts +2 -0
  465. package/types/streams.d.ts.map +1 -0
  466. package/types/streams.js +18 -0
  467. package/types/streams.js.map +1 -0
@@ -0,0 +1,309 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { EventStream } from "../../lib/event-streams.js";
7
+ import { remap as remap$ } from "../../lib/primitives.js";
8
+ import { safeParse } from "../../lib/schemas.js";
9
+ import { ClosedEnum } from "../../types/enums.js";
10
+ import { Result as SafeParseResult } from "../../types/fp.js";
11
+ import * as components from "../components/index.js";
12
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
+
14
+ export const ReadServerList = [
15
+ /**
16
+ * Endpoint for the basin
17
+ */
18
+ "https://{basin}.b.aws.s2.dev/v1alpha",
19
+ ] as const;
20
+
21
+ /**
22
+ * Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
23
+ */
24
+ export type Limit = {
25
+ /**
26
+ * Metered bytes limit.
27
+ */
28
+ bytes?: number | null | undefined;
29
+ /**
30
+ * Record count limit.
31
+ */
32
+ count?: number | null | undefined;
33
+ };
34
+
35
+ export const One = {
36
+ Json: "json",
37
+ JsonBinsafe: "json-binsafe",
38
+ } as const;
39
+ export type One = ClosedEnum<typeof One>;
40
+
41
+ /**
42
+ * json: utf-8 plaintext data.
43
+ *
44
+ * @remarks
45
+ * json-binsafe: base64 encoded binary data.
46
+ */
47
+ export type S2Format = One;
48
+
49
+ export type ReadRequest = {
50
+ /**
51
+ * Starting sequence number (inclusive).
52
+ */
53
+ startSeqNum?: number | undefined;
54
+ /**
55
+ * Limit on how many records can be returned upto a maximum of 1000, or 1MiB of metered bytes.
56
+ */
57
+ limit?: Limit | undefined;
58
+ /**
59
+ * json: utf-8 plaintext data.
60
+ *
61
+ * @remarks
62
+ * json-binsafe: base64 encoded binary data.
63
+ */
64
+ s2Format?: One | undefined;
65
+ /**
66
+ * Name of the stream.
67
+ */
68
+ stream: string;
69
+ };
70
+
71
+ export type ReadResponse =
72
+ | components.Output
73
+ | EventStream<components.ReadResponse>;
74
+
75
+ /** @internal */
76
+ export const Limit$inboundSchema: z.ZodType<Limit, z.ZodTypeDef, unknown> = z
77
+ .object({
78
+ bytes: z.nullable(z.number().int()).optional(),
79
+ count: z.nullable(z.number().int()).optional(),
80
+ });
81
+
82
+ /** @internal */
83
+ export type Limit$Outbound = {
84
+ bytes?: number | null | undefined;
85
+ count?: number | null | undefined;
86
+ };
87
+
88
+ /** @internal */
89
+ export const Limit$outboundSchema: z.ZodType<
90
+ Limit$Outbound,
91
+ z.ZodTypeDef,
92
+ Limit
93
+ > = z.object({
94
+ bytes: z.nullable(z.number().int()).optional(),
95
+ count: z.nullable(z.number().int()).optional(),
96
+ });
97
+
98
+ /**
99
+ * @internal
100
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
101
+ */
102
+ export namespace Limit$ {
103
+ /** @deprecated use `Limit$inboundSchema` instead. */
104
+ export const inboundSchema = Limit$inboundSchema;
105
+ /** @deprecated use `Limit$outboundSchema` instead. */
106
+ export const outboundSchema = Limit$outboundSchema;
107
+ /** @deprecated use `Limit$Outbound` instead. */
108
+ export type Outbound = Limit$Outbound;
109
+ }
110
+
111
+ export function limitToJSON(limit: Limit): string {
112
+ return JSON.stringify(Limit$outboundSchema.parse(limit));
113
+ }
114
+
115
+ export function limitFromJSON(
116
+ jsonString: string,
117
+ ): SafeParseResult<Limit, SDKValidationError> {
118
+ return safeParse(
119
+ jsonString,
120
+ (x) => Limit$inboundSchema.parse(JSON.parse(x)),
121
+ `Failed to parse 'Limit' from JSON`,
122
+ );
123
+ }
124
+
125
+ /** @internal */
126
+ export const One$inboundSchema: z.ZodNativeEnum<typeof One> = z.nativeEnum(One);
127
+
128
+ /** @internal */
129
+ export const One$outboundSchema: z.ZodNativeEnum<typeof One> =
130
+ One$inboundSchema;
131
+
132
+ /**
133
+ * @internal
134
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
135
+ */
136
+ export namespace One$ {
137
+ /** @deprecated use `One$inboundSchema` instead. */
138
+ export const inboundSchema = One$inboundSchema;
139
+ /** @deprecated use `One$outboundSchema` instead. */
140
+ export const outboundSchema = One$outboundSchema;
141
+ }
142
+
143
+ /** @internal */
144
+ export const S2Format$inboundSchema: z.ZodType<
145
+ S2Format,
146
+ z.ZodTypeDef,
147
+ unknown
148
+ > = One$inboundSchema;
149
+
150
+ /** @internal */
151
+ export type S2Format$Outbound = string;
152
+
153
+ /** @internal */
154
+ export const S2Format$outboundSchema: z.ZodType<
155
+ S2Format$Outbound,
156
+ z.ZodTypeDef,
157
+ S2Format
158
+ > = One$outboundSchema;
159
+
160
+ /**
161
+ * @internal
162
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
163
+ */
164
+ export namespace S2Format$ {
165
+ /** @deprecated use `S2Format$inboundSchema` instead. */
166
+ export const inboundSchema = S2Format$inboundSchema;
167
+ /** @deprecated use `S2Format$outboundSchema` instead. */
168
+ export const outboundSchema = S2Format$outboundSchema;
169
+ /** @deprecated use `S2Format$Outbound` instead. */
170
+ export type Outbound = S2Format$Outbound;
171
+ }
172
+
173
+ export function s2FormatToJSON(s2Format: S2Format): string {
174
+ return JSON.stringify(S2Format$outboundSchema.parse(s2Format));
175
+ }
176
+
177
+ export function s2FormatFromJSON(
178
+ jsonString: string,
179
+ ): SafeParseResult<S2Format, SDKValidationError> {
180
+ return safeParse(
181
+ jsonString,
182
+ (x) => S2Format$inboundSchema.parse(JSON.parse(x)),
183
+ `Failed to parse 'S2Format' from JSON`,
184
+ );
185
+ }
186
+
187
+ /** @internal */
188
+ export const ReadRequest$inboundSchema: z.ZodType<
189
+ ReadRequest,
190
+ z.ZodTypeDef,
191
+ unknown
192
+ > = z.object({
193
+ start_seq_num: z.number().int().optional(),
194
+ limit: z.lazy(() => Limit$inboundSchema).optional(),
195
+ "s2-format": One$inboundSchema.optional(),
196
+ stream: z.string(),
197
+ }).transform((v) => {
198
+ return remap$(v, {
199
+ "start_seq_num": "startSeqNum",
200
+ "s2-format": "s2Format",
201
+ });
202
+ });
203
+
204
+ /** @internal */
205
+ export type ReadRequest$Outbound = {
206
+ start_seq_num?: number | undefined;
207
+ limit?: Limit$Outbound | undefined;
208
+ "s2-format"?: string | undefined;
209
+ stream: string;
210
+ };
211
+
212
+ /** @internal */
213
+ export const ReadRequest$outboundSchema: z.ZodType<
214
+ ReadRequest$Outbound,
215
+ z.ZodTypeDef,
216
+ ReadRequest
217
+ > = z.object({
218
+ startSeqNum: z.number().int().optional(),
219
+ limit: z.lazy(() => Limit$outboundSchema).optional(),
220
+ s2Format: One$outboundSchema.optional(),
221
+ stream: z.string(),
222
+ }).transform((v) => {
223
+ return remap$(v, {
224
+ startSeqNum: "start_seq_num",
225
+ s2Format: "s2-format",
226
+ });
227
+ });
228
+
229
+ /**
230
+ * @internal
231
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
232
+ */
233
+ export namespace ReadRequest$ {
234
+ /** @deprecated use `ReadRequest$inboundSchema` instead. */
235
+ export const inboundSchema = ReadRequest$inboundSchema;
236
+ /** @deprecated use `ReadRequest$outboundSchema` instead. */
237
+ export const outboundSchema = ReadRequest$outboundSchema;
238
+ /** @deprecated use `ReadRequest$Outbound` instead. */
239
+ export type Outbound = ReadRequest$Outbound;
240
+ }
241
+
242
+ export function readRequestToJSON(readRequest: ReadRequest): string {
243
+ return JSON.stringify(ReadRequest$outboundSchema.parse(readRequest));
244
+ }
245
+
246
+ export function readRequestFromJSON(
247
+ jsonString: string,
248
+ ): SafeParseResult<ReadRequest, SDKValidationError> {
249
+ return safeParse(
250
+ jsonString,
251
+ (x) => ReadRequest$inboundSchema.parse(JSON.parse(x)),
252
+ `Failed to parse 'ReadRequest' from JSON`,
253
+ );
254
+ }
255
+
256
+ /** @internal */
257
+ export const ReadResponse$inboundSchema: z.ZodType<
258
+ ReadResponse,
259
+ z.ZodTypeDef,
260
+ unknown
261
+ > = z.union([
262
+ components.Output$inboundSchema,
263
+ z.instanceof(ReadableStream<Uint8Array>).transform(stream => {
264
+ return new EventStream({
265
+ stream,
266
+ decoder(rawEvent) {
267
+ const schema = components.ReadResponse$inboundSchema;
268
+ return schema.parse(rawEvent);
269
+ },
270
+ });
271
+ }),
272
+ ]);
273
+
274
+ /** @internal */
275
+ export type ReadResponse$Outbound = components.Output$Outbound | never;
276
+
277
+ /** @internal */
278
+ export const ReadResponse$outboundSchema: z.ZodType<
279
+ ReadResponse$Outbound,
280
+ z.ZodTypeDef,
281
+ ReadResponse
282
+ > = z.union([components.Output$outboundSchema, z.never()]);
283
+
284
+ /**
285
+ * @internal
286
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
287
+ */
288
+ export namespace ReadResponse$ {
289
+ /** @deprecated use `ReadResponse$inboundSchema` instead. */
290
+ export const inboundSchema = ReadResponse$inboundSchema;
291
+ /** @deprecated use `ReadResponse$outboundSchema` instead. */
292
+ export const outboundSchema = ReadResponse$outboundSchema;
293
+ /** @deprecated use `ReadResponse$Outbound` instead. */
294
+ export type Outbound = ReadResponse$Outbound;
295
+ }
296
+
297
+ export function readResponseToJSON(readResponse: ReadResponse): string {
298
+ return JSON.stringify(ReadResponse$outboundSchema.parse(readResponse));
299
+ }
300
+
301
+ export function readResponseFromJSON(
302
+ jsonString: string,
303
+ ): SafeParseResult<ReadResponse, SDKValidationError> {
304
+ return safeParse(
305
+ jsonString,
306
+ (x) => ReadResponse$inboundSchema.parse(JSON.parse(x)),
307
+ `Failed to parse 'ReadResponse' from JSON`,
308
+ );
309
+ }
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
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 components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type ReconfigureBasinRequest = {
13
+ /**
14
+ * Name of the basin.
15
+ */
16
+ basin: string;
17
+ basinConfig: components.BasinConfig;
18
+ };
19
+
20
+ /** @internal */
21
+ export const ReconfigureBasinRequest$inboundSchema: z.ZodType<
22
+ ReconfigureBasinRequest,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ basin: z.string(),
27
+ BasinConfig: components.BasinConfig$inboundSchema,
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ "BasinConfig": "basinConfig",
31
+ });
32
+ });
33
+
34
+ /** @internal */
35
+ export type ReconfigureBasinRequest$Outbound = {
36
+ basin: string;
37
+ BasinConfig: components.BasinConfig$Outbound;
38
+ };
39
+
40
+ /** @internal */
41
+ export const ReconfigureBasinRequest$outboundSchema: z.ZodType<
42
+ ReconfigureBasinRequest$Outbound,
43
+ z.ZodTypeDef,
44
+ ReconfigureBasinRequest
45
+ > = z.object({
46
+ basin: z.string(),
47
+ basinConfig: components.BasinConfig$outboundSchema,
48
+ }).transform((v) => {
49
+ return remap$(v, {
50
+ basinConfig: "BasinConfig",
51
+ });
52
+ });
53
+
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export namespace ReconfigureBasinRequest$ {
59
+ /** @deprecated use `ReconfigureBasinRequest$inboundSchema` instead. */
60
+ export const inboundSchema = ReconfigureBasinRequest$inboundSchema;
61
+ /** @deprecated use `ReconfigureBasinRequest$outboundSchema` instead. */
62
+ export const outboundSchema = ReconfigureBasinRequest$outboundSchema;
63
+ /** @deprecated use `ReconfigureBasinRequest$Outbound` instead. */
64
+ export type Outbound = ReconfigureBasinRequest$Outbound;
65
+ }
66
+
67
+ export function reconfigureBasinRequestToJSON(
68
+ reconfigureBasinRequest: ReconfigureBasinRequest,
69
+ ): string {
70
+ return JSON.stringify(
71
+ ReconfigureBasinRequest$outboundSchema.parse(reconfigureBasinRequest),
72
+ );
73
+ }
74
+
75
+ export function reconfigureBasinRequestFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<ReconfigureBasinRequest, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => ReconfigureBasinRequest$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'ReconfigureBasinRequest' from JSON`,
82
+ );
83
+ }
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
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 components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export const ReconfigureStreamServerList = [
13
+ /**
14
+ * Endpoint for the basin
15
+ */
16
+ "https://{basin}.b.aws.s2.dev/v1alpha",
17
+ ] as const;
18
+
19
+ export type ReconfigureStreamRequest = {
20
+ /**
21
+ * Name of the stream.
22
+ */
23
+ stream: string;
24
+ streamConfig: components.StreamConfig;
25
+ };
26
+
27
+ /** @internal */
28
+ export const ReconfigureStreamRequest$inboundSchema: z.ZodType<
29
+ ReconfigureStreamRequest,
30
+ z.ZodTypeDef,
31
+ unknown
32
+ > = z.object({
33
+ stream: z.string(),
34
+ StreamConfig: components.StreamConfig$inboundSchema,
35
+ }).transform((v) => {
36
+ return remap$(v, {
37
+ "StreamConfig": "streamConfig",
38
+ });
39
+ });
40
+
41
+ /** @internal */
42
+ export type ReconfigureStreamRequest$Outbound = {
43
+ stream: string;
44
+ StreamConfig: components.StreamConfig$Outbound;
45
+ };
46
+
47
+ /** @internal */
48
+ export const ReconfigureStreamRequest$outboundSchema: z.ZodType<
49
+ ReconfigureStreamRequest$Outbound,
50
+ z.ZodTypeDef,
51
+ ReconfigureStreamRequest
52
+ > = z.object({
53
+ stream: z.string(),
54
+ streamConfig: components.StreamConfig$outboundSchema,
55
+ }).transform((v) => {
56
+ return remap$(v, {
57
+ streamConfig: "StreamConfig",
58
+ });
59
+ });
60
+
61
+ /**
62
+ * @internal
63
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
64
+ */
65
+ export namespace ReconfigureStreamRequest$ {
66
+ /** @deprecated use `ReconfigureStreamRequest$inboundSchema` instead. */
67
+ export const inboundSchema = ReconfigureStreamRequest$inboundSchema;
68
+ /** @deprecated use `ReconfigureStreamRequest$outboundSchema` instead. */
69
+ export const outboundSchema = ReconfigureStreamRequest$outboundSchema;
70
+ /** @deprecated use `ReconfigureStreamRequest$Outbound` instead. */
71
+ export type Outbound = ReconfigureStreamRequest$Outbound;
72
+ }
73
+
74
+ export function reconfigureStreamRequestToJSON(
75
+ reconfigureStreamRequest: ReconfigureStreamRequest,
76
+ ): string {
77
+ return JSON.stringify(
78
+ ReconfigureStreamRequest$outboundSchema.parse(reconfigureStreamRequest),
79
+ );
80
+ }
81
+
82
+ export function reconfigureStreamRequestFromJSON(
83
+ jsonString: string,
84
+ ): SafeParseResult<ReconfigureStreamRequest, SDKValidationError> {
85
+ return safeParse(
86
+ jsonString,
87
+ (x) => ReconfigureStreamRequest$inboundSchema.parse(JSON.parse(x)),
88
+ `Failed to parse 'ReconfigureStreamRequest' from JSON`,
89
+ );
90
+ }
@@ -0,0 +1,86 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { accountCreateBasin } from "../funcs/accountCreateBasin.js";
6
+ import { accountDeleteBasin } from "../funcs/accountDeleteBasin.js";
7
+ import { accountGetBasinConfig } from "../funcs/accountGetBasinConfig.js";
8
+ import { accountListBasins } from "../funcs/accountListBasins.js";
9
+ import { accountReconfigureBasin } from "../funcs/accountReconfigureBasin.js";
10
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
+ import * as components from "../models/components/index.js";
12
+ import * as operations from "../models/operations/index.js";
13
+ import { unwrapAsync } from "../types/fp.js";
14
+ import { PageIterator, unwrapResultIterator } from "../types/operations.js";
15
+
16
+ export class Account extends ClientSDK {
17
+ /**
18
+ * List basins.
19
+ */
20
+ async listBasins(
21
+ request: operations.ListBasinsRequest,
22
+ options?: RequestOptions,
23
+ ): Promise<PageIterator<operations.ListBasinsResponse, { cursor: string }>> {
24
+ return unwrapResultIterator(accountListBasins(
25
+ this,
26
+ request,
27
+ options,
28
+ ));
29
+ }
30
+
31
+ /**
32
+ * Get basin configuration.
33
+ */
34
+ async getBasinConfig(
35
+ request: operations.GetBasinConfigRequest,
36
+ options?: RequestOptions,
37
+ ): Promise<components.BasinConfig> {
38
+ return unwrapAsync(accountGetBasinConfig(
39
+ this,
40
+ request,
41
+ options,
42
+ ));
43
+ }
44
+
45
+ /**
46
+ * Create a new basin.
47
+ */
48
+ async createBasin(
49
+ request: operations.CreateBasinRequest,
50
+ options?: RequestOptions,
51
+ ): Promise<components.BasinInfo> {
52
+ return unwrapAsync(accountCreateBasin(
53
+ this,
54
+ request,
55
+ options,
56
+ ));
57
+ }
58
+
59
+ /**
60
+ * Delete a basin.
61
+ */
62
+ async deleteBasin(
63
+ request: operations.DeleteBasinRequest,
64
+ options?: RequestOptions,
65
+ ): Promise<void> {
66
+ return unwrapAsync(accountDeleteBasin(
67
+ this,
68
+ request,
69
+ options,
70
+ ));
71
+ }
72
+
73
+ /**
74
+ * Update basin configuration.
75
+ */
76
+ async reconfigureBasin(
77
+ request: operations.ReconfigureBasinRequest,
78
+ options?: RequestOptions,
79
+ ): Promise<components.BasinConfig> {
80
+ return unwrapAsync(accountReconfigureBasin(
81
+ this,
82
+ request,
83
+ options,
84
+ ));
85
+ }
86
+ }
@@ -0,0 +1,86 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { basinCreateStream } from "../funcs/basinCreateStream.js";
6
+ import { basinDeleteStream } from "../funcs/basinDeleteStream.js";
7
+ import { basinGetStreamConfig } from "../funcs/basinGetStreamConfig.js";
8
+ import { basinListStreams } from "../funcs/basinListStreams.js";
9
+ import { basinReconfigureStream } from "../funcs/basinReconfigureStream.js";
10
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
+ import * as components from "../models/components/index.js";
12
+ import * as operations from "../models/operations/index.js";
13
+ import { unwrapAsync } from "../types/fp.js";
14
+ import { PageIterator, unwrapResultIterator } from "../types/operations.js";
15
+
16
+ export class Basin extends ClientSDK {
17
+ /**
18
+ * List Streams.
19
+ */
20
+ async listStreams(
21
+ request: operations.ListStreamsRequest,
22
+ options?: RequestOptions,
23
+ ): Promise<PageIterator<operations.ListStreamsResponse, { cursor: string }>> {
24
+ return unwrapResultIterator(basinListStreams(
25
+ this,
26
+ request,
27
+ options,
28
+ ));
29
+ }
30
+
31
+ /**
32
+ * Get stream configuration.
33
+ */
34
+ async getStreamConfig(
35
+ request: operations.GetStreamConfigRequest,
36
+ options?: RequestOptions,
37
+ ): Promise<components.StreamConfig> {
38
+ return unwrapAsync(basinGetStreamConfig(
39
+ this,
40
+ request,
41
+ options,
42
+ ));
43
+ }
44
+
45
+ /**
46
+ * Create a stream.
47
+ */
48
+ async createStream(
49
+ request: operations.CreateStreamRequest,
50
+ options?: RequestOptions,
51
+ ): Promise<components.StreamInfo> {
52
+ return unwrapAsync(basinCreateStream(
53
+ this,
54
+ request,
55
+ options,
56
+ ));
57
+ }
58
+
59
+ /**
60
+ * Delete a stream.
61
+ */
62
+ async deleteStream(
63
+ request: operations.DeleteStreamRequest,
64
+ options?: RequestOptions,
65
+ ): Promise<void> {
66
+ return unwrapAsync(basinDeleteStream(
67
+ this,
68
+ request,
69
+ options,
70
+ ));
71
+ }
72
+
73
+ /**
74
+ * Update stream configuration.
75
+ */
76
+ async reconfigureStream(
77
+ request: operations.ReconfigureStreamRequest,
78
+ options?: RequestOptions,
79
+ ): Promise<components.StreamConfig> {
80
+ return unwrapAsync(basinReconfigureStream(
81
+ this,
82
+ request,
83
+ options,
84
+ ));
85
+ }
86
+ }
@@ -0,0 +1,5 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ export * from "./sdk.js";
package/src/sdk/sdk.ts ADDED
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { ClientSDK } from "../lib/sdks.js";
6
+ import { Account } from "./account.js";
7
+ import { Basin } from "./basin.js";
8
+ import { Stream } from "./stream.js";
9
+
10
+ export class S2 extends ClientSDK {
11
+ private _account?: Account;
12
+ get account(): Account {
13
+ return (this._account ??= new Account(this._options));
14
+ }
15
+
16
+ private _basin?: Basin;
17
+ get basin(): Basin {
18
+ return (this._basin ??= new Basin(this._options));
19
+ }
20
+
21
+ private _stream?: Stream;
22
+ get stream(): Stream {
23
+ return (this._stream ??= new Stream(this._options));
24
+ }
25
+ }