onehook-api-client 1.0.43 → 1.0.45

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.
@@ -0,0 +1,2 @@
1
+ export * from './catalog';
2
+ export * from './details';
@@ -23,12 +23,12 @@ export type Scalars = {
23
23
  output: number;
24
24
  };
25
25
  AWSJSON: {
26
- input: unknown;
27
- output: unknown;
26
+ input: string;
27
+ output: string;
28
28
  };
29
29
  AWSTimestamp: {
30
- input: unknown;
31
- output: unknown;
30
+ input: number;
31
+ output: number;
32
32
  };
33
33
  };
34
34
  export type Call = {
@@ -175,6 +175,27 @@ export declare enum KeyRecoveryStatus {
175
175
  /** The new device has asked; the chosen device has not responded yet. */
176
176
  Pending = "PENDING"
177
177
  }
178
+ /**
179
+ * The latest state of one live-location share. Reachable from the IAM-only publishLiveLocationEnded (the
180
+ * backend ending shares on release, suspension or account deletion) and from Cognito clients, so it
181
+ * carries both auth directives.
182
+ */
183
+ export type LiveLocationUpdate = {
184
+ __typename?: 'LiveLocationUpdate';
185
+ /** When the backend accepted this update (epoch ms). */
186
+ at: Scalars['AWSTimestamp']['output'];
187
+ /** Sealed live_location_update payload. Null when `ended` is true. */
188
+ ciphertext?: Maybe<Scalars['String']['output']>;
189
+ /** True once the owner stopped the share or the backend ended it. No further updates follow. */
190
+ ended: Scalars['Boolean']['output'];
191
+ /** When the share stops on its own (epoch ms). At most 8 hours after the share's first publish. */
192
+ expiresAt: Scalars['AWSTimestamp']['output'];
193
+ matchId: Scalars['ID']['output'];
194
+ /** Client-minted UUID of the share, also carried in the `live_location` message that started it. */
195
+ sessionId: Scalars['ID']['output'];
196
+ /** The sharing member. Always the publishing caller's own subject, never client-supplied. */
197
+ userId: Scalars['ID']['output'];
198
+ };
178
199
  export type Message = {
179
200
  __typename?: 'Message';
180
201
  ciphertext: Scalars['String']['output'];
@@ -230,6 +251,8 @@ export type Mutation = {
230
251
  markAsRead?: Maybe<MessageReceipt>;
231
252
  notifyScreenshot?: Maybe<ScreenshotEvent>;
232
253
  publishCallEvent?: Maybe<CallEvent>;
254
+ publishLiveLocation?: Maybe<LiveLocationUpdate>;
255
+ publishLiveLocationEnded?: Maybe<LiveLocationUpdate>;
233
256
  publishNotification?: Maybe<Notification>;
234
257
  reactToMessage?: Maybe<MessageReaction>;
235
258
  relayCallSignal?: Maybe<CallEvent>;
@@ -237,6 +260,7 @@ export type Mutation = {
237
260
  sendMessage?: Maybe<Message>;
238
261
  sendTypingIndicator?: Maybe<TypingIndicator>;
239
262
  startCall?: Maybe<Call>;
263
+ stopLiveLocation?: Maybe<LiveLocationUpdate>;
240
264
  updateKeyRecovery?: Maybe<KeyRecoverySession>;
241
265
  updatePresence?: Maybe<PresenceUpdate>;
242
266
  };
@@ -285,6 +309,18 @@ export type MutationPublishCallEventArgs = {
285
309
  media?: InputMaybe<CallMedia>;
286
310
  userId: Scalars['ID']['input'];
287
311
  };
312
+ export type MutationPublishLiveLocationArgs = {
313
+ ciphertext: Scalars['String']['input'];
314
+ expiresAt: Scalars['AWSTimestamp']['input'];
315
+ matchId: Scalars['ID']['input'];
316
+ sessionId: Scalars['ID']['input'];
317
+ };
318
+ export type MutationPublishLiveLocationEndedArgs = {
319
+ expiresAt: Scalars['AWSTimestamp']['input'];
320
+ matchId: Scalars['ID']['input'];
321
+ sessionId: Scalars['ID']['input'];
322
+ userId: Scalars['ID']['input'];
323
+ };
288
324
  export type MutationPublishNotificationArgs = {
289
325
  body: Scalars['String']['input'];
290
326
  id?: InputMaybe<Scalars['ID']['input']>;
@@ -334,6 +370,10 @@ export type MutationStartCallArgs = {
334
370
  media: CallMedia;
335
371
  offerCiphertext: Scalars['String']['input'];
336
372
  };
373
+ export type MutationStopLiveLocationArgs = {
374
+ matchId: Scalars['ID']['input'];
375
+ sessionId: Scalars['ID']['input'];
376
+ };
337
377
  export type MutationUpdateKeyRecoveryArgs = {
338
378
  sessionId: Scalars['ID']['input'];
339
379
  sourceDeviceId: Scalars['ID']['input'];
@@ -397,6 +437,7 @@ export type Query = {
397
437
  getIceServers?: Maybe<IceServerConfig>;
398
438
  getKeyRecoveryRequests?: Maybe<Array<Maybe<KeyRecoverySession>>>;
399
439
  getKeyRecoverySession?: Maybe<KeyRecoverySession>;
440
+ getLiveLocations?: Maybe<Array<Maybe<LiveLocationUpdate>>>;
400
441
  getMessages?: Maybe<Array<Maybe<Message>>>;
401
442
  };
402
443
  export type QueryGetCallArgs = {
@@ -421,6 +462,9 @@ export type QueryGetKeyRecoverySessionArgs = {
421
462
  sourceDeviceId: Scalars['ID']['input'];
422
463
  targetDeviceId: Scalars['ID']['input'];
423
464
  };
465
+ export type QueryGetLiveLocationsArgs = {
466
+ matchId: Scalars['ID']['input'];
467
+ };
424
468
  export type QueryGetMessagesArgs = {
425
469
  after?: InputMaybe<Scalars['AWSTimestamp']['input']>;
426
470
  matchId: Scalars['ID']['input'];
@@ -436,6 +480,7 @@ export type Subscription = {
436
480
  onCallEvent?: Maybe<CallEvent>;
437
481
  onKeyRecoveryRequested?: Maybe<KeyRecoverySession>;
438
482
  onKeyRecoveryUpdated?: Maybe<KeyRecoverySession>;
483
+ onLiveLocation?: Maybe<LiveLocationUpdate>;
439
484
  onMessageDeleted?: Maybe<DeletedMessage>;
440
485
  onMessageReaction?: Maybe<MessageReaction>;
441
486
  onMessageStatusUpdate?: Maybe<MessageReceipt>;
@@ -456,6 +501,9 @@ export type SubscriptionOnKeyRecoveryUpdatedArgs = {
456
501
  targetDeviceId: Scalars['ID']['input'];
457
502
  userId: Scalars['ID']['input'];
458
503
  };
504
+ export type SubscriptionOnLiveLocationArgs = {
505
+ matchId: Scalars['ID']['input'];
506
+ };
459
507
  export type SubscriptionOnMessageDeletedArgs = {
460
508
  matchId: Scalars['ID']['input'];
461
509
  };