onehook-api-client 1.0.0 → 1.0.5

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.
Files changed (152) hide show
  1. package/LICENSE +28 -201
  2. package/README.md +451 -0
  3. package/dist-cjs/{OneHookService.js → OneHook.js} +5 -5
  4. package/dist-cjs/{OneHookServiceClient.js → OneHookClient.js} +16 -11
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +8 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +24 -11
  7. package/dist-cjs/commands/AuthSocialCommand.js +1 -1
  8. package/dist-cjs/commands/ClaimPreKeyBundleCommand.js +1 -1
  9. package/dist-cjs/commands/CompleteLivenessSessionCommand.js +1 -1
  10. package/dist-cjs/commands/CompleteOnboardingCommand.js +1 -1
  11. package/dist-cjs/commands/CreateLivenessSessionCommand.js +1 -1
  12. package/dist-cjs/commands/DeleteMatchMessagesCommand.js +1 -1
  13. package/dist-cjs/commands/DeleteProfileCommand.js +1 -1
  14. package/dist-cjs/commands/DiscoverCommand.js +1 -1
  15. package/dist-cjs/commands/GenerateInviteCommand.js +1 -1
  16. package/dist-cjs/commands/GenerateUploadUrlCommand.js +1 -1
  17. package/dist-cjs/commands/GetMatchCommand.js +1 -1
  18. package/dist-cjs/commands/GetMyProfileCommand.js +1 -1
  19. package/dist-cjs/commands/GetPreferencesCommand.js +1 -1
  20. package/dist-cjs/commands/GetProfileCommand.js +1 -1
  21. package/dist-cjs/commands/GetStateCommand.js +1 -1
  22. package/dist-cjs/commands/GetUserByEmailCommand.js +1 -1
  23. package/dist-cjs/commands/GetUserCommand.js +1 -1
  24. package/dist-cjs/commands/IndexLocationCommand.js +1 -1
  25. package/dist-cjs/commands/InitUserCommand.js +1 -1
  26. package/dist-cjs/commands/LinkEmailCommand.js +1 -1
  27. package/dist-cjs/commands/LinkSocialCommand.js +1 -1
  28. package/dist-cjs/commands/RegisterPhoneCommand.js +1 -1
  29. package/dist-cjs/commands/RemoveLocationCommand.js +1 -1
  30. package/dist-cjs/commands/RequestEmailOtpCommand.js +1 -1
  31. package/dist-cjs/commands/RequestPhoneOtpCommand.js +1 -1
  32. package/dist-cjs/commands/RequestPhoneUpdateOtpCommand.js +1 -1
  33. package/dist-cjs/commands/SwipeCommand.js +1 -1
  34. package/dist-cjs/commands/UnhookCommand.js +1 -1
  35. package/dist-cjs/commands/UnlinkSocialCommand.js +1 -1
  36. package/dist-cjs/commands/UpdateEntitlementsCommand.js +1 -1
  37. package/dist-cjs/commands/UpdatePhoneNumberCommand.js +1 -1
  38. package/dist-cjs/commands/UpdatePreferencesCommand.js +1 -1
  39. package/dist-cjs/commands/UpdateProfileCommand.js +1 -1
  40. package/dist-cjs/commands/UpgradeUserCommand.js +1 -1
  41. package/dist-cjs/commands/UploadPreKeysCommand.js +1 -1
  42. package/dist-cjs/commands/ValidateInviteCommand.js +1 -1
  43. package/dist-cjs/endpoints.js +232 -0
  44. package/dist-cjs/graphql/types.js +1 -1
  45. package/dist-cjs/index.js +5 -5
  46. package/dist-cjs/models/{OneHookServiceServiceException.js → OneHookServiceException.js} +4 -4
  47. package/dist-cjs/models/models_0.js +17 -13
  48. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  49. package/dist-cjs/runtimeConfig.browser.js +7 -1
  50. package/dist-cjs/runtimeConfig.js +13 -4
  51. package/dist-cjs/runtimeConfig.shared.js +8 -5
  52. package/dist-cjs/runtimeExtensions.js +3 -12
  53. package/dist-es/{OneHookService.js → OneHook.js} +3 -3
  54. package/dist-es/{OneHookServiceClient.js → OneHookClient.js} +16 -11
  55. package/dist-es/auth/httpAuthExtensionConfiguration.js +8 -0
  56. package/dist-es/auth/httpAuthSchemeProvider.js +22 -9
  57. package/dist-es/commands/AuthSocialCommand.js +1 -1
  58. package/dist-es/commands/ClaimPreKeyBundleCommand.js +1 -1
  59. package/dist-es/commands/CompleteLivenessSessionCommand.js +1 -1
  60. package/dist-es/commands/CompleteOnboardingCommand.js +1 -1
  61. package/dist-es/commands/CreateLivenessSessionCommand.js +1 -1
  62. package/dist-es/commands/DeleteMatchMessagesCommand.js +1 -1
  63. package/dist-es/commands/DeleteProfileCommand.js +1 -1
  64. package/dist-es/commands/DiscoverCommand.js +1 -1
  65. package/dist-es/commands/GenerateInviteCommand.js +1 -1
  66. package/dist-es/commands/GenerateUploadUrlCommand.js +1 -1
  67. package/dist-es/commands/GetMatchCommand.js +1 -1
  68. package/dist-es/commands/GetMyProfileCommand.js +1 -1
  69. package/dist-es/commands/GetPreferencesCommand.js +1 -1
  70. package/dist-es/commands/GetProfileCommand.js +1 -1
  71. package/dist-es/commands/GetStateCommand.js +1 -1
  72. package/dist-es/commands/GetUserByEmailCommand.js +1 -1
  73. package/dist-es/commands/GetUserCommand.js +1 -1
  74. package/dist-es/commands/IndexLocationCommand.js +1 -1
  75. package/dist-es/commands/InitUserCommand.js +1 -1
  76. package/dist-es/commands/LinkEmailCommand.js +1 -1
  77. package/dist-es/commands/LinkSocialCommand.js +1 -1
  78. package/dist-es/commands/RegisterPhoneCommand.js +1 -1
  79. package/dist-es/commands/RemoveLocationCommand.js +1 -1
  80. package/dist-es/commands/RequestEmailOtpCommand.js +1 -1
  81. package/dist-es/commands/RequestPhoneOtpCommand.js +1 -1
  82. package/dist-es/commands/RequestPhoneUpdateOtpCommand.js +1 -1
  83. package/dist-es/commands/SwipeCommand.js +1 -1
  84. package/dist-es/commands/UnhookCommand.js +1 -1
  85. package/dist-es/commands/UnlinkSocialCommand.js +1 -1
  86. package/dist-es/commands/UpdateEntitlementsCommand.js +1 -1
  87. package/dist-es/commands/UpdatePhoneNumberCommand.js +1 -1
  88. package/dist-es/commands/UpdatePreferencesCommand.js +1 -1
  89. package/dist-es/commands/UpdateProfileCommand.js +1 -1
  90. package/dist-es/commands/UpgradeUserCommand.js +1 -1
  91. package/dist-es/commands/UploadPreKeysCommand.js +1 -1
  92. package/dist-es/commands/ValidateInviteCommand.js +1 -1
  93. package/dist-es/endpoints.js +228 -0
  94. package/dist-es/index.js +3 -3
  95. package/dist-es/models/{OneHookServiceServiceException.js → OneHookServiceException.js} +2 -2
  96. package/dist-es/models/models_0.js +13 -9
  97. package/dist-es/protocols/Aws_restJson1.js +1 -1
  98. package/dist-es/runtimeConfig.browser.js +7 -1
  99. package/dist-es/runtimeConfig.js +13 -4
  100. package/dist-es/runtimeConfig.shared.js +9 -6
  101. package/dist-es/runtimeExtensions.js +3 -12
  102. package/dist-types/{OneHookService.d.ts → OneHook.d.ts} +3 -3
  103. package/dist-types/{OneHookServiceClient.d.ts → OneHookClient.d.ts} +58 -12
  104. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +8 -5
  105. package/dist-types/auth/httpAuthSchemeProvider.d.ts +13 -11
  106. package/dist-types/commands/AuthSocialCommand.d.ts +11 -10
  107. package/dist-types/commands/ClaimPreKeyBundleCommand.d.ts +11 -10
  108. package/dist-types/commands/CompleteLivenessSessionCommand.d.ts +11 -10
  109. package/dist-types/commands/CompleteOnboardingCommand.d.ts +11 -10
  110. package/dist-types/commands/CreateLivenessSessionCommand.d.ts +11 -10
  111. package/dist-types/commands/DeleteMatchMessagesCommand.d.ts +11 -10
  112. package/dist-types/commands/DeleteProfileCommand.d.ts +11 -10
  113. package/dist-types/commands/DiscoverCommand.d.ts +11 -10
  114. package/dist-types/commands/GenerateInviteCommand.d.ts +11 -10
  115. package/dist-types/commands/GenerateUploadUrlCommand.d.ts +11 -10
  116. package/dist-types/commands/GetMatchCommand.d.ts +11 -10
  117. package/dist-types/commands/GetMyProfileCommand.d.ts +11 -10
  118. package/dist-types/commands/GetPreferencesCommand.d.ts +11 -10
  119. package/dist-types/commands/GetProfileCommand.d.ts +11 -10
  120. package/dist-types/commands/GetStateCommand.d.ts +11 -10
  121. package/dist-types/commands/GetUserByEmailCommand.d.ts +11 -10
  122. package/dist-types/commands/GetUserCommand.d.ts +11 -10
  123. package/dist-types/commands/IndexLocationCommand.d.ts +11 -10
  124. package/dist-types/commands/InitUserCommand.d.ts +11 -10
  125. package/dist-types/commands/LinkEmailCommand.d.ts +11 -10
  126. package/dist-types/commands/LinkSocialCommand.d.ts +11 -10
  127. package/dist-types/commands/RegisterPhoneCommand.d.ts +11 -10
  128. package/dist-types/commands/RemoveLocationCommand.d.ts +11 -10
  129. package/dist-types/commands/RequestEmailOtpCommand.d.ts +11 -10
  130. package/dist-types/commands/RequestPhoneOtpCommand.d.ts +11 -10
  131. package/dist-types/commands/RequestPhoneUpdateOtpCommand.d.ts +11 -10
  132. package/dist-types/commands/SwipeCommand.d.ts +11 -10
  133. package/dist-types/commands/UnhookCommand.d.ts +11 -10
  134. package/dist-types/commands/UnlinkSocialCommand.d.ts +11 -10
  135. package/dist-types/commands/UpdateEntitlementsCommand.d.ts +11 -10
  136. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +11 -10
  137. package/dist-types/commands/UpdatePreferencesCommand.d.ts +11 -10
  138. package/dist-types/commands/UpdateProfileCommand.d.ts +11 -10
  139. package/dist-types/commands/UpgradeUserCommand.d.ts +11 -10
  140. package/dist-types/commands/UploadPreKeysCommand.d.ts +11 -10
  141. package/dist-types/commands/ValidateInviteCommand.d.ts +11 -10
  142. package/dist-types/endpoints.d.ts +2 -0
  143. package/dist-types/extensionConfiguration.d.ts +2 -1
  144. package/dist-types/index.d.ts +4 -4
  145. package/dist-types/models/{OneHookServiceServiceException.d.ts → OneHookServiceException.d.ts} +2 -2
  146. package/dist-types/models/models_0.d.ts +5 -1
  147. package/dist-types/runtimeConfig.browser.d.ts +28 -13
  148. package/dist-types/runtimeConfig.d.ts +28 -13
  149. package/dist-types/runtimeConfig.native.d.ts +28 -13
  150. package/dist-types/runtimeConfig.shared.d.ts +6 -10
  151. package/dist-types/runtimeExtensions.d.ts +2 -2
  152. package/package.json +55 -37
@@ -12,7 +12,7 @@ class CompleteOnboardingCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "CompleteOnboarding", {})
15
- .n("OneHookServiceClient", "CompleteOnboardingCommand")
15
+ .n("OneHookClient", "CompleteOnboardingCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_CompleteOnboardingCommand)
18
18
  .de(Aws_restJson1_1.de_CompleteOnboardingCommand)
@@ -12,7 +12,7 @@ class CreateLivenessSessionCommand extends smithy_client_1.Command.classBuilder(
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "CreateLivenessSession", {})
15
- .n("OneHookServiceClient", "CreateLivenessSessionCommand")
15
+ .n("OneHookClient", "CreateLivenessSessionCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_CreateLivenessSessionCommand)
18
18
  .de(Aws_restJson1_1.de_CreateLivenessSessionCommand)
@@ -12,7 +12,7 @@ class DeleteMatchMessagesCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "DeleteMatchMessages", {})
15
- .n("OneHookServiceClient", "DeleteMatchMessagesCommand")
15
+ .n("OneHookClient", "DeleteMatchMessagesCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_DeleteMatchMessagesCommand)
18
18
  .de(Aws_restJson1_1.de_DeleteMatchMessagesCommand)
@@ -12,7 +12,7 @@ class DeleteProfileCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "DeleteProfile", {})
15
- .n("OneHookServiceClient", "DeleteProfileCommand")
15
+ .n("OneHookClient", "DeleteProfileCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_DeleteProfileCommand)
18
18
  .de(Aws_restJson1_1.de_DeleteProfileCommand)
@@ -12,7 +12,7 @@ class DiscoverCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "Discover", {})
15
- .n("OneHookServiceClient", "DiscoverCommand")
15
+ .n("OneHookClient", "DiscoverCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_DiscoverCommand)
18
18
  .de(Aws_restJson1_1.de_DiscoverCommand)
@@ -12,7 +12,7 @@ class GenerateInviteCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "GenerateInvite", {})
15
- .n("OneHookServiceClient", "GenerateInviteCommand")
15
+ .n("OneHookClient", "GenerateInviteCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_GenerateInviteCommand)
18
18
  .de(Aws_restJson1_1.de_GenerateInviteCommand)
@@ -12,7 +12,7 @@ class GenerateUploadUrlCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "GenerateUploadUrl", {})
15
- .n("OneHookServiceClient", "GenerateUploadUrlCommand")
15
+ .n("OneHookClient", "GenerateUploadUrlCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_GenerateUploadUrlCommand)
18
18
  .de(Aws_restJson1_1.de_GenerateUploadUrlCommand)
@@ -12,7 +12,7 @@ class GetMatchCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "GetMatch", {})
15
- .n("OneHookServiceClient", "GetMatchCommand")
15
+ .n("OneHookClient", "GetMatchCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_GetMatchCommand)
18
18
  .de(Aws_restJson1_1.de_GetMatchCommand)
@@ -12,7 +12,7 @@ class GetMyProfileCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "GetMyProfile", {})
15
- .n("OneHookServiceClient", "GetMyProfileCommand")
15
+ .n("OneHookClient", "GetMyProfileCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_GetMyProfileCommand)
18
18
  .de(Aws_restJson1_1.de_GetMyProfileCommand)
@@ -12,7 +12,7 @@ class GetPreferencesCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "GetPreferences", {})
15
- .n("OneHookServiceClient", "GetPreferencesCommand")
15
+ .n("OneHookClient", "GetPreferencesCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_GetPreferencesCommand)
18
18
  .de(Aws_restJson1_1.de_GetPreferencesCommand)
@@ -12,7 +12,7 @@ class GetProfileCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "GetProfile", {})
15
- .n("OneHookServiceClient", "GetProfileCommand")
15
+ .n("OneHookClient", "GetProfileCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_GetProfileCommand)
18
18
  .de(Aws_restJson1_1.de_GetProfileCommand)
@@ -12,7 +12,7 @@ class GetStateCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "GetState", {})
15
- .n("OneHookServiceClient", "GetStateCommand")
15
+ .n("OneHookClient", "GetStateCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_GetStateCommand)
18
18
  .de(Aws_restJson1_1.de_GetStateCommand)
@@ -12,7 +12,7 @@ class GetUserByEmailCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "GetUserByEmail", {})
15
- .n("OneHookServiceClient", "GetUserByEmailCommand")
15
+ .n("OneHookClient", "GetUserByEmailCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_GetUserByEmailCommand)
18
18
  .de(Aws_restJson1_1.de_GetUserByEmailCommand)
@@ -12,7 +12,7 @@ class GetUserCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "GetUser", {})
15
- .n("OneHookServiceClient", "GetUserCommand")
15
+ .n("OneHookClient", "GetUserCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_GetUserCommand)
18
18
  .de(Aws_restJson1_1.de_GetUserCommand)
@@ -12,7 +12,7 @@ class IndexLocationCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "IndexLocation", {})
15
- .n("OneHookServiceClient", "IndexLocationCommand")
15
+ .n("OneHookClient", "IndexLocationCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_IndexLocationCommand)
18
18
  .de(Aws_restJson1_1.de_IndexLocationCommand)
@@ -12,7 +12,7 @@ class InitUserCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "InitUser", {})
15
- .n("OneHookServiceClient", "InitUserCommand")
15
+ .n("OneHookClient", "InitUserCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_InitUserCommand)
18
18
  .de(Aws_restJson1_1.de_InitUserCommand)
@@ -12,7 +12,7 @@ class LinkEmailCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "LinkEmail", {})
15
- .n("OneHookServiceClient", "LinkEmailCommand")
15
+ .n("OneHookClient", "LinkEmailCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_LinkEmailCommand)
18
18
  .de(Aws_restJson1_1.de_LinkEmailCommand)
@@ -12,7 +12,7 @@ class LinkSocialCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "LinkSocial", {})
15
- .n("OneHookServiceClient", "LinkSocialCommand")
15
+ .n("OneHookClient", "LinkSocialCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_LinkSocialCommand)
18
18
  .de(Aws_restJson1_1.de_LinkSocialCommand)
@@ -12,7 +12,7 @@ class RegisterPhoneCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "RegisterPhone", {})
15
- .n("OneHookServiceClient", "RegisterPhoneCommand")
15
+ .n("OneHookClient", "RegisterPhoneCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_RegisterPhoneCommand)
18
18
  .de(Aws_restJson1_1.de_RegisterPhoneCommand)
@@ -12,7 +12,7 @@ class RemoveLocationCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "RemoveLocation", {})
15
- .n("OneHookServiceClient", "RemoveLocationCommand")
15
+ .n("OneHookClient", "RemoveLocationCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_RemoveLocationCommand)
18
18
  .de(Aws_restJson1_1.de_RemoveLocationCommand)
@@ -12,7 +12,7 @@ class RequestEmailOtpCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "RequestEmailOtp", {})
15
- .n("OneHookServiceClient", "RequestEmailOtpCommand")
15
+ .n("OneHookClient", "RequestEmailOtpCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_RequestEmailOtpCommand)
18
18
  .de(Aws_restJson1_1.de_RequestEmailOtpCommand)
@@ -12,7 +12,7 @@ class RequestPhoneOtpCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "RequestPhoneOtp", {})
15
- .n("OneHookServiceClient", "RequestPhoneOtpCommand")
15
+ .n("OneHookClient", "RequestPhoneOtpCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_RequestPhoneOtpCommand)
18
18
  .de(Aws_restJson1_1.de_RequestPhoneOtpCommand)
@@ -12,7 +12,7 @@ class RequestPhoneUpdateOtpCommand extends smithy_client_1.Command.classBuilder(
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "RequestPhoneUpdateOtp", {})
15
- .n("OneHookServiceClient", "RequestPhoneUpdateOtpCommand")
15
+ .n("OneHookClient", "RequestPhoneUpdateOtpCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_RequestPhoneUpdateOtpCommand)
18
18
  .de(Aws_restJson1_1.de_RequestPhoneUpdateOtpCommand)
@@ -12,7 +12,7 @@ class SwipeCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "Swipe", {})
15
- .n("OneHookServiceClient", "SwipeCommand")
15
+ .n("OneHookClient", "SwipeCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_SwipeCommand)
18
18
  .de(Aws_restJson1_1.de_SwipeCommand)
@@ -12,7 +12,7 @@ class UnhookCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "Unhook", {})
15
- .n("OneHookServiceClient", "UnhookCommand")
15
+ .n("OneHookClient", "UnhookCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_UnhookCommand)
18
18
  .de(Aws_restJson1_1.de_UnhookCommand)
@@ -12,7 +12,7 @@ class UnlinkSocialCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "UnlinkSocial", {})
15
- .n("OneHookServiceClient", "UnlinkSocialCommand")
15
+ .n("OneHookClient", "UnlinkSocialCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_UnlinkSocialCommand)
18
18
  .de(Aws_restJson1_1.de_UnlinkSocialCommand)
@@ -12,7 +12,7 @@ class UpdateEntitlementsCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "UpdateEntitlements", {})
15
- .n("OneHookServiceClient", "UpdateEntitlementsCommand")
15
+ .n("OneHookClient", "UpdateEntitlementsCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_UpdateEntitlementsCommand)
18
18
  .de(Aws_restJson1_1.de_UpdateEntitlementsCommand)
@@ -12,7 +12,7 @@ class UpdatePhoneNumberCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "UpdatePhoneNumber", {})
15
- .n("OneHookServiceClient", "UpdatePhoneNumberCommand")
15
+ .n("OneHookClient", "UpdatePhoneNumberCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_UpdatePhoneNumberCommand)
18
18
  .de(Aws_restJson1_1.de_UpdatePhoneNumberCommand)
@@ -12,7 +12,7 @@ class UpdatePreferencesCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "UpdatePreferences", {})
15
- .n("OneHookServiceClient", "UpdatePreferencesCommand")
15
+ .n("OneHookClient", "UpdatePreferencesCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_UpdatePreferencesCommand)
18
18
  .de(Aws_restJson1_1.de_UpdatePreferencesCommand)
@@ -12,7 +12,7 @@ class UpdateProfileCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "UpdateProfile", {})
15
- .n("OneHookServiceClient", "UpdateProfileCommand")
15
+ .n("OneHookClient", "UpdateProfileCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_UpdateProfileCommand)
18
18
  .de(Aws_restJson1_1.de_UpdateProfileCommand)
@@ -12,7 +12,7 @@ class UpgradeUserCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "UpgradeUser", {})
15
- .n("OneHookServiceClient", "UpgradeUserCommand")
15
+ .n("OneHookClient", "UpgradeUserCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_UpgradeUserCommand)
18
18
  .de(Aws_restJson1_1.de_UpgradeUserCommand)
@@ -12,7 +12,7 @@ class UploadPreKeysCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "UploadPreKeys", {})
15
- .n("OneHookServiceClient", "UploadPreKeysCommand")
15
+ .n("OneHookClient", "UploadPreKeysCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_UploadPreKeysCommand)
18
18
  .de(Aws_restJson1_1.de_UploadPreKeysCommand)
@@ -12,7 +12,7 @@ class ValidateInviteCommand extends smithy_client_1.Command.classBuilder()
12
12
  ];
13
13
  })
14
14
  .s("OneHookService", "ValidateInvite", {})
15
- .n("OneHookServiceClient", "ValidateInviteCommand")
15
+ .n("OneHookClient", "ValidateInviteCommand")
16
16
  .f(void 0, void 0)
17
17
  .ser(Aws_restJson1_1.se_ValidateInviteCommand)
18
18
  .de(Aws_restJson1_1.de_ValidateInviteCommand)
@@ -0,0 +1,232 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultRegionInfoProvider = void 0;
4
+ const config_resolver_1 = require("@smithy/config-resolver");
5
+ const regionHash = {};
6
+ const partitionHash = {
7
+ "aws": {
8
+ regions: [
9
+ "af-south-1",
10
+ "ap-east-1",
11
+ "ap-northeast-1",
12
+ "ap-northeast-2",
13
+ "ap-northeast-3",
14
+ "ap-south-1",
15
+ "ap-south-2",
16
+ "ap-southeast-1",
17
+ "ap-southeast-2",
18
+ "ap-southeast-3",
19
+ "ap-southeast-4",
20
+ "ap-southeast-5",
21
+ "ap-southeast-7",
22
+ "ca-central-1",
23
+ "ca-west-1",
24
+ "eu-central-1",
25
+ "eu-central-2",
26
+ "eu-north-1",
27
+ "eu-south-1",
28
+ "eu-south-2",
29
+ "eu-west-1",
30
+ "eu-west-2",
31
+ "eu-west-3",
32
+ "il-central-1",
33
+ "me-central-1",
34
+ "me-south-1",
35
+ "mx-central-1",
36
+ "sa-east-1",
37
+ "us-east-1",
38
+ "us-east-2",
39
+ "us-west-1",
40
+ "us-west-2",
41
+ ],
42
+ regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
43
+ variants: [
44
+ {
45
+ "hostname": "onehook.{region}.amazonaws.com",
46
+ "tags": []
47
+ },
48
+ {
49
+ "hostname": "onehook-fips.{region}.amazonaws.com",
50
+ "tags": [
51
+ "fips"
52
+ ]
53
+ },
54
+ {
55
+ "hostname": "onehook-fips.{region}.api.aws",
56
+ "tags": [
57
+ "dualstack",
58
+ "fips"
59
+ ]
60
+ },
61
+ {
62
+ "hostname": "onehook.{region}.api.aws",
63
+ "tags": [
64
+ "dualstack"
65
+ ]
66
+ }
67
+ ],
68
+ },
69
+ "aws-cn": {
70
+ regions: [
71
+ "cn-north-1",
72
+ "cn-northwest-1",
73
+ ],
74
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
75
+ variants: [
76
+ {
77
+ "hostname": "onehook.{region}.amazonaws.com.cn",
78
+ "tags": []
79
+ },
80
+ {
81
+ "hostname": "onehook-fips.{region}.amazonaws.com.cn",
82
+ "tags": [
83
+ "fips"
84
+ ]
85
+ },
86
+ {
87
+ "hostname": "onehook-fips.{region}.api.amazonwebservices.com.cn",
88
+ "tags": [
89
+ "dualstack",
90
+ "fips"
91
+ ]
92
+ },
93
+ {
94
+ "hostname": "onehook.{region}.api.amazonwebservices.com.cn",
95
+ "tags": [
96
+ "dualstack"
97
+ ]
98
+ }
99
+ ],
100
+ },
101
+ "aws-eusc": {
102
+ regions: [
103
+ "eusc-de-east-1",
104
+ ],
105
+ regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
106
+ variants: [
107
+ {
108
+ "hostname": "onehook.{region}.amazonaws.eu",
109
+ "tags": []
110
+ },
111
+ {
112
+ "hostname": "onehook-fips.{region}.amazonaws.eu",
113
+ "tags": [
114
+ "fips"
115
+ ]
116
+ }
117
+ ],
118
+ },
119
+ "aws-iso": {
120
+ regions: [
121
+ "us-iso-east-1",
122
+ "us-iso-west-1",
123
+ ],
124
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
125
+ variants: [
126
+ {
127
+ "hostname": "onehook.{region}.c2s.ic.gov",
128
+ "tags": []
129
+ },
130
+ {
131
+ "hostname": "onehook-fips.{region}.c2s.ic.gov",
132
+ "tags": [
133
+ "fips"
134
+ ]
135
+ }
136
+ ],
137
+ },
138
+ "aws-iso-b": {
139
+ regions: [
140
+ "us-isob-east-1",
141
+ ],
142
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
143
+ variants: [
144
+ {
145
+ "hostname": "onehook.{region}.sc2s.sgov.gov",
146
+ "tags": []
147
+ },
148
+ {
149
+ "hostname": "onehook-fips.{region}.sc2s.sgov.gov",
150
+ "tags": [
151
+ "fips"
152
+ ]
153
+ }
154
+ ],
155
+ },
156
+ "aws-iso-e": {
157
+ regions: [
158
+ "eu-isoe-west-1",
159
+ ],
160
+ regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
161
+ variants: [
162
+ {
163
+ "hostname": "onehook.{region}.cloud.adc-e.uk",
164
+ "tags": []
165
+ },
166
+ {
167
+ "hostname": "onehook-fips.{region}.cloud.adc-e.uk",
168
+ "tags": [
169
+ "fips"
170
+ ]
171
+ }
172
+ ],
173
+ },
174
+ "aws-iso-f": {
175
+ regions: [
176
+ "us-isof-east-1",
177
+ "us-isof-south-1",
178
+ ],
179
+ regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
180
+ variants: [
181
+ {
182
+ "hostname": "onehook.{region}.csp.hci.ic.gov",
183
+ "tags": []
184
+ },
185
+ {
186
+ "hostname": "onehook-fips.{region}.csp.hci.ic.gov",
187
+ "tags": [
188
+ "fips"
189
+ ]
190
+ }
191
+ ],
192
+ },
193
+ "aws-us-gov": {
194
+ regions: [
195
+ "us-gov-east-1",
196
+ "us-gov-west-1",
197
+ ],
198
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
199
+ variants: [
200
+ {
201
+ "hostname": "onehook.{region}.amazonaws.com",
202
+ "tags": []
203
+ },
204
+ {
205
+ "hostname": "onehook-fips.{region}.amazonaws.com",
206
+ "tags": [
207
+ "fips"
208
+ ]
209
+ },
210
+ {
211
+ "hostname": "onehook-fips.{region}.api.aws",
212
+ "tags": [
213
+ "dualstack",
214
+ "fips"
215
+ ]
216
+ },
217
+ {
218
+ "hostname": "onehook.{region}.api.aws",
219
+ "tags": [
220
+ "dualstack"
221
+ ]
222
+ }
223
+ ],
224
+ },
225
+ };
226
+ const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
227
+ ...options,
228
+ signingService: "onehook",
229
+ regionHash,
230
+ partitionHash,
231
+ });
232
+ exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
@@ -8,4 +8,4 @@ var MessageStatus;
8
8
  MessageStatus["Read"] = "READ";
9
9
  MessageStatus["Sending"] = "SENDING";
10
10
  MessageStatus["Sent"] = "SENT";
11
- })(MessageStatus = exports.MessageStatus || (exports.MessageStatus = {}));
11
+ })(MessageStatus || (exports.MessageStatus = MessageStatus = {}));
package/dist-cjs/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OneHookServiceServiceException = void 0;
3
+ exports.OneHookServiceException = void 0;
4
4
  const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./OneHookServiceClient"), exports);
6
- tslib_1.__exportStar(require("./OneHookService"), exports);
5
+ tslib_1.__exportStar(require("./OneHookClient"), exports);
6
+ tslib_1.__exportStar(require("./OneHook"), exports);
7
7
  tslib_1.__exportStar(require("./commands"), exports);
8
8
  tslib_1.__exportStar(require("./models"), exports);
9
- var OneHookServiceServiceException_1 = require("./models/OneHookServiceServiceException");
10
- Object.defineProperty(exports, "OneHookServiceServiceException", { enumerable: true, get: function () { return OneHookServiceServiceException_1.OneHookServiceServiceException; } });
9
+ var OneHookServiceException_1 = require("./models/OneHookServiceException");
10
+ Object.defineProperty(exports, "OneHookServiceException", { enumerable: true, get: function () { return OneHookServiceException_1.OneHookServiceException; } });
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OneHookServiceServiceException = exports.__ServiceException = void 0;
3
+ exports.OneHookServiceException = exports.__ServiceException = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class OneHookServiceServiceException extends smithy_client_1.ServiceException {
6
+ class OneHookServiceException extends smithy_client_1.ServiceException {
7
7
  constructor(options) {
8
8
  super(options);
9
- Object.setPrototypeOf(this, OneHookServiceServiceException.prototype);
9
+ Object.setPrototypeOf(this, OneHookServiceException.prototype);
10
10
  }
11
11
  }
12
- exports.OneHookServiceServiceException = OneHookServiceServiceException;
12
+ exports.OneHookServiceException = OneHookServiceException;