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