onehook-api-client 1.0.12 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -0
- package/dist-cjs/OneHook.js +18 -0
- package/dist-cjs/commands/CreateMediaDownloadUrlCommand.js +21 -0
- package/dist-cjs/commands/CreateMediaUploadUrlCommand.js +21 -0
- package/dist-cjs/commands/DeletePushTokenCommand.js +21 -0
- package/dist-cjs/commands/GetChatSettingsCommand.js +21 -0
- package/dist-cjs/commands/GetNotificationPreferencesCommand.js +21 -0
- package/dist-cjs/commands/GetUserIdByUsernameCommand.js +21 -0
- package/dist-cjs/commands/RegisterPushTokenCommand.js +21 -0
- package/dist-cjs/commands/SwipeByUsernameCommand.js +21 -0
- package/dist-cjs/commands/UpdateChatSettingsCommand.js +21 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/graphql/types.js +6 -1
- package/dist-cjs/models/models_0.js +17 -6
- package/dist-cjs/protocols/Aws_restJson1.js +345 -3
- package/dist-es/OneHook.js +18 -0
- package/dist-es/commands/CreateMediaDownloadUrlCommand.js +17 -0
- package/dist-es/commands/CreateMediaUploadUrlCommand.js +17 -0
- package/dist-es/commands/DeletePushTokenCommand.js +17 -0
- package/dist-es/commands/GetChatSettingsCommand.js +17 -0
- package/dist-es/commands/GetNotificationPreferencesCommand.js +17 -0
- package/dist-es/commands/GetUserIdByUsernameCommand.js +17 -0
- package/dist-es/commands/RegisterPushTokenCommand.js +17 -0
- package/dist-es/commands/SwipeByUsernameCommand.js +17 -0
- package/dist-es/commands/UpdateChatSettingsCommand.js +17 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/graphql/types.js +5 -0
- package/dist-es/models/models_0.js +16 -5
- package/dist-es/protocols/Aws_restJson1.js +324 -1
- package/dist-types/OneHook.d.ts +65 -0
- package/dist-types/OneHookClient.d.ts +11 -2
- package/dist-types/commands/CreateMediaDownloadUrlCommand.d.ts +87 -0
- package/dist-types/commands/CreateMediaUploadUrlCommand.d.ts +92 -0
- package/dist-types/commands/DeletePushTokenCommand.d.ts +85 -0
- package/dist-types/commands/GetChatSettingsCommand.d.ts +85 -0
- package/dist-types/commands/GetMyProfileCommand.d.ts +4 -1
- package/dist-types/commands/GetNotificationPreferencesCommand.d.ts +91 -0
- package/dist-types/commands/GetPreferencesCommand.d.ts +37 -1
- package/dist-types/commands/GetProfileCommand.d.ts +4 -1
- package/dist-types/commands/GetUserIdByUsernameCommand.d.ts +84 -0
- package/dist-types/commands/RegisterPushTokenCommand.d.ts +93 -0
- package/dist-types/commands/SwipeByUsernameCommand.d.ts +93 -0
- package/dist-types/commands/UpdateChatSettingsCommand.d.ts +95 -0
- package/dist-types/commands/UpdatePreferencesCommand.d.ts +37 -1
- package/dist-types/commands/UpdateProfileCommand.d.ts +4 -1
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/graphql/types.d.ts +33 -0
- package/dist-types/models/models_0.d.ts +511 -16
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/package.json +1 -1
|
@@ -2,22 +2,28 @@ import { AuthSocialCommandInput, AuthSocialCommandOutput } from "../commands/Aut
|
|
|
2
2
|
import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "../commands/CompleteLivenessSessionCommand";
|
|
3
3
|
import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "../commands/CompleteOnboardingCommand";
|
|
4
4
|
import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "../commands/CreateLivenessSessionCommand";
|
|
5
|
+
import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "../commands/CreateMediaDownloadUrlCommand";
|
|
6
|
+
import { CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput } from "../commands/CreateMediaUploadUrlCommand";
|
|
5
7
|
import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "../commands/DeleteMatchMessagesCommand";
|
|
6
8
|
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "../commands/DeleteProfileCommand";
|
|
9
|
+
import { DeletePushTokenCommandInput, DeletePushTokenCommandOutput } from "../commands/DeletePushTokenCommand";
|
|
7
10
|
import { DiscoverCommandInput, DiscoverCommandOutput } from "../commands/DiscoverCommand";
|
|
8
11
|
import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "../commands/GenerateDownloadUrlCommand";
|
|
9
12
|
import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "../commands/GenerateInviteCommand";
|
|
10
13
|
import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "../commands/GenerateUploadUrlCommand";
|
|
14
|
+
import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "../commands/GetChatSettingsCommand";
|
|
11
15
|
import { GetCredentialReadinessCommandInput, GetCredentialReadinessCommandOutput } from "../commands/GetCredentialReadinessCommand";
|
|
12
16
|
import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "../commands/GetLivenessStatusCommand";
|
|
13
17
|
import { GetMatchCommandInput, GetMatchCommandOutput } from "../commands/GetMatchCommand";
|
|
14
18
|
import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "../commands/GetMyProfileCommand";
|
|
19
|
+
import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesCommandOutput } from "../commands/GetNotificationPreferencesCommand";
|
|
15
20
|
import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "../commands/GetParticipantRegistryCommand";
|
|
16
21
|
import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "../commands/GetPreferencesCommand";
|
|
17
22
|
import { GetProfileCommandInput, GetProfileCommandOutput } from "../commands/GetProfileCommand";
|
|
18
23
|
import { GetStateCommandInput, GetStateCommandOutput } from "../commands/GetStateCommand";
|
|
19
24
|
import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "../commands/GetUserByEmailCommand";
|
|
20
25
|
import { GetUserCommandInput, GetUserCommandOutput } from "../commands/GetUserCommand";
|
|
26
|
+
import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "../commands/GetUserIdByUsernameCommand";
|
|
21
27
|
import { IndexLocationCommandInput, IndexLocationCommandOutput } from "../commands/IndexLocationCommand";
|
|
22
28
|
import { InitUserCommandInput, InitUserCommandOutput } from "../commands/InitUserCommand";
|
|
23
29
|
import { LinkEmailCommandInput, LinkEmailCommandOutput } from "../commands/LinkEmailCommand";
|
|
@@ -25,14 +31,17 @@ import { LinkSocialCommandInput, LinkSocialCommandOutput } from "../commands/Lin
|
|
|
25
31
|
import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "../commands/ListMyDevicesCommand";
|
|
26
32
|
import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "../commands/RegisterDeviceCommand";
|
|
27
33
|
import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "../commands/RegisterPhoneCommand";
|
|
34
|
+
import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "../commands/RegisterPushTokenCommand";
|
|
28
35
|
import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "../commands/RemoveLocationCommand";
|
|
29
36
|
import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "../commands/RequestEmailOtpCommand";
|
|
30
37
|
import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "../commands/RequestPhoneOtpCommand";
|
|
31
38
|
import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "../commands/RequestPhoneUpdateOtpCommand";
|
|
32
39
|
import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "../commands/RevokeDeviceCommand";
|
|
40
|
+
import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "../commands/SwipeByUsernameCommand";
|
|
33
41
|
import { SwipeCommandInput, SwipeCommandOutput } from "../commands/SwipeCommand";
|
|
34
42
|
import { UnhookCommandInput, UnhookCommandOutput } from "../commands/UnhookCommand";
|
|
35
43
|
import { UnlinkSocialCommandInput, UnlinkSocialCommandOutput } from "../commands/UnlinkSocialCommand";
|
|
44
|
+
import { UpdateChatSettingsCommandInput, UpdateChatSettingsCommandOutput } from "../commands/UpdateChatSettingsCommand";
|
|
36
45
|
import { UpdateEntitlementsCommandInput, UpdateEntitlementsCommandOutput } from "../commands/UpdateEntitlementsCommand";
|
|
37
46
|
import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "../commands/UpdatePhoneNumberCommand";
|
|
38
47
|
import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "../commands/UpdatePreferencesCommand";
|
|
@@ -42,10 +51,26 @@ import { UpgradeUserCommandInput, UpgradeUserCommandOutput } from "../commands/U
|
|
|
42
51
|
import { ValidateInviteCommandInput, ValidateInviteCommandOutput } from "../commands/ValidateInviteCommand";
|
|
43
52
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
44
53
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
54
|
+
/**
|
|
55
|
+
* serializeAws_restJson1CreateMediaDownloadUrlCommand
|
|
56
|
+
*/
|
|
57
|
+
export declare const se_CreateMediaDownloadUrlCommand: (input: CreateMediaDownloadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
58
|
+
/**
|
|
59
|
+
* serializeAws_restJson1CreateMediaUploadUrlCommand
|
|
60
|
+
*/
|
|
61
|
+
export declare const se_CreateMediaUploadUrlCommand: (input: CreateMediaUploadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
62
|
/**
|
|
46
63
|
* serializeAws_restJson1DeleteMatchMessagesCommand
|
|
47
64
|
*/
|
|
48
65
|
export declare const se_DeleteMatchMessagesCommand: (input: DeleteMatchMessagesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
66
|
+
/**
|
|
67
|
+
* serializeAws_restJson1DeletePushTokenCommand
|
|
68
|
+
*/
|
|
69
|
+
export declare const se_DeletePushTokenCommand: (input: DeletePushTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
70
|
+
/**
|
|
71
|
+
* serializeAws_restJson1GetChatSettingsCommand
|
|
72
|
+
*/
|
|
73
|
+
export declare const se_GetChatSettingsCommand: (input: GetChatSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
49
74
|
/**
|
|
50
75
|
* serializeAws_restJson1GetParticipantRegistryCommand
|
|
51
76
|
*/
|
|
@@ -58,10 +83,18 @@ export declare const se_ListMyDevicesCommand: (input: ListMyDevicesCommandInput,
|
|
|
58
83
|
* serializeAws_restJson1RegisterDeviceCommand
|
|
59
84
|
*/
|
|
60
85
|
export declare const se_RegisterDeviceCommand: (input: RegisterDeviceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
86
|
+
/**
|
|
87
|
+
* serializeAws_restJson1RegisterPushTokenCommand
|
|
88
|
+
*/
|
|
89
|
+
export declare const se_RegisterPushTokenCommand: (input: RegisterPushTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
61
90
|
/**
|
|
62
91
|
* serializeAws_restJson1RevokeDeviceCommand
|
|
63
92
|
*/
|
|
64
93
|
export declare const se_RevokeDeviceCommand: (input: RevokeDeviceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
94
|
+
/**
|
|
95
|
+
* serializeAws_restJson1UpdateChatSettingsCommand
|
|
96
|
+
*/
|
|
97
|
+
export declare const se_UpdateChatSettingsCommand: (input: UpdateChatSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
65
98
|
/**
|
|
66
99
|
* serializeAws_restJson1AuthSocialCommand
|
|
67
100
|
*/
|
|
@@ -82,6 +115,10 @@ export declare const se_GetUserCommand: (input: GetUserCommandInput, context: __
|
|
|
82
115
|
* serializeAws_restJson1GetUserByEmailCommand
|
|
83
116
|
*/
|
|
84
117
|
export declare const se_GetUserByEmailCommand: (input: GetUserByEmailCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
118
|
+
/**
|
|
119
|
+
* serializeAws_restJson1GetUserIdByUsernameCommand
|
|
120
|
+
*/
|
|
121
|
+
export declare const se_GetUserIdByUsernameCommand: (input: GetUserIdByUsernameCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
85
122
|
/**
|
|
86
123
|
* serializeAws_restJson1LinkEmailCommand
|
|
87
124
|
*/
|
|
@@ -130,6 +167,10 @@ export declare const se_ValidateInviteCommand: (input: ValidateInviteCommandInpu
|
|
|
130
167
|
* serializeAws_restJson1DiscoverCommand
|
|
131
168
|
*/
|
|
132
169
|
export declare const se_DiscoverCommand: (input: DiscoverCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
170
|
+
/**
|
|
171
|
+
* serializeAws_restJson1GetNotificationPreferencesCommand
|
|
172
|
+
*/
|
|
173
|
+
export declare const se_GetNotificationPreferencesCommand: (input: GetNotificationPreferencesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
133
174
|
/**
|
|
134
175
|
* serializeAws_restJson1GetPreferencesCommand
|
|
135
176
|
*/
|
|
@@ -146,6 +187,10 @@ export declare const se_RemoveLocationCommand: (input: RemoveLocationCommandInpu
|
|
|
146
187
|
* serializeAws_restJson1SwipeCommand
|
|
147
188
|
*/
|
|
148
189
|
export declare const se_SwipeCommand: (input: SwipeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
190
|
+
/**
|
|
191
|
+
* serializeAws_restJson1SwipeByUsernameCommand
|
|
192
|
+
*/
|
|
193
|
+
export declare const se_SwipeByUsernameCommand: (input: SwipeByUsernameCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
149
194
|
/**
|
|
150
195
|
* serializeAws_restJson1UpdatePreferencesCommand
|
|
151
196
|
*/
|
|
@@ -210,10 +255,26 @@ export declare const se_UnhookCommand: (input: UnhookCommandInput, context: __Se
|
|
|
210
255
|
* serializeAws_restJson1UpgradeUserCommand
|
|
211
256
|
*/
|
|
212
257
|
export declare const se_UpgradeUserCommand: (input: UpgradeUserCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
258
|
+
/**
|
|
259
|
+
* deserializeAws_restJson1CreateMediaDownloadUrlCommand
|
|
260
|
+
*/
|
|
261
|
+
export declare const de_CreateMediaDownloadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateMediaDownloadUrlCommandOutput>;
|
|
262
|
+
/**
|
|
263
|
+
* deserializeAws_restJson1CreateMediaUploadUrlCommand
|
|
264
|
+
*/
|
|
265
|
+
export declare const de_CreateMediaUploadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateMediaUploadUrlCommandOutput>;
|
|
213
266
|
/**
|
|
214
267
|
* deserializeAws_restJson1DeleteMatchMessagesCommand
|
|
215
268
|
*/
|
|
216
269
|
export declare const de_DeleteMatchMessagesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteMatchMessagesCommandOutput>;
|
|
270
|
+
/**
|
|
271
|
+
* deserializeAws_restJson1DeletePushTokenCommand
|
|
272
|
+
*/
|
|
273
|
+
export declare const de_DeletePushTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePushTokenCommandOutput>;
|
|
274
|
+
/**
|
|
275
|
+
* deserializeAws_restJson1GetChatSettingsCommand
|
|
276
|
+
*/
|
|
277
|
+
export declare const de_GetChatSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetChatSettingsCommandOutput>;
|
|
217
278
|
/**
|
|
218
279
|
* deserializeAws_restJson1GetParticipantRegistryCommand
|
|
219
280
|
*/
|
|
@@ -226,10 +287,18 @@ export declare const de_ListMyDevicesCommand: (output: __HttpResponse, context:
|
|
|
226
287
|
* deserializeAws_restJson1RegisterDeviceCommand
|
|
227
288
|
*/
|
|
228
289
|
export declare const de_RegisterDeviceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RegisterDeviceCommandOutput>;
|
|
290
|
+
/**
|
|
291
|
+
* deserializeAws_restJson1RegisterPushTokenCommand
|
|
292
|
+
*/
|
|
293
|
+
export declare const de_RegisterPushTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RegisterPushTokenCommandOutput>;
|
|
229
294
|
/**
|
|
230
295
|
* deserializeAws_restJson1RevokeDeviceCommand
|
|
231
296
|
*/
|
|
232
297
|
export declare const de_RevokeDeviceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RevokeDeviceCommandOutput>;
|
|
298
|
+
/**
|
|
299
|
+
* deserializeAws_restJson1UpdateChatSettingsCommand
|
|
300
|
+
*/
|
|
301
|
+
export declare const de_UpdateChatSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateChatSettingsCommandOutput>;
|
|
233
302
|
/**
|
|
234
303
|
* deserializeAws_restJson1AuthSocialCommand
|
|
235
304
|
*/
|
|
@@ -250,6 +319,10 @@ export declare const de_GetUserCommand: (output: __HttpResponse, context: __Serd
|
|
|
250
319
|
* deserializeAws_restJson1GetUserByEmailCommand
|
|
251
320
|
*/
|
|
252
321
|
export declare const de_GetUserByEmailCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserByEmailCommandOutput>;
|
|
322
|
+
/**
|
|
323
|
+
* deserializeAws_restJson1GetUserIdByUsernameCommand
|
|
324
|
+
*/
|
|
325
|
+
export declare const de_GetUserIdByUsernameCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserIdByUsernameCommandOutput>;
|
|
253
326
|
/**
|
|
254
327
|
* deserializeAws_restJson1LinkEmailCommand
|
|
255
328
|
*/
|
|
@@ -298,6 +371,10 @@ export declare const de_ValidateInviteCommand: (output: __HttpResponse, context:
|
|
|
298
371
|
* deserializeAws_restJson1DiscoverCommand
|
|
299
372
|
*/
|
|
300
373
|
export declare const de_DiscoverCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DiscoverCommandOutput>;
|
|
374
|
+
/**
|
|
375
|
+
* deserializeAws_restJson1GetNotificationPreferencesCommand
|
|
376
|
+
*/
|
|
377
|
+
export declare const de_GetNotificationPreferencesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetNotificationPreferencesCommandOutput>;
|
|
301
378
|
/**
|
|
302
379
|
* deserializeAws_restJson1GetPreferencesCommand
|
|
303
380
|
*/
|
|
@@ -314,6 +391,10 @@ export declare const de_RemoveLocationCommand: (output: __HttpResponse, context:
|
|
|
314
391
|
* deserializeAws_restJson1SwipeCommand
|
|
315
392
|
*/
|
|
316
393
|
export declare const de_SwipeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SwipeCommandOutput>;
|
|
394
|
+
/**
|
|
395
|
+
* deserializeAws_restJson1SwipeByUsernameCommand
|
|
396
|
+
*/
|
|
397
|
+
export declare const de_SwipeByUsernameCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SwipeByUsernameCommandOutput>;
|
|
317
398
|
/**
|
|
318
399
|
* deserializeAws_restJson1UpdatePreferencesCommand
|
|
319
400
|
*/
|
package/package.json
CHANGED