onehook-api-client 1.0.37 → 1.0.39

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 (230) hide show
  1. package/README.md +446 -19
  2. package/dist-cjs/OneHook.js +88 -8
  3. package/dist-cjs/commands/{GetNotificationPreferencesCommand.js → AcceptHookRequestCommand.js} +7 -7
  4. package/dist-cjs/commands/BlockUserCommand.js +21 -0
  5. package/dist-cjs/commands/CancelHookRequestCommand.js +21 -0
  6. package/dist-cjs/commands/ClearTierOverrideCommand.js +21 -0
  7. package/dist-cjs/commands/DeclineHookRequestCommand.js +21 -0
  8. package/dist-cjs/commands/{SwipeByUsernameCommand.js → DisableMatchingCommand.js} +7 -7
  9. package/dist-cjs/commands/EnableMatchingCommand.js +21 -0
  10. package/dist-cjs/commands/EstablishHistoryEpochCommand.js +21 -0
  11. package/dist-cjs/commands/GetChatProfileCommand.js +21 -0
  12. package/dist-cjs/commands/GetDiscoverySnapshotCommand.js +21 -0
  13. package/dist-cjs/commands/GetGraphInvitesCommand.js +21 -0
  14. package/dist-cjs/commands/{UpdateProfileCommand.js → GetGraphMatchCommand.js} +7 -7
  15. package/dist-cjs/commands/GetGraphUserCommand.js +21 -0
  16. package/dist-cjs/commands/GetHistoryStateCommand.js +21 -0
  17. package/dist-cjs/commands/GetInternalMatchingStatusCommand.js +21 -0
  18. package/dist-cjs/commands/GetInternalProfileCommand.js +21 -0
  19. package/dist-cjs/commands/GetInviteEdgesCommand.js +21 -0
  20. package/dist-cjs/commands/GetMatchingProfileCommand.js +21 -0
  21. package/dist-cjs/commands/GetMatchingReadinessCommand.js +21 -0
  22. package/dist-cjs/commands/GetMediaStatsCommand.js +21 -0
  23. package/dist-cjs/commands/GetModerationReportCommand.js +21 -0
  24. package/dist-cjs/commands/GetModerationSignalsCommand.js +21 -0
  25. package/dist-cjs/commands/GetPartnerDistanceCommand.js +21 -0
  26. package/dist-cjs/commands/GetScoringPolicyCommand.js +21 -0
  27. package/dist-cjs/commands/GetTierOverrideCommand.js +21 -0
  28. package/dist-cjs/commands/IngestSignalsCommand.js +21 -0
  29. package/dist-cjs/commands/IssueViewPassesCommand.js +21 -0
  30. package/dist-cjs/commands/KeepHooksCommand.js +21 -0
  31. package/dist-cjs/commands/{GetProfileCommand.js → ListBlocksCommand.js} +7 -7
  32. package/dist-cjs/commands/ListGraphUserMatchesCommand.js +21 -0
  33. package/dist-cjs/commands/ListHookRequestsCommand.js +21 -0
  34. package/dist-cjs/commands/ListMatchingOnMembersCommand.js +21 -0
  35. package/dist-cjs/commands/PutHistoryWrapCommand.js +21 -0
  36. package/dist-cjs/commands/RecordSuggestionInternalCommand.js +21 -0
  37. package/dist-cjs/commands/ReportMemberCommand.js +21 -0
  38. package/dist-cjs/commands/RepublishMatchingProfileCommand.js +21 -0
  39. package/dist-cjs/commands/RevokeHistoryWrapCommand.js +21 -0
  40. package/dist-cjs/commands/SendHookRequestCommand.js +21 -0
  41. package/dist-cjs/commands/SetTierOverrideCommand.js +21 -0
  42. package/dist-cjs/commands/SimulateScoringPolicyCommand.js +21 -0
  43. package/dist-cjs/commands/UnblockUserCommand.js +21 -0
  44. package/dist-cjs/commands/UpdateScoringPolicyCommand.js +21 -0
  45. package/dist-cjs/commands/UpsertChatProfileCommand.js +21 -0
  46. package/dist-cjs/commands/UpsertMatchingProfileCommand.js +21 -0
  47. package/dist-cjs/commands/index.js +44 -4
  48. package/dist-cjs/graphql/types.js +4 -0
  49. package/dist-cjs/models/models_0.js +216 -21
  50. package/dist-cjs/protocols/Aws_restJson1.js +2198 -514
  51. package/dist-cjs/telemetry/index.js +49 -9
  52. package/dist-es/OneHook.js +88 -8
  53. package/dist-es/commands/AcceptHookRequestCommand.js +17 -0
  54. package/dist-es/commands/BlockUserCommand.js +17 -0
  55. package/dist-es/commands/CancelHookRequestCommand.js +17 -0
  56. package/dist-es/commands/ClearTierOverrideCommand.js +17 -0
  57. package/dist-es/commands/DeclineHookRequestCommand.js +17 -0
  58. package/dist-es/commands/{SwipeByUsernameCommand.js → DisableMatchingCommand.js} +6 -6
  59. package/dist-es/commands/EnableMatchingCommand.js +17 -0
  60. package/dist-es/commands/EstablishHistoryEpochCommand.js +17 -0
  61. package/dist-es/commands/GetChatProfileCommand.js +17 -0
  62. package/dist-es/commands/GetDiscoverySnapshotCommand.js +17 -0
  63. package/dist-es/commands/GetGraphInvitesCommand.js +17 -0
  64. package/dist-es/commands/{UpdateProfileCommand.js → GetGraphMatchCommand.js} +6 -6
  65. package/dist-es/commands/GetGraphUserCommand.js +17 -0
  66. package/dist-es/commands/GetHistoryStateCommand.js +17 -0
  67. package/dist-es/commands/GetInternalMatchingStatusCommand.js +17 -0
  68. package/dist-es/commands/GetInternalProfileCommand.js +17 -0
  69. package/dist-es/commands/GetInviteEdgesCommand.js +17 -0
  70. package/dist-es/commands/GetMatchingProfileCommand.js +17 -0
  71. package/dist-es/commands/GetMatchingReadinessCommand.js +17 -0
  72. package/dist-es/commands/GetMediaStatsCommand.js +17 -0
  73. package/dist-es/commands/GetModerationReportCommand.js +17 -0
  74. package/dist-es/commands/GetModerationSignalsCommand.js +17 -0
  75. package/dist-es/commands/GetPartnerDistanceCommand.js +17 -0
  76. package/dist-es/commands/GetScoringPolicyCommand.js +17 -0
  77. package/dist-es/commands/GetTierOverrideCommand.js +17 -0
  78. package/dist-es/commands/IngestSignalsCommand.js +17 -0
  79. package/dist-es/commands/IssueViewPassesCommand.js +17 -0
  80. package/dist-es/commands/KeepHooksCommand.js +17 -0
  81. package/dist-es/commands/{GetProfileCommand.js → ListBlocksCommand.js} +6 -6
  82. package/dist-es/commands/ListGraphUserMatchesCommand.js +17 -0
  83. package/dist-es/commands/ListHookRequestsCommand.js +17 -0
  84. package/dist-es/commands/ListMatchingOnMembersCommand.js +17 -0
  85. package/dist-es/commands/PutHistoryWrapCommand.js +17 -0
  86. package/dist-es/commands/RecordSuggestionInternalCommand.js +17 -0
  87. package/dist-es/commands/ReportMemberCommand.js +17 -0
  88. package/dist-es/commands/RepublishMatchingProfileCommand.js +17 -0
  89. package/dist-es/commands/RevokeHistoryWrapCommand.js +17 -0
  90. package/dist-es/commands/SendHookRequestCommand.js +17 -0
  91. package/dist-es/commands/SetTierOverrideCommand.js +17 -0
  92. package/dist-es/commands/SimulateScoringPolicyCommand.js +17 -0
  93. package/dist-es/commands/UnblockUserCommand.js +17 -0
  94. package/dist-es/commands/UpdateScoringPolicyCommand.js +17 -0
  95. package/dist-es/commands/UpsertChatProfileCommand.js +17 -0
  96. package/dist-es/commands/UpsertMatchingProfileCommand.js +17 -0
  97. package/dist-es/commands/index.js +44 -4
  98. package/dist-es/graphql/types.js +4 -0
  99. package/dist-es/models/models_0.js +208 -18
  100. package/dist-es/protocols/Aws_restJson1.js +2003 -401
  101. package/dist-es/telemetry/index.js +49 -9
  102. package/dist-types/OneHook.d.ts +311 -23
  103. package/dist-types/OneHookClient.d.ts +46 -6
  104. package/dist-types/commands/AcceptHookRequestCommand.d.ts +109 -0
  105. package/dist-types/commands/AuthSocialCommand.d.ts +23 -0
  106. package/dist-types/commands/BlockUserCommand.d.ts +106 -0
  107. package/dist-types/commands/CancelHookRequestCommand.d.ts +103 -0
  108. package/dist-types/commands/ClearTierOverrideCommand.d.ts +123 -0
  109. package/dist-types/commands/CompleteLivenessSessionCommand.d.ts +26 -1
  110. package/dist-types/commands/CompleteOnboardingCommand.d.ts +31 -2
  111. package/dist-types/commands/CorrectBirthDateCommand.d.ts +25 -0
  112. package/dist-types/commands/CreateAdminInviteCommand.d.ts +29 -5
  113. package/dist-types/commands/CreateLivenessSessionCommand.d.ts +23 -0
  114. package/dist-types/commands/CreateMediaDownloadUrlCommand.d.ts +23 -0
  115. package/dist-types/commands/CreateMediaUploadUrlCommand.d.ts +24 -1
  116. package/dist-types/commands/DeclineHookRequestCommand.d.ts +103 -0
  117. package/dist-types/commands/DeleteMatchMessagesCommand.d.ts +21 -0
  118. package/dist-types/commands/DeleteProfileCommand.d.ts +28 -2
  119. package/dist-types/commands/DeletePushTokenCommand.d.ts +23 -0
  120. package/dist-types/commands/DisableMatchingCommand.d.ts +106 -0
  121. package/dist-types/commands/DiscoverCommand.d.ts +22 -0
  122. package/dist-types/commands/EnableMatchingCommand.d.ts +105 -0
  123. package/dist-types/commands/EstablishHistoryEpochCommand.d.ts +125 -0
  124. package/dist-types/commands/GenerateDownloadUrlCommand.d.ts +26 -0
  125. package/dist-types/commands/GenerateInviteCommand.d.ts +23 -0
  126. package/dist-types/commands/GenerateUploadUrlCommand.d.ts +31 -2
  127. package/dist-types/commands/GetAccountStateCommand.d.ts +25 -0
  128. package/dist-types/commands/GetAdminPhoneStatusCommand.d.ts +23 -0
  129. package/dist-types/commands/GetAiContextMatchCommand.d.ts +25 -0
  130. package/dist-types/commands/GetBirthDateStatusCommand.d.ts +25 -0
  131. package/dist-types/commands/GetChatProfileCommand.d.ts +123 -0
  132. package/dist-types/commands/GetChatSettingsCommand.d.ts +22 -0
  133. package/dist-types/commands/GetCredentialReadinessCommand.d.ts +25 -0
  134. package/dist-types/commands/GetDiscoverySnapshotCommand.d.ts +138 -0
  135. package/dist-types/commands/GetGraphInvitesCommand.d.ts +119 -0
  136. package/dist-types/commands/GetGraphMatchCommand.d.ts +136 -0
  137. package/dist-types/commands/GetGraphUserCommand.d.ts +117 -0
  138. package/dist-types/commands/GetHistoryStateCommand.d.ts +113 -0
  139. package/dist-types/commands/GetInternalMatchingStatusCommand.d.ts +102 -0
  140. package/dist-types/commands/GetInternalProfileCommand.d.ts +174 -0
  141. package/dist-types/commands/GetInviteEdgesCommand.d.ts +106 -0
  142. package/dist-types/commands/GetLivenessStatusCommand.d.ts +23 -0
  143. package/dist-types/commands/GetMatchCommand.d.ts +27 -0
  144. package/dist-types/commands/GetMatchingProfileCommand.d.ts +175 -0
  145. package/dist-types/commands/GetMatchingReadinessCommand.d.ts +107 -0
  146. package/dist-types/commands/GetMediaStatsCommand.d.ts +106 -0
  147. package/dist-types/commands/GetModerationReportCommand.d.ts +113 -0
  148. package/dist-types/commands/GetModerationSignalsCommand.d.ts +123 -0
  149. package/dist-types/commands/GetMyProfileCommand.d.ts +119 -79
  150. package/dist-types/commands/GetParticipantRegistryCommand.d.ts +23 -0
  151. package/dist-types/commands/GetPartnerDistanceCommand.d.ts +102 -0
  152. package/dist-types/commands/GetPlaceCommand.d.ts +25 -0
  153. package/dist-types/commands/GetPreferencesCommand.d.ts +27 -3
  154. package/dist-types/commands/GetPreservationHoldCommand.d.ts +25 -0
  155. package/dist-types/commands/GetReceivedLikesCommand.d.ts +24 -0
  156. package/dist-types/commands/GetRosesCommand.d.ts +25 -0
  157. package/dist-types/commands/GetScoringPolicyCommand.d.ts +143 -0
  158. package/dist-types/commands/GetStateCommand.d.ts +44 -0
  159. package/dist-types/commands/GetSuggestionsCommand.d.ts +23 -0
  160. package/dist-types/commands/GetTierOverrideCommand.d.ts +123 -0
  161. package/dist-types/commands/GetTraditionPreferencesCommand.d.ts +23 -0
  162. package/dist-types/commands/GetUserByEmailCommand.d.ts +27 -0
  163. package/dist-types/commands/GetUserCommand.d.ts +27 -0
  164. package/dist-types/commands/GetUserIdByUsernameCommand.d.ts +28 -3
  165. package/dist-types/commands/IndexLocationCommand.d.ts +23 -0
  166. package/dist-types/commands/IngestSignalsCommand.d.ts +114 -0
  167. package/dist-types/commands/InitUserCommand.d.ts +29 -2
  168. package/dist-types/commands/IssueViewPassesCommand.d.ts +107 -0
  169. package/dist-types/commands/KeepHooksCommand.d.ts +136 -0
  170. package/dist-types/commands/LinkEmailCommand.d.ts +23 -0
  171. package/dist-types/commands/LinkSocialCommand.d.ts +23 -0
  172. package/dist-types/commands/ListBlocksCommand.d.ts +102 -0
  173. package/dist-types/commands/ListGraphUserMatchesCommand.d.ts +117 -0
  174. package/dist-types/commands/ListHookRequestsCommand.d.ts +110 -0
  175. package/dist-types/commands/ListMatchingOnMembersCommand.d.ts +108 -0
  176. package/dist-types/commands/ListMyDevicesCommand.d.ts +20 -0
  177. package/dist-types/commands/PutHistoryWrapCommand.d.ts +112 -0
  178. package/dist-types/commands/RecordSuggestionCommand.d.ts +21 -0
  179. package/dist-types/commands/RecordSuggestionInternalCommand.d.ts +105 -0
  180. package/dist-types/commands/RegisterDeviceCommand.d.ts +25 -10
  181. package/dist-types/commands/RegisterPhoneCommand.d.ts +23 -0
  182. package/dist-types/commands/RegisterPushTokenCommand.d.ts +23 -0
  183. package/dist-types/commands/RemoveLocationCommand.d.ts +23 -0
  184. package/dist-types/commands/RemoveOneHookSuggestionCommand.d.ts +23 -0
  185. package/dist-types/commands/RemoveSuggestionCommand.d.ts +23 -0
  186. package/dist-types/commands/ReportMemberCommand.d.ts +107 -0
  187. package/dist-types/commands/RepublishMatchingProfileCommand.d.ts +109 -0
  188. package/dist-types/commands/RequestEmailOtpCommand.d.ts +23 -0
  189. package/dist-types/commands/RequestPhoneOtpCommand.d.ts +23 -0
  190. package/dist-types/commands/RequestPhoneUpdateOtpCommand.d.ts +23 -0
  191. package/dist-types/commands/RevokeDeviceCommand.d.ts +23 -0
  192. package/dist-types/commands/RevokeHistoryWrapCommand.d.ts +108 -0
  193. package/dist-types/commands/RevokeUserAccessCommand.d.ts +25 -0
  194. package/dist-types/commands/SearchPlacesCommand.d.ts +23 -0
  195. package/dist-types/commands/SendAdminLinkOtpCommand.d.ts +25 -0
  196. package/dist-types/commands/SendHookRequestCommand.d.ts +105 -0
  197. package/dist-types/commands/SetAccountStateCommand.d.ts +27 -0
  198. package/dist-types/commands/SetPreservationHoldCommand.d.ts +27 -0
  199. package/dist-types/commands/SetTierOverrideCommand.d.ts +128 -0
  200. package/dist-types/commands/SimulateScoringPolicyCommand.d.ts +129 -0
  201. package/dist-types/commands/SwipeCommand.d.ts +27 -0
  202. package/dist-types/commands/UnblockUserCommand.d.ts +99 -0
  203. package/dist-types/commands/UnhookCommand.d.ts +29 -0
  204. package/dist-types/commands/UnlinkSocialCommand.d.ts +23 -0
  205. package/dist-types/commands/UpdateChatSettingsCommand.d.ts +25 -0
  206. package/dist-types/commands/UpdateEntitlementsCommand.d.ts +25 -0
  207. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +23 -0
  208. package/dist-types/commands/UpdatePreferencesCommand.d.ts +76 -8
  209. package/dist-types/commands/UpdateScoringPolicyCommand.d.ts +183 -0
  210. package/dist-types/commands/UpdateTraditionPreferencesCommand.d.ts +23 -0
  211. package/dist-types/commands/UpdateUsernameCommand.d.ts +23 -0
  212. package/dist-types/commands/UpgradeUserCommand.d.ts +44 -0
  213. package/dist-types/commands/UpsertChatProfileCommand.d.ts +110 -0
  214. package/dist-types/commands/UpsertMatchingProfileCommand.d.ts +163 -0
  215. package/dist-types/commands/ValidateInviteCommand.d.ts +23 -0
  216. package/dist-types/commands/VerifyAdminLinkOtpCommand.d.ts +25 -0
  217. package/dist-types/commands/index.d.ts +44 -4
  218. package/dist-types/graphql/types.d.ts +8 -0
  219. package/dist-types/models/models_0.d.ts +3406 -1268
  220. package/dist-types/protocols/Aws_restJson1.d.ts +384 -24
  221. package/dist-types/telemetry/index.d.ts +25 -2
  222. package/package.json +1 -1
  223. package/telemetry/TelemetryCatalog.kt +33 -11
  224. package/telemetry/TelemetryCatalog.swift +50 -11
  225. package/telemetry/telemetry-catalog.json +309 -34
  226. package/dist-es/commands/GetNotificationPreferencesCommand.js +0 -17
  227. package/dist-types/commands/GetNotificationPreferencesCommand.d.ts +0 -91
  228. package/dist-types/commands/GetProfileCommand.d.ts +0 -153
  229. package/dist-types/commands/SwipeByUsernameCommand.d.ts +0 -93
  230. package/dist-types/commands/UpdateProfileCommand.d.ts +0 -142
@@ -0,0 +1,105 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { SendHookRequestRequest, StatusResponse } 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 SendHookRequestCommand}.
14
+ */
15
+ export interface SendHookRequestCommandInput extends SendHookRequestRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SendHookRequestCommand}.
21
+ */
22
+ export interface SendHookRequestCommandOutput extends StatusResponse, __MetadataBearer {
23
+ }
24
+ declare const SendHookRequestCommand_base: {
25
+ new (input: SendHookRequestCommandInput): import("@smithy/smithy-client").CommandImpl<SendHookRequestCommandInput, SendHookRequestCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SendHookRequestCommandInput): import("@smithy/smithy-client").CommandImpl<SendHookRequestCommandInput, SendHookRequestCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Sends a hook request to the member with this username. Always answers `REQUEST_SENT` once the
31
+ * sender is allowed to send at all, whether or not the request was delivered (unknown handle,
32
+ * blocked pair, recipient limits), so the response never reveals anything about the recipient.
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { OneHookClient, SendHookRequestCommand } from "onehook-api-client"; // ES Modules import
37
+ * // const { OneHookClient, SendHookRequestCommand } = require("onehook-api-client"); // CommonJS import
38
+ * const client = new OneHookClient(config);
39
+ * const input = { // SendHookRequestRequest
40
+ * username: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new SendHookRequestCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // StatusResponse
45
+ * // status: "STRING_VALUE", // required
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param SendHookRequestCommandInput - {@link SendHookRequestCommandInput}
51
+ * @returns {@link SendHookRequestCommandOutput}
52
+ * @see {@link SendHookRequestCommandInput} for command's `input` shape.
53
+ * @see {@link SendHookRequestCommandOutput} for command's `response` shape.
54
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
55
+ *
56
+ * @throws {@link BadRequestError} (client fault)
57
+ * 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
58
+ *
59
+ * @throws {@link ConflictError} (client fault)
60
+ * 409: the request conflicts with the current state (code `CONFLICT`, or a more specific one such
61
+ * as `NOT_READY` or `MATCHING_ERASING`).
62
+ *
63
+ * @throws {@link InternalServerError} (server fault)
64
+ * 500: an unexpected failure (code `INTERNAL_ERROR`).
65
+ *
66
+ * @throws {@link UnauthorizedError} (client fault)
67
+ * 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
68
+ *
69
+ * @throws {@link ForbiddenError} (client fault)
70
+ * 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
71
+ * `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
72
+ *
73
+ * @throws {@link TooManyRequestsError} (client fault)
74
+ * 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
75
+ * `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
76
+ * model.
77
+ *
78
+ * @throws {@link BadGatewayError} (server fault)
79
+ * 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
80
+ * (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
81
+ * (`PROPAGATION_FAILED`, retrying the same request is safe).
82
+ *
83
+ * @throws {@link ServiceUnavailableError} (server fault)
84
+ * 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
85
+ * `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
86
+ *
87
+ * @throws {@link OneHookServiceException}
88
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
89
+ *
90
+ *
91
+ * @public
92
+ */
93
+ export declare class SendHookRequestCommand extends SendHookRequestCommand_base {
94
+ /** @internal type navigation helper, not in runtime. */
95
+ protected static __types: {
96
+ api: {
97
+ input: SendHookRequestRequest;
98
+ output: StatusResponse;
99
+ };
100
+ sdk: {
101
+ input: SendHookRequestCommandInput;
102
+ output: SendHookRequestCommandOutput;
103
+ };
104
+ };
105
+ }
@@ -67,12 +67,39 @@ declare const SetAccountStateCommand_base: {
67
67
  * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
68
68
  *
69
69
  * @throws {@link BadRequestError} (client fault)
70
+ * 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
70
71
  *
71
72
  * @throws {@link NotFoundError} (client fault)
73
+ * 404: the resource does not exist or is not visible to the caller (code `NOT_FOUND`, or a more
74
+ * specific one such as `REQUEST_UNAVAILABLE`).
72
75
  *
73
76
  * @throws {@link ConflictError} (client fault)
77
+ * 409: the request conflicts with the current state (code `CONFLICT`, or a more specific one such
78
+ * as `NOT_READY` or `MATCHING_ERASING`).
74
79
  *
75
80
  * @throws {@link InternalServerError} (server fault)
81
+ * 500: an unexpected failure (code `INTERNAL_ERROR`).
82
+ *
83
+ * @throws {@link UnauthorizedError} (client fault)
84
+ * 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
85
+ *
86
+ * @throws {@link ForbiddenError} (client fault)
87
+ * 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
88
+ * `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
89
+ *
90
+ * @throws {@link TooManyRequestsError} (client fault)
91
+ * 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
92
+ * `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
93
+ * model.
94
+ *
95
+ * @throws {@link BadGatewayError} (server fault)
96
+ * 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
97
+ * (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
98
+ * (`PROPAGATION_FAILED`, retrying the same request is safe).
99
+ *
100
+ * @throws {@link ServiceUnavailableError} (server fault)
101
+ * 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
102
+ * `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
76
103
  *
77
104
  * @throws {@link OneHookServiceException}
78
105
  * <p>Base exception class for all service exceptions from OneHook service.</p>
@@ -70,12 +70,39 @@ declare const SetPreservationHoldCommand_base: {
70
70
  * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
71
71
  *
72
72
  * @throws {@link BadRequestError} (client fault)
73
+ * 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
73
74
  *
74
75
  * @throws {@link NotFoundError} (client fault)
76
+ * 404: the resource does not exist or is not visible to the caller (code `NOT_FOUND`, or a more
77
+ * specific one such as `REQUEST_UNAVAILABLE`).
75
78
  *
76
79
  * @throws {@link ConflictError} (client fault)
80
+ * 409: the request conflicts with the current state (code `CONFLICT`, or a more specific one such
81
+ * as `NOT_READY` or `MATCHING_ERASING`).
77
82
  *
78
83
  * @throws {@link InternalServerError} (server fault)
84
+ * 500: an unexpected failure (code `INTERNAL_ERROR`).
85
+ *
86
+ * @throws {@link UnauthorizedError} (client fault)
87
+ * 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
88
+ *
89
+ * @throws {@link ForbiddenError} (client fault)
90
+ * 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
91
+ * `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
92
+ *
93
+ * @throws {@link TooManyRequestsError} (client fault)
94
+ * 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
95
+ * `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
96
+ * model.
97
+ *
98
+ * @throws {@link BadGatewayError} (server fault)
99
+ * 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
100
+ * (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
101
+ * (`PROPAGATION_FAILED`, retrying the same request is safe).
102
+ *
103
+ * @throws {@link ServiceUnavailableError} (server fault)
104
+ * 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
105
+ * `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
79
106
  *
80
107
  * @throws {@link OneHookServiceException}
81
108
  * <p>Base exception class for all service exceptions from OneHook service.</p>
@@ -0,0 +1,128 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { SetTierOverrideRequest, TierOverride } 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 SetTierOverrideCommand}.
14
+ */
15
+ export interface SetTierOverrideCommandInput extends SetTierOverrideRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SetTierOverrideCommand}.
21
+ */
22
+ export interface SetTierOverrideCommandOutput extends TierOverride, __MetadataBearer {
23
+ }
24
+ declare const SetTierOverrideCommand_base: {
25
+ new (input: SetTierOverrideCommandInput): import("@smithy/smithy-client").CommandImpl<SetTierOverrideCommandInput, SetTierOverrideCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SetTierOverrideCommandInput): import("@smithy/smithy-client").CommandImpl<SetTierOverrideCommandInput, SetTierOverrideCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Gives the member `tier` free of charge until `expiresAt`, replacing any existing override (the
31
+ * previous one stays in the history). The new tier is propagated to the Cognito claim; when that write
32
+ * fails the override is still saved and the answer is 502 `PROPAGATION_FAILED` (retrying is safe).
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { OneHookClient, SetTierOverrideCommand } from "onehook-api-client"; // ES Modules import
37
+ * // const { OneHookClient, SetTierOverrideCommand } = require("onehook-api-client"); // CommonJS import
38
+ * const client = new OneHookClient(config);
39
+ * const input = { // SetTierOverrideRequest
40
+ * targetUserId: "STRING_VALUE", // required
41
+ * tier: "MUST" || "SUPER" || "INFINITY", // required
42
+ * reason: "STRING_VALUE", // required
43
+ * expiresAt: Number("long"), // required
44
+ * };
45
+ * const command = new SetTierOverrideCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // TierOverride
48
+ * // userId: "STRING_VALUE", // required
49
+ * // billingTier: "MUST" || "SUPER" || "INFINITY", // required
50
+ * // effectiveTier: "MUST" || "SUPER" || "INFINITY", // required
51
+ * // overrideActive: true || false, // required
52
+ * // overrideTier: "MUST" || "SUPER" || "INFINITY",
53
+ * // overrideExpiresAt: Number("long"),
54
+ * // overrideReason: "STRING_VALUE",
55
+ * // overrideSetBy: "STRING_VALUE",
56
+ * // overrideSetAt: Number("long"),
57
+ * // maxConnections: Number("int"), // required
58
+ * // overrideHistory: [ // OverrideHistoryList // required
59
+ * // { // OverrideHistoryEntry
60
+ * // action: "STRING_VALUE",
61
+ * // tier: "MUST" || "SUPER" || "INFINITY",
62
+ * // expiresAt: Number("long"),
63
+ * // reason: "STRING_VALUE",
64
+ * // by: "STRING_VALUE",
65
+ * // source: "STRING_VALUE",
66
+ * // at: Number("long"),
67
+ * // },
68
+ * // ],
69
+ * // };
70
+ *
71
+ * ```
72
+ *
73
+ * @param SetTierOverrideCommandInput - {@link SetTierOverrideCommandInput}
74
+ * @returns {@link SetTierOverrideCommandOutput}
75
+ * @see {@link SetTierOverrideCommandInput} for command's `input` shape.
76
+ * @see {@link SetTierOverrideCommandOutput} for command's `response` shape.
77
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
78
+ *
79
+ * @throws {@link BadRequestError} (client fault)
80
+ * 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
81
+ *
82
+ * @throws {@link ForbiddenError} (client fault)
83
+ * 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
84
+ * `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
85
+ *
86
+ * @throws {@link NotFoundError} (client fault)
87
+ * 404: the resource does not exist or is not visible to the caller (code `NOT_FOUND`, or a more
88
+ * specific one such as `REQUEST_UNAVAILABLE`).
89
+ *
90
+ * @throws {@link InternalServerError} (server fault)
91
+ * 500: an unexpected failure (code `INTERNAL_ERROR`).
92
+ *
93
+ * @throws {@link BadGatewayError} (server fault)
94
+ * 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
95
+ * (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
96
+ * (`PROPAGATION_FAILED`, retrying the same request is safe).
97
+ *
98
+ * @throws {@link UnauthorizedError} (client fault)
99
+ * 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
100
+ *
101
+ * @throws {@link TooManyRequestsError} (client fault)
102
+ * 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
103
+ * `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
104
+ * model.
105
+ *
106
+ * @throws {@link ServiceUnavailableError} (server fault)
107
+ * 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
108
+ * `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
109
+ *
110
+ * @throws {@link OneHookServiceException}
111
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
112
+ *
113
+ *
114
+ * @public
115
+ */
116
+ export declare class SetTierOverrideCommand extends SetTierOverrideCommand_base {
117
+ /** @internal type navigation helper, not in runtime. */
118
+ protected static __types: {
119
+ api: {
120
+ input: SetTierOverrideRequest;
121
+ output: TierOverride;
122
+ };
123
+ sdk: {
124
+ input: SetTierOverrideCommandInput;
125
+ output: SetTierOverrideCommandOutput;
126
+ };
127
+ };
128
+ }
@@ -0,0 +1,129 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { SimulateScoringPolicyRequest, SimulationOutput } 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 SimulateScoringPolicyCommand}.
14
+ */
15
+ export interface SimulateScoringPolicyCommandInput extends SimulateScoringPolicyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SimulateScoringPolicyCommand}.
21
+ */
22
+ export interface SimulateScoringPolicyCommandOutput extends SimulationOutput, __MetadataBearer {
23
+ }
24
+ declare const SimulateScoringPolicyCommand_base: {
25
+ new (input: SimulateScoringPolicyCommandInput): import("@smithy/smithy-client").CommandImpl<SimulateScoringPolicyCommandInput, SimulateScoringPolicyCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SimulateScoringPolicyCommandInput): import("@smithy/smithy-client").CommandImpl<SimulateScoringPolicyCommandInput, SimulateScoringPolicyCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Scores one scenario with the default parameters and with `overrides` applied, without saving
31
+ * anything. Unknown override names are ignored.
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { OneHookClient, SimulateScoringPolicyCommand } from "onehook-api-client"; // ES Modules import
36
+ * // const { OneHookClient, SimulateScoringPolicyCommand } = require("onehook-api-client"); // CommonJS import
37
+ * const client = new OneHookClient(config);
38
+ * const input = { // SimulateScoringPolicyRequest
39
+ * scenario: { // SimulationScenario
40
+ * viewerId: "STRING_VALUE", // required
41
+ * targetId: "STRING_VALUE", // required
42
+ * durationMs: Number("int"),
43
+ * photosViewed: Number("int"),
44
+ * totalPhotos: Number("int"),
45
+ * bioExpanded: true || false,
46
+ * promptsRead: Number("int"),
47
+ * decisionLatencyMs: Number("int"),
48
+ * isSuperLike: true || false,
49
+ * },
50
+ * overrides: { // ParameterOverrides
51
+ * "<keys>": Number("double"),
52
+ * },
53
+ * };
54
+ * const command = new SimulateScoringPolicyCommand(input);
55
+ * const response = await client.send(command);
56
+ * // { // SimulationOutput
57
+ * // scenario: { // SimulationScenario
58
+ * // viewerId: "STRING_VALUE", // required
59
+ * // targetId: "STRING_VALUE", // required
60
+ * // durationMs: Number("int"),
61
+ * // photosViewed: Number("int"),
62
+ * // totalPhotos: Number("int"),
63
+ * // bioExpanded: true || false,
64
+ * // promptsRead: Number("int"),
65
+ * // decisionLatencyMs: Number("int"),
66
+ * // isSuperLike: true || false,
67
+ * // },
68
+ * // baselineScore: Number("double"), // required
69
+ * // simulatedScore: Number("double"), // required
70
+ * // delta: Number("double"), // required
71
+ * // breakdown: { // ScoreBreakdown // required
72
+ * // "<keys>": Number("double"),
73
+ * // },
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param SimulateScoringPolicyCommandInput - {@link SimulateScoringPolicyCommandInput}
79
+ * @returns {@link SimulateScoringPolicyCommandOutput}
80
+ * @see {@link SimulateScoringPolicyCommandInput} for command's `input` shape.
81
+ * @see {@link SimulateScoringPolicyCommandOutput} for command's `response` shape.
82
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
83
+ *
84
+ * @throws {@link BadRequestError} (client fault)
85
+ * 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
86
+ *
87
+ * @throws {@link InternalServerError} (server fault)
88
+ * 500: an unexpected failure (code `INTERNAL_ERROR`).
89
+ *
90
+ * @throws {@link UnauthorizedError} (client fault)
91
+ * 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
92
+ *
93
+ * @throws {@link ForbiddenError} (client fault)
94
+ * 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
95
+ * `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
96
+ *
97
+ * @throws {@link TooManyRequestsError} (client fault)
98
+ * 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
99
+ * `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
100
+ * model.
101
+ *
102
+ * @throws {@link BadGatewayError} (server fault)
103
+ * 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
104
+ * (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
105
+ * (`PROPAGATION_FAILED`, retrying the same request is safe).
106
+ *
107
+ * @throws {@link ServiceUnavailableError} (server fault)
108
+ * 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
109
+ * `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
110
+ *
111
+ * @throws {@link OneHookServiceException}
112
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
113
+ *
114
+ *
115
+ * @public
116
+ */
117
+ export declare class SimulateScoringPolicyCommand extends SimulateScoringPolicyCommand_base {
118
+ /** @internal type navigation helper, not in runtime. */
119
+ protected static __types: {
120
+ api: {
121
+ input: SimulateScoringPolicyRequest;
122
+ output: SimulationOutput;
123
+ };
124
+ sdk: {
125
+ input: SimulateScoringPolicyCommandInput;
126
+ output: SimulateScoringPolicyCommandOutput;
127
+ };
128
+ };
129
+ }
@@ -61,8 +61,35 @@ declare const SwipeCommand_base: {
61
61
  * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
62
62
  *
63
63
  * @throws {@link BadRequestError} (client fault)
64
+ * 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
65
+ *
66
+ * @throws {@link ForbiddenError} (client fault)
67
+ * 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
68
+ * `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
69
+ *
70
+ * @throws {@link NotFoundError} (client fault)
71
+ * 404: the resource does not exist or is not visible to the caller (code `NOT_FOUND`, or a more
72
+ * specific one such as `REQUEST_UNAVAILABLE`).
73
+ *
74
+ * @throws {@link TooManyRequestsError} (client fault)
75
+ * 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
76
+ * `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
77
+ * model.
64
78
  *
65
79
  * @throws {@link InternalServerError} (server fault)
80
+ * 500: an unexpected failure (code `INTERNAL_ERROR`).
81
+ *
82
+ * @throws {@link UnauthorizedError} (client fault)
83
+ * 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
84
+ *
85
+ * @throws {@link BadGatewayError} (server fault)
86
+ * 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
87
+ * (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
88
+ * (`PROPAGATION_FAILED`, retrying the same request is safe).
89
+ *
90
+ * @throws {@link ServiceUnavailableError} (server fault)
91
+ * 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
92
+ * `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
66
93
  *
67
94
  * @throws {@link OneHookServiceException}
68
95
  * <p>Base exception class for all service exceptions from OneHook service.</p>
@@ -0,0 +1,99 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { StatusResponse, UnblockUserRequest } 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 UnblockUserCommand}.
14
+ */
15
+ export interface UnblockUserCommandInput extends UnblockUserRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UnblockUserCommand}.
21
+ */
22
+ export interface UnblockUserCommandOutput extends StatusResponse, __MetadataBearer {
23
+ }
24
+ declare const UnblockUserCommand_base: {
25
+ new (input: UnblockUserCommandInput): import("@smithy/smithy-client").CommandImpl<UnblockUserCommandInput, UnblockUserCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UnblockUserCommandInput): import("@smithy/smithy-client").CommandImpl<UnblockUserCommandInput, UnblockUserCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * @public
31
+ *
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { OneHookClient, UnblockUserCommand } from "onehook-api-client"; // ES Modules import
36
+ * // const { OneHookClient, UnblockUserCommand } = require("onehook-api-client"); // CommonJS import
37
+ * const client = new OneHookClient(config);
38
+ * const input = { // UnblockUserRequest
39
+ * blockedUserId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new UnblockUserCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // StatusResponse
44
+ * // status: "STRING_VALUE", // required
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param UnblockUserCommandInput - {@link UnblockUserCommandInput}
50
+ * @returns {@link UnblockUserCommandOutput}
51
+ * @see {@link UnblockUserCommandInput} for command's `input` shape.
52
+ * @see {@link UnblockUserCommandOutput} for command's `response` shape.
53
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
54
+ *
55
+ * @throws {@link BadRequestError} (client fault)
56
+ * 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
57
+ *
58
+ * @throws {@link InternalServerError} (server fault)
59
+ * 500: an unexpected failure (code `INTERNAL_ERROR`).
60
+ *
61
+ * @throws {@link UnauthorizedError} (client fault)
62
+ * 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
63
+ *
64
+ * @throws {@link ForbiddenError} (client fault)
65
+ * 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
66
+ * `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
67
+ *
68
+ * @throws {@link TooManyRequestsError} (client fault)
69
+ * 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
70
+ * `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
71
+ * model.
72
+ *
73
+ * @throws {@link BadGatewayError} (server fault)
74
+ * 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
75
+ * (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
76
+ * (`PROPAGATION_FAILED`, retrying the same request is safe).
77
+ *
78
+ * @throws {@link ServiceUnavailableError} (server fault)
79
+ * 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
80
+ * `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
81
+ *
82
+ * @throws {@link OneHookServiceException}
83
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
84
+ *
85
+ *
86
+ */
87
+ export declare class UnblockUserCommand extends UnblockUserCommand_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: UnblockUserRequest;
92
+ output: StatusResponse;
93
+ };
94
+ sdk: {
95
+ input: UnblockUserCommandInput;
96
+ output: UnblockUserCommandOutput;
97
+ };
98
+ };
99
+ }
@@ -54,10 +54,39 @@ declare const UnhookCommand_base: {
54
54
  * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
55
55
  *
56
56
  * @throws {@link BadRequestError} (client fault)
57
+ * 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
57
58
  *
58
59
  * @throws {@link NotFoundError} (client fault)
60
+ * 404: the resource does not exist or is not visible to the caller (code `NOT_FOUND`, or a more
61
+ * specific one such as `REQUEST_UNAVAILABLE`).
62
+ *
63
+ * @throws {@link ConflictError} (client fault)
64
+ * 409: the request conflicts with the current state (code `CONFLICT`, or a more specific one such
65
+ * as `NOT_READY` or `MATCHING_ERASING`).
59
66
  *
60
67
  * @throws {@link InternalServerError} (server fault)
68
+ * 500: an unexpected failure (code `INTERNAL_ERROR`).
69
+ *
70
+ * @throws {@link UnauthorizedError} (client fault)
71
+ * 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
72
+ *
73
+ * @throws {@link ForbiddenError} (client fault)
74
+ * 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
75
+ * `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
76
+ *
77
+ * @throws {@link TooManyRequestsError} (client fault)
78
+ * 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
79
+ * `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
80
+ * model.
81
+ *
82
+ * @throws {@link BadGatewayError} (server fault)
83
+ * 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
84
+ * (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
85
+ * (`PROPAGATION_FAILED`, retrying the same request is safe).
86
+ *
87
+ * @throws {@link ServiceUnavailableError} (server fault)
88
+ * 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
89
+ * `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
61
90
  *
62
91
  * @throws {@link OneHookServiceException}
63
92
  * <p>Base exception class for all service exceptions from OneHook service.</p>
@@ -53,8 +53,31 @@ declare const UnlinkSocialCommand_base: {
53
53
  * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
54
54
  *
55
55
  * @throws {@link BadRequestError} (client fault)
56
+ * 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
56
57
  *
57
58
  * @throws {@link InternalServerError} (server fault)
59
+ * 500: an unexpected failure (code `INTERNAL_ERROR`).
60
+ *
61
+ * @throws {@link UnauthorizedError} (client fault)
62
+ * 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
63
+ *
64
+ * @throws {@link ForbiddenError} (client fault)
65
+ * 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
66
+ * `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
67
+ *
68
+ * @throws {@link TooManyRequestsError} (client fault)
69
+ * 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
70
+ * `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
71
+ * model.
72
+ *
73
+ * @throws {@link BadGatewayError} (server fault)
74
+ * 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
75
+ * (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
76
+ * (`PROPAGATION_FAILED`, retrying the same request is safe).
77
+ *
78
+ * @throws {@link ServiceUnavailableError} (server fault)
79
+ * 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
80
+ * `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
58
81
  *
59
82
  * @throws {@link OneHookServiceException}
60
83
  * <p>Base exception class for all service exceptions from OneHook service.</p>