onehook-api-client 1.0.37 → 1.0.38
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 +23 -0
- 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 +3400 -1266
- 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
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
-
import { GetProfileRequest, ProfileResponse } 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 GetProfileCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface GetProfileCommandInput extends GetProfileRequest {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link GetProfileCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface GetProfileCommandOutput extends ProfileResponse, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const GetProfileCommand_base: {
|
|
25
|
-
new (input: GetProfileCommandInput): import("@smithy/smithy-client").CommandImpl<GetProfileCommandInput, GetProfileCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (__0_0: GetProfileCommandInput): import("@smithy/smithy-client").CommandImpl<GetProfileCommandInput, GetProfileCommandOutput, 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, GetProfileCommand } from "onehook-api-client"; // ES Modules import
|
|
36
|
-
* // const { OneHookClient, GetProfileCommand } = require("onehook-api-client"); // CommonJS import
|
|
37
|
-
* const client = new OneHookClient(config);
|
|
38
|
-
* const input = { // GetProfileRequest
|
|
39
|
-
* userId: "STRING_VALUE", // required
|
|
40
|
-
* };
|
|
41
|
-
* const command = new GetProfileCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* // { // ProfileResponse
|
|
44
|
-
* // userId: "STRING_VALUE", // required
|
|
45
|
-
* // displayName: "STRING_VALUE",
|
|
46
|
-
* // bio: "STRING_VALUE",
|
|
47
|
-
* // age: Number("int"),
|
|
48
|
-
* // gender: "STRING_VALUE",
|
|
49
|
-
* // interestedIn: [ // StringList
|
|
50
|
-
* // "STRING_VALUE",
|
|
51
|
-
* // ],
|
|
52
|
-
* // relationshipType: "STRING_VALUE",
|
|
53
|
-
* // wantsKids: "STRING_VALUE",
|
|
54
|
-
* // familyPlans: "STRING_VALUE",
|
|
55
|
-
* // smokingStatus: "STRING_VALUE",
|
|
56
|
-
* // drinkingStatus: "STRING_VALUE",
|
|
57
|
-
* // cannabisStatus: "STRING_VALUE",
|
|
58
|
-
* // drugsStatus: "STRING_VALUE",
|
|
59
|
-
* // religion: "STRING_VALUE",
|
|
60
|
-
* // interests: [
|
|
61
|
-
* // "STRING_VALUE",
|
|
62
|
-
* // ],
|
|
63
|
-
* // starSign: "STRING_VALUE",
|
|
64
|
-
* // verified: true || false,
|
|
65
|
-
* // subscriptionTier: "MUST" || "SUPER" || "INFINITY",
|
|
66
|
-
* // pictures: [
|
|
67
|
-
* // "STRING_VALUE",
|
|
68
|
-
* // ],
|
|
69
|
-
* // pictureTransforms: { // StringMap
|
|
70
|
-
* // "<keys>": "STRING_VALUE",
|
|
71
|
-
* // },
|
|
72
|
-
* // videos: [
|
|
73
|
-
* // "STRING_VALUE",
|
|
74
|
-
* // ],
|
|
75
|
-
* // audioPrompt: "STRING_VALUE",
|
|
76
|
-
* // moderationStatus: "STRING_VALUE",
|
|
77
|
-
* // fieldModerationStatus: {
|
|
78
|
-
* // "<keys>": "STRING_VALUE",
|
|
79
|
-
* // },
|
|
80
|
-
* // causes: [
|
|
81
|
-
* // "STRING_VALUE",
|
|
82
|
-
* // ],
|
|
83
|
-
* // communities: "<StringList>",
|
|
84
|
-
* // qualities: "<StringList>",
|
|
85
|
-
* // prompts: [ // ProfilePromptList
|
|
86
|
-
* // { // ProfilePrompt
|
|
87
|
-
* // promptId: "STRING_VALUE", // required
|
|
88
|
-
* // answer: "STRING_VALUE", // required
|
|
89
|
-
* // imageKey: "STRING_VALUE",
|
|
90
|
-
* // },
|
|
91
|
-
* // ],
|
|
92
|
-
* // socialLinks: {
|
|
93
|
-
* // "<keys>": "STRING_VALUE",
|
|
94
|
-
* // },
|
|
95
|
-
* // openers: [ // OpenerList
|
|
96
|
-
* // { // Opener
|
|
97
|
-
* // text: "STRING_VALUE", // required
|
|
98
|
-
* // imageKey: "STRING_VALUE",
|
|
99
|
-
* // },
|
|
100
|
-
* // ],
|
|
101
|
-
* // work: "STRING_VALUE",
|
|
102
|
-
* // education: "STRING_VALUE",
|
|
103
|
-
* // hometown: "STRING_VALUE",
|
|
104
|
-
* // currentLocation: "STRING_VALUE",
|
|
105
|
-
* // height: Number("int"),
|
|
106
|
-
* // exercise: "STRING_VALUE",
|
|
107
|
-
* // educationLevel: "STRING_VALUE",
|
|
108
|
-
* // politicalView: "STRING_VALUE",
|
|
109
|
-
* // languages: "<StringList>",
|
|
110
|
-
* // birthDetails: { // BirthDetails
|
|
111
|
-
* // date: "STRING_VALUE",
|
|
112
|
-
* // time: "STRING_VALUE",
|
|
113
|
-
* // timeZone: "STRING_VALUE",
|
|
114
|
-
* // latitude: Number("double"),
|
|
115
|
-
* // longitude: Number("double"),
|
|
116
|
-
* // placeName: "STRING_VALUE",
|
|
117
|
-
* // provisional: true || false,
|
|
118
|
-
* // },
|
|
119
|
-
* // birthDateOnFile: true || false,
|
|
120
|
-
* // };
|
|
121
|
-
*
|
|
122
|
-
* ```
|
|
123
|
-
*
|
|
124
|
-
* @param GetProfileCommandInput - {@link GetProfileCommandInput}
|
|
125
|
-
* @returns {@link GetProfileCommandOutput}
|
|
126
|
-
* @see {@link GetProfileCommandInput} for command's `input` shape.
|
|
127
|
-
* @see {@link GetProfileCommandOutput} for command's `response` shape.
|
|
128
|
-
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
129
|
-
*
|
|
130
|
-
* @throws {@link BadRequestError} (client fault)
|
|
131
|
-
*
|
|
132
|
-
* @throws {@link NotFoundError} (client fault)
|
|
133
|
-
*
|
|
134
|
-
* @throws {@link InternalServerError} (server fault)
|
|
135
|
-
*
|
|
136
|
-
* @throws {@link OneHookServiceException}
|
|
137
|
-
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*/
|
|
141
|
-
export declare class GetProfileCommand extends GetProfileCommand_base {
|
|
142
|
-
/** @internal type navigation helper, not in runtime. */
|
|
143
|
-
protected static __types: {
|
|
144
|
-
api: {
|
|
145
|
-
input: GetProfileRequest;
|
|
146
|
-
output: ProfileResponse;
|
|
147
|
-
};
|
|
148
|
-
sdk: {
|
|
149
|
-
input: GetProfileCommandInput;
|
|
150
|
-
output: GetProfileCommandOutput;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
-
import { SwipeByUsernameRequest, SwipeByUsernameResponse } 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 SwipeByUsernameCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface SwipeByUsernameCommandInput extends SwipeByUsernameRequest {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link SwipeByUsernameCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface SwipeByUsernameCommandOutput extends SwipeByUsernameResponse, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const SwipeByUsernameCommand_base: {
|
|
25
|
-
new (input: SwipeByUsernameCommandInput): import("@smithy/smithy-client").CommandImpl<SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (__0_0: SwipeByUsernameCommandInput): import("@smithy/smithy-client").CommandImpl<SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* "Add by username" — records the caller's RIGHT swipe on whoever owns `username`.
|
|
31
|
-
*
|
|
32
|
-
* This is a LIKE, not a hook. A hook is still only created when the other person likes back (from
|
|
33
|
-
* discovery, or by adding this caller's username in turn), which raises `MutualMatch` and lets State
|
|
34
|
-
* create the Match atomically. That preserves mutual consent and the tier-limited connection count —
|
|
35
|
-
* a one-sided add can neither force a connection nor consume someone's hook slot.
|
|
36
|
-
*
|
|
37
|
-
* ## The response is deliberately uninformative
|
|
38
|
-
* `SwipeByUsernameResponse` carries a single constant status and NOTHING else. It is identical when:
|
|
39
|
-
* * no such username exists,
|
|
40
|
-
* * the username exists and is already hooked (to the caller or anyone else),
|
|
41
|
-
* * the username exists and the like was recorded,
|
|
42
|
-
* * the like was already recorded earlier.
|
|
43
|
-
*
|
|
44
|
-
* So knowing someone's handle reveals nothing about them — not whether they are on OneHook, and not
|
|
45
|
-
* whether they are hooked. Returning `matched` here (as `Swipe` does) would leak exactly that, which
|
|
46
|
-
* is why this operation does not reuse `SwipeResponse`. A resulting match surfaces through the normal
|
|
47
|
-
* match/notification path instead, where both sides have consented.
|
|
48
|
-
* @example
|
|
49
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
50
|
-
* ```javascript
|
|
51
|
-
* import { OneHookClient, SwipeByUsernameCommand } from "onehook-api-client"; // ES Modules import
|
|
52
|
-
* // const { OneHookClient, SwipeByUsernameCommand } = require("onehook-api-client"); // CommonJS import
|
|
53
|
-
* const client = new OneHookClient(config);
|
|
54
|
-
* const input = { // SwipeByUsernameRequest
|
|
55
|
-
* username: "STRING_VALUE", // required
|
|
56
|
-
* };
|
|
57
|
-
* const command = new SwipeByUsernameCommand(input);
|
|
58
|
-
* const response = await client.send(command);
|
|
59
|
-
* // { // SwipeByUsernameResponse
|
|
60
|
-
* // status: "STRING_VALUE", // required
|
|
61
|
-
* // };
|
|
62
|
-
*
|
|
63
|
-
* ```
|
|
64
|
-
*
|
|
65
|
-
* @param SwipeByUsernameCommandInput - {@link SwipeByUsernameCommandInput}
|
|
66
|
-
* @returns {@link SwipeByUsernameCommandOutput}
|
|
67
|
-
* @see {@link SwipeByUsernameCommandInput} for command's `input` shape.
|
|
68
|
-
* @see {@link SwipeByUsernameCommandOutput} for command's `response` shape.
|
|
69
|
-
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
70
|
-
*
|
|
71
|
-
* @throws {@link BadRequestError} (client fault)
|
|
72
|
-
*
|
|
73
|
-
* @throws {@link InternalServerError} (server fault)
|
|
74
|
-
*
|
|
75
|
-
* @throws {@link OneHookServiceException}
|
|
76
|
-
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* @public
|
|
80
|
-
*/
|
|
81
|
-
export declare class SwipeByUsernameCommand extends SwipeByUsernameCommand_base {
|
|
82
|
-
/** @internal type navigation helper, not in runtime. */
|
|
83
|
-
protected static __types: {
|
|
84
|
-
api: {
|
|
85
|
-
input: SwipeByUsernameRequest;
|
|
86
|
-
output: SwipeByUsernameResponse;
|
|
87
|
-
};
|
|
88
|
-
sdk: {
|
|
89
|
-
input: SwipeByUsernameCommandInput;
|
|
90
|
-
output: SwipeByUsernameCommandOutput;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
-
import { ProfileUpdateRequest, 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 UpdateProfileCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface UpdateProfileCommandInput extends ProfileUpdateRequest {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link UpdateProfileCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface UpdateProfileCommandOutput extends StatusResponse, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const UpdateProfileCommand_base: {
|
|
25
|
-
new (input: UpdateProfileCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateProfileCommandInput, UpdateProfileCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (...[input]: [] | [UpdateProfileCommandInput]): import("@smithy/smithy-client").CommandImpl<UpdateProfileCommandInput, UpdateProfileCommandOutput, 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, UpdateProfileCommand } from "onehook-api-client"; // ES Modules import
|
|
36
|
-
* // const { OneHookClient, UpdateProfileCommand } = require("onehook-api-client"); // CommonJS import
|
|
37
|
-
* const client = new OneHookClient(config);
|
|
38
|
-
* const input = { // ProfileUpdateRequest
|
|
39
|
-
* displayName: "STRING_VALUE",
|
|
40
|
-
* bio: "STRING_VALUE",
|
|
41
|
-
* gender: "STRING_VALUE",
|
|
42
|
-
* interestedIn: [ // StringList
|
|
43
|
-
* "STRING_VALUE",
|
|
44
|
-
* ],
|
|
45
|
-
* interests: [
|
|
46
|
-
* "STRING_VALUE",
|
|
47
|
-
* ],
|
|
48
|
-
* relationshipType: "STRING_VALUE",
|
|
49
|
-
* wantsKids: "STRING_VALUE",
|
|
50
|
-
* familyPlans: "STRING_VALUE",
|
|
51
|
-
* smokingStatus: "STRING_VALUE",
|
|
52
|
-
* drinkingStatus: "STRING_VALUE",
|
|
53
|
-
* cannabisStatus: "STRING_VALUE",
|
|
54
|
-
* drugsStatus: "STRING_VALUE",
|
|
55
|
-
* religion: "STRING_VALUE",
|
|
56
|
-
* starSign: "STRING_VALUE",
|
|
57
|
-
* pictures: [
|
|
58
|
-
* "STRING_VALUE",
|
|
59
|
-
* ],
|
|
60
|
-
* pictureTransforms: { // StringMap
|
|
61
|
-
* "<keys>": "STRING_VALUE",
|
|
62
|
-
* },
|
|
63
|
-
* videos: [
|
|
64
|
-
* "STRING_VALUE",
|
|
65
|
-
* ],
|
|
66
|
-
* audioPrompt: "STRING_VALUE",
|
|
67
|
-
* causes: [
|
|
68
|
-
* "STRING_VALUE",
|
|
69
|
-
* ],
|
|
70
|
-
* communities: "<StringList>",
|
|
71
|
-
* qualities: "<StringList>",
|
|
72
|
-
* prompts: [ // ProfilePromptList
|
|
73
|
-
* { // ProfilePrompt
|
|
74
|
-
* promptId: "STRING_VALUE", // required
|
|
75
|
-
* answer: "STRING_VALUE", // required
|
|
76
|
-
* imageKey: "STRING_VALUE",
|
|
77
|
-
* },
|
|
78
|
-
* ],
|
|
79
|
-
* socialLinks: {
|
|
80
|
-
* "<keys>": "STRING_VALUE",
|
|
81
|
-
* },
|
|
82
|
-
* openers: [ // OpenerList
|
|
83
|
-
* { // Opener
|
|
84
|
-
* text: "STRING_VALUE", // required
|
|
85
|
-
* imageKey: "STRING_VALUE",
|
|
86
|
-
* },
|
|
87
|
-
* ],
|
|
88
|
-
* work: "STRING_VALUE",
|
|
89
|
-
* education: "STRING_VALUE",
|
|
90
|
-
* hometown: "STRING_VALUE",
|
|
91
|
-
* currentLocation: "STRING_VALUE",
|
|
92
|
-
* height: Number("int"),
|
|
93
|
-
* exercise: "STRING_VALUE",
|
|
94
|
-
* educationLevel: "STRING_VALUE",
|
|
95
|
-
* politicalView: "STRING_VALUE",
|
|
96
|
-
* languages: "<StringList>",
|
|
97
|
-
* birthDetails: { // BirthDetails
|
|
98
|
-
* date: "STRING_VALUE",
|
|
99
|
-
* time: "STRING_VALUE",
|
|
100
|
-
* timeZone: "STRING_VALUE",
|
|
101
|
-
* latitude: Number("double"),
|
|
102
|
-
* longitude: Number("double"),
|
|
103
|
-
* placeName: "STRING_VALUE",
|
|
104
|
-
* provisional: true || false,
|
|
105
|
-
* },
|
|
106
|
-
* };
|
|
107
|
-
* const command = new UpdateProfileCommand(input);
|
|
108
|
-
* const response = await client.send(command);
|
|
109
|
-
* // { // StatusResponse
|
|
110
|
-
* // status: "STRING_VALUE", // required
|
|
111
|
-
* // };
|
|
112
|
-
*
|
|
113
|
-
* ```
|
|
114
|
-
*
|
|
115
|
-
* @param UpdateProfileCommandInput - {@link UpdateProfileCommandInput}
|
|
116
|
-
* @returns {@link UpdateProfileCommandOutput}
|
|
117
|
-
* @see {@link UpdateProfileCommandInput} for command's `input` shape.
|
|
118
|
-
* @see {@link UpdateProfileCommandOutput} for command's `response` shape.
|
|
119
|
-
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
120
|
-
*
|
|
121
|
-
* @throws {@link BadRequestError} (client fault)
|
|
122
|
-
*
|
|
123
|
-
* @throws {@link InternalServerError} (server fault)
|
|
124
|
-
*
|
|
125
|
-
* @throws {@link OneHookServiceException}
|
|
126
|
-
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*/
|
|
130
|
-
export declare class UpdateProfileCommand extends UpdateProfileCommand_base {
|
|
131
|
-
/** @internal type navigation helper, not in runtime. */
|
|
132
|
-
protected static __types: {
|
|
133
|
-
api: {
|
|
134
|
-
input: ProfileUpdateRequest;
|
|
135
|
-
output: StatusResponse;
|
|
136
|
-
};
|
|
137
|
-
sdk: {
|
|
138
|
-
input: UpdateProfileCommandInput;
|
|
139
|
-
output: UpdateProfileCommandOutput;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
}
|