onehook-api-client 1.0.0 → 1.0.4
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 +451 -0
- package/dist-cjs/{OneHookService.js → OneHook.js} +5 -5
- package/dist-cjs/{OneHookServiceClient.js → OneHookClient.js} +16 -11
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +8 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +24 -11
- package/dist-cjs/commands/AuthSocialCommand.js +1 -1
- package/dist-cjs/commands/ClaimPreKeyBundleCommand.js +1 -1
- package/dist-cjs/commands/CompleteLivenessSessionCommand.js +1 -1
- package/dist-cjs/commands/CompleteOnboardingCommand.js +1 -1
- package/dist-cjs/commands/CreateLivenessSessionCommand.js +1 -1
- package/dist-cjs/commands/DeleteMatchMessagesCommand.js +1 -1
- package/dist-cjs/commands/DeleteProfileCommand.js +1 -1
- package/dist-cjs/commands/DiscoverCommand.js +1 -1
- package/dist-cjs/commands/GenerateInviteCommand.js +1 -1
- package/dist-cjs/commands/GenerateUploadUrlCommand.js +1 -1
- package/dist-cjs/commands/GetMatchCommand.js +1 -1
- package/dist-cjs/commands/GetMyProfileCommand.js +1 -1
- package/dist-cjs/commands/GetPreferencesCommand.js +1 -1
- package/dist-cjs/commands/GetProfileCommand.js +1 -1
- package/dist-cjs/commands/GetStateCommand.js +1 -1
- package/dist-cjs/commands/GetUserByEmailCommand.js +1 -1
- package/dist-cjs/commands/GetUserCommand.js +1 -1
- package/dist-cjs/commands/IndexLocationCommand.js +1 -1
- package/dist-cjs/commands/InitUserCommand.js +1 -1
- package/dist-cjs/commands/LinkEmailCommand.js +1 -1
- package/dist-cjs/commands/LinkSocialCommand.js +1 -1
- package/dist-cjs/commands/RegisterPhoneCommand.js +1 -1
- package/dist-cjs/commands/RemoveLocationCommand.js +1 -1
- package/dist-cjs/commands/RequestEmailOtpCommand.js +1 -1
- package/dist-cjs/commands/RequestPhoneOtpCommand.js +1 -1
- package/dist-cjs/commands/RequestPhoneUpdateOtpCommand.js +1 -1
- package/dist-cjs/commands/SwipeCommand.js +1 -1
- package/dist-cjs/commands/UnhookCommand.js +1 -1
- package/dist-cjs/commands/UnlinkSocialCommand.js +1 -1
- package/dist-cjs/commands/UpdateEntitlementsCommand.js +1 -1
- package/dist-cjs/commands/UpdatePhoneNumberCommand.js +1 -1
- package/dist-cjs/commands/UpdatePreferencesCommand.js +1 -1
- package/dist-cjs/commands/UpdateProfileCommand.js +1 -1
- package/dist-cjs/commands/UpgradeUserCommand.js +1 -1
- package/dist-cjs/commands/UploadPreKeysCommand.js +1 -1
- package/dist-cjs/commands/ValidateInviteCommand.js +1 -1
- package/dist-cjs/endpoints.js +232 -0
- package/dist-cjs/graphql/types.js +1 -1
- package/dist-cjs/index.js +5 -5
- package/dist-cjs/models/{OneHookServiceServiceException.js → OneHookServiceException.js} +4 -4
- package/dist-cjs/models/models_0.js +17 -13
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-cjs/runtimeConfig.browser.js +7 -1
- package/dist-cjs/runtimeConfig.js +13 -4
- package/dist-cjs/runtimeConfig.shared.js +8 -5
- package/dist-cjs/runtimeExtensions.js +3 -12
- package/dist-es/{OneHookService.js → OneHook.js} +3 -3
- package/dist-es/{OneHookServiceClient.js → OneHookClient.js} +16 -11
- package/dist-es/auth/httpAuthExtensionConfiguration.js +8 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +22 -9
- package/dist-es/commands/AuthSocialCommand.js +1 -1
- package/dist-es/commands/ClaimPreKeyBundleCommand.js +1 -1
- package/dist-es/commands/CompleteLivenessSessionCommand.js +1 -1
- package/dist-es/commands/CompleteOnboardingCommand.js +1 -1
- package/dist-es/commands/CreateLivenessSessionCommand.js +1 -1
- package/dist-es/commands/DeleteMatchMessagesCommand.js +1 -1
- package/dist-es/commands/DeleteProfileCommand.js +1 -1
- package/dist-es/commands/DiscoverCommand.js +1 -1
- package/dist-es/commands/GenerateInviteCommand.js +1 -1
- package/dist-es/commands/GenerateUploadUrlCommand.js +1 -1
- package/dist-es/commands/GetMatchCommand.js +1 -1
- package/dist-es/commands/GetMyProfileCommand.js +1 -1
- package/dist-es/commands/GetPreferencesCommand.js +1 -1
- package/dist-es/commands/GetProfileCommand.js +1 -1
- package/dist-es/commands/GetStateCommand.js +1 -1
- package/dist-es/commands/GetUserByEmailCommand.js +1 -1
- package/dist-es/commands/GetUserCommand.js +1 -1
- package/dist-es/commands/IndexLocationCommand.js +1 -1
- package/dist-es/commands/InitUserCommand.js +1 -1
- package/dist-es/commands/LinkEmailCommand.js +1 -1
- package/dist-es/commands/LinkSocialCommand.js +1 -1
- package/dist-es/commands/RegisterPhoneCommand.js +1 -1
- package/dist-es/commands/RemoveLocationCommand.js +1 -1
- package/dist-es/commands/RequestEmailOtpCommand.js +1 -1
- package/dist-es/commands/RequestPhoneOtpCommand.js +1 -1
- package/dist-es/commands/RequestPhoneUpdateOtpCommand.js +1 -1
- package/dist-es/commands/SwipeCommand.js +1 -1
- package/dist-es/commands/UnhookCommand.js +1 -1
- package/dist-es/commands/UnlinkSocialCommand.js +1 -1
- package/dist-es/commands/UpdateEntitlementsCommand.js +1 -1
- package/dist-es/commands/UpdatePhoneNumberCommand.js +1 -1
- package/dist-es/commands/UpdatePreferencesCommand.js +1 -1
- package/dist-es/commands/UpdateProfileCommand.js +1 -1
- package/dist-es/commands/UpgradeUserCommand.js +1 -1
- package/dist-es/commands/UploadPreKeysCommand.js +1 -1
- package/dist-es/commands/ValidateInviteCommand.js +1 -1
- package/dist-es/endpoints.js +228 -0
- package/dist-es/index.js +3 -3
- package/dist-es/models/{OneHookServiceServiceException.js → OneHookServiceException.js} +2 -2
- package/dist-es/models/models_0.js +13 -9
- package/dist-es/protocols/Aws_restJson1.js +1 -1
- package/dist-es/runtimeConfig.browser.js +7 -1
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-es/runtimeConfig.shared.js +9 -6
- package/dist-es/runtimeExtensions.js +3 -12
- package/dist-types/{OneHookService.d.ts → OneHook.d.ts} +3 -3
- package/dist-types/{OneHookServiceClient.d.ts → OneHookClient.d.ts} +58 -12
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +8 -5
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +13 -11
- package/dist-types/commands/AuthSocialCommand.d.ts +11 -10
- package/dist-types/commands/ClaimPreKeyBundleCommand.d.ts +11 -10
- package/dist-types/commands/CompleteLivenessSessionCommand.d.ts +11 -10
- package/dist-types/commands/CompleteOnboardingCommand.d.ts +11 -10
- package/dist-types/commands/CreateLivenessSessionCommand.d.ts +11 -10
- package/dist-types/commands/DeleteMatchMessagesCommand.d.ts +11 -10
- package/dist-types/commands/DeleteProfileCommand.d.ts +11 -10
- package/dist-types/commands/DiscoverCommand.d.ts +11 -10
- package/dist-types/commands/GenerateInviteCommand.d.ts +11 -10
- package/dist-types/commands/GenerateUploadUrlCommand.d.ts +11 -10
- package/dist-types/commands/GetMatchCommand.d.ts +11 -10
- package/dist-types/commands/GetMyProfileCommand.d.ts +11 -10
- package/dist-types/commands/GetPreferencesCommand.d.ts +11 -10
- package/dist-types/commands/GetProfileCommand.d.ts +11 -10
- package/dist-types/commands/GetStateCommand.d.ts +11 -10
- package/dist-types/commands/GetUserByEmailCommand.d.ts +11 -10
- package/dist-types/commands/GetUserCommand.d.ts +11 -10
- package/dist-types/commands/IndexLocationCommand.d.ts +11 -10
- package/dist-types/commands/InitUserCommand.d.ts +11 -10
- package/dist-types/commands/LinkEmailCommand.d.ts +11 -10
- package/dist-types/commands/LinkSocialCommand.d.ts +11 -10
- package/dist-types/commands/RegisterPhoneCommand.d.ts +11 -10
- package/dist-types/commands/RemoveLocationCommand.d.ts +11 -10
- package/dist-types/commands/RequestEmailOtpCommand.d.ts +11 -10
- package/dist-types/commands/RequestPhoneOtpCommand.d.ts +11 -10
- package/dist-types/commands/RequestPhoneUpdateOtpCommand.d.ts +11 -10
- package/dist-types/commands/SwipeCommand.d.ts +11 -10
- package/dist-types/commands/UnhookCommand.d.ts +11 -10
- package/dist-types/commands/UnlinkSocialCommand.d.ts +11 -10
- package/dist-types/commands/UpdateEntitlementsCommand.d.ts +11 -10
- package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +11 -10
- package/dist-types/commands/UpdatePreferencesCommand.d.ts +11 -10
- package/dist-types/commands/UpdateProfileCommand.d.ts +11 -10
- package/dist-types/commands/UpgradeUserCommand.d.ts +11 -10
- package/dist-types/commands/UploadPreKeysCommand.d.ts +11 -10
- package/dist-types/commands/ValidateInviteCommand.d.ts +11 -10
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/index.d.ts +4 -4
- package/dist-types/models/{OneHookServiceServiceException.d.ts → OneHookServiceException.d.ts} +2 -2
- package/dist-types/models/models_0.d.ts +5 -1
- package/dist-types/runtimeConfig.browser.d.ts +28 -13
- package/dist-types/runtimeConfig.d.ts +28 -13
- package/dist-types/runtimeConfig.native.d.ts +28 -13
- package/dist-types/runtimeConfig.shared.d.ts +6 -10
- package/dist-types/runtimeExtensions.d.ts +2 -2
- package/package.json +38 -36
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
2
|
import { StatusResponse, UpdatePreferencesRequest } from "../models/models_0";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
@@ -22,9 +22,9 @@ export interface UpdatePreferencesCommandInput extends UpdatePreferencesRequest
|
|
|
22
22
|
export interface UpdatePreferencesCommandOutput extends StatusResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const UpdatePreferencesCommand_base: {
|
|
25
|
-
new (input: UpdatePreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput,
|
|
26
|
-
new (__0_0: UpdatePreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput,
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/
|
|
25
|
+
new (input: UpdatePreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdatePreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* @public
|
|
@@ -32,9 +32,9 @@ declare const UpdatePreferencesCommand_base: {
|
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|
|
35
|
-
* import {
|
|
36
|
-
* // const {
|
|
37
|
-
* const client = new
|
|
35
|
+
* import { OneHookClient, UpdatePreferencesCommand } from "onehook-api-client"; // ES Modules import
|
|
36
|
+
* // const { OneHookClient, UpdatePreferencesCommand } = require("onehook-api-client"); // CommonJS import
|
|
37
|
+
* const client = new OneHookClient(config);
|
|
38
38
|
* const input = { // UpdatePreferencesRequest
|
|
39
39
|
* userId: "STRING_VALUE", // required
|
|
40
40
|
* minAge: Number("int"),
|
|
@@ -56,14 +56,15 @@ declare const UpdatePreferencesCommand_base: {
|
|
|
56
56
|
* @returns {@link UpdatePreferencesCommandOutput}
|
|
57
57
|
* @see {@link UpdatePreferencesCommandInput} for command's `input` shape.
|
|
58
58
|
* @see {@link UpdatePreferencesCommandOutput} for command's `response` shape.
|
|
59
|
-
* @see {@link
|
|
59
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
60
60
|
*
|
|
61
61
|
* @throws {@link BadRequestError} (client fault)
|
|
62
62
|
*
|
|
63
63
|
* @throws {@link InternalServerError} (server fault)
|
|
64
64
|
*
|
|
65
|
-
* @throws {@link
|
|
66
|
-
* <p>Base exception class for all service exceptions from
|
|
65
|
+
* @throws {@link OneHookServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
67
|
+
*
|
|
67
68
|
*
|
|
68
69
|
*/
|
|
69
70
|
export declare class UpdatePreferencesCommand extends UpdatePreferencesCommand_base {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
2
|
import { ProfileUpdateRequest, StatusResponse } from "../models/models_0";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
@@ -22,9 +22,9 @@ export interface UpdateProfileCommandInput extends ProfileUpdateRequest {
|
|
|
22
22
|
export interface UpdateProfileCommandOutput extends StatusResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const UpdateProfileCommand_base: {
|
|
25
|
-
new (input: UpdateProfileCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateProfileCommandInput, UpdateProfileCommandOutput,
|
|
26
|
-
new (...[input]: [] | [UpdateProfileCommandInput]): import("@smithy/smithy-client").CommandImpl<UpdateProfileCommandInput, UpdateProfileCommandOutput,
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/
|
|
25
|
+
new (input: UpdateProfileCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateProfileCommandInput, UpdateProfileCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [UpdateProfileCommandInput]): import("@smithy/smithy-client").CommandImpl<UpdateProfileCommandInput, UpdateProfileCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* @public
|
|
@@ -32,9 +32,9 @@ declare const UpdateProfileCommand_base: {
|
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|
|
35
|
-
* import {
|
|
36
|
-
* // const {
|
|
37
|
-
* const client = new
|
|
35
|
+
* import { OneHookClient, UpdateProfileCommand } from "onehook-api-client"; // ES Modules import
|
|
36
|
+
* // const { OneHookClient, UpdateProfileCommand } = require("onehook-api-client"); // CommonJS import
|
|
37
|
+
* const client = new OneHookClient(config);
|
|
38
38
|
* const input = { // ProfileUpdateRequest
|
|
39
39
|
* displayName: "STRING_VALUE",
|
|
40
40
|
* bio: "STRING_VALUE",
|
|
@@ -105,14 +105,15 @@ declare const UpdateProfileCommand_base: {
|
|
|
105
105
|
* @returns {@link UpdateProfileCommandOutput}
|
|
106
106
|
* @see {@link UpdateProfileCommandInput} for command's `input` shape.
|
|
107
107
|
* @see {@link UpdateProfileCommandOutput} for command's `response` shape.
|
|
108
|
-
* @see {@link
|
|
108
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
109
109
|
*
|
|
110
110
|
* @throws {@link BadRequestError} (client fault)
|
|
111
111
|
*
|
|
112
112
|
* @throws {@link InternalServerError} (server fault)
|
|
113
113
|
*
|
|
114
|
-
* @throws {@link
|
|
115
|
-
* <p>Base exception class for all service exceptions from
|
|
114
|
+
* @throws {@link OneHookServiceException}
|
|
115
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
116
|
+
*
|
|
116
117
|
*
|
|
117
118
|
*/
|
|
118
119
|
export declare class UpdateProfileCommand extends UpdateProfileCommand_base {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
2
|
import { UpgradeUserRequest, UserStateResponse } from "../models/models_0";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
@@ -22,9 +22,9 @@ export interface UpgradeUserCommandInput extends UpgradeUserRequest {
|
|
|
22
22
|
export interface UpgradeUserCommandOutput extends UserStateResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const UpgradeUserCommand_base: {
|
|
25
|
-
new (input: UpgradeUserCommandInput): import("@smithy/smithy-client").CommandImpl<UpgradeUserCommandInput, UpgradeUserCommandOutput,
|
|
26
|
-
new (...[input]: [] | [UpgradeUserCommandInput]): import("@smithy/smithy-client").CommandImpl<UpgradeUserCommandInput, UpgradeUserCommandOutput,
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/
|
|
25
|
+
new (input: UpgradeUserCommandInput): import("@smithy/smithy-client").CommandImpl<UpgradeUserCommandInput, UpgradeUserCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [UpgradeUserCommandInput]): import("@smithy/smithy-client").CommandImpl<UpgradeUserCommandInput, UpgradeUserCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* @public
|
|
@@ -32,9 +32,9 @@ declare const UpgradeUserCommand_base: {
|
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|
|
35
|
-
* import {
|
|
36
|
-
* // const {
|
|
37
|
-
* const client = new
|
|
35
|
+
* import { OneHookClient, UpgradeUserCommand } from "onehook-api-client"; // ES Modules import
|
|
36
|
+
* // const { OneHookClient, UpgradeUserCommand } = require("onehook-api-client"); // CommonJS import
|
|
37
|
+
* const client = new OneHookClient(config);
|
|
38
38
|
* const input = {};
|
|
39
39
|
* const command = new UpgradeUserCommand(input);
|
|
40
40
|
* const response = await client.send(command);
|
|
@@ -54,7 +54,7 @@ declare const UpgradeUserCommand_base: {
|
|
|
54
54
|
* @returns {@link UpgradeUserCommandOutput}
|
|
55
55
|
* @see {@link UpgradeUserCommandInput} for command's `input` shape.
|
|
56
56
|
* @see {@link UpgradeUserCommandOutput} for command's `response` shape.
|
|
57
|
-
* @see {@link
|
|
57
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
58
58
|
*
|
|
59
59
|
* @throws {@link BadRequestError} (client fault)
|
|
60
60
|
*
|
|
@@ -62,8 +62,9 @@ declare const UpgradeUserCommand_base: {
|
|
|
62
62
|
*
|
|
63
63
|
* @throws {@link InternalServerError} (server fault)
|
|
64
64
|
*
|
|
65
|
-
* @throws {@link
|
|
66
|
-
* <p>Base exception class for all service exceptions from
|
|
65
|
+
* @throws {@link OneHookServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
67
|
+
*
|
|
67
68
|
*
|
|
68
69
|
*/
|
|
69
70
|
export declare class UpgradeUserCommand extends UpgradeUserCommand_base {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
2
|
import { StatusResponse, UploadPreKeysRequest } from "../models/models_0";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
@@ -22,18 +22,18 @@ export interface UploadPreKeysCommandInput extends UploadPreKeysRequest {
|
|
|
22
22
|
export interface UploadPreKeysCommandOutput extends StatusResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const UploadPreKeysCommand_base: {
|
|
25
|
-
new (input: UploadPreKeysCommandInput): import("@smithy/smithy-client").CommandImpl<UploadPreKeysCommandInput, UploadPreKeysCommandOutput,
|
|
26
|
-
new (__0_0: UploadPreKeysCommandInput): import("@smithy/smithy-client").CommandImpl<UploadPreKeysCommandInput, UploadPreKeysCommandOutput,
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/
|
|
25
|
+
new (input: UploadPreKeysCommandInput): import("@smithy/smithy-client").CommandImpl<UploadPreKeysCommandInput, UploadPreKeysCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UploadPreKeysCommandInput): import("@smithy/smithy-client").CommandImpl<UploadPreKeysCommandInput, UploadPreKeysCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* Upload (or replenish) the caller's own E2EE pre-keys.
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
34
|
-
* import {
|
|
35
|
-
* // const {
|
|
36
|
-
* const client = new
|
|
34
|
+
* import { OneHookClient, UploadPreKeysCommand } from "onehook-api-client"; // ES Modules import
|
|
35
|
+
* // const { OneHookClient, UploadPreKeysCommand } = require("onehook-api-client"); // CommonJS import
|
|
36
|
+
* const client = new OneHookClient(config);
|
|
37
37
|
* const input = { // UploadPreKeysRequest
|
|
38
38
|
* identityKey: "STRING_VALUE", // required
|
|
39
39
|
* signedPreKey: "STRING_VALUE", // required
|
|
@@ -53,7 +53,7 @@ declare const UploadPreKeysCommand_base: {
|
|
|
53
53
|
* @returns {@link UploadPreKeysCommandOutput}
|
|
54
54
|
* @see {@link UploadPreKeysCommandInput} for command's `input` shape.
|
|
55
55
|
* @see {@link UploadPreKeysCommandOutput} for command's `response` shape.
|
|
56
|
-
* @see {@link
|
|
56
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
57
57
|
*
|
|
58
58
|
* @throws {@link BadRequestError} (client fault)
|
|
59
59
|
*
|
|
@@ -61,8 +61,9 @@ declare const UploadPreKeysCommand_base: {
|
|
|
61
61
|
*
|
|
62
62
|
* @throws {@link InternalServerError} (server fault)
|
|
63
63
|
*
|
|
64
|
-
* @throws {@link
|
|
65
|
-
* <p>Base exception class for all service exceptions from
|
|
64
|
+
* @throws {@link OneHookServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
66
|
+
*
|
|
66
67
|
*
|
|
67
68
|
* @public
|
|
68
69
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
2
|
import { ValidateInviteRequest, ValidateInviteResponse } from "../models/models_0";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
@@ -22,9 +22,9 @@ export interface ValidateInviteCommandInput extends ValidateInviteRequest {
|
|
|
22
22
|
export interface ValidateInviteCommandOutput extends ValidateInviteResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const ValidateInviteCommand_base: {
|
|
25
|
-
new (input: ValidateInviteCommandInput): import("@smithy/smithy-client").CommandImpl<ValidateInviteCommandInput, ValidateInviteCommandOutput,
|
|
26
|
-
new (__0_0: ValidateInviteCommandInput): import("@smithy/smithy-client").CommandImpl<ValidateInviteCommandInput, ValidateInviteCommandOutput,
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/
|
|
25
|
+
new (input: ValidateInviteCommandInput): import("@smithy/smithy-client").CommandImpl<ValidateInviteCommandInput, ValidateInviteCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ValidateInviteCommandInput): import("@smithy/smithy-client").CommandImpl<ValidateInviteCommandInput, ValidateInviteCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* @public
|
|
@@ -32,9 +32,9 @@ declare const ValidateInviteCommand_base: {
|
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|
|
35
|
-
* import {
|
|
36
|
-
* // const {
|
|
37
|
-
* const client = new
|
|
35
|
+
* import { OneHookClient, ValidateInviteCommand } from "onehook-api-client"; // ES Modules import
|
|
36
|
+
* // const { OneHookClient, ValidateInviteCommand } = require("onehook-api-client"); // CommonJS import
|
|
37
|
+
* const client = new OneHookClient(config);
|
|
38
38
|
* const input = { // ValidateInviteRequest
|
|
39
39
|
* inviteCode: "STRING_VALUE", // required
|
|
40
40
|
* };
|
|
@@ -53,14 +53,15 @@ declare const ValidateInviteCommand_base: {
|
|
|
53
53
|
* @returns {@link ValidateInviteCommandOutput}
|
|
54
54
|
* @see {@link ValidateInviteCommandInput} for command's `input` shape.
|
|
55
55
|
* @see {@link ValidateInviteCommandOutput} for command's `response` shape.
|
|
56
|
-
* @see {@link
|
|
56
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
57
57
|
*
|
|
58
58
|
* @throws {@link BadRequestError} (client fault)
|
|
59
59
|
*
|
|
60
60
|
* @throws {@link InternalServerError} (server fault)
|
|
61
61
|
*
|
|
62
|
-
* @throws {@link
|
|
63
|
-
* <p>Base exception class for all service exceptions from
|
|
62
|
+
* @throws {@link OneHookServiceException}
|
|
63
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
64
|
+
*
|
|
64
65
|
*
|
|
65
66
|
*/
|
|
66
67
|
export declare class ValidateInviteCommand extends ValidateInviteCommand_base {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
2
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
3
|
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
4
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
5
|
/**
|
|
5
6
|
* @internal
|
|
6
7
|
*/
|
|
7
|
-
export interface
|
|
8
|
+
export interface OneHookExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
8
9
|
}
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
1
|
+
export * from "./OneHookClient";
|
|
2
|
+
export * from "./OneHook";
|
|
3
3
|
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
4
|
-
export type {
|
|
4
|
+
export type { OneHookExtensionConfiguration } from "./extensionConfiguration";
|
|
5
5
|
export * from "./commands";
|
|
6
6
|
export * from "./models";
|
|
7
|
-
export {
|
|
7
|
+
export { OneHookServiceException } from "./models/OneHookServiceException";
|
package/dist-types/models/{OneHookServiceServiceException.d.ts → OneHookServiceException.d.ts}
RENAMED
|
@@ -4,9 +4,9 @@ export { __ServiceException };
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*
|
|
7
|
-
* Base exception class for all service exceptions from
|
|
7
|
+
* Base exception class for all service exceptions from OneHook service.
|
|
8
8
|
*/
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class OneHookServiceException extends __ServiceException {
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OneHookServiceException as __BaseException } from "./OneHookServiceException";
|
|
2
2
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
@@ -289,6 +289,10 @@ export interface PhoneResponse {
|
|
|
289
289
|
*/
|
|
290
290
|
export interface UpdatePhoneNumberRequest {
|
|
291
291
|
phoneNumber: string | undefined;
|
|
292
|
+
/**
|
|
293
|
+
* The OTP sent to the new phone number.
|
|
294
|
+
* @public
|
|
295
|
+
*/
|
|
292
296
|
otp: string | undefined;
|
|
293
297
|
}
|
|
294
298
|
/**
|
|
@@ -1,20 +1,31 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
1
3
|
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
-
import {
|
|
4
|
+
import { OneHookClientConfig } from "./OneHookClient";
|
|
3
5
|
/**
|
|
4
6
|
* @internal
|
|
5
7
|
*/
|
|
6
|
-
export declare const getRuntimeConfig: (config:
|
|
8
|
+
export declare const getRuntimeConfig: (config: OneHookClientConfig) => {
|
|
7
9
|
runtime: string;
|
|
8
10
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
11
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
12
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
10
13
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
11
14
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
15
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
12
16
|
requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
|
|
13
17
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
14
18
|
sha256: import("@smithy/types").HashConstructor;
|
|
15
|
-
streamCollector: import("
|
|
16
|
-
|
|
19
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream<any> | ReadableStream<any> | Blob) => Promise<Uint8Array>;
|
|
20
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
17
22
|
cacheMiddleware?: boolean | undefined;
|
|
23
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
24
|
+
protocolSettings?: {
|
|
25
|
+
[setting: string]: unknown;
|
|
26
|
+
defaultNamespace?: string | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
apiVersion: string;
|
|
18
29
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
30
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
31
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -23,16 +34,20 @@ export declare const getRuntimeConfig: (config: OneHookServiceClientConfig) => {
|
|
|
23
34
|
disableHostPrefix: boolean;
|
|
24
35
|
logger: import("@smithy/types").Logger;
|
|
25
36
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
37
|
+
serviceId: string;
|
|
38
|
+
profile?: string | undefined;
|
|
39
|
+
regionInfoProvider: import("@smithy/types").RegionInfoProvider;
|
|
29
40
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
41
|
+
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | undefined;
|
|
42
|
+
tls?: boolean | undefined;
|
|
30
43
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
31
44
|
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
32
|
-
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[]
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
45
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
46
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").OneHookHttpAuthSchemeProvider;
|
|
47
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
48
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
49
|
+
signingEscapePath?: boolean | undefined;
|
|
50
|
+
systemClockOffset?: number | undefined;
|
|
51
|
+
signingRegion?: string | undefined;
|
|
52
|
+
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
38
53
|
};
|
|
@@ -1,21 +1,32 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
1
3
|
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
-
import {
|
|
4
|
+
import { OneHookClientConfig } from "./OneHookClient";
|
|
3
5
|
/**
|
|
4
6
|
* @internal
|
|
5
7
|
*/
|
|
6
|
-
export declare const getRuntimeConfig: (config:
|
|
8
|
+
export declare const getRuntimeConfig: (config: OneHookClientConfig) => {
|
|
7
9
|
runtime: string;
|
|
8
10
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
11
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
12
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
|
|
10
13
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
11
14
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
15
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
12
16
|
requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
|
|
13
17
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
14
18
|
sha256: import("@smithy/types").HashConstructor;
|
|
15
|
-
streamCollector: import("
|
|
19
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream<any> | ReadableStream<any> | Blob) => Promise<Uint8Array>;
|
|
20
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
16
22
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
17
|
-
apiVersion: string;
|
|
18
23
|
cacheMiddleware?: boolean | undefined;
|
|
24
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
25
|
+
protocolSettings?: {
|
|
26
|
+
[setting: string]: unknown;
|
|
27
|
+
defaultNamespace?: string | undefined;
|
|
28
|
+
} | undefined;
|
|
29
|
+
apiVersion: string;
|
|
19
30
|
urlParser: import("@smithy/types").UrlParser;
|
|
20
31
|
base64Decoder: import("@smithy/types").Decoder;
|
|
21
32
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -24,15 +35,19 @@ export declare const getRuntimeConfig: (config: OneHookServiceClientConfig) => {
|
|
|
24
35
|
disableHostPrefix: boolean;
|
|
25
36
|
logger: import("@smithy/types").Logger;
|
|
26
37
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
38
|
+
serviceId: string;
|
|
39
|
+
profile?: string | undefined;
|
|
40
|
+
regionInfoProvider: import("@smithy/types").RegionInfoProvider;
|
|
30
41
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
42
|
+
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | undefined;
|
|
43
|
+
tls?: boolean | undefined;
|
|
31
44
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
32
|
-
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[]
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
45
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
46
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").OneHookHttpAuthSchemeProvider;
|
|
47
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
48
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
49
|
+
signingEscapePath?: boolean | undefined;
|
|
50
|
+
systemClockOffset?: number | undefined;
|
|
51
|
+
signingRegion?: string | undefined;
|
|
52
|
+
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
38
53
|
};
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { OneHookClientConfig } from "./OneHookClient";
|
|
2
4
|
/**
|
|
3
5
|
* @internal
|
|
4
6
|
*/
|
|
5
|
-
export declare const getRuntimeConfig: (config:
|
|
7
|
+
export declare const getRuntimeConfig: (config: OneHookClientConfig) => {
|
|
6
8
|
runtime: string;
|
|
7
9
|
sha256: import("@smithy/types").HashConstructor;
|
|
8
10
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
|
-
apiVersion: string;
|
|
10
11
|
cacheMiddleware?: boolean | undefined;
|
|
12
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
13
|
+
protocolSettings?: {
|
|
14
|
+
[setting: string]: unknown;
|
|
15
|
+
defaultNamespace?: string | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
apiVersion: string;
|
|
11
18
|
urlParser: import("@smithy/types").UrlParser;
|
|
12
19
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
13
|
-
streamCollector: import("
|
|
20
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream<any> | ReadableStream<any> | Blob) => Promise<Uint8Array>;
|
|
14
21
|
base64Decoder: import("@smithy/types").Decoder;
|
|
15
22
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
16
23
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -21,17 +28,25 @@ export declare const getRuntimeConfig: (config: OneHookServiceClientConfig) => {
|
|
|
21
28
|
logger: import("@smithy/types").Logger;
|
|
22
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
23
30
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
|
+
serviceId: string;
|
|
32
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
33
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
34
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
35
|
+
profile?: string | undefined;
|
|
36
|
+
regionInfoProvider: import("@smithy/types").RegionInfoProvider;
|
|
24
37
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
25
|
-
|
|
26
|
-
tls?: boolean | undefined;
|
|
27
|
-
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean> | undefined;
|
|
38
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
28
39
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
40
|
+
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | undefined;
|
|
41
|
+
tls?: boolean | undefined;
|
|
29
42
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
30
43
|
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
31
|
-
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[]
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
44
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
45
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").OneHookHttpAuthSchemeProvider;
|
|
46
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
47
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
48
|
+
signingEscapePath?: boolean | undefined;
|
|
49
|
+
systemClockOffset?: number | undefined;
|
|
50
|
+
signingRegion?: string | undefined;
|
|
51
|
+
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
37
52
|
};
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IdentityProviderConfig } from "@smithy/types";
|
|
3
|
-
import { OneHookServiceClientConfig } from "./OneHookServiceClient";
|
|
1
|
+
import { OneHookClientConfig } from "./OneHookClient";
|
|
4
2
|
/**
|
|
5
3
|
* @internal
|
|
6
4
|
*/
|
|
7
|
-
export declare const getRuntimeConfig: (config:
|
|
5
|
+
export declare const getRuntimeConfig: (config: OneHookClientConfig) => {
|
|
8
6
|
apiVersion: string;
|
|
9
7
|
base64Decoder: import("@smithy/types").Decoder;
|
|
10
8
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
11
9
|
disableHostPrefix: boolean;
|
|
12
10
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
13
|
-
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").
|
|
14
|
-
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[]
|
|
15
|
-
schemeId: string;
|
|
16
|
-
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
17
|
-
signer: NoAuthSigner;
|
|
18
|
-
}[];
|
|
11
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").OneHookHttpAuthSchemeProvider;
|
|
12
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
19
13
|
logger: import("@smithy/types").Logger;
|
|
14
|
+
regionInfoProvider: import("@smithy/types").RegionInfoProvider;
|
|
15
|
+
serviceId: string;
|
|
20
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
17
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
22
18
|
utf8Encoder: (input: string | Uint8Array) => string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OneHookExtensionConfiguration } from "./extensionConfiguration";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface RuntimeExtension {
|
|
6
|
-
configure(extensionConfiguration:
|
|
6
|
+
configure(extensionConfiguration: OneHookExtensionConfiguration): void;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* @public
|