onehook-api-client 1.0.0
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/LICENSE +201 -0
- package/dist-cjs/OneHookService.js +83 -0
- package/dist-cjs/OneHookServiceClient.js +43 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +35 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +35 -0
- package/dist-cjs/commands/AuthSocialCommand.js +21 -0
- package/dist-cjs/commands/ClaimPreKeyBundleCommand.js +21 -0
- package/dist-cjs/commands/CompleteLivenessSessionCommand.js +21 -0
- package/dist-cjs/commands/CompleteOnboardingCommand.js +21 -0
- package/dist-cjs/commands/CreateLivenessSessionCommand.js +21 -0
- package/dist-cjs/commands/DeleteMatchMessagesCommand.js +21 -0
- package/dist-cjs/commands/DeleteProfileCommand.js +21 -0
- package/dist-cjs/commands/DiscoverCommand.js +21 -0
- package/dist-cjs/commands/GenerateInviteCommand.js +21 -0
- package/dist-cjs/commands/GenerateUploadUrlCommand.js +21 -0
- package/dist-cjs/commands/GetMatchCommand.js +21 -0
- package/dist-cjs/commands/GetMyProfileCommand.js +21 -0
- package/dist-cjs/commands/GetPreferencesCommand.js +21 -0
- package/dist-cjs/commands/GetProfileCommand.js +21 -0
- package/dist-cjs/commands/GetStateCommand.js +21 -0
- package/dist-cjs/commands/GetUserByEmailCommand.js +21 -0
- package/dist-cjs/commands/GetUserCommand.js +21 -0
- package/dist-cjs/commands/IndexLocationCommand.js +21 -0
- package/dist-cjs/commands/InitUserCommand.js +21 -0
- package/dist-cjs/commands/LinkEmailCommand.js +21 -0
- package/dist-cjs/commands/LinkSocialCommand.js +21 -0
- package/dist-cjs/commands/RegisterPhoneCommand.js +21 -0
- package/dist-cjs/commands/RemoveLocationCommand.js +21 -0
- package/dist-cjs/commands/RequestEmailOtpCommand.js +21 -0
- package/dist-cjs/commands/RequestPhoneOtpCommand.js +21 -0
- package/dist-cjs/commands/RequestPhoneUpdateOtpCommand.js +21 -0
- package/dist-cjs/commands/SwipeCommand.js +21 -0
- package/dist-cjs/commands/UnhookCommand.js +21 -0
- package/dist-cjs/commands/UnlinkSocialCommand.js +21 -0
- package/dist-cjs/commands/UpdateEntitlementsCommand.js +21 -0
- package/dist-cjs/commands/UpdatePhoneNumberCommand.js +21 -0
- package/dist-cjs/commands/UpdatePreferencesCommand.js +21 -0
- package/dist-cjs/commands/UpdateProfileCommand.js +21 -0
- package/dist-cjs/commands/UpgradeUserCommand.js +21 -0
- package/dist-cjs/commands/UploadPreKeysCommand.js +21 -0
- package/dist-cjs/commands/ValidateInviteCommand.js +21 -0
- package/dist-cjs/commands/index.js +39 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/graphql/types.js +11 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/OneHookServiceServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +60 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1349 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +37 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +29 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/OneHookService.js +79 -0
- package/dist-es/OneHookServiceClient.js +39 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +30 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +29 -0
- package/dist-es/commands/AuthSocialCommand.js +17 -0
- package/dist-es/commands/ClaimPreKeyBundleCommand.js +17 -0
- package/dist-es/commands/CompleteLivenessSessionCommand.js +17 -0
- package/dist-es/commands/CompleteOnboardingCommand.js +17 -0
- package/dist-es/commands/CreateLivenessSessionCommand.js +17 -0
- package/dist-es/commands/DeleteMatchMessagesCommand.js +17 -0
- package/dist-es/commands/DeleteProfileCommand.js +17 -0
- package/dist-es/commands/DiscoverCommand.js +17 -0
- package/dist-es/commands/GenerateInviteCommand.js +17 -0
- package/dist-es/commands/GenerateUploadUrlCommand.js +17 -0
- package/dist-es/commands/GetMatchCommand.js +17 -0
- package/dist-es/commands/GetMyProfileCommand.js +17 -0
- package/dist-es/commands/GetPreferencesCommand.js +17 -0
- package/dist-es/commands/GetProfileCommand.js +17 -0
- package/dist-es/commands/GetStateCommand.js +17 -0
- package/dist-es/commands/GetUserByEmailCommand.js +17 -0
- package/dist-es/commands/GetUserCommand.js +17 -0
- package/dist-es/commands/IndexLocationCommand.js +17 -0
- package/dist-es/commands/InitUserCommand.js +17 -0
- package/dist-es/commands/LinkEmailCommand.js +17 -0
- package/dist-es/commands/LinkSocialCommand.js +17 -0
- package/dist-es/commands/RegisterPhoneCommand.js +17 -0
- package/dist-es/commands/RemoveLocationCommand.js +17 -0
- package/dist-es/commands/RequestEmailOtpCommand.js +17 -0
- package/dist-es/commands/RequestPhoneOtpCommand.js +17 -0
- package/dist-es/commands/RequestPhoneUpdateOtpCommand.js +17 -0
- package/dist-es/commands/SwipeCommand.js +17 -0
- package/dist-es/commands/UnhookCommand.js +17 -0
- package/dist-es/commands/UnlinkSocialCommand.js +17 -0
- package/dist-es/commands/UpdateEntitlementsCommand.js +17 -0
- package/dist-es/commands/UpdatePhoneNumberCommand.js +17 -0
- package/dist-es/commands/UpdatePreferencesCommand.js +17 -0
- package/dist-es/commands/UpdateProfileCommand.js +17 -0
- package/dist-es/commands/UpgradeUserCommand.js +17 -0
- package/dist-es/commands/UploadPreKeysCommand.js +17 -0
- package/dist-es/commands/ValidateInviteCommand.js +17 -0
- package/dist-es/commands/index.js +36 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/graphql/types.js +8 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/OneHookServiceServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +53 -0
- package/dist-es/protocols/Aws_restJson1.js +1273 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +32 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +25 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/OneHookService.d.ts +267 -0
- package/dist-types/OneHookServiceClient.d.ts +179 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +26 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +59 -0
- package/dist-types/commands/AuthSocialCommand.d.ts +78 -0
- package/dist-types/commands/ClaimPreKeyBundleCommand.d.ts +87 -0
- package/dist-types/commands/CompleteLivenessSessionCommand.d.ts +80 -0
- package/dist-types/commands/CompleteOnboardingCommand.d.ts +75 -0
- package/dist-types/commands/CreateLivenessSessionCommand.d.ts +75 -0
- package/dist-types/commands/DeleteMatchMessagesCommand.d.ts +77 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +77 -0
- package/dist-types/commands/DiscoverCommand.d.ts +84 -0
- package/dist-types/commands/GenerateInviteCommand.d.ts +78 -0
- package/dist-types/commands/GenerateUploadUrlCommand.d.ts +80 -0
- package/dist-types/commands/GetMatchCommand.d.ts +87 -0
- package/dist-types/commands/GetMyProfileCommand.d.ts +136 -0
- package/dist-types/commands/GetPreferencesCommand.d.ts +83 -0
- package/dist-types/commands/GetProfileCommand.d.ts +136 -0
- package/dist-types/commands/GetStateCommand.d.ts +83 -0
- package/dist-types/commands/GetUserByEmailCommand.d.ts +83 -0
- package/dist-types/commands/GetUserCommand.d.ts +83 -0
- package/dist-types/commands/IndexLocationCommand.d.ts +76 -0
- package/dist-types/commands/InitUserCommand.d.ts +73 -0
- package/dist-types/commands/LinkEmailCommand.d.ts +76 -0
- package/dist-types/commands/LinkSocialCommand.d.ts +76 -0
- package/dist-types/commands/RegisterPhoneCommand.d.ts +79 -0
- package/dist-types/commands/RemoveLocationCommand.d.ts +76 -0
- package/dist-types/commands/RequestEmailOtpCommand.d.ts +76 -0
- package/dist-types/commands/RequestPhoneOtpCommand.d.ts +75 -0
- package/dist-types/commands/RequestPhoneUpdateOtpCommand.d.ts +75 -0
- package/dist-types/commands/SwipeCommand.d.ts +79 -0
- package/dist-types/commands/UnhookCommand.d.ts +78 -0
- package/dist-types/commands/UnlinkSocialCommand.d.ts +75 -0
- package/dist-types/commands/UpdateEntitlementsCommand.d.ts +87 -0
- package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +77 -0
- package/dist-types/commands/UpdatePreferencesCommand.d.ts +81 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +130 -0
- package/dist-types/commands/UpgradeUserCommand.d.ts +81 -0
- package/dist-types/commands/UploadPreKeysCommand.d.ts +81 -0
- package/dist-types/commands/ValidateInviteCommand.d.ts +78 -0
- package/dist-types/commands/index.d.ts +36 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/graphql/types.d.ts +110 -0
- package/dist-types/index.d.ts +7 -0
- package/dist-types/models/OneHookServiceServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +614 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +326 -0
- package/dist-types/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/runtimeConfig.d.ts +38 -0
- package/dist-types/runtimeConfig.native.d.ts +37 -0
- package/dist-types/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +95 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
9
|
+
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
10
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
11
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
12
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
13
|
+
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
14
|
+
const getRuntimeConfig = (config) => {
|
|
15
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
17
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
18
|
+
return {
|
|
19
|
+
...clientSharedValues,
|
|
20
|
+
...config,
|
|
21
|
+
runtime: "browser",
|
|
22
|
+
defaultsMode,
|
|
23
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
24
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ clientVersion: package_json_1.default.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
26
|
+
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
28
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
29
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
7
|
+
const hash_node_1 = require("@smithy/hash-node");
|
|
8
|
+
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
9
|
+
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
10
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
11
|
+
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
12
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
13
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
14
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
16
|
+
const smithy_client_2 = require("@smithy/smithy-client");
|
|
17
|
+
const getRuntimeConfig = (config) => {
|
|
18
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
19
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
20
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
21
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
28
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ clientVersion: package_json_1.default.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
30
|
+
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
31
|
+
retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, }),
|
|
32
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
33
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
34
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
+
return {
|
|
9
|
+
...browserDefaults,
|
|
10
|
+
...config,
|
|
11
|
+
runtime: "react-native",
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const url_parser_1 = require("@smithy/url-parser");
|
|
8
|
+
const util_base64_1 = require("@smithy/util-base64");
|
|
9
|
+
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
|
+
const getRuntimeConfig = (config) => {
|
|
11
|
+
return {
|
|
12
|
+
apiVersion: "2026-07-07",
|
|
13
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
14
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
15
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultOneHookServiceHttpAuthSchemeProvider,
|
|
18
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [{
|
|
19
|
+
schemeId: "smithy.api#noAuth",
|
|
20
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
21
|
+
signer: new core_1.NoAuthSigner(),
|
|
22
|
+
}],
|
|
23
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
24
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
25
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
26
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
+
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
5
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const asPartial = (t) => t;
|
|
8
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
+
const extensionConfiguration = {
|
|
10
|
+
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
11
|
+
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
12
|
+
...asPartial((0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig)),
|
|
13
|
+
};
|
|
14
|
+
extensions.forEach(extension => extension.configure(extensionConfiguration));
|
|
15
|
+
return {
|
|
16
|
+
...runtimeConfig,
|
|
17
|
+
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
18
|
+
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
19
|
+
...(0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration),
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { OneHookServiceClient, } from "./OneHookServiceClient";
|
|
2
|
+
import { AuthSocialCommand, } from "./commands/AuthSocialCommand";
|
|
3
|
+
import { ClaimPreKeyBundleCommand, } from "./commands/ClaimPreKeyBundleCommand";
|
|
4
|
+
import { CompleteLivenessSessionCommand, } from "./commands/CompleteLivenessSessionCommand";
|
|
5
|
+
import { CompleteOnboardingCommand, } from "./commands/CompleteOnboardingCommand";
|
|
6
|
+
import { CreateLivenessSessionCommand, } from "./commands/CreateLivenessSessionCommand";
|
|
7
|
+
import { DeleteMatchMessagesCommand, } from "./commands/DeleteMatchMessagesCommand";
|
|
8
|
+
import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
|
|
9
|
+
import { DiscoverCommand, } from "./commands/DiscoverCommand";
|
|
10
|
+
import { GenerateInviteCommand, } from "./commands/GenerateInviteCommand";
|
|
11
|
+
import { GenerateUploadUrlCommand, } from "./commands/GenerateUploadUrlCommand";
|
|
12
|
+
import { GetMatchCommand, } from "./commands/GetMatchCommand";
|
|
13
|
+
import { GetMyProfileCommand, } from "./commands/GetMyProfileCommand";
|
|
14
|
+
import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
|
|
15
|
+
import { GetProfileCommand, } from "./commands/GetProfileCommand";
|
|
16
|
+
import { GetStateCommand, } from "./commands/GetStateCommand";
|
|
17
|
+
import { GetUserByEmailCommand, } from "./commands/GetUserByEmailCommand";
|
|
18
|
+
import { GetUserCommand, } from "./commands/GetUserCommand";
|
|
19
|
+
import { IndexLocationCommand, } from "./commands/IndexLocationCommand";
|
|
20
|
+
import { InitUserCommand, } from "./commands/InitUserCommand";
|
|
21
|
+
import { LinkEmailCommand, } from "./commands/LinkEmailCommand";
|
|
22
|
+
import { LinkSocialCommand, } from "./commands/LinkSocialCommand";
|
|
23
|
+
import { RegisterPhoneCommand, } from "./commands/RegisterPhoneCommand";
|
|
24
|
+
import { RemoveLocationCommand, } from "./commands/RemoveLocationCommand";
|
|
25
|
+
import { RequestEmailOtpCommand, } from "./commands/RequestEmailOtpCommand";
|
|
26
|
+
import { RequestPhoneOtpCommand, } from "./commands/RequestPhoneOtpCommand";
|
|
27
|
+
import { RequestPhoneUpdateOtpCommand, } from "./commands/RequestPhoneUpdateOtpCommand";
|
|
28
|
+
import { SwipeCommand, } from "./commands/SwipeCommand";
|
|
29
|
+
import { UnhookCommand, } from "./commands/UnhookCommand";
|
|
30
|
+
import { UnlinkSocialCommand, } from "./commands/UnlinkSocialCommand";
|
|
31
|
+
import { UpdateEntitlementsCommand, } from "./commands/UpdateEntitlementsCommand";
|
|
32
|
+
import { UpdatePhoneNumberCommand, } from "./commands/UpdatePhoneNumberCommand";
|
|
33
|
+
import { UpdatePreferencesCommand, } from "./commands/UpdatePreferencesCommand";
|
|
34
|
+
import { UpdateProfileCommand, } from "./commands/UpdateProfileCommand";
|
|
35
|
+
import { UpgradeUserCommand, } from "./commands/UpgradeUserCommand";
|
|
36
|
+
import { UploadPreKeysCommand, } from "./commands/UploadPreKeysCommand";
|
|
37
|
+
import { ValidateInviteCommand, } from "./commands/ValidateInviteCommand";
|
|
38
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
39
|
+
const commands = {
|
|
40
|
+
ClaimPreKeyBundleCommand,
|
|
41
|
+
DeleteMatchMessagesCommand,
|
|
42
|
+
UploadPreKeysCommand,
|
|
43
|
+
AuthSocialCommand,
|
|
44
|
+
GenerateInviteCommand,
|
|
45
|
+
GetUserCommand,
|
|
46
|
+
GetUserByEmailCommand,
|
|
47
|
+
LinkEmailCommand,
|
|
48
|
+
LinkSocialCommand,
|
|
49
|
+
RegisterPhoneCommand,
|
|
50
|
+
RequestEmailOtpCommand,
|
|
51
|
+
RequestPhoneOtpCommand,
|
|
52
|
+
RequestPhoneUpdateOtpCommand,
|
|
53
|
+
UnlinkSocialCommand,
|
|
54
|
+
UpdateEntitlementsCommand,
|
|
55
|
+
UpdatePhoneNumberCommand,
|
|
56
|
+
ValidateInviteCommand,
|
|
57
|
+
DiscoverCommand,
|
|
58
|
+
GetPreferencesCommand,
|
|
59
|
+
IndexLocationCommand,
|
|
60
|
+
RemoveLocationCommand,
|
|
61
|
+
SwipeCommand,
|
|
62
|
+
UpdatePreferencesCommand,
|
|
63
|
+
CompleteLivenessSessionCommand,
|
|
64
|
+
CreateLivenessSessionCommand,
|
|
65
|
+
DeleteProfileCommand,
|
|
66
|
+
GenerateUploadUrlCommand,
|
|
67
|
+
GetMyProfileCommand,
|
|
68
|
+
GetProfileCommand,
|
|
69
|
+
UpdateProfileCommand,
|
|
70
|
+
CompleteOnboardingCommand,
|
|
71
|
+
GetMatchCommand,
|
|
72
|
+
GetStateCommand,
|
|
73
|
+
InitUserCommand,
|
|
74
|
+
UnhookCommand,
|
|
75
|
+
UpgradeUserCommand,
|
|
76
|
+
};
|
|
77
|
+
export class OneHookService extends OneHookServiceClient {
|
|
78
|
+
}
|
|
79
|
+
createAggregatedClient(commands, OneHookService);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defaultOneHookServiceHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
2
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
3
|
+
import { resolveRuntimeExtensions, } from "./runtimeExtensions";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
7
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
8
|
+
import { resolveCustomEndpointsConfig, } from "@smithy/config-resolver";
|
|
9
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemePlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
10
|
+
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
11
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
12
|
+
import { Client as __Client, } from "@smithy/smithy-client";
|
|
13
|
+
export { __Client };
|
|
14
|
+
export class OneHookServiceClient extends __Client {
|
|
15
|
+
constructor(...[configuration]) {
|
|
16
|
+
let _config_0 = __getRuntimeConfig(configuration || {});
|
|
17
|
+
let _config_1 = resolveCustomEndpointsConfig(_config_0);
|
|
18
|
+
let _config_2 = resolveRetryConfig(_config_1);
|
|
19
|
+
let _config_3 = resolveHostHeaderConfig(_config_2);
|
|
20
|
+
let _config_4 = resolveUserAgentConfig(_config_3);
|
|
21
|
+
let _config_5 = resolveHttpAuthSchemeConfig(_config_4);
|
|
22
|
+
let _config_6 = resolveRuntimeExtensions(_config_5, configuration?.extensions || []);
|
|
23
|
+
super(_config_6);
|
|
24
|
+
this.config = _config_6;
|
|
25
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getHttpAuthSchemePlugin(this.config, {
|
|
33
|
+
httpAuthSchemeParametersProvider: defaultOneHookServiceHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({}),
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
destroy() {
|
|
37
|
+
super.destroy();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
let _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
return {
|
|
5
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
6
|
+
const index = _httpAuthSchemes.findIndex(scheme => scheme.schemeId === httpAuthScheme.schemeId);
|
|
7
|
+
if (index === -1) {
|
|
8
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
httpAuthSchemes() {
|
|
15
|
+
return _httpAuthSchemes;
|
|
16
|
+
},
|
|
17
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
18
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
19
|
+
},
|
|
20
|
+
httpAuthSchemeProvider() {
|
|
21
|
+
return _httpAuthSchemeProvider;
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
26
|
+
return {
|
|
27
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
28
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { getSmithyContext } from "@smithy/util-middleware";
|
|
2
|
+
export const defaultOneHookServiceHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
3
|
+
return {
|
|
4
|
+
operation: getSmithyContext(context).operation,
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
8
|
+
return {
|
|
9
|
+
schemeId: "smithy.api#noAuth",
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
;
|
|
13
|
+
export const defaultOneHookServiceHttpAuthSchemeProvider = (authParameters) => {
|
|
14
|
+
const options = [];
|
|
15
|
+
switch (authParameters.operation) {
|
|
16
|
+
default:
|
|
17
|
+
{
|
|
18
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
19
|
+
}
|
|
20
|
+
;
|
|
21
|
+
}
|
|
22
|
+
;
|
|
23
|
+
return options;
|
|
24
|
+
};
|
|
25
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
26
|
+
return {
|
|
27
|
+
...config,
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_AuthSocialCommand, se_AuthSocialCommand, } 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 AuthSocialCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "AuthSocial", {})
|
|
12
|
+
.n("OneHookServiceClient", "AuthSocialCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_AuthSocialCommand)
|
|
15
|
+
.de(de_AuthSocialCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ClaimPreKeyBundleCommand, se_ClaimPreKeyBundleCommand, } 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 ClaimPreKeyBundleCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "ClaimPreKeyBundle", {})
|
|
12
|
+
.n("OneHookServiceClient", "ClaimPreKeyBundleCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ClaimPreKeyBundleCommand)
|
|
15
|
+
.de(de_ClaimPreKeyBundleCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CompleteLivenessSessionCommand, se_CompleteLivenessSessionCommand, } 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 CompleteLivenessSessionCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "CompleteLivenessSession", {})
|
|
12
|
+
.n("OneHookServiceClient", "CompleteLivenessSessionCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CompleteLivenessSessionCommand)
|
|
15
|
+
.de(de_CompleteLivenessSessionCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CompleteOnboardingCommand, se_CompleteOnboardingCommand, } 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 CompleteOnboardingCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "CompleteOnboarding", {})
|
|
12
|
+
.n("OneHookServiceClient", "CompleteOnboardingCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CompleteOnboardingCommand)
|
|
15
|
+
.de(de_CompleteOnboardingCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CreateLivenessSessionCommand, se_CreateLivenessSessionCommand, } 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 CreateLivenessSessionCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "CreateLivenessSession", {})
|
|
12
|
+
.n("OneHookServiceClient", "CreateLivenessSessionCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreateLivenessSessionCommand)
|
|
15
|
+
.de(de_CreateLivenessSessionCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_DeleteMatchMessagesCommand, se_DeleteMatchMessagesCommand, } 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 DeleteMatchMessagesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "DeleteMatchMessages", {})
|
|
12
|
+
.n("OneHookServiceClient", "DeleteMatchMessagesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DeleteMatchMessagesCommand)
|
|
15
|
+
.de(de_DeleteMatchMessagesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_DeleteProfileCommand, se_DeleteProfileCommand, } 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 DeleteProfileCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "DeleteProfile", {})
|
|
12
|
+
.n("OneHookServiceClient", "DeleteProfileCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DeleteProfileCommand)
|
|
15
|
+
.de(de_DeleteProfileCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_DiscoverCommand, se_DiscoverCommand, } 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 DiscoverCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "Discover", {})
|
|
12
|
+
.n("OneHookServiceClient", "DiscoverCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DiscoverCommand)
|
|
15
|
+
.de(de_DiscoverCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GenerateInviteCommand, se_GenerateInviteCommand, } 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 GenerateInviteCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GenerateInvite", {})
|
|
12
|
+
.n("OneHookServiceClient", "GenerateInviteCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GenerateInviteCommand)
|
|
15
|
+
.de(de_GenerateInviteCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GenerateUploadUrlCommand, se_GenerateUploadUrlCommand, } 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 GenerateUploadUrlCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GenerateUploadUrl", {})
|
|
12
|
+
.n("OneHookServiceClient", "GenerateUploadUrlCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GenerateUploadUrlCommand)
|
|
15
|
+
.de(de_GenerateUploadUrlCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetMatchCommand, se_GetMatchCommand, } 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 GetMatchCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetMatch", {})
|
|
12
|
+
.n("OneHookServiceClient", "GetMatchCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetMatchCommand)
|
|
15
|
+
.de(de_GetMatchCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetMyProfileCommand, se_GetMyProfileCommand, } 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 GetMyProfileCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetMyProfile", {})
|
|
12
|
+
.n("OneHookServiceClient", "GetMyProfileCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetMyProfileCommand)
|
|
15
|
+
.de(de_GetMyProfileCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetPreferencesCommand, se_GetPreferencesCommand, } 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 GetPreferencesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetPreferences", {})
|
|
12
|
+
.n("OneHookServiceClient", "GetPreferencesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetPreferencesCommand)
|
|
15
|
+
.de(de_GetPreferencesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetProfileCommand, se_GetProfileCommand, } 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 GetProfileCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetProfile", {})
|
|
12
|
+
.n("OneHookServiceClient", "GetProfileCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetProfileCommand)
|
|
15
|
+
.de(de_GetProfileCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetStateCommand, se_GetStateCommand, } 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 GetStateCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetState", {})
|
|
12
|
+
.n("OneHookServiceClient", "GetStateCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetStateCommand)
|
|
15
|
+
.de(de_GetStateCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetUserByEmailCommand, se_GetUserByEmailCommand, } 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 GetUserByEmailCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetUserByEmail", {})
|
|
12
|
+
.n("OneHookServiceClient", "GetUserByEmailCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetUserByEmailCommand)
|
|
15
|
+
.de(de_GetUserByEmailCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetUserCommand, se_GetUserCommand, } 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 GetUserCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetUser", {})
|
|
12
|
+
.n("OneHookServiceClient", "GetUserCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetUserCommand)
|
|
15
|
+
.de(de_GetUserCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|