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.
- package/README.md +446 -19
- package/dist-cjs/OneHook.js +88 -8
- package/dist-cjs/commands/{GetNotificationPreferencesCommand.js → AcceptHookRequestCommand.js} +7 -7
- package/dist-cjs/commands/BlockUserCommand.js +21 -0
- package/dist-cjs/commands/CancelHookRequestCommand.js +21 -0
- package/dist-cjs/commands/ClearTierOverrideCommand.js +21 -0
- package/dist-cjs/commands/DeclineHookRequestCommand.js +21 -0
- package/dist-cjs/commands/{SwipeByUsernameCommand.js → DisableMatchingCommand.js} +7 -7
- package/dist-cjs/commands/EnableMatchingCommand.js +21 -0
- package/dist-cjs/commands/EstablishHistoryEpochCommand.js +21 -0
- package/dist-cjs/commands/GetChatProfileCommand.js +21 -0
- package/dist-cjs/commands/GetDiscoverySnapshotCommand.js +21 -0
- package/dist-cjs/commands/GetGraphInvitesCommand.js +21 -0
- package/dist-cjs/commands/{UpdateProfileCommand.js → GetGraphMatchCommand.js} +7 -7
- package/dist-cjs/commands/GetGraphUserCommand.js +21 -0
- package/dist-cjs/commands/GetHistoryStateCommand.js +21 -0
- package/dist-cjs/commands/GetInternalMatchingStatusCommand.js +21 -0
- package/dist-cjs/commands/GetInternalProfileCommand.js +21 -0
- package/dist-cjs/commands/GetInviteEdgesCommand.js +21 -0
- package/dist-cjs/commands/GetMatchingProfileCommand.js +21 -0
- package/dist-cjs/commands/GetMatchingReadinessCommand.js +21 -0
- package/dist-cjs/commands/GetMediaStatsCommand.js +21 -0
- package/dist-cjs/commands/GetModerationReportCommand.js +21 -0
- package/dist-cjs/commands/GetModerationSignalsCommand.js +21 -0
- package/dist-cjs/commands/GetPartnerDistanceCommand.js +21 -0
- package/dist-cjs/commands/GetScoringPolicyCommand.js +21 -0
- package/dist-cjs/commands/GetTierOverrideCommand.js +21 -0
- package/dist-cjs/commands/IngestSignalsCommand.js +21 -0
- package/dist-cjs/commands/IssueViewPassesCommand.js +21 -0
- package/dist-cjs/commands/KeepHooksCommand.js +21 -0
- package/dist-cjs/commands/{GetProfileCommand.js → ListBlocksCommand.js} +7 -7
- package/dist-cjs/commands/ListGraphUserMatchesCommand.js +21 -0
- package/dist-cjs/commands/ListHookRequestsCommand.js +21 -0
- package/dist-cjs/commands/ListMatchingOnMembersCommand.js +21 -0
- package/dist-cjs/commands/PutHistoryWrapCommand.js +21 -0
- package/dist-cjs/commands/RecordSuggestionInternalCommand.js +21 -0
- package/dist-cjs/commands/ReportMemberCommand.js +21 -0
- package/dist-cjs/commands/RepublishMatchingProfileCommand.js +21 -0
- package/dist-cjs/commands/RevokeHistoryWrapCommand.js +21 -0
- package/dist-cjs/commands/SendHookRequestCommand.js +21 -0
- package/dist-cjs/commands/SetTierOverrideCommand.js +21 -0
- package/dist-cjs/commands/SimulateScoringPolicyCommand.js +21 -0
- package/dist-cjs/commands/UnblockUserCommand.js +21 -0
- package/dist-cjs/commands/UpdateScoringPolicyCommand.js +21 -0
- package/dist-cjs/commands/UpsertChatProfileCommand.js +21 -0
- package/dist-cjs/commands/UpsertMatchingProfileCommand.js +21 -0
- package/dist-cjs/commands/index.js +44 -4
- package/dist-cjs/graphql/types.js +4 -0
- package/dist-cjs/models/models_0.js +216 -21
- package/dist-cjs/protocols/Aws_restJson1.js +2198 -514
- package/dist-cjs/telemetry/index.js +49 -9
- package/dist-es/OneHook.js +88 -8
- package/dist-es/commands/AcceptHookRequestCommand.js +17 -0
- package/dist-es/commands/BlockUserCommand.js +17 -0
- package/dist-es/commands/CancelHookRequestCommand.js +17 -0
- package/dist-es/commands/ClearTierOverrideCommand.js +17 -0
- package/dist-es/commands/DeclineHookRequestCommand.js +17 -0
- package/dist-es/commands/{SwipeByUsernameCommand.js → DisableMatchingCommand.js} +6 -6
- package/dist-es/commands/EnableMatchingCommand.js +17 -0
- package/dist-es/commands/EstablishHistoryEpochCommand.js +17 -0
- package/dist-es/commands/GetChatProfileCommand.js +17 -0
- package/dist-es/commands/GetDiscoverySnapshotCommand.js +17 -0
- package/dist-es/commands/GetGraphInvitesCommand.js +17 -0
- package/dist-es/commands/{UpdateProfileCommand.js → GetGraphMatchCommand.js} +6 -6
- package/dist-es/commands/GetGraphUserCommand.js +17 -0
- package/dist-es/commands/GetHistoryStateCommand.js +17 -0
- package/dist-es/commands/GetInternalMatchingStatusCommand.js +17 -0
- package/dist-es/commands/GetInternalProfileCommand.js +17 -0
- package/dist-es/commands/GetInviteEdgesCommand.js +17 -0
- package/dist-es/commands/GetMatchingProfileCommand.js +17 -0
- package/dist-es/commands/GetMatchingReadinessCommand.js +17 -0
- package/dist-es/commands/GetMediaStatsCommand.js +17 -0
- package/dist-es/commands/GetModerationReportCommand.js +17 -0
- package/dist-es/commands/GetModerationSignalsCommand.js +17 -0
- package/dist-es/commands/GetPartnerDistanceCommand.js +17 -0
- package/dist-es/commands/GetScoringPolicyCommand.js +17 -0
- package/dist-es/commands/GetTierOverrideCommand.js +17 -0
- package/dist-es/commands/IngestSignalsCommand.js +17 -0
- package/dist-es/commands/IssueViewPassesCommand.js +17 -0
- package/dist-es/commands/KeepHooksCommand.js +17 -0
- package/dist-es/commands/{GetProfileCommand.js → ListBlocksCommand.js} +6 -6
- package/dist-es/commands/ListGraphUserMatchesCommand.js +17 -0
- package/dist-es/commands/ListHookRequestsCommand.js +17 -0
- package/dist-es/commands/ListMatchingOnMembersCommand.js +17 -0
- package/dist-es/commands/PutHistoryWrapCommand.js +17 -0
- package/dist-es/commands/RecordSuggestionInternalCommand.js +17 -0
- package/dist-es/commands/ReportMemberCommand.js +17 -0
- package/dist-es/commands/RepublishMatchingProfileCommand.js +17 -0
- package/dist-es/commands/RevokeHistoryWrapCommand.js +17 -0
- package/dist-es/commands/SendHookRequestCommand.js +17 -0
- package/dist-es/commands/SetTierOverrideCommand.js +17 -0
- package/dist-es/commands/SimulateScoringPolicyCommand.js +17 -0
- package/dist-es/commands/UnblockUserCommand.js +17 -0
- package/dist-es/commands/UpdateScoringPolicyCommand.js +17 -0
- package/dist-es/commands/UpsertChatProfileCommand.js +17 -0
- package/dist-es/commands/UpsertMatchingProfileCommand.js +17 -0
- package/dist-es/commands/index.js +44 -4
- package/dist-es/graphql/types.js +4 -0
- package/dist-es/models/models_0.js +208 -18
- package/dist-es/protocols/Aws_restJson1.js +2003 -401
- package/dist-es/telemetry/index.js +49 -9
- package/dist-types/OneHook.d.ts +311 -23
- package/dist-types/OneHookClient.d.ts +46 -6
- package/dist-types/commands/AcceptHookRequestCommand.d.ts +109 -0
- package/dist-types/commands/AuthSocialCommand.d.ts +23 -0
- package/dist-types/commands/BlockUserCommand.d.ts +106 -0
- package/dist-types/commands/CancelHookRequestCommand.d.ts +103 -0
- package/dist-types/commands/ClearTierOverrideCommand.d.ts +123 -0
- package/dist-types/commands/CompleteLivenessSessionCommand.d.ts +26 -1
- package/dist-types/commands/CompleteOnboardingCommand.d.ts +31 -2
- package/dist-types/commands/CorrectBirthDateCommand.d.ts +25 -0
- package/dist-types/commands/CreateAdminInviteCommand.d.ts +29 -5
- package/dist-types/commands/CreateLivenessSessionCommand.d.ts +23 -0
- package/dist-types/commands/CreateMediaDownloadUrlCommand.d.ts +23 -0
- package/dist-types/commands/CreateMediaUploadUrlCommand.d.ts +24 -1
- package/dist-types/commands/DeclineHookRequestCommand.d.ts +103 -0
- package/dist-types/commands/DeleteMatchMessagesCommand.d.ts +21 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +28 -2
- package/dist-types/commands/DeletePushTokenCommand.d.ts +23 -0
- package/dist-types/commands/DisableMatchingCommand.d.ts +106 -0
- package/dist-types/commands/DiscoverCommand.d.ts +22 -0
- package/dist-types/commands/EnableMatchingCommand.d.ts +105 -0
- package/dist-types/commands/EstablishHistoryEpochCommand.d.ts +125 -0
- package/dist-types/commands/GenerateDownloadUrlCommand.d.ts +26 -0
- package/dist-types/commands/GenerateInviteCommand.d.ts +23 -0
- package/dist-types/commands/GenerateUploadUrlCommand.d.ts +31 -2
- package/dist-types/commands/GetAccountStateCommand.d.ts +25 -0
- package/dist-types/commands/GetAdminPhoneStatusCommand.d.ts +23 -0
- package/dist-types/commands/GetAiContextMatchCommand.d.ts +25 -0
- package/dist-types/commands/GetBirthDateStatusCommand.d.ts +25 -0
- package/dist-types/commands/GetChatProfileCommand.d.ts +123 -0
- package/dist-types/commands/GetChatSettingsCommand.d.ts +22 -0
- package/dist-types/commands/GetCredentialReadinessCommand.d.ts +25 -0
- package/dist-types/commands/GetDiscoverySnapshotCommand.d.ts +138 -0
- package/dist-types/commands/GetGraphInvitesCommand.d.ts +119 -0
- package/dist-types/commands/GetGraphMatchCommand.d.ts +136 -0
- package/dist-types/commands/GetGraphUserCommand.d.ts +117 -0
- package/dist-types/commands/GetHistoryStateCommand.d.ts +113 -0
- package/dist-types/commands/GetInternalMatchingStatusCommand.d.ts +102 -0
- package/dist-types/commands/GetInternalProfileCommand.d.ts +174 -0
- package/dist-types/commands/GetInviteEdgesCommand.d.ts +106 -0
- package/dist-types/commands/GetLivenessStatusCommand.d.ts +23 -0
- package/dist-types/commands/GetMatchCommand.d.ts +27 -0
- package/dist-types/commands/GetMatchingProfileCommand.d.ts +175 -0
- package/dist-types/commands/GetMatchingReadinessCommand.d.ts +107 -0
- package/dist-types/commands/GetMediaStatsCommand.d.ts +106 -0
- package/dist-types/commands/GetModerationReportCommand.d.ts +113 -0
- package/dist-types/commands/GetModerationSignalsCommand.d.ts +123 -0
- package/dist-types/commands/GetMyProfileCommand.d.ts +119 -79
- package/dist-types/commands/GetParticipantRegistryCommand.d.ts +23 -0
- package/dist-types/commands/GetPartnerDistanceCommand.d.ts +102 -0
- package/dist-types/commands/GetPlaceCommand.d.ts +25 -0
- package/dist-types/commands/GetPreferencesCommand.d.ts +27 -3
- package/dist-types/commands/GetPreservationHoldCommand.d.ts +25 -0
- package/dist-types/commands/GetReceivedLikesCommand.d.ts +24 -0
- package/dist-types/commands/GetRosesCommand.d.ts +25 -0
- package/dist-types/commands/GetScoringPolicyCommand.d.ts +143 -0
- package/dist-types/commands/GetStateCommand.d.ts +44 -0
- package/dist-types/commands/GetSuggestionsCommand.d.ts +23 -0
- package/dist-types/commands/GetTierOverrideCommand.d.ts +123 -0
- package/dist-types/commands/GetTraditionPreferencesCommand.d.ts +23 -0
- package/dist-types/commands/GetUserByEmailCommand.d.ts +27 -0
- package/dist-types/commands/GetUserCommand.d.ts +27 -0
- package/dist-types/commands/GetUserIdByUsernameCommand.d.ts +28 -3
- package/dist-types/commands/IndexLocationCommand.d.ts +23 -0
- package/dist-types/commands/IngestSignalsCommand.d.ts +114 -0
- package/dist-types/commands/InitUserCommand.d.ts +29 -2
- package/dist-types/commands/IssueViewPassesCommand.d.ts +107 -0
- package/dist-types/commands/KeepHooksCommand.d.ts +136 -0
- package/dist-types/commands/LinkEmailCommand.d.ts +23 -0
- package/dist-types/commands/LinkSocialCommand.d.ts +23 -0
- package/dist-types/commands/ListBlocksCommand.d.ts +102 -0
- package/dist-types/commands/ListGraphUserMatchesCommand.d.ts +117 -0
- package/dist-types/commands/ListHookRequestsCommand.d.ts +110 -0
- package/dist-types/commands/ListMatchingOnMembersCommand.d.ts +108 -0
- package/dist-types/commands/ListMyDevicesCommand.d.ts +20 -0
- package/dist-types/commands/PutHistoryWrapCommand.d.ts +112 -0
- package/dist-types/commands/RecordSuggestionCommand.d.ts +21 -0
- package/dist-types/commands/RecordSuggestionInternalCommand.d.ts +105 -0
- package/dist-types/commands/RegisterDeviceCommand.d.ts +25 -10
- package/dist-types/commands/RegisterPhoneCommand.d.ts +23 -0
- package/dist-types/commands/RegisterPushTokenCommand.d.ts +23 -0
- package/dist-types/commands/RemoveLocationCommand.d.ts +23 -0
- package/dist-types/commands/RemoveOneHookSuggestionCommand.d.ts +23 -0
- package/dist-types/commands/RemoveSuggestionCommand.d.ts +23 -0
- package/dist-types/commands/ReportMemberCommand.d.ts +107 -0
- package/dist-types/commands/RepublishMatchingProfileCommand.d.ts +109 -0
- package/dist-types/commands/RequestEmailOtpCommand.d.ts +23 -0
- package/dist-types/commands/RequestPhoneOtpCommand.d.ts +23 -0
- package/dist-types/commands/RequestPhoneUpdateOtpCommand.d.ts +23 -0
- package/dist-types/commands/RevokeDeviceCommand.d.ts +23 -0
- package/dist-types/commands/RevokeHistoryWrapCommand.d.ts +108 -0
- package/dist-types/commands/RevokeUserAccessCommand.d.ts +25 -0
- package/dist-types/commands/SearchPlacesCommand.d.ts +23 -0
- package/dist-types/commands/SendAdminLinkOtpCommand.d.ts +25 -0
- package/dist-types/commands/SendHookRequestCommand.d.ts +105 -0
- package/dist-types/commands/SetAccountStateCommand.d.ts +27 -0
- package/dist-types/commands/SetPreservationHoldCommand.d.ts +27 -0
- package/dist-types/commands/SetTierOverrideCommand.d.ts +128 -0
- package/dist-types/commands/SimulateScoringPolicyCommand.d.ts +129 -0
- package/dist-types/commands/SwipeCommand.d.ts +27 -0
- package/dist-types/commands/UnblockUserCommand.d.ts +99 -0
- package/dist-types/commands/UnhookCommand.d.ts +29 -0
- package/dist-types/commands/UnlinkSocialCommand.d.ts +23 -0
- package/dist-types/commands/UpdateChatSettingsCommand.d.ts +25 -0
- package/dist-types/commands/UpdateEntitlementsCommand.d.ts +25 -0
- package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +23 -0
- package/dist-types/commands/UpdatePreferencesCommand.d.ts +76 -8
- package/dist-types/commands/UpdateScoringPolicyCommand.d.ts +183 -0
- package/dist-types/commands/UpdateTraditionPreferencesCommand.d.ts +23 -0
- package/dist-types/commands/UpdateUsernameCommand.d.ts +23 -0
- package/dist-types/commands/UpgradeUserCommand.d.ts +44 -0
- package/dist-types/commands/UpsertChatProfileCommand.d.ts +110 -0
- package/dist-types/commands/UpsertMatchingProfileCommand.d.ts +163 -0
- package/dist-types/commands/ValidateInviteCommand.d.ts +23 -0
- package/dist-types/commands/VerifyAdminLinkOtpCommand.d.ts +25 -0
- package/dist-types/commands/index.d.ts +44 -4
- package/dist-types/graphql/types.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +3406 -1268
- package/dist-types/protocols/Aws_restJson1.d.ts +384 -24
- package/dist-types/telemetry/index.d.ts +25 -2
- package/package.json +1 -1
- package/telemetry/TelemetryCatalog.kt +33 -11
- package/telemetry/TelemetryCatalog.swift +50 -11
- package/telemetry/telemetry-catalog.json +309 -34
- package/dist-es/commands/GetNotificationPreferencesCommand.js +0 -17
- package/dist-types/commands/GetNotificationPreferencesCommand.d.ts +0 -91
- package/dist-types/commands/GetProfileCommand.d.ts +0 -153
- package/dist-types/commands/SwipeByUsernameCommand.d.ts +0 -93
- package/dist-types/commands/UpdateProfileCommand.d.ts +0 -142
|
@@ -27,8 +27,7 @@ declare const InitUserCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* Creates the caller's State record (201). 409 when it already exists.
|
|
32
31
|
* @example
|
|
33
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
33
|
* ```javascript
|
|
@@ -51,13 +50,41 @@ declare const InitUserCommand_base: {
|
|
|
51
50
|
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
52
51
|
*
|
|
53
52
|
* @throws {@link BadRequestError} (client fault)
|
|
53
|
+
* 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ConflictError} (client fault)
|
|
56
|
+
* 409: the request conflicts with the current state (code `CONFLICT`, or a more specific one such
|
|
57
|
+
* as `NOT_READY` or `MATCHING_ERASING`).
|
|
54
58
|
*
|
|
55
59
|
* @throws {@link InternalServerError} (server fault)
|
|
60
|
+
* 500: an unexpected failure (code `INTERNAL_ERROR`).
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link UnauthorizedError} (client fault)
|
|
63
|
+
* 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
66
|
+
* 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
|
|
67
|
+
* `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
70
|
+
* 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
|
|
71
|
+
* `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
|
|
72
|
+
* model.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link BadGatewayError} (server fault)
|
|
75
|
+
* 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
|
|
76
|
+
* (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
|
|
77
|
+
* (`PROPAGATION_FAILED`, retrying the same request is safe).
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ServiceUnavailableError} (server fault)
|
|
80
|
+
* 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
|
|
81
|
+
* `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
|
|
56
82
|
*
|
|
57
83
|
* @throws {@link OneHookServiceException}
|
|
58
84
|
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
59
85
|
*
|
|
60
86
|
*
|
|
87
|
+
* @public
|
|
61
88
|
*/
|
|
62
89
|
export declare class InitUserCommand extends InitUserCommand_base {
|
|
63
90
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { IssueViewPassesRequest, IssueViewPassesResponse } 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 IssueViewPassesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface IssueViewPassesCommandInput extends IssueViewPassesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link IssueViewPassesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface IssueViewPassesCommandOutput extends IssueViewPassesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const IssueViewPassesCommand_base: {
|
|
25
|
+
new (input: IssueViewPassesCommandInput): import("@smithy/smithy-client").CommandImpl<IssueViewPassesCommandInput, IssueViewPassesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: IssueViewPassesCommandInput): import("@smithy/smithy-client").CommandImpl<IssueViewPassesCommandInput, IssueViewPassesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Re-issues a view pass for members the caller may still open: a card served in the caller's deck
|
|
31
|
+
* in the last 24 hours that they have not passed on, a pending like from the member, or a current
|
|
32
|
+
* hook partner (whose matching profile is ACTIVE). Members that qualify for none, or across a block,
|
|
33
|
+
* are left out of the pass; when none qualifies the response has no `viewPass`.
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { OneHookClient, IssueViewPassesCommand } from "onehook-api-client"; // ES Modules import
|
|
38
|
+
* // const { OneHookClient, IssueViewPassesCommand } = require("onehook-api-client"); // CommonJS import
|
|
39
|
+
* const client = new OneHookClient(config);
|
|
40
|
+
* const input = { // IssueViewPassesRequest
|
|
41
|
+
* targetIds: [ // StringList // required
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* };
|
|
45
|
+
* const command = new IssueViewPassesCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // IssueViewPassesResponse
|
|
48
|
+
* // viewPass: "STRING_VALUE",
|
|
49
|
+
* // targetIds: [ // StringList // required
|
|
50
|
+
* // "STRING_VALUE",
|
|
51
|
+
* // ],
|
|
52
|
+
* // };
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param IssueViewPassesCommandInput - {@link IssueViewPassesCommandInput}
|
|
57
|
+
* @returns {@link IssueViewPassesCommandOutput}
|
|
58
|
+
* @see {@link IssueViewPassesCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link IssueViewPassesCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link BadRequestError} (client fault)
|
|
63
|
+
* 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
66
|
+
* 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
|
|
67
|
+
* `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link InternalServerError} (server fault)
|
|
70
|
+
* 500: an unexpected failure (code `INTERNAL_ERROR`).
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link UnauthorizedError} (client fault)
|
|
73
|
+
* 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
76
|
+
* 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
|
|
77
|
+
* `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
|
|
78
|
+
* model.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link BadGatewayError} (server fault)
|
|
81
|
+
* 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
|
|
82
|
+
* (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
|
|
83
|
+
* (`PROPAGATION_FAILED`, retrying the same request is safe).
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ServiceUnavailableError} (server fault)
|
|
86
|
+
* 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
|
|
87
|
+
* `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link OneHookServiceException}
|
|
90
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
91
|
+
*
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export declare class IssueViewPassesCommand extends IssueViewPassesCommand_base {
|
|
96
|
+
/** @internal type navigation helper, not in runtime. */
|
|
97
|
+
protected static __types: {
|
|
98
|
+
api: {
|
|
99
|
+
input: IssueViewPassesRequest;
|
|
100
|
+
output: IssueViewPassesResponse;
|
|
101
|
+
};
|
|
102
|
+
sdk: {
|
|
103
|
+
input: IssueViewPassesCommandInput;
|
|
104
|
+
output: IssueViewPassesCommandOutput;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { KeepHooksRequest, UserStateResponse } 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 KeepHooksCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface KeepHooksCommandInput extends KeepHooksRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link KeepHooksCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface KeepHooksCommandOutput extends UserStateResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const KeepHooksCommand_base: {
|
|
25
|
+
new (input: KeepHooksCommandInput): import("@smithy/smithy-client").CommandImpl<KeepHooksCommandInput, KeepHooksCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: KeepHooksCommandInput): import("@smithy/smithy-client").CommandImpl<KeepHooksCommandInput, KeepHooksCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* After a tier downgrade (state `SELECTION_REQUIRED`): keep exactly `keepLimit` of the current hooks;
|
|
31
|
+
* the others are released and every kept conversation resumes. 400 for a wrong count or an id that
|
|
32
|
+
* is not a current hook; 409 `NOT_SELECTING` when no choice is pending.
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { OneHookClient, KeepHooksCommand } from "onehook-api-client"; // ES Modules import
|
|
37
|
+
* // const { OneHookClient, KeepHooksCommand } = require("onehook-api-client"); // CommonJS import
|
|
38
|
+
* const client = new OneHookClient(config);
|
|
39
|
+
* const input = { // KeepHooksRequest
|
|
40
|
+
* matchIds: [ // StringList // required
|
|
41
|
+
* "STRING_VALUE",
|
|
42
|
+
* ],
|
|
43
|
+
* };
|
|
44
|
+
* const command = new KeepHooksCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // UserStateResponse
|
|
47
|
+
* // userId: "STRING_VALUE", // required
|
|
48
|
+
* // state: "STRING_VALUE", // required
|
|
49
|
+
* // activeConnections: Number("int"), // required
|
|
50
|
+
* // matchIds: [ // StringList // required
|
|
51
|
+
* // "STRING_VALUE",
|
|
52
|
+
* // ],
|
|
53
|
+
* // subscriptionTier: "MUST" || "SUPER" || "INFINITY", // required
|
|
54
|
+
* // hooks: [ // HookSummaryList
|
|
55
|
+
* // { // HookSummary
|
|
56
|
+
* // matchId: "STRING_VALUE", // required
|
|
57
|
+
* // peerId: "STRING_VALUE", // required
|
|
58
|
+
* // origin: "DISCOVERY" || "REQUEST", // required
|
|
59
|
+
* // hookedAt: Number("long"), // required
|
|
60
|
+
* // suspended: true || false,
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // effectiveCapacity: Number("int"),
|
|
64
|
+
* // discoveryPaused: true || false,
|
|
65
|
+
* // matching: { // MatchingStatus
|
|
66
|
+
* // status: "OFF" || "ON" || "ERASING", // required
|
|
67
|
+
* // generation: Number("long"), // required
|
|
68
|
+
* // },
|
|
69
|
+
* // selectionRequired: true || false,
|
|
70
|
+
* // keepLimit: Number("int"),
|
|
71
|
+
* // selectionDeadline: Number("long"),
|
|
72
|
+
* // chatViewPass: "STRING_VALUE",
|
|
73
|
+
* // };
|
|
74
|
+
*
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @param KeepHooksCommandInput - {@link KeepHooksCommandInput}
|
|
78
|
+
* @returns {@link KeepHooksCommandOutput}
|
|
79
|
+
* @see {@link KeepHooksCommandInput} for command's `input` shape.
|
|
80
|
+
* @see {@link KeepHooksCommandOutput} for command's `response` shape.
|
|
81
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link BadRequestError} (client fault)
|
|
84
|
+
* 400: the request is malformed or fails validation (code `BAD_REQUEST`, or a more specific one).
|
|
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 ConflictError} (client fault)
|
|
91
|
+
* 409: the request conflicts with the current state (code `CONFLICT`, or a more specific one such
|
|
92
|
+
* as `NOT_READY` or `MATCHING_ERASING`).
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link InternalServerError} (server fault)
|
|
95
|
+
* 500: an unexpected failure (code `INTERNAL_ERROR`).
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link UnauthorizedError} (client fault)
|
|
98
|
+
* 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
101
|
+
* 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
|
|
102
|
+
* `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
105
|
+
* 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
|
|
106
|
+
* `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
|
|
107
|
+
* model.
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link BadGatewayError} (server fault)
|
|
110
|
+
* 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
|
|
111
|
+
* (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
|
|
112
|
+
* (`PROPAGATION_FAILED`, retrying the same request is safe).
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link ServiceUnavailableError} (server fault)
|
|
115
|
+
* 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
|
|
116
|
+
* `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link OneHookServiceException}
|
|
119
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
120
|
+
*
|
|
121
|
+
*
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
export declare class KeepHooksCommand extends KeepHooksCommand_base {
|
|
125
|
+
/** @internal type navigation helper, not in runtime. */
|
|
126
|
+
protected static __types: {
|
|
127
|
+
api: {
|
|
128
|
+
input: KeepHooksRequest;
|
|
129
|
+
output: UserStateResponse;
|
|
130
|
+
};
|
|
131
|
+
sdk: {
|
|
132
|
+
input: KeepHooksCommandInput;
|
|
133
|
+
output: KeepHooksCommandOutput;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}
|
|
@@ -54,8 +54,31 @@ declare const LinkEmailCommand_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 InternalServerError} (server fault)
|
|
60
|
+
* 500: an unexpected failure (code `INTERNAL_ERROR`).
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link UnauthorizedError} (client fault)
|
|
63
|
+
* 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
66
|
+
* 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
|
|
67
|
+
* `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
70
|
+
* 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
|
|
71
|
+
* `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
|
|
72
|
+
* model.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link BadGatewayError} (server fault)
|
|
75
|
+
* 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
|
|
76
|
+
* (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
|
|
77
|
+
* (`PROPAGATION_FAILED`, retrying the same request is safe).
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ServiceUnavailableError} (server fault)
|
|
80
|
+
* 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
|
|
81
|
+
* `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
|
|
59
82
|
*
|
|
60
83
|
* @throws {@link OneHookServiceException}
|
|
61
84
|
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
@@ -54,8 +54,31 @@ declare const LinkSocialCommand_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 InternalServerError} (server fault)
|
|
60
|
+
* 500: an unexpected failure (code `INTERNAL_ERROR`).
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link UnauthorizedError} (client fault)
|
|
63
|
+
* 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
66
|
+
* 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
|
|
67
|
+
* `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
70
|
+
* 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
|
|
71
|
+
* `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
|
|
72
|
+
* model.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link BadGatewayError} (server fault)
|
|
75
|
+
* 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
|
|
76
|
+
* (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
|
|
77
|
+
* (`PROPAGATION_FAILED`, retrying the same request is safe).
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ServiceUnavailableError} (server fault)
|
|
80
|
+
* 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
|
|
81
|
+
* `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
|
|
59
82
|
*
|
|
60
83
|
* @throws {@link OneHookServiceException}
|
|
61
84
|
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { ListBlocksRequest, ListBlocksResponse } 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 ListBlocksCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListBlocksCommandInput extends ListBlocksRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListBlocksCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListBlocksCommandOutput extends ListBlocksResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListBlocksCommand_base: {
|
|
25
|
+
new (input: ListBlocksCommandInput): import("@smithy/smithy-client").CommandImpl<ListBlocksCommandInput, ListBlocksCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListBlocksCommandInput]): import("@smithy/smithy-client").CommandImpl<ListBlocksCommandInput, ListBlocksCommandOutput, 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, ListBlocksCommand } from "onehook-api-client"; // ES Modules import
|
|
36
|
+
* // const { OneHookClient, ListBlocksCommand } = require("onehook-api-client"); // CommonJS import
|
|
37
|
+
* const client = new OneHookClient(config);
|
|
38
|
+
* const input = {};
|
|
39
|
+
* const command = new ListBlocksCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // ListBlocksResponse
|
|
42
|
+
* // blocks: [ // BlockViewList // required
|
|
43
|
+
* // { // BlockView
|
|
44
|
+
* // blockedUserId: "STRING_VALUE", // required
|
|
45
|
+
* // reason: "HARASSMENT" || "SPAM" || "FAKE_PROFILE" || "INAPPROPRIATE_CONTENT" || "SAFETY_CONCERN" || "OTHER", // required
|
|
46
|
+
* // details: "STRING_VALUE",
|
|
47
|
+
* // createdAt: Number("long"), // required
|
|
48
|
+
* // displayName: "STRING_VALUE",
|
|
49
|
+
* // },
|
|
50
|
+
* // ],
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param ListBlocksCommandInput - {@link ListBlocksCommandInput}
|
|
56
|
+
* @returns {@link ListBlocksCommandOutput}
|
|
57
|
+
* @see {@link ListBlocksCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link ListBlocksCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServerError} (server fault)
|
|
62
|
+
* 500: an unexpected failure (code `INTERNAL_ERROR`).
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link UnauthorizedError} (client fault)
|
|
65
|
+
* 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
68
|
+
* 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
|
|
69
|
+
* `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
72
|
+
* 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
|
|
73
|
+
* `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
|
|
74
|
+
* model.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link BadGatewayError} (server fault)
|
|
77
|
+
* 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
|
|
78
|
+
* (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
|
|
79
|
+
* (`PROPAGATION_FAILED`, retrying the same request is safe).
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ServiceUnavailableError} (server fault)
|
|
82
|
+
* 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
|
|
83
|
+
* `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link OneHookServiceException}
|
|
86
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
export declare class ListBlocksCommand extends ListBlocksCommand_base {
|
|
91
|
+
/** @internal type navigation helper, not in runtime. */
|
|
92
|
+
protected static __types: {
|
|
93
|
+
api: {
|
|
94
|
+
input: {};
|
|
95
|
+
output: ListBlocksResponse;
|
|
96
|
+
};
|
|
97
|
+
sdk: {
|
|
98
|
+
input: ListBlocksCommandInput;
|
|
99
|
+
output: ListBlocksCommandOutput;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { GraphUserMatches, GraphUserRequest } 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 ListGraphUserMatchesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListGraphUserMatchesCommandInput extends GraphUserRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListGraphUserMatchesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListGraphUserMatchesCommandOutput extends GraphUserMatches, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListGraphUserMatchesCommand_base: {
|
|
25
|
+
new (input: ListGraphUserMatchesCommandInput): import("@smithy/smithy-client").CommandImpl<ListGraphUserMatchesCommandInput, ListGraphUserMatchesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListGraphUserMatchesCommandInput): import("@smithy/smithy-client").CommandImpl<ListGraphUserMatchesCommandInput, ListGraphUserMatchesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* The member's matches, newest first, each with a conversation summary.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { OneHookClient, ListGraphUserMatchesCommand } from "onehook-api-client"; // ES Modules import
|
|
35
|
+
* // const { OneHookClient, ListGraphUserMatchesCommand } = require("onehook-api-client"); // CommonJS import
|
|
36
|
+
* const client = new OneHookClient(config);
|
|
37
|
+
* const input = { // GraphUserRequest
|
|
38
|
+
* userId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new ListGraphUserMatchesCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GraphUserMatches
|
|
43
|
+
* // userId: "STRING_VALUE", // required
|
|
44
|
+
* // matchCount: Number("int"), // required
|
|
45
|
+
* // matches: [ // GraphUserMatchList // required
|
|
46
|
+
* // { // GraphUserMatch
|
|
47
|
+
* // matchId: "STRING_VALUE",
|
|
48
|
+
* // partnerId: "STRING_VALUE",
|
|
49
|
+
* // matchedAt: Number("long"),
|
|
50
|
+
* // origin: "STRING_VALUE",
|
|
51
|
+
* // summary: { // ConversationSummary
|
|
52
|
+
* // messageCount: Number("int"), // required
|
|
53
|
+
* // responded: true || false, // required
|
|
54
|
+
* // ghosted: true || false, // required
|
|
55
|
+
* // avgReplyMs: Number("long"),
|
|
56
|
+
* // sessionCount: Number("int"), // required
|
|
57
|
+
* // lastMessageAt: Number("long"),
|
|
58
|
+
* // },
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param ListGraphUserMatchesCommandInput - {@link ListGraphUserMatchesCommandInput}
|
|
66
|
+
* @returns {@link ListGraphUserMatchesCommandOutput}
|
|
67
|
+
* @see {@link ListGraphUserMatchesCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link ListGraphUserMatchesCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link NotFoundError} (client fault)
|
|
72
|
+
* 404: the resource does not exist or is not visible to the caller (code `NOT_FOUND`, or a more
|
|
73
|
+
* specific one such as `REQUEST_UNAVAILABLE`).
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerError} (server fault)
|
|
76
|
+
* 500: an unexpected failure (code `INTERNAL_ERROR`).
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link UnauthorizedError} (client fault)
|
|
79
|
+
* 401: no valid session for the route (code `UNAUTHORIZED`, or `INVALID_SESSION` from Matching).
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
82
|
+
* 403: the caller may not do this (code `FORBIDDEN`, or a more specific one such as Matching's
|
|
83
|
+
* `MATCHING_OFF`, `DISCOVERY_PAUSED` or `PREMIUM_REQUIRED`). Shared by every service model.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
86
|
+
* 429: a rate limit or daily quota is spent (for example `REPORT_LIMIT`, `RATE_LIMIT_EXCEEDED`,
|
|
87
|
+
* `ROSE_LIMIT_REACHED`, or `TOO_MANY_REQUESTS` from API Gateway throttling). Shared by every service
|
|
88
|
+
* model.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link BadGatewayError} (server fault)
|
|
91
|
+
* 502: an upstream failed: API Gateway could not use the Lambda's answer, the identity provider
|
|
92
|
+
* (Cognito) failed (`BAD_GATEWAY`), or a downstream write failed after this service saved its own change
|
|
93
|
+
* (`PROPAGATION_FAILED`, retrying the same request is safe).
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ServiceUnavailableError} (server fault)
|
|
96
|
+
* 503: a dependency is unavailable; retry later (`retryable` is true). Codes include
|
|
97
|
+
* `SERVICE_UNAVAILABLE`, `DATABASE_UNAVAILABLE` and `VIEW_PASS_UNAVAILABLE`.
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link OneHookServiceException}
|
|
100
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
101
|
+
*
|
|
102
|
+
*
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export declare class ListGraphUserMatchesCommand extends ListGraphUserMatchesCommand_base {
|
|
106
|
+
/** @internal type navigation helper, not in runtime. */
|
|
107
|
+
protected static __types: {
|
|
108
|
+
api: {
|
|
109
|
+
input: GraphUserRequest;
|
|
110
|
+
output: GraphUserMatches;
|
|
111
|
+
};
|
|
112
|
+
sdk: {
|
|
113
|
+
input: ListGraphUserMatchesCommandInput;
|
|
114
|
+
output: ListGraphUserMatchesCommandOutput;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
}
|