@oxy.so/contracts 4.14.0 → 4.15.0

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 (51) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/index.js +2 -1
  3. package/dist/cjs/products/billing.js +1 -0
  4. package/dist/cjs/products/checkout.js +14 -1
  5. package/dist/cjs/products/plans.js +18 -2
  6. package/dist/cjs/userResponse.js +8 -1
  7. package/dist/esm/.tsbuildinfo +1 -1
  8. package/dist/esm/index.js +1 -1
  9. package/dist/esm/products/billing.js +1 -0
  10. package/dist/esm/products/checkout.js +13 -0
  11. package/dist/esm/products/plans.js +17 -1
  12. package/dist/esm/userResponse.js +8 -1
  13. package/dist/types/.tsbuildinfo +1 -1
  14. package/dist/types/accountGraph.d.ts +22 -22
  15. package/dist/types/accountSubject.d.ts +4 -4
  16. package/dist/types/agency.d.ts +86 -86
  17. package/dist/types/deviceDirectory.d.ts +180 -180
  18. package/dist/types/email/messages.d.ts +78 -78
  19. package/dist/types/externalIdentity.d.ts +92 -59
  20. package/dist/types/index.d.ts +1 -1
  21. package/dist/types/inference/accountBilling.d.ts +36 -36
  22. package/dist/types/inference/catalogue.d.ts +12 -12
  23. package/dist/types/inference/decisions.d.ts +16 -16
  24. package/dist/types/inference/economics.d.ts +6 -6
  25. package/dist/types/inference/embeddings.d.ts +18 -18
  26. package/dist/types/inference/entitlement.d.ts +12 -12
  27. package/dist/types/inference/errors.d.ts +4 -4
  28. package/dist/types/inference/inbox.d.ts +17 -17
  29. package/dist/types/inference/priceVersion.d.ts +8 -8
  30. package/dist/types/inference/privateAutoExecution.d.ts +12 -12
  31. package/dist/types/inference/providerConnection.d.ts +24 -24
  32. package/dist/types/inference/realtime.d.ts +26 -26
  33. package/dist/types/inference/request.d.ts +26 -26
  34. package/dist/types/inference/routingPolicy.d.ts +4 -4
  35. package/dist/types/inference/scopedExecution.d.ts +8 -8
  36. package/dist/types/inference/streamEvents.d.ts +20 -20
  37. package/dist/types/inference/usage.d.ts +8 -8
  38. package/dist/types/keyRecovery.d.ts +4 -4
  39. package/dist/types/linkedAccounts.d.ts +16 -16
  40. package/dist/types/notifications.d.ts +4 -4
  41. package/dist/types/oauth.d.ts +40 -40
  42. package/dist/types/products/access.d.ts +18 -18
  43. package/dist/types/products/billing.d.ts +32 -24
  44. package/dist/types/products/checkout.d.ts +36 -0
  45. package/dist/types/products/plans.d.ts +108 -11
  46. package/dist/types/recommendations.d.ts +30 -30
  47. package/dist/types/safety.d.ts +2 -2
  48. package/dist/types/sessionStatus.d.ts +6 -6
  49. package/dist/types/stickers.d.ts +32 -32
  50. package/dist/types/userResponse.d.ts +247 -111
  51. package/package.json +1 -1
@@ -129,10 +129,12 @@ export declare const deviceAccountContextSchema: z.ZodObject<{
129
129
  active: z.ZodBoolean;
130
130
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
131
131
  }, "strip", z.ZodTypeAny, {
132
- kind: "personal" | "organization" | "project" | "bot" | "channel";
132
+ active: boolean;
133
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
134
+ accountId: string;
133
135
  id: string;
136
+ lastUsedAt: number | null;
134
137
  relationship: "owner" | "self" | "member";
135
- accountId: string;
136
138
  account: {
137
139
  username: string;
138
140
  id: string;
@@ -142,13 +144,13 @@ export declare const deviceAccountContextSchema: z.ZodObject<{
142
144
  };
143
145
  onDevice: boolean;
144
146
  available: boolean;
145
- active: boolean;
146
- lastUsedAt: number | null;
147
147
  }, {
148
- kind: "personal" | "organization" | "project" | "bot" | "channel";
148
+ active: boolean;
149
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
150
+ accountId: string;
149
151
  id: string;
152
+ lastUsedAt: number | null;
150
153
  relationship: "owner" | "self" | "member";
151
- accountId: string;
152
154
  account: {
153
155
  username: string;
154
156
  id: string;
@@ -158,8 +160,6 @@ export declare const deviceAccountContextSchema: z.ZodObject<{
158
160
  };
159
161
  onDevice: boolean;
160
162
  available: boolean;
161
- active: boolean;
162
- lastUsedAt: number | null;
163
163
  }>;
164
164
  /**
165
165
  * A human who authenticated onto this device.
@@ -231,10 +231,12 @@ export declare const devicePrincipalSchema: z.ZodObject<{
231
231
  active: z.ZodBoolean;
232
232
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
233
233
  }, "strip", z.ZodTypeAny, {
234
- kind: "personal" | "organization" | "project" | "bot" | "channel";
234
+ active: boolean;
235
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
236
+ accountId: string;
235
237
  id: string;
238
+ lastUsedAt: number | null;
236
239
  relationship: "owner" | "self" | "member";
237
- accountId: string;
238
240
  account: {
239
241
  username: string;
240
242
  id: string;
@@ -244,13 +246,13 @@ export declare const devicePrincipalSchema: z.ZodObject<{
244
246
  };
245
247
  onDevice: boolean;
246
248
  available: boolean;
247
- active: boolean;
248
- lastUsedAt: number | null;
249
249
  }, {
250
- kind: "personal" | "organization" | "project" | "bot" | "channel";
250
+ active: boolean;
251
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
252
+ accountId: string;
251
253
  id: string;
254
+ lastUsedAt: number | null;
252
255
  relationship: "owner" | "self" | "member";
253
- accountId: string;
254
256
  account: {
255
257
  username: string;
256
258
  id: string;
@@ -260,8 +262,6 @@ export declare const devicePrincipalSchema: z.ZodObject<{
260
262
  };
261
263
  onDevice: boolean;
262
264
  available: boolean;
263
- active: boolean;
264
- lastUsedAt: number | null;
265
265
  }>, "many">;
266
266
  }, "strip", z.ZodTypeAny, {
267
267
  id: string;
@@ -272,13 +272,15 @@ export declare const devicePrincipalSchema: z.ZodObject<{
272
272
  name?: import("./userResponse").UserNameResponse | undefined;
273
273
  avatar?: string | null | undefined;
274
274
  };
275
- userId: string;
276
275
  authuser: number;
276
+ userId: string;
277
277
  contexts: {
278
- kind: "personal" | "organization" | "project" | "bot" | "channel";
278
+ active: boolean;
279
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
280
+ accountId: string;
279
281
  id: string;
282
+ lastUsedAt: number | null;
280
283
  relationship: "owner" | "self" | "member";
281
- accountId: string;
282
284
  account: {
283
285
  username: string;
284
286
  id: string;
@@ -288,8 +290,6 @@ export declare const devicePrincipalSchema: z.ZodObject<{
288
290
  };
289
291
  onDevice: boolean;
290
292
  available: boolean;
291
- active: boolean;
292
- lastUsedAt: number | null;
293
293
  }[];
294
294
  }, {
295
295
  id: string;
@@ -300,13 +300,15 @@ export declare const devicePrincipalSchema: z.ZodObject<{
300
300
  name?: import("./userResponse").UserNameResponse | undefined;
301
301
  avatar?: string | null | undefined;
302
302
  };
303
- userId: string;
304
303
  authuser: number;
304
+ userId: string;
305
305
  contexts: {
306
- kind: "personal" | "organization" | "project" | "bot" | "channel";
306
+ active: boolean;
307
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
308
+ accountId: string;
307
309
  id: string;
310
+ lastUsedAt: number | null;
308
311
  relationship: "owner" | "self" | "member";
309
- accountId: string;
310
312
  account: {
311
313
  username: string;
312
314
  id: string;
@@ -316,8 +318,6 @@ export declare const devicePrincipalSchema: z.ZodObject<{
316
318
  };
317
319
  onDevice: boolean;
318
320
  available: boolean;
319
- active: boolean;
320
- lastUsedAt: number | null;
321
321
  }[];
322
322
  }>;
323
323
  /**
@@ -394,10 +394,12 @@ export declare const deviceDirectorySchema: z.ZodObject<{
394
394
  active: z.ZodBoolean;
395
395
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
396
396
  }, "strip", z.ZodTypeAny, {
397
- kind: "personal" | "organization" | "project" | "bot" | "channel";
397
+ active: boolean;
398
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
399
+ accountId: string;
398
400
  id: string;
401
+ lastUsedAt: number | null;
399
402
  relationship: "owner" | "self" | "member";
400
- accountId: string;
401
403
  account: {
402
404
  username: string;
403
405
  id: string;
@@ -407,13 +409,13 @@ export declare const deviceDirectorySchema: z.ZodObject<{
407
409
  };
408
410
  onDevice: boolean;
409
411
  available: boolean;
410
- active: boolean;
411
- lastUsedAt: number | null;
412
412
  }, {
413
- kind: "personal" | "organization" | "project" | "bot" | "channel";
413
+ active: boolean;
414
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
415
+ accountId: string;
414
416
  id: string;
417
+ lastUsedAt: number | null;
415
418
  relationship: "owner" | "self" | "member";
416
- accountId: string;
417
419
  account: {
418
420
  username: string;
419
421
  id: string;
@@ -423,8 +425,6 @@ export declare const deviceDirectorySchema: z.ZodObject<{
423
425
  };
424
426
  onDevice: boolean;
425
427
  available: boolean;
426
- active: boolean;
427
- lastUsedAt: number | null;
428
428
  }>, "many">;
429
429
  }, "strip", z.ZodTypeAny, {
430
430
  id: string;
@@ -435,13 +435,15 @@ export declare const deviceDirectorySchema: z.ZodObject<{
435
435
  name?: import("./userResponse").UserNameResponse | undefined;
436
436
  avatar?: string | null | undefined;
437
437
  };
438
- userId: string;
439
438
  authuser: number;
439
+ userId: string;
440
440
  contexts: {
441
- kind: "personal" | "organization" | "project" | "bot" | "channel";
441
+ active: boolean;
442
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
443
+ accountId: string;
442
444
  id: string;
445
+ lastUsedAt: number | null;
443
446
  relationship: "owner" | "self" | "member";
444
- accountId: string;
445
447
  account: {
446
448
  username: string;
447
449
  id: string;
@@ -451,8 +453,6 @@ export declare const deviceDirectorySchema: z.ZodObject<{
451
453
  };
452
454
  onDevice: boolean;
453
455
  available: boolean;
454
- active: boolean;
455
- lastUsedAt: number | null;
456
456
  }[];
457
457
  }, {
458
458
  id: string;
@@ -463,13 +463,15 @@ export declare const deviceDirectorySchema: z.ZodObject<{
463
463
  name?: import("./userResponse").UserNameResponse | undefined;
464
464
  avatar?: string | null | undefined;
465
465
  };
466
- userId: string;
467
466
  authuser: number;
467
+ userId: string;
468
468
  contexts: {
469
- kind: "personal" | "organization" | "project" | "bot" | "channel";
469
+ active: boolean;
470
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
471
+ accountId: string;
470
472
  id: string;
473
+ lastUsedAt: number | null;
471
474
  relationship: "owner" | "self" | "member";
472
- accountId: string;
473
475
  account: {
474
476
  username: string;
475
477
  id: string;
@@ -479,12 +481,11 @@ export declare const deviceDirectorySchema: z.ZodObject<{
479
481
  };
480
482
  onDevice: boolean;
481
483
  available: boolean;
482
- active: boolean;
483
- lastUsedAt: number | null;
484
484
  }[];
485
485
  }>, "many">;
486
486
  updatedAt: z.ZodNumber;
487
487
  }, "strip", z.ZodTypeAny, {
488
+ updatedAt: number;
488
489
  deviceId: string;
489
490
  revision: number;
490
491
  activeContextId: string | null;
@@ -497,13 +498,15 @@ export declare const deviceDirectorySchema: z.ZodObject<{
497
498
  name?: import("./userResponse").UserNameResponse | undefined;
498
499
  avatar?: string | null | undefined;
499
500
  };
500
- userId: string;
501
501
  authuser: number;
502
+ userId: string;
502
503
  contexts: {
503
- kind: "personal" | "organization" | "project" | "bot" | "channel";
504
+ active: boolean;
505
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
506
+ accountId: string;
504
507
  id: string;
508
+ lastUsedAt: number | null;
505
509
  relationship: "owner" | "self" | "member";
506
- accountId: string;
507
510
  account: {
508
511
  username: string;
509
512
  id: string;
@@ -513,12 +516,10 @@ export declare const deviceDirectorySchema: z.ZodObject<{
513
516
  };
514
517
  onDevice: boolean;
515
518
  available: boolean;
516
- active: boolean;
517
- lastUsedAt: number | null;
518
519
  }[];
519
520
  }[];
520
- updatedAt: number;
521
521
  }, {
522
+ updatedAt: number;
522
523
  deviceId: string;
523
524
  revision: number;
524
525
  activeContextId: string | null;
@@ -531,13 +532,15 @@ export declare const deviceDirectorySchema: z.ZodObject<{
531
532
  name?: import("./userResponse").UserNameResponse | undefined;
532
533
  avatar?: string | null | undefined;
533
534
  };
534
- userId: string;
535
535
  authuser: number;
536
+ userId: string;
536
537
  contexts: {
537
- kind: "personal" | "organization" | "project" | "bot" | "channel";
538
+ active: boolean;
539
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
540
+ accountId: string;
538
541
  id: string;
542
+ lastUsedAt: number | null;
539
543
  relationship: "owner" | "self" | "member";
540
- accountId: string;
541
544
  account: {
542
545
  username: string;
543
546
  id: string;
@@ -547,11 +550,8 @@ export declare const deviceDirectorySchema: z.ZodObject<{
547
550
  };
548
551
  onDevice: boolean;
549
552
  available: boolean;
550
- active: boolean;
551
- lastUsedAt: number | null;
552
553
  }[];
553
554
  }[];
554
- updatedAt: number;
555
555
  }>;
556
556
  /**
557
557
  * Request body of `POST /session/device/activate`.
@@ -648,10 +648,12 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
648
648
  active: z.ZodBoolean;
649
649
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
650
650
  }, "strip", z.ZodTypeAny, {
651
- kind: "personal" | "organization" | "project" | "bot" | "channel";
651
+ active: boolean;
652
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
653
+ accountId: string;
652
654
  id: string;
655
+ lastUsedAt: number | null;
653
656
  relationship: "owner" | "self" | "member";
654
- accountId: string;
655
657
  account: {
656
658
  username: string;
657
659
  id: string;
@@ -661,13 +663,13 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
661
663
  };
662
664
  onDevice: boolean;
663
665
  available: boolean;
664
- active: boolean;
665
- lastUsedAt: number | null;
666
666
  }, {
667
- kind: "personal" | "organization" | "project" | "bot" | "channel";
667
+ active: boolean;
668
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
669
+ accountId: string;
668
670
  id: string;
671
+ lastUsedAt: number | null;
669
672
  relationship: "owner" | "self" | "member";
670
- accountId: string;
671
673
  account: {
672
674
  username: string;
673
675
  id: string;
@@ -677,8 +679,6 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
677
679
  };
678
680
  onDevice: boolean;
679
681
  available: boolean;
680
- active: boolean;
681
- lastUsedAt: number | null;
682
682
  }>, "many">;
683
683
  }, "strip", z.ZodTypeAny, {
684
684
  id: string;
@@ -689,13 +689,15 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
689
689
  name?: import("./userResponse").UserNameResponse | undefined;
690
690
  avatar?: string | null | undefined;
691
691
  };
692
- userId: string;
693
692
  authuser: number;
693
+ userId: string;
694
694
  contexts: {
695
- kind: "personal" | "organization" | "project" | "bot" | "channel";
695
+ active: boolean;
696
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
697
+ accountId: string;
696
698
  id: string;
699
+ lastUsedAt: number | null;
697
700
  relationship: "owner" | "self" | "member";
698
- accountId: string;
699
701
  account: {
700
702
  username: string;
701
703
  id: string;
@@ -705,8 +707,6 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
705
707
  };
706
708
  onDevice: boolean;
707
709
  available: boolean;
708
- active: boolean;
709
- lastUsedAt: number | null;
710
710
  }[];
711
711
  }, {
712
712
  id: string;
@@ -717,13 +717,15 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
717
717
  name?: import("./userResponse").UserNameResponse | undefined;
718
718
  avatar?: string | null | undefined;
719
719
  };
720
- userId: string;
721
720
  authuser: number;
721
+ userId: string;
722
722
  contexts: {
723
- kind: "personal" | "organization" | "project" | "bot" | "channel";
723
+ active: boolean;
724
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
725
+ accountId: string;
724
726
  id: string;
727
+ lastUsedAt: number | null;
725
728
  relationship: "owner" | "self" | "member";
726
- accountId: string;
727
729
  account: {
728
730
  username: string;
729
731
  id: string;
@@ -733,12 +735,11 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
733
735
  };
734
736
  onDevice: boolean;
735
737
  available: boolean;
736
- active: boolean;
737
- lastUsedAt: number | null;
738
738
  }[];
739
739
  }>, "many">;
740
740
  updatedAt: z.ZodNumber;
741
741
  }, "strip", z.ZodTypeAny, {
742
+ updatedAt: number;
742
743
  deviceId: string;
743
744
  revision: number;
744
745
  activeContextId: string | null;
@@ -751,13 +752,15 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
751
752
  name?: import("./userResponse").UserNameResponse | undefined;
752
753
  avatar?: string | null | undefined;
753
754
  };
754
- userId: string;
755
755
  authuser: number;
756
+ userId: string;
756
757
  contexts: {
757
- kind: "personal" | "organization" | "project" | "bot" | "channel";
758
+ active: boolean;
759
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
760
+ accountId: string;
758
761
  id: string;
762
+ lastUsedAt: number | null;
759
763
  relationship: "owner" | "self" | "member";
760
- accountId: string;
761
764
  account: {
762
765
  username: string;
763
766
  id: string;
@@ -767,12 +770,10 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
767
770
  };
768
771
  onDevice: boolean;
769
772
  available: boolean;
770
- active: boolean;
771
- lastUsedAt: number | null;
772
773
  }[];
773
774
  }[];
774
- updatedAt: number;
775
775
  }, {
776
+ updatedAt: number;
776
777
  deviceId: string;
777
778
  revision: number;
778
779
  activeContextId: string | null;
@@ -785,13 +786,15 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
785
786
  name?: import("./userResponse").UserNameResponse | undefined;
786
787
  avatar?: string | null | undefined;
787
788
  };
788
- userId: string;
789
789
  authuser: number;
790
+ userId: string;
790
791
  contexts: {
791
- kind: "personal" | "organization" | "project" | "bot" | "channel";
792
+ active: boolean;
793
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
794
+ accountId: string;
792
795
  id: string;
796
+ lastUsedAt: number | null;
793
797
  relationship: "owner" | "self" | "member";
794
- accountId: string;
795
798
  account: {
796
799
  username: string;
797
800
  id: string;
@@ -801,11 +804,8 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
801
804
  };
802
805
  onDevice: boolean;
803
806
  available: boolean;
804
- active: boolean;
805
- lastUsedAt: number | null;
806
807
  }[];
807
808
  }[];
808
- updatedAt: number;
809
809
  }>;
810
810
  activeToken: z.ZodNullable<z.ZodObject<{
811
811
  accessToken: z.ZodString;
@@ -818,7 +818,12 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
818
818
  accessToken: string;
819
819
  }>>;
820
820
  }, "strip", z.ZodTypeAny, {
821
+ activeToken: {
822
+ expiresAt: string;
823
+ accessToken: string;
824
+ } | null;
821
825
  directory: {
826
+ updatedAt: number;
822
827
  deviceId: string;
823
828
  revision: number;
824
829
  activeContextId: string | null;
@@ -831,13 +836,15 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
831
836
  name?: import("./userResponse").UserNameResponse | undefined;
832
837
  avatar?: string | null | undefined;
833
838
  };
834
- userId: string;
835
839
  authuser: number;
840
+ userId: string;
836
841
  contexts: {
837
- kind: "personal" | "organization" | "project" | "bot" | "channel";
842
+ active: boolean;
843
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
844
+ accountId: string;
838
845
  id: string;
846
+ lastUsedAt: number | null;
839
847
  relationship: "owner" | "self" | "member";
840
- accountId: string;
841
848
  account: {
842
849
  username: string;
843
850
  id: string;
@@ -847,18 +854,16 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
847
854
  };
848
855
  onDevice: boolean;
849
856
  available: boolean;
850
- active: boolean;
851
- lastUsedAt: number | null;
852
857
  }[];
853
858
  }[];
854
- updatedAt: number;
855
859
  };
860
+ }, {
856
861
  activeToken: {
857
862
  expiresAt: string;
858
863
  accessToken: string;
859
864
  } | null;
860
- }, {
861
865
  directory: {
866
+ updatedAt: number;
862
867
  deviceId: string;
863
868
  revision: number;
864
869
  activeContextId: string | null;
@@ -871,13 +876,15 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
871
876
  name?: import("./userResponse").UserNameResponse | undefined;
872
877
  avatar?: string | null | undefined;
873
878
  };
874
- userId: string;
875
879
  authuser: number;
880
+ userId: string;
876
881
  contexts: {
877
- kind: "personal" | "organization" | "project" | "bot" | "channel";
882
+ active: boolean;
883
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
884
+ accountId: string;
878
885
  id: string;
886
+ lastUsedAt: number | null;
879
887
  relationship: "owner" | "self" | "member";
880
- accountId: string;
881
888
  account: {
882
889
  username: string;
883
890
  id: string;
@@ -887,16 +894,9 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
887
894
  };
888
895
  onDevice: boolean;
889
896
  available: boolean;
890
- active: boolean;
891
- lastUsedAt: number | null;
892
897
  }[];
893
898
  }[];
894
- updatedAt: number;
895
899
  };
896
- activeToken: {
897
- expiresAt: string;
898
- accessToken: string;
899
- } | null;
900
900
  }>;
901
901
  /**
902
902
  * Response of the CONTEXT-aware removals — `POST /session/device/signout` with
@@ -989,10 +989,12 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
989
989
  active: z.ZodBoolean;
990
990
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
991
991
  }, "strip", z.ZodTypeAny, {
992
- kind: "personal" | "organization" | "project" | "bot" | "channel";
992
+ active: boolean;
993
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
994
+ accountId: string;
993
995
  id: string;
996
+ lastUsedAt: number | null;
994
997
  relationship: "owner" | "self" | "member";
995
- accountId: string;
996
998
  account: {
997
999
  username: string;
998
1000
  id: string;
@@ -1002,13 +1004,13 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1002
1004
  };
1003
1005
  onDevice: boolean;
1004
1006
  available: boolean;
1005
- active: boolean;
1006
- lastUsedAt: number | null;
1007
1007
  }, {
1008
- kind: "personal" | "organization" | "project" | "bot" | "channel";
1008
+ active: boolean;
1009
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
1010
+ accountId: string;
1009
1011
  id: string;
1012
+ lastUsedAt: number | null;
1010
1013
  relationship: "owner" | "self" | "member";
1011
- accountId: string;
1012
1014
  account: {
1013
1015
  username: string;
1014
1016
  id: string;
@@ -1018,8 +1020,6 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1018
1020
  };
1019
1021
  onDevice: boolean;
1020
1022
  available: boolean;
1021
- active: boolean;
1022
- lastUsedAt: number | null;
1023
1023
  }>, "many">;
1024
1024
  }, "strip", z.ZodTypeAny, {
1025
1025
  id: string;
@@ -1030,13 +1030,15 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1030
1030
  name?: import("./userResponse").UserNameResponse | undefined;
1031
1031
  avatar?: string | null | undefined;
1032
1032
  };
1033
- userId: string;
1034
1033
  authuser: number;
1034
+ userId: string;
1035
1035
  contexts: {
1036
- kind: "personal" | "organization" | "project" | "bot" | "channel";
1036
+ active: boolean;
1037
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
1038
+ accountId: string;
1037
1039
  id: string;
1040
+ lastUsedAt: number | null;
1038
1041
  relationship: "owner" | "self" | "member";
1039
- accountId: string;
1040
1042
  account: {
1041
1043
  username: string;
1042
1044
  id: string;
@@ -1046,8 +1048,6 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1046
1048
  };
1047
1049
  onDevice: boolean;
1048
1050
  available: boolean;
1049
- active: boolean;
1050
- lastUsedAt: number | null;
1051
1051
  }[];
1052
1052
  }, {
1053
1053
  id: string;
@@ -1058,13 +1058,15 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1058
1058
  name?: import("./userResponse").UserNameResponse | undefined;
1059
1059
  avatar?: string | null | undefined;
1060
1060
  };
1061
- userId: string;
1062
1061
  authuser: number;
1062
+ userId: string;
1063
1063
  contexts: {
1064
- kind: "personal" | "organization" | "project" | "bot" | "channel";
1064
+ active: boolean;
1065
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
1066
+ accountId: string;
1065
1067
  id: string;
1068
+ lastUsedAt: number | null;
1066
1069
  relationship: "owner" | "self" | "member";
1067
- accountId: string;
1068
1070
  account: {
1069
1071
  username: string;
1070
1072
  id: string;
@@ -1074,12 +1076,11 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1074
1076
  };
1075
1077
  onDevice: boolean;
1076
1078
  available: boolean;
1077
- active: boolean;
1078
- lastUsedAt: number | null;
1079
1079
  }[];
1080
1080
  }>, "many">;
1081
1081
  updatedAt: z.ZodNumber;
1082
1082
  }, "strip", z.ZodTypeAny, {
1083
+ updatedAt: number;
1083
1084
  deviceId: string;
1084
1085
  revision: number;
1085
1086
  activeContextId: string | null;
@@ -1092,13 +1093,15 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1092
1093
  name?: import("./userResponse").UserNameResponse | undefined;
1093
1094
  avatar?: string | null | undefined;
1094
1095
  };
1095
- userId: string;
1096
1096
  authuser: number;
1097
+ userId: string;
1097
1098
  contexts: {
1098
- kind: "personal" | "organization" | "project" | "bot" | "channel";
1099
+ active: boolean;
1100
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
1101
+ accountId: string;
1099
1102
  id: string;
1103
+ lastUsedAt: number | null;
1100
1104
  relationship: "owner" | "self" | "member";
1101
- accountId: string;
1102
1105
  account: {
1103
1106
  username: string;
1104
1107
  id: string;
@@ -1108,12 +1111,10 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1108
1111
  };
1109
1112
  onDevice: boolean;
1110
1113
  available: boolean;
1111
- active: boolean;
1112
- lastUsedAt: number | null;
1113
1114
  }[];
1114
1115
  }[];
1115
- updatedAt: number;
1116
1116
  }, {
1117
+ updatedAt: number;
1117
1118
  deviceId: string;
1118
1119
  revision: number;
1119
1120
  activeContextId: string | null;
@@ -1126,13 +1127,15 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1126
1127
  name?: import("./userResponse").UserNameResponse | undefined;
1127
1128
  avatar?: string | null | undefined;
1128
1129
  };
1129
- userId: string;
1130
1130
  authuser: number;
1131
+ userId: string;
1131
1132
  contexts: {
1132
- kind: "personal" | "organization" | "project" | "bot" | "channel";
1133
+ active: boolean;
1134
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
1135
+ accountId: string;
1133
1136
  id: string;
1137
+ lastUsedAt: number | null;
1134
1138
  relationship: "owner" | "self" | "member";
1135
- accountId: string;
1136
1139
  account: {
1137
1140
  username: string;
1138
1141
  id: string;
@@ -1142,11 +1145,8 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1142
1145
  };
1143
1146
  onDevice: boolean;
1144
1147
  available: boolean;
1145
- active: boolean;
1146
- lastUsedAt: number | null;
1147
1148
  }[];
1148
1149
  }[];
1149
- updatedAt: number;
1150
1150
  }>;
1151
1151
  state: z.ZodObject<{
1152
1152
  deviceId: z.ZodString;
@@ -1156,13 +1156,13 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1156
1156
  authuser: z.ZodNumber;
1157
1157
  operatedByUserId: z.ZodOptional<z.ZodString>;
1158
1158
  }, "strip", z.ZodTypeAny, {
1159
- sessionId: string;
1160
1159
  accountId: string;
1160
+ sessionId: string;
1161
1161
  authuser: number;
1162
1162
  operatedByUserId?: string | undefined;
1163
1163
  }, {
1164
- sessionId: string;
1165
1164
  accountId: string;
1165
+ sessionId: string;
1166
1166
  authuser: number;
1167
1167
  operatedByUserId?: string | undefined;
1168
1168
  }>, "many">;
@@ -1170,27 +1170,27 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1170
1170
  revision: z.ZodNumber;
1171
1171
  updatedAt: z.ZodNumber;
1172
1172
  }, "strip", z.ZodTypeAny, {
1173
- deviceId: string;
1174
- revision: number;
1175
1173
  updatedAt: number;
1174
+ activeAccountId: string | null;
1175
+ deviceId: string;
1176
1176
  accounts: {
1177
- sessionId: string;
1178
1177
  accountId: string;
1178
+ sessionId: string;
1179
1179
  authuser: number;
1180
1180
  operatedByUserId?: string | undefined;
1181
1181
  }[];
1182
- activeAccountId: string | null;
1183
- }, {
1184
- deviceId: string;
1185
1182
  revision: number;
1183
+ }, {
1186
1184
  updatedAt: number;
1185
+ activeAccountId: string | null;
1186
+ deviceId: string;
1187
1187
  accounts: {
1188
- sessionId: string;
1189
1188
  accountId: string;
1189
+ sessionId: string;
1190
1190
  authuser: number;
1191
1191
  operatedByUserId?: string | undefined;
1192
1192
  }[];
1193
- activeAccountId: string | null;
1193
+ revision: number;
1194
1194
  }>;
1195
1195
  activeToken: z.ZodNullable<z.ZodObject<{
1196
1196
  accessToken: z.ZodString;
@@ -1203,7 +1203,24 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1203
1203
  accessToken: string;
1204
1204
  }>>;
1205
1205
  }, "strip", z.ZodTypeAny, {
1206
+ state: {
1207
+ updatedAt: number;
1208
+ activeAccountId: string | null;
1209
+ deviceId: string;
1210
+ accounts: {
1211
+ accountId: string;
1212
+ sessionId: string;
1213
+ authuser: number;
1214
+ operatedByUserId?: string | undefined;
1215
+ }[];
1216
+ revision: number;
1217
+ };
1218
+ activeToken: {
1219
+ expiresAt: string;
1220
+ accessToken: string;
1221
+ } | null;
1206
1222
  directory: {
1223
+ updatedAt: number;
1207
1224
  deviceId: string;
1208
1225
  revision: number;
1209
1226
  activeContextId: string | null;
@@ -1216,13 +1233,15 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1216
1233
  name?: import("./userResponse").UserNameResponse | undefined;
1217
1234
  avatar?: string | null | undefined;
1218
1235
  };
1219
- userId: string;
1220
1236
  authuser: number;
1237
+ userId: string;
1221
1238
  contexts: {
1222
- kind: "personal" | "organization" | "project" | "bot" | "channel";
1239
+ active: boolean;
1240
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
1241
+ accountId: string;
1223
1242
  id: string;
1243
+ lastUsedAt: number | null;
1224
1244
  relationship: "owner" | "self" | "member";
1225
- accountId: string;
1226
1245
  account: {
1227
1246
  username: string;
1228
1247
  id: string;
@@ -1232,30 +1251,28 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1232
1251
  };
1233
1252
  onDevice: boolean;
1234
1253
  available: boolean;
1235
- active: boolean;
1236
- lastUsedAt: number | null;
1237
1254
  }[];
1238
1255
  }[];
1239
- updatedAt: number;
1240
1256
  };
1241
- activeToken: {
1242
- expiresAt: string;
1243
- accessToken: string;
1244
- } | null;
1257
+ }, {
1245
1258
  state: {
1246
- deviceId: string;
1247
- revision: number;
1248
1259
  updatedAt: number;
1260
+ activeAccountId: string | null;
1261
+ deviceId: string;
1249
1262
  accounts: {
1250
- sessionId: string;
1251
1263
  accountId: string;
1264
+ sessionId: string;
1252
1265
  authuser: number;
1253
1266
  operatedByUserId?: string | undefined;
1254
1267
  }[];
1255
- activeAccountId: string | null;
1268
+ revision: number;
1256
1269
  };
1257
- }, {
1270
+ activeToken: {
1271
+ expiresAt: string;
1272
+ accessToken: string;
1273
+ } | null;
1258
1274
  directory: {
1275
+ updatedAt: number;
1259
1276
  deviceId: string;
1260
1277
  revision: number;
1261
1278
  activeContextId: string | null;
@@ -1268,13 +1285,15 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1268
1285
  name?: import("./userResponse").UserNameResponse | undefined;
1269
1286
  avatar?: string | null | undefined;
1270
1287
  };
1271
- userId: string;
1272
1288
  authuser: number;
1289
+ userId: string;
1273
1290
  contexts: {
1274
- kind: "personal" | "organization" | "project" | "bot" | "channel";
1291
+ active: boolean;
1292
+ kind: "organization" | "bot" | "personal" | "project" | "channel";
1293
+ accountId: string;
1275
1294
  id: string;
1295
+ lastUsedAt: number | null;
1276
1296
  relationship: "owner" | "self" | "member";
1277
- accountId: string;
1278
1297
  account: {
1279
1298
  username: string;
1280
1299
  id: string;
@@ -1284,27 +1303,8 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1284
1303
  };
1285
1304
  onDevice: boolean;
1286
1305
  available: boolean;
1287
- active: boolean;
1288
- lastUsedAt: number | null;
1289
1306
  }[];
1290
1307
  }[];
1291
- updatedAt: number;
1292
- };
1293
- activeToken: {
1294
- expiresAt: string;
1295
- accessToken: string;
1296
- } | null;
1297
- state: {
1298
- deviceId: string;
1299
- revision: number;
1300
- updatedAt: number;
1301
- accounts: {
1302
- sessionId: string;
1303
- accountId: string;
1304
- authuser: number;
1305
- operatedByUserId?: string | undefined;
1306
- }[];
1307
- activeAccountId: string | null;
1308
1308
  };
1309
1309
  }>;
1310
1310
  export type DeviceContextRelationship = z.infer<typeof deviceContextRelationshipSchema>;