onehook-api-client 1.0.0 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/README.md +451 -0
  2. package/dist-cjs/{OneHookService.js → OneHook.js} +5 -5
  3. package/dist-cjs/{OneHookServiceClient.js → OneHookClient.js} +16 -11
  4. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +8 -0
  5. package/dist-cjs/auth/httpAuthSchemeProvider.js +24 -11
  6. package/dist-cjs/commands/AuthSocialCommand.js +1 -1
  7. package/dist-cjs/commands/ClaimPreKeyBundleCommand.js +1 -1
  8. package/dist-cjs/commands/CompleteLivenessSessionCommand.js +1 -1
  9. package/dist-cjs/commands/CompleteOnboardingCommand.js +1 -1
  10. package/dist-cjs/commands/CreateLivenessSessionCommand.js +1 -1
  11. package/dist-cjs/commands/DeleteMatchMessagesCommand.js +1 -1
  12. package/dist-cjs/commands/DeleteProfileCommand.js +1 -1
  13. package/dist-cjs/commands/DiscoverCommand.js +1 -1
  14. package/dist-cjs/commands/GenerateInviteCommand.js +1 -1
  15. package/dist-cjs/commands/GenerateUploadUrlCommand.js +1 -1
  16. package/dist-cjs/commands/GetMatchCommand.js +1 -1
  17. package/dist-cjs/commands/GetMyProfileCommand.js +1 -1
  18. package/dist-cjs/commands/GetPreferencesCommand.js +1 -1
  19. package/dist-cjs/commands/GetProfileCommand.js +1 -1
  20. package/dist-cjs/commands/GetStateCommand.js +1 -1
  21. package/dist-cjs/commands/GetUserByEmailCommand.js +1 -1
  22. package/dist-cjs/commands/GetUserCommand.js +1 -1
  23. package/dist-cjs/commands/IndexLocationCommand.js +1 -1
  24. package/dist-cjs/commands/InitUserCommand.js +1 -1
  25. package/dist-cjs/commands/LinkEmailCommand.js +1 -1
  26. package/dist-cjs/commands/LinkSocialCommand.js +1 -1
  27. package/dist-cjs/commands/RegisterPhoneCommand.js +1 -1
  28. package/dist-cjs/commands/RemoveLocationCommand.js +1 -1
  29. package/dist-cjs/commands/RequestEmailOtpCommand.js +1 -1
  30. package/dist-cjs/commands/RequestPhoneOtpCommand.js +1 -1
  31. package/dist-cjs/commands/RequestPhoneUpdateOtpCommand.js +1 -1
  32. package/dist-cjs/commands/SwipeCommand.js +1 -1
  33. package/dist-cjs/commands/UnhookCommand.js +1 -1
  34. package/dist-cjs/commands/UnlinkSocialCommand.js +1 -1
  35. package/dist-cjs/commands/UpdateEntitlementsCommand.js +1 -1
  36. package/dist-cjs/commands/UpdatePhoneNumberCommand.js +1 -1
  37. package/dist-cjs/commands/UpdatePreferencesCommand.js +1 -1
  38. package/dist-cjs/commands/UpdateProfileCommand.js +1 -1
  39. package/dist-cjs/commands/UpgradeUserCommand.js +1 -1
  40. package/dist-cjs/commands/UploadPreKeysCommand.js +1 -1
  41. package/dist-cjs/commands/ValidateInviteCommand.js +1 -1
  42. package/dist-cjs/endpoints.js +232 -0
  43. package/dist-cjs/graphql/types.js +1 -1
  44. package/dist-cjs/index.js +5 -5
  45. package/dist-cjs/models/{OneHookServiceServiceException.js → OneHookServiceException.js} +4 -4
  46. package/dist-cjs/models/models_0.js +17 -13
  47. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  48. package/dist-cjs/runtimeConfig.browser.js +7 -1
  49. package/dist-cjs/runtimeConfig.js +13 -4
  50. package/dist-cjs/runtimeConfig.shared.js +8 -5
  51. package/dist-cjs/runtimeExtensions.js +3 -12
  52. package/dist-es/{OneHookService.js → OneHook.js} +3 -3
  53. package/dist-es/{OneHookServiceClient.js → OneHookClient.js} +16 -11
  54. package/dist-es/auth/httpAuthExtensionConfiguration.js +8 -0
  55. package/dist-es/auth/httpAuthSchemeProvider.js +22 -9
  56. package/dist-es/commands/AuthSocialCommand.js +1 -1
  57. package/dist-es/commands/ClaimPreKeyBundleCommand.js +1 -1
  58. package/dist-es/commands/CompleteLivenessSessionCommand.js +1 -1
  59. package/dist-es/commands/CompleteOnboardingCommand.js +1 -1
  60. package/dist-es/commands/CreateLivenessSessionCommand.js +1 -1
  61. package/dist-es/commands/DeleteMatchMessagesCommand.js +1 -1
  62. package/dist-es/commands/DeleteProfileCommand.js +1 -1
  63. package/dist-es/commands/DiscoverCommand.js +1 -1
  64. package/dist-es/commands/GenerateInviteCommand.js +1 -1
  65. package/dist-es/commands/GenerateUploadUrlCommand.js +1 -1
  66. package/dist-es/commands/GetMatchCommand.js +1 -1
  67. package/dist-es/commands/GetMyProfileCommand.js +1 -1
  68. package/dist-es/commands/GetPreferencesCommand.js +1 -1
  69. package/dist-es/commands/GetProfileCommand.js +1 -1
  70. package/dist-es/commands/GetStateCommand.js +1 -1
  71. package/dist-es/commands/GetUserByEmailCommand.js +1 -1
  72. package/dist-es/commands/GetUserCommand.js +1 -1
  73. package/dist-es/commands/IndexLocationCommand.js +1 -1
  74. package/dist-es/commands/InitUserCommand.js +1 -1
  75. package/dist-es/commands/LinkEmailCommand.js +1 -1
  76. package/dist-es/commands/LinkSocialCommand.js +1 -1
  77. package/dist-es/commands/RegisterPhoneCommand.js +1 -1
  78. package/dist-es/commands/RemoveLocationCommand.js +1 -1
  79. package/dist-es/commands/RequestEmailOtpCommand.js +1 -1
  80. package/dist-es/commands/RequestPhoneOtpCommand.js +1 -1
  81. package/dist-es/commands/RequestPhoneUpdateOtpCommand.js +1 -1
  82. package/dist-es/commands/SwipeCommand.js +1 -1
  83. package/dist-es/commands/UnhookCommand.js +1 -1
  84. package/dist-es/commands/UnlinkSocialCommand.js +1 -1
  85. package/dist-es/commands/UpdateEntitlementsCommand.js +1 -1
  86. package/dist-es/commands/UpdatePhoneNumberCommand.js +1 -1
  87. package/dist-es/commands/UpdatePreferencesCommand.js +1 -1
  88. package/dist-es/commands/UpdateProfileCommand.js +1 -1
  89. package/dist-es/commands/UpgradeUserCommand.js +1 -1
  90. package/dist-es/commands/UploadPreKeysCommand.js +1 -1
  91. package/dist-es/commands/ValidateInviteCommand.js +1 -1
  92. package/dist-es/endpoints.js +228 -0
  93. package/dist-es/index.js +3 -3
  94. package/dist-es/models/{OneHookServiceServiceException.js → OneHookServiceException.js} +2 -2
  95. package/dist-es/models/models_0.js +13 -9
  96. package/dist-es/protocols/Aws_restJson1.js +1 -1
  97. package/dist-es/runtimeConfig.browser.js +7 -1
  98. package/dist-es/runtimeConfig.js +13 -4
  99. package/dist-es/runtimeConfig.shared.js +9 -6
  100. package/dist-es/runtimeExtensions.js +3 -12
  101. package/dist-types/{OneHookService.d.ts → OneHook.d.ts} +3 -3
  102. package/dist-types/{OneHookServiceClient.d.ts → OneHookClient.d.ts} +58 -12
  103. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +8 -5
  104. package/dist-types/auth/httpAuthSchemeProvider.d.ts +13 -11
  105. package/dist-types/commands/AuthSocialCommand.d.ts +11 -10
  106. package/dist-types/commands/ClaimPreKeyBundleCommand.d.ts +11 -10
  107. package/dist-types/commands/CompleteLivenessSessionCommand.d.ts +11 -10
  108. package/dist-types/commands/CompleteOnboardingCommand.d.ts +11 -10
  109. package/dist-types/commands/CreateLivenessSessionCommand.d.ts +11 -10
  110. package/dist-types/commands/DeleteMatchMessagesCommand.d.ts +11 -10
  111. package/dist-types/commands/DeleteProfileCommand.d.ts +11 -10
  112. package/dist-types/commands/DiscoverCommand.d.ts +11 -10
  113. package/dist-types/commands/GenerateInviteCommand.d.ts +11 -10
  114. package/dist-types/commands/GenerateUploadUrlCommand.d.ts +11 -10
  115. package/dist-types/commands/GetMatchCommand.d.ts +11 -10
  116. package/dist-types/commands/GetMyProfileCommand.d.ts +11 -10
  117. package/dist-types/commands/GetPreferencesCommand.d.ts +11 -10
  118. package/dist-types/commands/GetProfileCommand.d.ts +11 -10
  119. package/dist-types/commands/GetStateCommand.d.ts +11 -10
  120. package/dist-types/commands/GetUserByEmailCommand.d.ts +11 -10
  121. package/dist-types/commands/GetUserCommand.d.ts +11 -10
  122. package/dist-types/commands/IndexLocationCommand.d.ts +11 -10
  123. package/dist-types/commands/InitUserCommand.d.ts +11 -10
  124. package/dist-types/commands/LinkEmailCommand.d.ts +11 -10
  125. package/dist-types/commands/LinkSocialCommand.d.ts +11 -10
  126. package/dist-types/commands/RegisterPhoneCommand.d.ts +11 -10
  127. package/dist-types/commands/RemoveLocationCommand.d.ts +11 -10
  128. package/dist-types/commands/RequestEmailOtpCommand.d.ts +11 -10
  129. package/dist-types/commands/RequestPhoneOtpCommand.d.ts +11 -10
  130. package/dist-types/commands/RequestPhoneUpdateOtpCommand.d.ts +11 -10
  131. package/dist-types/commands/SwipeCommand.d.ts +11 -10
  132. package/dist-types/commands/UnhookCommand.d.ts +11 -10
  133. package/dist-types/commands/UnlinkSocialCommand.d.ts +11 -10
  134. package/dist-types/commands/UpdateEntitlementsCommand.d.ts +11 -10
  135. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +11 -10
  136. package/dist-types/commands/UpdatePreferencesCommand.d.ts +11 -10
  137. package/dist-types/commands/UpdateProfileCommand.d.ts +11 -10
  138. package/dist-types/commands/UpgradeUserCommand.d.ts +11 -10
  139. package/dist-types/commands/UploadPreKeysCommand.d.ts +11 -10
  140. package/dist-types/commands/ValidateInviteCommand.d.ts +11 -10
  141. package/dist-types/endpoints.d.ts +2 -0
  142. package/dist-types/extensionConfiguration.d.ts +2 -1
  143. package/dist-types/index.d.ts +4 -4
  144. package/dist-types/models/{OneHookServiceServiceException.d.ts → OneHookServiceException.d.ts} +2 -2
  145. package/dist-types/models/models_0.d.ts +5 -1
  146. package/dist-types/runtimeConfig.browser.d.ts +28 -13
  147. package/dist-types/runtimeConfig.d.ts +28 -13
  148. package/dist-types/runtimeConfig.native.d.ts +28 -13
  149. package/dist-types/runtimeConfig.shared.d.ts +6 -10
  150. package/dist-types/runtimeExtensions.d.ts +2 -2
  151. package/package.json +38 -36
@@ -1,58 +1,62 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NotFoundError = exports.InternalServerError = exports.BadRequestError = exports.ForbiddenError = void 0;
4
- const OneHookServiceServiceException_1 = require("./OneHookServiceServiceException");
5
- class ForbiddenError extends OneHookServiceServiceException_1.OneHookServiceServiceException {
4
+ const OneHookServiceException_1 = require("./OneHookServiceException");
5
+ class ForbiddenError extends OneHookServiceException_1.OneHookServiceException {
6
+ name = "ForbiddenError";
7
+ $fault = "client";
8
+ error;
6
9
  constructor(opts) {
7
10
  super({
8
11
  name: "ForbiddenError",
9
12
  $fault: "client",
10
13
  ...opts
11
14
  });
12
- this.name = "ForbiddenError";
13
- this.$fault = "client";
14
15
  Object.setPrototypeOf(this, ForbiddenError.prototype);
15
16
  this.error = opts.error;
16
17
  }
17
18
  }
18
19
  exports.ForbiddenError = ForbiddenError;
19
- class BadRequestError extends OneHookServiceServiceException_1.OneHookServiceServiceException {
20
+ class BadRequestError extends OneHookServiceException_1.OneHookServiceException {
21
+ name = "BadRequestError";
22
+ $fault = "client";
23
+ error;
20
24
  constructor(opts) {
21
25
  super({
22
26
  name: "BadRequestError",
23
27
  $fault: "client",
24
28
  ...opts
25
29
  });
26
- this.name = "BadRequestError";
27
- this.$fault = "client";
28
30
  Object.setPrototypeOf(this, BadRequestError.prototype);
29
31
  this.error = opts.error;
30
32
  }
31
33
  }
32
34
  exports.BadRequestError = BadRequestError;
33
- class InternalServerError extends OneHookServiceServiceException_1.OneHookServiceServiceException {
35
+ class InternalServerError extends OneHookServiceException_1.OneHookServiceException {
36
+ name = "InternalServerError";
37
+ $fault = "server";
38
+ error;
34
39
  constructor(opts) {
35
40
  super({
36
41
  name: "InternalServerError",
37
42
  $fault: "server",
38
43
  ...opts
39
44
  });
40
- this.name = "InternalServerError";
41
- this.$fault = "server";
42
45
  Object.setPrototypeOf(this, InternalServerError.prototype);
43
46
  this.error = opts.error;
44
47
  }
45
48
  }
46
49
  exports.InternalServerError = InternalServerError;
47
- class NotFoundError extends OneHookServiceServiceException_1.OneHookServiceServiceException {
50
+ class NotFoundError extends OneHookServiceException_1.OneHookServiceException {
51
+ name = "NotFoundError";
52
+ $fault = "client";
53
+ error;
48
54
  constructor(opts) {
49
55
  super({
50
56
  name: "NotFoundError",
51
57
  $fault: "client",
52
58
  ...opts
53
59
  });
54
- this.name = "NotFoundError";
55
- this.$fault = "client";
56
60
  Object.setPrototypeOf(this, NotFoundError.prototype);
57
61
  this.error = opts.error;
58
62
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UnlinkSocialCommand = exports.de_RequestPhoneUpdateOtpCommand = exports.de_RequestPhoneOtpCommand = exports.de_RequestEmailOtpCommand = exports.de_RegisterPhoneCommand = exports.de_LinkSocialCommand = exports.de_LinkEmailCommand = exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = exports.de_GenerateInviteCommand = exports.de_AuthSocialCommand = exports.de_UploadPreKeysCommand = exports.de_DeleteMatchMessagesCommand = exports.de_ClaimPreKeyBundleCommand = exports.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_GetProfileCommand = exports.se_GetMyProfileCommand = exports.se_GenerateUploadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CompleteLivenessSessionCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_IndexLocationCommand = exports.se_GetPreferencesCommand = exports.se_DiscoverCommand = exports.se_ValidateInviteCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_RequestPhoneUpdateOtpCommand = exports.se_RequestPhoneOtpCommand = exports.se_RequestEmailOtpCommand = exports.se_RegisterPhoneCommand = exports.se_LinkSocialCommand = exports.se_LinkEmailCommand = exports.se_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GenerateInviteCommand = exports.se_AuthSocialCommand = exports.se_UploadPreKeysCommand = exports.se_DeleteMatchMessagesCommand = exports.se_ClaimPreKeyBundleCommand = void 0;
4
4
  exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_GetProfileCommand = exports.de_GetMyProfileCommand = exports.de_GenerateUploadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_IndexLocationCommand = exports.de_GetPreferencesCommand = exports.de_DiscoverCommand = exports.de_ValidateInviteCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = void 0;
5
- const OneHookServiceServiceException_1 = require("../models/OneHookServiceServiceException");
5
+ const OneHookServiceException_1 = require("../models/OneHookServiceException");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const core_1 = require("@aws-sdk/core");
8
8
  const core_2 = require("@smithy/core");
@@ -1271,7 +1271,7 @@ const de_CommandError = async (output, context) => {
1271
1271
  });
1272
1272
  }
1273
1273
  };
1274
- const throwDefaultError = (0, smithy_client_1.withBaseException)(OneHookServiceServiceException_1.OneHookServiceServiceException);
1274
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(OneHookServiceException_1.OneHookServiceException);
1275
1275
  const de_ForbiddenErrorRes = async (parsedOutput, context) => {
1276
1276
  const contents = (0, smithy_client_1.map)({});
1277
1277
  const data = parsedOutput.body;
@@ -5,7 +5,9 @@ const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
7
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
+ const config_resolver_1 = require("@smithy/config-resolver");
8
9
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
10
+ const invalid_dependency_1 = require("@smithy/invalid-dependency");
9
11
  const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
10
12
  const util_retry_1 = require("@smithy/util-retry");
11
13
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
@@ -21,12 +23,16 @@ const getRuntimeConfig = (config) => {
21
23
  runtime: "browser",
22
24
  defaultsMode,
23
25
  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 }),
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
25
28
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
29
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
26
30
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
31
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
28
32
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
29
33
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
34
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
30
36
  };
31
37
  };
32
38
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,7 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const core_1 = require("@aws-sdk/core");
7
+ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
6
8
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
9
+ const config_resolver_1 = require("@smithy/config-resolver");
7
10
  const hash_node_1 = require("@smithy/hash-node");
8
11
  const middleware_retry_1 = require("@smithy/middleware-retry");
9
12
  const node_config_provider_1 = require("@smithy/node-config-provider");
@@ -19,19 +22,25 @@ const getRuntimeConfig = (config) => {
19
22
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
20
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
21
24
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
26
+ const profileConfig = { profile: config?.profile };
22
27
  return {
23
28
  ...clientSharedValues,
24
29
  ...config,
25
30
  runtime: "node",
26
31
  defaultsMode,
27
32
  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),
33
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
34
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
36
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
30
37
  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, }),
38
+ 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, }, config),
32
39
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
33
40
  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),
41
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
42
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
43
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
35
44
  };
36
45
  };
37
46
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
5
- const core_1 = require("@smithy/core");
5
+ const endpoints_1 = require("./endpoints");
6
+ const core_1 = require("@aws-sdk/core");
6
7
  const smithy_client_1 = require("@smithy/smithy-client");
7
8
  const url_parser_1 = require("@smithy/url-parser");
8
9
  const util_base64_1 = require("@smithy/util-base64");
@@ -14,13 +15,15 @@ const getRuntimeConfig = (config) => {
14
15
  base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
15
16
  disableHostPrefix: config?.disableHostPrefix ?? false,
16
17
  extensions: config?.extensions ?? [],
17
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultOneHookServiceHttpAuthSchemeProvider,
18
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultOneHookHttpAuthSchemeProvider,
18
19
  httpAuthSchemes: config?.httpAuthSchemes ?? [{
19
- schemeId: "smithy.api#noAuth",
20
- identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
21
- signer: new core_1.NoAuthSigner(),
20
+ schemeId: "aws.auth#sigv4",
21
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
+ signer: new core_1.AwsSdkSigV4Signer(),
22
23
  }],
23
24
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
25
+ regionInfoProvider: config?.regionInfoProvider ?? endpoints_1.defaultRegionInfoProvider,
26
+ serviceId: config?.serviceId ?? "OneHook",
24
27
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
25
28
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
26
29
  utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
@@ -2,21 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveRuntimeExtensions = void 0;
4
4
  const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
5
+ const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
5
6
  const protocol_http_1 = require("@smithy/protocol-http");
6
7
  const smithy_client_1 = require("@smithy/smithy-client");
7
- const asPartial = (t) => t;
8
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
- };
9
+ const extensionConfiguration = Object.assign((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig), (0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig));
14
10
  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
- };
11
+ return Object.assign(runtimeConfig, (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration), (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration));
21
12
  };
22
13
  exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -1,4 +1,4 @@
1
- import { OneHookServiceClient, } from "./OneHookServiceClient";
1
+ import { OneHookClient, } from "./OneHookClient";
2
2
  import { AuthSocialCommand, } from "./commands/AuthSocialCommand";
3
3
  import { ClaimPreKeyBundleCommand, } from "./commands/ClaimPreKeyBundleCommand";
4
4
  import { CompleteLivenessSessionCommand, } from "./commands/CompleteLivenessSessionCommand";
@@ -74,6 +74,6 @@ const commands = {
74
74
  UnhookCommand,
75
75
  UpgradeUserCommand,
76
76
  };
77
- export class OneHookService extends OneHookServiceClient {
77
+ export class OneHook extends OneHookClient {
78
78
  }
79
- createAggregatedClient(commands, OneHookService);
79
+ createAggregatedClient(commands, OneHook);
@@ -1,27 +1,30 @@
1
- import { defaultOneHookServiceHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
1
+ import { defaultOneHookHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
2
2
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
3
3
  import { resolveRuntimeExtensions, } from "./runtimeExtensions";
4
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
6
  import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
7
7
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
8
- import { resolveCustomEndpointsConfig, } from "@smithy/config-resolver";
8
+ import { resolveEndpointsConfig, resolveRegionConfig, } from "@smithy/config-resolver";
9
9
  import { DefaultIdentityProviderConfig, getHttpAuthSchemePlugin, getHttpSigningPlugin, } from "@smithy/core";
10
10
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
11
11
  import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
12
12
  import { Client as __Client, } from "@smithy/smithy-client";
13
13
  export { __Client };
14
- export class OneHookServiceClient extends __Client {
14
+ export class OneHookClient extends __Client {
15
+ config;
15
16
  constructor(...[configuration]) {
16
17
  let _config_0 = __getRuntimeConfig(configuration || {});
17
- let _config_1 = resolveCustomEndpointsConfig(_config_0);
18
- let _config_2 = resolveRetryConfig(_config_1);
18
+ super(_config_0);
19
+ this.initConfig = _config_0;
20
+ let _config_1 = resolveRetryConfig(_config_0);
21
+ let _config_2 = resolveRegionConfig(_config_1);
19
22
  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;
23
+ let _config_4 = resolveEndpointsConfig(_config_3);
24
+ let _config_5 = resolveUserAgentConfig(_config_4);
25
+ let _config_6 = resolveHttpAuthSchemeConfig(_config_5);
26
+ let _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []);
27
+ this.config = _config_7;
25
28
  this.middlewareStack.use(getRetryPlugin(this.config));
26
29
  this.middlewareStack.use(getContentLengthPlugin(this.config));
27
30
  this.middlewareStack.use(getHttpSigningPlugin(this.config));
@@ -30,7 +33,9 @@ export class OneHookServiceClient extends __Client {
30
33
  this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
31
34
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
35
  this.middlewareStack.use(getHttpAuthSchemePlugin(this.config, {
33
- httpAuthSchemeParametersProvider: defaultOneHookServiceHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({}),
36
+ httpAuthSchemeParametersProvider: defaultOneHookHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
37
+ "aws.auth#sigv4": config.credentials,
38
+ }),
34
39
  }));
35
40
  }
36
41
  destroy() {
@@ -1,6 +1,7 @@
1
1
  export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
2
  let _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
3
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
4
5
  return {
5
6
  setHttpAuthScheme(httpAuthScheme) {
6
7
  const index = _httpAuthSchemes.findIndex(scheme => scheme.schemeId === httpAuthScheme.schemeId);
@@ -20,11 +21,18 @@ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
20
21
  httpAuthSchemeProvider() {
21
22
  return _httpAuthSchemeProvider;
22
23
  },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
23
30
  };
24
31
  };
25
32
  export const resolveHttpAuthRuntimeConfig = (config) => {
26
33
  return {
27
34
  httpAuthSchemes: config.httpAuthSchemes(),
28
35
  httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
29
37
  };
30
38
  };
@@ -1,21 +1,35 @@
1
- import { getSmithyContext } from "@smithy/util-middleware";
2
- export const defaultOneHookServiceHttpAuthSchemeParametersProvider = async (config, context, input) => {
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
2
+ import { getSmithyContext, normalizeProvider, } from "@smithy/util-middleware";
3
+ export const defaultOneHookHttpAuthSchemeParametersProvider = async (config, context, input) => {
3
4
  return {
4
5
  operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
5
9
  };
6
10
  };
7
- function createSmithyApiNoAuthHttpAuthOption(authParameters) {
11
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
8
12
  return {
9
- schemeId: "smithy.api#noAuth",
13
+ schemeId: "aws.auth#sigv4",
14
+ signingProperties: {
15
+ name: "onehook",
16
+ region: authParameters.region,
17
+ },
18
+ propertiesExtractor: (config, context) => ({
19
+ signingProperties: {
20
+ config,
21
+ context,
22
+ },
23
+ }),
10
24
  };
11
25
  }
12
26
  ;
13
- export const defaultOneHookServiceHttpAuthSchemeProvider = (authParameters) => {
27
+ export const defaultOneHookHttpAuthSchemeProvider = (authParameters) => {
14
28
  const options = [];
15
29
  switch (authParameters.operation) {
16
30
  default:
17
31
  {
18
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
32
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
19
33
  }
20
34
  ;
21
35
  }
@@ -23,7 +37,6 @@ export const defaultOneHookServiceHttpAuthSchemeProvider = (authParameters) => {
23
37
  return options;
24
38
  };
25
39
  export const resolveHttpAuthSchemeConfig = (config) => {
26
- return {
27
- ...config,
28
- };
40
+ const config_0 = resolveAwsSdkSigV4Config(config);
41
+ return Object.assign(config_0, {});
29
42
  };
@@ -9,7 +9,7 @@ export class AuthSocialCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "AuthSocial", {})
12
- .n("OneHookServiceClient", "AuthSocialCommand")
12
+ .n("OneHookClient", "AuthSocialCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_AuthSocialCommand)
15
15
  .de(de_AuthSocialCommand)
@@ -9,7 +9,7 @@ export class ClaimPreKeyBundleCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "ClaimPreKeyBundle", {})
12
- .n("OneHookServiceClient", "ClaimPreKeyBundleCommand")
12
+ .n("OneHookClient", "ClaimPreKeyBundleCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_ClaimPreKeyBundleCommand)
15
15
  .de(de_ClaimPreKeyBundleCommand)
@@ -9,7 +9,7 @@ export class CompleteLivenessSessionCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "CompleteLivenessSession", {})
12
- .n("OneHookServiceClient", "CompleteLivenessSessionCommand")
12
+ .n("OneHookClient", "CompleteLivenessSessionCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_CompleteLivenessSessionCommand)
15
15
  .de(de_CompleteLivenessSessionCommand)
@@ -9,7 +9,7 @@ export class CompleteOnboardingCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "CompleteOnboarding", {})
12
- .n("OneHookServiceClient", "CompleteOnboardingCommand")
12
+ .n("OneHookClient", "CompleteOnboardingCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_CompleteOnboardingCommand)
15
15
  .de(de_CompleteOnboardingCommand)
@@ -9,7 +9,7 @@ export class CreateLivenessSessionCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "CreateLivenessSession", {})
12
- .n("OneHookServiceClient", "CreateLivenessSessionCommand")
12
+ .n("OneHookClient", "CreateLivenessSessionCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_CreateLivenessSessionCommand)
15
15
  .de(de_CreateLivenessSessionCommand)
@@ -9,7 +9,7 @@ export class DeleteMatchMessagesCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "DeleteMatchMessages", {})
12
- .n("OneHookServiceClient", "DeleteMatchMessagesCommand")
12
+ .n("OneHookClient", "DeleteMatchMessagesCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_DeleteMatchMessagesCommand)
15
15
  .de(de_DeleteMatchMessagesCommand)
@@ -9,7 +9,7 @@ export class DeleteProfileCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "DeleteProfile", {})
12
- .n("OneHookServiceClient", "DeleteProfileCommand")
12
+ .n("OneHookClient", "DeleteProfileCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_DeleteProfileCommand)
15
15
  .de(de_DeleteProfileCommand)
@@ -9,7 +9,7 @@ export class DiscoverCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "Discover", {})
12
- .n("OneHookServiceClient", "DiscoverCommand")
12
+ .n("OneHookClient", "DiscoverCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_DiscoverCommand)
15
15
  .de(de_DiscoverCommand)
@@ -9,7 +9,7 @@ export class GenerateInviteCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "GenerateInvite", {})
12
- .n("OneHookServiceClient", "GenerateInviteCommand")
12
+ .n("OneHookClient", "GenerateInviteCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_GenerateInviteCommand)
15
15
  .de(de_GenerateInviteCommand)
@@ -9,7 +9,7 @@ export class GenerateUploadUrlCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "GenerateUploadUrl", {})
12
- .n("OneHookServiceClient", "GenerateUploadUrlCommand")
12
+ .n("OneHookClient", "GenerateUploadUrlCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_GenerateUploadUrlCommand)
15
15
  .de(de_GenerateUploadUrlCommand)
@@ -9,7 +9,7 @@ export class GetMatchCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "GetMatch", {})
12
- .n("OneHookServiceClient", "GetMatchCommand")
12
+ .n("OneHookClient", "GetMatchCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_GetMatchCommand)
15
15
  .de(de_GetMatchCommand)
@@ -9,7 +9,7 @@ export class GetMyProfileCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "GetMyProfile", {})
12
- .n("OneHookServiceClient", "GetMyProfileCommand")
12
+ .n("OneHookClient", "GetMyProfileCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_GetMyProfileCommand)
15
15
  .de(de_GetMyProfileCommand)
@@ -9,7 +9,7 @@ export class GetPreferencesCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "GetPreferences", {})
12
- .n("OneHookServiceClient", "GetPreferencesCommand")
12
+ .n("OneHookClient", "GetPreferencesCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_GetPreferencesCommand)
15
15
  .de(de_GetPreferencesCommand)
@@ -9,7 +9,7 @@ export class GetProfileCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "GetProfile", {})
12
- .n("OneHookServiceClient", "GetProfileCommand")
12
+ .n("OneHookClient", "GetProfileCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_GetProfileCommand)
15
15
  .de(de_GetProfileCommand)
@@ -9,7 +9,7 @@ export class GetStateCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "GetState", {})
12
- .n("OneHookServiceClient", "GetStateCommand")
12
+ .n("OneHookClient", "GetStateCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_GetStateCommand)
15
15
  .de(de_GetStateCommand)
@@ -9,7 +9,7 @@ export class GetUserByEmailCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "GetUserByEmail", {})
12
- .n("OneHookServiceClient", "GetUserByEmailCommand")
12
+ .n("OneHookClient", "GetUserByEmailCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_GetUserByEmailCommand)
15
15
  .de(de_GetUserByEmailCommand)
@@ -9,7 +9,7 @@ export class GetUserCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "GetUser", {})
12
- .n("OneHookServiceClient", "GetUserCommand")
12
+ .n("OneHookClient", "GetUserCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_GetUserCommand)
15
15
  .de(de_GetUserCommand)
@@ -9,7 +9,7 @@ export class IndexLocationCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "IndexLocation", {})
12
- .n("OneHookServiceClient", "IndexLocationCommand")
12
+ .n("OneHookClient", "IndexLocationCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_IndexLocationCommand)
15
15
  .de(de_IndexLocationCommand)
@@ -9,7 +9,7 @@ export class InitUserCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "InitUser", {})
12
- .n("OneHookServiceClient", "InitUserCommand")
12
+ .n("OneHookClient", "InitUserCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_InitUserCommand)
15
15
  .de(de_InitUserCommand)
@@ -9,7 +9,7 @@ export class LinkEmailCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "LinkEmail", {})
12
- .n("OneHookServiceClient", "LinkEmailCommand")
12
+ .n("OneHookClient", "LinkEmailCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_LinkEmailCommand)
15
15
  .de(de_LinkEmailCommand)
@@ -9,7 +9,7 @@ export class LinkSocialCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "LinkSocial", {})
12
- .n("OneHookServiceClient", "LinkSocialCommand")
12
+ .n("OneHookClient", "LinkSocialCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_LinkSocialCommand)
15
15
  .de(de_LinkSocialCommand)
@@ -9,7 +9,7 @@ export class RegisterPhoneCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "RegisterPhone", {})
12
- .n("OneHookServiceClient", "RegisterPhoneCommand")
12
+ .n("OneHookClient", "RegisterPhoneCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_RegisterPhoneCommand)
15
15
  .de(de_RegisterPhoneCommand)
@@ -9,7 +9,7 @@ export class RemoveLocationCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "RemoveLocation", {})
12
- .n("OneHookServiceClient", "RemoveLocationCommand")
12
+ .n("OneHookClient", "RemoveLocationCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_RemoveLocationCommand)
15
15
  .de(de_RemoveLocationCommand)
@@ -9,7 +9,7 @@ export class RequestEmailOtpCommand extends $Command.classBuilder()
9
9
  ];
10
10
  })
11
11
  .s("OneHookService", "RequestEmailOtp", {})
12
- .n("OneHookServiceClient", "RequestEmailOtpCommand")
12
+ .n("OneHookClient", "RequestEmailOtpCommand")
13
13
  .f(void 0, void 0)
14
14
  .ser(se_RequestEmailOtpCommand)
15
15
  .de(de_RequestEmailOtpCommand)