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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OneHookServiceException as __BaseException } from "../models/OneHookServiceException";
|
|
2
|
-
import { BadRequestError, ConflictError, DeviceLimitError, ForbiddenError, InternalServerError, NotFoundError, } from "../models/models_0";
|
|
2
|
+
import { BadGatewayError, BadRequestError, ConflictError, DeviceLimitError, EnableMatchingConflictError, ForbiddenError, InternalServerError, NotFoundError, ServiceUnavailableError, TooManyRequestsError, UnauthorizedError, } from "../models/models_0";
|
|
3
3
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
5
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, _json, collectBody, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
@@ -16,6 +16,80 @@ export const se_GetAiContextMatchCommand = async (input, context) => {
|
|
|
16
16
|
.b(body);
|
|
17
17
|
return b.build();
|
|
18
18
|
};
|
|
19
|
+
export const se_GetGraphInvitesCommand = async (input, context) => {
|
|
20
|
+
const b = rb(input, context);
|
|
21
|
+
const headers = {};
|
|
22
|
+
b.bp("/graph/users/{userId}/invites");
|
|
23
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
24
|
+
const query = map({
|
|
25
|
+
[_d]: [() => input.depth !== void 0, () => (((input[_d] % 1 == 0) ? input[_d] + ".0" : input[_d].toString()))],
|
|
26
|
+
});
|
|
27
|
+
let body;
|
|
28
|
+
b.m("GET")
|
|
29
|
+
.h(headers)
|
|
30
|
+
.q(query)
|
|
31
|
+
.b(body);
|
|
32
|
+
return b.build();
|
|
33
|
+
};
|
|
34
|
+
export const se_GetGraphMatchCommand = async (input, context) => {
|
|
35
|
+
const b = rb(input, context);
|
|
36
|
+
const headers = {};
|
|
37
|
+
b.bp("/graph/matches/{matchId}");
|
|
38
|
+
b.p('matchId', () => input.matchId, '{matchId}', false);
|
|
39
|
+
let body;
|
|
40
|
+
b.m("GET")
|
|
41
|
+
.h(headers)
|
|
42
|
+
.b(body);
|
|
43
|
+
return b.build();
|
|
44
|
+
};
|
|
45
|
+
export const se_GetGraphUserCommand = async (input, context) => {
|
|
46
|
+
const b = rb(input, context);
|
|
47
|
+
const headers = {};
|
|
48
|
+
b.bp("/graph/users/{userId}");
|
|
49
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
50
|
+
let body;
|
|
51
|
+
b.m("GET")
|
|
52
|
+
.h(headers)
|
|
53
|
+
.b(body);
|
|
54
|
+
return b.build();
|
|
55
|
+
};
|
|
56
|
+
export const se_GetMediaStatsCommand = async (input, context) => {
|
|
57
|
+
const b = rb(input, context);
|
|
58
|
+
const headers = {};
|
|
59
|
+
b.bp("/signals/media-stats");
|
|
60
|
+
let body;
|
|
61
|
+
b.m("GET")
|
|
62
|
+
.h(headers)
|
|
63
|
+
.b(body);
|
|
64
|
+
return b.build();
|
|
65
|
+
};
|
|
66
|
+
export const se_IngestSignalsCommand = async (input, context) => {
|
|
67
|
+
const b = rb(input, context);
|
|
68
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
69
|
+
'content-type': 'application/json',
|
|
70
|
+
[_xop]: input[_p],
|
|
71
|
+
});
|
|
72
|
+
b.bp("/signals");
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(take(input, {
|
|
75
|
+
'signals': _ => se_RawSignalList(_, context),
|
|
76
|
+
}));
|
|
77
|
+
b.m("POST")
|
|
78
|
+
.h(headers)
|
|
79
|
+
.b(body);
|
|
80
|
+
return b.build();
|
|
81
|
+
};
|
|
82
|
+
export const se_ListGraphUserMatchesCommand = async (input, context) => {
|
|
83
|
+
const b = rb(input, context);
|
|
84
|
+
const headers = {};
|
|
85
|
+
b.bp("/graph/users/{userId}/matches");
|
|
86
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
87
|
+
let body;
|
|
88
|
+
b.m("GET")
|
|
89
|
+
.h(headers)
|
|
90
|
+
.b(body);
|
|
91
|
+
return b.build();
|
|
92
|
+
};
|
|
19
93
|
export const se_CreateMediaDownloadUrlCommand = async (input, context) => {
|
|
20
94
|
const b = rb(input, context);
|
|
21
95
|
const headers = {
|
|
@@ -71,6 +145,26 @@ export const se_DeletePushTokenCommand = async (input, context) => {
|
|
|
71
145
|
.b(body);
|
|
72
146
|
return b.build();
|
|
73
147
|
};
|
|
148
|
+
export const se_EstablishHistoryEpochCommand = async (input, context) => {
|
|
149
|
+
const b = rb(input, context);
|
|
150
|
+
const headers = {
|
|
151
|
+
'content-type': 'application/json',
|
|
152
|
+
};
|
|
153
|
+
b.bp("/chat/history/epochs");
|
|
154
|
+
let body;
|
|
155
|
+
body = JSON.stringify(take(input, {
|
|
156
|
+
'epoch': [],
|
|
157
|
+
'expectedEpoch': [],
|
|
158
|
+
'horizonAt': [],
|
|
159
|
+
'keyId': [],
|
|
160
|
+
'publicKey': [],
|
|
161
|
+
'wraps': _ => _json(_),
|
|
162
|
+
}));
|
|
163
|
+
b.m("POST")
|
|
164
|
+
.h(headers)
|
|
165
|
+
.b(body);
|
|
166
|
+
return b.build();
|
|
167
|
+
};
|
|
74
168
|
export const se_GetChatSettingsCommand = async (input, context) => {
|
|
75
169
|
const b = rb(input, context);
|
|
76
170
|
const headers = {};
|
|
@@ -81,6 +175,16 @@ export const se_GetChatSettingsCommand = async (input, context) => {
|
|
|
81
175
|
.b(body);
|
|
82
176
|
return b.build();
|
|
83
177
|
};
|
|
178
|
+
export const se_GetHistoryStateCommand = async (input, context) => {
|
|
179
|
+
const b = rb(input, context);
|
|
180
|
+
const headers = {};
|
|
181
|
+
b.bp("/chat/history");
|
|
182
|
+
let body;
|
|
183
|
+
b.m("GET")
|
|
184
|
+
.h(headers)
|
|
185
|
+
.b(body);
|
|
186
|
+
return b.build();
|
|
187
|
+
};
|
|
84
188
|
export const se_GetParticipantRegistryCommand = async (input, context) => {
|
|
85
189
|
const b = rb(input, context);
|
|
86
190
|
const headers = {};
|
|
@@ -106,6 +210,24 @@ export const se_ListMyDevicesCommand = async (input, context) => {
|
|
|
106
210
|
.b(body);
|
|
107
211
|
return b.build();
|
|
108
212
|
};
|
|
213
|
+
export const se_PutHistoryWrapCommand = async (input, context) => {
|
|
214
|
+
const b = rb(input, context);
|
|
215
|
+
const headers = {
|
|
216
|
+
'content-type': 'application/json',
|
|
217
|
+
};
|
|
218
|
+
b.bp("/chat/history/wraps");
|
|
219
|
+
let body;
|
|
220
|
+
body = JSON.stringify(take(input, {
|
|
221
|
+
'epoch': [],
|
|
222
|
+
'method': [],
|
|
223
|
+
'wrapId': [],
|
|
224
|
+
'wrappedKey': [],
|
|
225
|
+
}));
|
|
226
|
+
b.m("POST")
|
|
227
|
+
.h(headers)
|
|
228
|
+
.b(body);
|
|
229
|
+
return b.build();
|
|
230
|
+
};
|
|
109
231
|
export const se_RegisterDeviceCommand = async (input, context) => {
|
|
110
232
|
const b = rb(input, context);
|
|
111
233
|
const headers = {
|
|
@@ -114,7 +236,6 @@ export const se_RegisterDeviceCommand = async (input, context) => {
|
|
|
114
236
|
b.bp("/chat/devices");
|
|
115
237
|
let body;
|
|
116
238
|
body = JSON.stringify(take(input, {
|
|
117
|
-
'accountHistoryKey': _ => _json(_),
|
|
118
239
|
'deviceId': [],
|
|
119
240
|
'displayName': [],
|
|
120
241
|
'maxEnvelopeVersion': [],
|
|
@@ -155,6 +276,19 @@ export const se_RevokeDeviceCommand = async (input, context) => {
|
|
|
155
276
|
.b(body);
|
|
156
277
|
return b.build();
|
|
157
278
|
};
|
|
279
|
+
export const se_RevokeHistoryWrapCommand = async (input, context) => {
|
|
280
|
+
const b = rb(input, context);
|
|
281
|
+
const headers = {};
|
|
282
|
+
b.bp("/chat/history/wraps/{epoch}/{method}/{wrapId}");
|
|
283
|
+
b.p('epoch', () => input.epoch.toString(), '{epoch}', false);
|
|
284
|
+
b.p('method', () => input.method, '{method}', false);
|
|
285
|
+
b.p('wrapId', () => input.wrapId, '{wrapId}', false);
|
|
286
|
+
let body;
|
|
287
|
+
b.m("DELETE")
|
|
288
|
+
.h(headers)
|
|
289
|
+
.b(body);
|
|
290
|
+
return b.build();
|
|
291
|
+
};
|
|
158
292
|
export const se_UpdateChatSettingsCommand = async (input, context) => {
|
|
159
293
|
const b = rb(input, context);
|
|
160
294
|
const headers = {
|
|
@@ -163,9 +297,11 @@ export const se_UpdateChatSettingsCommand = async (input, context) => {
|
|
|
163
297
|
b.bp("/chat/settings");
|
|
164
298
|
let body;
|
|
165
299
|
body = JSON.stringify(take(input, {
|
|
300
|
+
'connectionNotifications': [],
|
|
166
301
|
'defaultDisappearingSeconds': [],
|
|
167
302
|
'helpTranslateCaptions': [],
|
|
168
303
|
'lastSeenVisibility': [],
|
|
304
|
+
'likeNotifications': [],
|
|
169
305
|
'messageNotifications': [],
|
|
170
306
|
'reactionNotifications': [],
|
|
171
307
|
'readReceipts': [],
|
|
@@ -264,6 +400,21 @@ export const se_GetCredentialReadinessCommand = async (input, context) => {
|
|
|
264
400
|
.b(body);
|
|
265
401
|
return b.build();
|
|
266
402
|
};
|
|
403
|
+
export const se_GetInviteEdgesCommand = async (input, context) => {
|
|
404
|
+
const b = rb(input, context);
|
|
405
|
+
const headers = {};
|
|
406
|
+
b.bp("/identity/internal/users/{userId}/invite-edges");
|
|
407
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
408
|
+
const query = map({
|
|
409
|
+
[_nT]: [, input[_nT]],
|
|
410
|
+
});
|
|
411
|
+
let body;
|
|
412
|
+
b.m("GET")
|
|
413
|
+
.h(headers)
|
|
414
|
+
.q(query)
|
|
415
|
+
.b(body);
|
|
416
|
+
return b.build();
|
|
417
|
+
};
|
|
267
418
|
export const se_GetPreservationHoldCommand = async (input, context) => {
|
|
268
419
|
const b = rb(input, context);
|
|
269
420
|
const headers = {};
|
|
@@ -556,6 +707,55 @@ export const se_VerifyAdminLinkOtpCommand = async (input, context) => {
|
|
|
556
707
|
.b(body);
|
|
557
708
|
return b.build();
|
|
558
709
|
};
|
|
710
|
+
export const se_GetScoringPolicyCommand = async (input, context) => {
|
|
711
|
+
const b = rb(input, context);
|
|
712
|
+
const headers = {};
|
|
713
|
+
b.bp("/intelligence/admin/scoring/policy");
|
|
714
|
+
let body;
|
|
715
|
+
b.m("GET")
|
|
716
|
+
.h(headers)
|
|
717
|
+
.b(body);
|
|
718
|
+
return b.build();
|
|
719
|
+
};
|
|
720
|
+
export const se_SimulateScoringPolicyCommand = async (input, context) => {
|
|
721
|
+
const b = rb(input, context);
|
|
722
|
+
const headers = {
|
|
723
|
+
'content-type': 'application/json',
|
|
724
|
+
};
|
|
725
|
+
b.bp("/intelligence/admin/scoring/simulate");
|
|
726
|
+
let body;
|
|
727
|
+
body = JSON.stringify(take(input, {
|
|
728
|
+
'overrides': _ => se_ParameterOverrides(_, context),
|
|
729
|
+
'scenario': _ => _json(_),
|
|
730
|
+
}));
|
|
731
|
+
b.m("POST")
|
|
732
|
+
.h(headers)
|
|
733
|
+
.b(body);
|
|
734
|
+
return b.build();
|
|
735
|
+
};
|
|
736
|
+
export const se_UpdateScoringPolicyCommand = async (input, context) => {
|
|
737
|
+
const b = rb(input, context);
|
|
738
|
+
const headers = {
|
|
739
|
+
'content-type': 'application/json',
|
|
740
|
+
};
|
|
741
|
+
b.bp("/intelligence/admin/scoring/policy");
|
|
742
|
+
const query = map({
|
|
743
|
+
[_eV]: [, input[_eVQ]],
|
|
744
|
+
});
|
|
745
|
+
let body;
|
|
746
|
+
if (input.policy !== undefined) {
|
|
747
|
+
body = se_ScoringPolicyConfig(input.policy, context);
|
|
748
|
+
}
|
|
749
|
+
if (body === undefined) {
|
|
750
|
+
body = {};
|
|
751
|
+
}
|
|
752
|
+
body = JSON.stringify(body);
|
|
753
|
+
b.m("PUT")
|
|
754
|
+
.h(headers)
|
|
755
|
+
.q(query)
|
|
756
|
+
.b(body);
|
|
757
|
+
return b.build();
|
|
758
|
+
};
|
|
559
759
|
export const se_DiscoverCommand = async (input, context) => {
|
|
560
760
|
const b = rb(input, context);
|
|
561
761
|
const headers = {};
|
|
@@ -572,10 +772,10 @@ export const se_DiscoverCommand = async (input, context) => {
|
|
|
572
772
|
.b(body);
|
|
573
773
|
return b.build();
|
|
574
774
|
};
|
|
575
|
-
export const
|
|
775
|
+
export const se_GetPartnerDistanceCommand = async (input, context) => {
|
|
576
776
|
const b = rb(input, context);
|
|
577
777
|
const headers = {};
|
|
578
|
-
b.bp("/matching/
|
|
778
|
+
b.bp("/matching/distance/{userId}");
|
|
579
779
|
b.p('userId', () => input.userId, '{userId}', false);
|
|
580
780
|
let body;
|
|
581
781
|
b.m("GET")
|
|
@@ -650,6 +850,21 @@ export const se_IndexLocationCommand = async (input, context) => {
|
|
|
650
850
|
.b(body);
|
|
651
851
|
return b.build();
|
|
652
852
|
};
|
|
853
|
+
export const se_IssueViewPassesCommand = async (input, context) => {
|
|
854
|
+
const b = rb(input, context);
|
|
855
|
+
const headers = {
|
|
856
|
+
'content-type': 'application/json',
|
|
857
|
+
};
|
|
858
|
+
b.bp("/matching/view-passes");
|
|
859
|
+
let body;
|
|
860
|
+
body = JSON.stringify(take(input, {
|
|
861
|
+
'targetIds': _ => _json(_),
|
|
862
|
+
}));
|
|
863
|
+
b.m("POST")
|
|
864
|
+
.h(headers)
|
|
865
|
+
.b(body);
|
|
866
|
+
return b.build();
|
|
867
|
+
};
|
|
653
868
|
export const se_RecordSuggestionCommand = async (input, context) => {
|
|
654
869
|
const b = rb(input, context);
|
|
655
870
|
const headers = {
|
|
@@ -666,6 +881,23 @@ export const se_RecordSuggestionCommand = async (input, context) => {
|
|
|
666
881
|
.b(body);
|
|
667
882
|
return b.build();
|
|
668
883
|
};
|
|
884
|
+
export const se_RecordSuggestionInternalCommand = async (input, context) => {
|
|
885
|
+
const b = rb(input, context);
|
|
886
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
887
|
+
'content-type': 'application/json',
|
|
888
|
+
[_xomt]: input[_mT],
|
|
889
|
+
});
|
|
890
|
+
b.bp("/matching/internal/suggestions");
|
|
891
|
+
let body;
|
|
892
|
+
body = JSON.stringify(take(input, {
|
|
893
|
+
'prompt': [],
|
|
894
|
+
'reasoning': [],
|
|
895
|
+
}));
|
|
896
|
+
b.m("POST")
|
|
897
|
+
.h(headers)
|
|
898
|
+
.b(body);
|
|
899
|
+
return b.build();
|
|
900
|
+
};
|
|
669
901
|
export const se_RemoveLocationCommand = async (input, context) => {
|
|
670
902
|
const b = rb(input, context);
|
|
671
903
|
const headers = {
|
|
@@ -723,21 +955,6 @@ export const se_SwipeCommand = async (input, context) => {
|
|
|
723
955
|
.b(body);
|
|
724
956
|
return b.build();
|
|
725
957
|
};
|
|
726
|
-
export const se_SwipeByUsernameCommand = async (input, context) => {
|
|
727
|
-
const b = rb(input, context);
|
|
728
|
-
const headers = {
|
|
729
|
-
'content-type': 'application/json',
|
|
730
|
-
};
|
|
731
|
-
b.bp("/matching/swipe/by-username");
|
|
732
|
-
let body;
|
|
733
|
-
body = JSON.stringify(take(input, {
|
|
734
|
-
'username': [],
|
|
735
|
-
}));
|
|
736
|
-
b.m("POST")
|
|
737
|
-
.h(headers)
|
|
738
|
-
.b(body);
|
|
739
|
-
return b.build();
|
|
740
|
-
};
|
|
741
958
|
export const se_UpdatePreferencesCommand = async (input, context) => {
|
|
742
959
|
const b = rb(input, context);
|
|
743
960
|
const headers = {
|
|
@@ -757,6 +974,8 @@ export const se_UpdatePreferencesCommand = async (input, context) => {
|
|
|
757
974
|
'exercise': [],
|
|
758
975
|
'familyPlans': [],
|
|
759
976
|
'genders': _ => _json(_),
|
|
977
|
+
'hidePastHooks': [],
|
|
978
|
+
'implicitPreferences': _ => _json(_),
|
|
760
979
|
'incognito': [],
|
|
761
980
|
'interestedInGenders': _ => _json(_),
|
|
762
981
|
'interests': _ => _json(_),
|
|
@@ -765,9 +984,6 @@ export const se_UpdatePreferencesCommand = async (input, context) => {
|
|
|
765
984
|
'maxHeight': [],
|
|
766
985
|
'minAge': [],
|
|
767
986
|
'minHeight': [],
|
|
768
|
-
'notifyDailyPicks': [],
|
|
769
|
-
'notifyLikes': [],
|
|
770
|
-
'notifyMatches': [],
|
|
771
987
|
'politicalView': [],
|
|
772
988
|
'preferredLanguages': _ => _json(_),
|
|
773
989
|
'relationshipType': [],
|
|
@@ -856,7 +1072,9 @@ export const se_DeleteProfileCommand = async (input, context) => {
|
|
|
856
1072
|
};
|
|
857
1073
|
export const se_GenerateDownloadUrlCommand = async (input, context) => {
|
|
858
1074
|
const b = rb(input, context);
|
|
859
|
-
const headers = {}
|
|
1075
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1076
|
+
[_xvp]: input[_vP],
|
|
1077
|
+
});
|
|
860
1078
|
b.bp("/profile/media/download-url");
|
|
861
1079
|
const query = map({
|
|
862
1080
|
[_k]: [, __expectNonNull(input[_k], `key`)],
|
|
@@ -878,6 +1096,7 @@ export const se_GenerateUploadUrlCommand = async (input, context) => {
|
|
|
878
1096
|
body = JSON.stringify(take(input, {
|
|
879
1097
|
'contentLength': [],
|
|
880
1098
|
'contentType': [],
|
|
1099
|
+
'purpose': [],
|
|
881
1100
|
}));
|
|
882
1101
|
b.m("POST")
|
|
883
1102
|
.h(headers)
|
|
@@ -895,6 +1114,30 @@ export const se_GetBirthDateStatusCommand = async (input, context) => {
|
|
|
895
1114
|
.b(body);
|
|
896
1115
|
return b.build();
|
|
897
1116
|
};
|
|
1117
|
+
export const se_GetChatProfileCommand = async (input, context) => {
|
|
1118
|
+
const b = rb(input, context);
|
|
1119
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1120
|
+
[_xvp]: input[_vP],
|
|
1121
|
+
});
|
|
1122
|
+
b.bp("/profile/{userId}/chat");
|
|
1123
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
1124
|
+
let body;
|
|
1125
|
+
b.m("GET")
|
|
1126
|
+
.h(headers)
|
|
1127
|
+
.b(body);
|
|
1128
|
+
return b.build();
|
|
1129
|
+
};
|
|
1130
|
+
export const se_GetInternalProfileCommand = async (input, context) => {
|
|
1131
|
+
const b = rb(input, context);
|
|
1132
|
+
const headers = {};
|
|
1133
|
+
b.bp("/profile-internal/{userId}");
|
|
1134
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
1135
|
+
let body;
|
|
1136
|
+
b.m("GET")
|
|
1137
|
+
.h(headers)
|
|
1138
|
+
.b(body);
|
|
1139
|
+
return b.build();
|
|
1140
|
+
};
|
|
898
1141
|
export const se_GetLivenessStatusCommand = async (input, context) => {
|
|
899
1142
|
const b = rb(input, context);
|
|
900
1143
|
const headers = {};
|
|
@@ -905,6 +1148,30 @@ export const se_GetLivenessStatusCommand = async (input, context) => {
|
|
|
905
1148
|
.b(body);
|
|
906
1149
|
return b.build();
|
|
907
1150
|
};
|
|
1151
|
+
export const se_GetMatchingProfileCommand = async (input, context) => {
|
|
1152
|
+
const b = rb(input, context);
|
|
1153
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1154
|
+
[_xvp]: input[_vP],
|
|
1155
|
+
});
|
|
1156
|
+
b.bp("/profile/{userId}/matching");
|
|
1157
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
1158
|
+
let body;
|
|
1159
|
+
b.m("GET")
|
|
1160
|
+
.h(headers)
|
|
1161
|
+
.b(body);
|
|
1162
|
+
return b.build();
|
|
1163
|
+
};
|
|
1164
|
+
export const se_GetMatchingReadinessCommand = async (input, context) => {
|
|
1165
|
+
const b = rb(input, context);
|
|
1166
|
+
const headers = {};
|
|
1167
|
+
b.bp("/profile-internal/{userId}/matching-readiness");
|
|
1168
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
1169
|
+
let body;
|
|
1170
|
+
b.m("GET")
|
|
1171
|
+
.h(headers)
|
|
1172
|
+
.b(body);
|
|
1173
|
+
return b.build();
|
|
1174
|
+
};
|
|
908
1175
|
export const se_GetMyProfileCommand = async (input, context) => {
|
|
909
1176
|
const b = rb(input, context);
|
|
910
1177
|
const headers = {};
|
|
@@ -930,13 +1197,13 @@ export const se_GetPlaceCommand = async (input, context) => {
|
|
|
930
1197
|
.b(body);
|
|
931
1198
|
return b.build();
|
|
932
1199
|
};
|
|
933
|
-
export const
|
|
1200
|
+
export const se_RepublishMatchingProfileCommand = async (input, context) => {
|
|
934
1201
|
const b = rb(input, context);
|
|
935
1202
|
const headers = {};
|
|
936
|
-
b.bp("/profile/{userId}");
|
|
1203
|
+
b.bp("/profile-internal/{userId}/matching/republish");
|
|
937
1204
|
b.p('userId', () => input.userId, '{userId}', false);
|
|
938
1205
|
let body;
|
|
939
|
-
b.m("
|
|
1206
|
+
b.m("POST")
|
|
940
1207
|
.h(headers)
|
|
941
1208
|
.b(body);
|
|
942
1209
|
return b.build();
|
|
@@ -956,22 +1223,37 @@ export const se_SearchPlacesCommand = async (input, context) => {
|
|
|
956
1223
|
.b(body);
|
|
957
1224
|
return b.build();
|
|
958
1225
|
};
|
|
959
|
-
export const
|
|
1226
|
+
export const se_UpsertChatProfileCommand = async (input, context) => {
|
|
960
1227
|
const b = rb(input, context);
|
|
961
1228
|
const headers = {
|
|
962
1229
|
'content-type': 'application/json',
|
|
963
1230
|
};
|
|
964
|
-
b.bp("/profile");
|
|
1231
|
+
b.bp("/profile/chat");
|
|
1232
|
+
let body;
|
|
1233
|
+
body = JSON.stringify(take(input, {
|
|
1234
|
+
'avatarKey': [],
|
|
1235
|
+
'birthDetails': _ => se_BirthDetails(_, context),
|
|
1236
|
+
'displayName': [],
|
|
1237
|
+
}));
|
|
1238
|
+
b.m("PUT")
|
|
1239
|
+
.h(headers)
|
|
1240
|
+
.b(body);
|
|
1241
|
+
return b.build();
|
|
1242
|
+
};
|
|
1243
|
+
export const se_UpsertMatchingProfileCommand = async (input, context) => {
|
|
1244
|
+
const b = rb(input, context);
|
|
1245
|
+
const headers = {
|
|
1246
|
+
'content-type': 'application/json',
|
|
1247
|
+
};
|
|
1248
|
+
b.bp("/profile/matching");
|
|
965
1249
|
let body;
|
|
966
1250
|
body = JSON.stringify(take(input, {
|
|
967
1251
|
'audioPrompt': [],
|
|
968
1252
|
'bio': [],
|
|
969
|
-
'birthDetails': _ => se_BirthDetails(_, context),
|
|
970
1253
|
'cannabisStatus': [],
|
|
971
1254
|
'causes': _ => _json(_),
|
|
972
1255
|
'communities': _ => _json(_),
|
|
973
1256
|
'currentLocation': [],
|
|
974
|
-
'displayName': [],
|
|
975
1257
|
'drinkingStatus': [],
|
|
976
1258
|
'drugsStatus': [],
|
|
977
1259
|
'education': [],
|
|
@@ -1004,21 +1286,151 @@ export const se_UpdateProfileCommand = async (input, context) => {
|
|
|
1004
1286
|
.b(body);
|
|
1005
1287
|
return b.build();
|
|
1006
1288
|
};
|
|
1007
|
-
export const
|
|
1289
|
+
export const se_AcceptHookRequestCommand = async (input, context) => {
|
|
1008
1290
|
const b = rb(input, context);
|
|
1009
1291
|
const headers = {};
|
|
1010
|
-
b.bp("/state/
|
|
1292
|
+
b.bp("/state/hook-requests/{requestId}/accept");
|
|
1293
|
+
b.p('requestId', () => input.requestId, '{requestId}', false);
|
|
1011
1294
|
let body;
|
|
1012
1295
|
b.m("POST")
|
|
1013
1296
|
.h(headers)
|
|
1014
1297
|
.b(body);
|
|
1015
1298
|
return b.build();
|
|
1016
1299
|
};
|
|
1017
|
-
export const
|
|
1300
|
+
export const se_BlockUserCommand = async (input, context) => {
|
|
1018
1301
|
const b = rb(input, context);
|
|
1019
|
-
const headers = {
|
|
1020
|
-
|
|
1021
|
-
|
|
1302
|
+
const headers = {
|
|
1303
|
+
'content-type': 'application/json',
|
|
1304
|
+
};
|
|
1305
|
+
b.bp("/state/blocks");
|
|
1306
|
+
let body;
|
|
1307
|
+
body = JSON.stringify(take(input, {
|
|
1308
|
+
'blockedUserId': [],
|
|
1309
|
+
'details': [],
|
|
1310
|
+
'reason': [],
|
|
1311
|
+
}));
|
|
1312
|
+
b.m("POST")
|
|
1313
|
+
.h(headers)
|
|
1314
|
+
.b(body);
|
|
1315
|
+
return b.build();
|
|
1316
|
+
};
|
|
1317
|
+
export const se_CancelHookRequestCommand = async (input, context) => {
|
|
1318
|
+
const b = rb(input, context);
|
|
1319
|
+
const headers = {};
|
|
1320
|
+
b.bp("/state/hook-requests/{requestId}");
|
|
1321
|
+
b.p('requestId', () => input.requestId, '{requestId}', false);
|
|
1322
|
+
let body;
|
|
1323
|
+
b.m("DELETE")
|
|
1324
|
+
.h(headers)
|
|
1325
|
+
.b(body);
|
|
1326
|
+
return b.build();
|
|
1327
|
+
};
|
|
1328
|
+
export const se_ClearTierOverrideCommand = async (input, context) => {
|
|
1329
|
+
const b = rb(input, context);
|
|
1330
|
+
const headers = {};
|
|
1331
|
+
b.bp("/state/admin/users/{targetUserId}/tier-override");
|
|
1332
|
+
b.p('targetUserId', () => input.targetUserId, '{targetUserId}', false);
|
|
1333
|
+
let body;
|
|
1334
|
+
b.m("DELETE")
|
|
1335
|
+
.h(headers)
|
|
1336
|
+
.b(body);
|
|
1337
|
+
return b.build();
|
|
1338
|
+
};
|
|
1339
|
+
export const se_CompleteOnboardingCommand = async (input, context) => {
|
|
1340
|
+
const b = rb(input, context);
|
|
1341
|
+
const headers = {};
|
|
1342
|
+
b.bp("/state/complete-onboarding");
|
|
1343
|
+
let body;
|
|
1344
|
+
b.m("POST")
|
|
1345
|
+
.h(headers)
|
|
1346
|
+
.b(body);
|
|
1347
|
+
return b.build();
|
|
1348
|
+
};
|
|
1349
|
+
export const se_DeclineHookRequestCommand = async (input, context) => {
|
|
1350
|
+
const b = rb(input, context);
|
|
1351
|
+
const headers = {};
|
|
1352
|
+
b.bp("/state/hook-requests/{requestId}/decline");
|
|
1353
|
+
b.p('requestId', () => input.requestId, '{requestId}', false);
|
|
1354
|
+
let body;
|
|
1355
|
+
b.m("POST")
|
|
1356
|
+
.h(headers)
|
|
1357
|
+
.b(body);
|
|
1358
|
+
return b.build();
|
|
1359
|
+
};
|
|
1360
|
+
export const se_DisableMatchingCommand = async (input, context) => {
|
|
1361
|
+
const b = rb(input, context);
|
|
1362
|
+
const headers = {
|
|
1363
|
+
'content-type': 'application/json',
|
|
1364
|
+
};
|
|
1365
|
+
b.bp("/state/matching/disable");
|
|
1366
|
+
let body;
|
|
1367
|
+
body = JSON.stringify(take(input, {
|
|
1368
|
+
'confirm': [],
|
|
1369
|
+
}));
|
|
1370
|
+
b.m("POST")
|
|
1371
|
+
.h(headers)
|
|
1372
|
+
.b(body);
|
|
1373
|
+
return b.build();
|
|
1374
|
+
};
|
|
1375
|
+
export const se_EnableMatchingCommand = async (input, context) => {
|
|
1376
|
+
const b = rb(input, context);
|
|
1377
|
+
const headers = {};
|
|
1378
|
+
b.bp("/state/matching/enable");
|
|
1379
|
+
let body;
|
|
1380
|
+
b.m("POST")
|
|
1381
|
+
.h(headers)
|
|
1382
|
+
.b(body);
|
|
1383
|
+
return b.build();
|
|
1384
|
+
};
|
|
1385
|
+
export const se_GetDiscoverySnapshotCommand = async (input, context) => {
|
|
1386
|
+
const b = rb(input, context);
|
|
1387
|
+
const headers = {};
|
|
1388
|
+
b.bp("/state/internal/users/{targetUserId}/discovery-snapshot");
|
|
1389
|
+
b.p('targetUserId', () => input.targetUserId, '{targetUserId}', false);
|
|
1390
|
+
let body;
|
|
1391
|
+
b.m("GET")
|
|
1392
|
+
.h(headers)
|
|
1393
|
+
.b(body);
|
|
1394
|
+
return b.build();
|
|
1395
|
+
};
|
|
1396
|
+
export const se_GetInternalMatchingStatusCommand = async (input, context) => {
|
|
1397
|
+
const b = rb(input, context);
|
|
1398
|
+
const headers = {};
|
|
1399
|
+
b.bp("/state/internal/users/{targetUserId}/matching");
|
|
1400
|
+
b.p('targetUserId', () => input.targetUserId, '{targetUserId}', false);
|
|
1401
|
+
let body;
|
|
1402
|
+
b.m("GET")
|
|
1403
|
+
.h(headers)
|
|
1404
|
+
.b(body);
|
|
1405
|
+
return b.build();
|
|
1406
|
+
};
|
|
1407
|
+
export const se_GetMatchCommand = async (input, context) => {
|
|
1408
|
+
const b = rb(input, context);
|
|
1409
|
+
const headers = {};
|
|
1410
|
+
b.bp("/state/match/{matchId}");
|
|
1411
|
+
b.p('matchId', () => input.matchId, '{matchId}', false);
|
|
1412
|
+
let body;
|
|
1413
|
+
b.m("GET")
|
|
1414
|
+
.h(headers)
|
|
1415
|
+
.b(body);
|
|
1416
|
+
return b.build();
|
|
1417
|
+
};
|
|
1418
|
+
export const se_GetModerationReportCommand = async (input, context) => {
|
|
1419
|
+
const b = rb(input, context);
|
|
1420
|
+
const headers = {};
|
|
1421
|
+
b.bp("/state/admin/reports/{reportId}");
|
|
1422
|
+
b.p('reportId', () => input.reportId, '{reportId}', false);
|
|
1423
|
+
let body;
|
|
1424
|
+
b.m("GET")
|
|
1425
|
+
.h(headers)
|
|
1426
|
+
.b(body);
|
|
1427
|
+
return b.build();
|
|
1428
|
+
};
|
|
1429
|
+
export const se_GetModerationSignalsCommand = async (input, context) => {
|
|
1430
|
+
const b = rb(input, context);
|
|
1431
|
+
const headers = {};
|
|
1432
|
+
b.bp("/state/admin/users/{targetUserId}/moderation-signals");
|
|
1433
|
+
b.p('targetUserId', () => input.targetUserId, '{targetUserId}', false);
|
|
1022
1434
|
let body;
|
|
1023
1435
|
b.m("GET")
|
|
1024
1436
|
.h(headers)
|
|
@@ -1036,6 +1448,17 @@ export const se_GetStateCommand = async (input, context) => {
|
|
|
1036
1448
|
.b(body);
|
|
1037
1449
|
return b.build();
|
|
1038
1450
|
};
|
|
1451
|
+
export const se_GetTierOverrideCommand = async (input, context) => {
|
|
1452
|
+
const b = rb(input, context);
|
|
1453
|
+
const headers = {};
|
|
1454
|
+
b.bp("/state/admin/users/{targetUserId}/tier-override");
|
|
1455
|
+
b.p('targetUserId', () => input.targetUserId, '{targetUserId}', false);
|
|
1456
|
+
let body;
|
|
1457
|
+
b.m("GET")
|
|
1458
|
+
.h(headers)
|
|
1459
|
+
.b(body);
|
|
1460
|
+
return b.build();
|
|
1461
|
+
};
|
|
1039
1462
|
export const se_InitUserCommand = async (input, context) => {
|
|
1040
1463
|
const b = rb(input, context);
|
|
1041
1464
|
const headers = {};
|
|
@@ -1046,6 +1469,124 @@ export const se_InitUserCommand = async (input, context) => {
|
|
|
1046
1469
|
.b(body);
|
|
1047
1470
|
return b.build();
|
|
1048
1471
|
};
|
|
1472
|
+
export const se_KeepHooksCommand = async (input, context) => {
|
|
1473
|
+
const b = rb(input, context);
|
|
1474
|
+
const headers = {
|
|
1475
|
+
'content-type': 'application/json',
|
|
1476
|
+
};
|
|
1477
|
+
b.bp("/state/hooks/keep");
|
|
1478
|
+
let body;
|
|
1479
|
+
body = JSON.stringify(take(input, {
|
|
1480
|
+
'matchIds': _ => _json(_),
|
|
1481
|
+
}));
|
|
1482
|
+
b.m("POST")
|
|
1483
|
+
.h(headers)
|
|
1484
|
+
.b(body);
|
|
1485
|
+
return b.build();
|
|
1486
|
+
};
|
|
1487
|
+
export const se_ListBlocksCommand = async (input, context) => {
|
|
1488
|
+
const b = rb(input, context);
|
|
1489
|
+
const headers = {};
|
|
1490
|
+
b.bp("/state/blocks");
|
|
1491
|
+
let body;
|
|
1492
|
+
b.m("GET")
|
|
1493
|
+
.h(headers)
|
|
1494
|
+
.b(body);
|
|
1495
|
+
return b.build();
|
|
1496
|
+
};
|
|
1497
|
+
export const se_ListHookRequestsCommand = async (input, context) => {
|
|
1498
|
+
const b = rb(input, context);
|
|
1499
|
+
const headers = {};
|
|
1500
|
+
b.bp("/state/hook-requests");
|
|
1501
|
+
const query = map({
|
|
1502
|
+
[_di]: [, __expectNonNull(input[_di], `direction`)],
|
|
1503
|
+
});
|
|
1504
|
+
let body;
|
|
1505
|
+
b.m("GET")
|
|
1506
|
+
.h(headers)
|
|
1507
|
+
.q(query)
|
|
1508
|
+
.b(body);
|
|
1509
|
+
return b.build();
|
|
1510
|
+
};
|
|
1511
|
+
export const se_ListMatchingOnMembersCommand = async (input, context) => {
|
|
1512
|
+
const b = rb(input, context);
|
|
1513
|
+
const headers = {};
|
|
1514
|
+
b.bp("/state/internal/matching/members");
|
|
1515
|
+
const query = map({
|
|
1516
|
+
[_li]: [() => input.limit !== void 0, () => (input[_li].toString())],
|
|
1517
|
+
[_nT]: [, input[_nT]],
|
|
1518
|
+
});
|
|
1519
|
+
let body;
|
|
1520
|
+
b.m("GET")
|
|
1521
|
+
.h(headers)
|
|
1522
|
+
.q(query)
|
|
1523
|
+
.b(body);
|
|
1524
|
+
return b.build();
|
|
1525
|
+
};
|
|
1526
|
+
export const se_ReportMemberCommand = async (input, context) => {
|
|
1527
|
+
const b = rb(input, context);
|
|
1528
|
+
const headers = {
|
|
1529
|
+
'content-type': 'application/json',
|
|
1530
|
+
};
|
|
1531
|
+
b.bp("/state/reports");
|
|
1532
|
+
let body;
|
|
1533
|
+
body = JSON.stringify(take(input, {
|
|
1534
|
+
'alsoBlock': [],
|
|
1535
|
+
'category': [],
|
|
1536
|
+
'conversationId': [],
|
|
1537
|
+
'details': [],
|
|
1538
|
+
'evidenceOffered': [],
|
|
1539
|
+
'reportedUserId': [],
|
|
1540
|
+
}));
|
|
1541
|
+
b.m("POST")
|
|
1542
|
+
.h(headers)
|
|
1543
|
+
.b(body);
|
|
1544
|
+
return b.build();
|
|
1545
|
+
};
|
|
1546
|
+
export const se_SendHookRequestCommand = async (input, context) => {
|
|
1547
|
+
const b = rb(input, context);
|
|
1548
|
+
const headers = {
|
|
1549
|
+
'content-type': 'application/json',
|
|
1550
|
+
};
|
|
1551
|
+
b.bp("/state/hook-requests");
|
|
1552
|
+
let body;
|
|
1553
|
+
body = JSON.stringify(take(input, {
|
|
1554
|
+
'username': [],
|
|
1555
|
+
}));
|
|
1556
|
+
b.m("POST")
|
|
1557
|
+
.h(headers)
|
|
1558
|
+
.b(body);
|
|
1559
|
+
return b.build();
|
|
1560
|
+
};
|
|
1561
|
+
export const se_SetTierOverrideCommand = async (input, context) => {
|
|
1562
|
+
const b = rb(input, context);
|
|
1563
|
+
const headers = {
|
|
1564
|
+
'content-type': 'application/json',
|
|
1565
|
+
};
|
|
1566
|
+
b.bp("/state/admin/users/{targetUserId}/tier-override");
|
|
1567
|
+
b.p('targetUserId', () => input.targetUserId, '{targetUserId}', false);
|
|
1568
|
+
let body;
|
|
1569
|
+
body = JSON.stringify(take(input, {
|
|
1570
|
+
'expiresAt': [],
|
|
1571
|
+
'reason': [],
|
|
1572
|
+
'tier': [],
|
|
1573
|
+
}));
|
|
1574
|
+
b.m("PUT")
|
|
1575
|
+
.h(headers)
|
|
1576
|
+
.b(body);
|
|
1577
|
+
return b.build();
|
|
1578
|
+
};
|
|
1579
|
+
export const se_UnblockUserCommand = async (input, context) => {
|
|
1580
|
+
const b = rb(input, context);
|
|
1581
|
+
const headers = {};
|
|
1582
|
+
b.bp("/state/blocks/{blockedUserId}");
|
|
1583
|
+
b.p('blockedUserId', () => input.blockedUserId, '{blockedUserId}', false);
|
|
1584
|
+
let body;
|
|
1585
|
+
b.m("DELETE")
|
|
1586
|
+
.h(headers)
|
|
1587
|
+
.b(body);
|
|
1588
|
+
return b.build();
|
|
1589
|
+
};
|
|
1049
1590
|
export const se_UnhookCommand = async (input, context) => {
|
|
1050
1591
|
const b = rb(input, context);
|
|
1051
1592
|
const headers = {
|
|
@@ -1090,7 +1631,7 @@ export const de_GetAiContextMatchCommand = async (output, context) => {
|
|
|
1090
1631
|
Object.assign(contents, doc);
|
|
1091
1632
|
return contents;
|
|
1092
1633
|
};
|
|
1093
|
-
export const
|
|
1634
|
+
export const de_GetGraphInvitesCommand = async (output, context) => {
|
|
1094
1635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1095
1636
|
return de_CommandError(output, context);
|
|
1096
1637
|
}
|
|
@@ -1099,13 +1640,630 @@ export const de_CreateMediaDownloadUrlCommand = async (output, context) => {
|
|
|
1099
1640
|
});
|
|
1100
1641
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1101
1642
|
const doc = take(data, {
|
|
1102
|
-
'
|
|
1103
|
-
'
|
|
1643
|
+
'root': _ => de_InviteNode(_, context),
|
|
1644
|
+
'totalInvitees': __expectInt32,
|
|
1645
|
+
'truncated': __expectBoolean,
|
|
1646
|
+
});
|
|
1647
|
+
Object.assign(contents, doc);
|
|
1648
|
+
return contents;
|
|
1649
|
+
};
|
|
1650
|
+
export const de_GetGraphMatchCommand = async (output, context) => {
|
|
1651
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1652
|
+
return de_CommandError(output, context);
|
|
1653
|
+
}
|
|
1654
|
+
const contents = map({
|
|
1655
|
+
$metadata: deserializeMetadata(output),
|
|
1656
|
+
});
|
|
1657
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1658
|
+
const doc = take(data, {
|
|
1659
|
+
'matchId': __expectString,
|
|
1660
|
+
'matchedAt': __expectLong,
|
|
1661
|
+
'metrics': _json,
|
|
1662
|
+
'origin': __expectString,
|
|
1663
|
+
'userA': __expectString,
|
|
1664
|
+
'userB': __expectString,
|
|
1665
|
+
});
|
|
1666
|
+
Object.assign(contents, doc);
|
|
1667
|
+
return contents;
|
|
1668
|
+
};
|
|
1669
|
+
export const de_GetGraphUserCommand = async (output, context) => {
|
|
1670
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1671
|
+
return de_CommandError(output, context);
|
|
1672
|
+
}
|
|
1673
|
+
const contents = map({
|
|
1674
|
+
$metadata: deserializeMetadata(output),
|
|
1675
|
+
});
|
|
1676
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1677
|
+
const doc = take(data, {
|
|
1678
|
+
'behavior': _ => de_GraphUserBehavior(_, context),
|
|
1679
|
+
'createdAt': __expectLong,
|
|
1680
|
+
'directInviteCount': __expectInt32,
|
|
1681
|
+
'invitedBy': __expectString,
|
|
1682
|
+
'matchCount': __expectInt32,
|
|
1683
|
+
'userId': __expectString,
|
|
1684
|
+
});
|
|
1685
|
+
Object.assign(contents, doc);
|
|
1686
|
+
return contents;
|
|
1687
|
+
};
|
|
1688
|
+
export const de_GetMediaStatsCommand = async (output, context) => {
|
|
1689
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1690
|
+
return de_CommandError(output, context);
|
|
1691
|
+
}
|
|
1692
|
+
const contents = map({
|
|
1693
|
+
$metadata: deserializeMetadata(output),
|
|
1694
|
+
});
|
|
1695
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1696
|
+
const doc = take(data, {
|
|
1697
|
+
'photos': _json,
|
|
1698
|
+
});
|
|
1699
|
+
Object.assign(contents, doc);
|
|
1700
|
+
return contents;
|
|
1701
|
+
};
|
|
1702
|
+
export const de_IngestSignalsCommand = async (output, context) => {
|
|
1703
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1704
|
+
return de_CommandError(output, context);
|
|
1705
|
+
}
|
|
1706
|
+
const contents = map({
|
|
1707
|
+
$metadata: deserializeMetadata(output),
|
|
1708
|
+
});
|
|
1709
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1710
|
+
const doc = take(data, {
|
|
1711
|
+
'accepted': __expectInt32,
|
|
1712
|
+
'reasons': _json,
|
|
1713
|
+
'rejected': __expectInt32,
|
|
1714
|
+
});
|
|
1715
|
+
Object.assign(contents, doc);
|
|
1716
|
+
return contents;
|
|
1717
|
+
};
|
|
1718
|
+
export const de_ListGraphUserMatchesCommand = async (output, context) => {
|
|
1719
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1720
|
+
return de_CommandError(output, context);
|
|
1721
|
+
}
|
|
1722
|
+
const contents = map({
|
|
1723
|
+
$metadata: deserializeMetadata(output),
|
|
1724
|
+
});
|
|
1725
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1726
|
+
const doc = take(data, {
|
|
1727
|
+
'matchCount': __expectInt32,
|
|
1728
|
+
'matches': _json,
|
|
1729
|
+
'userId': __expectString,
|
|
1730
|
+
});
|
|
1731
|
+
Object.assign(contents, doc);
|
|
1732
|
+
return contents;
|
|
1733
|
+
};
|
|
1734
|
+
export const de_CreateMediaDownloadUrlCommand = async (output, context) => {
|
|
1735
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1736
|
+
return de_CommandError(output, context);
|
|
1737
|
+
}
|
|
1738
|
+
const contents = map({
|
|
1739
|
+
$metadata: deserializeMetadata(output),
|
|
1740
|
+
});
|
|
1741
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1742
|
+
const doc = take(data, {
|
|
1743
|
+
'downloadUrl': __expectString,
|
|
1744
|
+
'expiresInSeconds': __expectInt32,
|
|
1745
|
+
});
|
|
1746
|
+
Object.assign(contents, doc);
|
|
1747
|
+
return contents;
|
|
1748
|
+
};
|
|
1749
|
+
export const de_CreateMediaUploadUrlCommand = async (output, context) => {
|
|
1750
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1751
|
+
return de_CommandError(output, context);
|
|
1752
|
+
}
|
|
1753
|
+
const contents = map({
|
|
1754
|
+
$metadata: deserializeMetadata(output),
|
|
1755
|
+
});
|
|
1756
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1757
|
+
const doc = take(data, {
|
|
1758
|
+
'expiresInSeconds': __expectInt32,
|
|
1759
|
+
'objectKey': __expectString,
|
|
1760
|
+
'uploadUrl': __expectString,
|
|
1761
|
+
});
|
|
1762
|
+
Object.assign(contents, doc);
|
|
1763
|
+
return contents;
|
|
1764
|
+
};
|
|
1765
|
+
export const de_DeleteMatchMessagesCommand = async (output, context) => {
|
|
1766
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1767
|
+
return de_CommandError(output, context);
|
|
1768
|
+
}
|
|
1769
|
+
const contents = map({
|
|
1770
|
+
$metadata: deserializeMetadata(output),
|
|
1771
|
+
});
|
|
1772
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1773
|
+
const doc = take(data, {
|
|
1774
|
+
'deleted': __expectInt32,
|
|
1775
|
+
});
|
|
1776
|
+
Object.assign(contents, doc);
|
|
1777
|
+
return contents;
|
|
1778
|
+
};
|
|
1779
|
+
export const de_DeletePushTokenCommand = async (output, context) => {
|
|
1780
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1781
|
+
return de_CommandError(output, context);
|
|
1782
|
+
}
|
|
1783
|
+
const contents = map({
|
|
1784
|
+
$metadata: deserializeMetadata(output),
|
|
1785
|
+
});
|
|
1786
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1787
|
+
const doc = take(data, {
|
|
1788
|
+
'deleted': __expectBoolean,
|
|
1789
|
+
'deviceId': __expectString,
|
|
1790
|
+
});
|
|
1791
|
+
Object.assign(contents, doc);
|
|
1792
|
+
return contents;
|
|
1793
|
+
};
|
|
1794
|
+
export const de_EstablishHistoryEpochCommand = async (output, context) => {
|
|
1795
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1796
|
+
return de_CommandError(output, context);
|
|
1797
|
+
}
|
|
1798
|
+
const contents = map({
|
|
1799
|
+
$metadata: deserializeMetadata(output),
|
|
1800
|
+
});
|
|
1801
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1802
|
+
const doc = take(data, {
|
|
1803
|
+
'epochs': _json,
|
|
1804
|
+
'established': __expectBoolean,
|
|
1805
|
+
});
|
|
1806
|
+
Object.assign(contents, doc);
|
|
1807
|
+
return contents;
|
|
1808
|
+
};
|
|
1809
|
+
export const de_GetChatSettingsCommand = async (output, context) => {
|
|
1810
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1811
|
+
return de_CommandError(output, context);
|
|
1812
|
+
}
|
|
1813
|
+
const contents = map({
|
|
1814
|
+
$metadata: deserializeMetadata(output),
|
|
1815
|
+
});
|
|
1816
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1817
|
+
const doc = take(data, {
|
|
1818
|
+
'settings': _json,
|
|
1819
|
+
});
|
|
1820
|
+
Object.assign(contents, doc);
|
|
1821
|
+
return contents;
|
|
1822
|
+
};
|
|
1823
|
+
export const de_GetHistoryStateCommand = async (output, context) => {
|
|
1824
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1825
|
+
return de_CommandError(output, context);
|
|
1826
|
+
}
|
|
1827
|
+
const contents = map({
|
|
1828
|
+
$metadata: deserializeMetadata(output),
|
|
1829
|
+
});
|
|
1830
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1831
|
+
const doc = take(data, {
|
|
1832
|
+
'activeEpoch': __expectInt32,
|
|
1833
|
+
'epochs': _json,
|
|
1834
|
+
'wraps': _json,
|
|
1835
|
+
});
|
|
1836
|
+
Object.assign(contents, doc);
|
|
1837
|
+
return contents;
|
|
1838
|
+
};
|
|
1839
|
+
export const de_GetParticipantRegistryCommand = async (output, context) => {
|
|
1840
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1841
|
+
return de_CommandError(output, context);
|
|
1842
|
+
}
|
|
1843
|
+
const contents = map({
|
|
1844
|
+
$metadata: deserializeMetadata(output),
|
|
1845
|
+
});
|
|
1846
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1847
|
+
const doc = take(data, {
|
|
1848
|
+
'accountHistoryKey': _json,
|
|
1849
|
+
'devices': _json,
|
|
1850
|
+
'userId': __expectString,
|
|
1851
|
+
});
|
|
1852
|
+
Object.assign(contents, doc);
|
|
1853
|
+
return contents;
|
|
1854
|
+
};
|
|
1855
|
+
export const de_ListMyDevicesCommand = async (output, context) => {
|
|
1856
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1857
|
+
return de_CommandError(output, context);
|
|
1858
|
+
}
|
|
1859
|
+
const contents = map({
|
|
1860
|
+
$metadata: deserializeMetadata(output),
|
|
1861
|
+
});
|
|
1862
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1863
|
+
const doc = take(data, {
|
|
1864
|
+
'accountHistoryKey': _json,
|
|
1865
|
+
'devices': _json,
|
|
1866
|
+
});
|
|
1867
|
+
Object.assign(contents, doc);
|
|
1868
|
+
return contents;
|
|
1869
|
+
};
|
|
1870
|
+
export const de_PutHistoryWrapCommand = async (output, context) => {
|
|
1871
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1872
|
+
return de_CommandError(output, context);
|
|
1873
|
+
}
|
|
1874
|
+
const contents = map({
|
|
1875
|
+
$metadata: deserializeMetadata(output),
|
|
1876
|
+
});
|
|
1877
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1878
|
+
const doc = take(data, {
|
|
1879
|
+
'wraps': _json,
|
|
1880
|
+
});
|
|
1881
|
+
Object.assign(contents, doc);
|
|
1882
|
+
return contents;
|
|
1883
|
+
};
|
|
1884
|
+
export const de_RegisterDeviceCommand = async (output, context) => {
|
|
1885
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1886
|
+
return de_CommandError(output, context);
|
|
1887
|
+
}
|
|
1888
|
+
const contents = map({
|
|
1889
|
+
$metadata: deserializeMetadata(output),
|
|
1890
|
+
});
|
|
1891
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1892
|
+
const doc = take(data, {
|
|
1893
|
+
'accountHistoryKey': _json,
|
|
1894
|
+
'device': _json,
|
|
1895
|
+
});
|
|
1896
|
+
Object.assign(contents, doc);
|
|
1897
|
+
return contents;
|
|
1898
|
+
};
|
|
1899
|
+
export const de_RegisterPushTokenCommand = async (output, context) => {
|
|
1900
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1901
|
+
return de_CommandError(output, context);
|
|
1902
|
+
}
|
|
1903
|
+
const contents = map({
|
|
1904
|
+
$metadata: deserializeMetadata(output),
|
|
1905
|
+
});
|
|
1906
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1907
|
+
const doc = take(data, {
|
|
1908
|
+
'deviceId': __expectString,
|
|
1909
|
+
'registered': __expectBoolean,
|
|
1910
|
+
});
|
|
1911
|
+
Object.assign(contents, doc);
|
|
1912
|
+
return contents;
|
|
1913
|
+
};
|
|
1914
|
+
export const de_RevokeDeviceCommand = async (output, context) => {
|
|
1915
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1916
|
+
return de_CommandError(output, context);
|
|
1917
|
+
}
|
|
1918
|
+
const contents = map({
|
|
1919
|
+
$metadata: deserializeMetadata(output),
|
|
1920
|
+
});
|
|
1921
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1922
|
+
const doc = take(data, {
|
|
1923
|
+
'deviceId': __expectString,
|
|
1924
|
+
'revoked': __expectBoolean,
|
|
1925
|
+
});
|
|
1926
|
+
Object.assign(contents, doc);
|
|
1927
|
+
return contents;
|
|
1928
|
+
};
|
|
1929
|
+
export const de_RevokeHistoryWrapCommand = async (output, context) => {
|
|
1930
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1931
|
+
return de_CommandError(output, context);
|
|
1932
|
+
}
|
|
1933
|
+
const contents = map({
|
|
1934
|
+
$metadata: deserializeMetadata(output),
|
|
1935
|
+
});
|
|
1936
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1937
|
+
const doc = take(data, {
|
|
1938
|
+
'epoch': __expectInt32,
|
|
1939
|
+
'method': __expectString,
|
|
1940
|
+
'revoked': __expectBoolean,
|
|
1941
|
+
'wrapId': __expectString,
|
|
1942
|
+
});
|
|
1943
|
+
Object.assign(contents, doc);
|
|
1944
|
+
return contents;
|
|
1945
|
+
};
|
|
1946
|
+
export const de_UpdateChatSettingsCommand = async (output, context) => {
|
|
1947
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1948
|
+
return de_CommandError(output, context);
|
|
1949
|
+
}
|
|
1950
|
+
const contents = map({
|
|
1951
|
+
$metadata: deserializeMetadata(output),
|
|
1952
|
+
});
|
|
1953
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1954
|
+
const doc = take(data, {
|
|
1955
|
+
'settings': _json,
|
|
1956
|
+
});
|
|
1957
|
+
Object.assign(contents, doc);
|
|
1958
|
+
return contents;
|
|
1959
|
+
};
|
|
1960
|
+
export const de_AuthSocialCommand = async (output, context) => {
|
|
1961
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1962
|
+
return de_CommandError(output, context);
|
|
1963
|
+
}
|
|
1964
|
+
const contents = map({
|
|
1965
|
+
$metadata: deserializeMetadata(output),
|
|
1966
|
+
});
|
|
1967
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1968
|
+
const doc = take(data, {
|
|
1969
|
+
'isNewUser': __expectBoolean,
|
|
1970
|
+
'status': __expectString,
|
|
1971
|
+
'userId': __expectString,
|
|
1972
|
+
});
|
|
1973
|
+
Object.assign(contents, doc);
|
|
1974
|
+
return contents;
|
|
1975
|
+
};
|
|
1976
|
+
export const de_CreateAdminInviteCommand = async (output, context) => {
|
|
1977
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1978
|
+
return de_CommandError(output, context);
|
|
1979
|
+
}
|
|
1980
|
+
const contents = map({
|
|
1981
|
+
$metadata: deserializeMetadata(output),
|
|
1982
|
+
});
|
|
1983
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1984
|
+
const doc = take(data, {
|
|
1985
|
+
'expiresAt': __expectLong,
|
|
1986
|
+
'inviteCode': __expectString,
|
|
1987
|
+
'maxUses': __expectInt32,
|
|
1988
|
+
});
|
|
1989
|
+
Object.assign(contents, doc);
|
|
1990
|
+
return contents;
|
|
1991
|
+
};
|
|
1992
|
+
export const de_GenerateInviteCommand = async (output, context) => {
|
|
1993
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1994
|
+
return de_CommandError(output, context);
|
|
1995
|
+
}
|
|
1996
|
+
const contents = map({
|
|
1997
|
+
$metadata: deserializeMetadata(output),
|
|
1998
|
+
});
|
|
1999
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2000
|
+
const doc = take(data, {
|
|
2001
|
+
'expiresAt': __expectLong,
|
|
2002
|
+
'inviteCode': __expectString,
|
|
2003
|
+
'maxUses': __expectInt32,
|
|
2004
|
+
});
|
|
2005
|
+
Object.assign(contents, doc);
|
|
2006
|
+
return contents;
|
|
2007
|
+
};
|
|
2008
|
+
export const de_GetAccountStateCommand = async (output, context) => {
|
|
2009
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2010
|
+
return de_CommandError(output, context);
|
|
2011
|
+
}
|
|
2012
|
+
const contents = map({
|
|
2013
|
+
$metadata: deserializeMetadata(output),
|
|
2014
|
+
});
|
|
2015
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2016
|
+
const doc = take(data, {
|
|
2017
|
+
'reasonCode': __expectString,
|
|
2018
|
+
'state': __expectString,
|
|
2019
|
+
'until': __expectLong,
|
|
2020
|
+
'version': __expectInt32,
|
|
2021
|
+
});
|
|
2022
|
+
Object.assign(contents, doc);
|
|
2023
|
+
return contents;
|
|
2024
|
+
};
|
|
2025
|
+
export const de_GetAdminPhoneStatusCommand = async (output, context) => {
|
|
2026
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2027
|
+
return de_CommandError(output, context);
|
|
2028
|
+
}
|
|
2029
|
+
const contents = map({
|
|
2030
|
+
$metadata: deserializeMetadata(output),
|
|
2031
|
+
});
|
|
2032
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2033
|
+
const doc = take(data, {
|
|
2034
|
+
'registered': __expectBoolean,
|
|
2035
|
+
});
|
|
2036
|
+
Object.assign(contents, doc);
|
|
2037
|
+
return contents;
|
|
2038
|
+
};
|
|
2039
|
+
export const de_GetCredentialReadinessCommand = async (output, context) => {
|
|
2040
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2041
|
+
return de_CommandError(output, context);
|
|
2042
|
+
}
|
|
2043
|
+
const contents = map({
|
|
2044
|
+
$metadata: deserializeMetadata(output),
|
|
2045
|
+
});
|
|
2046
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2047
|
+
const doc = take(data, {
|
|
2048
|
+
'gaps': _json,
|
|
2049
|
+
'ready': __expectBoolean,
|
|
2050
|
+
});
|
|
2051
|
+
Object.assign(contents, doc);
|
|
2052
|
+
return contents;
|
|
2053
|
+
};
|
|
2054
|
+
export const de_GetInviteEdgesCommand = async (output, context) => {
|
|
2055
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2056
|
+
return de_CommandError(output, context);
|
|
2057
|
+
}
|
|
2058
|
+
const contents = map({
|
|
2059
|
+
$metadata: deserializeMetadata(output),
|
|
2060
|
+
});
|
|
2061
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2062
|
+
const doc = take(data, {
|
|
2063
|
+
'invitedBy': __expectString,
|
|
2064
|
+
'invitees': _json,
|
|
2065
|
+
'nextToken': __expectString,
|
|
2066
|
+
'userId': __expectString,
|
|
2067
|
+
});
|
|
2068
|
+
Object.assign(contents, doc);
|
|
2069
|
+
return contents;
|
|
2070
|
+
};
|
|
2071
|
+
export const de_GetPreservationHoldCommand = async (output, context) => {
|
|
2072
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2073
|
+
return de_CommandError(output, context);
|
|
2074
|
+
}
|
|
2075
|
+
const contents = map({
|
|
2076
|
+
$metadata: deserializeMetadata(output),
|
|
2077
|
+
});
|
|
2078
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2079
|
+
const doc = take(data, {
|
|
2080
|
+
'active': __expectBoolean,
|
|
2081
|
+
'caseRef': __expectString,
|
|
2082
|
+
'childSafetySince': __expectLong,
|
|
2083
|
+
'reasonCode': __expectString,
|
|
2084
|
+
'setAt': __expectLong,
|
|
2085
|
+
'setBy': __expectString,
|
|
2086
|
+
'until': __expectLong,
|
|
2087
|
+
'version': __expectInt32,
|
|
2088
|
+
});
|
|
2089
|
+
Object.assign(contents, doc);
|
|
2090
|
+
return contents;
|
|
2091
|
+
};
|
|
2092
|
+
export const de_GetUserCommand = async (output, context) => {
|
|
2093
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2094
|
+
return de_CommandError(output, context);
|
|
2095
|
+
}
|
|
2096
|
+
const contents = map({
|
|
2097
|
+
$metadata: deserializeMetadata(output),
|
|
2098
|
+
});
|
|
2099
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2100
|
+
const doc = take(data, {
|
|
2101
|
+
'appleEmail': __expectString,
|
|
2102
|
+
'appleId': __expectString,
|
|
2103
|
+
'displayName': __expectString,
|
|
2104
|
+
'email': __expectString,
|
|
2105
|
+
'googleEmail': __expectString,
|
|
2106
|
+
'googleId': __expectString,
|
|
2107
|
+
'phoneNumber': __expectString,
|
|
2108
|
+
'userId': __expectString,
|
|
2109
|
+
'userState': __expectString,
|
|
2110
|
+
'username': __expectString,
|
|
2111
|
+
});
|
|
2112
|
+
Object.assign(contents, doc);
|
|
2113
|
+
return contents;
|
|
2114
|
+
};
|
|
2115
|
+
export const de_GetUserByEmailCommand = async (output, context) => {
|
|
2116
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2117
|
+
return de_CommandError(output, context);
|
|
2118
|
+
}
|
|
2119
|
+
const contents = map({
|
|
2120
|
+
$metadata: deserializeMetadata(output),
|
|
2121
|
+
});
|
|
2122
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2123
|
+
const doc = take(data, {
|
|
2124
|
+
'appleEmail': __expectString,
|
|
2125
|
+
'appleId': __expectString,
|
|
2126
|
+
'displayName': __expectString,
|
|
2127
|
+
'email': __expectString,
|
|
2128
|
+
'googleEmail': __expectString,
|
|
2129
|
+
'googleId': __expectString,
|
|
2130
|
+
'phoneNumber': __expectString,
|
|
2131
|
+
'userId': __expectString,
|
|
2132
|
+
'userState': __expectString,
|
|
2133
|
+
'username': __expectString,
|
|
2134
|
+
});
|
|
2135
|
+
Object.assign(contents, doc);
|
|
2136
|
+
return contents;
|
|
2137
|
+
};
|
|
2138
|
+
export const de_GetUserIdByUsernameCommand = async (output, context) => {
|
|
2139
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2140
|
+
return de_CommandError(output, context);
|
|
2141
|
+
}
|
|
2142
|
+
const contents = map({
|
|
2143
|
+
$metadata: deserializeMetadata(output),
|
|
2144
|
+
});
|
|
2145
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2146
|
+
const doc = take(data, {
|
|
2147
|
+
'userId': __expectString,
|
|
2148
|
+
});
|
|
2149
|
+
Object.assign(contents, doc);
|
|
2150
|
+
return contents;
|
|
2151
|
+
};
|
|
2152
|
+
export const de_LinkEmailCommand = async (output, context) => {
|
|
2153
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2154
|
+
return de_CommandError(output, context);
|
|
2155
|
+
}
|
|
2156
|
+
const contents = map({
|
|
2157
|
+
$metadata: deserializeMetadata(output),
|
|
2158
|
+
});
|
|
2159
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2160
|
+
const doc = take(data, {
|
|
2161
|
+
'status': __expectString,
|
|
2162
|
+
});
|
|
2163
|
+
Object.assign(contents, doc);
|
|
2164
|
+
return contents;
|
|
2165
|
+
};
|
|
2166
|
+
export const de_LinkSocialCommand = async (output, context) => {
|
|
2167
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2168
|
+
return de_CommandError(output, context);
|
|
2169
|
+
}
|
|
2170
|
+
const contents = map({
|
|
2171
|
+
$metadata: deserializeMetadata(output),
|
|
2172
|
+
});
|
|
2173
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2174
|
+
const doc = take(data, {
|
|
2175
|
+
'status': __expectString,
|
|
2176
|
+
});
|
|
2177
|
+
Object.assign(contents, doc);
|
|
2178
|
+
return contents;
|
|
2179
|
+
};
|
|
2180
|
+
export const de_RegisterPhoneCommand = async (output, context) => {
|
|
2181
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2182
|
+
return de_CommandError(output, context);
|
|
2183
|
+
}
|
|
2184
|
+
const contents = map({
|
|
2185
|
+
$metadata: deserializeMetadata(output),
|
|
2186
|
+
});
|
|
2187
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2188
|
+
const doc = take(data, {
|
|
2189
|
+
'status': __expectString,
|
|
2190
|
+
'userId': __expectString,
|
|
2191
|
+
});
|
|
2192
|
+
Object.assign(contents, doc);
|
|
2193
|
+
return contents;
|
|
2194
|
+
};
|
|
2195
|
+
export const de_RequestEmailOtpCommand = async (output, context) => {
|
|
2196
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2197
|
+
return de_CommandError(output, context);
|
|
2198
|
+
}
|
|
2199
|
+
const contents = map({
|
|
2200
|
+
$metadata: deserializeMetadata(output),
|
|
2201
|
+
});
|
|
2202
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2203
|
+
const doc = take(data, {
|
|
2204
|
+
'status': __expectString,
|
|
2205
|
+
});
|
|
2206
|
+
Object.assign(contents, doc);
|
|
2207
|
+
return contents;
|
|
2208
|
+
};
|
|
2209
|
+
export const de_RequestPhoneOtpCommand = async (output, context) => {
|
|
2210
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2211
|
+
return de_CommandError(output, context);
|
|
2212
|
+
}
|
|
2213
|
+
const contents = map({
|
|
2214
|
+
$metadata: deserializeMetadata(output),
|
|
2215
|
+
});
|
|
2216
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2217
|
+
const doc = take(data, {
|
|
2218
|
+
'status': __expectString,
|
|
2219
|
+
});
|
|
2220
|
+
Object.assign(contents, doc);
|
|
2221
|
+
return contents;
|
|
2222
|
+
};
|
|
2223
|
+
export const de_RequestPhoneUpdateOtpCommand = async (output, context) => {
|
|
2224
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2225
|
+
return de_CommandError(output, context);
|
|
2226
|
+
}
|
|
2227
|
+
const contents = map({
|
|
2228
|
+
$metadata: deserializeMetadata(output),
|
|
2229
|
+
});
|
|
2230
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2231
|
+
const doc = take(data, {
|
|
2232
|
+
'status': __expectString,
|
|
2233
|
+
});
|
|
2234
|
+
Object.assign(contents, doc);
|
|
2235
|
+
return contents;
|
|
2236
|
+
};
|
|
2237
|
+
export const de_RevokeUserAccessCommand = async (output, context) => {
|
|
2238
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2239
|
+
return de_CommandError(output, context);
|
|
2240
|
+
}
|
|
2241
|
+
const contents = map({
|
|
2242
|
+
$metadata: deserializeMetadata(output),
|
|
2243
|
+
});
|
|
2244
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2245
|
+
const doc = take(data, {
|
|
2246
|
+
'status': __expectString,
|
|
2247
|
+
});
|
|
2248
|
+
Object.assign(contents, doc);
|
|
2249
|
+
return contents;
|
|
2250
|
+
};
|
|
2251
|
+
export const de_SendAdminLinkOtpCommand = async (output, context) => {
|
|
2252
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2253
|
+
return de_CommandError(output, context);
|
|
2254
|
+
}
|
|
2255
|
+
const contents = map({
|
|
2256
|
+
$metadata: deserializeMetadata(output),
|
|
2257
|
+
});
|
|
2258
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2259
|
+
const doc = take(data, {
|
|
2260
|
+
'maskedPhone': __expectString,
|
|
2261
|
+
'status': __expectString,
|
|
1104
2262
|
});
|
|
1105
2263
|
Object.assign(contents, doc);
|
|
1106
2264
|
return contents;
|
|
1107
2265
|
};
|
|
1108
|
-
export const
|
|
2266
|
+
export const de_SetAccountStateCommand = async (output, context) => {
|
|
1109
2267
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1110
2268
|
return de_CommandError(output, context);
|
|
1111
2269
|
}
|
|
@@ -1114,14 +2272,14 @@ export const de_CreateMediaUploadUrlCommand = async (output, context) => {
|
|
|
1114
2272
|
});
|
|
1115
2273
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1116
2274
|
const doc = take(data, {
|
|
1117
|
-
'
|
|
1118
|
-
'
|
|
1119
|
-
'
|
|
2275
|
+
'state': __expectString,
|
|
2276
|
+
'until': __expectLong,
|
|
2277
|
+
'version': __expectInt32,
|
|
1120
2278
|
});
|
|
1121
2279
|
Object.assign(contents, doc);
|
|
1122
2280
|
return contents;
|
|
1123
2281
|
};
|
|
1124
|
-
export const
|
|
2282
|
+
export const de_SetPreservationHoldCommand = async (output, context) => {
|
|
1125
2283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1126
2284
|
return de_CommandError(output, context);
|
|
1127
2285
|
}
|
|
@@ -1130,12 +2288,15 @@ export const de_DeleteMatchMessagesCommand = async (output, context) => {
|
|
|
1130
2288
|
});
|
|
1131
2289
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1132
2290
|
const doc = take(data, {
|
|
1133
|
-
'
|
|
2291
|
+
'active': __expectBoolean,
|
|
2292
|
+
'reasonCode': __expectString,
|
|
2293
|
+
'until': __expectLong,
|
|
2294
|
+
'version': __expectInt32,
|
|
1134
2295
|
});
|
|
1135
2296
|
Object.assign(contents, doc);
|
|
1136
2297
|
return contents;
|
|
1137
2298
|
};
|
|
1138
|
-
export const
|
|
2299
|
+
export const de_UnlinkSocialCommand = async (output, context) => {
|
|
1139
2300
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1140
2301
|
return de_CommandError(output, context);
|
|
1141
2302
|
}
|
|
@@ -1144,13 +2305,12 @@ export const de_DeletePushTokenCommand = async (output, context) => {
|
|
|
1144
2305
|
});
|
|
1145
2306
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1146
2307
|
const doc = take(data, {
|
|
1147
|
-
'
|
|
1148
|
-
'deviceId': __expectString,
|
|
2308
|
+
'status': __expectString,
|
|
1149
2309
|
});
|
|
1150
2310
|
Object.assign(contents, doc);
|
|
1151
2311
|
return contents;
|
|
1152
2312
|
};
|
|
1153
|
-
export const
|
|
2313
|
+
export const de_UpdateEntitlementsCommand = async (output, context) => {
|
|
1154
2314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1155
2315
|
return de_CommandError(output, context);
|
|
1156
2316
|
}
|
|
@@ -1159,12 +2319,13 @@ export const de_GetChatSettingsCommand = async (output, context) => {
|
|
|
1159
2319
|
});
|
|
1160
2320
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1161
2321
|
const doc = take(data, {
|
|
1162
|
-
'
|
|
2322
|
+
'status': __expectString,
|
|
2323
|
+
'subscriptionTier': __expectString,
|
|
1163
2324
|
});
|
|
1164
2325
|
Object.assign(contents, doc);
|
|
1165
2326
|
return contents;
|
|
1166
2327
|
};
|
|
1167
|
-
export const
|
|
2328
|
+
export const de_UpdatePhoneNumberCommand = async (output, context) => {
|
|
1168
2329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1169
2330
|
return de_CommandError(output, context);
|
|
1170
2331
|
}
|
|
@@ -1173,14 +2334,13 @@ export const de_GetParticipantRegistryCommand = async (output, context) => {
|
|
|
1173
2334
|
});
|
|
1174
2335
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1175
2336
|
const doc = take(data, {
|
|
1176
|
-
'
|
|
1177
|
-
'
|
|
1178
|
-
'userId': __expectString,
|
|
2337
|
+
'phoneNumber': __expectString,
|
|
2338
|
+
'status': __expectString,
|
|
1179
2339
|
});
|
|
1180
2340
|
Object.assign(contents, doc);
|
|
1181
2341
|
return contents;
|
|
1182
2342
|
};
|
|
1183
|
-
export const
|
|
2343
|
+
export const de_UpdateUsernameCommand = async (output, context) => {
|
|
1184
2344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1185
2345
|
return de_CommandError(output, context);
|
|
1186
2346
|
}
|
|
@@ -1189,13 +2349,13 @@ export const de_ListMyDevicesCommand = async (output, context) => {
|
|
|
1189
2349
|
});
|
|
1190
2350
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1191
2351
|
const doc = take(data, {
|
|
1192
|
-
'
|
|
1193
|
-
'
|
|
2352
|
+
'status': __expectString,
|
|
2353
|
+
'username': __expectString,
|
|
1194
2354
|
});
|
|
1195
2355
|
Object.assign(contents, doc);
|
|
1196
2356
|
return contents;
|
|
1197
2357
|
};
|
|
1198
|
-
export const
|
|
2358
|
+
export const de_ValidateInviteCommand = async (output, context) => {
|
|
1199
2359
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1200
2360
|
return de_CommandError(output, context);
|
|
1201
2361
|
}
|
|
@@ -1204,14 +2364,15 @@ export const de_RegisterDeviceCommand = async (output, context) => {
|
|
|
1204
2364
|
});
|
|
1205
2365
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1206
2366
|
const doc = take(data, {
|
|
1207
|
-
'
|
|
1208
|
-
'
|
|
1209
|
-
'
|
|
2367
|
+
'maxUses': __expectInt32,
|
|
2368
|
+
'referrerId': __expectString,
|
|
2369
|
+
'status': __expectString,
|
|
2370
|
+
'usedCount': __expectInt32,
|
|
1210
2371
|
});
|
|
1211
2372
|
Object.assign(contents, doc);
|
|
1212
2373
|
return contents;
|
|
1213
2374
|
};
|
|
1214
|
-
export const
|
|
2375
|
+
export const de_VerifyAdminLinkOtpCommand = async (output, context) => {
|
|
1215
2376
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1216
2377
|
return de_CommandError(output, context);
|
|
1217
2378
|
}
|
|
@@ -1220,13 +2381,14 @@ export const de_RegisterPushTokenCommand = async (output, context) => {
|
|
|
1220
2381
|
});
|
|
1221
2382
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1222
2383
|
const doc = take(data, {
|
|
1223
|
-
'
|
|
1224
|
-
'
|
|
2384
|
+
'userId': __expectString,
|
|
2385
|
+
'username': __expectString,
|
|
2386
|
+
'verified': __expectBoolean,
|
|
1225
2387
|
});
|
|
1226
2388
|
Object.assign(contents, doc);
|
|
1227
2389
|
return contents;
|
|
1228
2390
|
};
|
|
1229
|
-
export const
|
|
2391
|
+
export const de_GetScoringPolicyCommand = async (output, context) => {
|
|
1230
2392
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1231
2393
|
return de_CommandError(output, context);
|
|
1232
2394
|
}
|
|
@@ -1235,13 +2397,13 @@ export const de_RevokeDeviceCommand = async (output, context) => {
|
|
|
1235
2397
|
});
|
|
1236
2398
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1237
2399
|
const doc = take(data, {
|
|
1238
|
-
'
|
|
1239
|
-
'
|
|
2400
|
+
'metadata': _ => de_ParameterMetadataMap(_, context),
|
|
2401
|
+
'policy': _ => de_ScoringPolicyConfig(_, context),
|
|
1240
2402
|
});
|
|
1241
2403
|
Object.assign(contents, doc);
|
|
1242
2404
|
return contents;
|
|
1243
2405
|
};
|
|
1244
|
-
export const
|
|
2406
|
+
export const de_SimulateScoringPolicyCommand = async (output, context) => {
|
|
1245
2407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1246
2408
|
return de_CommandError(output, context);
|
|
1247
2409
|
}
|
|
@@ -1250,12 +2412,16 @@ export const de_UpdateChatSettingsCommand = async (output, context) => {
|
|
|
1250
2412
|
});
|
|
1251
2413
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1252
2414
|
const doc = take(data, {
|
|
1253
|
-
'
|
|
2415
|
+
'baselineScore': __limitedParseDouble,
|
|
2416
|
+
'breakdown': _ => de_ScoreBreakdown(_, context),
|
|
2417
|
+
'delta': __limitedParseDouble,
|
|
2418
|
+
'scenario': _json,
|
|
2419
|
+
'simulatedScore': __limitedParseDouble,
|
|
1254
2420
|
});
|
|
1255
2421
|
Object.assign(contents, doc);
|
|
1256
2422
|
return contents;
|
|
1257
2423
|
};
|
|
1258
|
-
export const
|
|
2424
|
+
export const de_UpdateScoringPolicyCommand = async (output, context) => {
|
|
1259
2425
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1260
2426
|
return de_CommandError(output, context);
|
|
1261
2427
|
}
|
|
@@ -1264,14 +2430,14 @@ export const de_AuthSocialCommand = async (output, context) => {
|
|
|
1264
2430
|
});
|
|
1265
2431
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1266
2432
|
const doc = take(data, {
|
|
1267
|
-
'
|
|
2433
|
+
'policy': _ => de_ScoringPolicyConfig(_, context),
|
|
1268
2434
|
'status': __expectString,
|
|
1269
|
-
'
|
|
2435
|
+
'version': __expectString,
|
|
1270
2436
|
});
|
|
1271
2437
|
Object.assign(contents, doc);
|
|
1272
2438
|
return contents;
|
|
1273
2439
|
};
|
|
1274
|
-
export const
|
|
2440
|
+
export const de_DiscoverCommand = async (output, context) => {
|
|
1275
2441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1276
2442
|
return de_CommandError(output, context);
|
|
1277
2443
|
}
|
|
@@ -1280,14 +2446,17 @@ export const de_CreateAdminInviteCommand = async (output, context) => {
|
|
|
1280
2446
|
});
|
|
1281
2447
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1282
2448
|
const doc = take(data, {
|
|
1283
|
-
'
|
|
1284
|
-
'
|
|
1285
|
-
'
|
|
2449
|
+
'algorithm': __expectString,
|
|
2450
|
+
'availableCategories': _json,
|
|
2451
|
+
'candidates': _ => de_CandidateList(_, context),
|
|
2452
|
+
'category': __expectString,
|
|
2453
|
+
'count': __expectInt32,
|
|
2454
|
+
'viewPass': __expectString,
|
|
1286
2455
|
});
|
|
1287
2456
|
Object.assign(contents, doc);
|
|
1288
2457
|
return contents;
|
|
1289
2458
|
};
|
|
1290
|
-
export const
|
|
2459
|
+
export const de_GetPartnerDistanceCommand = async (output, context) => {
|
|
1291
2460
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1292
2461
|
return de_CommandError(output, context);
|
|
1293
2462
|
}
|
|
@@ -1296,14 +2465,13 @@ export const de_GenerateInviteCommand = async (output, context) => {
|
|
|
1296
2465
|
});
|
|
1297
2466
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1298
2467
|
const doc = take(data, {
|
|
1299
|
-
'
|
|
1300
|
-
'
|
|
1301
|
-
'maxUses': __expectInt32,
|
|
2468
|
+
'available': __expectBoolean,
|
|
2469
|
+
'distanceKm': __limitedParseDouble,
|
|
1302
2470
|
});
|
|
1303
2471
|
Object.assign(contents, doc);
|
|
1304
2472
|
return contents;
|
|
1305
2473
|
};
|
|
1306
|
-
export const
|
|
2474
|
+
export const de_GetPreferencesCommand = async (output, context) => {
|
|
1307
2475
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
2476
|
return de_CommandError(output, context);
|
|
1309
2477
|
}
|
|
@@ -1312,15 +2480,44 @@ export const de_GetAccountStateCommand = async (output, context) => {
|
|
|
1312
2480
|
});
|
|
1313
2481
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1314
2482
|
const doc = take(data, {
|
|
1315
|
-
'
|
|
1316
|
-
'
|
|
1317
|
-
'
|
|
1318
|
-
'
|
|
2483
|
+
'cannabis': __expectString,
|
|
2484
|
+
'currentSuggestion': _json,
|
|
2485
|
+
'dealbreakers': _json,
|
|
2486
|
+
'discoverable': __expectBoolean,
|
|
2487
|
+
'distanceUnit': __expectString,
|
|
2488
|
+
'drinking': __expectString,
|
|
2489
|
+
'drugs': __expectString,
|
|
2490
|
+
'educationLevel': __expectString,
|
|
2491
|
+
'exercise': __expectString,
|
|
2492
|
+
'familyPlans': __expectString,
|
|
2493
|
+
'hidePastHooks': __expectBoolean,
|
|
2494
|
+
'implicitPreferences': _json,
|
|
2495
|
+
'incognito': __expectBoolean,
|
|
2496
|
+
'interestedInGenders': _json,
|
|
2497
|
+
'interests': _json,
|
|
2498
|
+
'maxAge': __expectInt32,
|
|
2499
|
+
'maxDistanceKm': __expectInt32,
|
|
2500
|
+
'maxHeight': __expectInt32,
|
|
2501
|
+
'minAge': __expectInt32,
|
|
2502
|
+
'minHeight': __expectInt32,
|
|
2503
|
+
'politicalView': __expectString,
|
|
2504
|
+
'preferredLanguages': _json,
|
|
2505
|
+
'recentlyActiveDays': __expectInt32,
|
|
2506
|
+
'relationshipType': __expectString,
|
|
2507
|
+
'religion': __expectString,
|
|
2508
|
+
'requireBio': __expectBoolean,
|
|
2509
|
+
'requirePhoto': __expectBoolean,
|
|
2510
|
+
'requireRecentlyActive': __expectBoolean,
|
|
2511
|
+
'smoking': __expectString,
|
|
2512
|
+
'starSigns': _json,
|
|
2513
|
+
'userId': __expectString,
|
|
2514
|
+
'verifiedOnly': __expectBoolean,
|
|
2515
|
+
'wantsKids': __expectString,
|
|
1319
2516
|
});
|
|
1320
2517
|
Object.assign(contents, doc);
|
|
1321
2518
|
return contents;
|
|
1322
2519
|
};
|
|
1323
|
-
export const
|
|
2520
|
+
export const de_GetReceivedLikesCommand = async (output, context) => {
|
|
1324
2521
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1325
2522
|
return de_CommandError(output, context);
|
|
1326
2523
|
}
|
|
@@ -1329,12 +2526,14 @@ export const de_GetAdminPhoneStatusCommand = async (output, context) => {
|
|
|
1329
2526
|
});
|
|
1330
2527
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1331
2528
|
const doc = take(data, {
|
|
1332
|
-
'
|
|
2529
|
+
'count': __expectInt32,
|
|
2530
|
+
'likes': _json,
|
|
2531
|
+
'viewPass': __expectString,
|
|
1333
2532
|
});
|
|
1334
2533
|
Object.assign(contents, doc);
|
|
1335
2534
|
return contents;
|
|
1336
2535
|
};
|
|
1337
|
-
export const
|
|
2536
|
+
export const de_GetRosesCommand = async (output, context) => {
|
|
1338
2537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1339
2538
|
return de_CommandError(output, context);
|
|
1340
2539
|
}
|
|
@@ -1343,13 +2542,14 @@ export const de_GetCredentialReadinessCommand = async (output, context) => {
|
|
|
1343
2542
|
});
|
|
1344
2543
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1345
2544
|
const doc = take(data, {
|
|
1346
|
-
'
|
|
1347
|
-
'
|
|
2545
|
+
'limit': __expectInt32,
|
|
2546
|
+
'remaining': __expectInt32,
|
|
2547
|
+
'resetsAt': __expectString,
|
|
1348
2548
|
});
|
|
1349
2549
|
Object.assign(contents, doc);
|
|
1350
2550
|
return contents;
|
|
1351
2551
|
};
|
|
1352
|
-
export const
|
|
2552
|
+
export const de_GetSuggestionsCommand = async (output, context) => {
|
|
1353
2553
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1354
2554
|
return de_CommandError(output, context);
|
|
1355
2555
|
}
|
|
@@ -1358,19 +2558,13 @@ export const de_GetPreservationHoldCommand = async (output, context) => {
|
|
|
1358
2558
|
});
|
|
1359
2559
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1360
2560
|
const doc = take(data, {
|
|
1361
|
-
'
|
|
1362
|
-
'
|
|
1363
|
-
'childSafetySince': __expectLong,
|
|
1364
|
-
'reasonCode': __expectString,
|
|
1365
|
-
'setAt': __expectLong,
|
|
1366
|
-
'setBy': __expectString,
|
|
1367
|
-
'until': __expectLong,
|
|
1368
|
-
'version': __expectInt32,
|
|
2561
|
+
'oneHook': _json,
|
|
2562
|
+
'own': _json,
|
|
1369
2563
|
});
|
|
1370
2564
|
Object.assign(contents, doc);
|
|
1371
2565
|
return contents;
|
|
1372
2566
|
};
|
|
1373
|
-
export const
|
|
2567
|
+
export const de_GetTraditionPreferencesCommand = async (output, context) => {
|
|
1374
2568
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1375
2569
|
return de_CommandError(output, context);
|
|
1376
2570
|
}
|
|
@@ -1379,21 +2573,12 @@ export const de_GetUserCommand = async (output, context) => {
|
|
|
1379
2573
|
});
|
|
1380
2574
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1381
2575
|
const doc = take(data, {
|
|
1382
|
-
'
|
|
1383
|
-
'appleId': __expectString,
|
|
1384
|
-
'displayName': __expectString,
|
|
1385
|
-
'email': __expectString,
|
|
1386
|
-
'googleEmail': __expectString,
|
|
1387
|
-
'googleId': __expectString,
|
|
1388
|
-
'phoneNumber': __expectString,
|
|
1389
|
-
'userId': __expectString,
|
|
1390
|
-
'userState': __expectString,
|
|
1391
|
-
'username': __expectString,
|
|
2576
|
+
'traditions': _json,
|
|
1392
2577
|
});
|
|
1393
2578
|
Object.assign(contents, doc);
|
|
1394
2579
|
return contents;
|
|
1395
2580
|
};
|
|
1396
|
-
export const
|
|
2581
|
+
export const de_IndexLocationCommand = async (output, context) => {
|
|
1397
2582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1398
2583
|
return de_CommandError(output, context);
|
|
1399
2584
|
}
|
|
@@ -1402,21 +2587,12 @@ export const de_GetUserByEmailCommand = async (output, context) => {
|
|
|
1402
2587
|
});
|
|
1403
2588
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1404
2589
|
const doc = take(data, {
|
|
1405
|
-
'
|
|
1406
|
-
'appleId': __expectString,
|
|
1407
|
-
'displayName': __expectString,
|
|
1408
|
-
'email': __expectString,
|
|
1409
|
-
'googleEmail': __expectString,
|
|
1410
|
-
'googleId': __expectString,
|
|
1411
|
-
'phoneNumber': __expectString,
|
|
1412
|
-
'userId': __expectString,
|
|
1413
|
-
'userState': __expectString,
|
|
1414
|
-
'username': __expectString,
|
|
2590
|
+
'status': __expectString,
|
|
1415
2591
|
});
|
|
1416
2592
|
Object.assign(contents, doc);
|
|
1417
2593
|
return contents;
|
|
1418
2594
|
};
|
|
1419
|
-
export const
|
|
2595
|
+
export const de_IssueViewPassesCommand = async (output, context) => {
|
|
1420
2596
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1421
2597
|
return de_CommandError(output, context);
|
|
1422
2598
|
}
|
|
@@ -1425,13 +2601,14 @@ export const de_GetUserIdByUsernameCommand = async (output, context) => {
|
|
|
1425
2601
|
});
|
|
1426
2602
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1427
2603
|
const doc = take(data, {
|
|
1428
|
-
'
|
|
2604
|
+
'targetIds': _json,
|
|
2605
|
+
'viewPass': __expectString,
|
|
1429
2606
|
});
|
|
1430
2607
|
Object.assign(contents, doc);
|
|
1431
2608
|
return contents;
|
|
1432
2609
|
};
|
|
1433
|
-
export const
|
|
1434
|
-
if (output.statusCode !==
|
|
2610
|
+
export const de_RecordSuggestionCommand = async (output, context) => {
|
|
2611
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1435
2612
|
return de_CommandError(output, context);
|
|
1436
2613
|
}
|
|
1437
2614
|
const contents = map({
|
|
@@ -1439,13 +2616,13 @@ export const de_LinkEmailCommand = async (output, context) => {
|
|
|
1439
2616
|
});
|
|
1440
2617
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1441
2618
|
const doc = take(data, {
|
|
1442
|
-
'
|
|
2619
|
+
'suggestionId': __expectString,
|
|
1443
2620
|
});
|
|
1444
2621
|
Object.assign(contents, doc);
|
|
1445
2622
|
return contents;
|
|
1446
2623
|
};
|
|
1447
|
-
export const
|
|
1448
|
-
if (output.statusCode !==
|
|
2624
|
+
export const de_RecordSuggestionInternalCommand = async (output, context) => {
|
|
2625
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1449
2626
|
return de_CommandError(output, context);
|
|
1450
2627
|
}
|
|
1451
2628
|
const contents = map({
|
|
@@ -1453,12 +2630,12 @@ export const de_LinkSocialCommand = async (output, context) => {
|
|
|
1453
2630
|
});
|
|
1454
2631
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1455
2632
|
const doc = take(data, {
|
|
1456
|
-
'
|
|
2633
|
+
'suggestionId': __expectString,
|
|
1457
2634
|
});
|
|
1458
2635
|
Object.assign(contents, doc);
|
|
1459
2636
|
return contents;
|
|
1460
2637
|
};
|
|
1461
|
-
export const
|
|
2638
|
+
export const de_RemoveLocationCommand = async (output, context) => {
|
|
1462
2639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1463
2640
|
return de_CommandError(output, context);
|
|
1464
2641
|
}
|
|
@@ -1468,40 +2645,31 @@ export const de_RegisterPhoneCommand = async (output, context) => {
|
|
|
1468
2645
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1469
2646
|
const doc = take(data, {
|
|
1470
2647
|
'status': __expectString,
|
|
1471
|
-
'userId': __expectString,
|
|
1472
2648
|
});
|
|
1473
2649
|
Object.assign(contents, doc);
|
|
1474
2650
|
return contents;
|
|
1475
2651
|
};
|
|
1476
|
-
export const
|
|
1477
|
-
if (output.statusCode !==
|
|
2652
|
+
export const de_RemoveOneHookSuggestionCommand = async (output, context) => {
|
|
2653
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1478
2654
|
return de_CommandError(output, context);
|
|
1479
2655
|
}
|
|
1480
2656
|
const contents = map({
|
|
1481
2657
|
$metadata: deserializeMetadata(output),
|
|
1482
2658
|
});
|
|
1483
|
-
|
|
1484
|
-
const doc = take(data, {
|
|
1485
|
-
'status': __expectString,
|
|
1486
|
-
});
|
|
1487
|
-
Object.assign(contents, doc);
|
|
2659
|
+
await collectBody(output.body, context);
|
|
1488
2660
|
return contents;
|
|
1489
2661
|
};
|
|
1490
|
-
export const
|
|
1491
|
-
if (output.statusCode !==
|
|
2662
|
+
export const de_RemoveSuggestionCommand = async (output, context) => {
|
|
2663
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1492
2664
|
return de_CommandError(output, context);
|
|
1493
2665
|
}
|
|
1494
2666
|
const contents = map({
|
|
1495
2667
|
$metadata: deserializeMetadata(output),
|
|
1496
2668
|
});
|
|
1497
|
-
|
|
1498
|
-
const doc = take(data, {
|
|
1499
|
-
'status': __expectString,
|
|
1500
|
-
});
|
|
1501
|
-
Object.assign(contents, doc);
|
|
2669
|
+
await collectBody(output.body, context);
|
|
1502
2670
|
return contents;
|
|
1503
2671
|
};
|
|
1504
|
-
export const
|
|
2672
|
+
export const de_SwipeCommand = async (output, context) => {
|
|
1505
2673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1506
2674
|
return de_CommandError(output, context);
|
|
1507
2675
|
}
|
|
@@ -1510,12 +2678,14 @@ export const de_RequestPhoneUpdateOtpCommand = async (output, context) => {
|
|
|
1510
2678
|
});
|
|
1511
2679
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1512
2680
|
const doc = take(data, {
|
|
2681
|
+
'matchId': __expectString,
|
|
2682
|
+
'matched': __expectBoolean,
|
|
1513
2683
|
'status': __expectString,
|
|
1514
2684
|
});
|
|
1515
2685
|
Object.assign(contents, doc);
|
|
1516
2686
|
return contents;
|
|
1517
2687
|
};
|
|
1518
|
-
export const
|
|
2688
|
+
export const de_UpdatePreferencesCommand = async (output, context) => {
|
|
1519
2689
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1520
2690
|
return de_CommandError(output, context);
|
|
1521
2691
|
}
|
|
@@ -1524,12 +2694,44 @@ export const de_RevokeUserAccessCommand = async (output, context) => {
|
|
|
1524
2694
|
});
|
|
1525
2695
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1526
2696
|
const doc = take(data, {
|
|
1527
|
-
'
|
|
2697
|
+
'cannabis': __expectString,
|
|
2698
|
+
'currentSuggestion': _json,
|
|
2699
|
+
'dealbreakers': _json,
|
|
2700
|
+
'discoverable': __expectBoolean,
|
|
2701
|
+
'distanceUnit': __expectString,
|
|
2702
|
+
'drinking': __expectString,
|
|
2703
|
+
'drugs': __expectString,
|
|
2704
|
+
'educationLevel': __expectString,
|
|
2705
|
+
'exercise': __expectString,
|
|
2706
|
+
'familyPlans': __expectString,
|
|
2707
|
+
'hidePastHooks': __expectBoolean,
|
|
2708
|
+
'implicitPreferences': _json,
|
|
2709
|
+
'incognito': __expectBoolean,
|
|
2710
|
+
'interestedInGenders': _json,
|
|
2711
|
+
'interests': _json,
|
|
2712
|
+
'maxAge': __expectInt32,
|
|
2713
|
+
'maxDistanceKm': __expectInt32,
|
|
2714
|
+
'maxHeight': __expectInt32,
|
|
2715
|
+
'minAge': __expectInt32,
|
|
2716
|
+
'minHeight': __expectInt32,
|
|
2717
|
+
'politicalView': __expectString,
|
|
2718
|
+
'preferredLanguages': _json,
|
|
2719
|
+
'recentlyActiveDays': __expectInt32,
|
|
2720
|
+
'relationshipType': __expectString,
|
|
2721
|
+
'religion': __expectString,
|
|
2722
|
+
'requireBio': __expectBoolean,
|
|
2723
|
+
'requirePhoto': __expectBoolean,
|
|
2724
|
+
'requireRecentlyActive': __expectBoolean,
|
|
2725
|
+
'smoking': __expectString,
|
|
2726
|
+
'starSigns': _json,
|
|
2727
|
+
'userId': __expectString,
|
|
2728
|
+
'verifiedOnly': __expectBoolean,
|
|
2729
|
+
'wantsKids': __expectString,
|
|
1528
2730
|
});
|
|
1529
2731
|
Object.assign(contents, doc);
|
|
1530
2732
|
return contents;
|
|
1531
2733
|
};
|
|
1532
|
-
export const
|
|
2734
|
+
export const de_UpdateTraditionPreferencesCommand = async (output, context) => {
|
|
1533
2735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1534
2736
|
return de_CommandError(output, context);
|
|
1535
2737
|
}
|
|
@@ -1538,13 +2740,12 @@ export const de_SendAdminLinkOtpCommand = async (output, context) => {
|
|
|
1538
2740
|
});
|
|
1539
2741
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1540
2742
|
const doc = take(data, {
|
|
1541
|
-
'
|
|
1542
|
-
'status': __expectString,
|
|
2743
|
+
'traditions': _json,
|
|
1543
2744
|
});
|
|
1544
2745
|
Object.assign(contents, doc);
|
|
1545
2746
|
return contents;
|
|
1546
2747
|
};
|
|
1547
|
-
export const
|
|
2748
|
+
export const de_CompleteLivenessSessionCommand = async (output, context) => {
|
|
1548
2749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1549
2750
|
return de_CommandError(output, context);
|
|
1550
2751
|
}
|
|
@@ -1553,14 +2754,12 @@ export const de_SetAccountStateCommand = async (output, context) => {
|
|
|
1553
2754
|
});
|
|
1554
2755
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1555
2756
|
const doc = take(data, {
|
|
1556
|
-
'
|
|
1557
|
-
'until': __expectLong,
|
|
1558
|
-
'version': __expectInt32,
|
|
2757
|
+
'status': __expectString,
|
|
1559
2758
|
});
|
|
1560
2759
|
Object.assign(contents, doc);
|
|
1561
2760
|
return contents;
|
|
1562
2761
|
};
|
|
1563
|
-
export const
|
|
2762
|
+
export const de_CorrectBirthDateCommand = async (output, context) => {
|
|
1564
2763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1565
2764
|
return de_CommandError(output, context);
|
|
1566
2765
|
}
|
|
@@ -1568,16 +2767,17 @@ export const de_SetPreservationHoldCommand = async (output, context) => {
|
|
|
1568
2767
|
$metadata: deserializeMetadata(output),
|
|
1569
2768
|
});
|
|
1570
2769
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1571
|
-
const doc = take(data, {
|
|
1572
|
-
'
|
|
1573
|
-
'
|
|
1574
|
-
'
|
|
1575
|
-
'
|
|
2770
|
+
const doc = take(data, {
|
|
2771
|
+
'age': __expectInt32,
|
|
2772
|
+
'correctionsRemaining': __expectInt32,
|
|
2773
|
+
'correctionsUsed': __expectInt32,
|
|
2774
|
+
'date': __expectString,
|
|
2775
|
+
'userId': __expectString,
|
|
1576
2776
|
});
|
|
1577
2777
|
Object.assign(contents, doc);
|
|
1578
2778
|
return contents;
|
|
1579
2779
|
};
|
|
1580
|
-
export const
|
|
2780
|
+
export const de_CreateLivenessSessionCommand = async (output, context) => {
|
|
1581
2781
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1582
2782
|
return de_CommandError(output, context);
|
|
1583
2783
|
}
|
|
@@ -1586,13 +2786,13 @@ export const de_UnlinkSocialCommand = async (output, context) => {
|
|
|
1586
2786
|
});
|
|
1587
2787
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1588
2788
|
const doc = take(data, {
|
|
1589
|
-
'
|
|
2789
|
+
'sessionId': __expectString,
|
|
1590
2790
|
});
|
|
1591
2791
|
Object.assign(contents, doc);
|
|
1592
2792
|
return contents;
|
|
1593
2793
|
};
|
|
1594
|
-
export const
|
|
1595
|
-
if (output.statusCode !==
|
|
2794
|
+
export const de_DeleteProfileCommand = async (output, context) => {
|
|
2795
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1596
2796
|
return de_CommandError(output, context);
|
|
1597
2797
|
}
|
|
1598
2798
|
const contents = map({
|
|
@@ -1601,12 +2801,11 @@ export const de_UpdateEntitlementsCommand = async (output, context) => {
|
|
|
1601
2801
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1602
2802
|
const doc = take(data, {
|
|
1603
2803
|
'status': __expectString,
|
|
1604
|
-
'subscriptionTier': __expectString,
|
|
1605
2804
|
});
|
|
1606
2805
|
Object.assign(contents, doc);
|
|
1607
2806
|
return contents;
|
|
1608
2807
|
};
|
|
1609
|
-
export const
|
|
2808
|
+
export const de_GenerateDownloadUrlCommand = async (output, context) => {
|
|
1610
2809
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1611
2810
|
return de_CommandError(output, context);
|
|
1612
2811
|
}
|
|
@@ -1615,13 +2814,13 @@ export const de_UpdatePhoneNumberCommand = async (output, context) => {
|
|
|
1615
2814
|
});
|
|
1616
2815
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1617
2816
|
const doc = take(data, {
|
|
1618
|
-
'
|
|
1619
|
-
'
|
|
2817
|
+
'downloadUrl': __expectString,
|
|
2818
|
+
'expiresInSeconds': __expectInt32,
|
|
1620
2819
|
});
|
|
1621
2820
|
Object.assign(contents, doc);
|
|
1622
2821
|
return contents;
|
|
1623
2822
|
};
|
|
1624
|
-
export const
|
|
2823
|
+
export const de_GenerateUploadUrlCommand = async (output, context) => {
|
|
1625
2824
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1626
2825
|
return de_CommandError(output, context);
|
|
1627
2826
|
}
|
|
@@ -1630,13 +2829,14 @@ export const de_UpdateUsernameCommand = async (output, context) => {
|
|
|
1630
2829
|
});
|
|
1631
2830
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1632
2831
|
const doc = take(data, {
|
|
1633
|
-
'
|
|
1634
|
-
'
|
|
2832
|
+
'formData': _json,
|
|
2833
|
+
'objectKey': __expectString,
|
|
2834
|
+
'uploadUrl': __expectString,
|
|
1635
2835
|
});
|
|
1636
2836
|
Object.assign(contents, doc);
|
|
1637
2837
|
return contents;
|
|
1638
2838
|
};
|
|
1639
|
-
export const
|
|
2839
|
+
export const de_GetBirthDateStatusCommand = async (output, context) => {
|
|
1640
2840
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1641
2841
|
return de_CommandError(output, context);
|
|
1642
2842
|
}
|
|
@@ -1645,15 +2845,22 @@ export const de_ValidateInviteCommand = async (output, context) => {
|
|
|
1645
2845
|
});
|
|
1646
2846
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1647
2847
|
const doc = take(data, {
|
|
1648
|
-
'
|
|
1649
|
-
'
|
|
1650
|
-
'
|
|
1651
|
-
'
|
|
2848
|
+
'age': __expectInt32,
|
|
2849
|
+
'birthDateOnFile': __expectBoolean,
|
|
2850
|
+
'correctionsRemaining': __expectInt32,
|
|
2851
|
+
'correctionsUsed': __expectInt32,
|
|
2852
|
+
'date': __expectString,
|
|
2853
|
+
'lastCorrectedAt': __expectLong,
|
|
2854
|
+
'lastCorrectedBy': __expectString,
|
|
2855
|
+
'lastReason': __expectString,
|
|
2856
|
+
'lastReference': __expectString,
|
|
2857
|
+
'provisional': __expectBoolean,
|
|
2858
|
+
'userId': __expectString,
|
|
1652
2859
|
});
|
|
1653
2860
|
Object.assign(contents, doc);
|
|
1654
2861
|
return contents;
|
|
1655
2862
|
};
|
|
1656
|
-
export const
|
|
2863
|
+
export const de_GetChatProfileCommand = async (output, context) => {
|
|
1657
2864
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1658
2865
|
return de_CommandError(output, context);
|
|
1659
2866
|
}
|
|
@@ -1662,14 +2869,19 @@ export const de_VerifyAdminLinkOtpCommand = async (output, context) => {
|
|
|
1662
2869
|
});
|
|
1663
2870
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1664
2871
|
const doc = take(data, {
|
|
2872
|
+
'age': __expectInt32,
|
|
2873
|
+
'avatarKey': __expectString,
|
|
2874
|
+
'birthDateOnFile': __expectBoolean,
|
|
2875
|
+
'birthDetails': _ => de_BirthDetails(_, context),
|
|
2876
|
+
'displayName': __expectString,
|
|
2877
|
+
'fieldModerationStatus': _json,
|
|
2878
|
+
'moderationStatus': __expectString,
|
|
1665
2879
|
'userId': __expectString,
|
|
1666
|
-
'username': __expectString,
|
|
1667
|
-
'verified': __expectBoolean,
|
|
1668
2880
|
});
|
|
1669
2881
|
Object.assign(contents, doc);
|
|
1670
2882
|
return contents;
|
|
1671
2883
|
};
|
|
1672
|
-
export const
|
|
2884
|
+
export const de_GetInternalProfileCommand = async (output, context) => {
|
|
1673
2885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1674
2886
|
return de_CommandError(output, context);
|
|
1675
2887
|
}
|
|
@@ -1678,16 +2890,52 @@ export const de_DiscoverCommand = async (output, context) => {
|
|
|
1678
2890
|
});
|
|
1679
2891
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1680
2892
|
const doc = take(data, {
|
|
1681
|
-
'
|
|
1682
|
-
'
|
|
1683
|
-
'
|
|
1684
|
-
'
|
|
1685
|
-
'
|
|
2893
|
+
'age': __expectInt32,
|
|
2894
|
+
'audioPrompt': __expectString,
|
|
2895
|
+
'bio': __expectString,
|
|
2896
|
+
'birthDateOnFile': __expectBoolean,
|
|
2897
|
+
'cannabisStatus': __expectString,
|
|
2898
|
+
'causes': _json,
|
|
2899
|
+
'communities': _json,
|
|
2900
|
+
'currentLocation': __expectString,
|
|
2901
|
+
'displayName': __expectString,
|
|
2902
|
+
'drinkingStatus': __expectString,
|
|
2903
|
+
'drugsStatus': __expectString,
|
|
2904
|
+
'education': __expectString,
|
|
2905
|
+
'educationLevel': __expectString,
|
|
2906
|
+
'exercise': __expectString,
|
|
2907
|
+
'familyPlans': __expectString,
|
|
2908
|
+
'fieldModerationStatus': _json,
|
|
2909
|
+
'gender': __expectString,
|
|
2910
|
+
'height': __expectInt32,
|
|
2911
|
+
'hometown': __expectString,
|
|
2912
|
+
'interestedIn': _json,
|
|
2913
|
+
'interests': _json,
|
|
2914
|
+
'languages': _json,
|
|
2915
|
+
'matchingStatus': __expectString,
|
|
2916
|
+
'moderationStatus': __expectString,
|
|
2917
|
+
'openers': _json,
|
|
2918
|
+
'pictureTransforms': _json,
|
|
2919
|
+
'pictures': _json,
|
|
2920
|
+
'politicalView': __expectString,
|
|
2921
|
+
'prompts': _json,
|
|
2922
|
+
'qualities': _json,
|
|
2923
|
+
'relationshipType': __expectString,
|
|
2924
|
+
'religion': __expectString,
|
|
2925
|
+
'smokingStatus': __expectString,
|
|
2926
|
+
'socialLinks': _json,
|
|
2927
|
+
'starSign': __expectString,
|
|
2928
|
+
'subscriptionTier': __expectString,
|
|
2929
|
+
'userId': __expectString,
|
|
2930
|
+
'verified': __expectBoolean,
|
|
2931
|
+
'videos': _json,
|
|
2932
|
+
'wantsKids': __expectString,
|
|
2933
|
+
'work': __expectString,
|
|
1686
2934
|
});
|
|
1687
2935
|
Object.assign(contents, doc);
|
|
1688
2936
|
return contents;
|
|
1689
2937
|
};
|
|
1690
|
-
export const
|
|
2938
|
+
export const de_GetLivenessStatusCommand = async (output, context) => {
|
|
1691
2939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1692
2940
|
return de_CommandError(output, context);
|
|
1693
2941
|
}
|
|
@@ -1696,15 +2944,12 @@ export const de_GetNotificationPreferencesCommand = async (output, context) => {
|
|
|
1696
2944
|
});
|
|
1697
2945
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1698
2946
|
const doc = take(data, {
|
|
1699
|
-
'
|
|
1700
|
-
'notifyLikes': __expectBoolean,
|
|
1701
|
-
'notifyMatches': __expectBoolean,
|
|
1702
|
-
'userId': __expectString,
|
|
2947
|
+
'status': __expectString,
|
|
1703
2948
|
});
|
|
1704
2949
|
Object.assign(contents, doc);
|
|
1705
2950
|
return contents;
|
|
1706
2951
|
};
|
|
1707
|
-
export const
|
|
2952
|
+
export const de_GetMatchingProfileCommand = async (output, context) => {
|
|
1708
2953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1709
2954
|
return de_CommandError(output, context);
|
|
1710
2955
|
}
|
|
@@ -1713,45 +2958,54 @@ export const de_GetPreferencesCommand = async (output, context) => {
|
|
|
1713
2958
|
});
|
|
1714
2959
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1715
2960
|
const doc = take(data, {
|
|
1716
|
-
'
|
|
1717
|
-
'
|
|
1718
|
-
'
|
|
1719
|
-
'
|
|
1720
|
-
'
|
|
1721
|
-
'
|
|
1722
|
-
'
|
|
2961
|
+
'age': __expectInt32,
|
|
2962
|
+
'audioPrompt': __expectString,
|
|
2963
|
+
'bio': __expectString,
|
|
2964
|
+
'cannabisStatus': __expectString,
|
|
2965
|
+
'causes': _json,
|
|
2966
|
+
'communities': _json,
|
|
2967
|
+
'currentLocation': __expectString,
|
|
2968
|
+
'displayName': __expectString,
|
|
2969
|
+
'draftExpiresAt': __expectLong,
|
|
2970
|
+
'drinkingStatus': __expectString,
|
|
2971
|
+
'drugsStatus': __expectString,
|
|
2972
|
+
'education': __expectString,
|
|
1723
2973
|
'educationLevel': __expectString,
|
|
1724
2974
|
'exercise': __expectString,
|
|
1725
2975
|
'familyPlans': __expectString,
|
|
1726
|
-
'
|
|
1727
|
-
'
|
|
2976
|
+
'fieldModerationStatus': _json,
|
|
2977
|
+
'gender': __expectString,
|
|
2978
|
+
'generation': __expectLong,
|
|
2979
|
+
'height': __expectInt32,
|
|
2980
|
+
'hometown': __expectString,
|
|
2981
|
+
'interestedIn': _json,
|
|
1728
2982
|
'interests': _json,
|
|
1729
|
-
'
|
|
1730
|
-
'
|
|
1731
|
-
'
|
|
1732
|
-
'
|
|
1733
|
-
'
|
|
1734
|
-
'
|
|
1735
|
-
'notifyLikes': __expectBoolean,
|
|
1736
|
-
'notifyMatches': __expectBoolean,
|
|
2983
|
+
'languages': _json,
|
|
2984
|
+
'lastEditedAt': __expectLong,
|
|
2985
|
+
'moderationStatus': __expectString,
|
|
2986
|
+
'openers': _json,
|
|
2987
|
+
'pictureTransforms': _json,
|
|
2988
|
+
'pictures': _json,
|
|
1737
2989
|
'politicalView': __expectString,
|
|
1738
|
-
'
|
|
1739
|
-
'
|
|
2990
|
+
'prompts': _json,
|
|
2991
|
+
'qualities': _json,
|
|
1740
2992
|
'relationshipType': __expectString,
|
|
1741
2993
|
'religion': __expectString,
|
|
1742
|
-
'
|
|
1743
|
-
'
|
|
1744
|
-
'
|
|
1745
|
-
'
|
|
1746
|
-
'
|
|
2994
|
+
'smokingStatus': __expectString,
|
|
2995
|
+
'socialLinks': _json,
|
|
2996
|
+
'starSign': __expectString,
|
|
2997
|
+
'status': __expectString,
|
|
2998
|
+
'subscriptionTier': __expectString,
|
|
1747
2999
|
'userId': __expectString,
|
|
1748
|
-
'
|
|
3000
|
+
'verified': __expectBoolean,
|
|
3001
|
+
'videos': _json,
|
|
1749
3002
|
'wantsKids': __expectString,
|
|
3003
|
+
'work': __expectString,
|
|
1750
3004
|
});
|
|
1751
3005
|
Object.assign(contents, doc);
|
|
1752
3006
|
return contents;
|
|
1753
3007
|
};
|
|
1754
|
-
export const
|
|
3008
|
+
export const de_GetMatchingReadinessCommand = async (output, context) => {
|
|
1755
3009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1756
3010
|
return de_CommandError(output, context);
|
|
1757
3011
|
}
|
|
@@ -1760,13 +3014,13 @@ export const de_GetReceivedLikesCommand = async (output, context) => {
|
|
|
1760
3014
|
});
|
|
1761
3015
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1762
3016
|
const doc = take(data, {
|
|
1763
|
-
'
|
|
1764
|
-
'
|
|
3017
|
+
'gaps': _json,
|
|
3018
|
+
'ready': __expectBoolean,
|
|
1765
3019
|
});
|
|
1766
3020
|
Object.assign(contents, doc);
|
|
1767
3021
|
return contents;
|
|
1768
3022
|
};
|
|
1769
|
-
export const
|
|
3023
|
+
export const de_GetMyProfileCommand = async (output, context) => {
|
|
1770
3024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1771
3025
|
return de_CommandError(output, context);
|
|
1772
3026
|
}
|
|
@@ -1775,14 +3029,13 @@ export const de_GetRosesCommand = async (output, context) => {
|
|
|
1775
3029
|
});
|
|
1776
3030
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1777
3031
|
const doc = take(data, {
|
|
1778
|
-
'
|
|
1779
|
-
'
|
|
1780
|
-
'resetsAt': __expectString,
|
|
3032
|
+
'chat': _ => de_ChatProfile(_, context),
|
|
3033
|
+
'matching': _json,
|
|
1781
3034
|
});
|
|
1782
3035
|
Object.assign(contents, doc);
|
|
1783
3036
|
return contents;
|
|
1784
3037
|
};
|
|
1785
|
-
export const
|
|
3038
|
+
export const de_GetPlaceCommand = async (output, context) => {
|
|
1786
3039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1787
3040
|
return de_CommandError(output, context);
|
|
1788
3041
|
}
|
|
@@ -1791,14 +3044,17 @@ export const de_GetSuggestionsCommand = async (output, context) => {
|
|
|
1791
3044
|
});
|
|
1792
3045
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1793
3046
|
const doc = take(data, {
|
|
1794
|
-
'
|
|
1795
|
-
'
|
|
3047
|
+
'label': __expectString,
|
|
3048
|
+
'latitude': __limitedParseDouble,
|
|
3049
|
+
'longitude': __limitedParseDouble,
|
|
3050
|
+
'placeId': __expectString,
|
|
3051
|
+
'timeZone': __expectString,
|
|
1796
3052
|
});
|
|
1797
3053
|
Object.assign(contents, doc);
|
|
1798
3054
|
return contents;
|
|
1799
3055
|
};
|
|
1800
|
-
export const
|
|
1801
|
-
if (output.statusCode !==
|
|
3056
|
+
export const de_RepublishMatchingProfileCommand = async (output, context) => {
|
|
3057
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1802
3058
|
return de_CommandError(output, context);
|
|
1803
3059
|
}
|
|
1804
3060
|
const contents = map({
|
|
@@ -1806,12 +3062,13 @@ export const de_GetTraditionPreferencesCommand = async (output, context) => {
|
|
|
1806
3062
|
});
|
|
1807
3063
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1808
3064
|
const doc = take(data, {
|
|
1809
|
-
'
|
|
3065
|
+
'generation': __expectLong,
|
|
3066
|
+
'status': __expectString,
|
|
1810
3067
|
});
|
|
1811
3068
|
Object.assign(contents, doc);
|
|
1812
3069
|
return contents;
|
|
1813
3070
|
};
|
|
1814
|
-
export const
|
|
3071
|
+
export const de_SearchPlacesCommand = async (output, context) => {
|
|
1815
3072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1816
3073
|
return de_CommandError(output, context);
|
|
1817
3074
|
}
|
|
@@ -1820,13 +3077,13 @@ export const de_IndexLocationCommand = async (output, context) => {
|
|
|
1820
3077
|
});
|
|
1821
3078
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1822
3079
|
const doc = take(data, {
|
|
1823
|
-
'
|
|
3080
|
+
'places': _json,
|
|
1824
3081
|
});
|
|
1825
3082
|
Object.assign(contents, doc);
|
|
1826
3083
|
return contents;
|
|
1827
3084
|
};
|
|
1828
|
-
export const
|
|
1829
|
-
if (output.statusCode !==
|
|
3085
|
+
export const de_UpsertChatProfileCommand = async (output, context) => {
|
|
3086
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1830
3087
|
return de_CommandError(output, context);
|
|
1831
3088
|
}
|
|
1832
3089
|
const contents = map({
|
|
@@ -1834,12 +3091,12 @@ export const de_RecordSuggestionCommand = async (output, context) => {
|
|
|
1834
3091
|
});
|
|
1835
3092
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1836
3093
|
const doc = take(data, {
|
|
1837
|
-
'
|
|
3094
|
+
'status': __expectString,
|
|
1838
3095
|
});
|
|
1839
3096
|
Object.assign(contents, doc);
|
|
1840
3097
|
return contents;
|
|
1841
3098
|
};
|
|
1842
|
-
export const
|
|
3099
|
+
export const de_UpsertMatchingProfileCommand = async (output, context) => {
|
|
1843
3100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1844
3101
|
return de_CommandError(output, context);
|
|
1845
3102
|
}
|
|
@@ -1848,32 +3105,47 @@ export const de_RemoveLocationCommand = async (output, context) => {
|
|
|
1848
3105
|
});
|
|
1849
3106
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1850
3107
|
const doc = take(data, {
|
|
3108
|
+
'draftExpiresAt': __expectLong,
|
|
3109
|
+
'lastEditedAt': __expectLong,
|
|
1851
3110
|
'status': __expectString,
|
|
1852
3111
|
});
|
|
1853
3112
|
Object.assign(contents, doc);
|
|
1854
3113
|
return contents;
|
|
1855
3114
|
};
|
|
1856
|
-
export const
|
|
1857
|
-
if (output.statusCode !==
|
|
3115
|
+
export const de_AcceptHookRequestCommand = async (output, context) => {
|
|
3116
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1858
3117
|
return de_CommandError(output, context);
|
|
1859
3118
|
}
|
|
1860
3119
|
const contents = map({
|
|
1861
3120
|
$metadata: deserializeMetadata(output),
|
|
1862
3121
|
});
|
|
1863
|
-
await
|
|
3122
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
3123
|
+
const doc = take(data, {
|
|
3124
|
+
'matchId': __expectString,
|
|
3125
|
+
'peerId': __expectString,
|
|
3126
|
+
});
|
|
3127
|
+
Object.assign(contents, doc);
|
|
1864
3128
|
return contents;
|
|
1865
3129
|
};
|
|
1866
|
-
export const
|
|
1867
|
-
if (output.statusCode !==
|
|
3130
|
+
export const de_BlockUserCommand = async (output, context) => {
|
|
3131
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1868
3132
|
return de_CommandError(output, context);
|
|
1869
3133
|
}
|
|
1870
3134
|
const contents = map({
|
|
1871
3135
|
$metadata: deserializeMetadata(output),
|
|
1872
3136
|
});
|
|
1873
|
-
await
|
|
3137
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
3138
|
+
const doc = take(data, {
|
|
3139
|
+
'blockedUserId': __expectString,
|
|
3140
|
+
'createdAt': __expectLong,
|
|
3141
|
+
'details': __expectString,
|
|
3142
|
+
'displayName': __expectString,
|
|
3143
|
+
'reason': __expectString,
|
|
3144
|
+
});
|
|
3145
|
+
Object.assign(contents, doc);
|
|
1874
3146
|
return contents;
|
|
1875
3147
|
};
|
|
1876
|
-
export const
|
|
3148
|
+
export const de_CancelHookRequestCommand = async (output, context) => {
|
|
1877
3149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1878
3150
|
return de_CommandError(output, context);
|
|
1879
3151
|
}
|
|
@@ -1882,14 +3154,12 @@ export const de_SwipeCommand = async (output, context) => {
|
|
|
1882
3154
|
});
|
|
1883
3155
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1884
3156
|
const doc = take(data, {
|
|
1885
|
-
'matchId': __expectString,
|
|
1886
|
-
'matched': __expectBoolean,
|
|
1887
3157
|
'status': __expectString,
|
|
1888
3158
|
});
|
|
1889
3159
|
Object.assign(contents, doc);
|
|
1890
3160
|
return contents;
|
|
1891
3161
|
};
|
|
1892
|
-
export const
|
|
3162
|
+
export const de_ClearTierOverrideCommand = async (output, context) => {
|
|
1893
3163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1894
3164
|
return de_CommandError(output, context);
|
|
1895
3165
|
}
|
|
@@ -1898,12 +3168,22 @@ export const de_SwipeByUsernameCommand = async (output, context) => {
|
|
|
1898
3168
|
});
|
|
1899
3169
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1900
3170
|
const doc = take(data, {
|
|
1901
|
-
'
|
|
3171
|
+
'billingTier': __expectString,
|
|
3172
|
+
'effectiveTier': __expectString,
|
|
3173
|
+
'maxConnections': __expectInt32,
|
|
3174
|
+
'overrideActive': __expectBoolean,
|
|
3175
|
+
'overrideExpiresAt': __expectLong,
|
|
3176
|
+
'overrideHistory': _json,
|
|
3177
|
+
'overrideReason': __expectString,
|
|
3178
|
+
'overrideSetAt': __expectLong,
|
|
3179
|
+
'overrideSetBy': __expectString,
|
|
3180
|
+
'overrideTier': __expectString,
|
|
3181
|
+
'userId': __expectString,
|
|
1902
3182
|
});
|
|
1903
3183
|
Object.assign(contents, doc);
|
|
1904
3184
|
return contents;
|
|
1905
3185
|
};
|
|
1906
|
-
export const
|
|
3186
|
+
export const de_CompleteOnboardingCommand = async (output, context) => {
|
|
1907
3187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1908
3188
|
return de_CommandError(output, context);
|
|
1909
3189
|
}
|
|
@@ -1917,7 +3197,7 @@ export const de_UpdatePreferencesCommand = async (output, context) => {
|
|
|
1917
3197
|
Object.assign(contents, doc);
|
|
1918
3198
|
return contents;
|
|
1919
3199
|
};
|
|
1920
|
-
export const
|
|
3200
|
+
export const de_DeclineHookRequestCommand = async (output, context) => {
|
|
1921
3201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1922
3202
|
return de_CommandError(output, context);
|
|
1923
3203
|
}
|
|
@@ -1926,12 +3206,27 @@ export const de_UpdateTraditionPreferencesCommand = async (output, context) => {
|
|
|
1926
3206
|
});
|
|
1927
3207
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1928
3208
|
const doc = take(data, {
|
|
1929
|
-
'
|
|
3209
|
+
'status': __expectString,
|
|
1930
3210
|
});
|
|
1931
3211
|
Object.assign(contents, doc);
|
|
1932
3212
|
return contents;
|
|
1933
3213
|
};
|
|
1934
|
-
export const
|
|
3214
|
+
export const de_DisableMatchingCommand = async (output, context) => {
|
|
3215
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3216
|
+
return de_CommandError(output, context);
|
|
3217
|
+
}
|
|
3218
|
+
const contents = map({
|
|
3219
|
+
$metadata: deserializeMetadata(output),
|
|
3220
|
+
});
|
|
3221
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
3222
|
+
const doc = take(data, {
|
|
3223
|
+
'generation': __expectLong,
|
|
3224
|
+
'status': __expectString,
|
|
3225
|
+
});
|
|
3226
|
+
Object.assign(contents, doc);
|
|
3227
|
+
return contents;
|
|
3228
|
+
};
|
|
3229
|
+
export const de_EnableMatchingCommand = async (output, context) => {
|
|
1935
3230
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1936
3231
|
return de_CommandError(output, context);
|
|
1937
3232
|
}
|
|
@@ -1940,12 +3235,13 @@ export const de_CompleteLivenessSessionCommand = async (output, context) => {
|
|
|
1940
3235
|
});
|
|
1941
3236
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1942
3237
|
const doc = take(data, {
|
|
3238
|
+
'generation': __expectLong,
|
|
1943
3239
|
'status': __expectString,
|
|
1944
3240
|
});
|
|
1945
3241
|
Object.assign(contents, doc);
|
|
1946
3242
|
return contents;
|
|
1947
3243
|
};
|
|
1948
|
-
export const
|
|
3244
|
+
export const de_GetDiscoverySnapshotCommand = async (output, context) => {
|
|
1949
3245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1950
3246
|
return de_CommandError(output, context);
|
|
1951
3247
|
}
|
|
@@ -1954,16 +3250,18 @@ export const de_CorrectBirthDateCommand = async (output, context) => {
|
|
|
1954
3250
|
});
|
|
1955
3251
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1956
3252
|
const doc = take(data, {
|
|
1957
|
-
'
|
|
1958
|
-
'
|
|
1959
|
-
'
|
|
1960
|
-
'
|
|
3253
|
+
'blocks': _json,
|
|
3254
|
+
'currentHooks': _json,
|
|
3255
|
+
'discoveryPaused': __expectBoolean,
|
|
3256
|
+
'matching': _json,
|
|
3257
|
+
'pastHooks': _json,
|
|
3258
|
+
'stateVersion': __expectLong,
|
|
1961
3259
|
'userId': __expectString,
|
|
1962
3260
|
});
|
|
1963
3261
|
Object.assign(contents, doc);
|
|
1964
3262
|
return contents;
|
|
1965
3263
|
};
|
|
1966
|
-
export const
|
|
3264
|
+
export const de_GetInternalMatchingStatusCommand = async (output, context) => {
|
|
1967
3265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1968
3266
|
return de_CommandError(output, context);
|
|
1969
3267
|
}
|
|
@@ -1972,12 +3270,14 @@ export const de_CreateLivenessSessionCommand = async (output, context) => {
|
|
|
1972
3270
|
});
|
|
1973
3271
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1974
3272
|
const doc = take(data, {
|
|
1975
|
-
'
|
|
3273
|
+
'generation': __expectLong,
|
|
3274
|
+
'status': __expectString,
|
|
3275
|
+
'userId': __expectString,
|
|
1976
3276
|
});
|
|
1977
3277
|
Object.assign(contents, doc);
|
|
1978
3278
|
return contents;
|
|
1979
3279
|
};
|
|
1980
|
-
export const
|
|
3280
|
+
export const de_GetMatchCommand = async (output, context) => {
|
|
1981
3281
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1982
3282
|
return de_CommandError(output, context);
|
|
1983
3283
|
}
|
|
@@ -1986,12 +3286,24 @@ export const de_DeleteProfileCommand = async (output, context) => {
|
|
|
1986
3286
|
});
|
|
1987
3287
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1988
3288
|
const doc = take(data, {
|
|
3289
|
+
'createdAt': __expectLong,
|
|
3290
|
+
'endReason': __expectString,
|
|
3291
|
+
'endedAt': __expectLong,
|
|
3292
|
+
'endedBy': __expectString,
|
|
3293
|
+
'latestMessageSenderId': __expectString,
|
|
3294
|
+
'latestMessageTimestamp': __expectLong,
|
|
3295
|
+
'matchId': __expectString,
|
|
3296
|
+
'origin': __expectString,
|
|
1989
3297
|
'status': __expectString,
|
|
3298
|
+
'suspended': __expectBoolean,
|
|
3299
|
+
'updatedAt': __expectLong,
|
|
3300
|
+
'userA': __expectString,
|
|
3301
|
+
'userB': __expectString,
|
|
1990
3302
|
});
|
|
1991
3303
|
Object.assign(contents, doc);
|
|
1992
3304
|
return contents;
|
|
1993
3305
|
};
|
|
1994
|
-
export const
|
|
3306
|
+
export const de_GetModerationReportCommand = async (output, context) => {
|
|
1995
3307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1996
3308
|
return de_CommandError(output, context);
|
|
1997
3309
|
}
|
|
@@ -1999,14 +3311,23 @@ export const de_GenerateDownloadUrlCommand = async (output, context) => {
|
|
|
1999
3311
|
$metadata: deserializeMetadata(output),
|
|
2000
3312
|
});
|
|
2001
3313
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2002
|
-
const doc = take(data, {
|
|
2003
|
-
'
|
|
2004
|
-
'
|
|
3314
|
+
const doc = take(data, {
|
|
3315
|
+
'alsoBlocked': __expectBoolean,
|
|
3316
|
+
'category': __expectString,
|
|
3317
|
+
'conversationId': __expectString,
|
|
3318
|
+
'createdAt': __expectString,
|
|
3319
|
+
'details': __expectString,
|
|
3320
|
+
'evidenceOffered': __expectBoolean,
|
|
3321
|
+
'reportId': __expectString,
|
|
3322
|
+
'reportedUserId': __expectString,
|
|
3323
|
+
'reporterUserId': __expectString,
|
|
3324
|
+
'severity': __expectString,
|
|
3325
|
+
'source': __expectString,
|
|
2005
3326
|
});
|
|
2006
3327
|
Object.assign(contents, doc);
|
|
2007
3328
|
return contents;
|
|
2008
3329
|
};
|
|
2009
|
-
export const
|
|
3330
|
+
export const de_GetModerationSignalsCommand = async (output, context) => {
|
|
2010
3331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2011
3332
|
return de_CommandError(output, context);
|
|
2012
3333
|
}
|
|
@@ -2015,14 +3336,17 @@ export const de_GenerateUploadUrlCommand = async (output, context) => {
|
|
|
2015
3336
|
});
|
|
2016
3337
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2017
3338
|
const doc = take(data, {
|
|
2018
|
-
'
|
|
2019
|
-
'
|
|
2020
|
-
'
|
|
3339
|
+
'accountAgeDays': __expectLong,
|
|
3340
|
+
'blocksReceived': _json,
|
|
3341
|
+
'conversations': _json,
|
|
3342
|
+
'reciprocalReports': __expectLong,
|
|
3343
|
+
'reportsFiled': _json,
|
|
3344
|
+
'reportsReceived': _json,
|
|
2021
3345
|
});
|
|
2022
3346
|
Object.assign(contents, doc);
|
|
2023
3347
|
return contents;
|
|
2024
3348
|
};
|
|
2025
|
-
export const
|
|
3349
|
+
export const de_GetStateCommand = async (output, context) => {
|
|
2026
3350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2027
3351
|
return de_CommandError(output, context);
|
|
2028
3352
|
}
|
|
@@ -2031,22 +3355,24 @@ export const de_GetBirthDateStatusCommand = async (output, context) => {
|
|
|
2031
3355
|
});
|
|
2032
3356
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2033
3357
|
const doc = take(data, {
|
|
2034
|
-
'
|
|
2035
|
-
'
|
|
2036
|
-
'
|
|
2037
|
-
'
|
|
2038
|
-
'
|
|
2039
|
-
'
|
|
2040
|
-
'
|
|
2041
|
-
'
|
|
2042
|
-
'
|
|
2043
|
-
'
|
|
3358
|
+
'activeConnections': __expectInt32,
|
|
3359
|
+
'chatViewPass': __expectString,
|
|
3360
|
+
'discoveryPaused': __expectBoolean,
|
|
3361
|
+
'effectiveCapacity': __expectInt32,
|
|
3362
|
+
'hooks': _json,
|
|
3363
|
+
'keepLimit': __expectInt32,
|
|
3364
|
+
'matchIds': _json,
|
|
3365
|
+
'matching': _json,
|
|
3366
|
+
'selectionDeadline': __expectLong,
|
|
3367
|
+
'selectionRequired': __expectBoolean,
|
|
3368
|
+
'state': __expectString,
|
|
3369
|
+
'subscriptionTier': __expectString,
|
|
2044
3370
|
'userId': __expectString,
|
|
2045
3371
|
});
|
|
2046
3372
|
Object.assign(contents, doc);
|
|
2047
3373
|
return contents;
|
|
2048
3374
|
};
|
|
2049
|
-
export const
|
|
3375
|
+
export const de_GetTierOverrideCommand = async (output, context) => {
|
|
2050
3376
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2051
3377
|
return de_CommandError(output, context);
|
|
2052
3378
|
}
|
|
@@ -2055,13 +3381,23 @@ export const de_GetLivenessStatusCommand = async (output, context) => {
|
|
|
2055
3381
|
});
|
|
2056
3382
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2057
3383
|
const doc = take(data, {
|
|
2058
|
-
'
|
|
3384
|
+
'billingTier': __expectString,
|
|
3385
|
+
'effectiveTier': __expectString,
|
|
3386
|
+
'maxConnections': __expectInt32,
|
|
3387
|
+
'overrideActive': __expectBoolean,
|
|
3388
|
+
'overrideExpiresAt': __expectLong,
|
|
3389
|
+
'overrideHistory': _json,
|
|
3390
|
+
'overrideReason': __expectString,
|
|
3391
|
+
'overrideSetAt': __expectLong,
|
|
3392
|
+
'overrideSetBy': __expectString,
|
|
3393
|
+
'overrideTier': __expectString,
|
|
3394
|
+
'userId': __expectString,
|
|
2059
3395
|
});
|
|
2060
3396
|
Object.assign(contents, doc);
|
|
2061
3397
|
return contents;
|
|
2062
3398
|
};
|
|
2063
|
-
export const
|
|
2064
|
-
if (output.statusCode !==
|
|
3399
|
+
export const de_InitUserCommand = async (output, context) => {
|
|
3400
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2065
3401
|
return de_CommandError(output, context);
|
|
2066
3402
|
}
|
|
2067
3403
|
const contents = map({
|
|
@@ -2069,52 +3405,12 @@ export const de_GetMyProfileCommand = async (output, context) => {
|
|
|
2069
3405
|
});
|
|
2070
3406
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2071
3407
|
const doc = take(data, {
|
|
2072
|
-
'
|
|
2073
|
-
'audioPrompt': __expectString,
|
|
2074
|
-
'bio': __expectString,
|
|
2075
|
-
'birthDateOnFile': __expectBoolean,
|
|
2076
|
-
'birthDetails': _ => de_BirthDetails(_, context),
|
|
2077
|
-
'cannabisStatus': __expectString,
|
|
2078
|
-
'causes': _json,
|
|
2079
|
-
'communities': _json,
|
|
2080
|
-
'currentLocation': __expectString,
|
|
2081
|
-
'displayName': __expectString,
|
|
2082
|
-
'drinkingStatus': __expectString,
|
|
2083
|
-
'drugsStatus': __expectString,
|
|
2084
|
-
'education': __expectString,
|
|
2085
|
-
'educationLevel': __expectString,
|
|
2086
|
-
'exercise': __expectString,
|
|
2087
|
-
'familyPlans': __expectString,
|
|
2088
|
-
'fieldModerationStatus': _json,
|
|
2089
|
-
'gender': __expectString,
|
|
2090
|
-
'height': __expectInt32,
|
|
2091
|
-
'hometown': __expectString,
|
|
2092
|
-
'interestedIn': _json,
|
|
2093
|
-
'interests': _json,
|
|
2094
|
-
'languages': _json,
|
|
2095
|
-
'moderationStatus': __expectString,
|
|
2096
|
-
'openers': _json,
|
|
2097
|
-
'pictureTransforms': _json,
|
|
2098
|
-
'pictures': _json,
|
|
2099
|
-
'politicalView': __expectString,
|
|
2100
|
-
'prompts': _json,
|
|
2101
|
-
'qualities': _json,
|
|
2102
|
-
'relationshipType': __expectString,
|
|
2103
|
-
'religion': __expectString,
|
|
2104
|
-
'smokingStatus': __expectString,
|
|
2105
|
-
'socialLinks': _json,
|
|
2106
|
-
'starSign': __expectString,
|
|
2107
|
-
'subscriptionTier': __expectString,
|
|
2108
|
-
'userId': __expectString,
|
|
2109
|
-
'verified': __expectBoolean,
|
|
2110
|
-
'videos': _json,
|
|
2111
|
-
'wantsKids': __expectString,
|
|
2112
|
-
'work': __expectString,
|
|
3408
|
+
'status': __expectString,
|
|
2113
3409
|
});
|
|
2114
3410
|
Object.assign(contents, doc);
|
|
2115
3411
|
return contents;
|
|
2116
3412
|
};
|
|
2117
|
-
export const
|
|
3413
|
+
export const de_KeepHooksCommand = async (output, context) => {
|
|
2118
3414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2119
3415
|
return de_CommandError(output, context);
|
|
2120
3416
|
}
|
|
@@ -2123,16 +3419,24 @@ export const de_GetPlaceCommand = async (output, context) => {
|
|
|
2123
3419
|
});
|
|
2124
3420
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2125
3421
|
const doc = take(data, {
|
|
2126
|
-
'
|
|
2127
|
-
'
|
|
2128
|
-
'
|
|
2129
|
-
'
|
|
2130
|
-
'
|
|
3422
|
+
'activeConnections': __expectInt32,
|
|
3423
|
+
'chatViewPass': __expectString,
|
|
3424
|
+
'discoveryPaused': __expectBoolean,
|
|
3425
|
+
'effectiveCapacity': __expectInt32,
|
|
3426
|
+
'hooks': _json,
|
|
3427
|
+
'keepLimit': __expectInt32,
|
|
3428
|
+
'matchIds': _json,
|
|
3429
|
+
'matching': _json,
|
|
3430
|
+
'selectionDeadline': __expectLong,
|
|
3431
|
+
'selectionRequired': __expectBoolean,
|
|
3432
|
+
'state': __expectString,
|
|
3433
|
+
'subscriptionTier': __expectString,
|
|
3434
|
+
'userId': __expectString,
|
|
2131
3435
|
});
|
|
2132
3436
|
Object.assign(contents, doc);
|
|
2133
3437
|
return contents;
|
|
2134
3438
|
};
|
|
2135
|
-
export const
|
|
3439
|
+
export const de_ListBlocksCommand = async (output, context) => {
|
|
2136
3440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2137
3441
|
return de_CommandError(output, context);
|
|
2138
3442
|
}
|
|
@@ -2141,52 +3445,12 @@ export const de_GetProfileCommand = async (output, context) => {
|
|
|
2141
3445
|
});
|
|
2142
3446
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2143
3447
|
const doc = take(data, {
|
|
2144
|
-
'
|
|
2145
|
-
'audioPrompt': __expectString,
|
|
2146
|
-
'bio': __expectString,
|
|
2147
|
-
'birthDateOnFile': __expectBoolean,
|
|
2148
|
-
'birthDetails': _ => de_BirthDetails(_, context),
|
|
2149
|
-
'cannabisStatus': __expectString,
|
|
2150
|
-
'causes': _json,
|
|
2151
|
-
'communities': _json,
|
|
2152
|
-
'currentLocation': __expectString,
|
|
2153
|
-
'displayName': __expectString,
|
|
2154
|
-
'drinkingStatus': __expectString,
|
|
2155
|
-
'drugsStatus': __expectString,
|
|
2156
|
-
'education': __expectString,
|
|
2157
|
-
'educationLevel': __expectString,
|
|
2158
|
-
'exercise': __expectString,
|
|
2159
|
-
'familyPlans': __expectString,
|
|
2160
|
-
'fieldModerationStatus': _json,
|
|
2161
|
-
'gender': __expectString,
|
|
2162
|
-
'height': __expectInt32,
|
|
2163
|
-
'hometown': __expectString,
|
|
2164
|
-
'interestedIn': _json,
|
|
2165
|
-
'interests': _json,
|
|
2166
|
-
'languages': _json,
|
|
2167
|
-
'moderationStatus': __expectString,
|
|
2168
|
-
'openers': _json,
|
|
2169
|
-
'pictureTransforms': _json,
|
|
2170
|
-
'pictures': _json,
|
|
2171
|
-
'politicalView': __expectString,
|
|
2172
|
-
'prompts': _json,
|
|
2173
|
-
'qualities': _json,
|
|
2174
|
-
'relationshipType': __expectString,
|
|
2175
|
-
'religion': __expectString,
|
|
2176
|
-
'smokingStatus': __expectString,
|
|
2177
|
-
'socialLinks': _json,
|
|
2178
|
-
'starSign': __expectString,
|
|
2179
|
-
'subscriptionTier': __expectString,
|
|
2180
|
-
'userId': __expectString,
|
|
2181
|
-
'verified': __expectBoolean,
|
|
2182
|
-
'videos': _json,
|
|
2183
|
-
'wantsKids': __expectString,
|
|
2184
|
-
'work': __expectString,
|
|
3448
|
+
'blocks': _json,
|
|
2185
3449
|
});
|
|
2186
3450
|
Object.assign(contents, doc);
|
|
2187
3451
|
return contents;
|
|
2188
3452
|
};
|
|
2189
|
-
export const
|
|
3453
|
+
export const de_ListHookRequestsCommand = async (output, context) => {
|
|
2190
3454
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2191
3455
|
return de_CommandError(output, context);
|
|
2192
3456
|
}
|
|
@@ -2195,12 +3459,14 @@ export const de_SearchPlacesCommand = async (output, context) => {
|
|
|
2195
3459
|
});
|
|
2196
3460
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2197
3461
|
const doc = take(data, {
|
|
2198
|
-
'
|
|
3462
|
+
'chatViewPass': __expectString,
|
|
3463
|
+
'direction': __expectString,
|
|
3464
|
+
'requests': _json,
|
|
2199
3465
|
});
|
|
2200
3466
|
Object.assign(contents, doc);
|
|
2201
3467
|
return contents;
|
|
2202
3468
|
};
|
|
2203
|
-
export const
|
|
3469
|
+
export const de_ListMatchingOnMembersCommand = async (output, context) => {
|
|
2204
3470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2205
3471
|
return de_CommandError(output, context);
|
|
2206
3472
|
}
|
|
@@ -2209,13 +3475,14 @@ export const de_UpdateProfileCommand = async (output, context) => {
|
|
|
2209
3475
|
});
|
|
2210
3476
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2211
3477
|
const doc = take(data, {
|
|
2212
|
-
'
|
|
3478
|
+
'members': _json,
|
|
3479
|
+
'nextToken': __expectString,
|
|
2213
3480
|
});
|
|
2214
3481
|
Object.assign(contents, doc);
|
|
2215
3482
|
return contents;
|
|
2216
3483
|
};
|
|
2217
|
-
export const
|
|
2218
|
-
if (output.statusCode !==
|
|
3484
|
+
export const de_ReportMemberCommand = async (output, context) => {
|
|
3485
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2219
3486
|
return de_CommandError(output, context);
|
|
2220
3487
|
}
|
|
2221
3488
|
const contents = map({
|
|
@@ -2223,12 +3490,14 @@ export const de_CompleteOnboardingCommand = async (output, context) => {
|
|
|
2223
3490
|
});
|
|
2224
3491
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2225
3492
|
const doc = take(data, {
|
|
2226
|
-
'
|
|
3493
|
+
'evidenceAllowed': __expectBoolean,
|
|
3494
|
+
'reportId': __expectString,
|
|
3495
|
+
'severity': __expectString,
|
|
2227
3496
|
});
|
|
2228
3497
|
Object.assign(contents, doc);
|
|
2229
3498
|
return contents;
|
|
2230
3499
|
};
|
|
2231
|
-
export const
|
|
3500
|
+
export const de_SendHookRequestCommand = async (output, context) => {
|
|
2232
3501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2233
3502
|
return de_CommandError(output, context);
|
|
2234
3503
|
}
|
|
@@ -2237,22 +3506,12 @@ export const de_GetMatchCommand = async (output, context) => {
|
|
|
2237
3506
|
});
|
|
2238
3507
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2239
3508
|
const doc = take(data, {
|
|
2240
|
-
'createdAt': __expectLong,
|
|
2241
|
-
'endReason': __expectString,
|
|
2242
|
-
'endedAt': __expectLong,
|
|
2243
|
-
'endedBy': __expectString,
|
|
2244
|
-
'latestMessageSenderId': __expectString,
|
|
2245
|
-
'latestMessageTimestamp': __expectLong,
|
|
2246
|
-
'matchId': __expectString,
|
|
2247
3509
|
'status': __expectString,
|
|
2248
|
-
'updatedAt': __expectLong,
|
|
2249
|
-
'userA': __expectString,
|
|
2250
|
-
'userB': __expectString,
|
|
2251
3510
|
});
|
|
2252
3511
|
Object.assign(contents, doc);
|
|
2253
3512
|
return contents;
|
|
2254
3513
|
};
|
|
2255
|
-
export const
|
|
3514
|
+
export const de_SetTierOverrideCommand = async (output, context) => {
|
|
2256
3515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2257
3516
|
return de_CommandError(output, context);
|
|
2258
3517
|
}
|
|
@@ -2261,16 +3520,22 @@ export const de_GetStateCommand = async (output, context) => {
|
|
|
2261
3520
|
});
|
|
2262
3521
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2263
3522
|
const doc = take(data, {
|
|
2264
|
-
'
|
|
2265
|
-
'
|
|
2266
|
-
'
|
|
2267
|
-
'
|
|
3523
|
+
'billingTier': __expectString,
|
|
3524
|
+
'effectiveTier': __expectString,
|
|
3525
|
+
'maxConnections': __expectInt32,
|
|
3526
|
+
'overrideActive': __expectBoolean,
|
|
3527
|
+
'overrideExpiresAt': __expectLong,
|
|
3528
|
+
'overrideHistory': _json,
|
|
3529
|
+
'overrideReason': __expectString,
|
|
3530
|
+
'overrideSetAt': __expectLong,
|
|
3531
|
+
'overrideSetBy': __expectString,
|
|
3532
|
+
'overrideTier': __expectString,
|
|
2268
3533
|
'userId': __expectString,
|
|
2269
3534
|
});
|
|
2270
3535
|
Object.assign(contents, doc);
|
|
2271
3536
|
return contents;
|
|
2272
3537
|
};
|
|
2273
|
-
export const
|
|
3538
|
+
export const de_UnblockUserCommand = async (output, context) => {
|
|
2274
3539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2275
3540
|
return de_CommandError(output, context);
|
|
2276
3541
|
}
|
|
@@ -2308,7 +3573,15 @@ export const de_UpgradeUserCommand = async (output, context) => {
|
|
|
2308
3573
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
2309
3574
|
const doc = take(data, {
|
|
2310
3575
|
'activeConnections': __expectInt32,
|
|
3576
|
+
'chatViewPass': __expectString,
|
|
3577
|
+
'discoveryPaused': __expectBoolean,
|
|
3578
|
+
'effectiveCapacity': __expectInt32,
|
|
3579
|
+
'hooks': _json,
|
|
3580
|
+
'keepLimit': __expectInt32,
|
|
2311
3581
|
'matchIds': _json,
|
|
3582
|
+
'matching': _json,
|
|
3583
|
+
'selectionDeadline': __expectLong,
|
|
3584
|
+
'selectionRequired': __expectBoolean,
|
|
2312
3585
|
'state': __expectString,
|
|
2313
3586
|
'subscriptionTier': __expectString,
|
|
2314
3587
|
'userId': __expectString,
|
|
@@ -2323,24 +3596,39 @@ const de_CommandError = async (output, context) => {
|
|
|
2323
3596
|
};
|
|
2324
3597
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
3598
|
switch (errorCode) {
|
|
3599
|
+
case "BadGatewayError":
|
|
3600
|
+
case "club.onehook.common#BadGatewayError":
|
|
3601
|
+
throw await de_BadGatewayErrorRes(parsedOutput, context);
|
|
2326
3602
|
case "BadRequestError":
|
|
2327
3603
|
case "club.onehook.identity#BadRequestError":
|
|
2328
3604
|
throw await de_BadRequestErrorRes(parsedOutput, context);
|
|
3605
|
+
case "ForbiddenError":
|
|
3606
|
+
case "club.onehook.chat#ForbiddenError":
|
|
3607
|
+
throw await de_ForbiddenErrorRes(parsedOutput, context);
|
|
2329
3608
|
case "InternalServerError":
|
|
2330
3609
|
case "club.onehook.identity#InternalServerError":
|
|
2331
3610
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2332
3611
|
case "NotFoundError":
|
|
2333
3612
|
case "club.onehook.identity#NotFoundError":
|
|
2334
3613
|
throw await de_NotFoundErrorRes(parsedOutput, context);
|
|
2335
|
-
case "
|
|
2336
|
-
case "club.onehook.
|
|
2337
|
-
throw await
|
|
2338
|
-
case "
|
|
2339
|
-
case "club.onehook.
|
|
2340
|
-
throw await
|
|
3614
|
+
case "ServiceUnavailableError":
|
|
3615
|
+
case "club.onehook.common#ServiceUnavailableError":
|
|
3616
|
+
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
3617
|
+
case "TooManyRequestsError":
|
|
3618
|
+
case "club.onehook.state#TooManyRequestsError":
|
|
3619
|
+
throw await de_TooManyRequestsErrorRes(parsedOutput, context);
|
|
3620
|
+
case "UnauthorizedError":
|
|
3621
|
+
case "club.onehook.common#UnauthorizedError":
|
|
3622
|
+
throw await de_UnauthorizedErrorRes(parsedOutput, context);
|
|
2341
3623
|
case "ConflictError":
|
|
2342
3624
|
case "club.onehook.identity#ConflictError":
|
|
2343
3625
|
throw await de_ConflictErrorRes(parsedOutput, context);
|
|
3626
|
+
case "DeviceLimitError":
|
|
3627
|
+
case "club.onehook.chat#DeviceLimitError":
|
|
3628
|
+
throw await de_DeviceLimitErrorRes(parsedOutput, context);
|
|
3629
|
+
case "EnableMatchingConflictError":
|
|
3630
|
+
case "club.onehook.state#EnableMatchingConflictError":
|
|
3631
|
+
throw await de_EnableMatchingConflictErrorRes(parsedOutput, context);
|
|
2344
3632
|
default:
|
|
2345
3633
|
const parsedBody = parsedOutput.body;
|
|
2346
3634
|
return throwDefaultError({
|
|
@@ -2355,7 +3643,10 @@ const de_DeviceLimitErrorRes = async (parsedOutput, context) => {
|
|
|
2355
3643
|
const contents = map({});
|
|
2356
3644
|
const data = parsedOutput.body;
|
|
2357
3645
|
const doc = take(data, {
|
|
3646
|
+
'code': __expectString,
|
|
2358
3647
|
'error': __expectString,
|
|
3648
|
+
'retryable': __expectBoolean,
|
|
3649
|
+
'traceId': __expectString,
|
|
2359
3650
|
});
|
|
2360
3651
|
Object.assign(contents, doc);
|
|
2361
3652
|
const exception = new DeviceLimitError({
|
|
@@ -2368,7 +3659,10 @@ const de_ForbiddenErrorRes = async (parsedOutput, context) => {
|
|
|
2368
3659
|
const contents = map({});
|
|
2369
3660
|
const data = parsedOutput.body;
|
|
2370
3661
|
const doc = take(data, {
|
|
3662
|
+
'code': __expectString,
|
|
2371
3663
|
'error': __expectString,
|
|
3664
|
+
'retryable': __expectBoolean,
|
|
3665
|
+
'traceId': __expectString,
|
|
2372
3666
|
});
|
|
2373
3667
|
Object.assign(contents, doc);
|
|
2374
3668
|
const exception = new ForbiddenError({
|
|
@@ -2377,11 +3671,62 @@ const de_ForbiddenErrorRes = async (parsedOutput, context) => {
|
|
|
2377
3671
|
});
|
|
2378
3672
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2379
3673
|
};
|
|
3674
|
+
const de_BadGatewayErrorRes = async (parsedOutput, context) => {
|
|
3675
|
+
const contents = map({});
|
|
3676
|
+
const data = parsedOutput.body;
|
|
3677
|
+
const doc = take(data, {
|
|
3678
|
+
'code': __expectString,
|
|
3679
|
+
'error': __expectString,
|
|
3680
|
+
'retryable': __expectBoolean,
|
|
3681
|
+
'traceId': __expectString,
|
|
3682
|
+
});
|
|
3683
|
+
Object.assign(contents, doc);
|
|
3684
|
+
const exception = new BadGatewayError({
|
|
3685
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3686
|
+
...contents
|
|
3687
|
+
});
|
|
3688
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3689
|
+
};
|
|
3690
|
+
const de_ServiceUnavailableErrorRes = async (parsedOutput, context) => {
|
|
3691
|
+
const contents = map({});
|
|
3692
|
+
const data = parsedOutput.body;
|
|
3693
|
+
const doc = take(data, {
|
|
3694
|
+
'code': __expectString,
|
|
3695
|
+
'error': __expectString,
|
|
3696
|
+
'retryable': __expectBoolean,
|
|
3697
|
+
'traceId': __expectString,
|
|
3698
|
+
});
|
|
3699
|
+
Object.assign(contents, doc);
|
|
3700
|
+
const exception = new ServiceUnavailableError({
|
|
3701
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3702
|
+
...contents
|
|
3703
|
+
});
|
|
3704
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3705
|
+
};
|
|
3706
|
+
const de_UnauthorizedErrorRes = async (parsedOutput, context) => {
|
|
3707
|
+
const contents = map({});
|
|
3708
|
+
const data = parsedOutput.body;
|
|
3709
|
+
const doc = take(data, {
|
|
3710
|
+
'code': __expectString,
|
|
3711
|
+
'error': __expectString,
|
|
3712
|
+
'retryable': __expectBoolean,
|
|
3713
|
+
'traceId': __expectString,
|
|
3714
|
+
});
|
|
3715
|
+
Object.assign(contents, doc);
|
|
3716
|
+
const exception = new UnauthorizedError({
|
|
3717
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3718
|
+
...contents
|
|
3719
|
+
});
|
|
3720
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3721
|
+
};
|
|
2380
3722
|
const de_BadRequestErrorRes = async (parsedOutput, context) => {
|
|
2381
3723
|
const contents = map({});
|
|
2382
3724
|
const data = parsedOutput.body;
|
|
2383
3725
|
const doc = take(data, {
|
|
3726
|
+
'code': __expectString,
|
|
2384
3727
|
'error': __expectString,
|
|
3728
|
+
'retryable': __expectBoolean,
|
|
3729
|
+
'traceId': __expectString,
|
|
2385
3730
|
});
|
|
2386
3731
|
Object.assign(contents, doc);
|
|
2387
3732
|
const exception = new BadRequestError({
|
|
@@ -2394,7 +3739,10 @@ const de_ConflictErrorRes = async (parsedOutput, context) => {
|
|
|
2394
3739
|
const contents = map({});
|
|
2395
3740
|
const data = parsedOutput.body;
|
|
2396
3741
|
const doc = take(data, {
|
|
3742
|
+
'code': __expectString,
|
|
2397
3743
|
'error': __expectString,
|
|
3744
|
+
'retryable': __expectBoolean,
|
|
3745
|
+
'traceId': __expectString,
|
|
2398
3746
|
});
|
|
2399
3747
|
Object.assign(contents, doc);
|
|
2400
3748
|
const exception = new ConflictError({
|
|
@@ -2407,7 +3755,10 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
|
2407
3755
|
const contents = map({});
|
|
2408
3756
|
const data = parsedOutput.body;
|
|
2409
3757
|
const doc = take(data, {
|
|
3758
|
+
'code': __expectString,
|
|
2410
3759
|
'error': __expectString,
|
|
3760
|
+
'retryable': __expectBoolean,
|
|
3761
|
+
'traceId': __expectString,
|
|
2411
3762
|
});
|
|
2412
3763
|
Object.assign(contents, doc);
|
|
2413
3764
|
const exception = new InternalServerError({
|
|
@@ -2420,7 +3771,10 @@ const de_NotFoundErrorRes = async (parsedOutput, context) => {
|
|
|
2420
3771
|
const contents = map({});
|
|
2421
3772
|
const data = parsedOutput.body;
|
|
2422
3773
|
const doc = take(data, {
|
|
3774
|
+
'code': __expectString,
|
|
2423
3775
|
'error': __expectString,
|
|
3776
|
+
'retryable': __expectBoolean,
|
|
3777
|
+
'traceId': __expectString,
|
|
2424
3778
|
});
|
|
2425
3779
|
Object.assign(contents, doc);
|
|
2426
3780
|
const exception = new NotFoundError({
|
|
@@ -2429,6 +3783,110 @@ const de_NotFoundErrorRes = async (parsedOutput, context) => {
|
|
|
2429
3783
|
});
|
|
2430
3784
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2431
3785
|
};
|
|
3786
|
+
const de_EnableMatchingConflictErrorRes = async (parsedOutput, context) => {
|
|
3787
|
+
const contents = map({});
|
|
3788
|
+
const data = parsedOutput.body;
|
|
3789
|
+
const doc = take(data, {
|
|
3790
|
+
'code': __expectString,
|
|
3791
|
+
'error': __expectString,
|
|
3792
|
+
'gaps': _json,
|
|
3793
|
+
'retryable': __expectBoolean,
|
|
3794
|
+
'traceId': __expectString,
|
|
3795
|
+
});
|
|
3796
|
+
Object.assign(contents, doc);
|
|
3797
|
+
const exception = new EnableMatchingConflictError({
|
|
3798
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3799
|
+
...contents
|
|
3800
|
+
});
|
|
3801
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3802
|
+
};
|
|
3803
|
+
const de_TooManyRequestsErrorRes = async (parsedOutput, context) => {
|
|
3804
|
+
const contents = map({});
|
|
3805
|
+
const data = parsedOutput.body;
|
|
3806
|
+
const doc = take(data, {
|
|
3807
|
+
'code': __expectString,
|
|
3808
|
+
'error': __expectString,
|
|
3809
|
+
'retryable': __expectBoolean,
|
|
3810
|
+
'traceId': __expectString,
|
|
3811
|
+
});
|
|
3812
|
+
Object.assign(contents, doc);
|
|
3813
|
+
const exception = new TooManyRequestsError({
|
|
3814
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3815
|
+
...contents
|
|
3816
|
+
});
|
|
3817
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3818
|
+
};
|
|
3819
|
+
const se_RawSignal = (input, context) => {
|
|
3820
|
+
return take(input, {
|
|
3821
|
+
'attributes': _ => se_Document(_, context),
|
|
3822
|
+
'clientEventId': [],
|
|
3823
|
+
'timestamp': [],
|
|
3824
|
+
'type': [],
|
|
3825
|
+
});
|
|
3826
|
+
};
|
|
3827
|
+
const se_RawSignalList = (input, context) => {
|
|
3828
|
+
return input.filter((e) => e != null).map(entry => {
|
|
3829
|
+
return se_RawSignal(entry, context);
|
|
3830
|
+
});
|
|
3831
|
+
};
|
|
3832
|
+
const se_ABExperiment = (input, context) => {
|
|
3833
|
+
return take(input, {
|
|
3834
|
+
'description': [],
|
|
3835
|
+
'enabled': [],
|
|
3836
|
+
'experimentId': [],
|
|
3837
|
+
'name': [],
|
|
3838
|
+
'trafficAllocation': _json,
|
|
3839
|
+
'variants': _ => se_VariantOverrides(_, context),
|
|
3840
|
+
});
|
|
3841
|
+
};
|
|
3842
|
+
const se_ParameterOverrides = (input, context) => {
|
|
3843
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3844
|
+
if (value === null) {
|
|
3845
|
+
return acc;
|
|
3846
|
+
}
|
|
3847
|
+
acc[key] = __serializeFloat(value);
|
|
3848
|
+
return acc;
|
|
3849
|
+
}, {});
|
|
3850
|
+
};
|
|
3851
|
+
const se_ScoringParameters = (input, context) => {
|
|
3852
|
+
return take(input, {
|
|
3853
|
+
'chatInitiativeWeight': __serializeFloat,
|
|
3854
|
+
'chatReplyFastWeight': __serializeFloat,
|
|
3855
|
+
'dwellTimeBoostMax': __serializeFloat,
|
|
3856
|
+
'exposureDeficitBoost': __serializeFloat,
|
|
3857
|
+
'passWeight': __serializeFloat,
|
|
3858
|
+
'primeTimeBoostMax': __serializeFloat,
|
|
3859
|
+
'profileViewBioWeight': __serializeFloat,
|
|
3860
|
+
'profileViewPhotoWeight': __serializeFloat,
|
|
3861
|
+
'profileViewPromptsWeight': __serializeFloat,
|
|
3862
|
+
'profileViewTimeWeight': __serializeFloat,
|
|
3863
|
+
'reciprocalMatchWeight': __serializeFloat,
|
|
3864
|
+
'superLikeWeight': __serializeFloat,
|
|
3865
|
+
'swipeDeliberationCapMs': [],
|
|
3866
|
+
'swipeLikeBaseWeight': __serializeFloat,
|
|
3867
|
+
'swipeLikeDeliberationWeight': __serializeFloat,
|
|
3868
|
+
});
|
|
3869
|
+
};
|
|
3870
|
+
const se_ScoringPolicyConfig = (input, context) => {
|
|
3871
|
+
return take(input, {
|
|
3872
|
+
'activeExperiment': _ => se_ABExperiment(_, context),
|
|
3873
|
+
'changeReason': [],
|
|
3874
|
+
'expectedVersion': [],
|
|
3875
|
+
'parameters': _ => se_ScoringParameters(_, context),
|
|
3876
|
+
'updatedAt': [],
|
|
3877
|
+
'updatedBy': [],
|
|
3878
|
+
'version': [],
|
|
3879
|
+
});
|
|
3880
|
+
};
|
|
3881
|
+
const se_VariantOverrides = (input, context) => {
|
|
3882
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3883
|
+
if (value === null) {
|
|
3884
|
+
return acc;
|
|
3885
|
+
}
|
|
3886
|
+
acc[key] = se_ParameterOverrides(value, context);
|
|
3887
|
+
return acc;
|
|
3888
|
+
}, {});
|
|
3889
|
+
};
|
|
2432
3890
|
const se_BirthDetails = (input, context) => {
|
|
2433
3891
|
return take(input, {
|
|
2434
3892
|
'date': [],
|
|
@@ -2440,6 +3898,126 @@ const se_BirthDetails = (input, context) => {
|
|
|
2440
3898
|
'timeZone': [],
|
|
2441
3899
|
});
|
|
2442
3900
|
};
|
|
3901
|
+
const se_Document = (input, context) => {
|
|
3902
|
+
return input;
|
|
3903
|
+
};
|
|
3904
|
+
const de_GraphUserBehavior = (output, context) => {
|
|
3905
|
+
return take(output, {
|
|
3906
|
+
'avgReplyMs': __expectLong,
|
|
3907
|
+
'initiationRate': __limitedParseDouble,
|
|
3908
|
+
'lastActiveAt': __expectLong,
|
|
3909
|
+
'matchesInitiated': __expectInt32,
|
|
3910
|
+
'matchesMessaged': __expectInt32,
|
|
3911
|
+
'messagesPerMatchedConversation': __limitedParseDouble,
|
|
3912
|
+
'messagesSent': __expectInt32,
|
|
3913
|
+
'recentlyActive24h': __expectBoolean,
|
|
3914
|
+
'recentlyActive7d': __expectBoolean,
|
|
3915
|
+
'replyCount': __expectInt32,
|
|
3916
|
+
});
|
|
3917
|
+
};
|
|
3918
|
+
const de_InviteNode = (output, context) => {
|
|
3919
|
+
return take(output, {
|
|
3920
|
+
'children': (_) => de_InviteNodeList(_, context),
|
|
3921
|
+
'depth': __expectInt32,
|
|
3922
|
+
'invitedAt': __expectLong,
|
|
3923
|
+
'truncated': __expectBoolean,
|
|
3924
|
+
'userId': __expectString,
|
|
3925
|
+
});
|
|
3926
|
+
};
|
|
3927
|
+
const de_InviteNodeList = (output, context) => {
|
|
3928
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3929
|
+
return de_InviteNode(entry, context);
|
|
3930
|
+
});
|
|
3931
|
+
return retVal;
|
|
3932
|
+
};
|
|
3933
|
+
const de_ABExperiment = (output, context) => {
|
|
3934
|
+
return take(output, {
|
|
3935
|
+
'description': __expectString,
|
|
3936
|
+
'enabled': __expectBoolean,
|
|
3937
|
+
'experimentId': __expectString,
|
|
3938
|
+
'name': __expectString,
|
|
3939
|
+
'trafficAllocation': _json,
|
|
3940
|
+
'variants': (_) => de_VariantOverrides(_, context),
|
|
3941
|
+
});
|
|
3942
|
+
};
|
|
3943
|
+
const de_ParameterMetadata = (output, context) => {
|
|
3944
|
+
return take(output, {
|
|
3945
|
+
'defaultValue': __limitedParseDouble,
|
|
3946
|
+
'description': __expectString,
|
|
3947
|
+
'hypothesis': __expectString,
|
|
3948
|
+
'maxValue': __limitedParseDouble,
|
|
3949
|
+
'minValue': __limitedParseDouble,
|
|
3950
|
+
'name': __expectString,
|
|
3951
|
+
'tuningGuidance': __expectString,
|
|
3952
|
+
'unit': __expectString,
|
|
3953
|
+
});
|
|
3954
|
+
};
|
|
3955
|
+
const de_ParameterMetadataMap = (output, context) => {
|
|
3956
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3957
|
+
if (value === null) {
|
|
3958
|
+
return acc;
|
|
3959
|
+
}
|
|
3960
|
+
acc[key] = de_ParameterMetadata(value, context);
|
|
3961
|
+
return acc;
|
|
3962
|
+
}, {});
|
|
3963
|
+
};
|
|
3964
|
+
const de_ParameterOverrides = (output, context) => {
|
|
3965
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3966
|
+
if (value === null) {
|
|
3967
|
+
return acc;
|
|
3968
|
+
}
|
|
3969
|
+
acc[key] = __limitedParseDouble(value);
|
|
3970
|
+
return acc;
|
|
3971
|
+
}, {});
|
|
3972
|
+
};
|
|
3973
|
+
const de_ScoreBreakdown = (output, context) => {
|
|
3974
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3975
|
+
if (value === null) {
|
|
3976
|
+
return acc;
|
|
3977
|
+
}
|
|
3978
|
+
acc[key] = __limitedParseDouble(value);
|
|
3979
|
+
return acc;
|
|
3980
|
+
}, {});
|
|
3981
|
+
};
|
|
3982
|
+
const de_ScoringParameters = (output, context) => {
|
|
3983
|
+
return take(output, {
|
|
3984
|
+
'chatInitiativeWeight': __limitedParseDouble,
|
|
3985
|
+
'chatReplyFastWeight': __limitedParseDouble,
|
|
3986
|
+
'dwellTimeBoostMax': __limitedParseDouble,
|
|
3987
|
+
'exposureDeficitBoost': __limitedParseDouble,
|
|
3988
|
+
'passWeight': __limitedParseDouble,
|
|
3989
|
+
'primeTimeBoostMax': __limitedParseDouble,
|
|
3990
|
+
'profileViewBioWeight': __limitedParseDouble,
|
|
3991
|
+
'profileViewPhotoWeight': __limitedParseDouble,
|
|
3992
|
+
'profileViewPromptsWeight': __limitedParseDouble,
|
|
3993
|
+
'profileViewTimeWeight': __limitedParseDouble,
|
|
3994
|
+
'reciprocalMatchWeight': __limitedParseDouble,
|
|
3995
|
+
'superLikeWeight': __limitedParseDouble,
|
|
3996
|
+
'swipeDeliberationCapMs': __expectInt32,
|
|
3997
|
+
'swipeLikeBaseWeight': __limitedParseDouble,
|
|
3998
|
+
'swipeLikeDeliberationWeight': __limitedParseDouble,
|
|
3999
|
+
});
|
|
4000
|
+
};
|
|
4001
|
+
const de_ScoringPolicyConfig = (output, context) => {
|
|
4002
|
+
return take(output, {
|
|
4003
|
+
'activeExperiment': (_) => de_ABExperiment(_, context),
|
|
4004
|
+
'changeReason': __expectString,
|
|
4005
|
+
'expectedVersion': __expectString,
|
|
4006
|
+
'parameters': (_) => de_ScoringParameters(_, context),
|
|
4007
|
+
'updatedAt': __expectLong,
|
|
4008
|
+
'updatedBy': __expectString,
|
|
4009
|
+
'version': __expectString,
|
|
4010
|
+
});
|
|
4011
|
+
};
|
|
4012
|
+
const de_VariantOverrides = (output, context) => {
|
|
4013
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4014
|
+
if (value === null) {
|
|
4015
|
+
return acc;
|
|
4016
|
+
}
|
|
4017
|
+
acc[key] = de_ParameterOverrides(value, context);
|
|
4018
|
+
return acc;
|
|
4019
|
+
}, {});
|
|
4020
|
+
};
|
|
2443
4021
|
const de_CandidateDto = (output, context) => {
|
|
2444
4022
|
return take(output, {
|
|
2445
4023
|
'distanceKm': __limitedParseDouble,
|
|
@@ -2471,6 +4049,18 @@ const de_BirthDetails = (output, context) => {
|
|
|
2471
4049
|
'timeZone': __expectString,
|
|
2472
4050
|
});
|
|
2473
4051
|
};
|
|
4052
|
+
const de_ChatProfile = (output, context) => {
|
|
4053
|
+
return take(output, {
|
|
4054
|
+
'age': __expectInt32,
|
|
4055
|
+
'avatarKey': __expectString,
|
|
4056
|
+
'birthDateOnFile': __expectBoolean,
|
|
4057
|
+
'birthDetails': (_) => de_BirthDetails(_, context),
|
|
4058
|
+
'displayName': __expectString,
|
|
4059
|
+
'fieldModerationStatus': _json,
|
|
4060
|
+
'moderationStatus': __expectString,
|
|
4061
|
+
'userId': __expectString,
|
|
4062
|
+
});
|
|
4063
|
+
};
|
|
2474
4064
|
const deserializeMetadata = (output) => ({
|
|
2475
4065
|
httpStatusCode: output.statusCode,
|
|
2476
4066
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -2479,11 +4069,23 @@ const deserializeMetadata = (output) => ({
|
|
|
2479
4069
|
});
|
|
2480
4070
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
2481
4071
|
const _c = "category";
|
|
4072
|
+
const _d = "depth";
|
|
4073
|
+
const _di = "direction";
|
|
4074
|
+
const _eV = "expectedVersion";
|
|
4075
|
+
const _eVQ = "expectedVersionQuery";
|
|
2482
4076
|
const _k = "key";
|
|
2483
4077
|
const _l = "lat";
|
|
2484
4078
|
const _la = "lang";
|
|
4079
|
+
const _li = "limit";
|
|
2485
4080
|
const _lo = "lon";
|
|
2486
4081
|
const _mI = "matchId";
|
|
4082
|
+
const _mT = "memberToken";
|
|
4083
|
+
const _nT = "nextToken";
|
|
4084
|
+
const _p = "platform";
|
|
2487
4085
|
const _q = "q";
|
|
2488
4086
|
const _rUI = "requestingUserId";
|
|
4087
|
+
const _vP = "viewPass";
|
|
4088
|
+
const _xomt = "x-onehook-member-token";
|
|
4089
|
+
const _xop = "x-onehook-platform";
|
|
2489
4090
|
const _xoui = "x-onehook-user-id";
|
|
4091
|
+
const _xvp = "x-view-pass";
|