onehook-api-client 1.0.28 → 1.0.30
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 +21 -0
- package/dist-cjs/OneHook.js +6 -0
- package/dist-cjs/commands/GetAccountStateCommand.js +21 -0
- package/dist-cjs/commands/RecordSuggestionCommand.js +21 -0
- package/dist-cjs/commands/SetAccountStateCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +36 -1
- package/dist-cjs/protocols/Aws_restJson1.js +129 -3
- package/dist-cjs/telemetry/index.js +45 -5
- package/dist-es/OneHook.js +6 -0
- package/dist-es/commands/GetAccountStateCommand.js +17 -0
- package/dist-es/commands/RecordSuggestionCommand.js +17 -0
- package/dist-es/commands/SetAccountStateCommand.js +17 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +34 -0
- package/dist-es/protocols/Aws_restJson1.js +121 -1
- package/dist-es/telemetry/index.js +44 -4
- package/dist-types/OneHook.d.ts +21 -0
- package/dist-types/OneHookClient.d.ts +5 -2
- package/dist-types/commands/DiscoverCommand.d.ts +18 -2
- package/dist-types/commands/GetAccountStateCommand.d.ts +83 -0
- package/dist-types/commands/RecordSuggestionCommand.d.ts +83 -0
- package/dist-types/commands/SetAccountStateCommand.d.ts +95 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +233 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/telemetry/index.d.ts +45 -2
- package/package.json +1 -1
- package/telemetry/TelemetryCatalog.kt +62 -7
- package/telemetry/TelemetryCatalog.swift +52 -6
- package/telemetry/telemetry-catalog.json +594 -245
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { GetAccountStateRequest, GetAccountStateResponse } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAccountStateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAccountStateCommandInput extends GetAccountStateRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAccountStateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAccountStateCommandOutput extends GetAccountStateResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAccountStateCommand_base: {
|
|
25
|
+
new (input: GetAccountStateCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccountStateCommandInput, GetAccountStateCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetAccountStateCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccountStateCommandInput, GetAccountStateCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Reads a member's current moderation account state. Internal, IAM-authorized (SigV4). An expired
|
|
31
|
+
* RESTRICTED/SUSPENDED window reads back as ACTIVE (no sweep required). The returned `version` is
|
|
32
|
+
* the optimistic-concurrency token to pass to the next SetAccountState.
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { OneHookClient, GetAccountStateCommand } from "onehook-api-client"; // ES Modules import
|
|
37
|
+
* // const { OneHookClient, GetAccountStateCommand } = require("onehook-api-client"); // CommonJS import
|
|
38
|
+
* const client = new OneHookClient(config);
|
|
39
|
+
* const input = { // GetAccountStateRequest
|
|
40
|
+
* userId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetAccountStateCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetAccountStateResponse
|
|
45
|
+
* // state: "STRING_VALUE", // required
|
|
46
|
+
* // until: Number("long"),
|
|
47
|
+
* // version: Number("int"), // required
|
|
48
|
+
* // reasonCode: "STRING_VALUE",
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param GetAccountStateCommandInput - {@link GetAccountStateCommandInput}
|
|
54
|
+
* @returns {@link GetAccountStateCommandOutput}
|
|
55
|
+
* @see {@link GetAccountStateCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link GetAccountStateCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link BadRequestError} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link NotFoundError} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InternalServerError} (server fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link OneHookServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export declare class GetAccountStateCommand extends GetAccountStateCommand_base {
|
|
72
|
+
/** @internal type navigation helper, not in runtime. */
|
|
73
|
+
protected static __types: {
|
|
74
|
+
api: {
|
|
75
|
+
input: GetAccountStateRequest;
|
|
76
|
+
output: GetAccountStateResponse;
|
|
77
|
+
};
|
|
78
|
+
sdk: {
|
|
79
|
+
input: GetAccountStateCommandInput;
|
|
80
|
+
output: GetAccountStateCommandOutput;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { RecordSuggestionRequest, RecordSuggestionResponse } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link RecordSuggestionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface RecordSuggestionCommandInput extends RecordSuggestionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link RecordSuggestionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface RecordSuggestionCommandOutput extends RecordSuggestionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const RecordSuggestionCommand_base: {
|
|
25
|
+
new (input: RecordSuggestionCommandInput): import("@smithy/smithy-client").CommandImpl<RecordSuggestionCommandInput, RecordSuggestionCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: RecordSuggestionCommandInput): import("@smithy/smithy-client").CommandImpl<RecordSuggestionCommandInput, RecordSuggestionCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Records a OneHook suggestion: OneHook AI's analysis of who the caller is looking for, after the
|
|
31
|
+
* caller explicitly asked. Nothing is returned but the stored suggestion's id; matching candidates
|
|
32
|
+
* appear in `Discover` as `MR_ONEHOOK` cards carrying `reasoning`. Super and above (403
|
|
33
|
+
* `PREMIUM_REQUIRED` otherwise); 503 when the embedding model is unavailable. Each member keeps at most
|
|
34
|
+
* 10 suggestions; the least useful one (by liked/shown history) is replaced. The prompt is never logged.
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { OneHookClient, RecordSuggestionCommand } from "onehook-api-client"; // ES Modules import
|
|
39
|
+
* // const { OneHookClient, RecordSuggestionCommand } = require("onehook-api-client"); // CommonJS import
|
|
40
|
+
* const client = new OneHookClient(config);
|
|
41
|
+
* const input = { // RecordSuggestionRequest
|
|
42
|
+
* prompt: "STRING_VALUE", // required
|
|
43
|
+
* reasoning: "STRING_VALUE", // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new RecordSuggestionCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // RecordSuggestionResponse
|
|
48
|
+
* // suggestionId: "STRING_VALUE", // required
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param RecordSuggestionCommandInput - {@link RecordSuggestionCommandInput}
|
|
54
|
+
* @returns {@link RecordSuggestionCommandOutput}
|
|
55
|
+
* @see {@link RecordSuggestionCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link RecordSuggestionCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link BadRequestError} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InternalServerError} (server fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link OneHookServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export declare class RecordSuggestionCommand extends RecordSuggestionCommand_base {
|
|
72
|
+
/** @internal type navigation helper, not in runtime. */
|
|
73
|
+
protected static __types: {
|
|
74
|
+
api: {
|
|
75
|
+
input: RecordSuggestionRequest;
|
|
76
|
+
output: RecordSuggestionResponse;
|
|
77
|
+
};
|
|
78
|
+
sdk: {
|
|
79
|
+
input: RecordSuggestionCommandInput;
|
|
80
|
+
output: RecordSuggestionCommandOutput;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { SetAccountStateRequest, SetAccountStateResponse } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SetAccountStateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SetAccountStateCommandInput extends SetAccountStateRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SetAccountStateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SetAccountStateCommandOutput extends SetAccountStateResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SetAccountStateCommand_base: {
|
|
25
|
+
new (input: SetAccountStateCommandInput): import("@smithy/smithy-client").CommandImpl<SetAccountStateCommandInput, SetAccountStateCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SetAccountStateCommandInput): import("@smithy/smithy-client").CommandImpl<SetAccountStateCommandInput, SetAccountStateCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Sets a member's moderation account state. Internal, IAM-authorized (SigV4) — NOT the Cognito
|
|
31
|
+
* user-pool authorizer — so the only caller is the admin portal's moderation module (its per-module
|
|
32
|
+
* invoke role). The write is optimistic-concurrency guarded: pass the `expectedVersion` read from
|
|
33
|
+
* GetAccountState and a concurrent change returns 409. Emits an `AccountStateChanged` domain event
|
|
34
|
+
* through the Identity transactional outbox. No PII is accepted or logged — the reason is a CODE.
|
|
35
|
+
*
|
|
36
|
+
* RESTRICTED/SUSPENDED require an `until` (epoch ms); BANNED is permanent and must NOT carry one.
|
|
37
|
+
* SUSPENDED and BANNED members are refused at sign-in and token refresh (ACCOUNT_SUSPENDED /
|
|
38
|
+
* ACCOUNT_BANNED); RESTRICTED members can still sign in but are hidden from discovery.
|
|
39
|
+
* @example
|
|
40
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
+
* ```javascript
|
|
42
|
+
* import { OneHookClient, SetAccountStateCommand } from "onehook-api-client"; // ES Modules import
|
|
43
|
+
* // const { OneHookClient, SetAccountStateCommand } = require("onehook-api-client"); // CommonJS import
|
|
44
|
+
* const client = new OneHookClient(config);
|
|
45
|
+
* const input = { // SetAccountStateRequest
|
|
46
|
+
* userId: "STRING_VALUE", // required
|
|
47
|
+
* state: "STRING_VALUE", // required
|
|
48
|
+
* reasonCode: "STRING_VALUE", // required
|
|
49
|
+
* until: Number("long"),
|
|
50
|
+
* actor: "STRING_VALUE", // required
|
|
51
|
+
* expectedVersion: Number("int"),
|
|
52
|
+
* };
|
|
53
|
+
* const command = new SetAccountStateCommand(input);
|
|
54
|
+
* const response = await client.send(command);
|
|
55
|
+
* // { // SetAccountStateResponse
|
|
56
|
+
* // state: "STRING_VALUE", // required
|
|
57
|
+
* // until: Number("long"),
|
|
58
|
+
* // version: Number("int"), // required
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param SetAccountStateCommandInput - {@link SetAccountStateCommandInput}
|
|
64
|
+
* @returns {@link SetAccountStateCommandOutput}
|
|
65
|
+
* @see {@link SetAccountStateCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link SetAccountStateCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link BadRequestError} (client fault)
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link NotFoundError} (client fault)
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ConflictError} (client fault)
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerError} (server fault)
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link OneHookServiceException}
|
|
78
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
79
|
+
*
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export declare class SetAccountStateCommand extends SetAccountStateCommand_base {
|
|
84
|
+
/** @internal type navigation helper, not in runtime. */
|
|
85
|
+
protected static __types: {
|
|
86
|
+
api: {
|
|
87
|
+
input: SetAccountStateRequest;
|
|
88
|
+
output: SetAccountStateResponse;
|
|
89
|
+
};
|
|
90
|
+
sdk: {
|
|
91
|
+
input: SetAccountStateCommandInput;
|
|
92
|
+
output: SetAccountStateCommandOutput;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -13,6 +13,7 @@ export * from "./UpdateChatSettingsCommand";
|
|
|
13
13
|
export * from "./AuthSocialCommand";
|
|
14
14
|
export * from "./CreateAdminInviteCommand";
|
|
15
15
|
export * from "./GenerateInviteCommand";
|
|
16
|
+
export * from "./GetAccountStateCommand";
|
|
16
17
|
export * from "./GetAdminPhoneStatusCommand";
|
|
17
18
|
export * from "./GetCredentialReadinessCommand";
|
|
18
19
|
export * from "./GetUserCommand";
|
|
@@ -25,6 +26,7 @@ export * from "./RequestEmailOtpCommand";
|
|
|
25
26
|
export * from "./RequestPhoneOtpCommand";
|
|
26
27
|
export * from "./RequestPhoneUpdateOtpCommand";
|
|
27
28
|
export * from "./SendAdminLinkOtpCommand";
|
|
29
|
+
export * from "./SetAccountStateCommand";
|
|
28
30
|
export * from "./UnlinkSocialCommand";
|
|
29
31
|
export * from "./UpdateEntitlementsCommand";
|
|
30
32
|
export * from "./UpdatePhoneNumberCommand";
|
|
@@ -37,6 +39,7 @@ export * from "./GetPreferencesCommand";
|
|
|
37
39
|
export * from "./GetReceivedLikesCommand";
|
|
38
40
|
export * from "./GetRosesCommand";
|
|
39
41
|
export * from "./IndexLocationCommand";
|
|
42
|
+
export * from "./RecordSuggestionCommand";
|
|
40
43
|
export * from "./RemoveLocationCommand";
|
|
41
44
|
export * from "./SwipeCommand";
|
|
42
45
|
export * from "./SwipeByUsernameCommand";
|
|
@@ -657,6 +657,49 @@ export interface GenerateInviteResponse {
|
|
|
657
657
|
expiresAt: number | undefined;
|
|
658
658
|
maxUses: number | undefined;
|
|
659
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* @public
|
|
662
|
+
*/
|
|
663
|
+
export interface GetAccountStateRequest {
|
|
664
|
+
userId: string | undefined;
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* @public
|
|
668
|
+
* @enum
|
|
669
|
+
*/
|
|
670
|
+
export declare const AccountState: {
|
|
671
|
+
readonly ACTIVE: "ACTIVE";
|
|
672
|
+
readonly BANNED: "BANNED";
|
|
673
|
+
readonly RESTRICTED: "RESTRICTED";
|
|
674
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
675
|
+
};
|
|
676
|
+
/**
|
|
677
|
+
* @public
|
|
678
|
+
*/
|
|
679
|
+
export type AccountState = typeof AccountState[keyof typeof AccountState];
|
|
680
|
+
/**
|
|
681
|
+
* @public
|
|
682
|
+
*/
|
|
683
|
+
export interface GetAccountStateResponse {
|
|
684
|
+
/**
|
|
685
|
+
* The moderation account state a member can be in. Absent/`ACTIVE` means no restriction. Owned by
|
|
686
|
+
* Identity (sign-in and token refresh enforce it directly); Matching and the admin portal consume
|
|
687
|
+
* the `AccountStateChanged` event.
|
|
688
|
+
* @public
|
|
689
|
+
*/
|
|
690
|
+
state: AccountState | undefined;
|
|
691
|
+
/**
|
|
692
|
+
* Epoch ms the state expires; absent for ACTIVE and BANNED.
|
|
693
|
+
* @public
|
|
694
|
+
*/
|
|
695
|
+
until?: number | undefined;
|
|
696
|
+
version: number | undefined;
|
|
697
|
+
/**
|
|
698
|
+
* The reason code for the current state; absent when ACTIVE.
|
|
699
|
+
* @public
|
|
700
|
+
*/
|
|
701
|
+
reasonCode?: string | undefined;
|
|
702
|
+
}
|
|
660
703
|
/**
|
|
661
704
|
* @public
|
|
662
705
|
*/
|
|
@@ -852,6 +895,69 @@ export interface SendAdminLinkOtpResponse {
|
|
|
852
895
|
*/
|
|
853
896
|
maskedPhone: string | undefined;
|
|
854
897
|
}
|
|
898
|
+
/**
|
|
899
|
+
* @public
|
|
900
|
+
*/
|
|
901
|
+
export declare class ConflictError extends __BaseException {
|
|
902
|
+
readonly name: "ConflictError";
|
|
903
|
+
readonly $fault: "client";
|
|
904
|
+
error: string | undefined;
|
|
905
|
+
/**
|
|
906
|
+
* @internal
|
|
907
|
+
*/
|
|
908
|
+
constructor(opts: __ExceptionOptionType<ConflictError, __BaseException>);
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* @public
|
|
912
|
+
*/
|
|
913
|
+
export interface SetAccountStateRequest {
|
|
914
|
+
userId: string | undefined;
|
|
915
|
+
/**
|
|
916
|
+
* The moderation account state a member can be in. Absent/`ACTIVE` means no restriction. Owned by
|
|
917
|
+
* Identity (sign-in and token refresh enforce it directly); Matching and the admin portal consume
|
|
918
|
+
* the `AccountStateChanged` event.
|
|
919
|
+
* @public
|
|
920
|
+
*/
|
|
921
|
+
state: AccountState | undefined;
|
|
922
|
+
/**
|
|
923
|
+
* Machine-readable reason code (never free text / PII).
|
|
924
|
+
* @public
|
|
925
|
+
*/
|
|
926
|
+
reasonCode: string | undefined;
|
|
927
|
+
/**
|
|
928
|
+
* Epoch ms the RESTRICTED/SUSPENDED state expires. Required for those states; rejected for BANNED.
|
|
929
|
+
* @public
|
|
930
|
+
*/
|
|
931
|
+
until?: number | undefined;
|
|
932
|
+
/**
|
|
933
|
+
* The admin actor id taking the action (audit).
|
|
934
|
+
* @public
|
|
935
|
+
*/
|
|
936
|
+
actor: string | undefined;
|
|
937
|
+
/**
|
|
938
|
+
* Optional optimistic-concurrency token from GetAccountState; a mismatch returns 409.
|
|
939
|
+
* @public
|
|
940
|
+
*/
|
|
941
|
+
expectedVersion?: number | undefined;
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* @public
|
|
945
|
+
*/
|
|
946
|
+
export interface SetAccountStateResponse {
|
|
947
|
+
/**
|
|
948
|
+
* The moderation account state a member can be in. Absent/`ACTIVE` means no restriction. Owned by
|
|
949
|
+
* Identity (sign-in and token refresh enforce it directly); Matching and the admin portal consume
|
|
950
|
+
* the `AccountStateChanged` event.
|
|
951
|
+
* @public
|
|
952
|
+
*/
|
|
953
|
+
state: AccountState | undefined;
|
|
954
|
+
/**
|
|
955
|
+
* Epoch ms the state expires; absent for ACTIVE and BANNED.
|
|
956
|
+
* @public
|
|
957
|
+
*/
|
|
958
|
+
until?: number | undefined;
|
|
959
|
+
version: number | undefined;
|
|
960
|
+
}
|
|
855
961
|
/**
|
|
856
962
|
* @public
|
|
857
963
|
*/
|
|
@@ -985,13 +1091,76 @@ export interface VerifyAdminLinkOtpResponse {
|
|
|
985
1091
|
userId: string | undefined;
|
|
986
1092
|
username: string | undefined;
|
|
987
1093
|
}
|
|
1094
|
+
/**
|
|
1095
|
+
* @public
|
|
1096
|
+
* @enum
|
|
1097
|
+
*/
|
|
1098
|
+
export declare const DiscoveryCategory: {
|
|
1099
|
+
/**
|
|
1100
|
+
* Mixed deck (default, every tier).
|
|
1101
|
+
*/
|
|
1102
|
+
readonly ALL: "ALL";
|
|
1103
|
+
/**
|
|
1104
|
+
* Mr. OneHook: every OneHook suggestion (asked and inferred).
|
|
1105
|
+
*/
|
|
1106
|
+
readonly ONEHOOK_SUGGESTED: "ONEHOOK_SUGGESTED";
|
|
1107
|
+
/**
|
|
1108
|
+
* OneHook Intelligence only: profiles whose details match the caller's details and preferences.
|
|
1109
|
+
*/
|
|
1110
|
+
readonly PROFILE_MATCH: "PROFILE_MATCH";
|
|
1111
|
+
/**
|
|
1112
|
+
* Mr. OneHook, inferred: people similar to those the caller keeps liking.
|
|
1113
|
+
*/
|
|
1114
|
+
readonly SIMILAR: "SIMILAR";
|
|
1115
|
+
};
|
|
1116
|
+
/**
|
|
1117
|
+
* @public
|
|
1118
|
+
*/
|
|
1119
|
+
export type DiscoveryCategory = typeof DiscoveryCategory[keyof typeof DiscoveryCategory];
|
|
988
1120
|
/**
|
|
989
1121
|
* @public
|
|
990
1122
|
*/
|
|
991
1123
|
export interface DiscoverRequest {
|
|
992
1124
|
lat: number | undefined;
|
|
993
1125
|
lon: number | undefined;
|
|
1126
|
+
/**
|
|
1127
|
+
* Optional. Omit (or `ALL`) for the mixed deck. Other values need Super or above.
|
|
1128
|
+
* @public
|
|
1129
|
+
*/
|
|
1130
|
+
category?: DiscoveryCategory | undefined;
|
|
994
1131
|
}
|
|
1132
|
+
/**
|
|
1133
|
+
* @public
|
|
1134
|
+
* @enum
|
|
1135
|
+
*/
|
|
1136
|
+
export declare const MatchFinder: {
|
|
1137
|
+
/**
|
|
1138
|
+
* OneHook suggested the candidate: from a suggestion the caller asked OneHook AI for, or one OneHook
|
|
1139
|
+
* inferred from the caller's likes.
|
|
1140
|
+
*/
|
|
1141
|
+
readonly MR_ONEHOOK: "MR_ONEHOOK";
|
|
1142
|
+
/**
|
|
1143
|
+
* The candidate's profile details match the caller's details and preferences (standard
|
|
1144
|
+
* discovery, `Discover`).
|
|
1145
|
+
*/
|
|
1146
|
+
readonly ONEHOOK_INTELLIGENCE: "ONEHOOK_INTELLIGENCE";
|
|
1147
|
+
};
|
|
1148
|
+
/**
|
|
1149
|
+
* @public
|
|
1150
|
+
*/
|
|
1151
|
+
export type MatchFinder = typeof MatchFinder[keyof typeof MatchFinder];
|
|
1152
|
+
/**
|
|
1153
|
+
* @public
|
|
1154
|
+
* @enum
|
|
1155
|
+
*/
|
|
1156
|
+
export declare const SuggestionBasis: {
|
|
1157
|
+
readonly EXPLICIT_REQUEST: "EXPLICIT_REQUEST";
|
|
1158
|
+
readonly INFERRED_INCLINATION: "INFERRED_INCLINATION";
|
|
1159
|
+
};
|
|
1160
|
+
/**
|
|
1161
|
+
* @public
|
|
1162
|
+
*/
|
|
1163
|
+
export type SuggestionBasis = typeof SuggestionBasis[keyof typeof SuggestionBasis];
|
|
995
1164
|
/**
|
|
996
1165
|
* @public
|
|
997
1166
|
*/
|
|
@@ -999,6 +1168,39 @@ export interface CandidateDto {
|
|
|
999
1168
|
userId: string | undefined;
|
|
1000
1169
|
distanceKm: number | undefined;
|
|
1001
1170
|
score: number | undefined;
|
|
1171
|
+
/**
|
|
1172
|
+
* Who found this candidate. How (and whether) to show it is up to the client.
|
|
1173
|
+
* @public
|
|
1174
|
+
*/
|
|
1175
|
+
matchFinder: MatchFinder | undefined;
|
|
1176
|
+
/**
|
|
1177
|
+
* Display name of `matchFinder`: "OneHook Intelligence" or "Mr. OneHook".
|
|
1178
|
+
* @public
|
|
1179
|
+
*/
|
|
1180
|
+
matchFinderLabel: string | undefined;
|
|
1181
|
+
/**
|
|
1182
|
+
* Why this candidate is shown, for the caller (e.g. "You asked OneHook for an outdoorsy reader ·
|
|
1183
|
+
* You both like hiking").
|
|
1184
|
+
* @public
|
|
1185
|
+
*/
|
|
1186
|
+
reasoning: string | undefined;
|
|
1187
|
+
/**
|
|
1188
|
+
* Only for `MR_ONEHOOK`: the OneHook suggestion that surfaced this candidate.
|
|
1189
|
+
* @public
|
|
1190
|
+
*/
|
|
1191
|
+
suggestionId?: string | undefined;
|
|
1192
|
+
/**
|
|
1193
|
+
* Only for `MR_ONEHOOK`: whether the caller asked OneHook (`EXPLICIT_REQUEST`) or OneHook inferred
|
|
1194
|
+
* the inclination from the caller's likes (`INFERRED_INCLINATION`).
|
|
1195
|
+
* @public
|
|
1196
|
+
*/
|
|
1197
|
+
suggestionBasis?: SuggestionBasis | undefined;
|
|
1198
|
+
/**
|
|
1199
|
+
* Only for `MR_ONEHOOK`: cosine similarity (-1 to 1) between the suggestion and the candidate's
|
|
1200
|
+
* profile. Higher is closer.
|
|
1201
|
+
* @public
|
|
1202
|
+
*/
|
|
1203
|
+
similarity?: number | undefined;
|
|
1002
1204
|
}
|
|
1003
1205
|
/**
|
|
1004
1206
|
* @public
|
|
@@ -1007,6 +1209,16 @@ export interface DiscoverResponse {
|
|
|
1007
1209
|
candidates: (CandidateDto)[] | undefined;
|
|
1008
1210
|
count: number | undefined;
|
|
1009
1211
|
algorithm: string | undefined;
|
|
1212
|
+
/**
|
|
1213
|
+
* The category that was applied.
|
|
1214
|
+
* @public
|
|
1215
|
+
*/
|
|
1216
|
+
category: DiscoveryCategory | undefined;
|
|
1217
|
+
/**
|
|
1218
|
+
* Categories the caller's tier may request, for rendering a selector.
|
|
1219
|
+
* @public
|
|
1220
|
+
*/
|
|
1221
|
+
availableCategories: (DiscoveryCategory)[] | undefined;
|
|
1010
1222
|
}
|
|
1011
1223
|
/**
|
|
1012
1224
|
* @public
|
|
@@ -1164,6 +1376,27 @@ export interface LocationRequest {
|
|
|
1164
1376
|
lat: number | undefined;
|
|
1165
1377
|
lon: number | undefined;
|
|
1166
1378
|
}
|
|
1379
|
+
/**
|
|
1380
|
+
* @public
|
|
1381
|
+
*/
|
|
1382
|
+
export interface RecordSuggestionRequest {
|
|
1383
|
+
/**
|
|
1384
|
+
* OneHook AI's analysis of what the caller wants (3 to 1000 characters). Embedded, never logged.
|
|
1385
|
+
* @public
|
|
1386
|
+
*/
|
|
1387
|
+
prompt: string | undefined;
|
|
1388
|
+
/**
|
|
1389
|
+
* Why OneHook is suggesting these people, shown to the caller on each card (1 to 280 characters).
|
|
1390
|
+
* @public
|
|
1391
|
+
*/
|
|
1392
|
+
reasoning: string | undefined;
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* @public
|
|
1396
|
+
*/
|
|
1397
|
+
export interface RecordSuggestionResponse {
|
|
1398
|
+
suggestionId: string | undefined;
|
|
1399
|
+
}
|
|
1167
1400
|
/**
|
|
1168
1401
|
* @public
|
|
1169
1402
|
*/
|
|
@@ -12,6 +12,7 @@ import { DiscoverCommandInput, DiscoverCommandOutput } from "../commands/Discove
|
|
|
12
12
|
import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "../commands/GenerateDownloadUrlCommand";
|
|
13
13
|
import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "../commands/GenerateInviteCommand";
|
|
14
14
|
import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "../commands/GenerateUploadUrlCommand";
|
|
15
|
+
import { GetAccountStateCommandInput, GetAccountStateCommandOutput } from "../commands/GetAccountStateCommand";
|
|
15
16
|
import { GetAdminPhoneStatusCommandInput, GetAdminPhoneStatusCommandOutput } from "../commands/GetAdminPhoneStatusCommand";
|
|
16
17
|
import { GetAiContextMatchCommandInput, GetAiContextMatchCommandOutput } from "../commands/GetAiContextMatchCommand";
|
|
17
18
|
import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "../commands/GetChatSettingsCommand";
|
|
@@ -34,6 +35,7 @@ import { InitUserCommandInput, InitUserCommandOutput } from "../commands/InitUse
|
|
|
34
35
|
import { LinkEmailCommandInput, LinkEmailCommandOutput } from "../commands/LinkEmailCommand";
|
|
35
36
|
import { LinkSocialCommandInput, LinkSocialCommandOutput } from "../commands/LinkSocialCommand";
|
|
36
37
|
import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "../commands/ListMyDevicesCommand";
|
|
38
|
+
import { RecordSuggestionCommandInput, RecordSuggestionCommandOutput } from "../commands/RecordSuggestionCommand";
|
|
37
39
|
import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "../commands/RegisterDeviceCommand";
|
|
38
40
|
import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "../commands/RegisterPhoneCommand";
|
|
39
41
|
import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "../commands/RegisterPushTokenCommand";
|
|
@@ -43,6 +45,7 @@ import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "../co
|
|
|
43
45
|
import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "../commands/RequestPhoneUpdateOtpCommand";
|
|
44
46
|
import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "../commands/RevokeDeviceCommand";
|
|
45
47
|
import { SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput } from "../commands/SendAdminLinkOtpCommand";
|
|
48
|
+
import { SetAccountStateCommandInput, SetAccountStateCommandOutput } from "../commands/SetAccountStateCommand";
|
|
46
49
|
import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "../commands/SwipeByUsernameCommand";
|
|
47
50
|
import { SwipeCommandInput, SwipeCommandOutput } from "../commands/SwipeCommand";
|
|
48
51
|
import { UnhookCommandInput, UnhookCommandOutput } from "../commands/UnhookCommand";
|
|
@@ -118,6 +121,10 @@ export declare const se_CreateAdminInviteCommand: (input: CreateAdminInviteComma
|
|
|
118
121
|
* serializeAws_restJson1GenerateInviteCommand
|
|
119
122
|
*/
|
|
120
123
|
export declare const se_GenerateInviteCommand: (input: GenerateInviteCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
124
|
+
/**
|
|
125
|
+
* serializeAws_restJson1GetAccountStateCommand
|
|
126
|
+
*/
|
|
127
|
+
export declare const se_GetAccountStateCommand: (input: GetAccountStateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
121
128
|
/**
|
|
122
129
|
* serializeAws_restJson1GetAdminPhoneStatusCommand
|
|
123
130
|
*/
|
|
@@ -166,6 +173,10 @@ export declare const se_RequestPhoneUpdateOtpCommand: (input: RequestPhoneUpdate
|
|
|
166
173
|
* serializeAws_restJson1SendAdminLinkOtpCommand
|
|
167
174
|
*/
|
|
168
175
|
export declare const se_SendAdminLinkOtpCommand: (input: SendAdminLinkOtpCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
176
|
+
/**
|
|
177
|
+
* serializeAws_restJson1SetAccountStateCommand
|
|
178
|
+
*/
|
|
179
|
+
export declare const se_SetAccountStateCommand: (input: SetAccountStateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
169
180
|
/**
|
|
170
181
|
* serializeAws_restJson1UnlinkSocialCommand
|
|
171
182
|
*/
|
|
@@ -214,6 +225,10 @@ export declare const se_GetRosesCommand: (input: GetRosesCommandInput, context:
|
|
|
214
225
|
* serializeAws_restJson1IndexLocationCommand
|
|
215
226
|
*/
|
|
216
227
|
export declare const se_IndexLocationCommand: (input: IndexLocationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
228
|
+
/**
|
|
229
|
+
* serializeAws_restJson1RecordSuggestionCommand
|
|
230
|
+
*/
|
|
231
|
+
export declare const se_RecordSuggestionCommand: (input: RecordSuggestionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
217
232
|
/**
|
|
218
233
|
* serializeAws_restJson1RemoveLocationCommand
|
|
219
234
|
*/
|
|
@@ -350,6 +365,10 @@ export declare const de_CreateAdminInviteCommand: (output: __HttpResponse, conte
|
|
|
350
365
|
* deserializeAws_restJson1GenerateInviteCommand
|
|
351
366
|
*/
|
|
352
367
|
export declare const de_GenerateInviteCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateInviteCommandOutput>;
|
|
368
|
+
/**
|
|
369
|
+
* deserializeAws_restJson1GetAccountStateCommand
|
|
370
|
+
*/
|
|
371
|
+
export declare const de_GetAccountStateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAccountStateCommandOutput>;
|
|
353
372
|
/**
|
|
354
373
|
* deserializeAws_restJson1GetAdminPhoneStatusCommand
|
|
355
374
|
*/
|
|
@@ -398,6 +417,10 @@ export declare const de_RequestPhoneUpdateOtpCommand: (output: __HttpResponse, c
|
|
|
398
417
|
* deserializeAws_restJson1SendAdminLinkOtpCommand
|
|
399
418
|
*/
|
|
400
419
|
export declare const de_SendAdminLinkOtpCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendAdminLinkOtpCommandOutput>;
|
|
420
|
+
/**
|
|
421
|
+
* deserializeAws_restJson1SetAccountStateCommand
|
|
422
|
+
*/
|
|
423
|
+
export declare const de_SetAccountStateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SetAccountStateCommandOutput>;
|
|
401
424
|
/**
|
|
402
425
|
* deserializeAws_restJson1UnlinkSocialCommand
|
|
403
426
|
*/
|
|
@@ -446,6 +469,10 @@ export declare const de_GetRosesCommand: (output: __HttpResponse, context: __Ser
|
|
|
446
469
|
* deserializeAws_restJson1IndexLocationCommand
|
|
447
470
|
*/
|
|
448
471
|
export declare const de_IndexLocationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<IndexLocationCommandOutput>;
|
|
472
|
+
/**
|
|
473
|
+
* deserializeAws_restJson1RecordSuggestionCommand
|
|
474
|
+
*/
|
|
475
|
+
export declare const de_RecordSuggestionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RecordSuggestionCommandOutput>;
|
|
449
476
|
/**
|
|
450
477
|
* deserializeAws_restJson1RemoveLocationCommand
|
|
451
478
|
*/
|