onehook-api-client 1.0.29 → 1.0.31
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 +14 -14
- package/dist-cjs/OneHook.js +4 -4
- package/dist-cjs/commands/{DiscoverByIntentCommand.js → CorrectBirthDateCommand.js} +7 -7
- package/dist-cjs/commands/{DiscoverSuggestedCommand.js → RecordSuggestionCommand.js} +7 -7
- package/dist-cjs/commands/index.js +2 -2
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +104 -71
- package/dist-cjs/telemetry/index.js +45 -5
- package/dist-es/OneHook.js +4 -4
- package/dist-es/commands/{DiscoverByIntentCommand.js → CorrectBirthDateCommand.js} +6 -6
- package/dist-es/commands/RecordSuggestionCommand.js +17 -0
- package/dist-es/commands/index.js +2 -2
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +97 -64
- package/dist-es/telemetry/index.js +44 -4
- package/dist-types/OneHook.d.ts +14 -14
- package/dist-types/OneHookClient.d.ts +4 -4
- package/dist-types/commands/CorrectBirthDateCommand.d.ts +88 -0
- package/dist-types/commands/DiscoverCommand.d.ts +14 -2
- package/dist-types/commands/GetMyProfileCommand.d.ts +9 -0
- package/dist-types/commands/GetProfileCommand.d.ts +9 -0
- package/dist-types/commands/RecordSuggestionCommand.d.ts +83 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +8 -0
- package/dist-types/commands/index.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +182 -15
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -18
- 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 +601 -246
- package/dist-es/commands/DiscoverSuggestedCommand.js +0 -17
- package/dist-types/commands/DiscoverByIntentCommand.d.ts +0 -97
- package/dist-types/commands/DiscoverSuggestedCommand.d.ts +0 -92
|
@@ -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
|
-
}
|