onehook-api-client 1.0.11 → 1.0.14

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 (47) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/OneHook.js +16 -0
  3. package/dist-cjs/commands/DeletePushTokenCommand.js +21 -0
  4. package/dist-cjs/commands/GetChatSettingsCommand.js +21 -0
  5. package/dist-cjs/commands/GetCredentialReadinessCommand.js +21 -0
  6. package/dist-cjs/commands/GetNotificationPreferencesCommand.js +21 -0
  7. package/dist-cjs/commands/GetUserIdByUsernameCommand.js +21 -0
  8. package/dist-cjs/commands/RegisterPushTokenCommand.js +21 -0
  9. package/dist-cjs/commands/SwipeByUsernameCommand.js +21 -0
  10. package/dist-cjs/commands/UpdateChatSettingsCommand.js +21 -0
  11. package/dist-cjs/commands/index.js +8 -0
  12. package/dist-cjs/graphql/types.js +6 -1
  13. package/dist-cjs/models/models_0.js +17 -6
  14. package/dist-cjs/protocols/Aws_restJson1.js +304 -3
  15. package/dist-es/OneHook.js +16 -0
  16. package/dist-es/commands/DeletePushTokenCommand.js +17 -0
  17. package/dist-es/commands/GetChatSettingsCommand.js +17 -0
  18. package/dist-es/commands/GetCredentialReadinessCommand.js +17 -0
  19. package/dist-es/commands/GetNotificationPreferencesCommand.js +17 -0
  20. package/dist-es/commands/GetUserIdByUsernameCommand.js +17 -0
  21. package/dist-es/commands/RegisterPushTokenCommand.js +17 -0
  22. package/dist-es/commands/SwipeByUsernameCommand.js +17 -0
  23. package/dist-es/commands/UpdateChatSettingsCommand.js +17 -0
  24. package/dist-es/commands/index.js +8 -0
  25. package/dist-es/graphql/types.js +5 -0
  26. package/dist-es/models/models_0.js +16 -5
  27. package/dist-es/protocols/Aws_restJson1.js +286 -1
  28. package/dist-types/OneHook.d.ts +58 -0
  29. package/dist-types/OneHookClient.d.ts +10 -2
  30. package/dist-types/commands/DeletePushTokenCommand.d.ts +85 -0
  31. package/dist-types/commands/GetChatSettingsCommand.d.ts +85 -0
  32. package/dist-types/commands/GetCredentialReadinessCommand.d.ts +93 -0
  33. package/dist-types/commands/GetMyProfileCommand.d.ts +4 -1
  34. package/dist-types/commands/GetNotificationPreferencesCommand.d.ts +91 -0
  35. package/dist-types/commands/GetPreferencesCommand.d.ts +37 -1
  36. package/dist-types/commands/GetProfileCommand.d.ts +4 -1
  37. package/dist-types/commands/GetUserIdByUsernameCommand.d.ts +84 -0
  38. package/dist-types/commands/RegisterPushTokenCommand.d.ts +93 -0
  39. package/dist-types/commands/SwipeByUsernameCommand.d.ts +93 -0
  40. package/dist-types/commands/UpdateChatSettingsCommand.d.ts +95 -0
  41. package/dist-types/commands/UpdatePreferencesCommand.d.ts +37 -1
  42. package/dist-types/commands/UpdateProfileCommand.d.ts +4 -1
  43. package/dist-types/commands/index.d.ts +8 -0
  44. package/dist-types/graphql/types.d.ts +33 -0
  45. package/dist-types/models/models_0.d.ts +466 -13
  46. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  47. package/package.json +1 -1
@@ -4,19 +4,24 @@ import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from
4
4
  import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "../commands/CreateLivenessSessionCommand";
5
5
  import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "../commands/DeleteMatchMessagesCommand";
6
6
  import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "../commands/DeleteProfileCommand";
7
+ import { DeletePushTokenCommandInput, DeletePushTokenCommandOutput } from "../commands/DeletePushTokenCommand";
7
8
  import { DiscoverCommandInput, DiscoverCommandOutput } from "../commands/DiscoverCommand";
8
9
  import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "../commands/GenerateDownloadUrlCommand";
9
10
  import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "../commands/GenerateInviteCommand";
10
11
  import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "../commands/GenerateUploadUrlCommand";
12
+ import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "../commands/GetChatSettingsCommand";
13
+ import { GetCredentialReadinessCommandInput, GetCredentialReadinessCommandOutput } from "../commands/GetCredentialReadinessCommand";
11
14
  import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "../commands/GetLivenessStatusCommand";
12
15
  import { GetMatchCommandInput, GetMatchCommandOutput } from "../commands/GetMatchCommand";
13
16
  import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "../commands/GetMyProfileCommand";
17
+ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesCommandOutput } from "../commands/GetNotificationPreferencesCommand";
14
18
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "../commands/GetParticipantRegistryCommand";
15
19
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "../commands/GetPreferencesCommand";
16
20
  import { GetProfileCommandInput, GetProfileCommandOutput } from "../commands/GetProfileCommand";
17
21
  import { GetStateCommandInput, GetStateCommandOutput } from "../commands/GetStateCommand";
18
22
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "../commands/GetUserByEmailCommand";
19
23
  import { GetUserCommandInput, GetUserCommandOutput } from "../commands/GetUserCommand";
24
+ import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "../commands/GetUserIdByUsernameCommand";
20
25
  import { IndexLocationCommandInput, IndexLocationCommandOutput } from "../commands/IndexLocationCommand";
21
26
  import { InitUserCommandInput, InitUserCommandOutput } from "../commands/InitUserCommand";
22
27
  import { LinkEmailCommandInput, LinkEmailCommandOutput } from "../commands/LinkEmailCommand";
@@ -24,14 +29,17 @@ import { LinkSocialCommandInput, LinkSocialCommandOutput } from "../commands/Lin
24
29
  import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "../commands/ListMyDevicesCommand";
25
30
  import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "../commands/RegisterDeviceCommand";
26
31
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "../commands/RegisterPhoneCommand";
32
+ import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "../commands/RegisterPushTokenCommand";
27
33
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "../commands/RemoveLocationCommand";
28
34
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "../commands/RequestEmailOtpCommand";
29
35
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "../commands/RequestPhoneOtpCommand";
30
36
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "../commands/RequestPhoneUpdateOtpCommand";
31
37
  import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "../commands/RevokeDeviceCommand";
38
+ import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "../commands/SwipeByUsernameCommand";
32
39
  import { SwipeCommandInput, SwipeCommandOutput } from "../commands/SwipeCommand";
33
40
  import { UnhookCommandInput, UnhookCommandOutput } from "../commands/UnhookCommand";
34
41
  import { UnlinkSocialCommandInput, UnlinkSocialCommandOutput } from "../commands/UnlinkSocialCommand";
42
+ import { UpdateChatSettingsCommandInput, UpdateChatSettingsCommandOutput } from "../commands/UpdateChatSettingsCommand";
35
43
  import { UpdateEntitlementsCommandInput, UpdateEntitlementsCommandOutput } from "../commands/UpdateEntitlementsCommand";
36
44
  import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "../commands/UpdatePhoneNumberCommand";
37
45
  import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "../commands/UpdatePreferencesCommand";
@@ -45,6 +53,14 @@ import { SerdeContext as __SerdeContext } from "@smithy/types";
45
53
  * serializeAws_restJson1DeleteMatchMessagesCommand
46
54
  */
47
55
  export declare const se_DeleteMatchMessagesCommand: (input: DeleteMatchMessagesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
56
+ /**
57
+ * serializeAws_restJson1DeletePushTokenCommand
58
+ */
59
+ export declare const se_DeletePushTokenCommand: (input: DeletePushTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
60
+ /**
61
+ * serializeAws_restJson1GetChatSettingsCommand
62
+ */
63
+ export declare const se_GetChatSettingsCommand: (input: GetChatSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
48
64
  /**
49
65
  * serializeAws_restJson1GetParticipantRegistryCommand
50
66
  */
@@ -57,10 +73,18 @@ export declare const se_ListMyDevicesCommand: (input: ListMyDevicesCommandInput,
57
73
  * serializeAws_restJson1RegisterDeviceCommand
58
74
  */
59
75
  export declare const se_RegisterDeviceCommand: (input: RegisterDeviceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
76
+ /**
77
+ * serializeAws_restJson1RegisterPushTokenCommand
78
+ */
79
+ export declare const se_RegisterPushTokenCommand: (input: RegisterPushTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
60
80
  /**
61
81
  * serializeAws_restJson1RevokeDeviceCommand
62
82
  */
63
83
  export declare const se_RevokeDeviceCommand: (input: RevokeDeviceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
84
+ /**
85
+ * serializeAws_restJson1UpdateChatSettingsCommand
86
+ */
87
+ export declare const se_UpdateChatSettingsCommand: (input: UpdateChatSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
64
88
  /**
65
89
  * serializeAws_restJson1AuthSocialCommand
66
90
  */
@@ -69,6 +93,10 @@ export declare const se_AuthSocialCommand: (input: AuthSocialCommandInput, conte
69
93
  * serializeAws_restJson1GenerateInviteCommand
70
94
  */
71
95
  export declare const se_GenerateInviteCommand: (input: GenerateInviteCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
96
+ /**
97
+ * serializeAws_restJson1GetCredentialReadinessCommand
98
+ */
99
+ export declare const se_GetCredentialReadinessCommand: (input: GetCredentialReadinessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
72
100
  /**
73
101
  * serializeAws_restJson1GetUserCommand
74
102
  */
@@ -77,6 +105,10 @@ export declare const se_GetUserCommand: (input: GetUserCommandInput, context: __
77
105
  * serializeAws_restJson1GetUserByEmailCommand
78
106
  */
79
107
  export declare const se_GetUserByEmailCommand: (input: GetUserByEmailCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
108
+ /**
109
+ * serializeAws_restJson1GetUserIdByUsernameCommand
110
+ */
111
+ export declare const se_GetUserIdByUsernameCommand: (input: GetUserIdByUsernameCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
80
112
  /**
81
113
  * serializeAws_restJson1LinkEmailCommand
82
114
  */
@@ -125,6 +157,10 @@ export declare const se_ValidateInviteCommand: (input: ValidateInviteCommandInpu
125
157
  * serializeAws_restJson1DiscoverCommand
126
158
  */
127
159
  export declare const se_DiscoverCommand: (input: DiscoverCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
160
+ /**
161
+ * serializeAws_restJson1GetNotificationPreferencesCommand
162
+ */
163
+ export declare const se_GetNotificationPreferencesCommand: (input: GetNotificationPreferencesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
128
164
  /**
129
165
  * serializeAws_restJson1GetPreferencesCommand
130
166
  */
@@ -141,6 +177,10 @@ export declare const se_RemoveLocationCommand: (input: RemoveLocationCommandInpu
141
177
  * serializeAws_restJson1SwipeCommand
142
178
  */
143
179
  export declare const se_SwipeCommand: (input: SwipeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
180
+ /**
181
+ * serializeAws_restJson1SwipeByUsernameCommand
182
+ */
183
+ export declare const se_SwipeByUsernameCommand: (input: SwipeByUsernameCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
144
184
  /**
145
185
  * serializeAws_restJson1UpdatePreferencesCommand
146
186
  */
@@ -209,6 +249,14 @@ export declare const se_UpgradeUserCommand: (input: UpgradeUserCommandInput, con
209
249
  * deserializeAws_restJson1DeleteMatchMessagesCommand
210
250
  */
211
251
  export declare const de_DeleteMatchMessagesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteMatchMessagesCommandOutput>;
252
+ /**
253
+ * deserializeAws_restJson1DeletePushTokenCommand
254
+ */
255
+ export declare const de_DeletePushTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePushTokenCommandOutput>;
256
+ /**
257
+ * deserializeAws_restJson1GetChatSettingsCommand
258
+ */
259
+ export declare const de_GetChatSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetChatSettingsCommandOutput>;
212
260
  /**
213
261
  * deserializeAws_restJson1GetParticipantRegistryCommand
214
262
  */
@@ -221,10 +269,18 @@ export declare const de_ListMyDevicesCommand: (output: __HttpResponse, context:
221
269
  * deserializeAws_restJson1RegisterDeviceCommand
222
270
  */
223
271
  export declare const de_RegisterDeviceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RegisterDeviceCommandOutput>;
272
+ /**
273
+ * deserializeAws_restJson1RegisterPushTokenCommand
274
+ */
275
+ export declare const de_RegisterPushTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RegisterPushTokenCommandOutput>;
224
276
  /**
225
277
  * deserializeAws_restJson1RevokeDeviceCommand
226
278
  */
227
279
  export declare const de_RevokeDeviceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RevokeDeviceCommandOutput>;
280
+ /**
281
+ * deserializeAws_restJson1UpdateChatSettingsCommand
282
+ */
283
+ export declare const de_UpdateChatSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateChatSettingsCommandOutput>;
228
284
  /**
229
285
  * deserializeAws_restJson1AuthSocialCommand
230
286
  */
@@ -233,6 +289,10 @@ export declare const de_AuthSocialCommand: (output: __HttpResponse, context: __S
233
289
  * deserializeAws_restJson1GenerateInviteCommand
234
290
  */
235
291
  export declare const de_GenerateInviteCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateInviteCommandOutput>;
292
+ /**
293
+ * deserializeAws_restJson1GetCredentialReadinessCommand
294
+ */
295
+ export declare const de_GetCredentialReadinessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetCredentialReadinessCommandOutput>;
236
296
  /**
237
297
  * deserializeAws_restJson1GetUserCommand
238
298
  */
@@ -241,6 +301,10 @@ export declare const de_GetUserCommand: (output: __HttpResponse, context: __Serd
241
301
  * deserializeAws_restJson1GetUserByEmailCommand
242
302
  */
243
303
  export declare const de_GetUserByEmailCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserByEmailCommandOutput>;
304
+ /**
305
+ * deserializeAws_restJson1GetUserIdByUsernameCommand
306
+ */
307
+ export declare const de_GetUserIdByUsernameCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserIdByUsernameCommandOutput>;
244
308
  /**
245
309
  * deserializeAws_restJson1LinkEmailCommand
246
310
  */
@@ -289,6 +353,10 @@ export declare const de_ValidateInviteCommand: (output: __HttpResponse, context:
289
353
  * deserializeAws_restJson1DiscoverCommand
290
354
  */
291
355
  export declare const de_DiscoverCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DiscoverCommandOutput>;
356
+ /**
357
+ * deserializeAws_restJson1GetNotificationPreferencesCommand
358
+ */
359
+ export declare const de_GetNotificationPreferencesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetNotificationPreferencesCommandOutput>;
292
360
  /**
293
361
  * deserializeAws_restJson1GetPreferencesCommand
294
362
  */
@@ -305,6 +373,10 @@ export declare const de_RemoveLocationCommand: (output: __HttpResponse, context:
305
373
  * deserializeAws_restJson1SwipeCommand
306
374
  */
307
375
  export declare const de_SwipeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SwipeCommandOutput>;
376
+ /**
377
+ * deserializeAws_restJson1SwipeByUsernameCommand
378
+ */
379
+ export declare const de_SwipeByUsernameCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SwipeByUsernameCommandOutput>;
308
380
  /**
309
381
  * deserializeAws_restJson1UpdatePreferencesCommand
310
382
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onehook-api-client",
3
3
  "description": "OneHook API Client",
4
- "version": "1.0.11",
4
+ "version": "1.0.14",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",