onehook-api-client 1.0.22 → 1.0.24
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationKind = exports.MessageStatus = exports.KeyRecoveryStatus = void 0;
|
|
3
|
+
exports.PresenceState = exports.NotificationKind = exports.MessageStatus = exports.MessageContentType = exports.KeyRecoveryStatus = void 0;
|
|
4
4
|
var KeyRecoveryStatus;
|
|
5
5
|
(function (KeyRecoveryStatus) {
|
|
6
6
|
KeyRecoveryStatus["Completed"] = "COMPLETED";
|
|
@@ -8,6 +8,15 @@ var KeyRecoveryStatus;
|
|
|
8
8
|
KeyRecoveryStatus["Displaying"] = "DISPLAYING";
|
|
9
9
|
KeyRecoveryStatus["Pending"] = "PENDING";
|
|
10
10
|
})(KeyRecoveryStatus || (exports.KeyRecoveryStatus = KeyRecoveryStatus = {}));
|
|
11
|
+
var MessageContentType;
|
|
12
|
+
(function (MessageContentType) {
|
|
13
|
+
MessageContentType["File"] = "FILE";
|
|
14
|
+
MessageContentType["Gif"] = "GIF";
|
|
15
|
+
MessageContentType["Image"] = "IMAGE";
|
|
16
|
+
MessageContentType["Sticker"] = "STICKER";
|
|
17
|
+
MessageContentType["Text"] = "TEXT";
|
|
18
|
+
MessageContentType["Voice"] = "VOICE";
|
|
19
|
+
})(MessageContentType || (exports.MessageContentType = MessageContentType = {}));
|
|
11
20
|
var MessageStatus;
|
|
12
21
|
(function (MessageStatus) {
|
|
13
22
|
MessageStatus["Delivered"] = "DELIVERED";
|
|
@@ -22,3 +31,8 @@ var NotificationKind;
|
|
|
22
31
|
NotificationKind["MutualMatch"] = "MUTUAL_MATCH";
|
|
23
32
|
NotificationKind["ProfileLiked"] = "PROFILE_LIKED";
|
|
24
33
|
})(NotificationKind || (exports.NotificationKind = NotificationKind = {}));
|
|
34
|
+
var PresenceState;
|
|
35
|
+
(function (PresenceState) {
|
|
36
|
+
PresenceState["Offline"] = "OFFLINE";
|
|
37
|
+
PresenceState["Online"] = "ONLINE";
|
|
38
|
+
})(PresenceState || (exports.PresenceState = PresenceState = {}));
|
package/dist-es/graphql/types.js
CHANGED
|
@@ -5,6 +5,15 @@ export var KeyRecoveryStatus;
|
|
|
5
5
|
KeyRecoveryStatus["Displaying"] = "DISPLAYING";
|
|
6
6
|
KeyRecoveryStatus["Pending"] = "PENDING";
|
|
7
7
|
})(KeyRecoveryStatus || (KeyRecoveryStatus = {}));
|
|
8
|
+
export var MessageContentType;
|
|
9
|
+
(function (MessageContentType) {
|
|
10
|
+
MessageContentType["File"] = "FILE";
|
|
11
|
+
MessageContentType["Gif"] = "GIF";
|
|
12
|
+
MessageContentType["Image"] = "IMAGE";
|
|
13
|
+
MessageContentType["Sticker"] = "STICKER";
|
|
14
|
+
MessageContentType["Text"] = "TEXT";
|
|
15
|
+
MessageContentType["Voice"] = "VOICE";
|
|
16
|
+
})(MessageContentType || (MessageContentType = {}));
|
|
8
17
|
export var MessageStatus;
|
|
9
18
|
(function (MessageStatus) {
|
|
10
19
|
MessageStatus["Delivered"] = "DELIVERED";
|
|
@@ -19,3 +28,8 @@ export var NotificationKind;
|
|
|
19
28
|
NotificationKind["MutualMatch"] = "MUTUAL_MATCH";
|
|
20
29
|
NotificationKind["ProfileLiked"] = "PROFILE_LIKED";
|
|
21
30
|
})(NotificationKind || (NotificationKind = {}));
|
|
31
|
+
export var PresenceState;
|
|
32
|
+
(function (PresenceState) {
|
|
33
|
+
PresenceState["Offline"] = "OFFLINE";
|
|
34
|
+
PresenceState["Online"] = "ONLINE";
|
|
35
|
+
})(PresenceState || (PresenceState = {}));
|
|
@@ -22,6 +22,10 @@ export type Scalars = {
|
|
|
22
22
|
input: number;
|
|
23
23
|
output: number;
|
|
24
24
|
};
|
|
25
|
+
AWSJSON: {
|
|
26
|
+
input: unknown;
|
|
27
|
+
output: unknown;
|
|
28
|
+
};
|
|
25
29
|
AWSTimestamp: {
|
|
26
30
|
input: unknown;
|
|
27
31
|
output: unknown;
|
|
@@ -58,14 +62,34 @@ export declare enum KeyRecoveryStatus {
|
|
|
58
62
|
export type Message = {
|
|
59
63
|
__typename?: 'Message';
|
|
60
64
|
ciphertext: Scalars['String']['output'];
|
|
65
|
+
contentType?: Maybe<MessageContentType>;
|
|
61
66
|
deliveredAt?: Maybe<Scalars['AWSTimestamp']['output']>;
|
|
62
67
|
matchId: Scalars['ID']['output'];
|
|
63
68
|
messageId: Scalars['ID']['output'];
|
|
69
|
+
reactions?: Maybe<Scalars['AWSJSON']['output']>;
|
|
64
70
|
readAt?: Maybe<Scalars['AWSTimestamp']['output']>;
|
|
71
|
+
replyToMessageId?: Maybe<Scalars['ID']['output']>;
|
|
72
|
+
replyToTimestamp?: Maybe<Scalars['AWSTimestamp']['output']>;
|
|
65
73
|
senderId: Scalars['String']['output'];
|
|
66
74
|
status: MessageStatus;
|
|
67
75
|
timestamp: Scalars['AWSTimestamp']['output'];
|
|
68
76
|
};
|
|
77
|
+
export declare enum MessageContentType {
|
|
78
|
+
File = "FILE",
|
|
79
|
+
Gif = "GIF",
|
|
80
|
+
Image = "IMAGE",
|
|
81
|
+
Sticker = "STICKER",
|
|
82
|
+
Text = "TEXT",
|
|
83
|
+
Voice = "VOICE"
|
|
84
|
+
}
|
|
85
|
+
export type MessageReaction = {
|
|
86
|
+
__typename?: 'MessageReaction';
|
|
87
|
+
matchId: Scalars['ID']['output'];
|
|
88
|
+
messageId: Scalars['ID']['output'];
|
|
89
|
+
reaction?: Maybe<Scalars['String']['output']>;
|
|
90
|
+
timestamp: Scalars['AWSTimestamp']['output'];
|
|
91
|
+
userId: Scalars['String']['output'];
|
|
92
|
+
};
|
|
69
93
|
export type MessageReceipt = {
|
|
70
94
|
__typename?: 'MessageReceipt';
|
|
71
95
|
messageId: Scalars['ID']['output'];
|
|
@@ -84,10 +108,14 @@ export type Mutation = {
|
|
|
84
108
|
deleteMessage?: Maybe<DeletedMessage>;
|
|
85
109
|
markAsDelivered?: Maybe<MessageReceipt>;
|
|
86
110
|
markAsRead?: Maybe<MessageReceipt>;
|
|
111
|
+
notifyScreenshot?: Maybe<ScreenshotEvent>;
|
|
87
112
|
publishNotification?: Maybe<Notification>;
|
|
113
|
+
reactToMessage?: Maybe<MessageReaction>;
|
|
88
114
|
requestKeyRecovery?: Maybe<KeyRecoverySession>;
|
|
89
115
|
sendMessage?: Maybe<Message>;
|
|
116
|
+
sendTypingIndicator?: Maybe<TypingIndicator>;
|
|
90
117
|
updateKeyRecovery?: Maybe<KeyRecoverySession>;
|
|
118
|
+
updatePresence?: Maybe<PresenceUpdate>;
|
|
91
119
|
};
|
|
92
120
|
export type MutationDeleteMessageArgs = {
|
|
93
121
|
matchId: Scalars['ID']['input'];
|
|
@@ -105,6 +133,10 @@ export type MutationMarkAsReadArgs = {
|
|
|
105
133
|
timestamp: Scalars['AWSTimestamp']['input'];
|
|
106
134
|
userId: Scalars['String']['input'];
|
|
107
135
|
};
|
|
136
|
+
export type MutationNotifyScreenshotArgs = {
|
|
137
|
+
matchId: Scalars['ID']['input'];
|
|
138
|
+
userId: Scalars['String']['input'];
|
|
139
|
+
};
|
|
108
140
|
export type MutationPublishNotificationArgs = {
|
|
109
141
|
body: Scalars['String']['input'];
|
|
110
142
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -113,6 +145,13 @@ export type MutationPublishNotificationArgs = {
|
|
|
113
145
|
title: Scalars['String']['input'];
|
|
114
146
|
userId: Scalars['ID']['input'];
|
|
115
147
|
};
|
|
148
|
+
export type MutationReactToMessageArgs = {
|
|
149
|
+
matchId: Scalars['ID']['input'];
|
|
150
|
+
messageId: Scalars['ID']['input'];
|
|
151
|
+
reaction?: InputMaybe<Scalars['String']['input']>;
|
|
152
|
+
timestamp: Scalars['AWSTimestamp']['input'];
|
|
153
|
+
userId: Scalars['String']['input'];
|
|
154
|
+
};
|
|
116
155
|
export type MutationRequestKeyRecoveryArgs = {
|
|
117
156
|
challenge: Scalars['String']['input'];
|
|
118
157
|
sourceDeviceId: Scalars['ID']['input'];
|
|
@@ -121,15 +160,29 @@ export type MutationRequestKeyRecoveryArgs = {
|
|
|
121
160
|
};
|
|
122
161
|
export type MutationSendMessageArgs = {
|
|
123
162
|
ciphertext: Scalars['String']['input'];
|
|
163
|
+
contentType?: InputMaybe<MessageContentType>;
|
|
164
|
+
expireSeconds?: InputMaybe<Scalars['Int']['input']>;
|
|
124
165
|
matchId: Scalars['ID']['input'];
|
|
166
|
+
replyToMessageId?: InputMaybe<Scalars['ID']['input']>;
|
|
167
|
+
replyToTimestamp?: InputMaybe<Scalars['AWSTimestamp']['input']>;
|
|
125
168
|
senderId: Scalars['String']['input'];
|
|
126
169
|
};
|
|
170
|
+
export type MutationSendTypingIndicatorArgs = {
|
|
171
|
+
isTyping: Scalars['Boolean']['input'];
|
|
172
|
+
matchId: Scalars['ID']['input'];
|
|
173
|
+
userId: Scalars['String']['input'];
|
|
174
|
+
};
|
|
127
175
|
export type MutationUpdateKeyRecoveryArgs = {
|
|
128
176
|
sessionId: Scalars['ID']['input'];
|
|
129
177
|
sourceDeviceId: Scalars['ID']['input'];
|
|
130
178
|
status: KeyRecoveryStatus;
|
|
131
179
|
targetDeviceId: Scalars['ID']['input'];
|
|
132
180
|
};
|
|
181
|
+
export type MutationUpdatePresenceArgs = {
|
|
182
|
+
matchId: Scalars['ID']['input'];
|
|
183
|
+
state: PresenceState;
|
|
184
|
+
userId: Scalars['String']['input'];
|
|
185
|
+
};
|
|
133
186
|
export type Notification = {
|
|
134
187
|
__typename?: 'Notification';
|
|
135
188
|
/** Server-authored copy. Never message content (the backend cannot read it). */
|
|
@@ -152,6 +205,17 @@ export declare enum NotificationKind {
|
|
|
152
205
|
/** Someone liked this user. Does NOT reveal whether the like was reciprocated. */
|
|
153
206
|
ProfileLiked = "PROFILE_LIKED"
|
|
154
207
|
}
|
|
208
|
+
export declare enum PresenceState {
|
|
209
|
+
Offline = "OFFLINE",
|
|
210
|
+
Online = "ONLINE"
|
|
211
|
+
}
|
|
212
|
+
export type PresenceUpdate = {
|
|
213
|
+
__typename?: 'PresenceUpdate';
|
|
214
|
+
lastActiveAt: Scalars['AWSTimestamp']['output'];
|
|
215
|
+
matchId: Scalars['ID']['output'];
|
|
216
|
+
state: PresenceState;
|
|
217
|
+
userId: Scalars['String']['output'];
|
|
218
|
+
};
|
|
155
219
|
export type Query = {
|
|
156
220
|
__typename?: 'Query';
|
|
157
221
|
getKeyRecoveryRequests?: Maybe<Array<Maybe<KeyRecoverySession>>>;
|
|
@@ -169,14 +233,24 @@ export type QueryGetMessagesArgs = {
|
|
|
169
233
|
after?: InputMaybe<Scalars['AWSTimestamp']['input']>;
|
|
170
234
|
matchId: Scalars['ID']['input'];
|
|
171
235
|
};
|
|
236
|
+
export type ScreenshotEvent = {
|
|
237
|
+
__typename?: 'ScreenshotEvent';
|
|
238
|
+
matchId: Scalars['ID']['output'];
|
|
239
|
+
timestamp: Scalars['AWSTimestamp']['output'];
|
|
240
|
+
userId: Scalars['String']['output'];
|
|
241
|
+
};
|
|
172
242
|
export type Subscription = {
|
|
173
243
|
__typename?: 'Subscription';
|
|
174
244
|
onKeyRecoveryRequested?: Maybe<KeyRecoverySession>;
|
|
175
245
|
onKeyRecoveryUpdated?: Maybe<KeyRecoverySession>;
|
|
176
246
|
onMessageDeleted?: Maybe<DeletedMessage>;
|
|
247
|
+
onMessageReaction?: Maybe<MessageReaction>;
|
|
177
248
|
onMessageStatusUpdate?: Maybe<MessageReceipt>;
|
|
178
249
|
onNewMessage?: Maybe<Message>;
|
|
179
250
|
onNotification?: Maybe<Notification>;
|
|
251
|
+
onPresenceUpdate?: Maybe<PresenceUpdate>;
|
|
252
|
+
onScreenshotTaken?: Maybe<ScreenshotEvent>;
|
|
253
|
+
onTypingIndicator?: Maybe<TypingIndicator>;
|
|
180
254
|
};
|
|
181
255
|
export type SubscriptionOnKeyRecoveryRequestedArgs = {
|
|
182
256
|
sourceDeviceId: Scalars['ID']['input'];
|
|
@@ -189,6 +263,9 @@ export type SubscriptionOnKeyRecoveryUpdatedArgs = {
|
|
|
189
263
|
export type SubscriptionOnMessageDeletedArgs = {
|
|
190
264
|
matchId: Scalars['ID']['input'];
|
|
191
265
|
};
|
|
266
|
+
export type SubscriptionOnMessageReactionArgs = {
|
|
267
|
+
matchId: Scalars['ID']['input'];
|
|
268
|
+
};
|
|
192
269
|
export type SubscriptionOnMessageStatusUpdateArgs = {
|
|
193
270
|
matchId: Scalars['ID']['input'];
|
|
194
271
|
};
|
|
@@ -198,3 +275,19 @@ export type SubscriptionOnNewMessageArgs = {
|
|
|
198
275
|
export type SubscriptionOnNotificationArgs = {
|
|
199
276
|
userId: Scalars['ID']['input'];
|
|
200
277
|
};
|
|
278
|
+
export type SubscriptionOnPresenceUpdateArgs = {
|
|
279
|
+
matchId: Scalars['ID']['input'];
|
|
280
|
+
};
|
|
281
|
+
export type SubscriptionOnScreenshotTakenArgs = {
|
|
282
|
+
matchId: Scalars['ID']['input'];
|
|
283
|
+
};
|
|
284
|
+
export type SubscriptionOnTypingIndicatorArgs = {
|
|
285
|
+
matchId: Scalars['ID']['input'];
|
|
286
|
+
};
|
|
287
|
+
export type TypingIndicator = {
|
|
288
|
+
__typename?: 'TypingIndicator';
|
|
289
|
+
isTyping: Scalars['Boolean']['output'];
|
|
290
|
+
matchId: Scalars['ID']['output'];
|
|
291
|
+
timestamp: Scalars['AWSTimestamp']['output'];
|
|
292
|
+
userId: Scalars['String']['output'];
|
|
293
|
+
};
|
package/package.json
CHANGED