@oxy.so/contracts 4.12.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 +38 -4
- package/dist/cjs/avatarCharacter.js +120 -0
- package/dist/cjs/index.js +25 -14
- package/dist/cjs/organizations.js +210 -0
- package/dist/cjs/recommendations.js +3 -0
- package/dist/cjs/safety.js +15 -0
- package/dist/cjs/userResponse.js +7 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountGraph.js +36 -2
- package/dist/esm/avatarCharacter.js +115 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/organizations.js +207 -0
- package/dist/esm/recommendations.js +3 -0
- package/dist/esm/safety.js +12 -0
- package/dist/esm/userResponse.js +7 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +57 -14
- package/dist/types/accountSubject.d.ts +4 -4
- package/dist/types/avatarCharacter.d.ts +57 -0
- package/dist/types/deviceDirectory.d.ts +246 -246
- package/dist/types/externalIdentity.d.ts +62 -55
- package/dist/types/index.d.ts +5 -1
- package/dist/types/organizations.d.ts +1088 -0
- package/dist/types/recommendations.d.ts +40 -28
- package/dist/types/safety.d.ts +24 -0
- package/dist/types/userResponse.d.ts +200 -102
- package/package.json +1 -1
|
@@ -55,15 +55,15 @@ export declare const deviceDirectoryProfileSchema: z.ZodObject<{
|
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
56
|
username: string;
|
|
57
57
|
id: string;
|
|
58
|
+
color?: string | null | undefined;
|
|
58
59
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
59
60
|
avatar?: string | null | undefined;
|
|
60
|
-
color?: string | null | undefined;
|
|
61
61
|
}, {
|
|
62
62
|
username: string;
|
|
63
63
|
id: string;
|
|
64
|
+
color?: string | null | undefined;
|
|
64
65
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
65
66
|
avatar?: string | null | undefined;
|
|
66
|
-
color?: string | null | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
/**
|
|
69
69
|
* One `principal acting as account` pair — the globally switchable unit.
|
|
@@ -114,52 +114,52 @@ export declare const deviceAccountContextSchema: z.ZodObject<{
|
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
username: string;
|
|
116
116
|
id: string;
|
|
117
|
+
color?: string | null | undefined;
|
|
117
118
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
118
119
|
avatar?: string | null | undefined;
|
|
119
|
-
color?: string | null | undefined;
|
|
120
120
|
}, {
|
|
121
121
|
username: string;
|
|
122
122
|
id: string;
|
|
123
|
+
color?: string | null | undefined;
|
|
123
124
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
124
125
|
avatar?: string | null | undefined;
|
|
125
|
-
color?: string | null | undefined;
|
|
126
126
|
}>;
|
|
127
127
|
onDevice: z.ZodBoolean;
|
|
128
128
|
available: z.ZodBoolean;
|
|
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;
|
|
139
|
+
color?: string | null | undefined;
|
|
141
140
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
142
141
|
avatar?: string | null | undefined;
|
|
143
|
-
color?: string | null | undefined;
|
|
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;
|
|
155
|
+
color?: string | null | undefined;
|
|
157
156
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
158
157
|
avatar?: string | null | undefined;
|
|
159
|
-
color?: string | null | undefined;
|
|
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.
|
|
@@ -187,15 +187,15 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
188
|
username: string;
|
|
189
189
|
id: string;
|
|
190
|
+
color?: string | null | undefined;
|
|
190
191
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
191
192
|
avatar?: string | null | undefined;
|
|
192
|
-
color?: string | null | undefined;
|
|
193
193
|
}, {
|
|
194
194
|
username: string;
|
|
195
195
|
id: string;
|
|
196
|
+
color?: string | null | undefined;
|
|
196
197
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
197
198
|
avatar?: string | null | undefined;
|
|
198
|
-
color?: string | null | undefined;
|
|
199
199
|
}>;
|
|
200
200
|
contexts: z.ZodArray<z.ZodObject<{
|
|
201
201
|
id: z.ZodString;
|
|
@@ -216,108 +216,108 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
216
216
|
}, "strip", z.ZodTypeAny, {
|
|
217
217
|
username: string;
|
|
218
218
|
id: string;
|
|
219
|
+
color?: string | null | undefined;
|
|
219
220
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
220
221
|
avatar?: string | null | undefined;
|
|
221
|
-
color?: string | null | undefined;
|
|
222
222
|
}, {
|
|
223
223
|
username: string;
|
|
224
224
|
id: string;
|
|
225
|
+
color?: string | null | undefined;
|
|
225
226
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
226
227
|
avatar?: string | null | undefined;
|
|
227
|
-
color?: string | null | undefined;
|
|
228
228
|
}>;
|
|
229
229
|
onDevice: z.ZodBoolean;
|
|
230
230
|
available: z.ZodBoolean;
|
|
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;
|
|
241
|
+
color?: string | null | undefined;
|
|
243
242
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
244
243
|
avatar?: string | null | undefined;
|
|
245
|
-
color?: string | null | undefined;
|
|
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;
|
|
257
|
+
color?: string | null | undefined;
|
|
259
258
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
260
259
|
avatar?: string | null | undefined;
|
|
261
|
-
color?: string | null | undefined;
|
|
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;
|
|
268
268
|
user: {
|
|
269
269
|
username: string;
|
|
270
270
|
id: string;
|
|
271
|
+
color?: string | null | undefined;
|
|
271
272
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
272
273
|
avatar?: string | null | undefined;
|
|
273
|
-
color?: 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;
|
|
285
|
+
color?: string | null | undefined;
|
|
287
286
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
288
287
|
avatar?: string | null | undefined;
|
|
289
|
-
color?: string | null | undefined;
|
|
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;
|
|
296
296
|
user: {
|
|
297
297
|
username: string;
|
|
298
298
|
id: string;
|
|
299
|
+
color?: string | null | undefined;
|
|
299
300
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
300
301
|
avatar?: string | null | undefined;
|
|
301
|
-
color?: 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;
|
|
313
|
+
color?: string | null | undefined;
|
|
315
314
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
316
315
|
avatar?: string | null | undefined;
|
|
317
|
-
color?: string | null | undefined;
|
|
318
316
|
};
|
|
319
317
|
onDevice: boolean;
|
|
320
318
|
available: boolean;
|
|
319
|
+
active: boolean;
|
|
320
|
+
lastUsedAt: number | null;
|
|
321
321
|
}[];
|
|
322
322
|
}>;
|
|
323
323
|
/**
|
|
@@ -350,15 +350,15 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
351
|
username: string;
|
|
352
352
|
id: string;
|
|
353
|
+
color?: string | null | undefined;
|
|
353
354
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
354
355
|
avatar?: string | null | undefined;
|
|
355
|
-
color?: string | null | undefined;
|
|
356
356
|
}, {
|
|
357
357
|
username: string;
|
|
358
358
|
id: string;
|
|
359
|
+
color?: string | null | undefined;
|
|
359
360
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
360
361
|
avatar?: string | null | undefined;
|
|
361
|
-
color?: string | null | undefined;
|
|
362
362
|
}>;
|
|
363
363
|
contexts: z.ZodArray<z.ZodObject<{
|
|
364
364
|
id: z.ZodString;
|
|
@@ -379,113 +379,112 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
379
379
|
}, "strip", z.ZodTypeAny, {
|
|
380
380
|
username: string;
|
|
381
381
|
id: string;
|
|
382
|
+
color?: string | null | undefined;
|
|
382
383
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
383
384
|
avatar?: string | null | undefined;
|
|
384
|
-
color?: string | null | undefined;
|
|
385
385
|
}, {
|
|
386
386
|
username: string;
|
|
387
387
|
id: string;
|
|
388
|
+
color?: string | null | undefined;
|
|
388
389
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
389
390
|
avatar?: string | null | undefined;
|
|
390
|
-
color?: string | null | undefined;
|
|
391
391
|
}>;
|
|
392
392
|
onDevice: z.ZodBoolean;
|
|
393
393
|
available: z.ZodBoolean;
|
|
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;
|
|
404
|
+
color?: string | null | undefined;
|
|
406
405
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
407
406
|
avatar?: string | null | undefined;
|
|
408
|
-
color?: string | null | undefined;
|
|
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;
|
|
420
|
+
color?: string | null | undefined;
|
|
422
421
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
423
422
|
avatar?: string | null | undefined;
|
|
424
|
-
color?: string | null | undefined;
|
|
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;
|
|
431
431
|
user: {
|
|
432
432
|
username: string;
|
|
433
433
|
id: string;
|
|
434
|
+
color?: string | null | undefined;
|
|
434
435
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
435
436
|
avatar?: string | null | undefined;
|
|
436
|
-
color?: 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;
|
|
448
|
+
color?: string | null | undefined;
|
|
450
449
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
451
450
|
avatar?: string | null | undefined;
|
|
452
|
-
color?: string | null | undefined;
|
|
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;
|
|
459
459
|
user: {
|
|
460
460
|
username: string;
|
|
461
461
|
id: string;
|
|
462
|
+
color?: string | null | undefined;
|
|
462
463
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
463
464
|
avatar?: string | null | undefined;
|
|
464
|
-
color?: 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;
|
|
476
|
+
color?: string | null | undefined;
|
|
478
477
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
479
478
|
avatar?: string | null | undefined;
|
|
480
|
-
color?: string | null | undefined;
|
|
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;
|
|
@@ -494,32 +493,32 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
494
493
|
user: {
|
|
495
494
|
username: string;
|
|
496
495
|
id: string;
|
|
496
|
+
color?: string | null | undefined;
|
|
497
497
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
498
498
|
avatar?: string | null | undefined;
|
|
499
|
-
color?: 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;
|
|
510
|
+
color?: string | null | undefined;
|
|
513
511
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
514
512
|
avatar?: string | null | undefined;
|
|
515
|
-
color?: string | null | undefined;
|
|
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;
|
|
@@ -528,30 +527,31 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
528
527
|
user: {
|
|
529
528
|
username: string;
|
|
530
529
|
id: string;
|
|
530
|
+
color?: string | null | undefined;
|
|
531
531
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
532
532
|
avatar?: string | null | undefined;
|
|
533
|
-
color?: 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;
|
|
544
|
+
color?: string | null | undefined;
|
|
547
545
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
548
546
|
avatar?: string | null | undefined;
|
|
549
|
-
color?: string | null | undefined;
|
|
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`.
|
|
@@ -604,15 +604,15 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
604
604
|
}, "strip", z.ZodTypeAny, {
|
|
605
605
|
username: string;
|
|
606
606
|
id: string;
|
|
607
|
+
color?: string | null | undefined;
|
|
607
608
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
608
609
|
avatar?: string | null | undefined;
|
|
609
|
-
color?: string | null | undefined;
|
|
610
610
|
}, {
|
|
611
611
|
username: string;
|
|
612
612
|
id: string;
|
|
613
|
+
color?: string | null | undefined;
|
|
613
614
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
614
615
|
avatar?: string | null | undefined;
|
|
615
|
-
color?: string | null | undefined;
|
|
616
616
|
}>;
|
|
617
617
|
contexts: z.ZodArray<z.ZodObject<{
|
|
618
618
|
id: z.ZodString;
|
|
@@ -633,113 +633,112 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
633
633
|
}, "strip", z.ZodTypeAny, {
|
|
634
634
|
username: string;
|
|
635
635
|
id: string;
|
|
636
|
+
color?: string | null | undefined;
|
|
636
637
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
637
638
|
avatar?: string | null | undefined;
|
|
638
|
-
color?: string | null | undefined;
|
|
639
639
|
}, {
|
|
640
640
|
username: string;
|
|
641
641
|
id: string;
|
|
642
|
+
color?: string | null | undefined;
|
|
642
643
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
643
644
|
avatar?: string | null | undefined;
|
|
644
|
-
color?: string | null | undefined;
|
|
645
645
|
}>;
|
|
646
646
|
onDevice: z.ZodBoolean;
|
|
647
647
|
available: z.ZodBoolean;
|
|
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;
|
|
658
|
+
color?: string | null | undefined;
|
|
660
659
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
661
660
|
avatar?: string | null | undefined;
|
|
662
|
-
color?: string | null | undefined;
|
|
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;
|
|
674
|
+
color?: string | null | undefined;
|
|
676
675
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
677
676
|
avatar?: string | null | undefined;
|
|
678
|
-
color?: string | null | undefined;
|
|
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;
|
|
685
685
|
user: {
|
|
686
686
|
username: string;
|
|
687
687
|
id: string;
|
|
688
|
+
color?: string | null | undefined;
|
|
688
689
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
689
690
|
avatar?: string | null | undefined;
|
|
690
|
-
color?: 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;
|
|
702
|
+
color?: string | null | undefined;
|
|
704
703
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
705
704
|
avatar?: string | null | undefined;
|
|
706
|
-
color?: string | null | undefined;
|
|
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;
|
|
713
713
|
user: {
|
|
714
714
|
username: string;
|
|
715
715
|
id: string;
|
|
716
|
+
color?: string | null | undefined;
|
|
716
717
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
717
718
|
avatar?: string | null | undefined;
|
|
718
|
-
color?: 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;
|
|
730
|
+
color?: string | null | undefined;
|
|
732
731
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
733
732
|
avatar?: string | null | undefined;
|
|
734
|
-
color?: string | null | undefined;
|
|
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;
|
|
@@ -748,32 +747,32 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
748
747
|
user: {
|
|
749
748
|
username: string;
|
|
750
749
|
id: string;
|
|
750
|
+
color?: string | null | undefined;
|
|
751
751
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
752
752
|
avatar?: string | null | undefined;
|
|
753
|
-
color?: 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;
|
|
764
|
+
color?: string | null | undefined;
|
|
767
765
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
768
766
|
avatar?: string | null | undefined;
|
|
769
|
-
color?: string | null | undefined;
|
|
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;
|
|
@@ -782,30 +781,31 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
782
781
|
user: {
|
|
783
782
|
username: string;
|
|
784
783
|
id: string;
|
|
784
|
+
color?: string | null | undefined;
|
|
785
785
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
786
786
|
avatar?: string | null | undefined;
|
|
787
|
-
color?: 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;
|
|
798
|
+
color?: string | null | undefined;
|
|
801
799
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
802
800
|
avatar?: string | null | undefined;
|
|
803
|
-
color?: string | null | undefined;
|
|
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;
|
|
@@ -832,38 +827,38 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
832
827
|
user: {
|
|
833
828
|
username: string;
|
|
834
829
|
id: string;
|
|
830
|
+
color?: string | null | undefined;
|
|
835
831
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
836
832
|
avatar?: string | null | undefined;
|
|
837
|
-
color?: 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;
|
|
844
|
+
color?: string | null | undefined;
|
|
851
845
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
852
846
|
avatar?: string | null | undefined;
|
|
853
|
-
color?: string | null | undefined;
|
|
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;
|
|
@@ -872,31 +867,36 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
872
867
|
user: {
|
|
873
868
|
username: string;
|
|
874
869
|
id: string;
|
|
870
|
+
color?: string | null | undefined;
|
|
875
871
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
876
872
|
avatar?: string | null | undefined;
|
|
877
|
-
color?: 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;
|
|
884
|
+
color?: string | null | undefined;
|
|
891
885
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
892
886
|
avatar?: string | null | undefined;
|
|
893
|
-
color?: string | null | undefined;
|
|
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
|
|
@@ -945,15 +945,15 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
945
945
|
}, "strip", z.ZodTypeAny, {
|
|
946
946
|
username: string;
|
|
947
947
|
id: string;
|
|
948
|
+
color?: string | null | undefined;
|
|
948
949
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
949
950
|
avatar?: string | null | undefined;
|
|
950
|
-
color?: string | null | undefined;
|
|
951
951
|
}, {
|
|
952
952
|
username: string;
|
|
953
953
|
id: string;
|
|
954
|
+
color?: string | null | undefined;
|
|
954
955
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
955
956
|
avatar?: string | null | undefined;
|
|
956
|
-
color?: string | null | undefined;
|
|
957
957
|
}>;
|
|
958
958
|
contexts: z.ZodArray<z.ZodObject<{
|
|
959
959
|
id: z.ZodString;
|
|
@@ -974,113 +974,112 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
974
974
|
}, "strip", z.ZodTypeAny, {
|
|
975
975
|
username: string;
|
|
976
976
|
id: string;
|
|
977
|
+
color?: string | null | undefined;
|
|
977
978
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
978
979
|
avatar?: string | null | undefined;
|
|
979
|
-
color?: string | null | undefined;
|
|
980
980
|
}, {
|
|
981
981
|
username: string;
|
|
982
982
|
id: string;
|
|
983
|
+
color?: string | null | undefined;
|
|
983
984
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
984
985
|
avatar?: string | null | undefined;
|
|
985
|
-
color?: string | null | undefined;
|
|
986
986
|
}>;
|
|
987
987
|
onDevice: z.ZodBoolean;
|
|
988
988
|
available: z.ZodBoolean;
|
|
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;
|
|
999
|
+
color?: string | null | undefined;
|
|
1001
1000
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1002
1001
|
avatar?: string | null | undefined;
|
|
1003
|
-
color?: string | null | undefined;
|
|
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;
|
|
1015
|
+
color?: string | null | undefined;
|
|
1017
1016
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1018
1017
|
avatar?: string | null | undefined;
|
|
1019
|
-
color?: string | null | undefined;
|
|
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;
|
|
1026
1026
|
user: {
|
|
1027
1027
|
username: string;
|
|
1028
1028
|
id: string;
|
|
1029
|
+
color?: string | null | undefined;
|
|
1029
1030
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1030
1031
|
avatar?: string | null | undefined;
|
|
1031
|
-
color?: 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;
|
|
1043
|
+
color?: string | null | undefined;
|
|
1045
1044
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1046
1045
|
avatar?: string | null | undefined;
|
|
1047
|
-
color?: string | null | undefined;
|
|
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;
|
|
1054
1054
|
user: {
|
|
1055
1055
|
username: string;
|
|
1056
1056
|
id: string;
|
|
1057
|
+
color?: string | null | undefined;
|
|
1057
1058
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1058
1059
|
avatar?: string | null | undefined;
|
|
1059
|
-
color?: 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;
|
|
1071
|
+
color?: string | null | undefined;
|
|
1073
1072
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1074
1073
|
avatar?: string | null | undefined;
|
|
1075
|
-
color?: string | null | undefined;
|
|
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;
|
|
@@ -1089,32 +1088,32 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1089
1088
|
user: {
|
|
1090
1089
|
username: string;
|
|
1091
1090
|
id: string;
|
|
1091
|
+
color?: string | null | undefined;
|
|
1092
1092
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1093
1093
|
avatar?: string | null | undefined;
|
|
1094
|
-
color?: 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;
|
|
1105
|
+
color?: string | null | undefined;
|
|
1108
1106
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1109
1107
|
avatar?: string | null | undefined;
|
|
1110
|
-
color?: string | null | undefined;
|
|
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;
|
|
@@ -1123,30 +1122,31 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1123
1122
|
user: {
|
|
1124
1123
|
username: string;
|
|
1125
1124
|
id: string;
|
|
1125
|
+
color?: string | null | undefined;
|
|
1126
1126
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1127
1127
|
avatar?: string | null | undefined;
|
|
1128
|
-
color?: 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;
|
|
1139
|
+
color?: string | null | undefined;
|
|
1142
1140
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1143
1141
|
avatar?: string | null | undefined;
|
|
1144
|
-
color?: string | null | undefined;
|
|
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;
|
|
@@ -1229,50 +1212,50 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1229
1212
|
user: {
|
|
1230
1213
|
username: string;
|
|
1231
1214
|
id: string;
|
|
1215
|
+
color?: string | null | undefined;
|
|
1232
1216
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1233
1217
|
avatar?: string | null | undefined;
|
|
1234
|
-
color?: 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;
|
|
1229
|
+
color?: string | null | undefined;
|
|
1248
1230
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1249
1231
|
avatar?: string | null | undefined;
|
|
1250
|
-
color?: string | null | undefined;
|
|
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;
|
|
@@ -1281,30 +1264,47 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1281
1264
|
user: {
|
|
1282
1265
|
username: string;
|
|
1283
1266
|
id: string;
|
|
1267
|
+
color?: string | null | undefined;
|
|
1284
1268
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1285
1269
|
avatar?: string | null | undefined;
|
|
1286
|
-
color?: 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;
|
|
1281
|
+
color?: string | null | undefined;
|
|
1300
1282
|
name?: import("./userResponse").UserNameResponse | undefined;
|
|
1301
1283
|
avatar?: string | null | undefined;
|
|
1302
|
-
color?: string | null | undefined;
|
|
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>;
|