@reventlessdev/rescript-aws-sdk 2.2.0-alpha.22 → 2.2.0-alpha.24

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,21 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 2.2.0-alpha.24 (2026-07-19)
7
+
8
+ ### Features
9
+
10
+ * **rescript-aws:** S3 ListObjectVersions + BucketNotification bindings ([f0d464a](https://github.com/ReventlessDev/reventless-core/commit/f0d464aedacea930c56aab4849637316fc151dc5))
11
+
12
+
13
+ # 2.2.0-alpha.23 (2026-07-17)
14
+
15
+ **Note:** Version bump only for package @reventlessdev/rescript-aws-sdk
16
+
17
+
18
+
19
+
20
+
6
21
  # 2.2.0-alpha.22 (2026-07-16)
7
22
 
8
23
  **Note:** Version bump only for package @reventlessdev/rescript-aws-sdk
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/rescript-aws-sdk",
3
- "version": "2.2.0-alpha.22",
3
+ "version": "2.2.0-alpha.24",
4
4
  "description": "ReScript bindings for aws-sdk",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {
@@ -17,7 +17,7 @@
17
17
  "@aws-sdk/lib-dynamodb": "^3.1033.0",
18
18
  "@aws-sdk/lib-storage": "^3.1033.0",
19
19
  "@smithy/node-http-handler": "^4.5.3",
20
- "@reventlessdev/rescript-node-streams": "1.1.0-alpha.12"
20
+ "@reventlessdev/rescript-node-streams": "1.1.0-alpha.13"
21
21
  },
22
22
  "devDependencies": {
23
23
  "rescript": "12.3.0"
@@ -31,7 +31,7 @@
31
31
  "repository": {
32
32
  "type": "git",
33
33
  "url": "git+https://github.com/ReventlessDev/reventless-core.git",
34
- "directory": "rescript/rescript-aws-sdk"
34
+ "directory": "rescript/aws-sdk"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "rescript build",
package/src/S3.res CHANGED
@@ -25,12 +25,16 @@ module GetObjectCommand = {
25
25
  type input = {
26
26
  @as("Bucket") bucket: string,
27
27
  @as("Key") key: string,
28
+ /** fetch a specific object version (requires a versioned bucket) */
29
+ @as("VersionId")
30
+ versionId?: string,
28
31
  }
29
32
 
30
33
  type output = {
31
34
  /** readable stream of the object */
32
35
  @as("Body")
33
36
  body: NodeStreams.Readable.t,
37
+ @as("VersionId") versionId?: string,
34
38
  }
35
39
 
36
40
  @new @module("@aws-sdk/client-s3")
@@ -44,6 +48,48 @@ module GetObjectCommand = {
44
48
  let send: t => promise<output> = input => Raw.send(client(), input)
45
49
  }
46
50
 
51
+ module ListObjectVersionsCommand = {
52
+ type t
53
+
54
+ type input = {
55
+ @as("Bucket") bucket: string,
56
+ @as("Prefix") prefix?: string,
57
+ @as("KeyMarker") keyMarker?: string,
58
+ @as("VersionIdMarker") versionIdMarker?: string,
59
+ @as("MaxKeys") maxKeys?: int,
60
+ @as("Delimiter") delimiter?: string,
61
+ }
62
+
63
+ /** A single object version. S3 returns versions newest-first per key, so the
64
+ entry with `isLatest: true` is the current object and the next entry for the
65
+ same key is the immediately-prior version. */
66
+ type objectVersion = {
67
+ @as("Key") key: string,
68
+ @as("VersionId") versionId: string,
69
+ @as("IsLatest") isLatest: bool,
70
+ @as("LastModified") lastModified?: Date.t,
71
+ @as("ETag") eTag?: string,
72
+ @as("Size") size?: int,
73
+ }
74
+
75
+ type output = {
76
+ @as("Versions") versions?: array<objectVersion>,
77
+ @as("IsTruncated") isTruncated?: bool,
78
+ @as("NextKeyMarker") nextKeyMarker?: string,
79
+ @as("NextVersionIdMarker") nextVersionIdMarker?: string,
80
+ }
81
+
82
+ @new @module("@aws-sdk/client-s3")
83
+ external make: input => t = "ListObjectVersionsCommand"
84
+
85
+ module Raw = {
86
+ @send
87
+ external send: (client, t) => promise<output> = "send"
88
+ }
89
+
90
+ let send: t => promise<output> = input => Raw.send(client(), input)
91
+ }
92
+
47
93
  module PutObjectCommand = {
48
94
  type t
49
95
 
package/src/S3.res.mjs CHANGED
@@ -36,17 +36,28 @@ function send$1(input) {
36
36
  return client().send(input);
37
37
  }
38
38
 
39
- let PutObjectCommand = {
39
+ let ListObjectVersionsCommand = {
40
40
  Raw: Raw$2,
41
41
  send: send$1
42
42
  };
43
43
 
44
+ let Raw$3 = {};
45
+
46
+ function send$2(input) {
47
+ return client().send(input);
48
+ }
49
+
50
+ let PutObjectCommand = {
51
+ Raw: Raw$3,
52
+ send: send$2
53
+ };
54
+
44
55
  let CompleteMultipartUploadCommand = {};
45
56
 
46
- let Raw$3 = {};
57
+ let Raw$4 = {};
47
58
 
48
59
  let Upload = {
49
- Raw: Raw$3
60
+ Raw: Raw$4
50
61
  };
51
62
 
52
63
  export {
@@ -54,6 +65,7 @@ export {
54
65
  Raw,
55
66
  client,
56
67
  GetObjectCommand,
68
+ ListObjectVersionsCommand,
57
69
  PutObjectCommand,
58
70
  CompleteMultipartUploadCommand,
59
71
  Upload,