@reventlessdev/rescript-aws-sdk 3.0.0-alpha.17 → 3.0.0-alpha.18
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,14 @@
|
|
|
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
|
+
# 3.0.0-alpha.18 (2026-09-11)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **aws:** the first administrator is one command, not the console ([5f1a846](https://github.com/ReventlessDev/reventless-core/commit/5f1a84603b21a9feb691a08a148751c6c6e8eca8))
|
|
11
|
+
* **aws:** the rest of the cast is a file, not a comment ([aa23581](https://github.com/ReventlessDev/reventless-core/commit/aa23581f09948a47fb451ec2ecf2fc2bdd8e6ee6))
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# 3.0.0-alpha.17 (2026-09-09)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @reventlessdev/rescript-aws-sdk
|
package/package.json
CHANGED
|
@@ -70,6 +70,145 @@ module SignUpCommand = {
|
|
|
70
70
|
let send: t => promise<output> = command => Raw.send(client(), command)
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
module AdminCreateUserCommand = {
|
|
74
|
+
type t
|
|
75
|
+
|
|
76
|
+
type attributeType = {
|
|
77
|
+
@as("Name") name: string,
|
|
78
|
+
@as("Value") value: string,
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** `MessageAction: "SUPPRESS"` stops Cognito emailing an invitation carrying a
|
|
82
|
+
temporary password. A caller that follows this with `AdminSetUserPassword`
|
|
83
|
+
owns the credential, and the invitation would name one that no longer works —
|
|
84
|
+
a message inviting somebody to sign in with the wrong password is worse than
|
|
85
|
+
no message. Omit it to get Cognito's ordinary invitation flow. */
|
|
86
|
+
type input = {
|
|
87
|
+
@as("UserPoolId") userPoolId: string,
|
|
88
|
+
@as("Username") username: string,
|
|
89
|
+
@as("UserAttributes") userAttributes?: array<attributeType>,
|
|
90
|
+
@as("MessageAction") messageAction?: string,
|
|
91
|
+
@as("DesiredDeliveryMediums") desiredDeliveryMediums?: array<string>,
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** `UserStatus` is `FORCE_CHANGE_PASSWORD` for a user created this way — an
|
|
95
|
+
administrator-created account holds a temporary password and meets a challenge
|
|
96
|
+
on first sign-in. Reported so a caller can say what it did about it. */
|
|
97
|
+
type userType = {
|
|
98
|
+
@as("Username") username?: string,
|
|
99
|
+
@as("UserStatus") userStatus?: string,
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
type output = {@as("User") user?: userType}
|
|
103
|
+
|
|
104
|
+
@new @module("@aws-sdk/client-cognito-identity-provider")
|
|
105
|
+
external make: input => t = "AdminCreateUserCommand"
|
|
106
|
+
|
|
107
|
+
module Raw = {
|
|
108
|
+
/**
|
|
109
|
+
see: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity-provider/command/AdminCreateUserCommand/
|
|
110
|
+
*/
|
|
111
|
+
@send
|
|
112
|
+
external send: (client, t) => promise<output> = "send"
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
let send: t => promise<output> = command => Raw.send(client(), command)
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
module AdminGetUserCommand = {
|
|
119
|
+
type t
|
|
120
|
+
|
|
121
|
+
type attributeType = {
|
|
122
|
+
@as("Name") name: string,
|
|
123
|
+
@as("Value") value: string,
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
type input = {
|
|
127
|
+
@as("UserPoolId") userPoolId: string,
|
|
128
|
+
@as("Username") username: string,
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/** `UserAttributes` is where `sub` lives — the id the pool minted, which no
|
|
132
|
+
request supplies and which `AdminCreateUser` does not return. A caller that
|
|
133
|
+
has to record it (an accounts manifest, say) reads it back from here, and
|
|
134
|
+
reads it the same way for an account it just made and one that was already
|
|
135
|
+
there. A username the pool cannot resolve raises `UserNotFoundException`. */
|
|
136
|
+
type output = {
|
|
137
|
+
@as("Username") username?: string,
|
|
138
|
+
@as("UserAttributes") userAttributes?: array<attributeType>,
|
|
139
|
+
@as("UserStatus") userStatus?: string,
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@new @module("@aws-sdk/client-cognito-identity-provider")
|
|
143
|
+
external make: input => t = "AdminGetUserCommand"
|
|
144
|
+
|
|
145
|
+
module Raw = {
|
|
146
|
+
/**
|
|
147
|
+
see: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity-provider/command/AdminGetUserCommand/
|
|
148
|
+
*/
|
|
149
|
+
@send
|
|
150
|
+
external send: (client, t) => promise<output> = "send"
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
let send: t => promise<output> = command => Raw.send(client(), command)
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
module AdminSetUserPasswordCommand = {
|
|
157
|
+
type t
|
|
158
|
+
|
|
159
|
+
/** `Permanent: true` leaves the account `CONFIRMED` and the password usable as
|
|
160
|
+
it stands. `false` (the default, if omitted) sets a *temporary* one and puts
|
|
161
|
+
the account back into `FORCE_CHANGE_PASSWORD` — so a caller bootstrapping an
|
|
162
|
+
account that must simply work has to say `true` explicitly. */
|
|
163
|
+
type input = {
|
|
164
|
+
@as("UserPoolId") userPoolId: string,
|
|
165
|
+
@as("Username") username: string,
|
|
166
|
+
@as("Password") password: string,
|
|
167
|
+
@as("Permanent") permanent?: bool,
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@new @module("@aws-sdk/client-cognito-identity-provider")
|
|
171
|
+
external make: input => t = "AdminSetUserPasswordCommand"
|
|
172
|
+
|
|
173
|
+
module Raw = {
|
|
174
|
+
/**
|
|
175
|
+
see: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity-provider/command/AdminSetUserPasswordCommand/
|
|
176
|
+
*/
|
|
177
|
+
@send
|
|
178
|
+
external send: (client, t) => promise<unit> = "send"
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
let send: t => promise<unit> = command => Raw.send(client(), command)
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
module CreateGroupCommand = {
|
|
185
|
+
type t
|
|
186
|
+
|
|
187
|
+
type input = {
|
|
188
|
+
@as("GroupName") groupName: string,
|
|
189
|
+
@as("UserPoolId") userPoolId: string,
|
|
190
|
+
@as("Description") description?: string,
|
|
191
|
+
@as("Precedence") precedence?: int,
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
type groupType = {@as("GroupName") groupName?: string}
|
|
195
|
+
|
|
196
|
+
type output = {@as("Group") group?: groupType}
|
|
197
|
+
|
|
198
|
+
@new @module("@aws-sdk/client-cognito-identity-provider")
|
|
199
|
+
external make: input => t = "CreateGroupCommand"
|
|
200
|
+
|
|
201
|
+
module Raw = {
|
|
202
|
+
/**
|
|
203
|
+
see: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity-provider/command/CreateGroupCommand/
|
|
204
|
+
*/
|
|
205
|
+
@send
|
|
206
|
+
external send: (client, t) => promise<output> = "send"
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
let send: t => promise<output> = command => Raw.send(client(), command)
|
|
210
|
+
}
|
|
211
|
+
|
|
73
212
|
module AdminAddUserToGroupCommand = {
|
|
74
213
|
type t
|
|
75
214
|
|
|
@@ -242,10 +381,15 @@ module DescribeUserPoolCommand = {
|
|
|
242
381
|
|
|
243
382
|
type input = {@as("UserPoolId") userPoolId: string}
|
|
244
383
|
|
|
384
|
+
/** `UsernameAttributes` is how a caller learns what this pool signs in on
|
|
385
|
+
without having created it — the one pool setting no update can change, so a
|
|
386
|
+
caller that guesses wrong creates an account nobody can use. Absent means the
|
|
387
|
+
pool signs in on a plain username rather than on an attribute. */
|
|
245
388
|
type userPoolType = {
|
|
246
389
|
@as("Id") id?: string,
|
|
247
390
|
@as("Name") name?: string,
|
|
248
391
|
@as("Arn") arn?: string,
|
|
392
|
+
@as("UsernameAttributes") usernameAttributes?: array<string>,
|
|
249
393
|
}
|
|
250
394
|
|
|
251
395
|
type output = {@as("UserPool") userPool?: userPoolType}
|
|
@@ -43,7 +43,7 @@ function send$1(command) {
|
|
|
43
43
|
return client().send(command);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
let
|
|
46
|
+
let AdminCreateUserCommand = {
|
|
47
47
|
Raw: Raw$2,
|
|
48
48
|
send: send$1
|
|
49
49
|
};
|
|
@@ -54,7 +54,7 @@ function send$2(command) {
|
|
|
54
54
|
return client().send(command);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
let
|
|
57
|
+
let AdminGetUserCommand = {
|
|
58
58
|
Raw: Raw$3,
|
|
59
59
|
send: send$2
|
|
60
60
|
};
|
|
@@ -65,7 +65,7 @@ function send$3(command) {
|
|
|
65
65
|
return client().send(command);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
let
|
|
68
|
+
let AdminSetUserPasswordCommand = {
|
|
69
69
|
Raw: Raw$4,
|
|
70
70
|
send: send$3
|
|
71
71
|
};
|
|
@@ -76,7 +76,7 @@ function send$4(command) {
|
|
|
76
76
|
return client().send(command);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
let
|
|
79
|
+
let CreateGroupCommand = {
|
|
80
80
|
Raw: Raw$5,
|
|
81
81
|
send: send$4
|
|
82
82
|
};
|
|
@@ -87,7 +87,7 @@ function send$5(command) {
|
|
|
87
87
|
return client().send(command);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
let
|
|
90
|
+
let AdminAddUserToGroupCommand = {
|
|
91
91
|
Raw: Raw$6,
|
|
92
92
|
send: send$5
|
|
93
93
|
};
|
|
@@ -98,16 +98,64 @@ function send$6(command) {
|
|
|
98
98
|
return client().send(command);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
let
|
|
101
|
+
let AdminRemoveUserFromGroupCommand = {
|
|
102
102
|
Raw: Raw$7,
|
|
103
103
|
send: send$6
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
+
let Raw$8 = {};
|
|
107
|
+
|
|
108
|
+
function send$7(command) {
|
|
109
|
+
return client().send(command);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
let AdminListGroupsForUserCommand = {
|
|
113
|
+
Raw: Raw$8,
|
|
114
|
+
send: send$7
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
let Raw$9 = {};
|
|
118
|
+
|
|
119
|
+
function send$8(command) {
|
|
120
|
+
return client().send(command);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
let CreateUserPoolCommand = {
|
|
124
|
+
Raw: Raw$9,
|
|
125
|
+
send: send$8
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
let Raw$10 = {};
|
|
129
|
+
|
|
130
|
+
function send$9(command) {
|
|
131
|
+
return client().send(command);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
let ListUserPoolsCommand = {
|
|
135
|
+
Raw: Raw$10,
|
|
136
|
+
send: send$9
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
let Raw$11 = {};
|
|
140
|
+
|
|
141
|
+
function send$10(command) {
|
|
142
|
+
return client().send(command);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
let DescribeUserPoolCommand = {
|
|
146
|
+
Raw: Raw$11,
|
|
147
|
+
send: send$10
|
|
148
|
+
};
|
|
149
|
+
|
|
106
150
|
export {
|
|
107
151
|
Raw,
|
|
108
152
|
clientInstance,
|
|
109
153
|
client,
|
|
110
154
|
SignUpCommand,
|
|
155
|
+
AdminCreateUserCommand,
|
|
156
|
+
AdminGetUserCommand,
|
|
157
|
+
AdminSetUserPasswordCommand,
|
|
158
|
+
CreateGroupCommand,
|
|
111
159
|
AdminAddUserToGroupCommand,
|
|
112
160
|
AdminRemoveUserFromGroupCommand,
|
|
113
161
|
AdminListGroupsForUserCommand,
|