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.
Files changed (50) hide show
  1. package/README.md +63 -0
  2. package/dist-cjs/OneHook.js +18 -0
  3. package/dist-cjs/commands/CreateMediaDownloadUrlCommand.js +21 -0
  4. package/dist-cjs/commands/CreateMediaUploadUrlCommand.js +21 -0
  5. package/dist-cjs/commands/DeletePushTokenCommand.js +21 -0
  6. package/dist-cjs/commands/GetChatSettingsCommand.js +21 -0
  7. package/dist-cjs/commands/GetNotificationPreferencesCommand.js +21 -0
  8. package/dist-cjs/commands/GetUserIdByUsernameCommand.js +21 -0
  9. package/dist-cjs/commands/RegisterPushTokenCommand.js +21 -0
  10. package/dist-cjs/commands/SwipeByUsernameCommand.js +21 -0
  11. package/dist-cjs/commands/UpdateChatSettingsCommand.js +21 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/graphql/types.js +6 -1
  14. package/dist-cjs/models/models_0.js +17 -6
  15. package/dist-cjs/protocols/Aws_restJson1.js +345 -3
  16. package/dist-es/OneHook.js +18 -0
  17. package/dist-es/commands/CreateMediaDownloadUrlCommand.js +17 -0
  18. package/dist-es/commands/CreateMediaUploadUrlCommand.js +17 -0
  19. package/dist-es/commands/DeletePushTokenCommand.js +17 -0
  20. package/dist-es/commands/GetChatSettingsCommand.js +17 -0
  21. package/dist-es/commands/GetNotificationPreferencesCommand.js +17 -0
  22. package/dist-es/commands/GetUserIdByUsernameCommand.js +17 -0
  23. package/dist-es/commands/RegisterPushTokenCommand.js +17 -0
  24. package/dist-es/commands/SwipeByUsernameCommand.js +17 -0
  25. package/dist-es/commands/UpdateChatSettingsCommand.js +17 -0
  26. package/dist-es/commands/index.js +9 -0
  27. package/dist-es/graphql/types.js +5 -0
  28. package/dist-es/models/models_0.js +16 -5
  29. package/dist-es/protocols/Aws_restJson1.js +324 -1
  30. package/dist-types/OneHook.d.ts +65 -0
  31. package/dist-types/OneHookClient.d.ts +11 -2
  32. package/dist-types/commands/CreateMediaDownloadUrlCommand.d.ts +87 -0
  33. package/dist-types/commands/CreateMediaUploadUrlCommand.d.ts +92 -0
  34. package/dist-types/commands/DeletePushTokenCommand.d.ts +85 -0
  35. package/dist-types/commands/GetChatSettingsCommand.d.ts +85 -0
  36. package/dist-types/commands/GetMyProfileCommand.d.ts +4 -1
  37. package/dist-types/commands/GetNotificationPreferencesCommand.d.ts +91 -0
  38. package/dist-types/commands/GetPreferencesCommand.d.ts +37 -1
  39. package/dist-types/commands/GetProfileCommand.d.ts +4 -1
  40. package/dist-types/commands/GetUserIdByUsernameCommand.d.ts +84 -0
  41. package/dist-types/commands/RegisterPushTokenCommand.d.ts +93 -0
  42. package/dist-types/commands/SwipeByUsernameCommand.d.ts +93 -0
  43. package/dist-types/commands/UpdateChatSettingsCommand.d.ts +95 -0
  44. package/dist-types/commands/UpdatePreferencesCommand.d.ts +37 -1
  45. package/dist-types/commands/UpdateProfileCommand.d.ts +4 -1
  46. package/dist-types/commands/index.d.ts +9 -0
  47. package/dist-types/graphql/types.d.ts +33 -0
  48. package/dist-types/models/models_0.d.ts +511 -16
  49. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  50. package/package.json +1 -1
@@ -3,22 +3,28 @@ import { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/Auth
3
3
  import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
4
4
  import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
5
5
  import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "./commands/CreateLivenessSessionCommand";
6
+ import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "./commands/CreateMediaDownloadUrlCommand";
7
+ import { CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput } from "./commands/CreateMediaUploadUrlCommand";
6
8
  import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
7
9
  import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
10
+ import { DeletePushTokenCommandInput, DeletePushTokenCommandOutput } from "./commands/DeletePushTokenCommand";
8
11
  import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/DiscoverCommand";
9
12
  import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
10
13
  import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
11
14
  import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
15
+ import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "./commands/GetChatSettingsCommand";
12
16
  import { GetCredentialReadinessCommandInput, GetCredentialReadinessCommandOutput } from "./commands/GetCredentialReadinessCommand";
13
17
  import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "./commands/GetLivenessStatusCommand";
14
18
  import { GetMatchCommandInput, GetMatchCommandOutput } from "./commands/GetMatchCommand";
15
19
  import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "./commands/GetMyProfileCommand";
20
+ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesCommandOutput } from "./commands/GetNotificationPreferencesCommand";
16
21
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "./commands/GetParticipantRegistryCommand";
17
22
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
18
23
  import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
19
24
  import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
20
25
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
21
26
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
27
+ import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "./commands/GetUserIdByUsernameCommand";
22
28
  import { IndexLocationCommandInput, IndexLocationCommandOutput } from "./commands/IndexLocationCommand";
23
29
  import { InitUserCommandInput, InitUserCommandOutput } from "./commands/InitUserCommand";
24
30
  import { LinkEmailCommandInput, LinkEmailCommandOutput } from "./commands/LinkEmailCommand";
@@ -26,14 +32,17 @@ import { LinkSocialCommandInput, LinkSocialCommandOutput } from "./commands/Link
26
32
  import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "./commands/ListMyDevicesCommand";
27
33
  import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./commands/RegisterDeviceCommand";
28
34
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
35
+ import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
29
36
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "./commands/RemoveLocationCommand";
30
37
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
31
38
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
32
39
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
33
40
  import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "./commands/RevokeDeviceCommand";
41
+ import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "./commands/SwipeByUsernameCommand";
34
42
  import { SwipeCommandInput, SwipeCommandOutput } from "./commands/SwipeCommand";
35
43
  import { UnhookCommandInput, UnhookCommandOutput } from "./commands/UnhookCommand";
36
44
  import { UnlinkSocialCommandInput, UnlinkSocialCommandOutput } from "./commands/UnlinkSocialCommand";
45
+ import { UpdateChatSettingsCommandInput, UpdateChatSettingsCommandOutput } from "./commands/UpdateChatSettingsCommand";
37
46
  import { UpdateEntitlementsCommandInput, UpdateEntitlementsCommandOutput } from "./commands/UpdateEntitlementsCommand";
38
47
  import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand";
39
48
  import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "./commands/UpdatePreferencesCommand";
@@ -43,12 +52,37 @@ import { UpgradeUserCommandInput, UpgradeUserCommandOutput } from "./commands/Up
43
52
  import { ValidateInviteCommandInput, ValidateInviteCommandOutput } from "./commands/ValidateInviteCommand";
44
53
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
45
54
  export interface OneHook {
55
+ /**
56
+ * @see {@link CreateMediaDownloadUrlCommand}
57
+ */
58
+ createMediaDownloadUrl(args: CreateMediaDownloadUrlCommandInput, options?: __HttpHandlerOptions): Promise<CreateMediaDownloadUrlCommandOutput>;
59
+ createMediaDownloadUrl(args: CreateMediaDownloadUrlCommandInput, cb: (err: any, data?: CreateMediaDownloadUrlCommandOutput) => void): void;
60
+ createMediaDownloadUrl(args: CreateMediaDownloadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMediaDownloadUrlCommandOutput) => void): void;
61
+ /**
62
+ * @see {@link CreateMediaUploadUrlCommand}
63
+ */
64
+ createMediaUploadUrl(args: CreateMediaUploadUrlCommandInput, options?: __HttpHandlerOptions): Promise<CreateMediaUploadUrlCommandOutput>;
65
+ createMediaUploadUrl(args: CreateMediaUploadUrlCommandInput, cb: (err: any, data?: CreateMediaUploadUrlCommandOutput) => void): void;
66
+ createMediaUploadUrl(args: CreateMediaUploadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMediaUploadUrlCommandOutput) => void): void;
46
67
  /**
47
68
  * @see {@link DeleteMatchMessagesCommand}
48
69
  */
49
70
  deleteMatchMessages(args: DeleteMatchMessagesCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMatchMessagesCommandOutput>;
50
71
  deleteMatchMessages(args: DeleteMatchMessagesCommandInput, cb: (err: any, data?: DeleteMatchMessagesCommandOutput) => void): void;
51
72
  deleteMatchMessages(args: DeleteMatchMessagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMatchMessagesCommandOutput) => void): void;
73
+ /**
74
+ * @see {@link DeletePushTokenCommand}
75
+ */
76
+ deletePushToken(args: DeletePushTokenCommandInput, options?: __HttpHandlerOptions): Promise<DeletePushTokenCommandOutput>;
77
+ deletePushToken(args: DeletePushTokenCommandInput, cb: (err: any, data?: DeletePushTokenCommandOutput) => void): void;
78
+ deletePushToken(args: DeletePushTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePushTokenCommandOutput) => void): void;
79
+ /**
80
+ * @see {@link GetChatSettingsCommand}
81
+ */
82
+ getChatSettings(): Promise<GetChatSettingsCommandOutput>;
83
+ getChatSettings(args: GetChatSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetChatSettingsCommandOutput>;
84
+ getChatSettings(args: GetChatSettingsCommandInput, cb: (err: any, data?: GetChatSettingsCommandOutput) => void): void;
85
+ getChatSettings(args: GetChatSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetChatSettingsCommandOutput) => void): void;
52
86
  /**
53
87
  * @see {@link GetParticipantRegistryCommand}
54
88
  */
@@ -68,12 +102,25 @@ export interface OneHook {
68
102
  registerDevice(args: RegisterDeviceCommandInput, options?: __HttpHandlerOptions): Promise<RegisterDeviceCommandOutput>;
69
103
  registerDevice(args: RegisterDeviceCommandInput, cb: (err: any, data?: RegisterDeviceCommandOutput) => void): void;
70
104
  registerDevice(args: RegisterDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterDeviceCommandOutput) => void): void;
105
+ /**
106
+ * @see {@link RegisterPushTokenCommand}
107
+ */
108
+ registerPushToken(args: RegisterPushTokenCommandInput, options?: __HttpHandlerOptions): Promise<RegisterPushTokenCommandOutput>;
109
+ registerPushToken(args: RegisterPushTokenCommandInput, cb: (err: any, data?: RegisterPushTokenCommandOutput) => void): void;
110
+ registerPushToken(args: RegisterPushTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterPushTokenCommandOutput) => void): void;
71
111
  /**
72
112
  * @see {@link RevokeDeviceCommand}
73
113
  */
74
114
  revokeDevice(args: RevokeDeviceCommandInput, options?: __HttpHandlerOptions): Promise<RevokeDeviceCommandOutput>;
75
115
  revokeDevice(args: RevokeDeviceCommandInput, cb: (err: any, data?: RevokeDeviceCommandOutput) => void): void;
76
116
  revokeDevice(args: RevokeDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RevokeDeviceCommandOutput) => void): void;
117
+ /**
118
+ * @see {@link UpdateChatSettingsCommand}
119
+ */
120
+ updateChatSettings(): Promise<UpdateChatSettingsCommandOutput>;
121
+ updateChatSettings(args: UpdateChatSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateChatSettingsCommandOutput>;
122
+ updateChatSettings(args: UpdateChatSettingsCommandInput, cb: (err: any, data?: UpdateChatSettingsCommandOutput) => void): void;
123
+ updateChatSettings(args: UpdateChatSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateChatSettingsCommandOutput) => void): void;
77
124
  /**
78
125
  * @see {@link AuthSocialCommand}
79
126
  */
@@ -104,6 +151,12 @@ export interface OneHook {
104
151
  getUserByEmail(args: GetUserByEmailCommandInput, options?: __HttpHandlerOptions): Promise<GetUserByEmailCommandOutput>;
105
152
  getUserByEmail(args: GetUserByEmailCommandInput, cb: (err: any, data?: GetUserByEmailCommandOutput) => void): void;
106
153
  getUserByEmail(args: GetUserByEmailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserByEmailCommandOutput) => void): void;
154
+ /**
155
+ * @see {@link GetUserIdByUsernameCommand}
156
+ */
157
+ getUserIdByUsername(args: GetUserIdByUsernameCommandInput, options?: __HttpHandlerOptions): Promise<GetUserIdByUsernameCommandOutput>;
158
+ getUserIdByUsername(args: GetUserIdByUsernameCommandInput, cb: (err: any, data?: GetUserIdByUsernameCommandOutput) => void): void;
159
+ getUserIdByUsername(args: GetUserIdByUsernameCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserIdByUsernameCommandOutput) => void): void;
107
160
  /**
108
161
  * @see {@link LinkEmailCommand}
109
162
  */
@@ -176,6 +229,12 @@ export interface OneHook {
176
229
  discover(args: DiscoverCommandInput, options?: __HttpHandlerOptions): Promise<DiscoverCommandOutput>;
177
230
  discover(args: DiscoverCommandInput, cb: (err: any, data?: DiscoverCommandOutput) => void): void;
178
231
  discover(args: DiscoverCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DiscoverCommandOutput) => void): void;
232
+ /**
233
+ * @see {@link GetNotificationPreferencesCommand}
234
+ */
235
+ getNotificationPreferences(args: GetNotificationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetNotificationPreferencesCommandOutput>;
236
+ getNotificationPreferences(args: GetNotificationPreferencesCommandInput, cb: (err: any, data?: GetNotificationPreferencesCommandOutput) => void): void;
237
+ getNotificationPreferences(args: GetNotificationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetNotificationPreferencesCommandOutput) => void): void;
179
238
  /**
180
239
  * @see {@link GetPreferencesCommand}
181
240
  */
@@ -200,6 +259,12 @@ export interface OneHook {
200
259
  swipe(args: SwipeCommandInput, options?: __HttpHandlerOptions): Promise<SwipeCommandOutput>;
201
260
  swipe(args: SwipeCommandInput, cb: (err: any, data?: SwipeCommandOutput) => void): void;
202
261
  swipe(args: SwipeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SwipeCommandOutput) => void): void;
262
+ /**
263
+ * @see {@link SwipeByUsernameCommand}
264
+ */
265
+ swipeByUsername(args: SwipeByUsernameCommandInput, options?: __HttpHandlerOptions): Promise<SwipeByUsernameCommandOutput>;
266
+ swipeByUsername(args: SwipeByUsernameCommandInput, cb: (err: any, data?: SwipeByUsernameCommandOutput) => void): void;
267
+ swipeByUsername(args: SwipeByUsernameCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SwipeByUsernameCommandOutput) => void): void;
203
268
  /**
204
269
  * @see {@link UpdatePreferencesCommand}
205
270
  */
@@ -3,22 +3,28 @@ import { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/Auth
3
3
  import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
4
4
  import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
5
5
  import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "./commands/CreateLivenessSessionCommand";
6
+ import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "./commands/CreateMediaDownloadUrlCommand";
7
+ import { CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput } from "./commands/CreateMediaUploadUrlCommand";
6
8
  import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
7
9
  import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
10
+ import { DeletePushTokenCommandInput, DeletePushTokenCommandOutput } from "./commands/DeletePushTokenCommand";
8
11
  import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/DiscoverCommand";
9
12
  import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
10
13
  import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
11
14
  import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
15
+ import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "./commands/GetChatSettingsCommand";
12
16
  import { GetCredentialReadinessCommandInput, GetCredentialReadinessCommandOutput } from "./commands/GetCredentialReadinessCommand";
13
17
  import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "./commands/GetLivenessStatusCommand";
14
18
  import { GetMatchCommandInput, GetMatchCommandOutput } from "./commands/GetMatchCommand";
15
19
  import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "./commands/GetMyProfileCommand";
20
+ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesCommandOutput } from "./commands/GetNotificationPreferencesCommand";
16
21
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "./commands/GetParticipantRegistryCommand";
17
22
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
18
23
  import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
19
24
  import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
20
25
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
21
26
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
27
+ import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "./commands/GetUserIdByUsernameCommand";
22
28
  import { IndexLocationCommandInput, IndexLocationCommandOutput } from "./commands/IndexLocationCommand";
23
29
  import { InitUserCommandInput, InitUserCommandOutput } from "./commands/InitUserCommand";
24
30
  import { LinkEmailCommandInput, LinkEmailCommandOutput } from "./commands/LinkEmailCommand";
@@ -26,14 +32,17 @@ import { LinkSocialCommandInput, LinkSocialCommandOutput } from "./commands/Link
26
32
  import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "./commands/ListMyDevicesCommand";
27
33
  import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./commands/RegisterDeviceCommand";
28
34
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
35
+ import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
29
36
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "./commands/RemoveLocationCommand";
30
37
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
31
38
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
32
39
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
33
40
  import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "./commands/RevokeDeviceCommand";
41
+ import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "./commands/SwipeByUsernameCommand";
34
42
  import { SwipeCommandInput, SwipeCommandOutput } from "./commands/SwipeCommand";
35
43
  import { UnhookCommandInput, UnhookCommandOutput } from "./commands/UnhookCommand";
36
44
  import { UnlinkSocialCommandInput, UnlinkSocialCommandOutput } from "./commands/UnlinkSocialCommand";
45
+ import { UpdateChatSettingsCommandInput, UpdateChatSettingsCommandOutput } from "./commands/UpdateChatSettingsCommand";
37
46
  import { UpdateEntitlementsCommandInput, UpdateEntitlementsCommandOutput } from "./commands/UpdateEntitlementsCommand";
38
47
  import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand";
39
48
  import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "./commands/UpdatePreferencesCommand";
@@ -53,11 +62,11 @@ export { __Client };
53
62
  /**
54
63
  * @public
55
64
  */
56
- export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetParticipantRegistryCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput;
65
+ export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput;
57
66
  /**
58
67
  * @public
59
68
  */
60
- export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetParticipantRegistryCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput;
69
+ export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput;
61
70
  /**
62
71
  * @public
63
72
  */
@@ -0,0 +1,87 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { CreateMediaDownloadUrlRequest, CreateMediaDownloadUrlResponse } 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 CreateMediaDownloadUrlCommand}.
14
+ */
15
+ export interface CreateMediaDownloadUrlCommandInput extends CreateMediaDownloadUrlRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateMediaDownloadUrlCommand}.
21
+ */
22
+ export interface CreateMediaDownloadUrlCommandOutput extends CreateMediaDownloadUrlResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateMediaDownloadUrlCommand_base: {
25
+ new (input: CreateMediaDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateMediaDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Issues a presigned URL for downloading ONE encrypted attachment.
31
+ *
32
+ * Returns ciphertext; the caller decrypts with the content key from the message payload. Besides
33
+ * requiring match participation, this REJECTS any `objectKey` not under the caller's own `matchId`
34
+ * prefix — otherwise knowing or guessing a key from another conversation would be enough to read its
35
+ * media.
36
+ * @example
37
+ * Use a bare-bones client and the command you need to make an API call.
38
+ * ```javascript
39
+ * import { OneHookClient, CreateMediaDownloadUrlCommand } from "onehook-api-client"; // ES Modules import
40
+ * // const { OneHookClient, CreateMediaDownloadUrlCommand } = require("onehook-api-client"); // CommonJS import
41
+ * const client = new OneHookClient(config);
42
+ * const input = { // CreateMediaDownloadUrlRequest
43
+ * matchId: "STRING_VALUE", // required
44
+ * objectKey: "STRING_VALUE", // required
45
+ * };
46
+ * const command = new CreateMediaDownloadUrlCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // CreateMediaDownloadUrlResponse
49
+ * // downloadUrl: "STRING_VALUE", // required
50
+ * // expiresInSeconds: Number("int"), // required
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param CreateMediaDownloadUrlCommandInput - {@link CreateMediaDownloadUrlCommandInput}
56
+ * @returns {@link CreateMediaDownloadUrlCommandOutput}
57
+ * @see {@link CreateMediaDownloadUrlCommandInput} for command's `input` shape.
58
+ * @see {@link CreateMediaDownloadUrlCommandOutput} for command's `response` shape.
59
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
60
+ *
61
+ * @throws {@link BadRequestError} (client fault)
62
+ *
63
+ * @throws {@link ForbiddenError} (client fault)
64
+ *
65
+ * @throws {@link NotFoundError} (client fault)
66
+ *
67
+ * @throws {@link InternalServerError} (server fault)
68
+ *
69
+ * @throws {@link OneHookServiceException}
70
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class CreateMediaDownloadUrlCommand extends CreateMediaDownloadUrlCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: CreateMediaDownloadUrlRequest;
80
+ output: CreateMediaDownloadUrlResponse;
81
+ };
82
+ sdk: {
83
+ input: CreateMediaDownloadUrlCommandInput;
84
+ output: CreateMediaDownloadUrlCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -0,0 +1,92 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { CreateMediaUploadUrlRequest, CreateMediaUploadUrlResponse } 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 CreateMediaUploadUrlCommand}.
14
+ */
15
+ export interface CreateMediaUploadUrlCommandInput extends CreateMediaUploadUrlRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateMediaUploadUrlCommand}.
21
+ */
22
+ export interface CreateMediaUploadUrlCommandOutput extends CreateMediaUploadUrlResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateMediaUploadUrlCommand_base: {
25
+ new (input: CreateMediaUploadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateMediaUploadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Issues a presigned URL for uploading ONE encrypted attachment.
31
+ *
32
+ * The client encrypts the file locally with a per-attachment AES-256-GCM key and uploads only the
33
+ * ciphertext, so the object this URL writes is unreadable by the service. That key travels to the
34
+ * recipient inside the E2EE message payload and is never sent here.
35
+ *
36
+ * Authorized by match participation, so an upload URL cannot be obtained for a conversation the
37
+ * caller is not in. The URL is signed for EXACTLY `contentLength` bytes, so it cannot be replayed to
38
+ * store something larger than was authorized.
39
+ * @example
40
+ * Use a bare-bones client and the command you need to make an API call.
41
+ * ```javascript
42
+ * import { OneHookClient, CreateMediaUploadUrlCommand } from "onehook-api-client"; // ES Modules import
43
+ * // const { OneHookClient, CreateMediaUploadUrlCommand } = require("onehook-api-client"); // CommonJS import
44
+ * const client = new OneHookClient(config);
45
+ * const input = { // CreateMediaUploadUrlRequest
46
+ * matchId: "STRING_VALUE", // required
47
+ * contentLength: Number("long"), // required
48
+ * kind: "IMAGE" || "VIDEO" || "AUDIO" || "FILE", // required
49
+ * };
50
+ * const command = new CreateMediaUploadUrlCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // CreateMediaUploadUrlResponse
53
+ * // objectKey: "STRING_VALUE", // required
54
+ * // uploadUrl: "STRING_VALUE", // required
55
+ * // expiresInSeconds: Number("int"), // required
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param CreateMediaUploadUrlCommandInput - {@link CreateMediaUploadUrlCommandInput}
61
+ * @returns {@link CreateMediaUploadUrlCommandOutput}
62
+ * @see {@link CreateMediaUploadUrlCommandInput} for command's `input` shape.
63
+ * @see {@link CreateMediaUploadUrlCommandOutput} for command's `response` shape.
64
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
65
+ *
66
+ * @throws {@link BadRequestError} (client fault)
67
+ *
68
+ * @throws {@link ForbiddenError} (client fault)
69
+ *
70
+ * @throws {@link NotFoundError} (client fault)
71
+ *
72
+ * @throws {@link InternalServerError} (server fault)
73
+ *
74
+ * @throws {@link OneHookServiceException}
75
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
76
+ *
77
+ *
78
+ * @public
79
+ */
80
+ export declare class CreateMediaUploadUrlCommand extends CreateMediaUploadUrlCommand_base {
81
+ /** @internal type navigation helper, not in runtime. */
82
+ protected static __types: {
83
+ api: {
84
+ input: CreateMediaUploadUrlRequest;
85
+ output: CreateMediaUploadUrlResponse;
86
+ };
87
+ sdk: {
88
+ input: CreateMediaUploadUrlCommandInput;
89
+ output: CreateMediaUploadUrlCommandOutput;
90
+ };
91
+ };
92
+ }
@@ -0,0 +1,85 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { DeletePushTokenRequest, DeletePushTokenResponse } 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 DeletePushTokenCommand}.
14
+ */
15
+ export interface DeletePushTokenCommandInput extends DeletePushTokenRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeletePushTokenCommand}.
21
+ */
22
+ export interface DeletePushTokenCommandOutput extends DeletePushTokenResponse, __MetadataBearer {
23
+ }
24
+ declare const DeletePushTokenCommand_base: {
25
+ new (input: DeletePushTokenCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePushTokenCommandInput, DeletePushTokenCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeletePushTokenCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePushTokenCommandInput, DeletePushTokenCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Removes this device's push token WITHOUT revoking the device.
31
+ *
32
+ * Deliberately separate from `RevokeDevice`: signing out or turning notifications off should stop
33
+ * pushes while leaving the device's E2EE identity and its history-key wraps intact. Revoking the
34
+ * device instead would strand its ability to read message history.
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { OneHookClient, DeletePushTokenCommand } from "onehook-api-client"; // ES Modules import
39
+ * // const { OneHookClient, DeletePushTokenCommand } = require("onehook-api-client"); // CommonJS import
40
+ * const client = new OneHookClient(config);
41
+ * const input = { // DeletePushTokenRequest
42
+ * deviceId: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new DeletePushTokenCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // DeletePushTokenResponse
47
+ * // deviceId: "STRING_VALUE", // required
48
+ * // deleted: true || false, // required
49
+ * // };
50
+ *
51
+ * ```
52
+ *
53
+ * @param DeletePushTokenCommandInput - {@link DeletePushTokenCommandInput}
54
+ * @returns {@link DeletePushTokenCommandOutput}
55
+ * @see {@link DeletePushTokenCommandInput} for command's `input` shape.
56
+ * @see {@link DeletePushTokenCommandOutput} for command's `response` shape.
57
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
58
+ *
59
+ * @throws {@link BadRequestError} (client fault)
60
+ *
61
+ * @throws {@link ForbiddenError} (client fault)
62
+ *
63
+ * @throws {@link NotFoundError} (client fault)
64
+ *
65
+ * @throws {@link InternalServerError} (server fault)
66
+ *
67
+ * @throws {@link OneHookServiceException}
68
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
69
+ *
70
+ *
71
+ * @public
72
+ */
73
+ export declare class DeletePushTokenCommand extends DeletePushTokenCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: DeletePushTokenRequest;
78
+ output: DeletePushTokenResponse;
79
+ };
80
+ sdk: {
81
+ input: DeletePushTokenCommandInput;
82
+ output: DeletePushTokenCommandOutput;
83
+ };
84
+ };
85
+ }
@@ -0,0 +1,85 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { GetChatSettingsRequest, GetChatSettingsResponse } 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 GetChatSettingsCommand}.
14
+ */
15
+ export interface GetChatSettingsCommandInput extends GetChatSettingsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetChatSettingsCommand}.
21
+ */
22
+ export interface GetChatSettingsCommandOutput extends GetChatSettingsResponse, __MetadataBearer {
23
+ }
24
+ declare const GetChatSettingsCommand_base: {
25
+ new (input: GetChatSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<GetChatSettingsCommandInput, GetChatSettingsCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetChatSettingsCommandInput]): import("@smithy/smithy-client").CommandImpl<GetChatSettingsCommandInput, GetChatSettingsCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Read the authenticated caller's chat settings. Returns sensible defaults when the user has no
31
+ * stored settings row (all notifications on, read receipts + typing indicators on, last-seen
32
+ * EVERYONE, screenshot protection off, disappearing messages off).
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { OneHookClient, GetChatSettingsCommand } from "onehook-api-client"; // ES Modules import
37
+ * // const { OneHookClient, GetChatSettingsCommand } = require("onehook-api-client"); // CommonJS import
38
+ * const client = new OneHookClient(config);
39
+ * const input = {};
40
+ * const command = new GetChatSettingsCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetChatSettingsResponse
43
+ * // settings: { // ChatSettings
44
+ * // messageNotifications: true || false,
45
+ * // showPreviews: true || false,
46
+ * // reactionNotifications: true || false,
47
+ * // readReceipts: true || false,
48
+ * // typingIndicators: true || false,
49
+ * // lastSeenVisibility: "EVERYONE" || "MATCHES" || "NOBODY",
50
+ * // screenshotProtection: true || false,
51
+ * // defaultDisappearingSeconds: Number("int"),
52
+ * // },
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param GetChatSettingsCommandInput - {@link GetChatSettingsCommandInput}
58
+ * @returns {@link GetChatSettingsCommandOutput}
59
+ * @see {@link GetChatSettingsCommandInput} for command's `input` shape.
60
+ * @see {@link GetChatSettingsCommandOutput} for command's `response` shape.
61
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
62
+ *
63
+ * @throws {@link ForbiddenError} (client fault)
64
+ *
65
+ * @throws {@link InternalServerError} (server fault)
66
+ *
67
+ * @throws {@link OneHookServiceException}
68
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
69
+ *
70
+ *
71
+ * @public
72
+ */
73
+ export declare class GetChatSettingsCommand extends GetChatSettingsCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: {};
78
+ output: GetChatSettingsResponse;
79
+ };
80
+ sdk: {
81
+ input: GetChatSettingsCommandInput;
82
+ output: GetChatSettingsCommandOutput;
83
+ };
84
+ };
85
+ }
@@ -65,12 +65,15 @@ declare const GetMyProfileCommand_base: {
65
65
  * // pictures: [
66
66
  * // "STRING_VALUE",
67
67
  * // ],
68
+ * // pictureTransforms: { // StringMap
69
+ * // "<keys>": "STRING_VALUE",
70
+ * // },
68
71
  * // videos: [
69
72
  * // "STRING_VALUE",
70
73
  * // ],
71
74
  * // audioPrompt: "STRING_VALUE",
72
75
  * // moderationStatus: "STRING_VALUE",
73
- * // fieldModerationStatus: { // StringMap
76
+ * // fieldModerationStatus: {
74
77
  * // "<keys>": "STRING_VALUE",
75
78
  * // },
76
79
  * // causes: [