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,136 @@
1
+ import { OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookServiceClient";
2
+ import { GetProfileRequest, ProfileResponse } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetProfileCommand}.
14
+ */
15
+ export interface GetProfileCommandInput extends GetProfileRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetProfileCommand}.
21
+ */
22
+ export interface GetProfileCommandOutput extends ProfileResponse, __MetadataBearer {
23
+ }
24
+ declare const GetProfileCommand_base: {
25
+ new (input: GetProfileCommandInput): import("@smithy/smithy-client").CommandImpl<GetProfileCommandInput, GetProfileCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetProfileCommandInput): import("@smithy/smithy-client").CommandImpl<GetProfileCommandInput, GetProfileCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * @public
31
+ *
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { OneHookServiceClient, GetProfileCommand } from "onehook-api-client"; // ES Modules import
36
+ * // const { OneHookServiceClient, GetProfileCommand } = require("onehook-api-client"); // CommonJS import
37
+ * const client = new OneHookServiceClient(config);
38
+ * const input = { // GetProfileRequest
39
+ * userId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetProfileCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ProfileResponse
44
+ * // userId: "STRING_VALUE", // required
45
+ * // displayName: "STRING_VALUE",
46
+ * // bio: "STRING_VALUE",
47
+ * // age: Number("int"),
48
+ * // gender: "STRING_VALUE",
49
+ * // interestedIn: [ // StringList
50
+ * // "STRING_VALUE",
51
+ * // ],
52
+ * // relationshipType: "STRING_VALUE",
53
+ * // wantsKids: "STRING_VALUE",
54
+ * // familyPlans: "STRING_VALUE",
55
+ * // smokingStatus: "STRING_VALUE",
56
+ * // drinkingStatus: "STRING_VALUE",
57
+ * // cannabisStatus: "STRING_VALUE",
58
+ * // drugsStatus: "STRING_VALUE",
59
+ * // religion: "STRING_VALUE",
60
+ * // interests: [
61
+ * // "STRING_VALUE",
62
+ * // ],
63
+ * // starSign: "STRING_VALUE",
64
+ * // verified: true || false,
65
+ * // subscriptionTier: "STRING_VALUE",
66
+ * // pictures: [
67
+ * // "STRING_VALUE",
68
+ * // ],
69
+ * // videos: [
70
+ * // "STRING_VALUE",
71
+ * // ],
72
+ * // audioPrompt: "STRING_VALUE",
73
+ * // moderationStatus: "STRING_VALUE",
74
+ * // causes: [
75
+ * // "STRING_VALUE",
76
+ * // ],
77
+ * // communities: "<StringList>",
78
+ * // qualities: "<StringList>",
79
+ * // prompts: [ // ProfilePromptList
80
+ * // { // ProfilePrompt
81
+ * // promptId: "STRING_VALUE", // required
82
+ * // answer: "STRING_VALUE", // required
83
+ * // imageKey: "STRING_VALUE",
84
+ * // },
85
+ * // ],
86
+ * // socialLinks: { // StringMap
87
+ * // "<keys>": "STRING_VALUE",
88
+ * // },
89
+ * // openers: [ // OpenerList
90
+ * // { // Opener
91
+ * // text: "STRING_VALUE", // required
92
+ * // imageKey: "STRING_VALUE",
93
+ * // },
94
+ * // ],
95
+ * // work: "STRING_VALUE",
96
+ * // education: "STRING_VALUE",
97
+ * // hometown: "STRING_VALUE",
98
+ * // currentLocation: "STRING_VALUE",
99
+ * // height: Number("int"),
100
+ * // exercise: "STRING_VALUE",
101
+ * // educationLevel: "STRING_VALUE",
102
+ * // politicalView: "STRING_VALUE",
103
+ * // languages: "<StringList>",
104
+ * // };
105
+ *
106
+ * ```
107
+ *
108
+ * @param GetProfileCommandInput - {@link GetProfileCommandInput}
109
+ * @returns {@link GetProfileCommandOutput}
110
+ * @see {@link GetProfileCommandInput} for command's `input` shape.
111
+ * @see {@link GetProfileCommandOutput} for command's `response` shape.
112
+ * @see {@link OneHookServiceClientResolvedConfig | config} for OneHookServiceClient's `config` shape.
113
+ *
114
+ * @throws {@link BadRequestError} (client fault)
115
+ *
116
+ * @throws {@link NotFoundError} (client fault)
117
+ *
118
+ * @throws {@link InternalServerError} (server fault)
119
+ *
120
+ * @throws {@link OneHookServiceServiceException}
121
+ * <p>Base exception class for all service exceptions from OneHookService service.</p>
122
+ *
123
+ */
124
+ export declare class GetProfileCommand extends GetProfileCommand_base {
125
+ /** @internal type navigation helper, not in runtime. */
126
+ protected static __types: {
127
+ api: {
128
+ input: GetProfileRequest;
129
+ output: ProfileResponse;
130
+ };
131
+ sdk: {
132
+ input: GetProfileCommandInput;
133
+ output: GetProfileCommandOutput;
134
+ };
135
+ };
136
+ }
@@ -0,0 +1,83 @@
1
+ import { OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookServiceClient";
2
+ import { GetStateRequest, UserStateResponse } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetStateCommand}.
14
+ */
15
+ export interface GetStateCommandInput extends GetStateRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetStateCommand}.
21
+ */
22
+ export interface GetStateCommandOutput extends UserStateResponse, __MetadataBearer {
23
+ }
24
+ declare const GetStateCommand_base: {
25
+ new (input: GetStateCommandInput): import("@smithy/smithy-client").CommandImpl<GetStateCommandInput, GetStateCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetStateCommandInput): import("@smithy/smithy-client").CommandImpl<GetStateCommandInput, GetStateCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * @public
31
+ *
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { OneHookServiceClient, GetStateCommand } from "onehook-api-client"; // ES Modules import
36
+ * // const { OneHookServiceClient, GetStateCommand } = require("onehook-api-client"); // CommonJS import
37
+ * const client = new OneHookServiceClient(config);
38
+ * const input = { // GetStateRequest
39
+ * userId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetStateCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // UserStateResponse
44
+ * // userId: "STRING_VALUE", // required
45
+ * // state: "STRING_VALUE", // required
46
+ * // activeConnections: Number("int"), // required
47
+ * // matchIds: [ // StringList // required
48
+ * // "STRING_VALUE",
49
+ * // ],
50
+ * // subscriptionTier: "STRING_VALUE", // required
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param GetStateCommandInput - {@link GetStateCommandInput}
56
+ * @returns {@link GetStateCommandOutput}
57
+ * @see {@link GetStateCommandInput} for command's `input` shape.
58
+ * @see {@link GetStateCommandOutput} for command's `response` shape.
59
+ * @see {@link OneHookServiceClientResolvedConfig | config} for OneHookServiceClient's `config` shape.
60
+ *
61
+ * @throws {@link BadRequestError} (client fault)
62
+ *
63
+ * @throws {@link NotFoundError} (client fault)
64
+ *
65
+ * @throws {@link InternalServerError} (server fault)
66
+ *
67
+ * @throws {@link OneHookServiceServiceException}
68
+ * <p>Base exception class for all service exceptions from OneHookService service.</p>
69
+ *
70
+ */
71
+ export declare class GetStateCommand extends GetStateCommand_base {
72
+ /** @internal type navigation helper, not in runtime. */
73
+ protected static __types: {
74
+ api: {
75
+ input: GetStateRequest;
76
+ output: UserStateResponse;
77
+ };
78
+ sdk: {
79
+ input: GetStateCommandInput;
80
+ output: GetStateCommandOutput;
81
+ };
82
+ };
83
+ }
@@ -0,0 +1,83 @@
1
+ import { OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookServiceClient";
2
+ import { GetUserByEmailRequest, UserResponse } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetUserByEmailCommand}.
14
+ */
15
+ export interface GetUserByEmailCommandInput extends GetUserByEmailRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetUserByEmailCommand}.
21
+ */
22
+ export interface GetUserByEmailCommandOutput extends UserResponse, __MetadataBearer {
23
+ }
24
+ declare const GetUserByEmailCommand_base: {
25
+ new (input: GetUserByEmailCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserByEmailCommandInput, GetUserByEmailCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetUserByEmailCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserByEmailCommandInput, GetUserByEmailCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * @public
31
+ *
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { OneHookServiceClient, GetUserByEmailCommand } from "onehook-api-client"; // ES Modules import
36
+ * // const { OneHookServiceClient, GetUserByEmailCommand } = require("onehook-api-client"); // CommonJS import
37
+ * const client = new OneHookServiceClient(config);
38
+ * const input = { // GetUserByEmailRequest
39
+ * email: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetUserByEmailCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // UserResponse
44
+ * // userId: "STRING_VALUE", // required
45
+ * // email: "STRING_VALUE",
46
+ * // phoneNumber: "STRING_VALUE",
47
+ * // displayName: "STRING_VALUE",
48
+ * // appleId: "STRING_VALUE",
49
+ * // appleEmail: "STRING_VALUE",
50
+ * // googleId: "STRING_VALUE",
51
+ * // googleEmail: "STRING_VALUE",
52
+ * // userState: "STRING_VALUE",
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param GetUserByEmailCommandInput - {@link GetUserByEmailCommandInput}
58
+ * @returns {@link GetUserByEmailCommandOutput}
59
+ * @see {@link GetUserByEmailCommandInput} for command's `input` shape.
60
+ * @see {@link GetUserByEmailCommandOutput} for command's `response` shape.
61
+ * @see {@link OneHookServiceClientResolvedConfig | config} for OneHookServiceClient's `config` shape.
62
+ *
63
+ * @throws {@link NotFoundError} (client fault)
64
+ *
65
+ * @throws {@link InternalServerError} (server fault)
66
+ *
67
+ * @throws {@link OneHookServiceServiceException}
68
+ * <p>Base exception class for all service exceptions from OneHookService service.</p>
69
+ *
70
+ */
71
+ export declare class GetUserByEmailCommand extends GetUserByEmailCommand_base {
72
+ /** @internal type navigation helper, not in runtime. */
73
+ protected static __types: {
74
+ api: {
75
+ input: GetUserByEmailRequest;
76
+ output: UserResponse;
77
+ };
78
+ sdk: {
79
+ input: GetUserByEmailCommandInput;
80
+ output: GetUserByEmailCommandOutput;
81
+ };
82
+ };
83
+ }
@@ -0,0 +1,83 @@
1
+ import { OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookServiceClient";
2
+ import { GetUserRequest, UserResponse } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetUserCommand}.
14
+ */
15
+ export interface GetUserCommandInput extends GetUserRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetUserCommand}.
21
+ */
22
+ export interface GetUserCommandOutput extends UserResponse, __MetadataBearer {
23
+ }
24
+ declare const GetUserCommand_base: {
25
+ new (input: GetUserCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserCommandInput, GetUserCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetUserCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserCommandInput, GetUserCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * @public
31
+ *
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { OneHookServiceClient, GetUserCommand } from "onehook-api-client"; // ES Modules import
36
+ * // const { OneHookServiceClient, GetUserCommand } = require("onehook-api-client"); // CommonJS import
37
+ * const client = new OneHookServiceClient(config);
38
+ * const input = { // GetUserRequest
39
+ * userId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetUserCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // UserResponse
44
+ * // userId: "STRING_VALUE", // required
45
+ * // email: "STRING_VALUE",
46
+ * // phoneNumber: "STRING_VALUE",
47
+ * // displayName: "STRING_VALUE",
48
+ * // appleId: "STRING_VALUE",
49
+ * // appleEmail: "STRING_VALUE",
50
+ * // googleId: "STRING_VALUE",
51
+ * // googleEmail: "STRING_VALUE",
52
+ * // userState: "STRING_VALUE",
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param GetUserCommandInput - {@link GetUserCommandInput}
58
+ * @returns {@link GetUserCommandOutput}
59
+ * @see {@link GetUserCommandInput} for command's `input` shape.
60
+ * @see {@link GetUserCommandOutput} for command's `response` shape.
61
+ * @see {@link OneHookServiceClientResolvedConfig | config} for OneHookServiceClient's `config` shape.
62
+ *
63
+ * @throws {@link NotFoundError} (client fault)
64
+ *
65
+ * @throws {@link InternalServerError} (server fault)
66
+ *
67
+ * @throws {@link OneHookServiceServiceException}
68
+ * <p>Base exception class for all service exceptions from OneHookService service.</p>
69
+ *
70
+ */
71
+ export declare class GetUserCommand extends GetUserCommand_base {
72
+ /** @internal type navigation helper, not in runtime. */
73
+ protected static __types: {
74
+ api: {
75
+ input: GetUserRequest;
76
+ output: UserResponse;
77
+ };
78
+ sdk: {
79
+ input: GetUserCommandInput;
80
+ output: GetUserCommandOutput;
81
+ };
82
+ };
83
+ }
@@ -0,0 +1,76 @@
1
+ import { OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookServiceClient";
2
+ import { LocationRequest, StatusResponse } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link IndexLocationCommand}.
14
+ */
15
+ export interface IndexLocationCommandInput extends LocationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link IndexLocationCommand}.
21
+ */
22
+ export interface IndexLocationCommandOutput extends StatusResponse, __MetadataBearer {
23
+ }
24
+ declare const IndexLocationCommand_base: {
25
+ new (input: IndexLocationCommandInput): import("@smithy/smithy-client").CommandImpl<IndexLocationCommandInput, IndexLocationCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: IndexLocationCommandInput): import("@smithy/smithy-client").CommandImpl<IndexLocationCommandInput, IndexLocationCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * @public
31
+ *
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { OneHookServiceClient, IndexLocationCommand } from "onehook-api-client"; // ES Modules import
36
+ * // const { OneHookServiceClient, IndexLocationCommand } = require("onehook-api-client"); // CommonJS import
37
+ * const client = new OneHookServiceClient(config);
38
+ * const input = { // LocationRequest
39
+ * lat: Number("double"), // required
40
+ * lon: Number("double"), // required
41
+ * };
42
+ * const command = new IndexLocationCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // StatusResponse
45
+ * // status: "STRING_VALUE", // required
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param IndexLocationCommandInput - {@link IndexLocationCommandInput}
51
+ * @returns {@link IndexLocationCommandOutput}
52
+ * @see {@link IndexLocationCommandInput} for command's `input` shape.
53
+ * @see {@link IndexLocationCommandOutput} for command's `response` shape.
54
+ * @see {@link OneHookServiceClientResolvedConfig | config} for OneHookServiceClient's `config` shape.
55
+ *
56
+ * @throws {@link BadRequestError} (client fault)
57
+ *
58
+ * @throws {@link InternalServerError} (server fault)
59
+ *
60
+ * @throws {@link OneHookServiceServiceException}
61
+ * <p>Base exception class for all service exceptions from OneHookService service.</p>
62
+ *
63
+ */
64
+ export declare class IndexLocationCommand extends IndexLocationCommand_base {
65
+ /** @internal type navigation helper, not in runtime. */
66
+ protected static __types: {
67
+ api: {
68
+ input: LocationRequest;
69
+ output: StatusResponse;
70
+ };
71
+ sdk: {
72
+ input: IndexLocationCommandInput;
73
+ output: IndexLocationCommandOutput;
74
+ };
75
+ };
76
+ }
@@ -0,0 +1,73 @@
1
+ import { OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookServiceClient";
2
+ import { InitUserRequest, StatusResponse } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link InitUserCommand}.
14
+ */
15
+ export interface InitUserCommandInput extends InitUserRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link InitUserCommand}.
21
+ */
22
+ export interface InitUserCommandOutput extends StatusResponse, __MetadataBearer {
23
+ }
24
+ declare const InitUserCommand_base: {
25
+ new (input: InitUserCommandInput): import("@smithy/smithy-client").CommandImpl<InitUserCommandInput, InitUserCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [InitUserCommandInput]): import("@smithy/smithy-client").CommandImpl<InitUserCommandInput, InitUserCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * @public
31
+ *
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { OneHookServiceClient, InitUserCommand } from "onehook-api-client"; // ES Modules import
36
+ * // const { OneHookServiceClient, InitUserCommand } = require("onehook-api-client"); // CommonJS import
37
+ * const client = new OneHookServiceClient(config);
38
+ * const input = {};
39
+ * const command = new InitUserCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // StatusResponse
42
+ * // status: "STRING_VALUE", // required
43
+ * // };
44
+ *
45
+ * ```
46
+ *
47
+ * @param InitUserCommandInput - {@link InitUserCommandInput}
48
+ * @returns {@link InitUserCommandOutput}
49
+ * @see {@link InitUserCommandInput} for command's `input` shape.
50
+ * @see {@link InitUserCommandOutput} for command's `response` shape.
51
+ * @see {@link OneHookServiceClientResolvedConfig | config} for OneHookServiceClient's `config` shape.
52
+ *
53
+ * @throws {@link BadRequestError} (client fault)
54
+ *
55
+ * @throws {@link InternalServerError} (server fault)
56
+ *
57
+ * @throws {@link OneHookServiceServiceException}
58
+ * <p>Base exception class for all service exceptions from OneHookService service.</p>
59
+ *
60
+ */
61
+ export declare class InitUserCommand extends InitUserCommand_base {
62
+ /** @internal type navigation helper, not in runtime. */
63
+ protected static __types: {
64
+ api: {
65
+ input: {};
66
+ output: StatusResponse;
67
+ };
68
+ sdk: {
69
+ input: InitUserCommandInput;
70
+ output: InitUserCommandOutput;
71
+ };
72
+ };
73
+ }
@@ -0,0 +1,76 @@
1
+ import { OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookServiceClient";
2
+ import { LinkEmailRequest, LinkEmailResponse } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link LinkEmailCommand}.
14
+ */
15
+ export interface LinkEmailCommandInput extends LinkEmailRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link LinkEmailCommand}.
21
+ */
22
+ export interface LinkEmailCommandOutput extends LinkEmailResponse, __MetadataBearer {
23
+ }
24
+ declare const LinkEmailCommand_base: {
25
+ new (input: LinkEmailCommandInput): import("@smithy/smithy-client").CommandImpl<LinkEmailCommandInput, LinkEmailCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: LinkEmailCommandInput): import("@smithy/smithy-client").CommandImpl<LinkEmailCommandInput, LinkEmailCommandOutput, OneHookServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * @public
31
+ *
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { OneHookServiceClient, LinkEmailCommand } from "onehook-api-client"; // ES Modules import
36
+ * // const { OneHookServiceClient, LinkEmailCommand } = require("onehook-api-client"); // CommonJS import
37
+ * const client = new OneHookServiceClient(config);
38
+ * const input = { // LinkEmailRequest
39
+ * email: "STRING_VALUE", // required
40
+ * otp: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new LinkEmailCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // LinkEmailResponse
45
+ * // status: "STRING_VALUE", // required
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param LinkEmailCommandInput - {@link LinkEmailCommandInput}
51
+ * @returns {@link LinkEmailCommandOutput}
52
+ * @see {@link LinkEmailCommandInput} for command's `input` shape.
53
+ * @see {@link LinkEmailCommandOutput} for command's `response` shape.
54
+ * @see {@link OneHookServiceClientResolvedConfig | config} for OneHookServiceClient's `config` shape.
55
+ *
56
+ * @throws {@link BadRequestError} (client fault)
57
+ *
58
+ * @throws {@link InternalServerError} (server fault)
59
+ *
60
+ * @throws {@link OneHookServiceServiceException}
61
+ * <p>Base exception class for all service exceptions from OneHookService service.</p>
62
+ *
63
+ */
64
+ export declare class LinkEmailCommand extends LinkEmailCommand_base {
65
+ /** @internal type navigation helper, not in runtime. */
66
+ protected static __types: {
67
+ api: {
68
+ input: LinkEmailRequest;
69
+ output: LinkEmailResponse;
70
+ };
71
+ sdk: {
72
+ input: LinkEmailCommandInput;
73
+ output: LinkEmailCommandOutput;
74
+ };
75
+ };
76
+ }