@oxy.so/contracts 1.5.0 → 2.1.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.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/federationInstanceFetch.js +44 -0
- package/dist/cjs/index.js +8 -22
- package/dist/cjs/linkedAccounts.js +34 -1
- package/dist/cjs/notifications.js +20 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/federationInstanceFetch.js +41 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/linkedAccounts.js +33 -0
- package/dist/esm/notifications.js +19 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/deviceDirectory.d.ts +46 -46
- package/dist/types/deviceSession.d.ts +2 -2
- package/dist/types/externalIdentity.d.ts +4 -4
- package/dist/types/federationInstanceFetch.d.ts +63 -0
- package/dist/types/index.d.ts +1 -2
- package/dist/types/inference/aliaModelRelease.d.ts +12 -12
- package/dist/types/inference/modelDocumentation.d.ts +16 -16
- package/dist/types/inference/providerConnection.d.ts +4 -4
- package/dist/types/linkedAccounts.d.ts +49 -16
- package/dist/types/notifications.d.ts +26 -0
- package/dist/types/oauth.d.ts +16 -16
- package/dist/types/sessionStatus.d.ts +6 -6
- package/dist/types/userResponse.d.ts +4 -4
- package/package.json +1 -1
- package/dist/cjs/browserHub.js +0 -215
- package/dist/esm/browserHub.js +0 -212
- package/dist/types/browserHub.d.ts +0 -856
|
@@ -132,6 +132,7 @@ export declare const deviceAccountContextSchema: z.ZodObject<{
|
|
|
132
132
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
133
133
|
accountId: string;
|
|
134
134
|
id: string;
|
|
135
|
+
active: boolean;
|
|
135
136
|
relationship: "owner" | "self" | "member";
|
|
136
137
|
account: {
|
|
137
138
|
username: string;
|
|
@@ -142,12 +143,12 @@ export declare const deviceAccountContextSchema: z.ZodObject<{
|
|
|
142
143
|
};
|
|
143
144
|
onDevice: boolean;
|
|
144
145
|
available: boolean;
|
|
145
|
-
active: boolean;
|
|
146
146
|
lastUsedAt: number | null;
|
|
147
147
|
}, {
|
|
148
148
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
149
149
|
accountId: string;
|
|
150
150
|
id: string;
|
|
151
|
+
active: boolean;
|
|
151
152
|
relationship: "owner" | "self" | "member";
|
|
152
153
|
account: {
|
|
153
154
|
username: string;
|
|
@@ -158,7 +159,6 @@ export declare const deviceAccountContextSchema: z.ZodObject<{
|
|
|
158
159
|
};
|
|
159
160
|
onDevice: boolean;
|
|
160
161
|
available: boolean;
|
|
161
|
-
active: boolean;
|
|
162
162
|
lastUsedAt: number | null;
|
|
163
163
|
}>;
|
|
164
164
|
/**
|
|
@@ -234,6 +234,7 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
234
234
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
235
235
|
accountId: string;
|
|
236
236
|
id: string;
|
|
237
|
+
active: boolean;
|
|
237
238
|
relationship: "owner" | "self" | "member";
|
|
238
239
|
account: {
|
|
239
240
|
username: string;
|
|
@@ -244,12 +245,12 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
244
245
|
};
|
|
245
246
|
onDevice: boolean;
|
|
246
247
|
available: boolean;
|
|
247
|
-
active: boolean;
|
|
248
248
|
lastUsedAt: number | null;
|
|
249
249
|
}, {
|
|
250
250
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
251
251
|
accountId: string;
|
|
252
252
|
id: string;
|
|
253
|
+
active: boolean;
|
|
253
254
|
relationship: "owner" | "self" | "member";
|
|
254
255
|
account: {
|
|
255
256
|
username: string;
|
|
@@ -260,12 +261,10 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
260
261
|
};
|
|
261
262
|
onDevice: boolean;
|
|
262
263
|
available: boolean;
|
|
263
|
-
active: boolean;
|
|
264
264
|
lastUsedAt: number | null;
|
|
265
265
|
}>, "many">;
|
|
266
266
|
}, "strip", z.ZodTypeAny, {
|
|
267
267
|
id: string;
|
|
268
|
-
authuser: number;
|
|
269
268
|
userId: string;
|
|
270
269
|
user: {
|
|
271
270
|
username: string;
|
|
@@ -274,10 +273,12 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
274
273
|
avatar?: string | null | undefined;
|
|
275
274
|
color?: string | null | undefined;
|
|
276
275
|
};
|
|
276
|
+
authuser: number;
|
|
277
277
|
contexts: {
|
|
278
278
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
279
279
|
accountId: string;
|
|
280
280
|
id: string;
|
|
281
|
+
active: boolean;
|
|
281
282
|
relationship: "owner" | "self" | "member";
|
|
282
283
|
account: {
|
|
283
284
|
username: string;
|
|
@@ -288,12 +289,10 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
288
289
|
};
|
|
289
290
|
onDevice: boolean;
|
|
290
291
|
available: boolean;
|
|
291
|
-
active: boolean;
|
|
292
292
|
lastUsedAt: number | null;
|
|
293
293
|
}[];
|
|
294
294
|
}, {
|
|
295
295
|
id: string;
|
|
296
|
-
authuser: number;
|
|
297
296
|
userId: string;
|
|
298
297
|
user: {
|
|
299
298
|
username: string;
|
|
@@ -302,10 +301,12 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
302
301
|
avatar?: string | null | undefined;
|
|
303
302
|
color?: string | null | undefined;
|
|
304
303
|
};
|
|
304
|
+
authuser: number;
|
|
305
305
|
contexts: {
|
|
306
306
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
307
307
|
accountId: string;
|
|
308
308
|
id: string;
|
|
309
|
+
active: boolean;
|
|
309
310
|
relationship: "owner" | "self" | "member";
|
|
310
311
|
account: {
|
|
311
312
|
username: string;
|
|
@@ -316,7 +317,6 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
316
317
|
};
|
|
317
318
|
onDevice: boolean;
|
|
318
319
|
available: boolean;
|
|
319
|
-
active: boolean;
|
|
320
320
|
lastUsedAt: number | null;
|
|
321
321
|
}[];
|
|
322
322
|
}>;
|
|
@@ -397,6 +397,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
397
397
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
398
398
|
accountId: string;
|
|
399
399
|
id: string;
|
|
400
|
+
active: boolean;
|
|
400
401
|
relationship: "owner" | "self" | "member";
|
|
401
402
|
account: {
|
|
402
403
|
username: string;
|
|
@@ -407,12 +408,12 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
407
408
|
};
|
|
408
409
|
onDevice: boolean;
|
|
409
410
|
available: boolean;
|
|
410
|
-
active: boolean;
|
|
411
411
|
lastUsedAt: number | null;
|
|
412
412
|
}, {
|
|
413
413
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
414
414
|
accountId: string;
|
|
415
415
|
id: string;
|
|
416
|
+
active: boolean;
|
|
416
417
|
relationship: "owner" | "self" | "member";
|
|
417
418
|
account: {
|
|
418
419
|
username: string;
|
|
@@ -423,12 +424,10 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
423
424
|
};
|
|
424
425
|
onDevice: boolean;
|
|
425
426
|
available: boolean;
|
|
426
|
-
active: boolean;
|
|
427
427
|
lastUsedAt: number | null;
|
|
428
428
|
}>, "many">;
|
|
429
429
|
}, "strip", z.ZodTypeAny, {
|
|
430
430
|
id: string;
|
|
431
|
-
authuser: number;
|
|
432
431
|
userId: string;
|
|
433
432
|
user: {
|
|
434
433
|
username: string;
|
|
@@ -437,10 +436,12 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
437
436
|
avatar?: string | null | undefined;
|
|
438
437
|
color?: string | null | undefined;
|
|
439
438
|
};
|
|
439
|
+
authuser: number;
|
|
440
440
|
contexts: {
|
|
441
441
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
442
442
|
accountId: string;
|
|
443
443
|
id: string;
|
|
444
|
+
active: boolean;
|
|
444
445
|
relationship: "owner" | "self" | "member";
|
|
445
446
|
account: {
|
|
446
447
|
username: string;
|
|
@@ -451,12 +452,10 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
451
452
|
};
|
|
452
453
|
onDevice: boolean;
|
|
453
454
|
available: boolean;
|
|
454
|
-
active: boolean;
|
|
455
455
|
lastUsedAt: number | null;
|
|
456
456
|
}[];
|
|
457
457
|
}, {
|
|
458
458
|
id: string;
|
|
459
|
-
authuser: number;
|
|
460
459
|
userId: string;
|
|
461
460
|
user: {
|
|
462
461
|
username: string;
|
|
@@ -465,10 +464,12 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
465
464
|
avatar?: string | null | undefined;
|
|
466
465
|
color?: string | null | undefined;
|
|
467
466
|
};
|
|
467
|
+
authuser: number;
|
|
468
468
|
contexts: {
|
|
469
469
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
470
470
|
accountId: string;
|
|
471
471
|
id: string;
|
|
472
|
+
active: boolean;
|
|
472
473
|
relationship: "owner" | "self" | "member";
|
|
473
474
|
account: {
|
|
474
475
|
username: string;
|
|
@@ -479,7 +480,6 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
479
480
|
};
|
|
480
481
|
onDevice: boolean;
|
|
481
482
|
available: boolean;
|
|
482
|
-
active: boolean;
|
|
483
483
|
lastUsedAt: number | null;
|
|
484
484
|
}[];
|
|
485
485
|
}>, "many">;
|
|
@@ -491,7 +491,6 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
491
491
|
activeContextId: string | null;
|
|
492
492
|
principals: {
|
|
493
493
|
id: string;
|
|
494
|
-
authuser: number;
|
|
495
494
|
userId: string;
|
|
496
495
|
user: {
|
|
497
496
|
username: string;
|
|
@@ -500,10 +499,12 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
500
499
|
avatar?: string | null | undefined;
|
|
501
500
|
color?: string | null | undefined;
|
|
502
501
|
};
|
|
502
|
+
authuser: number;
|
|
503
503
|
contexts: {
|
|
504
504
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
505
505
|
accountId: string;
|
|
506
506
|
id: string;
|
|
507
|
+
active: boolean;
|
|
507
508
|
relationship: "owner" | "self" | "member";
|
|
508
509
|
account: {
|
|
509
510
|
username: string;
|
|
@@ -514,7 +515,6 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
514
515
|
};
|
|
515
516
|
onDevice: boolean;
|
|
516
517
|
available: boolean;
|
|
517
|
-
active: boolean;
|
|
518
518
|
lastUsedAt: number | null;
|
|
519
519
|
}[];
|
|
520
520
|
}[];
|
|
@@ -525,7 +525,6 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
525
525
|
activeContextId: string | null;
|
|
526
526
|
principals: {
|
|
527
527
|
id: string;
|
|
528
|
-
authuser: number;
|
|
529
528
|
userId: string;
|
|
530
529
|
user: {
|
|
531
530
|
username: string;
|
|
@@ -534,10 +533,12 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
534
533
|
avatar?: string | null | undefined;
|
|
535
534
|
color?: string | null | undefined;
|
|
536
535
|
};
|
|
536
|
+
authuser: number;
|
|
537
537
|
contexts: {
|
|
538
538
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
539
539
|
accountId: string;
|
|
540
540
|
id: string;
|
|
541
|
+
active: boolean;
|
|
541
542
|
relationship: "owner" | "self" | "member";
|
|
542
543
|
account: {
|
|
543
544
|
username: string;
|
|
@@ -548,7 +549,6 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
548
549
|
};
|
|
549
550
|
onDevice: boolean;
|
|
550
551
|
available: boolean;
|
|
551
|
-
active: boolean;
|
|
552
552
|
lastUsedAt: number | null;
|
|
553
553
|
}[];
|
|
554
554
|
}[];
|
|
@@ -651,6 +651,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
651
651
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
652
652
|
accountId: string;
|
|
653
653
|
id: string;
|
|
654
|
+
active: boolean;
|
|
654
655
|
relationship: "owner" | "self" | "member";
|
|
655
656
|
account: {
|
|
656
657
|
username: string;
|
|
@@ -661,12 +662,12 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
661
662
|
};
|
|
662
663
|
onDevice: boolean;
|
|
663
664
|
available: boolean;
|
|
664
|
-
active: boolean;
|
|
665
665
|
lastUsedAt: number | null;
|
|
666
666
|
}, {
|
|
667
667
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
668
668
|
accountId: string;
|
|
669
669
|
id: string;
|
|
670
|
+
active: boolean;
|
|
670
671
|
relationship: "owner" | "self" | "member";
|
|
671
672
|
account: {
|
|
672
673
|
username: string;
|
|
@@ -677,12 +678,10 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
677
678
|
};
|
|
678
679
|
onDevice: boolean;
|
|
679
680
|
available: boolean;
|
|
680
|
-
active: boolean;
|
|
681
681
|
lastUsedAt: number | null;
|
|
682
682
|
}>, "many">;
|
|
683
683
|
}, "strip", z.ZodTypeAny, {
|
|
684
684
|
id: string;
|
|
685
|
-
authuser: number;
|
|
686
685
|
userId: string;
|
|
687
686
|
user: {
|
|
688
687
|
username: string;
|
|
@@ -691,10 +690,12 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
691
690
|
avatar?: string | null | undefined;
|
|
692
691
|
color?: string | null | undefined;
|
|
693
692
|
};
|
|
693
|
+
authuser: number;
|
|
694
694
|
contexts: {
|
|
695
695
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
696
696
|
accountId: string;
|
|
697
697
|
id: string;
|
|
698
|
+
active: boolean;
|
|
698
699
|
relationship: "owner" | "self" | "member";
|
|
699
700
|
account: {
|
|
700
701
|
username: string;
|
|
@@ -705,12 +706,10 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
705
706
|
};
|
|
706
707
|
onDevice: boolean;
|
|
707
708
|
available: boolean;
|
|
708
|
-
active: boolean;
|
|
709
709
|
lastUsedAt: number | null;
|
|
710
710
|
}[];
|
|
711
711
|
}, {
|
|
712
712
|
id: string;
|
|
713
|
-
authuser: number;
|
|
714
713
|
userId: string;
|
|
715
714
|
user: {
|
|
716
715
|
username: string;
|
|
@@ -719,10 +718,12 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
719
718
|
avatar?: string | null | undefined;
|
|
720
719
|
color?: string | null | undefined;
|
|
721
720
|
};
|
|
721
|
+
authuser: number;
|
|
722
722
|
contexts: {
|
|
723
723
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
724
724
|
accountId: string;
|
|
725
725
|
id: string;
|
|
726
|
+
active: boolean;
|
|
726
727
|
relationship: "owner" | "self" | "member";
|
|
727
728
|
account: {
|
|
728
729
|
username: string;
|
|
@@ -733,7 +734,6 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
733
734
|
};
|
|
734
735
|
onDevice: boolean;
|
|
735
736
|
available: boolean;
|
|
736
|
-
active: boolean;
|
|
737
737
|
lastUsedAt: number | null;
|
|
738
738
|
}[];
|
|
739
739
|
}>, "many">;
|
|
@@ -745,7 +745,6 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
745
745
|
activeContextId: string | null;
|
|
746
746
|
principals: {
|
|
747
747
|
id: string;
|
|
748
|
-
authuser: number;
|
|
749
748
|
userId: string;
|
|
750
749
|
user: {
|
|
751
750
|
username: string;
|
|
@@ -754,10 +753,12 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
754
753
|
avatar?: string | null | undefined;
|
|
755
754
|
color?: string | null | undefined;
|
|
756
755
|
};
|
|
756
|
+
authuser: number;
|
|
757
757
|
contexts: {
|
|
758
758
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
759
759
|
accountId: string;
|
|
760
760
|
id: string;
|
|
761
|
+
active: boolean;
|
|
761
762
|
relationship: "owner" | "self" | "member";
|
|
762
763
|
account: {
|
|
763
764
|
username: string;
|
|
@@ -768,7 +769,6 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
768
769
|
};
|
|
769
770
|
onDevice: boolean;
|
|
770
771
|
available: boolean;
|
|
771
|
-
active: boolean;
|
|
772
772
|
lastUsedAt: number | null;
|
|
773
773
|
}[];
|
|
774
774
|
}[];
|
|
@@ -779,7 +779,6 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
779
779
|
activeContextId: string | null;
|
|
780
780
|
principals: {
|
|
781
781
|
id: string;
|
|
782
|
-
authuser: number;
|
|
783
782
|
userId: string;
|
|
784
783
|
user: {
|
|
785
784
|
username: string;
|
|
@@ -788,10 +787,12 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
788
787
|
avatar?: string | null | undefined;
|
|
789
788
|
color?: string | null | undefined;
|
|
790
789
|
};
|
|
790
|
+
authuser: number;
|
|
791
791
|
contexts: {
|
|
792
792
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
793
793
|
accountId: string;
|
|
794
794
|
id: string;
|
|
795
|
+
active: boolean;
|
|
795
796
|
relationship: "owner" | "self" | "member";
|
|
796
797
|
account: {
|
|
797
798
|
username: string;
|
|
@@ -802,7 +803,6 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
802
803
|
};
|
|
803
804
|
onDevice: boolean;
|
|
804
805
|
available: boolean;
|
|
805
|
-
active: boolean;
|
|
806
806
|
lastUsedAt: number | null;
|
|
807
807
|
}[];
|
|
808
808
|
}[];
|
|
@@ -829,7 +829,6 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
829
829
|
activeContextId: string | null;
|
|
830
830
|
principals: {
|
|
831
831
|
id: string;
|
|
832
|
-
authuser: number;
|
|
833
832
|
userId: string;
|
|
834
833
|
user: {
|
|
835
834
|
username: string;
|
|
@@ -838,10 +837,12 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
838
837
|
avatar?: string | null | undefined;
|
|
839
838
|
color?: string | null | undefined;
|
|
840
839
|
};
|
|
840
|
+
authuser: number;
|
|
841
841
|
contexts: {
|
|
842
842
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
843
843
|
accountId: string;
|
|
844
844
|
id: string;
|
|
845
|
+
active: boolean;
|
|
845
846
|
relationship: "owner" | "self" | "member";
|
|
846
847
|
account: {
|
|
847
848
|
username: string;
|
|
@@ -852,7 +853,6 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
852
853
|
};
|
|
853
854
|
onDevice: boolean;
|
|
854
855
|
available: boolean;
|
|
855
|
-
active: boolean;
|
|
856
856
|
lastUsedAt: number | null;
|
|
857
857
|
}[];
|
|
858
858
|
}[];
|
|
@@ -869,7 +869,6 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
869
869
|
activeContextId: string | null;
|
|
870
870
|
principals: {
|
|
871
871
|
id: string;
|
|
872
|
-
authuser: number;
|
|
873
872
|
userId: string;
|
|
874
873
|
user: {
|
|
875
874
|
username: string;
|
|
@@ -878,10 +877,12 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
878
877
|
avatar?: string | null | undefined;
|
|
879
878
|
color?: string | null | undefined;
|
|
880
879
|
};
|
|
880
|
+
authuser: number;
|
|
881
881
|
contexts: {
|
|
882
882
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
883
883
|
accountId: string;
|
|
884
884
|
id: string;
|
|
885
|
+
active: boolean;
|
|
885
886
|
relationship: "owner" | "self" | "member";
|
|
886
887
|
account: {
|
|
887
888
|
username: string;
|
|
@@ -892,7 +893,6 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
892
893
|
};
|
|
893
894
|
onDevice: boolean;
|
|
894
895
|
available: boolean;
|
|
895
|
-
active: boolean;
|
|
896
896
|
lastUsedAt: number | null;
|
|
897
897
|
}[];
|
|
898
898
|
}[];
|
|
@@ -992,6 +992,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
992
992
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
993
993
|
accountId: string;
|
|
994
994
|
id: string;
|
|
995
|
+
active: boolean;
|
|
995
996
|
relationship: "owner" | "self" | "member";
|
|
996
997
|
account: {
|
|
997
998
|
username: string;
|
|
@@ -1002,12 +1003,12 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1002
1003
|
};
|
|
1003
1004
|
onDevice: boolean;
|
|
1004
1005
|
available: boolean;
|
|
1005
|
-
active: boolean;
|
|
1006
1006
|
lastUsedAt: number | null;
|
|
1007
1007
|
}, {
|
|
1008
1008
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
1009
1009
|
accountId: string;
|
|
1010
1010
|
id: string;
|
|
1011
|
+
active: boolean;
|
|
1011
1012
|
relationship: "owner" | "self" | "member";
|
|
1012
1013
|
account: {
|
|
1013
1014
|
username: string;
|
|
@@ -1018,12 +1019,10 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1018
1019
|
};
|
|
1019
1020
|
onDevice: boolean;
|
|
1020
1021
|
available: boolean;
|
|
1021
|
-
active: boolean;
|
|
1022
1022
|
lastUsedAt: number | null;
|
|
1023
1023
|
}>, "many">;
|
|
1024
1024
|
}, "strip", z.ZodTypeAny, {
|
|
1025
1025
|
id: string;
|
|
1026
|
-
authuser: number;
|
|
1027
1026
|
userId: string;
|
|
1028
1027
|
user: {
|
|
1029
1028
|
username: string;
|
|
@@ -1032,10 +1031,12 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1032
1031
|
avatar?: string | null | undefined;
|
|
1033
1032
|
color?: string | null | undefined;
|
|
1034
1033
|
};
|
|
1034
|
+
authuser: number;
|
|
1035
1035
|
contexts: {
|
|
1036
1036
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
1037
1037
|
accountId: string;
|
|
1038
1038
|
id: string;
|
|
1039
|
+
active: boolean;
|
|
1039
1040
|
relationship: "owner" | "self" | "member";
|
|
1040
1041
|
account: {
|
|
1041
1042
|
username: string;
|
|
@@ -1046,12 +1047,10 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1046
1047
|
};
|
|
1047
1048
|
onDevice: boolean;
|
|
1048
1049
|
available: boolean;
|
|
1049
|
-
active: boolean;
|
|
1050
1050
|
lastUsedAt: number | null;
|
|
1051
1051
|
}[];
|
|
1052
1052
|
}, {
|
|
1053
1053
|
id: string;
|
|
1054
|
-
authuser: number;
|
|
1055
1054
|
userId: string;
|
|
1056
1055
|
user: {
|
|
1057
1056
|
username: string;
|
|
@@ -1060,10 +1059,12 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1060
1059
|
avatar?: string | null | undefined;
|
|
1061
1060
|
color?: string | null | undefined;
|
|
1062
1061
|
};
|
|
1062
|
+
authuser: number;
|
|
1063
1063
|
contexts: {
|
|
1064
1064
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
1065
1065
|
accountId: string;
|
|
1066
1066
|
id: string;
|
|
1067
|
+
active: boolean;
|
|
1067
1068
|
relationship: "owner" | "self" | "member";
|
|
1068
1069
|
account: {
|
|
1069
1070
|
username: string;
|
|
@@ -1074,7 +1075,6 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1074
1075
|
};
|
|
1075
1076
|
onDevice: boolean;
|
|
1076
1077
|
available: boolean;
|
|
1077
|
-
active: boolean;
|
|
1078
1078
|
lastUsedAt: number | null;
|
|
1079
1079
|
}[];
|
|
1080
1080
|
}>, "many">;
|
|
@@ -1086,7 +1086,6 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1086
1086
|
activeContextId: string | null;
|
|
1087
1087
|
principals: {
|
|
1088
1088
|
id: string;
|
|
1089
|
-
authuser: number;
|
|
1090
1089
|
userId: string;
|
|
1091
1090
|
user: {
|
|
1092
1091
|
username: string;
|
|
@@ -1095,10 +1094,12 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1095
1094
|
avatar?: string | null | undefined;
|
|
1096
1095
|
color?: string | null | undefined;
|
|
1097
1096
|
};
|
|
1097
|
+
authuser: number;
|
|
1098
1098
|
contexts: {
|
|
1099
1099
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
1100
1100
|
accountId: string;
|
|
1101
1101
|
id: string;
|
|
1102
|
+
active: boolean;
|
|
1102
1103
|
relationship: "owner" | "self" | "member";
|
|
1103
1104
|
account: {
|
|
1104
1105
|
username: string;
|
|
@@ -1109,7 +1110,6 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1109
1110
|
};
|
|
1110
1111
|
onDevice: boolean;
|
|
1111
1112
|
available: boolean;
|
|
1112
|
-
active: boolean;
|
|
1113
1113
|
lastUsedAt: number | null;
|
|
1114
1114
|
}[];
|
|
1115
1115
|
}[];
|
|
@@ -1120,7 +1120,6 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1120
1120
|
activeContextId: string | null;
|
|
1121
1121
|
principals: {
|
|
1122
1122
|
id: string;
|
|
1123
|
-
authuser: number;
|
|
1124
1123
|
userId: string;
|
|
1125
1124
|
user: {
|
|
1126
1125
|
username: string;
|
|
@@ -1129,10 +1128,12 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1129
1128
|
avatar?: string | null | undefined;
|
|
1130
1129
|
color?: string | null | undefined;
|
|
1131
1130
|
};
|
|
1131
|
+
authuser: number;
|
|
1132
1132
|
contexts: {
|
|
1133
1133
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
1134
1134
|
accountId: string;
|
|
1135
1135
|
id: string;
|
|
1136
|
+
active: boolean;
|
|
1136
1137
|
relationship: "owner" | "self" | "member";
|
|
1137
1138
|
account: {
|
|
1138
1139
|
username: string;
|
|
@@ -1143,7 +1144,6 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1143
1144
|
};
|
|
1144
1145
|
onDevice: boolean;
|
|
1145
1146
|
available: boolean;
|
|
1146
|
-
active: boolean;
|
|
1147
1147
|
lastUsedAt: number | null;
|
|
1148
1148
|
}[];
|
|
1149
1149
|
}[];
|
|
@@ -1226,7 +1226,6 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1226
1226
|
activeContextId: string | null;
|
|
1227
1227
|
principals: {
|
|
1228
1228
|
id: string;
|
|
1229
|
-
authuser: number;
|
|
1230
1229
|
userId: string;
|
|
1231
1230
|
user: {
|
|
1232
1231
|
username: string;
|
|
@@ -1235,10 +1234,12 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1235
1234
|
avatar?: string | null | undefined;
|
|
1236
1235
|
color?: string | null | undefined;
|
|
1237
1236
|
};
|
|
1237
|
+
authuser: number;
|
|
1238
1238
|
contexts: {
|
|
1239
1239
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
1240
1240
|
accountId: string;
|
|
1241
1241
|
id: string;
|
|
1242
|
+
active: boolean;
|
|
1242
1243
|
relationship: "owner" | "self" | "member";
|
|
1243
1244
|
account: {
|
|
1244
1245
|
username: string;
|
|
@@ -1249,7 +1250,6 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1249
1250
|
};
|
|
1250
1251
|
onDevice: boolean;
|
|
1251
1252
|
available: boolean;
|
|
1252
|
-
active: boolean;
|
|
1253
1253
|
lastUsedAt: number | null;
|
|
1254
1254
|
}[];
|
|
1255
1255
|
}[];
|
|
@@ -1278,7 +1278,6 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1278
1278
|
activeContextId: string | null;
|
|
1279
1279
|
principals: {
|
|
1280
1280
|
id: string;
|
|
1281
|
-
authuser: number;
|
|
1282
1281
|
userId: string;
|
|
1283
1282
|
user: {
|
|
1284
1283
|
username: string;
|
|
@@ -1287,10 +1286,12 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1287
1286
|
avatar?: string | null | undefined;
|
|
1288
1287
|
color?: string | null | undefined;
|
|
1289
1288
|
};
|
|
1289
|
+
authuser: number;
|
|
1290
1290
|
contexts: {
|
|
1291
1291
|
kind: "bot" | "personal" | "organization" | "project" | "channel";
|
|
1292
1292
|
accountId: string;
|
|
1293
1293
|
id: string;
|
|
1294
|
+
active: boolean;
|
|
1294
1295
|
relationship: "owner" | "self" | "member";
|
|
1295
1296
|
account: {
|
|
1296
1297
|
username: string;
|
|
@@ -1301,7 +1302,6 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1301
1302
|
};
|
|
1302
1303
|
onDevice: boolean;
|
|
1303
1304
|
available: boolean;
|
|
1304
|
-
active: boolean;
|
|
1305
1305
|
lastUsedAt: number | null;
|
|
1306
1306
|
}[];
|
|
1307
1307
|
}[];
|
|
@@ -315,12 +315,12 @@ export declare const sessionAccountsChangedEventSchema: z.ZodObject<{
|
|
|
315
315
|
reason: z.ZodEnum<["login", "add", "switch", "signout", "revoke"]>;
|
|
316
316
|
}, "strip", z.ZodTypeAny, {
|
|
317
317
|
reason: "login" | "add" | "switch" | "signout" | "revoke";
|
|
318
|
-
revision: number;
|
|
319
318
|
userId: string;
|
|
319
|
+
revision: number;
|
|
320
320
|
}, {
|
|
321
321
|
reason: "login" | "add" | "switch" | "signout" | "revoke";
|
|
322
|
-
revision: number;
|
|
323
322
|
userId: string;
|
|
323
|
+
revision: number;
|
|
324
324
|
}>;
|
|
325
325
|
export type SessionAccountsChangedReason = z.infer<typeof sessionAccountsChangedReasonSchema>;
|
|
326
326
|
export type SessionAccountsChangedEvent = z.infer<typeof sessionAccountsChangedEventSchema>;
|
|
@@ -27,25 +27,25 @@ export declare const resolveExternalIdentityRequestSchema: z.ZodEffects<z.ZodObj
|
|
|
27
27
|
transportAcct: z.ZodOptional<z.ZodString>;
|
|
28
28
|
protocol: z.ZodOptional<z.ZodEnum<["activitypub", "atproto"]>>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
handle?: string | undefined;
|
|
31
30
|
protocol?: "activitypub" | "atproto" | undefined;
|
|
32
31
|
actorUri?: string | undefined;
|
|
33
32
|
transportAcct?: string | undefined;
|
|
34
|
-
}, {
|
|
35
33
|
handle?: string | undefined;
|
|
34
|
+
}, {
|
|
36
35
|
protocol?: "activitypub" | "atproto" | undefined;
|
|
37
36
|
actorUri?: string | undefined;
|
|
38
37
|
transportAcct?: string | undefined;
|
|
39
|
-
}>, {
|
|
40
38
|
handle?: string | undefined;
|
|
39
|
+
}>, {
|
|
41
40
|
protocol?: "activitypub" | "atproto" | undefined;
|
|
42
41
|
actorUri?: string | undefined;
|
|
43
42
|
transportAcct?: string | undefined;
|
|
44
|
-
}, {
|
|
45
43
|
handle?: string | undefined;
|
|
44
|
+
}, {
|
|
46
45
|
protocol?: "activitypub" | "atproto" | undefined;
|
|
47
46
|
actorUri?: string | undefined;
|
|
48
47
|
transportAcct?: string | undefined;
|
|
48
|
+
handle?: string | undefined;
|
|
49
49
|
}>;
|
|
50
50
|
export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
51
51
|
user: z.ZodObject<{
|