onehook-api-client 1.0.29 → 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.
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DiscoverSuggestedCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class DiscoverSuggestedCommand extends smithy_client_1.Command.classBuilder()
9
- .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
- })
14
- .s("OneHookService", "DiscoverSuggested", {})
15
- .n("OneHookClient", "DiscoverSuggestedCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_DiscoverSuggestedCommand)
18
- .de(Aws_restJson1_1.de_DiscoverSuggestedCommand)
19
- .build() {
20
- }
21
- exports.DiscoverSuggestedCommand = DiscoverSuggestedCommand;
@@ -1,17 +0,0 @@
1
- import { de_DiscoverSuggestedCommand, se_DiscoverSuggestedCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- export { $Command };
5
- export class DiscoverSuggestedCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("OneHookService", "DiscoverSuggested", {})
12
- .n("OneHookClient", "DiscoverSuggestedCommand")
13
- .f(void 0, void 0)
14
- .ser(se_DiscoverSuggestedCommand)
15
- .de(de_DiscoverSuggestedCommand)
16
- .build() {
17
- }
@@ -1,97 +0,0 @@
1
- import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
- import { DiscoverByIntentRequest, DiscoverResponse } 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 DiscoverByIntentCommand}.
14
- */
15
- export interface DiscoverByIntentCommandInput extends DiscoverByIntentRequest {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link DiscoverByIntentCommand}.
21
- */
22
- export interface DiscoverByIntentCommandOutput extends DiscoverResponse, __MetadataBearer {
23
- }
24
- declare const DiscoverByIntentCommand_base: {
25
- new (input: DiscoverByIntentCommandInput): import("@smithy/smithy-client").CommandImpl<DiscoverByIntentCommandInput, DiscoverByIntentCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: DiscoverByIntentCommandInput): import("@smithy/smithy-client").CommandImpl<DiscoverByIntentCommandInput, DiscoverByIntentCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
- };
29
- /**
30
- * "Mr. OneHook, find me ...": candidates closest in meaning to a free-text description of who the
31
- * caller is looking for (typically distilled by OneHook AI from a conversation). The description is
32
- * embedded and matched against candidates' profile embeddings, under the same eligibility rules and
33
- * saved preferences as `Discover`. Every candidate is attributed `MR_ONEHOOK` /
34
- * `EXPLICIT_REQUEST`. Paid tiers only (403 `PREMIUM_REQUIRED` otherwise); 503 when the embedding
35
- * model is unavailable (retry later). The description is not stored or logged.
36
- * @example
37
- * Use a bare-bones client and the command you need to make an API call.
38
- * ```javascript
39
- * import { OneHookClient, DiscoverByIntentCommand } from "onehook-api-client"; // ES Modules import
40
- * // const { OneHookClient, DiscoverByIntentCommand } = require("onehook-api-client"); // CommonJS import
41
- * const client = new OneHookClient(config);
42
- * const input = { // DiscoverByIntentRequest
43
- * lat: Number("double"), // required
44
- * lon: Number("double"), // required
45
- * description: "STRING_VALUE", // required
46
- * };
47
- * const command = new DiscoverByIntentCommand(input);
48
- * const response = await client.send(command);
49
- * // { // DiscoverResponse
50
- * // candidates: [ // CandidateList // required
51
- * // { // CandidateDto
52
- * // userId: "STRING_VALUE", // required
53
- * // distanceKm: Number("double"), // required
54
- * // score: Number("double"), // required
55
- * // matchFinder: "ONEHOOK_INTELLIGENCE" || "MR_ONEHOOK", // required
56
- * // matchFinderLabel: "STRING_VALUE", // required
57
- * // suggestionBasis: "EXPLICIT_REQUEST" || "INFERRED_INCLINATION",
58
- * // similarity: Number("double"),
59
- * // },
60
- * // ],
61
- * // count: Number("int"), // required
62
- * // algorithm: "STRING_VALUE", // required
63
- * // };
64
- *
65
- * ```
66
- *
67
- * @param DiscoverByIntentCommandInput - {@link DiscoverByIntentCommandInput}
68
- * @returns {@link DiscoverByIntentCommandOutput}
69
- * @see {@link DiscoverByIntentCommandInput} for command's `input` shape.
70
- * @see {@link DiscoverByIntentCommandOutput} for command's `response` shape.
71
- * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
72
- *
73
- * @throws {@link BadRequestError} (client fault)
74
- *
75
- * @throws {@link ForbiddenError} (client fault)
76
- *
77
- * @throws {@link InternalServerError} (server fault)
78
- *
79
- * @throws {@link OneHookServiceException}
80
- * <p>Base exception class for all service exceptions from OneHook service.</p>
81
- *
82
- *
83
- * @public
84
- */
85
- export declare class DiscoverByIntentCommand extends DiscoverByIntentCommand_base {
86
- /** @internal type navigation helper, not in runtime. */
87
- protected static __types: {
88
- api: {
89
- input: DiscoverByIntentRequest;
90
- output: DiscoverResponse;
91
- };
92
- sdk: {
93
- input: DiscoverByIntentCommandInput;
94
- output: DiscoverByIntentCommandOutput;
95
- };
96
- };
97
- }
@@ -1,92 +0,0 @@
1
- import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
- import { DiscoverRequest, DiscoverResponse } 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 DiscoverSuggestedCommand}.
14
- */
15
- export interface DiscoverSuggestedCommandInput extends DiscoverRequest {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link DiscoverSuggestedCommand}.
21
- */
22
- export interface DiscoverSuggestedCommandOutput extends DiscoverResponse, __MetadataBearer {
23
- }
24
- declare const DiscoverSuggestedCommand_base: {
25
- new (input: DiscoverSuggestedCommandInput): import("@smithy/smithy-client").CommandImpl<DiscoverSuggestedCommandInput, DiscoverSuggestedCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: DiscoverSuggestedCommandInput): import("@smithy/smithy-client").CommandImpl<DiscoverSuggestedCommandInput, DiscoverSuggestedCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Proactive Mr. OneHook suggestions: candidates closest in meaning to the people the caller has
31
- * recently liked (an inferred inclination). New people only; anyone already swiped is excluded.
32
- * Returns an empty list until the caller has liked enough embedded profiles to infer from. Every
33
- * candidate is attributed `MR_ONEHOOK` / `INFERRED_INCLINATION`.
34
- * @example
35
- * Use a bare-bones client and the command you need to make an API call.
36
- * ```javascript
37
- * import { OneHookClient, DiscoverSuggestedCommand } from "onehook-api-client"; // ES Modules import
38
- * // const { OneHookClient, DiscoverSuggestedCommand } = require("onehook-api-client"); // CommonJS import
39
- * const client = new OneHookClient(config);
40
- * const input = { // DiscoverRequest
41
- * lat: Number("double"), // required
42
- * lon: Number("double"), // required
43
- * };
44
- * const command = new DiscoverSuggestedCommand(input);
45
- * const response = await client.send(command);
46
- * // { // DiscoverResponse
47
- * // candidates: [ // CandidateList // required
48
- * // { // CandidateDto
49
- * // userId: "STRING_VALUE", // required
50
- * // distanceKm: Number("double"), // required
51
- * // score: Number("double"), // required
52
- * // matchFinder: "ONEHOOK_INTELLIGENCE" || "MR_ONEHOOK", // required
53
- * // matchFinderLabel: "STRING_VALUE", // required
54
- * // suggestionBasis: "EXPLICIT_REQUEST" || "INFERRED_INCLINATION",
55
- * // similarity: Number("double"),
56
- * // },
57
- * // ],
58
- * // count: Number("int"), // required
59
- * // algorithm: "STRING_VALUE", // required
60
- * // };
61
- *
62
- * ```
63
- *
64
- * @param DiscoverSuggestedCommandInput - {@link DiscoverSuggestedCommandInput}
65
- * @returns {@link DiscoverSuggestedCommandOutput}
66
- * @see {@link DiscoverSuggestedCommandInput} for command's `input` shape.
67
- * @see {@link DiscoverSuggestedCommandOutput} for command's `response` shape.
68
- * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
69
- *
70
- * @throws {@link BadRequestError} (client fault)
71
- *
72
- * @throws {@link InternalServerError} (server fault)
73
- *
74
- * @throws {@link OneHookServiceException}
75
- * <p>Base exception class for all service exceptions from OneHook service.</p>
76
- *
77
- *
78
- * @public
79
- */
80
- export declare class DiscoverSuggestedCommand extends DiscoverSuggestedCommand_base {
81
- /** @internal type navigation helper, not in runtime. */
82
- protected static __types: {
83
- api: {
84
- input: DiscoverRequest;
85
- output: DiscoverResponse;
86
- };
87
- sdk: {
88
- input: DiscoverSuggestedCommandInput;
89
- output: DiscoverSuggestedCommandOutput;
90
- };
91
- };
92
- }