onehook-api-client 1.0.25 → 1.0.27
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/README.md +21 -0
- package/dist-cjs/OneHook.js +6 -0
- package/dist-cjs/commands/CreateAdminInviteCommand.js +21 -0
- package/dist-cjs/commands/SendAdminLinkOtpCommand.js +21 -0
- package/dist-cjs/commands/VerifyAdminLinkOtpCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +101 -3
- package/dist-cjs/telemetry/index.js +9 -3
- package/dist-es/OneHook.js +6 -0
- package/dist-es/commands/CreateAdminInviteCommand.js +17 -0
- package/dist-es/commands/SendAdminLinkOtpCommand.js +17 -0
- package/dist-es/commands/VerifyAdminLinkOtpCommand.js +17 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +92 -0
- package/dist-es/telemetry/index.js +9 -3
- package/dist-types/OneHook.d.ts +21 -0
- package/dist-types/OneHookClient.d.ts +5 -2
- package/dist-types/commands/CreateAdminInviteCommand.d.ts +87 -0
- package/dist-types/commands/GetChatSettingsCommand.d.ts +1 -0
- package/dist-types/commands/SendAdminLinkOtpCommand.d.ts +83 -0
- package/dist-types/commands/UpdateChatSettingsCommand.d.ts +2 -0
- package/dist-types/commands/VerifyAdminLinkOtpCommand.d.ts +84 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +60 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/telemetry/index.d.ts +4 -1
- package/package.json +1 -1
- package/telemetry/TelemetryCatalog.kt +8 -5
- package/telemetry/TelemetryCatalog.swift +11 -5
- package/telemetry/telemetry-catalog.json +54 -3
package/README.md
CHANGED
|
@@ -290,6 +290,13 @@ AuthSocial
|
|
|
290
290
|
</details>
|
|
291
291
|
<details>
|
|
292
292
|
<summary>
|
|
293
|
+
CreateAdminInvite
|
|
294
|
+
</summary>
|
|
295
|
+
|
|
296
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/CreateAdminInviteCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/CreateAdminInviteCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/CreateAdminInviteCommandOutput/)
|
|
297
|
+
</details>
|
|
298
|
+
<details>
|
|
299
|
+
<summary>
|
|
293
300
|
GenerateInvite
|
|
294
301
|
</summary>
|
|
295
302
|
|
|
@@ -367,6 +374,13 @@ RequestPhoneUpdateOtp
|
|
|
367
374
|
</details>
|
|
368
375
|
<details>
|
|
369
376
|
<summary>
|
|
377
|
+
SendAdminLinkOtp
|
|
378
|
+
</summary>
|
|
379
|
+
|
|
380
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/SendAdminLinkOtpCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/SendAdminLinkOtpCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/SendAdminLinkOtpCommandOutput/)
|
|
381
|
+
</details>
|
|
382
|
+
<details>
|
|
383
|
+
<summary>
|
|
370
384
|
UnlinkSocial
|
|
371
385
|
</summary>
|
|
372
386
|
|
|
@@ -402,6 +416,13 @@ ValidateInvite
|
|
|
402
416
|
</details>
|
|
403
417
|
<details>
|
|
404
418
|
<summary>
|
|
419
|
+
VerifyAdminLinkOtp
|
|
420
|
+
</summary>
|
|
421
|
+
|
|
422
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/VerifyAdminLinkOtpCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/VerifyAdminLinkOtpCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/VerifyAdminLinkOtpCommandOutput/)
|
|
423
|
+
</details>
|
|
424
|
+
<details>
|
|
425
|
+
<summary>
|
|
405
426
|
Discover
|
|
406
427
|
</summary>
|
|
407
428
|
|
package/dist-cjs/OneHook.js
CHANGED
|
@@ -5,6 +5,7 @@ const OneHookClient_1 = require("./OneHookClient");
|
|
|
5
5
|
const AuthSocialCommand_1 = require("./commands/AuthSocialCommand");
|
|
6
6
|
const CompleteLivenessSessionCommand_1 = require("./commands/CompleteLivenessSessionCommand");
|
|
7
7
|
const CompleteOnboardingCommand_1 = require("./commands/CompleteOnboardingCommand");
|
|
8
|
+
const CreateAdminInviteCommand_1 = require("./commands/CreateAdminInviteCommand");
|
|
8
9
|
const CreateLivenessSessionCommand_1 = require("./commands/CreateLivenessSessionCommand");
|
|
9
10
|
const CreateMediaDownloadUrlCommand_1 = require("./commands/CreateMediaDownloadUrlCommand");
|
|
10
11
|
const CreateMediaUploadUrlCommand_1 = require("./commands/CreateMediaUploadUrlCommand");
|
|
@@ -44,6 +45,7 @@ const RequestEmailOtpCommand_1 = require("./commands/RequestEmailOtpCommand");
|
|
|
44
45
|
const RequestPhoneOtpCommand_1 = require("./commands/RequestPhoneOtpCommand");
|
|
45
46
|
const RequestPhoneUpdateOtpCommand_1 = require("./commands/RequestPhoneUpdateOtpCommand");
|
|
46
47
|
const RevokeDeviceCommand_1 = require("./commands/RevokeDeviceCommand");
|
|
48
|
+
const SendAdminLinkOtpCommand_1 = require("./commands/SendAdminLinkOtpCommand");
|
|
47
49
|
const SwipeByUsernameCommand_1 = require("./commands/SwipeByUsernameCommand");
|
|
48
50
|
const SwipeCommand_1 = require("./commands/SwipeCommand");
|
|
49
51
|
const UnhookCommand_1 = require("./commands/UnhookCommand");
|
|
@@ -56,6 +58,7 @@ const UpdateProfileCommand_1 = require("./commands/UpdateProfileCommand");
|
|
|
56
58
|
const UpdateUsernameCommand_1 = require("./commands/UpdateUsernameCommand");
|
|
57
59
|
const UpgradeUserCommand_1 = require("./commands/UpgradeUserCommand");
|
|
58
60
|
const ValidateInviteCommand_1 = require("./commands/ValidateInviteCommand");
|
|
61
|
+
const VerifyAdminLinkOtpCommand_1 = require("./commands/VerifyAdminLinkOtpCommand");
|
|
59
62
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
60
63
|
const commands = {
|
|
61
64
|
GetAiContextMatchCommand: GetAiContextMatchCommand_1.GetAiContextMatchCommand,
|
|
@@ -71,6 +74,7 @@ const commands = {
|
|
|
71
74
|
RevokeDeviceCommand: RevokeDeviceCommand_1.RevokeDeviceCommand,
|
|
72
75
|
UpdateChatSettingsCommand: UpdateChatSettingsCommand_1.UpdateChatSettingsCommand,
|
|
73
76
|
AuthSocialCommand: AuthSocialCommand_1.AuthSocialCommand,
|
|
77
|
+
CreateAdminInviteCommand: CreateAdminInviteCommand_1.CreateAdminInviteCommand,
|
|
74
78
|
GenerateInviteCommand: GenerateInviteCommand_1.GenerateInviteCommand,
|
|
75
79
|
GetCredentialReadinessCommand: GetCredentialReadinessCommand_1.GetCredentialReadinessCommand,
|
|
76
80
|
GetUserCommand: GetUserCommand_1.GetUserCommand,
|
|
@@ -82,11 +86,13 @@ const commands = {
|
|
|
82
86
|
RequestEmailOtpCommand: RequestEmailOtpCommand_1.RequestEmailOtpCommand,
|
|
83
87
|
RequestPhoneOtpCommand: RequestPhoneOtpCommand_1.RequestPhoneOtpCommand,
|
|
84
88
|
RequestPhoneUpdateOtpCommand: RequestPhoneUpdateOtpCommand_1.RequestPhoneUpdateOtpCommand,
|
|
89
|
+
SendAdminLinkOtpCommand: SendAdminLinkOtpCommand_1.SendAdminLinkOtpCommand,
|
|
85
90
|
UnlinkSocialCommand: UnlinkSocialCommand_1.UnlinkSocialCommand,
|
|
86
91
|
UpdateEntitlementsCommand: UpdateEntitlementsCommand_1.UpdateEntitlementsCommand,
|
|
87
92
|
UpdatePhoneNumberCommand: UpdatePhoneNumberCommand_1.UpdatePhoneNumberCommand,
|
|
88
93
|
UpdateUsernameCommand: UpdateUsernameCommand_1.UpdateUsernameCommand,
|
|
89
94
|
ValidateInviteCommand: ValidateInviteCommand_1.ValidateInviteCommand,
|
|
95
|
+
VerifyAdminLinkOtpCommand: VerifyAdminLinkOtpCommand_1.VerifyAdminLinkOtpCommand,
|
|
90
96
|
DiscoverCommand: DiscoverCommand_1.DiscoverCommand,
|
|
91
97
|
GetNotificationPreferencesCommand: GetNotificationPreferencesCommand_1.GetNotificationPreferencesCommand,
|
|
92
98
|
GetPreferencesCommand: GetPreferencesCommand_1.GetPreferencesCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAdminInviteCommand = 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 CreateAdminInviteCommand 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", "CreateAdminInvite", {})
|
|
15
|
+
.n("OneHookClient", "CreateAdminInviteCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CreateAdminInviteCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CreateAdminInviteCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CreateAdminInviteCommand = CreateAdminInviteCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendAdminLinkOtpCommand = 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 SendAdminLinkOtpCommand 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", "SendAdminLinkOtp", {})
|
|
15
|
+
.n("OneHookClient", "SendAdminLinkOtpCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_SendAdminLinkOtpCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_SendAdminLinkOtpCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.SendAdminLinkOtpCommand = SendAdminLinkOtpCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerifyAdminLinkOtpCommand = 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 VerifyAdminLinkOtpCommand 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", "VerifyAdminLinkOtp", {})
|
|
15
|
+
.n("OneHookClient", "VerifyAdminLinkOtpCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_VerifyAdminLinkOtpCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_VerifyAdminLinkOtpCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.VerifyAdminLinkOtpCommand = VerifyAdminLinkOtpCommand;
|
|
@@ -14,6 +14,7 @@ tslib_1.__exportStar(require("./RegisterPushTokenCommand"), exports);
|
|
|
14
14
|
tslib_1.__exportStar(require("./RevokeDeviceCommand"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./UpdateChatSettingsCommand"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./AuthSocialCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./CreateAdminInviteCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./GenerateInviteCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./GetCredentialReadinessCommand"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./GetUserCommand"), exports);
|
|
@@ -25,11 +26,13 @@ tslib_1.__exportStar(require("./RegisterPhoneCommand"), exports);
|
|
|
25
26
|
tslib_1.__exportStar(require("./RequestEmailOtpCommand"), exports);
|
|
26
27
|
tslib_1.__exportStar(require("./RequestPhoneOtpCommand"), exports);
|
|
27
28
|
tslib_1.__exportStar(require("./RequestPhoneUpdateOtpCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./SendAdminLinkOtpCommand"), exports);
|
|
28
30
|
tslib_1.__exportStar(require("./UnlinkSocialCommand"), exports);
|
|
29
31
|
tslib_1.__exportStar(require("./UpdateEntitlementsCommand"), exports);
|
|
30
32
|
tslib_1.__exportStar(require("./UpdatePhoneNumberCommand"), exports);
|
|
31
33
|
tslib_1.__exportStar(require("./UpdateUsernameCommand"), exports);
|
|
32
34
|
tslib_1.__exportStar(require("./ValidateInviteCommand"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./VerifyAdminLinkOtpCommand"), exports);
|
|
33
36
|
tslib_1.__exportStar(require("./DiscoverCommand"), exports);
|
|
34
37
|
tslib_1.__exportStar(require("./GetNotificationPreferencesCommand"), exports);
|
|
35
38
|
tslib_1.__exportStar(require("./GetPreferencesCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_GetProfileCommand = void 0;
|
|
3
|
+
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_SwipeByUsernameCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_IndexLocationCommand = exports.se_GetRosesCommand = exports.se_GetReceivedLikesCommand = exports.se_GetPreferencesCommand = exports.se_GetNotificationPreferencesCommand = exports.se_DiscoverCommand = exports.se_VerifyAdminLinkOtpCommand = exports.se_ValidateInviteCommand = exports.se_UpdateUsernameCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_SendAdminLinkOtpCommand = exports.se_RequestPhoneUpdateOtpCommand = exports.se_RequestPhoneOtpCommand = exports.se_RequestEmailOtpCommand = exports.se_RegisterPhoneCommand = exports.se_LinkSocialCommand = exports.se_LinkEmailCommand = exports.se_GetUserIdByUsernameCommand = exports.se_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GetCredentialReadinessCommand = exports.se_GenerateInviteCommand = exports.se_CreateAdminInviteCommand = exports.se_AuthSocialCommand = exports.se_UpdateChatSettingsCommand = exports.se_RevokeDeviceCommand = exports.se_RegisterPushTokenCommand = exports.se_RegisterDeviceCommand = exports.se_ListMyDevicesCommand = exports.se_GetParticipantRegistryCommand = exports.se_GetChatSettingsCommand = exports.se_DeletePushTokenCommand = exports.se_DeleteMatchMessagesCommand = exports.se_CreateMediaUploadUrlCommand = exports.se_CreateMediaDownloadUrlCommand = exports.se_GetAiContextMatchCommand = void 0;
|
|
4
|
+
exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_IndexLocationCommand = exports.de_GetRosesCommand = exports.de_GetReceivedLikesCommand = exports.de_GetPreferencesCommand = exports.de_GetNotificationPreferencesCommand = exports.de_DiscoverCommand = exports.de_VerifyAdminLinkOtpCommand = exports.de_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_SendAdminLinkOtpCommand = exports.de_RequestPhoneUpdateOtpCommand = exports.de_RequestPhoneOtpCommand = exports.de_RequestEmailOtpCommand = exports.de_RegisterPhoneCommand = exports.de_LinkSocialCommand = exports.de_LinkEmailCommand = exports.de_GetUserIdByUsernameCommand = exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = exports.de_GetCredentialReadinessCommand = exports.de_GenerateInviteCommand = exports.de_CreateAdminInviteCommand = exports.de_AuthSocialCommand = exports.de_UpdateChatSettingsCommand = exports.de_RevokeDeviceCommand = exports.de_RegisterPushTokenCommand = exports.de_RegisterDeviceCommand = exports.de_ListMyDevicesCommand = exports.de_GetParticipantRegistryCommand = exports.de_GetChatSettingsCommand = exports.de_DeletePushTokenCommand = exports.de_DeleteMatchMessagesCommand = exports.de_CreateMediaUploadUrlCommand = exports.de_CreateMediaDownloadUrlCommand = exports.de_GetAiContextMatchCommand = exports.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = void 0;
|
|
5
|
+
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 = void 0;
|
|
6
6
|
const OneHookServiceException_1 = require("../models/OneHookServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -180,6 +180,7 @@ const se_UpdateChatSettingsCommand = async (input, context) => {
|
|
|
180
180
|
let body;
|
|
181
181
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
182
182
|
'defaultDisappearingSeconds': [],
|
|
183
|
+
'helpTranslateCaptions': [],
|
|
183
184
|
'lastSeenVisibility': [],
|
|
184
185
|
'messageNotifications': [],
|
|
185
186
|
'reactionNotifications': [],
|
|
@@ -211,6 +212,24 @@ const se_AuthSocialCommand = async (input, context) => {
|
|
|
211
212
|
return b.build();
|
|
212
213
|
};
|
|
213
214
|
exports.se_AuthSocialCommand = se_AuthSocialCommand;
|
|
215
|
+
const se_CreateAdminInviteCommand = async (input, context) => {
|
|
216
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
217
|
+
const headers = {
|
|
218
|
+
'content-type': 'application/json',
|
|
219
|
+
};
|
|
220
|
+
b.bp("/identity/admin/invites");
|
|
221
|
+
let body;
|
|
222
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
223
|
+
'phoneNumber': [],
|
|
224
|
+
'referrerId': [],
|
|
225
|
+
'ttlDays': [],
|
|
226
|
+
}));
|
|
227
|
+
b.m("POST")
|
|
228
|
+
.h(headers)
|
|
229
|
+
.b(body);
|
|
230
|
+
return b.build();
|
|
231
|
+
};
|
|
232
|
+
exports.se_CreateAdminInviteCommand = se_CreateAdminInviteCommand;
|
|
214
233
|
const se_GenerateInviteCommand = async (input, context) => {
|
|
215
234
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
216
235
|
const headers = {
|
|
@@ -379,6 +398,18 @@ const se_RequestPhoneUpdateOtpCommand = async (input, context) => {
|
|
|
379
398
|
return b.build();
|
|
380
399
|
};
|
|
381
400
|
exports.se_RequestPhoneUpdateOtpCommand = se_RequestPhoneUpdateOtpCommand;
|
|
401
|
+
const se_SendAdminLinkOtpCommand = async (input, context) => {
|
|
402
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
403
|
+
const headers = {};
|
|
404
|
+
b.bp("/identity/users/{userId}/admin-link-otp");
|
|
405
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
406
|
+
let body;
|
|
407
|
+
b.m("POST")
|
|
408
|
+
.h(headers)
|
|
409
|
+
.b(body);
|
|
410
|
+
return b.build();
|
|
411
|
+
};
|
|
412
|
+
exports.se_SendAdminLinkOtpCommand = se_SendAdminLinkOtpCommand;
|
|
382
413
|
const se_UnlinkSocialCommand = async (input, context) => {
|
|
383
414
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
384
415
|
const headers = {};
|
|
@@ -456,6 +487,23 @@ const se_ValidateInviteCommand = async (input, context) => {
|
|
|
456
487
|
return b.build();
|
|
457
488
|
};
|
|
458
489
|
exports.se_ValidateInviteCommand = se_ValidateInviteCommand;
|
|
490
|
+
const se_VerifyAdminLinkOtpCommand = async (input, context) => {
|
|
491
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
492
|
+
const headers = {
|
|
493
|
+
'content-type': 'application/json',
|
|
494
|
+
};
|
|
495
|
+
b.bp("/identity/users/{userId}/admin-link-otp/verify");
|
|
496
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
497
|
+
let body;
|
|
498
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
499
|
+
'code': [],
|
|
500
|
+
}));
|
|
501
|
+
b.m("POST")
|
|
502
|
+
.h(headers)
|
|
503
|
+
.b(body);
|
|
504
|
+
return b.build();
|
|
505
|
+
};
|
|
506
|
+
exports.se_VerifyAdminLinkOtpCommand = se_VerifyAdminLinkOtpCommand;
|
|
459
507
|
const se_DiscoverCommand = async (input, context) => {
|
|
460
508
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
461
509
|
const headers = {};
|
|
@@ -1078,6 +1126,23 @@ const de_AuthSocialCommand = async (output, context) => {
|
|
|
1078
1126
|
return contents;
|
|
1079
1127
|
};
|
|
1080
1128
|
exports.de_AuthSocialCommand = de_AuthSocialCommand;
|
|
1129
|
+
const de_CreateAdminInviteCommand = async (output, context) => {
|
|
1130
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1131
|
+
return de_CommandError(output, context);
|
|
1132
|
+
}
|
|
1133
|
+
const contents = (0, smithy_client_1.map)({
|
|
1134
|
+
$metadata: deserializeMetadata(output),
|
|
1135
|
+
});
|
|
1136
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1137
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1138
|
+
'expiresAt': smithy_client_1.expectLong,
|
|
1139
|
+
'inviteCode': smithy_client_1.expectString,
|
|
1140
|
+
'maxUses': smithy_client_1.expectInt32,
|
|
1141
|
+
});
|
|
1142
|
+
Object.assign(contents, doc);
|
|
1143
|
+
return contents;
|
|
1144
|
+
};
|
|
1145
|
+
exports.de_CreateAdminInviteCommand = de_CreateAdminInviteCommand;
|
|
1081
1146
|
const de_GenerateInviteCommand = async (output, context) => {
|
|
1082
1147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1083
1148
|
return de_CommandError(output, context);
|
|
@@ -1265,6 +1330,22 @@ const de_RequestPhoneUpdateOtpCommand = async (output, context) => {
|
|
|
1265
1330
|
return contents;
|
|
1266
1331
|
};
|
|
1267
1332
|
exports.de_RequestPhoneUpdateOtpCommand = de_RequestPhoneUpdateOtpCommand;
|
|
1333
|
+
const de_SendAdminLinkOtpCommand = async (output, context) => {
|
|
1334
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1335
|
+
return de_CommandError(output, context);
|
|
1336
|
+
}
|
|
1337
|
+
const contents = (0, smithy_client_1.map)({
|
|
1338
|
+
$metadata: deserializeMetadata(output),
|
|
1339
|
+
});
|
|
1340
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1341
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1342
|
+
'maskedPhone': smithy_client_1.expectString,
|
|
1343
|
+
'status': smithy_client_1.expectString,
|
|
1344
|
+
});
|
|
1345
|
+
Object.assign(contents, doc);
|
|
1346
|
+
return contents;
|
|
1347
|
+
};
|
|
1348
|
+
exports.de_SendAdminLinkOtpCommand = de_SendAdminLinkOtpCommand;
|
|
1268
1349
|
const de_UnlinkSocialCommand = async (output, context) => {
|
|
1269
1350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1270
1351
|
return de_CommandError(output, context);
|
|
@@ -1346,6 +1427,23 @@ const de_ValidateInviteCommand = async (output, context) => {
|
|
|
1346
1427
|
return contents;
|
|
1347
1428
|
};
|
|
1348
1429
|
exports.de_ValidateInviteCommand = de_ValidateInviteCommand;
|
|
1430
|
+
const de_VerifyAdminLinkOtpCommand = async (output, context) => {
|
|
1431
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1432
|
+
return de_CommandError(output, context);
|
|
1433
|
+
}
|
|
1434
|
+
const contents = (0, smithy_client_1.map)({
|
|
1435
|
+
$metadata: deserializeMetadata(output),
|
|
1436
|
+
});
|
|
1437
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1438
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1439
|
+
'userId': smithy_client_1.expectString,
|
|
1440
|
+
'username': smithy_client_1.expectString,
|
|
1441
|
+
'verified': smithy_client_1.expectBoolean,
|
|
1442
|
+
});
|
|
1443
|
+
Object.assign(contents, doc);
|
|
1444
|
+
return contents;
|
|
1445
|
+
};
|
|
1446
|
+
exports.de_VerifyAdminLinkOtpCommand = de_VerifyAdminLinkOtpCommand;
|
|
1349
1447
|
const de_DiscoverCommand = async (output, context) => {
|
|
1350
1448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1351
1449
|
return de_CommandError(output, context);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isUiElementId = exports.TELEMETRY_EXEMPT_CATEGORIES = exports.uiElementsForPlatform = exports.UI_ELEMENTS = exports.UiElement = exports.HookedStateAction = exports.NotificationChannel = exports.NotificationType = exports.CardVariant = exports.SafetyAction = exports.LikeTargetType = exports.ProfileSection = exports.MediaType = exports.SwipeDirection = exports.UiElementKind = exports.UiAction = exports.TabScreen = exports.ViewableScreen = exports.Screen = exports.Platform = exports.SignalType = exports.TELEMETRY_CATALOG_HASH = exports.TELEMETRY_CATALOG_VERSION = void 0;
|
|
4
4
|
exports.TELEMETRY_CATALOG_VERSION = "1.3.0";
|
|
5
|
-
exports.TELEMETRY_CATALOG_HASH = "
|
|
5
|
+
exports.TELEMETRY_CATALOG_HASH = "9db35444cda2b7ba";
|
|
6
6
|
exports.SignalType = {
|
|
7
7
|
SCREEN_VIEW: "screen_view",
|
|
8
8
|
UI_INTERACTION: "ui_interaction",
|
|
@@ -260,6 +260,9 @@ exports.UiElement = {
|
|
|
260
260
|
CALL_SPEAKER: "call.speaker",
|
|
261
261
|
CALL_SCREEN_SHARE: "call.screen_share",
|
|
262
262
|
CALL_SCREEN_SHARE_RESPOND: "call.screen_share_respond",
|
|
263
|
+
CALL_CAPTIONS: "call.captions",
|
|
264
|
+
CALL_CAPTION_LANGUAGE_SELECT: "call.caption_language_select",
|
|
265
|
+
CHAT_SETTINGS_HELP_TRANSLATE_CAPTIONS: "chat_settings.help_translate_captions",
|
|
263
266
|
CHAT_MEDIA_OPEN: "chat.media_open",
|
|
264
267
|
CHAT_AUDIO_PLAY: "chat.audio_play",
|
|
265
268
|
CHAT_FILE_OPEN: "chat.file_open",
|
|
@@ -480,8 +483,11 @@ exports.UI_ELEMENTS = {
|
|
|
480
483
|
"call.camera": { screen: "CALL", kind: "toggle", actions: ["toggle"], values: ["on", "off"], platforms: ["web", "ios", "android"] },
|
|
481
484
|
"call.camera_switch": { screen: "CALL", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
|
|
482
485
|
"call.speaker": { screen: "CALL", kind: "toggle", actions: ["toggle"], values: ["on", "off"], platforms: ["ios", "android"] },
|
|
483
|
-
"call.screen_share": { screen: "CALL", kind: "toggle", actions: ["toggle"], values: ["on", "off"], platforms: ["web", "android"] },
|
|
484
|
-
"call.screen_share_respond": { screen: "CALL", kind: "dialog_button", actions: ["tap", "dismiss"], values: ["accept", "decline"], platforms: ["web", "android"] },
|
|
486
|
+
"call.screen_share": { screen: "CALL", kind: "toggle", actions: ["toggle"], values: ["on", "off"], platforms: ["web", "ios", "android"] },
|
|
487
|
+
"call.screen_share_respond": { screen: "CALL", kind: "dialog_button", actions: ["tap", "dismiss"], values: ["accept", "decline"], platforms: ["web", "ios", "android"] },
|
|
488
|
+
"call.captions": { screen: "CALL", kind: "toggle", actions: ["toggle"], values: ["on", "off"], platforms: ["web", "ios", "android"] },
|
|
489
|
+
"call.caption_language_select": { screen: "CALL", kind: "menu_item", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
490
|
+
"chat_settings.help_translate_captions": { screen: "CHAT_SETTINGS", kind: "toggle", actions: ["toggle"], values: ["on", "off"], platforms: ["web", "ios", "android"] },
|
|
485
491
|
"chat.media_open": { screen: "CHAT", kind: "gesture", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
|
486
492
|
"chat.audio_play": { screen: "CHAT", kind: "toggle", actions: ["toggle"], values: ["play", "pause"], platforms: ["web", "ios", "android"] },
|
|
487
493
|
"chat.file_open": { screen: "CHAT", kind: "list_item", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
|
package/dist-es/OneHook.js
CHANGED
|
@@ -2,6 +2,7 @@ import { OneHookClient, } from "./OneHookClient";
|
|
|
2
2
|
import { AuthSocialCommand, } from "./commands/AuthSocialCommand";
|
|
3
3
|
import { CompleteLivenessSessionCommand, } from "./commands/CompleteLivenessSessionCommand";
|
|
4
4
|
import { CompleteOnboardingCommand, } from "./commands/CompleteOnboardingCommand";
|
|
5
|
+
import { CreateAdminInviteCommand, } from "./commands/CreateAdminInviteCommand";
|
|
5
6
|
import { CreateLivenessSessionCommand, } from "./commands/CreateLivenessSessionCommand";
|
|
6
7
|
import { CreateMediaDownloadUrlCommand, } from "./commands/CreateMediaDownloadUrlCommand";
|
|
7
8
|
import { CreateMediaUploadUrlCommand, } from "./commands/CreateMediaUploadUrlCommand";
|
|
@@ -41,6 +42,7 @@ import { RequestEmailOtpCommand, } from "./commands/RequestEmailOtpCommand";
|
|
|
41
42
|
import { RequestPhoneOtpCommand, } from "./commands/RequestPhoneOtpCommand";
|
|
42
43
|
import { RequestPhoneUpdateOtpCommand, } from "./commands/RequestPhoneUpdateOtpCommand";
|
|
43
44
|
import { RevokeDeviceCommand, } from "./commands/RevokeDeviceCommand";
|
|
45
|
+
import { SendAdminLinkOtpCommand, } from "./commands/SendAdminLinkOtpCommand";
|
|
44
46
|
import { SwipeByUsernameCommand, } from "./commands/SwipeByUsernameCommand";
|
|
45
47
|
import { SwipeCommand, } from "./commands/SwipeCommand";
|
|
46
48
|
import { UnhookCommand, } from "./commands/UnhookCommand";
|
|
@@ -53,6 +55,7 @@ import { UpdateProfileCommand, } from "./commands/UpdateProfileCommand";
|
|
|
53
55
|
import { UpdateUsernameCommand, } from "./commands/UpdateUsernameCommand";
|
|
54
56
|
import { UpgradeUserCommand, } from "./commands/UpgradeUserCommand";
|
|
55
57
|
import { ValidateInviteCommand, } from "./commands/ValidateInviteCommand";
|
|
58
|
+
import { VerifyAdminLinkOtpCommand, } from "./commands/VerifyAdminLinkOtpCommand";
|
|
56
59
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
57
60
|
const commands = {
|
|
58
61
|
GetAiContextMatchCommand,
|
|
@@ -68,6 +71,7 @@ const commands = {
|
|
|
68
71
|
RevokeDeviceCommand,
|
|
69
72
|
UpdateChatSettingsCommand,
|
|
70
73
|
AuthSocialCommand,
|
|
74
|
+
CreateAdminInviteCommand,
|
|
71
75
|
GenerateInviteCommand,
|
|
72
76
|
GetCredentialReadinessCommand,
|
|
73
77
|
GetUserCommand,
|
|
@@ -79,11 +83,13 @@ const commands = {
|
|
|
79
83
|
RequestEmailOtpCommand,
|
|
80
84
|
RequestPhoneOtpCommand,
|
|
81
85
|
RequestPhoneUpdateOtpCommand,
|
|
86
|
+
SendAdminLinkOtpCommand,
|
|
82
87
|
UnlinkSocialCommand,
|
|
83
88
|
UpdateEntitlementsCommand,
|
|
84
89
|
UpdatePhoneNumberCommand,
|
|
85
90
|
UpdateUsernameCommand,
|
|
86
91
|
ValidateInviteCommand,
|
|
92
|
+
VerifyAdminLinkOtpCommand,
|
|
87
93
|
DiscoverCommand,
|
|
88
94
|
GetNotificationPreferencesCommand,
|
|
89
95
|
GetPreferencesCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CreateAdminInviteCommand, se_CreateAdminInviteCommand, } 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 CreateAdminInviteCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "CreateAdminInvite", {})
|
|
12
|
+
.n("OneHookClient", "CreateAdminInviteCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreateAdminInviteCommand)
|
|
15
|
+
.de(de_CreateAdminInviteCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_SendAdminLinkOtpCommand, se_SendAdminLinkOtpCommand, } 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 SendAdminLinkOtpCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "SendAdminLinkOtp", {})
|
|
12
|
+
.n("OneHookClient", "SendAdminLinkOtpCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SendAdminLinkOtpCommand)
|
|
15
|
+
.de(de_SendAdminLinkOtpCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_VerifyAdminLinkOtpCommand, se_VerifyAdminLinkOtpCommand, } 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 VerifyAdminLinkOtpCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "VerifyAdminLinkOtp", {})
|
|
12
|
+
.n("OneHookClient", "VerifyAdminLinkOtpCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_VerifyAdminLinkOtpCommand)
|
|
15
|
+
.de(de_VerifyAdminLinkOtpCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -11,6 +11,7 @@ export * from "./RegisterPushTokenCommand";
|
|
|
11
11
|
export * from "./RevokeDeviceCommand";
|
|
12
12
|
export * from "./UpdateChatSettingsCommand";
|
|
13
13
|
export * from "./AuthSocialCommand";
|
|
14
|
+
export * from "./CreateAdminInviteCommand";
|
|
14
15
|
export * from "./GenerateInviteCommand";
|
|
15
16
|
export * from "./GetCredentialReadinessCommand";
|
|
16
17
|
export * from "./GetUserCommand";
|
|
@@ -22,11 +23,13 @@ export * from "./RegisterPhoneCommand";
|
|
|
22
23
|
export * from "./RequestEmailOtpCommand";
|
|
23
24
|
export * from "./RequestPhoneOtpCommand";
|
|
24
25
|
export * from "./RequestPhoneUpdateOtpCommand";
|
|
26
|
+
export * from "./SendAdminLinkOtpCommand";
|
|
25
27
|
export * from "./UnlinkSocialCommand";
|
|
26
28
|
export * from "./UpdateEntitlementsCommand";
|
|
27
29
|
export * from "./UpdatePhoneNumberCommand";
|
|
28
30
|
export * from "./UpdateUsernameCommand";
|
|
29
31
|
export * from "./ValidateInviteCommand";
|
|
32
|
+
export * from "./VerifyAdminLinkOtpCommand";
|
|
30
33
|
export * from "./DiscoverCommand";
|
|
31
34
|
export * from "./GetNotificationPreferencesCommand";
|
|
32
35
|
export * from "./GetPreferencesCommand";
|
|
@@ -164,6 +164,7 @@ export const se_UpdateChatSettingsCommand = async (input, context) => {
|
|
|
164
164
|
let body;
|
|
165
165
|
body = JSON.stringify(take(input, {
|
|
166
166
|
'defaultDisappearingSeconds': [],
|
|
167
|
+
'helpTranslateCaptions': [],
|
|
167
168
|
'lastSeenVisibility': [],
|
|
168
169
|
'messageNotifications': [],
|
|
169
170
|
'reactionNotifications': [],
|
|
@@ -193,6 +194,23 @@ export const se_AuthSocialCommand = async (input, context) => {
|
|
|
193
194
|
.b(body);
|
|
194
195
|
return b.build();
|
|
195
196
|
};
|
|
197
|
+
export const se_CreateAdminInviteCommand = async (input, context) => {
|
|
198
|
+
const b = rb(input, context);
|
|
199
|
+
const headers = {
|
|
200
|
+
'content-type': 'application/json',
|
|
201
|
+
};
|
|
202
|
+
b.bp("/identity/admin/invites");
|
|
203
|
+
let body;
|
|
204
|
+
body = JSON.stringify(take(input, {
|
|
205
|
+
'phoneNumber': [],
|
|
206
|
+
'referrerId': [],
|
|
207
|
+
'ttlDays': [],
|
|
208
|
+
}));
|
|
209
|
+
b.m("POST")
|
|
210
|
+
.h(headers)
|
|
211
|
+
.b(body);
|
|
212
|
+
return b.build();
|
|
213
|
+
};
|
|
196
214
|
export const se_GenerateInviteCommand = async (input, context) => {
|
|
197
215
|
const b = rb(input, context);
|
|
198
216
|
const headers = {
|
|
@@ -350,6 +368,17 @@ export const se_RequestPhoneUpdateOtpCommand = async (input, context) => {
|
|
|
350
368
|
.b(body);
|
|
351
369
|
return b.build();
|
|
352
370
|
};
|
|
371
|
+
export const se_SendAdminLinkOtpCommand = async (input, context) => {
|
|
372
|
+
const b = rb(input, context);
|
|
373
|
+
const headers = {};
|
|
374
|
+
b.bp("/identity/users/{userId}/admin-link-otp");
|
|
375
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
376
|
+
let body;
|
|
377
|
+
b.m("POST")
|
|
378
|
+
.h(headers)
|
|
379
|
+
.b(body);
|
|
380
|
+
return b.build();
|
|
381
|
+
};
|
|
353
382
|
export const se_UnlinkSocialCommand = async (input, context) => {
|
|
354
383
|
const b = rb(input, context);
|
|
355
384
|
const headers = {};
|
|
@@ -422,6 +451,22 @@ export const se_ValidateInviteCommand = async (input, context) => {
|
|
|
422
451
|
.b(body);
|
|
423
452
|
return b.build();
|
|
424
453
|
};
|
|
454
|
+
export const se_VerifyAdminLinkOtpCommand = async (input, context) => {
|
|
455
|
+
const b = rb(input, context);
|
|
456
|
+
const headers = {
|
|
457
|
+
'content-type': 'application/json',
|
|
458
|
+
};
|
|
459
|
+
b.bp("/identity/users/{userId}/admin-link-otp/verify");
|
|
460
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
461
|
+
let body;
|
|
462
|
+
body = JSON.stringify(take(input, {
|
|
463
|
+
'code': [],
|
|
464
|
+
}));
|
|
465
|
+
b.m("POST")
|
|
466
|
+
.h(headers)
|
|
467
|
+
.b(body);
|
|
468
|
+
return b.build();
|
|
469
|
+
};
|
|
425
470
|
export const se_DiscoverCommand = async (input, context) => {
|
|
426
471
|
const b = rb(input, context);
|
|
427
472
|
const headers = {};
|
|
@@ -1006,6 +1051,22 @@ export const de_AuthSocialCommand = async (output, context) => {
|
|
|
1006
1051
|
Object.assign(contents, doc);
|
|
1007
1052
|
return contents;
|
|
1008
1053
|
};
|
|
1054
|
+
export const de_CreateAdminInviteCommand = async (output, context) => {
|
|
1055
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1056
|
+
return de_CommandError(output, context);
|
|
1057
|
+
}
|
|
1058
|
+
const contents = map({
|
|
1059
|
+
$metadata: deserializeMetadata(output),
|
|
1060
|
+
});
|
|
1061
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1062
|
+
const doc = take(data, {
|
|
1063
|
+
'expiresAt': __expectLong,
|
|
1064
|
+
'inviteCode': __expectString,
|
|
1065
|
+
'maxUses': __expectInt32,
|
|
1066
|
+
});
|
|
1067
|
+
Object.assign(contents, doc);
|
|
1068
|
+
return contents;
|
|
1069
|
+
};
|
|
1009
1070
|
export const de_GenerateInviteCommand = async (output, context) => {
|
|
1010
1071
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
1072
|
return de_CommandError(output, context);
|
|
@@ -1182,6 +1243,21 @@ export const de_RequestPhoneUpdateOtpCommand = async (output, context) => {
|
|
|
1182
1243
|
Object.assign(contents, doc);
|
|
1183
1244
|
return contents;
|
|
1184
1245
|
};
|
|
1246
|
+
export const de_SendAdminLinkOtpCommand = async (output, context) => {
|
|
1247
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1248
|
+
return de_CommandError(output, context);
|
|
1249
|
+
}
|
|
1250
|
+
const contents = map({
|
|
1251
|
+
$metadata: deserializeMetadata(output),
|
|
1252
|
+
});
|
|
1253
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1254
|
+
const doc = take(data, {
|
|
1255
|
+
'maskedPhone': __expectString,
|
|
1256
|
+
'status': __expectString,
|
|
1257
|
+
});
|
|
1258
|
+
Object.assign(contents, doc);
|
|
1259
|
+
return contents;
|
|
1260
|
+
};
|
|
1185
1261
|
export const de_UnlinkSocialCommand = async (output, context) => {
|
|
1186
1262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1187
1263
|
return de_CommandError(output, context);
|
|
@@ -1258,6 +1334,22 @@ export const de_ValidateInviteCommand = async (output, context) => {
|
|
|
1258
1334
|
Object.assign(contents, doc);
|
|
1259
1335
|
return contents;
|
|
1260
1336
|
};
|
|
1337
|
+
export const de_VerifyAdminLinkOtpCommand = async (output, context) => {
|
|
1338
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1339
|
+
return de_CommandError(output, context);
|
|
1340
|
+
}
|
|
1341
|
+
const contents = map({
|
|
1342
|
+
$metadata: deserializeMetadata(output),
|
|
1343
|
+
});
|
|
1344
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1345
|
+
const doc = take(data, {
|
|
1346
|
+
'userId': __expectString,
|
|
1347
|
+
'username': __expectString,
|
|
1348
|
+
'verified': __expectBoolean,
|
|
1349
|
+
});
|
|
1350
|
+
Object.assign(contents, doc);
|
|
1351
|
+
return contents;
|
|
1352
|
+
};
|
|
1261
1353
|
export const de_DiscoverCommand = async (output, context) => {
|
|
1262
1354
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1263
1355
|
return de_CommandError(output, context);
|