onehook-api-client 1.0.26 → 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 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
 
@@ -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.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_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_ValidateInviteCommand = exports.se_UpdateUsernameCommand = 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_GetUserIdByUsernameCommand = exports.se_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GetCredentialReadinessCommand = exports.se_GenerateInviteCommand = 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_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = 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_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = 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_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 = 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 = 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");
@@ -212,6 +212,24 @@ const se_AuthSocialCommand = async (input, context) => {
212
212
  return b.build();
213
213
  };
214
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;
215
233
  const se_GenerateInviteCommand = async (input, context) => {
216
234
  const b = (0, core_2.requestBuilder)(input, context);
217
235
  const headers = {
@@ -380,6 +398,18 @@ const se_RequestPhoneUpdateOtpCommand = async (input, context) => {
380
398
  return b.build();
381
399
  };
382
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;
383
413
  const se_UnlinkSocialCommand = async (input, context) => {
384
414
  const b = (0, core_2.requestBuilder)(input, context);
385
415
  const headers = {};
@@ -457,6 +487,23 @@ const se_ValidateInviteCommand = async (input, context) => {
457
487
  return b.build();
458
488
  };
459
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;
460
507
  const se_DiscoverCommand = async (input, context) => {
461
508
  const b = (0, core_2.requestBuilder)(input, context);
462
509
  const headers = {};
@@ -1079,6 +1126,23 @@ const de_AuthSocialCommand = async (output, context) => {
1079
1126
  return contents;
1080
1127
  };
1081
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;
1082
1146
  const de_GenerateInviteCommand = async (output, context) => {
1083
1147
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1084
1148
  return de_CommandError(output, context);
@@ -1266,6 +1330,22 @@ const de_RequestPhoneUpdateOtpCommand = async (output, context) => {
1266
1330
  return contents;
1267
1331
  };
1268
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;
1269
1349
  const de_UnlinkSocialCommand = async (output, context) => {
1270
1350
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1271
1351
  return de_CommandError(output, context);
@@ -1347,6 +1427,23 @@ const de_ValidateInviteCommand = async (output, context) => {
1347
1427
  return contents;
1348
1428
  };
1349
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;
1350
1447
  const de_DiscoverCommand = async (output, context) => {
1351
1448
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1352
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 = "52029d112aadcfd5";
5
+ exports.TELEMETRY_CATALOG_HASH = "9db35444cda2b7ba";
6
6
  exports.SignalType = {
7
7
  SCREEN_VIEW: "screen_view",
8
8
  UI_INTERACTION: "ui_interaction",
@@ -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";
@@ -194,6 +194,23 @@ export const se_AuthSocialCommand = async (input, context) => {
194
194
  .b(body);
195
195
  return b.build();
196
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
+ };
197
214
  export const se_GenerateInviteCommand = async (input, context) => {
198
215
  const b = rb(input, context);
199
216
  const headers = {
@@ -351,6 +368,17 @@ export const se_RequestPhoneUpdateOtpCommand = async (input, context) => {
351
368
  .b(body);
352
369
  return b.build();
353
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
+ };
354
382
  export const se_UnlinkSocialCommand = async (input, context) => {
355
383
  const b = rb(input, context);
356
384
  const headers = {};
@@ -423,6 +451,22 @@ export const se_ValidateInviteCommand = async (input, context) => {
423
451
  .b(body);
424
452
  return b.build();
425
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
+ };
426
470
  export const se_DiscoverCommand = async (input, context) => {
427
471
  const b = rb(input, context);
428
472
  const headers = {};
@@ -1007,6 +1051,22 @@ export const de_AuthSocialCommand = async (output, context) => {
1007
1051
  Object.assign(contents, doc);
1008
1052
  return contents;
1009
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
+ };
1010
1070
  export const de_GenerateInviteCommand = async (output, context) => {
1011
1071
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1012
1072
  return de_CommandError(output, context);
@@ -1183,6 +1243,21 @@ export const de_RequestPhoneUpdateOtpCommand = async (output, context) => {
1183
1243
  Object.assign(contents, doc);
1184
1244
  return contents;
1185
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
+ };
1186
1261
  export const de_UnlinkSocialCommand = async (output, context) => {
1187
1262
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1188
1263
  return de_CommandError(output, context);
@@ -1259,6 +1334,22 @@ export const de_ValidateInviteCommand = async (output, context) => {
1259
1334
  Object.assign(contents, doc);
1260
1335
  return contents;
1261
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
+ };
1262
1353
  export const de_DiscoverCommand = async (output, context) => {
1263
1354
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1264
1355
  return de_CommandError(output, context);
@@ -1,5 +1,5 @@
1
1
  export const TELEMETRY_CATALOG_VERSION = "1.3.0";
2
- export const TELEMETRY_CATALOG_HASH = "52029d112aadcfd5";
2
+ export const TELEMETRY_CATALOG_HASH = "9db35444cda2b7ba";
3
3
  export const SignalType = {
4
4
  SCREEN_VIEW: "screen_view",
5
5
  UI_INTERACTION: "ui_interaction",
@@ -2,6 +2,7 @@ import { OneHookClient } from "./OneHookClient";
2
2
  import { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/AuthSocialCommand";
3
3
  import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
4
4
  import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
5
+ import { CreateAdminInviteCommandInput, CreateAdminInviteCommandOutput } from "./commands/CreateAdminInviteCommand";
5
6
  import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "./commands/CreateLivenessSessionCommand";
6
7
  import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "./commands/CreateMediaDownloadUrlCommand";
7
8
  import { CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput } from "./commands/CreateMediaUploadUrlCommand";
@@ -41,6 +42,7 @@ import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./com
41
42
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
42
43
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
43
44
  import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "./commands/RevokeDeviceCommand";
45
+ import { SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput } from "./commands/SendAdminLinkOtpCommand";
44
46
  import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "./commands/SwipeByUsernameCommand";
45
47
  import { SwipeCommandInput, SwipeCommandOutput } from "./commands/SwipeCommand";
46
48
  import { UnhookCommandInput, UnhookCommandOutput } from "./commands/UnhookCommand";
@@ -53,6 +55,7 @@ import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "./command
53
55
  import { UpdateUsernameCommandInput, UpdateUsernameCommandOutput } from "./commands/UpdateUsernameCommand";
54
56
  import { UpgradeUserCommandInput, UpgradeUserCommandOutput } from "./commands/UpgradeUserCommand";
55
57
  import { ValidateInviteCommandInput, ValidateInviteCommandOutput } from "./commands/ValidateInviteCommand";
58
+ import { VerifyAdminLinkOtpCommandInput, VerifyAdminLinkOtpCommandOutput } from "./commands/VerifyAdminLinkOtpCommand";
56
59
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
57
60
  export interface OneHook {
58
61
  /**
@@ -136,6 +139,12 @@ export interface OneHook {
136
139
  authSocial(args: AuthSocialCommandInput, options?: __HttpHandlerOptions): Promise<AuthSocialCommandOutput>;
137
140
  authSocial(args: AuthSocialCommandInput, cb: (err: any, data?: AuthSocialCommandOutput) => void): void;
138
141
  authSocial(args: AuthSocialCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AuthSocialCommandOutput) => void): void;
142
+ /**
143
+ * @see {@link CreateAdminInviteCommand}
144
+ */
145
+ createAdminInvite(args: CreateAdminInviteCommandInput, options?: __HttpHandlerOptions): Promise<CreateAdminInviteCommandOutput>;
146
+ createAdminInvite(args: CreateAdminInviteCommandInput, cb: (err: any, data?: CreateAdminInviteCommandOutput) => void): void;
147
+ createAdminInvite(args: CreateAdminInviteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAdminInviteCommandOutput) => void): void;
139
148
  /**
140
149
  * @see {@link GenerateInviteCommand}
141
150
  */
@@ -202,6 +211,12 @@ export interface OneHook {
202
211
  requestPhoneUpdateOtp(args: RequestPhoneUpdateOtpCommandInput, options?: __HttpHandlerOptions): Promise<RequestPhoneUpdateOtpCommandOutput>;
203
212
  requestPhoneUpdateOtp(args: RequestPhoneUpdateOtpCommandInput, cb: (err: any, data?: RequestPhoneUpdateOtpCommandOutput) => void): void;
204
213
  requestPhoneUpdateOtp(args: RequestPhoneUpdateOtpCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RequestPhoneUpdateOtpCommandOutput) => void): void;
214
+ /**
215
+ * @see {@link SendAdminLinkOtpCommand}
216
+ */
217
+ sendAdminLinkOtp(args: SendAdminLinkOtpCommandInput, options?: __HttpHandlerOptions): Promise<SendAdminLinkOtpCommandOutput>;
218
+ sendAdminLinkOtp(args: SendAdminLinkOtpCommandInput, cb: (err: any, data?: SendAdminLinkOtpCommandOutput) => void): void;
219
+ sendAdminLinkOtp(args: SendAdminLinkOtpCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendAdminLinkOtpCommandOutput) => void): void;
205
220
  /**
206
221
  * @see {@link UnlinkSocialCommand}
207
222
  */
@@ -232,6 +247,12 @@ export interface OneHook {
232
247
  validateInvite(args: ValidateInviteCommandInput, options?: __HttpHandlerOptions): Promise<ValidateInviteCommandOutput>;
233
248
  validateInvite(args: ValidateInviteCommandInput, cb: (err: any, data?: ValidateInviteCommandOutput) => void): void;
234
249
  validateInvite(args: ValidateInviteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ValidateInviteCommandOutput) => void): void;
250
+ /**
251
+ * @see {@link VerifyAdminLinkOtpCommand}
252
+ */
253
+ verifyAdminLinkOtp(args: VerifyAdminLinkOtpCommandInput, options?: __HttpHandlerOptions): Promise<VerifyAdminLinkOtpCommandOutput>;
254
+ verifyAdminLinkOtp(args: VerifyAdminLinkOtpCommandInput, cb: (err: any, data?: VerifyAdminLinkOtpCommandOutput) => void): void;
255
+ verifyAdminLinkOtp(args: VerifyAdminLinkOtpCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyAdminLinkOtpCommandOutput) => void): void;
235
256
  /**
236
257
  * @see {@link DiscoverCommand}
237
258
  */
@@ -2,6 +2,7 @@ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/
2
2
  import { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/AuthSocialCommand";
3
3
  import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
4
4
  import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
5
+ import { CreateAdminInviteCommandInput, CreateAdminInviteCommandOutput } from "./commands/CreateAdminInviteCommand";
5
6
  import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "./commands/CreateLivenessSessionCommand";
6
7
  import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "./commands/CreateMediaDownloadUrlCommand";
7
8
  import { CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput } from "./commands/CreateMediaUploadUrlCommand";
@@ -41,6 +42,7 @@ import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./com
41
42
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
42
43
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
43
44
  import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "./commands/RevokeDeviceCommand";
45
+ import { SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput } from "./commands/SendAdminLinkOtpCommand";
44
46
  import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "./commands/SwipeByUsernameCommand";
45
47
  import { SwipeCommandInput, SwipeCommandOutput } from "./commands/SwipeCommand";
46
48
  import { UnhookCommandInput, UnhookCommandOutput } from "./commands/UnhookCommand";
@@ -53,6 +55,7 @@ import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "./command
53
55
  import { UpdateUsernameCommandInput, UpdateUsernameCommandOutput } from "./commands/UpdateUsernameCommand";
54
56
  import { UpgradeUserCommandInput, UpgradeUserCommandOutput } from "./commands/UpgradeUserCommand";
55
57
  import { ValidateInviteCommandInput, ValidateInviteCommandOutput } from "./commands/ValidateInviteCommand";
58
+ import { VerifyAdminLinkOtpCommandInput, VerifyAdminLinkOtpCommandOutput } from "./commands/VerifyAdminLinkOtpCommand";
56
59
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
57
60
  import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
58
61
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
@@ -65,11 +68,11 @@ export { __Client };
65
68
  /**
66
69
  * @public
67
70
  */
68
- export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAiContextMatchCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput;
71
+ export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateAdminInviteCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAiContextMatchCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | SendAdminLinkOtpCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput | VerifyAdminLinkOtpCommandInput;
69
72
  /**
70
73
  * @public
71
74
  */
72
- export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAiContextMatchCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput;
75
+ export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateAdminInviteCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAiContextMatchCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | SendAdminLinkOtpCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput | VerifyAdminLinkOtpCommandOutput;
73
76
  /**
74
77
  * @public
75
78
  */
@@ -0,0 +1,87 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { CreateAdminInviteRequest, CreateAdminInviteResponse } 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 CreateAdminInviteCommand}.
14
+ */
15
+ export interface CreateAdminInviteCommandInput extends CreateAdminInviteRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateAdminInviteCommand}.
21
+ */
22
+ export interface CreateAdminInviteCommandOutput extends CreateAdminInviteResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateAdminInviteCommand_base: {
25
+ new (input: CreateAdminInviteCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAdminInviteCommandInput, CreateAdminInviteCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateAdminInviteCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAdminInviteCommandInput, CreateAdminInviteCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Mints a single-use invite bound to a specific phone number, for the admin portal's Admissions
31
+ * module. Internal, IAM-authorized (SigV4) — NOT the Cognito user-pool authorizer — so the only
32
+ * callers are principals granted \{@code execute-api:Invoke\} (the portal's per-module invoke role).
33
+ *
34
+ * The invite is bound to the HMAC hash of the E.164 phone number, created with \{@code maxUses=1\} and
35
+ * a short TTL (default 14 days, bounded 1..30). \{@code RegisterPhone\} refuses a bound invite when the
36
+ * registering phone's hash differs, with the SAME error as an invalid/unknown invite, so the binding
37
+ * is never revealed. The response never echoes the phone or its hash.
38
+ * @example
39
+ * Use a bare-bones client and the command you need to make an API call.
40
+ * ```javascript
41
+ * import { OneHookClient, CreateAdminInviteCommand } from "onehook-api-client"; // ES Modules import
42
+ * // const { OneHookClient, CreateAdminInviteCommand } = require("onehook-api-client"); // CommonJS import
43
+ * const client = new OneHookClient(config);
44
+ * const input = { // CreateAdminInviteRequest
45
+ * phoneNumber: "STRING_VALUE", // required
46
+ * referrerId: "STRING_VALUE", // required
47
+ * ttlDays: Number("int"),
48
+ * };
49
+ * const command = new CreateAdminInviteCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // CreateAdminInviteResponse
52
+ * // inviteCode: "STRING_VALUE", // required
53
+ * // expiresAt: Number("long"), // required
54
+ * // maxUses: Number("int"), // required
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param CreateAdminInviteCommandInput - {@link CreateAdminInviteCommandInput}
60
+ * @returns {@link CreateAdminInviteCommandOutput}
61
+ * @see {@link CreateAdminInviteCommandInput} for command's `input` shape.
62
+ * @see {@link CreateAdminInviteCommandOutput} for command's `response` shape.
63
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
64
+ *
65
+ * @throws {@link BadRequestError} (client fault)
66
+ *
67
+ * @throws {@link InternalServerError} (server fault)
68
+ *
69
+ * @throws {@link OneHookServiceException}
70
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class CreateAdminInviteCommand extends CreateAdminInviteCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: CreateAdminInviteRequest;
80
+ output: CreateAdminInviteResponse;
81
+ };
82
+ sdk: {
83
+ input: CreateAdminInviteCommandInput;
84
+ output: CreateAdminInviteCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -0,0 +1,83 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { SendAdminLinkOtpRequest, SendAdminLinkOtpResponse } 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 SendAdminLinkOtpCommand}.
14
+ */
15
+ export interface SendAdminLinkOtpCommandInput extends SendAdminLinkOtpRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SendAdminLinkOtpCommand}.
21
+ */
22
+ export interface SendAdminLinkOtpCommandOutput extends SendAdminLinkOtpResponse, __MetadataBearer {
23
+ }
24
+ declare const SendAdminLinkOtpCommand_base: {
25
+ new (input: SendAdminLinkOtpCommandInput): import("@smithy/smithy-client").CommandImpl<SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SendAdminLinkOtpCommandInput): import("@smithy/smithy-client").CommandImpl<SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Sends a one-time 6-digit code by SMS to a user's VERIFIED phone, so a portal admin can prove they
31
+ * own that OneHook account before the admin↔username link is recorded. Internal, IAM-authorized
32
+ * (SigV4). Reuses the existing OTP/SMS delivery path and rate limiting. The admin-link OTP is stored
33
+ * under a key namespace distinct from login/registration OTPs, so the two can never be cross-used.
34
+ * Unknown user → 404. The response returns only a masked phone, never the full number.
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { OneHookClient, SendAdminLinkOtpCommand } from "onehook-api-client"; // ES Modules import
39
+ * // const { OneHookClient, SendAdminLinkOtpCommand } = require("onehook-api-client"); // CommonJS import
40
+ * const client = new OneHookClient(config);
41
+ * const input = { // SendAdminLinkOtpRequest
42
+ * userId: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new SendAdminLinkOtpCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // SendAdminLinkOtpResponse
47
+ * // status: "STRING_VALUE", // required
48
+ * // maskedPhone: "STRING_VALUE", // required
49
+ * // };
50
+ *
51
+ * ```
52
+ *
53
+ * @param SendAdminLinkOtpCommandInput - {@link SendAdminLinkOtpCommandInput}
54
+ * @returns {@link SendAdminLinkOtpCommandOutput}
55
+ * @see {@link SendAdminLinkOtpCommandInput} for command's `input` shape.
56
+ * @see {@link SendAdminLinkOtpCommandOutput} for command's `response` shape.
57
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
58
+ *
59
+ * @throws {@link BadRequestError} (client fault)
60
+ *
61
+ * @throws {@link NotFoundError} (client fault)
62
+ *
63
+ * @throws {@link InternalServerError} (server fault)
64
+ *
65
+ * @throws {@link OneHookServiceException}
66
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
67
+ *
68
+ *
69
+ * @public
70
+ */
71
+ export declare class SendAdminLinkOtpCommand extends SendAdminLinkOtpCommand_base {
72
+ /** @internal type navigation helper, not in runtime. */
73
+ protected static __types: {
74
+ api: {
75
+ input: SendAdminLinkOtpRequest;
76
+ output: SendAdminLinkOtpResponse;
77
+ };
78
+ sdk: {
79
+ input: SendAdminLinkOtpCommandInput;
80
+ output: SendAdminLinkOtpCommandOutput;
81
+ };
82
+ };
83
+ }
@@ -0,0 +1,84 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { VerifyAdminLinkOtpRequest, VerifyAdminLinkOtpResponse } 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 VerifyAdminLinkOtpCommand}.
14
+ */
15
+ export interface VerifyAdminLinkOtpCommandInput extends VerifyAdminLinkOtpRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link VerifyAdminLinkOtpCommand}.
21
+ */
22
+ export interface VerifyAdminLinkOtpCommandOutput extends VerifyAdminLinkOtpResponse, __MetadataBearer {
23
+ }
24
+ declare const VerifyAdminLinkOtpCommand_base: {
25
+ new (input: VerifyAdminLinkOtpCommandInput): import("@smithy/smithy-client").CommandImpl<VerifyAdminLinkOtpCommandInput, VerifyAdminLinkOtpCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: VerifyAdminLinkOtpCommandInput): import("@smithy/smithy-client").CommandImpl<VerifyAdminLinkOtpCommandInput, VerifyAdminLinkOtpCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Verifies an admin-link OTP previously sent by \{@link SendAdminLinkOtp\}. Internal, IAM-authorized
31
+ * (SigV4). On success returns the userId + username the portal records for the link. A wrong/expired
32
+ * code, or exceeding the per-code attempt cap, returns a generic 400 (no oracle). The code is
33
+ * single-use and expires in 5 minutes. Unknown user → 404.
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { OneHookClient, VerifyAdminLinkOtpCommand } from "onehook-api-client"; // ES Modules import
38
+ * // const { OneHookClient, VerifyAdminLinkOtpCommand } = require("onehook-api-client"); // CommonJS import
39
+ * const client = new OneHookClient(config);
40
+ * const input = { // VerifyAdminLinkOtpRequest
41
+ * userId: "STRING_VALUE", // required
42
+ * code: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new VerifyAdminLinkOtpCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // VerifyAdminLinkOtpResponse
47
+ * // verified: true || false, // required
48
+ * // userId: "STRING_VALUE", // required
49
+ * // username: "STRING_VALUE", // required
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param VerifyAdminLinkOtpCommandInput - {@link VerifyAdminLinkOtpCommandInput}
55
+ * @returns {@link VerifyAdminLinkOtpCommandOutput}
56
+ * @see {@link VerifyAdminLinkOtpCommandInput} for command's `input` shape.
57
+ * @see {@link VerifyAdminLinkOtpCommandOutput} for command's `response` shape.
58
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
59
+ *
60
+ * @throws {@link BadRequestError} (client fault)
61
+ *
62
+ * @throws {@link NotFoundError} (client fault)
63
+ *
64
+ * @throws {@link InternalServerError} (server fault)
65
+ *
66
+ * @throws {@link OneHookServiceException}
67
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
68
+ *
69
+ *
70
+ * @public
71
+ */
72
+ export declare class VerifyAdminLinkOtpCommand extends VerifyAdminLinkOtpCommand_base {
73
+ /** @internal type navigation helper, not in runtime. */
74
+ protected static __types: {
75
+ api: {
76
+ input: VerifyAdminLinkOtpRequest;
77
+ output: VerifyAdminLinkOtpResponse;
78
+ };
79
+ sdk: {
80
+ input: VerifyAdminLinkOtpCommandInput;
81
+ output: VerifyAdminLinkOtpCommandOutput;
82
+ };
83
+ };
84
+ }
@@ -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";
@@ -622,6 +622,26 @@ export interface AuthSocialResponse {
622
622
  userId?: string | undefined;
623
623
  isNewUser?: boolean | undefined;
624
624
  }
625
+ /**
626
+ * @public
627
+ */
628
+ export interface CreateAdminInviteRequest {
629
+ phoneNumber: string | undefined;
630
+ referrerId: string | undefined;
631
+ /**
632
+ * Optional invite lifetime in days. Defaults to 14 when omitted; bounded to 1..30.
633
+ * @public
634
+ */
635
+ ttlDays?: number | undefined;
636
+ }
637
+ /**
638
+ * @public
639
+ */
640
+ export interface CreateAdminInviteResponse {
641
+ inviteCode: string | undefined;
642
+ expiresAt: number | undefined;
643
+ maxUses: number | undefined;
644
+ }
625
645
  /**
626
646
  * @public
627
647
  */
@@ -798,6 +818,24 @@ export interface RequestPhoneUpdateOtpRequest {
798
818
  export interface RequestPhoneUpdateOtpResponse {
799
819
  status: string | undefined;
800
820
  }
821
+ /**
822
+ * @public
823
+ */
824
+ export interface SendAdminLinkOtpRequest {
825
+ userId: string | undefined;
826
+ }
827
+ /**
828
+ * @public
829
+ */
830
+ export interface SendAdminLinkOtpResponse {
831
+ status: string | undefined;
832
+ /**
833
+ * The user's phone with only a short prefix and suffix shown, e.g. \{@code +91•••••••210\}. Never
834
+ * the full number.
835
+ * @public
836
+ */
837
+ maskedPhone: string | undefined;
838
+ }
801
839
  /**
802
840
  * @public
803
841
  */
@@ -916,6 +954,21 @@ export interface ValidateInviteResponse {
916
954
  usedCount: number | undefined;
917
955
  maxUses: number | undefined;
918
956
  }
957
+ /**
958
+ * @public
959
+ */
960
+ export interface VerifyAdminLinkOtpRequest {
961
+ userId: string | undefined;
962
+ code: string | undefined;
963
+ }
964
+ /**
965
+ * @public
966
+ */
967
+ export interface VerifyAdminLinkOtpResponse {
968
+ verified: boolean | undefined;
969
+ userId: string | undefined;
970
+ username: string | undefined;
971
+ }
919
972
  /**
920
973
  * @public
921
974
  */
@@ -1,6 +1,7 @@
1
1
  import { AuthSocialCommandInput, AuthSocialCommandOutput } from "../commands/AuthSocialCommand";
2
2
  import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "../commands/CompleteLivenessSessionCommand";
3
3
  import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "../commands/CompleteOnboardingCommand";
4
+ import { CreateAdminInviteCommandInput, CreateAdminInviteCommandOutput } from "../commands/CreateAdminInviteCommand";
4
5
  import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "../commands/CreateLivenessSessionCommand";
5
6
  import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "../commands/CreateMediaDownloadUrlCommand";
6
7
  import { CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput } from "../commands/CreateMediaUploadUrlCommand";
@@ -40,6 +41,7 @@ import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "../co
40
41
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "../commands/RequestPhoneOtpCommand";
41
42
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "../commands/RequestPhoneUpdateOtpCommand";
42
43
  import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "../commands/RevokeDeviceCommand";
44
+ import { SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput } from "../commands/SendAdminLinkOtpCommand";
43
45
  import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "../commands/SwipeByUsernameCommand";
44
46
  import { SwipeCommandInput, SwipeCommandOutput } from "../commands/SwipeCommand";
45
47
  import { UnhookCommandInput, UnhookCommandOutput } from "../commands/UnhookCommand";
@@ -52,6 +54,7 @@ import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "../comman
52
54
  import { UpdateUsernameCommandInput, UpdateUsernameCommandOutput } from "../commands/UpdateUsernameCommand";
53
55
  import { UpgradeUserCommandInput, UpgradeUserCommandOutput } from "../commands/UpgradeUserCommand";
54
56
  import { ValidateInviteCommandInput, ValidateInviteCommandOutput } from "../commands/ValidateInviteCommand";
57
+ import { VerifyAdminLinkOtpCommandInput, VerifyAdminLinkOtpCommandOutput } from "../commands/VerifyAdminLinkOtpCommand";
55
58
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
56
59
  import { SerdeContext as __SerdeContext } from "@smithy/types";
57
60
  /**
@@ -106,6 +109,10 @@ export declare const se_UpdateChatSettingsCommand: (input: UpdateChatSettingsCom
106
109
  * serializeAws_restJson1AuthSocialCommand
107
110
  */
108
111
  export declare const se_AuthSocialCommand: (input: AuthSocialCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
112
+ /**
113
+ * serializeAws_restJson1CreateAdminInviteCommand
114
+ */
115
+ export declare const se_CreateAdminInviteCommand: (input: CreateAdminInviteCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
109
116
  /**
110
117
  * serializeAws_restJson1GenerateInviteCommand
111
118
  */
@@ -150,6 +157,10 @@ export declare const se_RequestPhoneOtpCommand: (input: RequestPhoneOtpCommandIn
150
157
  * serializeAws_restJson1RequestPhoneUpdateOtpCommand
151
158
  */
152
159
  export declare const se_RequestPhoneUpdateOtpCommand: (input: RequestPhoneUpdateOtpCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
160
+ /**
161
+ * serializeAws_restJson1SendAdminLinkOtpCommand
162
+ */
163
+ export declare const se_SendAdminLinkOtpCommand: (input: SendAdminLinkOtpCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
153
164
  /**
154
165
  * serializeAws_restJson1UnlinkSocialCommand
155
166
  */
@@ -170,6 +181,10 @@ export declare const se_UpdateUsernameCommand: (input: UpdateUsernameCommandInpu
170
181
  * serializeAws_restJson1ValidateInviteCommand
171
182
  */
172
183
  export declare const se_ValidateInviteCommand: (input: ValidateInviteCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
184
+ /**
185
+ * serializeAws_restJson1VerifyAdminLinkOtpCommand
186
+ */
187
+ export declare const se_VerifyAdminLinkOtpCommand: (input: VerifyAdminLinkOtpCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
173
188
  /**
174
189
  * serializeAws_restJson1DiscoverCommand
175
190
  */
@@ -322,6 +337,10 @@ export declare const de_UpdateChatSettingsCommand: (output: __HttpResponse, cont
322
337
  * deserializeAws_restJson1AuthSocialCommand
323
338
  */
324
339
  export declare const de_AuthSocialCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AuthSocialCommandOutput>;
340
+ /**
341
+ * deserializeAws_restJson1CreateAdminInviteCommand
342
+ */
343
+ export declare const de_CreateAdminInviteCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateAdminInviteCommandOutput>;
325
344
  /**
326
345
  * deserializeAws_restJson1GenerateInviteCommand
327
346
  */
@@ -366,6 +385,10 @@ export declare const de_RequestPhoneOtpCommand: (output: __HttpResponse, context
366
385
  * deserializeAws_restJson1RequestPhoneUpdateOtpCommand
367
386
  */
368
387
  export declare const de_RequestPhoneUpdateOtpCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RequestPhoneUpdateOtpCommandOutput>;
388
+ /**
389
+ * deserializeAws_restJson1SendAdminLinkOtpCommand
390
+ */
391
+ export declare const de_SendAdminLinkOtpCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendAdminLinkOtpCommandOutput>;
369
392
  /**
370
393
  * deserializeAws_restJson1UnlinkSocialCommand
371
394
  */
@@ -386,6 +409,10 @@ export declare const de_UpdateUsernameCommand: (output: __HttpResponse, context:
386
409
  * deserializeAws_restJson1ValidateInviteCommand
387
410
  */
388
411
  export declare const de_ValidateInviteCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ValidateInviteCommandOutput>;
412
+ /**
413
+ * deserializeAws_restJson1VerifyAdminLinkOtpCommand
414
+ */
415
+ export declare const de_VerifyAdminLinkOtpCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<VerifyAdminLinkOtpCommandOutput>;
389
416
  /**
390
417
  * deserializeAws_restJson1DiscoverCommand
391
418
  */
@@ -1,5 +1,5 @@
1
1
  export declare const TELEMETRY_CATALOG_VERSION = "1.3.0";
2
- export declare const TELEMETRY_CATALOG_HASH = "52029d112aadcfd5";
2
+ export declare const TELEMETRY_CATALOG_HASH = "9db35444cda2b7ba";
3
3
  /** Every signal type the ingest accepts. */
4
4
  export declare const SignalType: {
5
5
  readonly SCREEN_VIEW: "screen_view";
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.26",
4
+ "version": "1.0.27",
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",
@@ -1,8 +1,8 @@
1
1
  // GENERATED FILE - DO NOT EDIT.
2
- // telemetry-integrity: sha256 6d0faa787d71a97191f79c16baab74a5338190e36ce761594168784da8072af2
2
+ // telemetry-integrity: sha256 94d29118a67cfeca1488eb2adcee98ef46eebf3ba6e433a9fcc622a81ed01504
3
3
  // Source of truth: OneHookBackend/packages/telemetry/src/catalog.ts
4
4
  // Regenerate: (OneHookBackend) npm run telemetry:generate && npm run telemetry:sync
5
- // Catalog version 1.3.0, hash 52029d112aadcfd5.
5
+ // Catalog version 1.3.0, hash 9db35444cda2b7ba.
6
6
  //
7
7
  // HARD RULE: every user interaction MUST emit ui_interaction with an id from THIS file, and
8
8
  // ids are controlled by the backend. Read TELEMETRY_CONTRACT.txt (printed by every build).
@@ -13,7 +13,7 @@ package club.onehook.telemetry
13
13
 
14
14
  object TelemetryCatalog {
15
15
  const val VERSION = "1.3.0"
16
- const val HASH = "52029d112aadcfd5"
16
+ const val HASH = "9db35444cda2b7ba"
17
17
  /** The only allowed `telemetry-exempt: <category>: <reason>` categories (see the catalog). */
18
18
  val EXEMPT_CATEGORIES: List<String> = listOf("duplicate", "backdrop", "gesture", "continuous", "disabled")
19
19
  }
@@ -1,8 +1,8 @@
1
1
  // GENERATED FILE - DO NOT EDIT.
2
- // telemetry-integrity: sha256 e9f336f3402e1b9628fd2259412a5dae385c8d736a84f32adae388bcca9c3a68
2
+ // telemetry-integrity: sha256 73f10d1858e08f4db1e6f237ec4ff955a07627d99aead4cb50d686f82961e459
3
3
  // Source of truth: OneHookBackend/packages/telemetry/src/catalog.ts
4
4
  // Regenerate: (OneHookBackend) npm run telemetry:generate && npm run telemetry:sync
5
- // Catalog version 1.3.0, hash 52029d112aadcfd5.
5
+ // Catalog version 1.3.0, hash 9db35444cda2b7ba.
6
6
  //
7
7
  // HARD RULE: every user interaction MUST emit ui_interaction with an id from THIS file, and
8
8
  // ids are controlled by the backend. Read TELEMETRY_CONTRACT.txt (printed by every build).
@@ -11,7 +11,7 @@ import Foundation
11
11
 
12
12
  public enum TelemetryCatalog {
13
13
  public static let version = "1.3.0"
14
- public static let hash = "52029d112aadcfd5"
14
+ public static let hash = "9db35444cda2b7ba"
15
15
  /// The only allowed `telemetry-exempt: <category>: <reason>` categories (see the catalog).
16
16
  public static let exemptCategories: [String] = ["duplicate", "backdrop", "gesture", "continuous", "disabled"]
17
17
  }
@@ -1995,7 +1995,7 @@
1995
1995
  "call.caption_language_select": {
1996
1996
  "screen": "CALL",
1997
1997
  "kind": "menu_item",
1998
- "description": "Pick the language your captions are translated into (or \"original\").",
1998
+ "description": "Caption translation language. On choosing a language: targetId = its code (ISO 639-1 base subtag, e.g. \"hi\"). Opening a separate language menu (iOS) reports without targetId. Never caption text.",
1999
1999
  "actions": [
2000
2000
  "tap"
2001
2001
  ],
@@ -4360,5 +4360,5 @@
4360
4360
  }
4361
4361
  }
4362
4362
  },
4363
- "hash": "52029d112aadcfd5"
4363
+ "hash": "9db35444cda2b7ba"
4364
4364
  }