onehook-api-client 1.0.4 → 1.0.6
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/LICENSE +28 -201
- package/README.md +14 -0
- package/dist-cjs/OneHook.js +4 -0
- package/dist-cjs/commands/GenerateDownloadUrlCommand.js +21 -0
- package/dist-cjs/commands/GetLivenessStatusCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +62 -2
- package/dist-es/OneHook.js +4 -0
- package/dist-es/commands/GenerateDownloadUrlCommand.js +17 -0
- package/dist-es/commands/GetLivenessStatusCommand.js +17 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +56 -0
- package/dist-types/OneHook.d.ts +15 -0
- package/dist-types/OneHookClient.d.ts +4 -2
- package/dist-types/commands/GenerateDownloadUrlCommand.d.ts +82 -0
- package/dist-types/commands/GetLivenessStatusCommand.d.ts +77 -0
- package/dist-types/commands/GetMyProfileCommand.d.ts +4 -1
- package/dist-types/commands/GetProfileCommand.d.ts +4 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +40 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/package.json +18 -2
package/LICENSE
CHANGED
|
@@ -1,201 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2018-2026 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
1
|
+
PROPRIETARY LICENSE - ALL RIGHTS RESERVED
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 OneHook. All Rights Reserved.
|
|
4
|
+
|
|
5
|
+
This software and all of its associated resources, including but not limited to
|
|
6
|
+
source code, generated code, compiled artifacts, documentation, API models, and
|
|
7
|
+
schemas (collectively, the "Software"), are the proprietary and confidential
|
|
8
|
+
property of OneHook.
|
|
9
|
+
|
|
10
|
+
NO LICENSE IS GRANTED. No person or entity may use, copy, reproduce, download,
|
|
11
|
+
install, execute, modify, merge, publish, distribute, sublicense, sell, or
|
|
12
|
+
create derivative works of the Software, in whole or in part, by any means or in
|
|
13
|
+
any form, without the prior express written permission of OneHook.
|
|
14
|
+
|
|
15
|
+
Any use, reproduction, or distribution of the Software, or any portion of it,
|
|
16
|
+
without such prior written permission is strictly prohibited, constitutes
|
|
17
|
+
infringement of OneHook's intellectual property rights, and may result in civil
|
|
18
|
+
and criminal penalties, to be prosecuted to the maximum extent possible under
|
|
19
|
+
applicable law.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
23
|
+
FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL ONEHOOK OR THE
|
|
24
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER
|
|
25
|
+
IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN
|
|
26
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
27
|
+
|
|
28
|
+
For licensing inquiries and permission requests, contact: legal@onehook.club
|
package/README.md
CHANGED
|
@@ -381,6 +381,13 @@ DeleteProfile
|
|
|
381
381
|
</details>
|
|
382
382
|
<details>
|
|
383
383
|
<summary>
|
|
384
|
+
GenerateDownloadUrl
|
|
385
|
+
</summary>
|
|
386
|
+
|
|
387
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GenerateDownloadUrlCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GenerateDownloadUrlCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GenerateDownloadUrlCommandOutput/)
|
|
388
|
+
</details>
|
|
389
|
+
<details>
|
|
390
|
+
<summary>
|
|
384
391
|
GenerateUploadUrl
|
|
385
392
|
</summary>
|
|
386
393
|
|
|
@@ -388,6 +395,13 @@ GenerateUploadUrl
|
|
|
388
395
|
</details>
|
|
389
396
|
<details>
|
|
390
397
|
<summary>
|
|
398
|
+
GetLivenessStatus
|
|
399
|
+
</summary>
|
|
400
|
+
|
|
401
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GetLivenessStatusCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetLivenessStatusCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetLivenessStatusCommandOutput/)
|
|
402
|
+
</details>
|
|
403
|
+
<details>
|
|
404
|
+
<summary>
|
|
391
405
|
GetMyProfile
|
|
392
406
|
</summary>
|
|
393
407
|
|
package/dist-cjs/OneHook.js
CHANGED
|
@@ -10,8 +10,10 @@ const CreateLivenessSessionCommand_1 = require("./commands/CreateLivenessSession
|
|
|
10
10
|
const DeleteMatchMessagesCommand_1 = require("./commands/DeleteMatchMessagesCommand");
|
|
11
11
|
const DeleteProfileCommand_1 = require("./commands/DeleteProfileCommand");
|
|
12
12
|
const DiscoverCommand_1 = require("./commands/DiscoverCommand");
|
|
13
|
+
const GenerateDownloadUrlCommand_1 = require("./commands/GenerateDownloadUrlCommand");
|
|
13
14
|
const GenerateInviteCommand_1 = require("./commands/GenerateInviteCommand");
|
|
14
15
|
const GenerateUploadUrlCommand_1 = require("./commands/GenerateUploadUrlCommand");
|
|
16
|
+
const GetLivenessStatusCommand_1 = require("./commands/GetLivenessStatusCommand");
|
|
15
17
|
const GetMatchCommand_1 = require("./commands/GetMatchCommand");
|
|
16
18
|
const GetMyProfileCommand_1 = require("./commands/GetMyProfileCommand");
|
|
17
19
|
const GetPreferencesCommand_1 = require("./commands/GetPreferencesCommand");
|
|
@@ -66,7 +68,9 @@ const commands = {
|
|
|
66
68
|
CompleteLivenessSessionCommand: CompleteLivenessSessionCommand_1.CompleteLivenessSessionCommand,
|
|
67
69
|
CreateLivenessSessionCommand: CreateLivenessSessionCommand_1.CreateLivenessSessionCommand,
|
|
68
70
|
DeleteProfileCommand: DeleteProfileCommand_1.DeleteProfileCommand,
|
|
71
|
+
GenerateDownloadUrlCommand: GenerateDownloadUrlCommand_1.GenerateDownloadUrlCommand,
|
|
69
72
|
GenerateUploadUrlCommand: GenerateUploadUrlCommand_1.GenerateUploadUrlCommand,
|
|
73
|
+
GetLivenessStatusCommand: GetLivenessStatusCommand_1.GetLivenessStatusCommand,
|
|
70
74
|
GetMyProfileCommand: GetMyProfileCommand_1.GetMyProfileCommand,
|
|
71
75
|
GetProfileCommand: GetProfileCommand_1.GetProfileCommand,
|
|
72
76
|
UpdateProfileCommand: UpdateProfileCommand_1.UpdateProfileCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateDownloadUrlCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GenerateDownloadUrlCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("OneHookService", "GenerateDownloadUrl", {})
|
|
15
|
+
.n("OneHookClient", "GenerateDownloadUrlCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GenerateDownloadUrlCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GenerateDownloadUrlCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GenerateDownloadUrlCommand = GenerateDownloadUrlCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetLivenessStatusCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetLivenessStatusCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("OneHookService", "GetLivenessStatus", {})
|
|
15
|
+
.n("OneHookClient", "GetLivenessStatusCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetLivenessStatusCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetLivenessStatusCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetLivenessStatusCommand = GetLivenessStatusCommand;
|
|
@@ -27,7 +27,9 @@ tslib_1.__exportStar(require("./UpdatePreferencesCommand"), exports);
|
|
|
27
27
|
tslib_1.__exportStar(require("./CompleteLivenessSessionCommand"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./CreateLivenessSessionCommand"), exports);
|
|
29
29
|
tslib_1.__exportStar(require("./DeleteProfileCommand"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./GenerateDownloadUrlCommand"), exports);
|
|
30
31
|
tslib_1.__exportStar(require("./GenerateUploadUrlCommand"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./GetLivenessStatusCommand"), exports);
|
|
31
33
|
tslib_1.__exportStar(require("./GetMyProfileCommand"), exports);
|
|
32
34
|
tslib_1.__exportStar(require("./GetProfileCommand"), exports);
|
|
33
35
|
tslib_1.__exportStar(require("./UpdateProfileCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_GetProfileCommand = exports.de_GetMyProfileCommand = exports.de_GenerateUploadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_IndexLocationCommand = exports.de_GetPreferencesCommand = exports.de_DiscoverCommand = exports.de_ValidateInviteCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = void 0;
|
|
3
|
+
exports.de_RequestPhoneOtpCommand = exports.de_RequestEmailOtpCommand = exports.de_RegisterPhoneCommand = exports.de_LinkSocialCommand = exports.de_LinkEmailCommand = exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = exports.de_GenerateInviteCommand = exports.de_AuthSocialCommand = exports.de_UploadPreKeysCommand = exports.de_DeleteMatchMessagesCommand = exports.de_ClaimPreKeyBundleCommand = exports.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_GetProfileCommand = exports.se_GetMyProfileCommand = exports.se_GetLivenessStatusCommand = exports.se_GenerateUploadUrlCommand = exports.se_GenerateDownloadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CompleteLivenessSessionCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_IndexLocationCommand = exports.se_GetPreferencesCommand = exports.se_DiscoverCommand = exports.se_ValidateInviteCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_RequestPhoneUpdateOtpCommand = exports.se_RequestPhoneOtpCommand = exports.se_RequestEmailOtpCommand = exports.se_RegisterPhoneCommand = exports.se_LinkSocialCommand = exports.se_LinkEmailCommand = exports.se_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GenerateInviteCommand = exports.se_AuthSocialCommand = exports.se_UploadPreKeysCommand = exports.se_DeleteMatchMessagesCommand = exports.se_ClaimPreKeyBundleCommand = void 0;
|
|
4
|
+
exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_GetProfileCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_IndexLocationCommand = exports.de_GetPreferencesCommand = exports.de_DiscoverCommand = exports.de_ValidateInviteCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_RequestPhoneUpdateOtpCommand = void 0;
|
|
5
5
|
const OneHookServiceException_1 = require("../models/OneHookServiceException");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -413,6 +413,21 @@ const se_DeleteProfileCommand = async (input, context) => {
|
|
|
413
413
|
return b.build();
|
|
414
414
|
};
|
|
415
415
|
exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
|
|
416
|
+
const se_GenerateDownloadUrlCommand = async (input, context) => {
|
|
417
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
418
|
+
const headers = {};
|
|
419
|
+
b.bp("/profile/media/download-url");
|
|
420
|
+
const query = (0, smithy_client_1.map)({
|
|
421
|
+
[_k]: [, (0, smithy_client_1.expectNonNull)(input[_k], `key`)],
|
|
422
|
+
});
|
|
423
|
+
let body;
|
|
424
|
+
b.m("GET")
|
|
425
|
+
.h(headers)
|
|
426
|
+
.q(query)
|
|
427
|
+
.b(body);
|
|
428
|
+
return b.build();
|
|
429
|
+
};
|
|
430
|
+
exports.se_GenerateDownloadUrlCommand = se_GenerateDownloadUrlCommand;
|
|
416
431
|
const se_GenerateUploadUrlCommand = async (input, context) => {
|
|
417
432
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
418
433
|
const headers = {
|
|
@@ -430,6 +445,17 @@ const se_GenerateUploadUrlCommand = async (input, context) => {
|
|
|
430
445
|
return b.build();
|
|
431
446
|
};
|
|
432
447
|
exports.se_GenerateUploadUrlCommand = se_GenerateUploadUrlCommand;
|
|
448
|
+
const se_GetLivenessStatusCommand = async (input, context) => {
|
|
449
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
450
|
+
const headers = {};
|
|
451
|
+
b.bp("/profile/liveness/status");
|
|
452
|
+
let body;
|
|
453
|
+
b.m("GET")
|
|
454
|
+
.h(headers)
|
|
455
|
+
.b(body);
|
|
456
|
+
return b.build();
|
|
457
|
+
};
|
|
458
|
+
exports.se_GetLivenessStatusCommand = se_GetLivenessStatusCommand;
|
|
433
459
|
const se_GetMyProfileCommand = async (input, context) => {
|
|
434
460
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
435
461
|
const headers = {};
|
|
@@ -1001,6 +1027,22 @@ const de_DeleteProfileCommand = async (output, context) => {
|
|
|
1001
1027
|
return contents;
|
|
1002
1028
|
};
|
|
1003
1029
|
exports.de_DeleteProfileCommand = de_DeleteProfileCommand;
|
|
1030
|
+
const de_GenerateDownloadUrlCommand = async (output, context) => {
|
|
1031
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1032
|
+
return de_CommandError(output, context);
|
|
1033
|
+
}
|
|
1034
|
+
const contents = (0, smithy_client_1.map)({
|
|
1035
|
+
$metadata: deserializeMetadata(output),
|
|
1036
|
+
});
|
|
1037
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1038
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1039
|
+
'downloadUrl': smithy_client_1.expectString,
|
|
1040
|
+
'expiresInSeconds': smithy_client_1.expectInt32,
|
|
1041
|
+
});
|
|
1042
|
+
Object.assign(contents, doc);
|
|
1043
|
+
return contents;
|
|
1044
|
+
};
|
|
1045
|
+
exports.de_GenerateDownloadUrlCommand = de_GenerateDownloadUrlCommand;
|
|
1004
1046
|
const de_GenerateUploadUrlCommand = async (output, context) => {
|
|
1005
1047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1006
1048
|
return de_CommandError(output, context);
|
|
@@ -1018,6 +1060,21 @@ const de_GenerateUploadUrlCommand = async (output, context) => {
|
|
|
1018
1060
|
return contents;
|
|
1019
1061
|
};
|
|
1020
1062
|
exports.de_GenerateUploadUrlCommand = de_GenerateUploadUrlCommand;
|
|
1063
|
+
const de_GetLivenessStatusCommand = async (output, context) => {
|
|
1064
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1065
|
+
return de_CommandError(output, context);
|
|
1066
|
+
}
|
|
1067
|
+
const contents = (0, smithy_client_1.map)({
|
|
1068
|
+
$metadata: deserializeMetadata(output),
|
|
1069
|
+
});
|
|
1070
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1071
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1072
|
+
'status': smithy_client_1.expectString,
|
|
1073
|
+
});
|
|
1074
|
+
Object.assign(contents, doc);
|
|
1075
|
+
return contents;
|
|
1076
|
+
};
|
|
1077
|
+
exports.de_GetLivenessStatusCommand = de_GetLivenessStatusCommand;
|
|
1021
1078
|
const de_GetMyProfileCommand = async (output, context) => {
|
|
1022
1079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1023
1080
|
return de_CommandError(output, context);
|
|
@@ -1041,6 +1098,7 @@ const de_GetMyProfileCommand = async (output, context) => {
|
|
|
1041
1098
|
'educationLevel': smithy_client_1.expectString,
|
|
1042
1099
|
'exercise': smithy_client_1.expectString,
|
|
1043
1100
|
'familyPlans': smithy_client_1.expectString,
|
|
1101
|
+
'fieldModerationStatus': smithy_client_1._json,
|
|
1044
1102
|
'gender': smithy_client_1.expectString,
|
|
1045
1103
|
'height': smithy_client_1.expectInt32,
|
|
1046
1104
|
'hometown': smithy_client_1.expectString,
|
|
@@ -1092,6 +1150,7 @@ const de_GetProfileCommand = async (output, context) => {
|
|
|
1092
1150
|
'educationLevel': smithy_client_1.expectString,
|
|
1093
1151
|
'exercise': smithy_client_1.expectString,
|
|
1094
1152
|
'familyPlans': smithy_client_1.expectString,
|
|
1153
|
+
'fieldModerationStatus': smithy_client_1._json,
|
|
1095
1154
|
'gender': smithy_client_1.expectString,
|
|
1096
1155
|
'height': smithy_client_1.expectInt32,
|
|
1097
1156
|
'hometown': smithy_client_1.expectString,
|
|
@@ -1344,6 +1403,7 @@ const deserializeMetadata = (output) => ({
|
|
|
1344
1403
|
cfId: output.headers["x-amz-cf-id"],
|
|
1345
1404
|
});
|
|
1346
1405
|
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
|
|
1406
|
+
const _k = "key";
|
|
1347
1407
|
const _l = "lat";
|
|
1348
1408
|
const _lo = "lon";
|
|
1349
1409
|
const _mI = "matchId";
|
package/dist-es/OneHook.js
CHANGED
|
@@ -7,8 +7,10 @@ import { CreateLivenessSessionCommand, } from "./commands/CreateLivenessSessionC
|
|
|
7
7
|
import { DeleteMatchMessagesCommand, } from "./commands/DeleteMatchMessagesCommand";
|
|
8
8
|
import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
|
|
9
9
|
import { DiscoverCommand, } from "./commands/DiscoverCommand";
|
|
10
|
+
import { GenerateDownloadUrlCommand, } from "./commands/GenerateDownloadUrlCommand";
|
|
10
11
|
import { GenerateInviteCommand, } from "./commands/GenerateInviteCommand";
|
|
11
12
|
import { GenerateUploadUrlCommand, } from "./commands/GenerateUploadUrlCommand";
|
|
13
|
+
import { GetLivenessStatusCommand, } from "./commands/GetLivenessStatusCommand";
|
|
12
14
|
import { GetMatchCommand, } from "./commands/GetMatchCommand";
|
|
13
15
|
import { GetMyProfileCommand, } from "./commands/GetMyProfileCommand";
|
|
14
16
|
import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
|
|
@@ -63,7 +65,9 @@ const commands = {
|
|
|
63
65
|
CompleteLivenessSessionCommand,
|
|
64
66
|
CreateLivenessSessionCommand,
|
|
65
67
|
DeleteProfileCommand,
|
|
68
|
+
GenerateDownloadUrlCommand,
|
|
66
69
|
GenerateUploadUrlCommand,
|
|
70
|
+
GetLivenessStatusCommand,
|
|
67
71
|
GetMyProfileCommand,
|
|
68
72
|
GetProfileCommand,
|
|
69
73
|
UpdateProfileCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GenerateDownloadUrlCommand, se_GenerateDownloadUrlCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class GenerateDownloadUrlCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GenerateDownloadUrl", {})
|
|
12
|
+
.n("OneHookClient", "GenerateDownloadUrlCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GenerateDownloadUrlCommand)
|
|
15
|
+
.de(de_GenerateDownloadUrlCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetLivenessStatusCommand, se_GetLivenessStatusCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class GetLivenessStatusCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetLivenessStatus", {})
|
|
12
|
+
.n("OneHookClient", "GetLivenessStatusCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetLivenessStatusCommand)
|
|
15
|
+
.de(de_GetLivenessStatusCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -24,7 +24,9 @@ export * from "./UpdatePreferencesCommand";
|
|
|
24
24
|
export * from "./CompleteLivenessSessionCommand";
|
|
25
25
|
export * from "./CreateLivenessSessionCommand";
|
|
26
26
|
export * from "./DeleteProfileCommand";
|
|
27
|
+
export * from "./GenerateDownloadUrlCommand";
|
|
27
28
|
export * from "./GenerateUploadUrlCommand";
|
|
29
|
+
export * from "./GetLivenessStatusCommand";
|
|
28
30
|
export * from "./GetMyProfileCommand";
|
|
29
31
|
export * from "./GetProfileCommand";
|
|
30
32
|
export * from "./UpdateProfileCommand";
|
|
@@ -383,6 +383,20 @@ export const se_DeleteProfileCommand = async (input, context) => {
|
|
|
383
383
|
.b(body);
|
|
384
384
|
return b.build();
|
|
385
385
|
};
|
|
386
|
+
export const se_GenerateDownloadUrlCommand = async (input, context) => {
|
|
387
|
+
const b = rb(input, context);
|
|
388
|
+
const headers = {};
|
|
389
|
+
b.bp("/profile/media/download-url");
|
|
390
|
+
const query = map({
|
|
391
|
+
[_k]: [, __expectNonNull(input[_k], `key`)],
|
|
392
|
+
});
|
|
393
|
+
let body;
|
|
394
|
+
b.m("GET")
|
|
395
|
+
.h(headers)
|
|
396
|
+
.q(query)
|
|
397
|
+
.b(body);
|
|
398
|
+
return b.build();
|
|
399
|
+
};
|
|
386
400
|
export const se_GenerateUploadUrlCommand = async (input, context) => {
|
|
387
401
|
const b = rb(input, context);
|
|
388
402
|
const headers = {
|
|
@@ -399,6 +413,16 @@ export const se_GenerateUploadUrlCommand = async (input, context) => {
|
|
|
399
413
|
.b(body);
|
|
400
414
|
return b.build();
|
|
401
415
|
};
|
|
416
|
+
export const se_GetLivenessStatusCommand = async (input, context) => {
|
|
417
|
+
const b = rb(input, context);
|
|
418
|
+
const headers = {};
|
|
419
|
+
b.bp("/profile/liveness/status");
|
|
420
|
+
let body;
|
|
421
|
+
b.m("GET")
|
|
422
|
+
.h(headers)
|
|
423
|
+
.b(body);
|
|
424
|
+
return b.build();
|
|
425
|
+
};
|
|
402
426
|
export const se_GetMyProfileCommand = async (input, context) => {
|
|
403
427
|
const b = rb(input, context);
|
|
404
428
|
const headers = {};
|
|
@@ -935,6 +959,21 @@ export const de_DeleteProfileCommand = async (output, context) => {
|
|
|
935
959
|
Object.assign(contents, doc);
|
|
936
960
|
return contents;
|
|
937
961
|
};
|
|
962
|
+
export const de_GenerateDownloadUrlCommand = async (output, context) => {
|
|
963
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
964
|
+
return de_CommandError(output, context);
|
|
965
|
+
}
|
|
966
|
+
const contents = map({
|
|
967
|
+
$metadata: deserializeMetadata(output),
|
|
968
|
+
});
|
|
969
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
970
|
+
const doc = take(data, {
|
|
971
|
+
'downloadUrl': __expectString,
|
|
972
|
+
'expiresInSeconds': __expectInt32,
|
|
973
|
+
});
|
|
974
|
+
Object.assign(contents, doc);
|
|
975
|
+
return contents;
|
|
976
|
+
};
|
|
938
977
|
export const de_GenerateUploadUrlCommand = async (output, context) => {
|
|
939
978
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
940
979
|
return de_CommandError(output, context);
|
|
@@ -951,6 +990,20 @@ export const de_GenerateUploadUrlCommand = async (output, context) => {
|
|
|
951
990
|
Object.assign(contents, doc);
|
|
952
991
|
return contents;
|
|
953
992
|
};
|
|
993
|
+
export const de_GetLivenessStatusCommand = async (output, context) => {
|
|
994
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
995
|
+
return de_CommandError(output, context);
|
|
996
|
+
}
|
|
997
|
+
const contents = map({
|
|
998
|
+
$metadata: deserializeMetadata(output),
|
|
999
|
+
});
|
|
1000
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1001
|
+
const doc = take(data, {
|
|
1002
|
+
'status': __expectString,
|
|
1003
|
+
});
|
|
1004
|
+
Object.assign(contents, doc);
|
|
1005
|
+
return contents;
|
|
1006
|
+
};
|
|
954
1007
|
export const de_GetMyProfileCommand = async (output, context) => {
|
|
955
1008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
956
1009
|
return de_CommandError(output, context);
|
|
@@ -974,6 +1027,7 @@ export const de_GetMyProfileCommand = async (output, context) => {
|
|
|
974
1027
|
'educationLevel': __expectString,
|
|
975
1028
|
'exercise': __expectString,
|
|
976
1029
|
'familyPlans': __expectString,
|
|
1030
|
+
'fieldModerationStatus': _json,
|
|
977
1031
|
'gender': __expectString,
|
|
978
1032
|
'height': __expectInt32,
|
|
979
1033
|
'hometown': __expectString,
|
|
@@ -1024,6 +1078,7 @@ export const de_GetProfileCommand = async (output, context) => {
|
|
|
1024
1078
|
'educationLevel': __expectString,
|
|
1025
1079
|
'exercise': __expectString,
|
|
1026
1080
|
'familyPlans': __expectString,
|
|
1081
|
+
'fieldModerationStatus': _json,
|
|
1027
1082
|
'gender': __expectString,
|
|
1028
1083
|
'height': __expectInt32,
|
|
1029
1084
|
'hometown': __expectString,
|
|
@@ -1268,6 +1323,7 @@ const deserializeMetadata = (output) => ({
|
|
|
1268
1323
|
cfId: output.headers["x-amz-cf-id"],
|
|
1269
1324
|
});
|
|
1270
1325
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
1326
|
+
const _k = "key";
|
|
1271
1327
|
const _l = "lat";
|
|
1272
1328
|
const _lo = "lon";
|
|
1273
1329
|
const _mI = "matchId";
|
package/dist-types/OneHook.d.ts
CHANGED
|
@@ -7,8 +7,10 @@ import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput }
|
|
|
7
7
|
import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
|
|
8
8
|
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
|
|
9
9
|
import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/DiscoverCommand";
|
|
10
|
+
import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
|
|
10
11
|
import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
|
|
11
12
|
import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
|
|
13
|
+
import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "./commands/GetLivenessStatusCommand";
|
|
12
14
|
import { GetMatchCommandInput, GetMatchCommandOutput } from "./commands/GetMatchCommand";
|
|
13
15
|
import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "./commands/GetMyProfileCommand";
|
|
14
16
|
import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
|
|
@@ -194,12 +196,25 @@ export interface OneHook {
|
|
|
194
196
|
deleteProfile(args: DeleteProfileCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProfileCommandOutput>;
|
|
195
197
|
deleteProfile(args: DeleteProfileCommandInput, cb: (err: any, data?: DeleteProfileCommandOutput) => void): void;
|
|
196
198
|
deleteProfile(args: DeleteProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProfileCommandOutput) => void): void;
|
|
199
|
+
/**
|
|
200
|
+
* @see {@link GenerateDownloadUrlCommand}
|
|
201
|
+
*/
|
|
202
|
+
generateDownloadUrl(args: GenerateDownloadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GenerateDownloadUrlCommandOutput>;
|
|
203
|
+
generateDownloadUrl(args: GenerateDownloadUrlCommandInput, cb: (err: any, data?: GenerateDownloadUrlCommandOutput) => void): void;
|
|
204
|
+
generateDownloadUrl(args: GenerateDownloadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateDownloadUrlCommandOutput) => void): void;
|
|
197
205
|
/**
|
|
198
206
|
* @see {@link GenerateUploadUrlCommand}
|
|
199
207
|
*/
|
|
200
208
|
generateUploadUrl(args: GenerateUploadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GenerateUploadUrlCommandOutput>;
|
|
201
209
|
generateUploadUrl(args: GenerateUploadUrlCommandInput, cb: (err: any, data?: GenerateUploadUrlCommandOutput) => void): void;
|
|
202
210
|
generateUploadUrl(args: GenerateUploadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateUploadUrlCommandOutput) => void): void;
|
|
211
|
+
/**
|
|
212
|
+
* @see {@link GetLivenessStatusCommand}
|
|
213
|
+
*/
|
|
214
|
+
getLivenessStatus(): Promise<GetLivenessStatusCommandOutput>;
|
|
215
|
+
getLivenessStatus(args: GetLivenessStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetLivenessStatusCommandOutput>;
|
|
216
|
+
getLivenessStatus(args: GetLivenessStatusCommandInput, cb: (err: any, data?: GetLivenessStatusCommandOutput) => void): void;
|
|
217
|
+
getLivenessStatus(args: GetLivenessStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLivenessStatusCommandOutput) => void): void;
|
|
203
218
|
/**
|
|
204
219
|
* @see {@link GetMyProfileCommand}
|
|
205
220
|
*/
|
|
@@ -7,8 +7,10 @@ import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput }
|
|
|
7
7
|
import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
|
|
8
8
|
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
|
|
9
9
|
import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/DiscoverCommand";
|
|
10
|
+
import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
|
|
10
11
|
import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
|
|
11
12
|
import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
|
|
13
|
+
import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "./commands/GetLivenessStatusCommand";
|
|
12
14
|
import { GetMatchCommandInput, GetMatchCommandOutput } from "./commands/GetMatchCommand";
|
|
13
15
|
import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "./commands/GetMyProfileCommand";
|
|
14
16
|
import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
|
|
@@ -47,11 +49,11 @@ export { __Client };
|
|
|
47
49
|
/**
|
|
48
50
|
* @public
|
|
49
51
|
*/
|
|
50
|
-
export type ServiceInputTypes = AuthSocialCommandInput | ClaimPreKeyBundleCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DiscoverCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | RegisterPhoneCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpgradeUserCommandInput | UploadPreKeysCommandInput | ValidateInviteCommandInput;
|
|
52
|
+
export type ServiceInputTypes = AuthSocialCommandInput | ClaimPreKeyBundleCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | RegisterPhoneCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpgradeUserCommandInput | UploadPreKeysCommandInput | ValidateInviteCommandInput;
|
|
51
53
|
/**
|
|
52
54
|
* @public
|
|
53
55
|
*/
|
|
54
|
-
export type ServiceOutputTypes = AuthSocialCommandOutput | ClaimPreKeyBundleCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DiscoverCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | RegisterPhoneCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpgradeUserCommandOutput | UploadPreKeysCommandOutput | ValidateInviteCommandOutput;
|
|
56
|
+
export type ServiceOutputTypes = AuthSocialCommandOutput | ClaimPreKeyBundleCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | RegisterPhoneCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpgradeUserCommandOutput | UploadPreKeysCommandOutput | ValidateInviteCommandOutput;
|
|
55
57
|
/**
|
|
56
58
|
* @public
|
|
57
59
|
*/
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { MediaDownloadUrlRequest, MediaDownloadUrlResponse } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GenerateDownloadUrlCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GenerateDownloadUrlCommandInput extends MediaDownloadUrlRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GenerateDownloadUrlCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GenerateDownloadUrlCommandOutput extends MediaDownloadUrlResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GenerateDownloadUrlCommand_base: {
|
|
25
|
+
new (input: GenerateDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GenerateDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Issues a short-lived presigned GET URL for a private media object so authorized clients can
|
|
31
|
+
* display it. The media bucket blocks all public access, so this is the only read path. The
|
|
32
|
+
* caller must be authenticated; a caller may fetch a URL for their own media, or for another
|
|
33
|
+
* user's media only when that object is part of that user's moderation-visible profile.
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { OneHookClient, GenerateDownloadUrlCommand } from "onehook-api-client"; // ES Modules import
|
|
38
|
+
* // const { OneHookClient, GenerateDownloadUrlCommand } = require("onehook-api-client"); // CommonJS import
|
|
39
|
+
* const client = new OneHookClient(config);
|
|
40
|
+
* const input = { // MediaDownloadUrlRequest
|
|
41
|
+
* key: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new GenerateDownloadUrlCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // MediaDownloadUrlResponse
|
|
46
|
+
* // downloadUrl: "STRING_VALUE", // required
|
|
47
|
+
* // expiresInSeconds: Number("int"), // required
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param GenerateDownloadUrlCommandInput - {@link GenerateDownloadUrlCommandInput}
|
|
53
|
+
* @returns {@link GenerateDownloadUrlCommandOutput}
|
|
54
|
+
* @see {@link GenerateDownloadUrlCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link GenerateDownloadUrlCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link BadRequestError} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link NotFoundError} (client fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InternalServerError} (server fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link OneHookServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
66
|
+
*
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export declare class GenerateDownloadUrlCommand extends GenerateDownloadUrlCommand_base {
|
|
71
|
+
/** @internal type navigation helper, not in runtime. */
|
|
72
|
+
protected static __types: {
|
|
73
|
+
api: {
|
|
74
|
+
input: MediaDownloadUrlRequest;
|
|
75
|
+
output: MediaDownloadUrlResponse;
|
|
76
|
+
};
|
|
77
|
+
sdk: {
|
|
78
|
+
input: GenerateDownloadUrlCommandInput;
|
|
79
|
+
output: GenerateDownloadUrlCommandOutput;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { LivenessStatusResponse } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetLivenessStatusCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetLivenessStatusCommandInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetLivenessStatusCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetLivenessStatusCommandOutput extends LivenessStatusResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetLivenessStatusCommand_base: {
|
|
25
|
+
new (input: GetLivenessStatusCommandInput): import("@smithy/smithy-client").CommandImpl<GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetLivenessStatusCommandInput]): import("@smithy/smithy-client").CommandImpl<GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Returns the authoritative liveness verification status for the authenticated caller, so clients
|
|
31
|
+
* can render an accurate state (NONE / PENDING / APPROVED / REJECTED) that survives reloads —
|
|
32
|
+
* rather than inferring it from the boolean `verified` flag, which cannot distinguish
|
|
33
|
+
* "under review" from "rejected".
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { OneHookClient, GetLivenessStatusCommand } from "onehook-api-client"; // ES Modules import
|
|
38
|
+
* // const { OneHookClient, GetLivenessStatusCommand } = require("onehook-api-client"); // CommonJS import
|
|
39
|
+
* const client = new OneHookClient(config);
|
|
40
|
+
* const input = {};
|
|
41
|
+
* const command = new GetLivenessStatusCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // LivenessStatusResponse
|
|
44
|
+
* // status: "STRING_VALUE", // required
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param GetLivenessStatusCommandInput - {@link GetLivenessStatusCommandInput}
|
|
50
|
+
* @returns {@link GetLivenessStatusCommandOutput}
|
|
51
|
+
* @see {@link GetLivenessStatusCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link GetLivenessStatusCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link BadRequestError} (client fault)
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InternalServerError} (server fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link OneHookServiceException}
|
|
60
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
61
|
+
*
|
|
62
|
+
*
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export declare class GetLivenessStatusCommand extends GetLivenessStatusCommand_base {
|
|
66
|
+
/** @internal type navigation helper, not in runtime. */
|
|
67
|
+
protected static __types: {
|
|
68
|
+
api: {
|
|
69
|
+
input: {};
|
|
70
|
+
output: LivenessStatusResponse;
|
|
71
|
+
};
|
|
72
|
+
sdk: {
|
|
73
|
+
input: GetLivenessStatusCommandInput;
|
|
74
|
+
output: GetLivenessStatusCommandOutput;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -70,6 +70,9 @@ declare const GetMyProfileCommand_base: {
|
|
|
70
70
|
* // ],
|
|
71
71
|
* // audioPrompt: "STRING_VALUE",
|
|
72
72
|
* // moderationStatus: "STRING_VALUE",
|
|
73
|
+
* // fieldModerationStatus: { // StringMap
|
|
74
|
+
* // "<keys>": "STRING_VALUE",
|
|
75
|
+
* // },
|
|
73
76
|
* // causes: [
|
|
74
77
|
* // "STRING_VALUE",
|
|
75
78
|
* // ],
|
|
@@ -82,7 +85,7 @@ declare const GetMyProfileCommand_base: {
|
|
|
82
85
|
* // imageKey: "STRING_VALUE",
|
|
83
86
|
* // },
|
|
84
87
|
* // ],
|
|
85
|
-
* // socialLinks: {
|
|
88
|
+
* // socialLinks: {
|
|
86
89
|
* // "<keys>": "STRING_VALUE",
|
|
87
90
|
* // },
|
|
88
91
|
* // openers: [ // OpenerList
|
|
@@ -71,6 +71,9 @@ declare const GetProfileCommand_base: {
|
|
|
71
71
|
* // ],
|
|
72
72
|
* // audioPrompt: "STRING_VALUE",
|
|
73
73
|
* // moderationStatus: "STRING_VALUE",
|
|
74
|
+
* // fieldModerationStatus: { // StringMap
|
|
75
|
+
* // "<keys>": "STRING_VALUE",
|
|
76
|
+
* // },
|
|
74
77
|
* // causes: [
|
|
75
78
|
* // "STRING_VALUE",
|
|
76
79
|
* // ],
|
|
@@ -83,7 +86,7 @@ declare const GetProfileCommand_base: {
|
|
|
83
86
|
* // imageKey: "STRING_VALUE",
|
|
84
87
|
* // },
|
|
85
88
|
* // ],
|
|
86
|
-
* // socialLinks: {
|
|
89
|
+
* // socialLinks: {
|
|
87
90
|
* // "<keys>": "STRING_VALUE",
|
|
88
91
|
* // },
|
|
89
92
|
* // openers: [ // OpenerList
|
|
@@ -24,7 +24,9 @@ export * from "./UpdatePreferencesCommand";
|
|
|
24
24
|
export * from "./CompleteLivenessSessionCommand";
|
|
25
25
|
export * from "./CreateLivenessSessionCommand";
|
|
26
26
|
export * from "./DeleteProfileCommand";
|
|
27
|
+
export * from "./GenerateDownloadUrlCommand";
|
|
27
28
|
export * from "./GenerateUploadUrlCommand";
|
|
29
|
+
export * from "./GetLivenessStatusCommand";
|
|
28
30
|
export * from "./GetMyProfileCommand";
|
|
29
31
|
export * from "./GetProfileCommand";
|
|
30
32
|
export * from "./UpdateProfileCommand";
|
|
@@ -427,6 +427,31 @@ export interface CreateLivenessSessionResponse {
|
|
|
427
427
|
export interface DeleteProfileRequest {
|
|
428
428
|
userId: string | undefined;
|
|
429
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* @public
|
|
432
|
+
*/
|
|
433
|
+
export interface MediaDownloadUrlRequest {
|
|
434
|
+
/**
|
|
435
|
+
* The S3 object key to sign, e.g. "media/\{userId\}/\{uuid\}".
|
|
436
|
+
* @public
|
|
437
|
+
*/
|
|
438
|
+
key: string | undefined;
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* @public
|
|
442
|
+
*/
|
|
443
|
+
export interface MediaDownloadUrlResponse {
|
|
444
|
+
/**
|
|
445
|
+
* Short-lived presigned GET URL for the requested object.
|
|
446
|
+
* @public
|
|
447
|
+
*/
|
|
448
|
+
downloadUrl: string | undefined;
|
|
449
|
+
/**
|
|
450
|
+
* Seconds until the presigned URL expires.
|
|
451
|
+
* @public
|
|
452
|
+
*/
|
|
453
|
+
expiresInSeconds: number | undefined;
|
|
454
|
+
}
|
|
430
455
|
/**
|
|
431
456
|
* @public
|
|
432
457
|
*/
|
|
@@ -442,6 +467,16 @@ export interface MediaUploadUrlResponse {
|
|
|
442
467
|
objectKey: string | undefined;
|
|
443
468
|
formData: Record<string, string> | undefined;
|
|
444
469
|
}
|
|
470
|
+
/**
|
|
471
|
+
* @public
|
|
472
|
+
*/
|
|
473
|
+
export interface LivenessStatusResponse {
|
|
474
|
+
/**
|
|
475
|
+
* Authoritative liveness status: one of NONE | PENDING | APPROVED | REJECTED.
|
|
476
|
+
* @public
|
|
477
|
+
*/
|
|
478
|
+
status: string | undefined;
|
|
479
|
+
}
|
|
445
480
|
/**
|
|
446
481
|
* A user-authored conversation opener: free text plus an optional image.
|
|
447
482
|
* The image (if present) is moderated by the same async decency flow as profile pictures
|
|
@@ -496,6 +531,11 @@ export interface ProfileResponse {
|
|
|
496
531
|
* @public
|
|
497
532
|
*/
|
|
498
533
|
moderationStatus?: string | undefined;
|
|
534
|
+
/**
|
|
535
|
+
* Granular status per field and asset key (e.g. bio -> APPROVED, picture key -> APPROVED, prompt -> REJECTED)
|
|
536
|
+
* @public
|
|
537
|
+
*/
|
|
538
|
+
fieldModerationStatus?: Record<string, string> | undefined;
|
|
499
539
|
causes?: (string)[] | undefined;
|
|
500
540
|
communities?: (string)[] | undefined;
|
|
501
541
|
qualities?: (string)[] | undefined;
|
|
@@ -6,8 +6,10 @@ import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput }
|
|
|
6
6
|
import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "../commands/DeleteMatchMessagesCommand";
|
|
7
7
|
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "../commands/DeleteProfileCommand";
|
|
8
8
|
import { DiscoverCommandInput, DiscoverCommandOutput } from "../commands/DiscoverCommand";
|
|
9
|
+
import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "../commands/GenerateDownloadUrlCommand";
|
|
9
10
|
import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "../commands/GenerateInviteCommand";
|
|
10
11
|
import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "../commands/GenerateUploadUrlCommand";
|
|
12
|
+
import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "../commands/GetLivenessStatusCommand";
|
|
11
13
|
import { GetMatchCommandInput, GetMatchCommandOutput } from "../commands/GetMatchCommand";
|
|
12
14
|
import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "../commands/GetMyProfileCommand";
|
|
13
15
|
import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "../commands/GetPreferencesCommand";
|
|
@@ -140,10 +142,18 @@ export declare const se_CreateLivenessSessionCommand: (input: CreateLivenessSess
|
|
|
140
142
|
* serializeAws_restJson1DeleteProfileCommand
|
|
141
143
|
*/
|
|
142
144
|
export declare const se_DeleteProfileCommand: (input: DeleteProfileCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
145
|
+
/**
|
|
146
|
+
* serializeAws_restJson1GenerateDownloadUrlCommand
|
|
147
|
+
*/
|
|
148
|
+
export declare const se_GenerateDownloadUrlCommand: (input: GenerateDownloadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
143
149
|
/**
|
|
144
150
|
* serializeAws_restJson1GenerateUploadUrlCommand
|
|
145
151
|
*/
|
|
146
152
|
export declare const se_GenerateUploadUrlCommand: (input: GenerateUploadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
153
|
+
/**
|
|
154
|
+
* serializeAws_restJson1GetLivenessStatusCommand
|
|
155
|
+
*/
|
|
156
|
+
export declare const se_GetLivenessStatusCommand: (input: GetLivenessStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
147
157
|
/**
|
|
148
158
|
* serializeAws_restJson1GetMyProfileCommand
|
|
149
159
|
*/
|
|
@@ -284,10 +294,18 @@ export declare const de_CreateLivenessSessionCommand: (output: __HttpResponse, c
|
|
|
284
294
|
* deserializeAws_restJson1DeleteProfileCommand
|
|
285
295
|
*/
|
|
286
296
|
export declare const de_DeleteProfileCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteProfileCommandOutput>;
|
|
297
|
+
/**
|
|
298
|
+
* deserializeAws_restJson1GenerateDownloadUrlCommand
|
|
299
|
+
*/
|
|
300
|
+
export declare const de_GenerateDownloadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateDownloadUrlCommandOutput>;
|
|
287
301
|
/**
|
|
288
302
|
* deserializeAws_restJson1GenerateUploadUrlCommand
|
|
289
303
|
*/
|
|
290
304
|
export declare const de_GenerateUploadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateUploadUrlCommandOutput>;
|
|
305
|
+
/**
|
|
306
|
+
* deserializeAws_restJson1GetLivenessStatusCommand
|
|
307
|
+
*/
|
|
308
|
+
export declare const de_GetLivenessStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLivenessStatusCommandOutput>;
|
|
291
309
|
/**
|
|
292
310
|
* deserializeAws_restJson1GetMyProfileCommand
|
|
293
311
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "onehook-api-client",
|
|
3
3
|
"description": "OneHook API Client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.6",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -93,5 +93,21 @@
|
|
|
93
93
|
"require": "./dist-cjs/graphql/types.js"
|
|
94
94
|
},
|
|
95
95
|
"./package.json": "./package.json"
|
|
96
|
-
}
|
|
96
|
+
},
|
|
97
|
+
"license": "UNLICENSED",
|
|
98
|
+
"author": "OneHook",
|
|
99
|
+
"homepage": "https://onehook.club",
|
|
100
|
+
"keywords": [
|
|
101
|
+
"onehook",
|
|
102
|
+
"onehook-api-client",
|
|
103
|
+
"api",
|
|
104
|
+
"api-client",
|
|
105
|
+
"sdk",
|
|
106
|
+
"client",
|
|
107
|
+
"rest",
|
|
108
|
+
"graphql",
|
|
109
|
+
"smithy",
|
|
110
|
+
"typescript",
|
|
111
|
+
"proprietary"
|
|
112
|
+
]
|
|
97
113
|
}
|