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.
Files changed (161) hide show
  1. package/LICENSE +201 -0
  2. package/dist-cjs/OneHookService.js +83 -0
  3. package/dist-cjs/OneHookServiceClient.js +43 -0
  4. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +35 -0
  5. package/dist-cjs/auth/httpAuthSchemeProvider.js +35 -0
  6. package/dist-cjs/commands/AuthSocialCommand.js +21 -0
  7. package/dist-cjs/commands/ClaimPreKeyBundleCommand.js +21 -0
  8. package/dist-cjs/commands/CompleteLivenessSessionCommand.js +21 -0
  9. package/dist-cjs/commands/CompleteOnboardingCommand.js +21 -0
  10. package/dist-cjs/commands/CreateLivenessSessionCommand.js +21 -0
  11. package/dist-cjs/commands/DeleteMatchMessagesCommand.js +21 -0
  12. package/dist-cjs/commands/DeleteProfileCommand.js +21 -0
  13. package/dist-cjs/commands/DiscoverCommand.js +21 -0
  14. package/dist-cjs/commands/GenerateInviteCommand.js +21 -0
  15. package/dist-cjs/commands/GenerateUploadUrlCommand.js +21 -0
  16. package/dist-cjs/commands/GetMatchCommand.js +21 -0
  17. package/dist-cjs/commands/GetMyProfileCommand.js +21 -0
  18. package/dist-cjs/commands/GetPreferencesCommand.js +21 -0
  19. package/dist-cjs/commands/GetProfileCommand.js +21 -0
  20. package/dist-cjs/commands/GetStateCommand.js +21 -0
  21. package/dist-cjs/commands/GetUserByEmailCommand.js +21 -0
  22. package/dist-cjs/commands/GetUserCommand.js +21 -0
  23. package/dist-cjs/commands/IndexLocationCommand.js +21 -0
  24. package/dist-cjs/commands/InitUserCommand.js +21 -0
  25. package/dist-cjs/commands/LinkEmailCommand.js +21 -0
  26. package/dist-cjs/commands/LinkSocialCommand.js +21 -0
  27. package/dist-cjs/commands/RegisterPhoneCommand.js +21 -0
  28. package/dist-cjs/commands/RemoveLocationCommand.js +21 -0
  29. package/dist-cjs/commands/RequestEmailOtpCommand.js +21 -0
  30. package/dist-cjs/commands/RequestPhoneOtpCommand.js +21 -0
  31. package/dist-cjs/commands/RequestPhoneUpdateOtpCommand.js +21 -0
  32. package/dist-cjs/commands/SwipeCommand.js +21 -0
  33. package/dist-cjs/commands/UnhookCommand.js +21 -0
  34. package/dist-cjs/commands/UnlinkSocialCommand.js +21 -0
  35. package/dist-cjs/commands/UpdateEntitlementsCommand.js +21 -0
  36. package/dist-cjs/commands/UpdatePhoneNumberCommand.js +21 -0
  37. package/dist-cjs/commands/UpdatePreferencesCommand.js +21 -0
  38. package/dist-cjs/commands/UpdateProfileCommand.js +21 -0
  39. package/dist-cjs/commands/UpgradeUserCommand.js +21 -0
  40. package/dist-cjs/commands/UploadPreKeysCommand.js +21 -0
  41. package/dist-cjs/commands/ValidateInviteCommand.js +21 -0
  42. package/dist-cjs/commands/index.js +39 -0
  43. package/dist-cjs/extensionConfiguration.js +2 -0
  44. package/dist-cjs/graphql/types.js +11 -0
  45. package/dist-cjs/index.js +10 -0
  46. package/dist-cjs/models/OneHookServiceServiceException.js +12 -0
  47. package/dist-cjs/models/index.js +4 -0
  48. package/dist-cjs/models/models_0.js +60 -0
  49. package/dist-cjs/protocols/Aws_restJson1.js +1349 -0
  50. package/dist-cjs/runtimeConfig.browser.js +32 -0
  51. package/dist-cjs/runtimeConfig.js +37 -0
  52. package/dist-cjs/runtimeConfig.native.js +15 -0
  53. package/dist-cjs/runtimeConfig.shared.js +29 -0
  54. package/dist-cjs/runtimeExtensions.js +22 -0
  55. package/dist-es/OneHookService.js +79 -0
  56. package/dist-es/OneHookServiceClient.js +39 -0
  57. package/dist-es/auth/httpAuthExtensionConfiguration.js +30 -0
  58. package/dist-es/auth/httpAuthSchemeProvider.js +29 -0
  59. package/dist-es/commands/AuthSocialCommand.js +17 -0
  60. package/dist-es/commands/ClaimPreKeyBundleCommand.js +17 -0
  61. package/dist-es/commands/CompleteLivenessSessionCommand.js +17 -0
  62. package/dist-es/commands/CompleteOnboardingCommand.js +17 -0
  63. package/dist-es/commands/CreateLivenessSessionCommand.js +17 -0
  64. package/dist-es/commands/DeleteMatchMessagesCommand.js +17 -0
  65. package/dist-es/commands/DeleteProfileCommand.js +17 -0
  66. package/dist-es/commands/DiscoverCommand.js +17 -0
  67. package/dist-es/commands/GenerateInviteCommand.js +17 -0
  68. package/dist-es/commands/GenerateUploadUrlCommand.js +17 -0
  69. package/dist-es/commands/GetMatchCommand.js +17 -0
  70. package/dist-es/commands/GetMyProfileCommand.js +17 -0
  71. package/dist-es/commands/GetPreferencesCommand.js +17 -0
  72. package/dist-es/commands/GetProfileCommand.js +17 -0
  73. package/dist-es/commands/GetStateCommand.js +17 -0
  74. package/dist-es/commands/GetUserByEmailCommand.js +17 -0
  75. package/dist-es/commands/GetUserCommand.js +17 -0
  76. package/dist-es/commands/IndexLocationCommand.js +17 -0
  77. package/dist-es/commands/InitUserCommand.js +17 -0
  78. package/dist-es/commands/LinkEmailCommand.js +17 -0
  79. package/dist-es/commands/LinkSocialCommand.js +17 -0
  80. package/dist-es/commands/RegisterPhoneCommand.js +17 -0
  81. package/dist-es/commands/RemoveLocationCommand.js +17 -0
  82. package/dist-es/commands/RequestEmailOtpCommand.js +17 -0
  83. package/dist-es/commands/RequestPhoneOtpCommand.js +17 -0
  84. package/dist-es/commands/RequestPhoneUpdateOtpCommand.js +17 -0
  85. package/dist-es/commands/SwipeCommand.js +17 -0
  86. package/dist-es/commands/UnhookCommand.js +17 -0
  87. package/dist-es/commands/UnlinkSocialCommand.js +17 -0
  88. package/dist-es/commands/UpdateEntitlementsCommand.js +17 -0
  89. package/dist-es/commands/UpdatePhoneNumberCommand.js +17 -0
  90. package/dist-es/commands/UpdatePreferencesCommand.js +17 -0
  91. package/dist-es/commands/UpdateProfileCommand.js +17 -0
  92. package/dist-es/commands/UpgradeUserCommand.js +17 -0
  93. package/dist-es/commands/UploadPreKeysCommand.js +17 -0
  94. package/dist-es/commands/ValidateInviteCommand.js +17 -0
  95. package/dist-es/commands/index.js +36 -0
  96. package/dist-es/extensionConfiguration.js +1 -0
  97. package/dist-es/graphql/types.js +8 -0
  98. package/dist-es/index.js +5 -0
  99. package/dist-es/models/OneHookServiceServiceException.js +8 -0
  100. package/dist-es/models/index.js +1 -0
  101. package/dist-es/models/models_0.js +53 -0
  102. package/dist-es/protocols/Aws_restJson1.js +1273 -0
  103. package/dist-es/runtimeConfig.browser.js +27 -0
  104. package/dist-es/runtimeConfig.js +32 -0
  105. package/dist-es/runtimeConfig.native.js +11 -0
  106. package/dist-es/runtimeConfig.shared.js +25 -0
  107. package/dist-es/runtimeExtensions.js +18 -0
  108. package/dist-types/OneHookService.d.ts +267 -0
  109. package/dist-types/OneHookServiceClient.d.ts +179 -0
  110. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +26 -0
  111. package/dist-types/auth/httpAuthSchemeProvider.d.ts +59 -0
  112. package/dist-types/commands/AuthSocialCommand.d.ts +78 -0
  113. package/dist-types/commands/ClaimPreKeyBundleCommand.d.ts +87 -0
  114. package/dist-types/commands/CompleteLivenessSessionCommand.d.ts +80 -0
  115. package/dist-types/commands/CompleteOnboardingCommand.d.ts +75 -0
  116. package/dist-types/commands/CreateLivenessSessionCommand.d.ts +75 -0
  117. package/dist-types/commands/DeleteMatchMessagesCommand.d.ts +77 -0
  118. package/dist-types/commands/DeleteProfileCommand.d.ts +77 -0
  119. package/dist-types/commands/DiscoverCommand.d.ts +84 -0
  120. package/dist-types/commands/GenerateInviteCommand.d.ts +78 -0
  121. package/dist-types/commands/GenerateUploadUrlCommand.d.ts +80 -0
  122. package/dist-types/commands/GetMatchCommand.d.ts +87 -0
  123. package/dist-types/commands/GetMyProfileCommand.d.ts +136 -0
  124. package/dist-types/commands/GetPreferencesCommand.d.ts +83 -0
  125. package/dist-types/commands/GetProfileCommand.d.ts +136 -0
  126. package/dist-types/commands/GetStateCommand.d.ts +83 -0
  127. package/dist-types/commands/GetUserByEmailCommand.d.ts +83 -0
  128. package/dist-types/commands/GetUserCommand.d.ts +83 -0
  129. package/dist-types/commands/IndexLocationCommand.d.ts +76 -0
  130. package/dist-types/commands/InitUserCommand.d.ts +73 -0
  131. package/dist-types/commands/LinkEmailCommand.d.ts +76 -0
  132. package/dist-types/commands/LinkSocialCommand.d.ts +76 -0
  133. package/dist-types/commands/RegisterPhoneCommand.d.ts +79 -0
  134. package/dist-types/commands/RemoveLocationCommand.d.ts +76 -0
  135. package/dist-types/commands/RequestEmailOtpCommand.d.ts +76 -0
  136. package/dist-types/commands/RequestPhoneOtpCommand.d.ts +75 -0
  137. package/dist-types/commands/RequestPhoneUpdateOtpCommand.d.ts +75 -0
  138. package/dist-types/commands/SwipeCommand.d.ts +79 -0
  139. package/dist-types/commands/UnhookCommand.d.ts +78 -0
  140. package/dist-types/commands/UnlinkSocialCommand.d.ts +75 -0
  141. package/dist-types/commands/UpdateEntitlementsCommand.d.ts +87 -0
  142. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +77 -0
  143. package/dist-types/commands/UpdatePreferencesCommand.d.ts +81 -0
  144. package/dist-types/commands/UpdateProfileCommand.d.ts +130 -0
  145. package/dist-types/commands/UpgradeUserCommand.d.ts +81 -0
  146. package/dist-types/commands/UploadPreKeysCommand.d.ts +81 -0
  147. package/dist-types/commands/ValidateInviteCommand.d.ts +78 -0
  148. package/dist-types/commands/index.d.ts +36 -0
  149. package/dist-types/extensionConfiguration.d.ts +8 -0
  150. package/dist-types/graphql/types.d.ts +110 -0
  151. package/dist-types/index.d.ts +7 -0
  152. package/dist-types/models/OneHookServiceServiceException.d.ts +14 -0
  153. package/dist-types/models/index.d.ts +1 -0
  154. package/dist-types/models/models_0.d.ts +614 -0
  155. package/dist-types/protocols/Aws_restJson1.d.ts +326 -0
  156. package/dist-types/runtimeConfig.browser.d.ts +38 -0
  157. package/dist-types/runtimeConfig.d.ts +38 -0
  158. package/dist-types/runtimeConfig.native.d.ts +37 -0
  159. package/dist-types/runtimeConfig.shared.d.ts +23 -0
  160. package/dist-types/runtimeExtensions.d.ts +17 -0
  161. package/package.json +95 -0
@@ -0,0 +1,27 @@
1
+ import packageInfo from "../package.json";
2
+ import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
4
+ import { FetchHttpHandler as RequestHandler, streamCollector, } from "@smithy/fetch-http-handler";
5
+ import { calculateBodyLength } from "@smithy/util-body-length-browser";
6
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, } from "@smithy/util-retry";
7
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
8
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
9
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
10
+ export const getRuntimeConfig = (config) => {
11
+ const defaultsMode = resolveDefaultsModeConfig(config);
12
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
+ const clientSharedValues = getSharedRuntimeConfig(config);
14
+ return {
15
+ ...clientSharedValues,
16
+ ...config,
17
+ runtime: "browser",
18
+ defaultsMode,
19
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
20
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ clientVersion: packageInfo.version }),
21
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
22
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
23
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
24
+ sha256: config?.sha256 ?? Sha256,
25
+ streamCollector: config?.streamCollector ?? streamCollector,
26
+ };
27
+ };
@@ -0,0 +1,32 @@
1
+ import packageInfo from "../package.json";
2
+ import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider, } from "@aws-sdk/util-user-agent-node";
3
+ import { Hash } from "@smithy/hash-node";
4
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/middleware-retry";
5
+ import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
6
+ import { NodeHttpHandler as RequestHandler, streamCollector, } from "@smithy/node-http-handler";
7
+ import { calculateBodyLength } from "@smithy/util-body-length-node";
8
+ import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
12
+ import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
13
+ export const getRuntimeConfig = (config) => {
14
+ emitWarningIfUnsupportedVersion(process.version);
15
+ const defaultsMode = resolveDefaultsModeConfig(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
17
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
+ return {
19
+ ...clientSharedValues,
20
+ ...config,
21
+ runtime: "node",
22
+ defaultsMode,
23
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
24
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ clientVersion: packageInfo.version }),
25
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
26
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
+ retryMode: config?.retryMode ?? loadNodeConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }),
28
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
29
+ streamCollector: config?.streamCollector ?? streamCollector,
30
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
31
+ };
32
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,25 @@
1
+ import { defaultOneHookServiceHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
2
+ import { NoAuthSigner } from "@smithy/core";
3
+ import { NoOpLogger } from "@smithy/smithy-client";
4
+ import { parseUrl } from "@smithy/url-parser";
5
+ import { fromBase64, toBase64, } from "@smithy/util-base64";
6
+ import { fromUtf8, toUtf8, } from "@smithy/util-utf8";
7
+ export const getRuntimeConfig = (config) => {
8
+ return {
9
+ apiVersion: "2026-07-07",
10
+ base64Decoder: config?.base64Decoder ?? fromBase64,
11
+ base64Encoder: config?.base64Encoder ?? toBase64,
12
+ disableHostPrefix: config?.disableHostPrefix ?? false,
13
+ extensions: config?.extensions ?? [],
14
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultOneHookServiceHttpAuthSchemeProvider,
15
+ httpAuthSchemes: config?.httpAuthSchemes ?? [{
16
+ schemeId: "smithy.api#noAuth",
17
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
18
+ signer: new NoAuthSigner(),
19
+ }],
20
+ logger: config?.logger ?? new NoOpLogger(),
21
+ urlParser: config?.urlParser ?? parseUrl,
22
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
23
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
24
+ };
25
+ };
@@ -0,0 +1,18 @@
1
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig, } from "./auth/httpAuthExtensionConfiguration";
2
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, } from "@smithy/protocol-http";
3
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, } from "@smithy/smithy-client";
4
+ const asPartial = (t) => t;
5
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
+ const extensionConfiguration = {
7
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
8
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
9
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
10
+ };
11
+ extensions.forEach(extension => extension.configure(extensionConfiguration));
12
+ return {
13
+ ...runtimeConfig,
14
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
15
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
16
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
17
+ };
18
+ };
@@ -0,0 +1,267 @@
1
+ import { OneHookServiceClient } from "./OneHookServiceClient";
2
+ import { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/AuthSocialCommand";
3
+ import { ClaimPreKeyBundleCommandInput, ClaimPreKeyBundleCommandOutput } from "./commands/ClaimPreKeyBundleCommand";
4
+ import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
5
+ import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
6
+ import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "./commands/CreateLivenessSessionCommand";
7
+ import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
8
+ import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
9
+ import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/DiscoverCommand";
10
+ import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
11
+ import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
12
+ import { GetMatchCommandInput, GetMatchCommandOutput } from "./commands/GetMatchCommand";
13
+ import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "./commands/GetMyProfileCommand";
14
+ import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
15
+ import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
16
+ import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
17
+ import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
18
+ import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
19
+ import { IndexLocationCommandInput, IndexLocationCommandOutput } from "./commands/IndexLocationCommand";
20
+ import { InitUserCommandInput, InitUserCommandOutput } from "./commands/InitUserCommand";
21
+ import { LinkEmailCommandInput, LinkEmailCommandOutput } from "./commands/LinkEmailCommand";
22
+ import { LinkSocialCommandInput, LinkSocialCommandOutput } from "./commands/LinkSocialCommand";
23
+ import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
24
+ import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "./commands/RemoveLocationCommand";
25
+ import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
26
+ import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
27
+ import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
28
+ import { SwipeCommandInput, SwipeCommandOutput } from "./commands/SwipeCommand";
29
+ import { UnhookCommandInput, UnhookCommandOutput } from "./commands/UnhookCommand";
30
+ import { UnlinkSocialCommandInput, UnlinkSocialCommandOutput } from "./commands/UnlinkSocialCommand";
31
+ import { UpdateEntitlementsCommandInput, UpdateEntitlementsCommandOutput } from "./commands/UpdateEntitlementsCommand";
32
+ import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand";
33
+ import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "./commands/UpdatePreferencesCommand";
34
+ import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "./commands/UpdateProfileCommand";
35
+ import { UpgradeUserCommandInput, UpgradeUserCommandOutput } from "./commands/UpgradeUserCommand";
36
+ import { UploadPreKeysCommandInput, UploadPreKeysCommandOutput } from "./commands/UploadPreKeysCommand";
37
+ import { ValidateInviteCommandInput, ValidateInviteCommandOutput } from "./commands/ValidateInviteCommand";
38
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
39
+ export interface OneHookService {
40
+ /**
41
+ * @see {@link ClaimPreKeyBundleCommand}
42
+ */
43
+ claimPreKeyBundle(args: ClaimPreKeyBundleCommandInput, options?: __HttpHandlerOptions): Promise<ClaimPreKeyBundleCommandOutput>;
44
+ claimPreKeyBundle(args: ClaimPreKeyBundleCommandInput, cb: (err: any, data?: ClaimPreKeyBundleCommandOutput) => void): void;
45
+ claimPreKeyBundle(args: ClaimPreKeyBundleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ClaimPreKeyBundleCommandOutput) => void): void;
46
+ /**
47
+ * @see {@link DeleteMatchMessagesCommand}
48
+ */
49
+ deleteMatchMessages(args: DeleteMatchMessagesCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMatchMessagesCommandOutput>;
50
+ deleteMatchMessages(args: DeleteMatchMessagesCommandInput, cb: (err: any, data?: DeleteMatchMessagesCommandOutput) => void): void;
51
+ deleteMatchMessages(args: DeleteMatchMessagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMatchMessagesCommandOutput) => void): void;
52
+ /**
53
+ * @see {@link UploadPreKeysCommand}
54
+ */
55
+ uploadPreKeys(args: UploadPreKeysCommandInput, options?: __HttpHandlerOptions): Promise<UploadPreKeysCommandOutput>;
56
+ uploadPreKeys(args: UploadPreKeysCommandInput, cb: (err: any, data?: UploadPreKeysCommandOutput) => void): void;
57
+ uploadPreKeys(args: UploadPreKeysCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UploadPreKeysCommandOutput) => void): void;
58
+ /**
59
+ * @see {@link AuthSocialCommand}
60
+ */
61
+ authSocial(args: AuthSocialCommandInput, options?: __HttpHandlerOptions): Promise<AuthSocialCommandOutput>;
62
+ authSocial(args: AuthSocialCommandInput, cb: (err: any, data?: AuthSocialCommandOutput) => void): void;
63
+ authSocial(args: AuthSocialCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AuthSocialCommandOutput) => void): void;
64
+ /**
65
+ * @see {@link GenerateInviteCommand}
66
+ */
67
+ generateInvite(args: GenerateInviteCommandInput, options?: __HttpHandlerOptions): Promise<GenerateInviteCommandOutput>;
68
+ generateInvite(args: GenerateInviteCommandInput, cb: (err: any, data?: GenerateInviteCommandOutput) => void): void;
69
+ generateInvite(args: GenerateInviteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateInviteCommandOutput) => void): void;
70
+ /**
71
+ * @see {@link GetUserCommand}
72
+ */
73
+ getUser(args: GetUserCommandInput, options?: __HttpHandlerOptions): Promise<GetUserCommandOutput>;
74
+ getUser(args: GetUserCommandInput, cb: (err: any, data?: GetUserCommandOutput) => void): void;
75
+ getUser(args: GetUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserCommandOutput) => void): void;
76
+ /**
77
+ * @see {@link GetUserByEmailCommand}
78
+ */
79
+ getUserByEmail(args: GetUserByEmailCommandInput, options?: __HttpHandlerOptions): Promise<GetUserByEmailCommandOutput>;
80
+ getUserByEmail(args: GetUserByEmailCommandInput, cb: (err: any, data?: GetUserByEmailCommandOutput) => void): void;
81
+ getUserByEmail(args: GetUserByEmailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserByEmailCommandOutput) => void): void;
82
+ /**
83
+ * @see {@link LinkEmailCommand}
84
+ */
85
+ linkEmail(args: LinkEmailCommandInput, options?: __HttpHandlerOptions): Promise<LinkEmailCommandOutput>;
86
+ linkEmail(args: LinkEmailCommandInput, cb: (err: any, data?: LinkEmailCommandOutput) => void): void;
87
+ linkEmail(args: LinkEmailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LinkEmailCommandOutput) => void): void;
88
+ /**
89
+ * @see {@link LinkSocialCommand}
90
+ */
91
+ linkSocial(args: LinkSocialCommandInput, options?: __HttpHandlerOptions): Promise<LinkSocialCommandOutput>;
92
+ linkSocial(args: LinkSocialCommandInput, cb: (err: any, data?: LinkSocialCommandOutput) => void): void;
93
+ linkSocial(args: LinkSocialCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LinkSocialCommandOutput) => void): void;
94
+ /**
95
+ * @see {@link RegisterPhoneCommand}
96
+ */
97
+ registerPhone(args: RegisterPhoneCommandInput, options?: __HttpHandlerOptions): Promise<RegisterPhoneCommandOutput>;
98
+ registerPhone(args: RegisterPhoneCommandInput, cb: (err: any, data?: RegisterPhoneCommandOutput) => void): void;
99
+ registerPhone(args: RegisterPhoneCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterPhoneCommandOutput) => void): void;
100
+ /**
101
+ * @see {@link RequestEmailOtpCommand}
102
+ */
103
+ requestEmailOtp(args: RequestEmailOtpCommandInput, options?: __HttpHandlerOptions): Promise<RequestEmailOtpCommandOutput>;
104
+ requestEmailOtp(args: RequestEmailOtpCommandInput, cb: (err: any, data?: RequestEmailOtpCommandOutput) => void): void;
105
+ requestEmailOtp(args: RequestEmailOtpCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RequestEmailOtpCommandOutput) => void): void;
106
+ /**
107
+ * @see {@link RequestPhoneOtpCommand}
108
+ */
109
+ requestPhoneOtp(args: RequestPhoneOtpCommandInput, options?: __HttpHandlerOptions): Promise<RequestPhoneOtpCommandOutput>;
110
+ requestPhoneOtp(args: RequestPhoneOtpCommandInput, cb: (err: any, data?: RequestPhoneOtpCommandOutput) => void): void;
111
+ requestPhoneOtp(args: RequestPhoneOtpCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RequestPhoneOtpCommandOutput) => void): void;
112
+ /**
113
+ * @see {@link RequestPhoneUpdateOtpCommand}
114
+ */
115
+ requestPhoneUpdateOtp(args: RequestPhoneUpdateOtpCommandInput, options?: __HttpHandlerOptions): Promise<RequestPhoneUpdateOtpCommandOutput>;
116
+ requestPhoneUpdateOtp(args: RequestPhoneUpdateOtpCommandInput, cb: (err: any, data?: RequestPhoneUpdateOtpCommandOutput) => void): void;
117
+ requestPhoneUpdateOtp(args: RequestPhoneUpdateOtpCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RequestPhoneUpdateOtpCommandOutput) => void): void;
118
+ /**
119
+ * @see {@link UnlinkSocialCommand}
120
+ */
121
+ unlinkSocial(args: UnlinkSocialCommandInput, options?: __HttpHandlerOptions): Promise<UnlinkSocialCommandOutput>;
122
+ unlinkSocial(args: UnlinkSocialCommandInput, cb: (err: any, data?: UnlinkSocialCommandOutput) => void): void;
123
+ unlinkSocial(args: UnlinkSocialCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnlinkSocialCommandOutput) => void): void;
124
+ /**
125
+ * @see {@link UpdateEntitlementsCommand}
126
+ */
127
+ updateEntitlements(args: UpdateEntitlementsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEntitlementsCommandOutput>;
128
+ updateEntitlements(args: UpdateEntitlementsCommandInput, cb: (err: any, data?: UpdateEntitlementsCommandOutput) => void): void;
129
+ updateEntitlements(args: UpdateEntitlementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEntitlementsCommandOutput) => void): void;
130
+ /**
131
+ * @see {@link UpdatePhoneNumberCommand}
132
+ */
133
+ updatePhoneNumber(args: UpdatePhoneNumberCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePhoneNumberCommandOutput>;
134
+ updatePhoneNumber(args: UpdatePhoneNumberCommandInput, cb: (err: any, data?: UpdatePhoneNumberCommandOutput) => void): void;
135
+ updatePhoneNumber(args: UpdatePhoneNumberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePhoneNumberCommandOutput) => void): void;
136
+ /**
137
+ * @see {@link ValidateInviteCommand}
138
+ */
139
+ validateInvite(args: ValidateInviteCommandInput, options?: __HttpHandlerOptions): Promise<ValidateInviteCommandOutput>;
140
+ validateInvite(args: ValidateInviteCommandInput, cb: (err: any, data?: ValidateInviteCommandOutput) => void): void;
141
+ validateInvite(args: ValidateInviteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ValidateInviteCommandOutput) => void): void;
142
+ /**
143
+ * @see {@link DiscoverCommand}
144
+ */
145
+ discover(args: DiscoverCommandInput, options?: __HttpHandlerOptions): Promise<DiscoverCommandOutput>;
146
+ discover(args: DiscoverCommandInput, cb: (err: any, data?: DiscoverCommandOutput) => void): void;
147
+ discover(args: DiscoverCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DiscoverCommandOutput) => void): void;
148
+ /**
149
+ * @see {@link GetPreferencesCommand}
150
+ */
151
+ getPreferences(args: GetPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetPreferencesCommandOutput>;
152
+ getPreferences(args: GetPreferencesCommandInput, cb: (err: any, data?: GetPreferencesCommandOutput) => void): void;
153
+ getPreferences(args: GetPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPreferencesCommandOutput) => void): void;
154
+ /**
155
+ * @see {@link IndexLocationCommand}
156
+ */
157
+ indexLocation(args: IndexLocationCommandInput, options?: __HttpHandlerOptions): Promise<IndexLocationCommandOutput>;
158
+ indexLocation(args: IndexLocationCommandInput, cb: (err: any, data?: IndexLocationCommandOutput) => void): void;
159
+ indexLocation(args: IndexLocationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IndexLocationCommandOutput) => void): void;
160
+ /**
161
+ * @see {@link RemoveLocationCommand}
162
+ */
163
+ removeLocation(args: RemoveLocationCommandInput, options?: __HttpHandlerOptions): Promise<RemoveLocationCommandOutput>;
164
+ removeLocation(args: RemoveLocationCommandInput, cb: (err: any, data?: RemoveLocationCommandOutput) => void): void;
165
+ removeLocation(args: RemoveLocationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveLocationCommandOutput) => void): void;
166
+ /**
167
+ * @see {@link SwipeCommand}
168
+ */
169
+ swipe(args: SwipeCommandInput, options?: __HttpHandlerOptions): Promise<SwipeCommandOutput>;
170
+ swipe(args: SwipeCommandInput, cb: (err: any, data?: SwipeCommandOutput) => void): void;
171
+ swipe(args: SwipeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SwipeCommandOutput) => void): void;
172
+ /**
173
+ * @see {@link UpdatePreferencesCommand}
174
+ */
175
+ updatePreferences(args: UpdatePreferencesCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePreferencesCommandOutput>;
176
+ updatePreferences(args: UpdatePreferencesCommandInput, cb: (err: any, data?: UpdatePreferencesCommandOutput) => void): void;
177
+ updatePreferences(args: UpdatePreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePreferencesCommandOutput) => void): void;
178
+ /**
179
+ * @see {@link CompleteLivenessSessionCommand}
180
+ */
181
+ completeLivenessSession(args: CompleteLivenessSessionCommandInput, options?: __HttpHandlerOptions): Promise<CompleteLivenessSessionCommandOutput>;
182
+ completeLivenessSession(args: CompleteLivenessSessionCommandInput, cb: (err: any, data?: CompleteLivenessSessionCommandOutput) => void): void;
183
+ completeLivenessSession(args: CompleteLivenessSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CompleteLivenessSessionCommandOutput) => void): void;
184
+ /**
185
+ * @see {@link CreateLivenessSessionCommand}
186
+ */
187
+ createLivenessSession(): Promise<CreateLivenessSessionCommandOutput>;
188
+ createLivenessSession(args: CreateLivenessSessionCommandInput, options?: __HttpHandlerOptions): Promise<CreateLivenessSessionCommandOutput>;
189
+ createLivenessSession(args: CreateLivenessSessionCommandInput, cb: (err: any, data?: CreateLivenessSessionCommandOutput) => void): void;
190
+ createLivenessSession(args: CreateLivenessSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLivenessSessionCommandOutput) => void): void;
191
+ /**
192
+ * @see {@link DeleteProfileCommand}
193
+ */
194
+ deleteProfile(args: DeleteProfileCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProfileCommandOutput>;
195
+ deleteProfile(args: DeleteProfileCommandInput, cb: (err: any, data?: DeleteProfileCommandOutput) => void): void;
196
+ deleteProfile(args: DeleteProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProfileCommandOutput) => void): void;
197
+ /**
198
+ * @see {@link GenerateUploadUrlCommand}
199
+ */
200
+ generateUploadUrl(args: GenerateUploadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GenerateUploadUrlCommandOutput>;
201
+ generateUploadUrl(args: GenerateUploadUrlCommandInput, cb: (err: any, data?: GenerateUploadUrlCommandOutput) => void): void;
202
+ generateUploadUrl(args: GenerateUploadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateUploadUrlCommandOutput) => void): void;
203
+ /**
204
+ * @see {@link GetMyProfileCommand}
205
+ */
206
+ getMyProfile(): Promise<GetMyProfileCommandOutput>;
207
+ getMyProfile(args: GetMyProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetMyProfileCommandOutput>;
208
+ getMyProfile(args: GetMyProfileCommandInput, cb: (err: any, data?: GetMyProfileCommandOutput) => void): void;
209
+ getMyProfile(args: GetMyProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMyProfileCommandOutput) => void): void;
210
+ /**
211
+ * @see {@link GetProfileCommand}
212
+ */
213
+ getProfile(args: GetProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetProfileCommandOutput>;
214
+ getProfile(args: GetProfileCommandInput, cb: (err: any, data?: GetProfileCommandOutput) => void): void;
215
+ getProfile(args: GetProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProfileCommandOutput) => void): void;
216
+ /**
217
+ * @see {@link UpdateProfileCommand}
218
+ */
219
+ updateProfile(): Promise<UpdateProfileCommandOutput>;
220
+ updateProfile(args: UpdateProfileCommandInput, options?: __HttpHandlerOptions): Promise<UpdateProfileCommandOutput>;
221
+ updateProfile(args: UpdateProfileCommandInput, cb: (err: any, data?: UpdateProfileCommandOutput) => void): void;
222
+ updateProfile(args: UpdateProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProfileCommandOutput) => void): void;
223
+ /**
224
+ * @see {@link CompleteOnboardingCommand}
225
+ */
226
+ completeOnboarding(): Promise<CompleteOnboardingCommandOutput>;
227
+ completeOnboarding(args: CompleteOnboardingCommandInput, options?: __HttpHandlerOptions): Promise<CompleteOnboardingCommandOutput>;
228
+ completeOnboarding(args: CompleteOnboardingCommandInput, cb: (err: any, data?: CompleteOnboardingCommandOutput) => void): void;
229
+ completeOnboarding(args: CompleteOnboardingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CompleteOnboardingCommandOutput) => void): void;
230
+ /**
231
+ * @see {@link GetMatchCommand}
232
+ */
233
+ getMatch(args: GetMatchCommandInput, options?: __HttpHandlerOptions): Promise<GetMatchCommandOutput>;
234
+ getMatch(args: GetMatchCommandInput, cb: (err: any, data?: GetMatchCommandOutput) => void): void;
235
+ getMatch(args: GetMatchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMatchCommandOutput) => void): void;
236
+ /**
237
+ * @see {@link GetStateCommand}
238
+ */
239
+ getState(args: GetStateCommandInput, options?: __HttpHandlerOptions): Promise<GetStateCommandOutput>;
240
+ getState(args: GetStateCommandInput, cb: (err: any, data?: GetStateCommandOutput) => void): void;
241
+ getState(args: GetStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetStateCommandOutput) => void): void;
242
+ /**
243
+ * @see {@link InitUserCommand}
244
+ */
245
+ initUser(): Promise<InitUserCommandOutput>;
246
+ initUser(args: InitUserCommandInput, options?: __HttpHandlerOptions): Promise<InitUserCommandOutput>;
247
+ initUser(args: InitUserCommandInput, cb: (err: any, data?: InitUserCommandOutput) => void): void;
248
+ initUser(args: InitUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InitUserCommandOutput) => void): void;
249
+ /**
250
+ * @see {@link UnhookCommand}
251
+ */
252
+ unhook(args: UnhookCommandInput, options?: __HttpHandlerOptions): Promise<UnhookCommandOutput>;
253
+ unhook(args: UnhookCommandInput, cb: (err: any, data?: UnhookCommandOutput) => void): void;
254
+ unhook(args: UnhookCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnhookCommandOutput) => void): void;
255
+ /**
256
+ * @see {@link UpgradeUserCommand}
257
+ */
258
+ upgradeUser(): Promise<UpgradeUserCommandOutput>;
259
+ upgradeUser(args: UpgradeUserCommandInput, options?: __HttpHandlerOptions): Promise<UpgradeUserCommandOutput>;
260
+ upgradeUser(args: UpgradeUserCommandInput, cb: (err: any, data?: UpgradeUserCommandOutput) => void): void;
261
+ upgradeUser(args: UpgradeUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpgradeUserCommandOutput) => void): void;
262
+ }
263
+ /**
264
+ * @public
265
+ */
266
+ export declare class OneHookService extends OneHookServiceClient implements OneHookService {
267
+ }
@@ -0,0 +1,179 @@
1
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
2
+ import { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/AuthSocialCommand";
3
+ import { ClaimPreKeyBundleCommandInput, ClaimPreKeyBundleCommandOutput } from "./commands/ClaimPreKeyBundleCommand";
4
+ import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
5
+ import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
6
+ import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "./commands/CreateLivenessSessionCommand";
7
+ import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
8
+ import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
9
+ import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/DiscoverCommand";
10
+ import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
11
+ import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
12
+ import { GetMatchCommandInput, GetMatchCommandOutput } from "./commands/GetMatchCommand";
13
+ import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "./commands/GetMyProfileCommand";
14
+ import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
15
+ import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
16
+ import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
17
+ import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
18
+ import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
19
+ import { IndexLocationCommandInput, IndexLocationCommandOutput } from "./commands/IndexLocationCommand";
20
+ import { InitUserCommandInput, InitUserCommandOutput } from "./commands/InitUserCommand";
21
+ import { LinkEmailCommandInput, LinkEmailCommandOutput } from "./commands/LinkEmailCommand";
22
+ import { LinkSocialCommandInput, LinkSocialCommandOutput } from "./commands/LinkSocialCommand";
23
+ import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
24
+ import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "./commands/RemoveLocationCommand";
25
+ import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
26
+ import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
27
+ import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
28
+ import { SwipeCommandInput, SwipeCommandOutput } from "./commands/SwipeCommand";
29
+ import { UnhookCommandInput, UnhookCommandOutput } from "./commands/UnhookCommand";
30
+ import { UnlinkSocialCommandInput, UnlinkSocialCommandOutput } from "./commands/UnlinkSocialCommand";
31
+ import { UpdateEntitlementsCommandInput, UpdateEntitlementsCommandOutput } from "./commands/UpdateEntitlementsCommand";
32
+ import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand";
33
+ import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "./commands/UpdatePreferencesCommand";
34
+ import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "./commands/UpdateProfileCommand";
35
+ import { UpgradeUserCommandInput, UpgradeUserCommandOutput } from "./commands/UpgradeUserCommand";
36
+ import { UploadPreKeysCommandInput, UploadPreKeysCommandOutput } from "./commands/UploadPreKeysCommand";
37
+ import { ValidateInviteCommandInput, ValidateInviteCommandOutput } from "./commands/ValidateInviteCommand";
38
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
39
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
40
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
41
+ import { CustomEndpointsInputConfig, CustomEndpointsResolvedConfig } from "@smithy/config-resolver";
42
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
43
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
44
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
45
+ import { Provider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
46
+ export { __Client };
47
+ /**
48
+ * @public
49
+ */
50
+ export type ServiceInputTypes = AuthSocialCommandInput | ClaimPreKeyBundleCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DiscoverCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | RegisterPhoneCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpgradeUserCommandInput | UploadPreKeysCommandInput | ValidateInviteCommandInput;
51
+ /**
52
+ * @public
53
+ */
54
+ export type ServiceOutputTypes = AuthSocialCommandOutput | ClaimPreKeyBundleCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DiscoverCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | RegisterPhoneCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpgradeUserCommandOutput | UploadPreKeysCommandOutput | ValidateInviteCommandOutput;
55
+ /**
56
+ * @public
57
+ */
58
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
59
+ /**
60
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
61
+ */
62
+ requestHandler?: __HttpHandlerUserInput;
63
+ /**
64
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
65
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
66
+ * @internal
67
+ */
68
+ sha256?: __ChecksumConstructor | __HashConstructor;
69
+ /**
70
+ * The function that will be used to convert strings into HTTP endpoints.
71
+ * @internal
72
+ */
73
+ urlParser?: __UrlParser;
74
+ /**
75
+ * A function that can calculate the length of a request body.
76
+ * @internal
77
+ */
78
+ bodyLengthChecker?: __BodyLengthCalculator;
79
+ /**
80
+ * A function that converts a stream into an array of bytes.
81
+ * @internal
82
+ */
83
+ streamCollector?: __StreamCollector;
84
+ /**
85
+ * The function that will be used to convert a base64-encoded string to a byte array.
86
+ * @internal
87
+ */
88
+ base64Decoder?: __Decoder;
89
+ /**
90
+ * The function that will be used to convert binary data to a base64-encoded string.
91
+ * @internal
92
+ */
93
+ base64Encoder?: __Encoder;
94
+ /**
95
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
96
+ * @internal
97
+ */
98
+ utf8Decoder?: __Decoder;
99
+ /**
100
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
101
+ * @internal
102
+ */
103
+ utf8Encoder?: __Encoder;
104
+ /**
105
+ * The runtime environment.
106
+ * @internal
107
+ */
108
+ runtime?: string;
109
+ /**
110
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
111
+ * trait of an operation.
112
+ */
113
+ disableHostPrefix?: boolean;
114
+ /**
115
+ * Value for how many times a request will be made at most in case of retry.
116
+ */
117
+ maxAttempts?: number | __Provider<number>;
118
+ /**
119
+ * Specifies which retry algorithm to use.
120
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
121
+ *
122
+ */
123
+ retryMode?: string | __Provider<string>;
124
+ /**
125
+ * Optional logger for logging debug/info/warn/error.
126
+ */
127
+ logger?: __Logger;
128
+ /**
129
+ * Optional extensions
130
+ */
131
+ extensions?: RuntimeExtension[];
132
+ /**
133
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
134
+ */
135
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
136
+ /**
137
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
138
+ * @internal
139
+ */
140
+ defaultUserAgentProvider?: Provider<__UserAgent>;
141
+ }
142
+ /**
143
+ * @public
144
+ */
145
+ export type OneHookServiceClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & CustomEndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig;
146
+ /**
147
+ * @public
148
+ *
149
+ * The configuration interface of OneHookServiceClient class constructor that set the region, credentials and other options.
150
+ */
151
+ export interface OneHookServiceClientConfig extends OneHookServiceClientConfigType {
152
+ }
153
+ /**
154
+ * @public
155
+ */
156
+ export type OneHookServiceClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & CustomEndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig;
157
+ /**
158
+ * @public
159
+ *
160
+ * The resolved configuration interface of OneHookServiceClient class. This is resolved and normalized from the {@link OneHookServiceClientConfig | constructor configuration interface}.
161
+ */
162
+ export interface OneHookServiceClientResolvedConfig extends OneHookServiceClientResolvedConfigType {
163
+ }
164
+ /**
165
+ * @public
166
+ */
167
+ export declare class OneHookServiceClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, OneHookServiceClientResolvedConfig> {
168
+ /**
169
+ * The resolved configuration of OneHookServiceClient class. This is resolved and normalized from the {@link OneHookServiceClientConfig | constructor configuration interface}.
170
+ */
171
+ readonly config: OneHookServiceClientResolvedConfig;
172
+ constructor(...[configuration]: __CheckOptionalClientConfig<OneHookServiceClientConfig>);
173
+ /**
174
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
175
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
176
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
177
+ */
178
+ destroy(): void;
179
+ }
@@ -0,0 +1,26 @@
1
+ import { OneHookServiceHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
2
+ import { HttpAuthScheme } from "@smithy/types";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: OneHookServiceHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): OneHookServiceHttpAuthSchemeProvider;
11
+ }
12
+ /**
13
+ * @internal
14
+ */
15
+ export type HttpAuthRuntimeConfig = Partial<{
16
+ httpAuthSchemes: HttpAuthScheme[];
17
+ httpAuthSchemeProvider: OneHookServiceHttpAuthSchemeProvider;
18
+ }>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
23
+ /**
24
+ * @internal
25
+ */
26
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;