@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
|
@@ -127,7 +127,7 @@ export declare const recommendationRequestSchema: z.ZodObject<{
|
|
|
127
127
|
clientId?: string | undefined;
|
|
128
128
|
limit?: number | undefined;
|
|
129
129
|
offset?: number | undefined;
|
|
130
|
-
excludeTypes?: ("
|
|
130
|
+
excludeTypes?: ("federated" | "agent" | "automated")[] | undefined;
|
|
131
131
|
excludeIds?: string[] | undefined;
|
|
132
132
|
boosts?: {
|
|
133
133
|
userIds: string[];
|
|
@@ -148,7 +148,7 @@ export declare const recommendationRequestSchema: z.ZodObject<{
|
|
|
148
148
|
clientId?: string | undefined;
|
|
149
149
|
limit?: number | undefined;
|
|
150
150
|
offset?: number | undefined;
|
|
151
|
-
excludeTypes?: ("
|
|
151
|
+
excludeTypes?: ("federated" | "agent" | "automated")[] | undefined;
|
|
152
152
|
excludeIds?: string[] | undefined;
|
|
153
153
|
boosts?: {
|
|
154
154
|
userIds: string[];
|
|
@@ -172,11 +172,11 @@ export declare const recommendationCountSchema: z.ZodObject<{
|
|
|
172
172
|
followers: z.ZodNumber;
|
|
173
173
|
following: z.ZodNumber;
|
|
174
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
|
-
following: number;
|
|
176
175
|
followers: number;
|
|
177
|
-
}, {
|
|
178
176
|
following: number;
|
|
177
|
+
}, {
|
|
179
178
|
followers: number;
|
|
179
|
+
following: number;
|
|
180
180
|
}>;
|
|
181
181
|
export type RecommendationCount = z.infer<typeof recommendationCountSchema>;
|
|
182
182
|
/**
|
|
@@ -191,6 +191,8 @@ export declare const recommendationItemSchema: z.ZodObject<{
|
|
|
191
191
|
username: z.ZodOptional<z.ZodString>;
|
|
192
192
|
name: z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>;
|
|
193
193
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
/** A bot's 3D avatar character; absent for every other kind. */
|
|
195
|
+
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
194
196
|
/** The account's accent colour, as on every profile; absent when unset. */
|
|
195
197
|
color: z.ZodOptional<z.ZodString>;
|
|
196
198
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -207,17 +209,19 @@ export declare const recommendationItemSchema: z.ZodObject<{
|
|
|
207
209
|
followers: z.ZodNumber;
|
|
208
210
|
following: z.ZodNumber;
|
|
209
211
|
}, "strip", z.ZodTypeAny, {
|
|
210
|
-
following: number;
|
|
211
212
|
followers: number;
|
|
212
|
-
}, {
|
|
213
213
|
following: number;
|
|
214
|
+
}, {
|
|
214
215
|
followers: number;
|
|
216
|
+
following: number;
|
|
215
217
|
}>;
|
|
216
218
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
217
219
|
id: z.ZodString;
|
|
218
220
|
username: z.ZodOptional<z.ZodString>;
|
|
219
221
|
name: z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>;
|
|
220
222
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
/** A bot's 3D avatar character; absent for every other kind. */
|
|
224
|
+
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
221
225
|
/** The account's accent colour, as on every profile; absent when unset. */
|
|
222
226
|
color: z.ZodOptional<z.ZodString>;
|
|
223
227
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -234,17 +238,19 @@ export declare const recommendationItemSchema: z.ZodObject<{
|
|
|
234
238
|
followers: z.ZodNumber;
|
|
235
239
|
following: z.ZodNumber;
|
|
236
240
|
}, "strip", z.ZodTypeAny, {
|
|
237
|
-
following: number;
|
|
238
241
|
followers: number;
|
|
239
|
-
}, {
|
|
240
242
|
following: number;
|
|
243
|
+
}, {
|
|
241
244
|
followers: number;
|
|
245
|
+
following: number;
|
|
242
246
|
}>;
|
|
243
247
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
244
248
|
id: z.ZodString;
|
|
245
249
|
username: z.ZodOptional<z.ZodString>;
|
|
246
250
|
name: z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>;
|
|
247
251
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
252
|
+
/** A bot's 3D avatar character; absent for every other kind. */
|
|
253
|
+
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
248
254
|
/** The account's accent colour, as on every profile; absent when unset. */
|
|
249
255
|
color: z.ZodOptional<z.ZodString>;
|
|
250
256
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -261,11 +267,11 @@ export declare const recommendationItemSchema: z.ZodObject<{
|
|
|
261
267
|
followers: z.ZodNumber;
|
|
262
268
|
following: z.ZodNumber;
|
|
263
269
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
following: number;
|
|
265
270
|
followers: number;
|
|
266
|
-
}, {
|
|
267
271
|
following: number;
|
|
272
|
+
}, {
|
|
268
273
|
followers: number;
|
|
274
|
+
following: number;
|
|
269
275
|
}>;
|
|
270
276
|
}, z.ZodTypeAny, "passthrough">>;
|
|
271
277
|
export type RecommendationItem = z.infer<typeof recommendationItemSchema>;
|
|
@@ -275,6 +281,8 @@ export declare const recommendationResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
275
281
|
username: z.ZodOptional<z.ZodString>;
|
|
276
282
|
name: z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>;
|
|
277
283
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
284
|
+
/** A bot's 3D avatar character; absent for every other kind. */
|
|
285
|
+
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
278
286
|
/** The account's accent colour, as on every profile; absent when unset. */
|
|
279
287
|
color: z.ZodOptional<z.ZodString>;
|
|
280
288
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -291,17 +299,19 @@ export declare const recommendationResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
291
299
|
followers: z.ZodNumber;
|
|
292
300
|
following: z.ZodNumber;
|
|
293
301
|
}, "strip", z.ZodTypeAny, {
|
|
294
|
-
following: number;
|
|
295
302
|
followers: number;
|
|
296
|
-
}, {
|
|
297
303
|
following: number;
|
|
304
|
+
}, {
|
|
298
305
|
followers: number;
|
|
306
|
+
following: number;
|
|
299
307
|
}>;
|
|
300
308
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
301
309
|
id: z.ZodString;
|
|
302
310
|
username: z.ZodOptional<z.ZodString>;
|
|
303
311
|
name: z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>;
|
|
304
312
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
|
+
/** A bot's 3D avatar character; absent for every other kind. */
|
|
314
|
+
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
305
315
|
/** The account's accent colour, as on every profile; absent when unset. */
|
|
306
316
|
color: z.ZodOptional<z.ZodString>;
|
|
307
317
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -318,17 +328,19 @@ export declare const recommendationResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
318
328
|
followers: z.ZodNumber;
|
|
319
329
|
following: z.ZodNumber;
|
|
320
330
|
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
following: number;
|
|
322
331
|
followers: number;
|
|
323
|
-
}, {
|
|
324
332
|
following: number;
|
|
333
|
+
}, {
|
|
325
334
|
followers: number;
|
|
335
|
+
following: number;
|
|
326
336
|
}>;
|
|
327
337
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
328
338
|
id: z.ZodString;
|
|
329
339
|
username: z.ZodOptional<z.ZodString>;
|
|
330
340
|
name: z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>;
|
|
331
341
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
/** A bot's 3D avatar character; absent for every other kind. */
|
|
343
|
+
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
332
344
|
/** The account's accent colour, as on every profile; absent when unset. */
|
|
333
345
|
color: z.ZodOptional<z.ZodString>;
|
|
334
346
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -345,11 +357,11 @@ export declare const recommendationResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
345
357
|
followers: z.ZodNumber;
|
|
346
358
|
following: z.ZodNumber;
|
|
347
359
|
}, "strip", z.ZodTypeAny, {
|
|
348
|
-
following: number;
|
|
349
360
|
followers: number;
|
|
350
|
-
}, {
|
|
351
361
|
following: number;
|
|
362
|
+
}, {
|
|
352
363
|
followers: number;
|
|
364
|
+
following: number;
|
|
353
365
|
}>;
|
|
354
366
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
355
367
|
export type RecommendationResponse = z.infer<typeof recommendationResponseSchema>;
|
|
@@ -491,16 +503,16 @@ export declare const appAffinityEventSchema: z.ZodObject<{
|
|
|
491
503
|
type: "like" | "reply" | "boost" | "follow" | "mention" | "profile_view" | "quote" | "repost";
|
|
492
504
|
fromUserId: string;
|
|
493
505
|
toUserId: string;
|
|
494
|
-
eventId?: string | undefined;
|
|
495
|
-
occurredAt?: string | undefined;
|
|
496
506
|
weight?: number | undefined;
|
|
507
|
+
occurredAt?: string | undefined;
|
|
508
|
+
eventId?: string | undefined;
|
|
497
509
|
}, {
|
|
498
510
|
type: "like" | "reply" | "boost" | "follow" | "mention" | "profile_view" | "quote" | "repost";
|
|
499
511
|
fromUserId: string;
|
|
500
512
|
toUserId: string;
|
|
501
|
-
eventId?: string | undefined;
|
|
502
|
-
occurredAt?: string | undefined;
|
|
503
513
|
weight?: number | undefined;
|
|
514
|
+
occurredAt?: string | undefined;
|
|
515
|
+
eventId?: string | undefined;
|
|
504
516
|
}>;
|
|
505
517
|
export type AppAffinityEvent = z.infer<typeof appAffinityEventSchema>;
|
|
506
518
|
/**
|
|
@@ -521,34 +533,34 @@ export declare const appAffinityEventsIngestSchema: z.ZodObject<{
|
|
|
521
533
|
type: "like" | "reply" | "boost" | "follow" | "mention" | "profile_view" | "quote" | "repost";
|
|
522
534
|
fromUserId: string;
|
|
523
535
|
toUserId: string;
|
|
524
|
-
eventId?: string | undefined;
|
|
525
|
-
occurredAt?: string | undefined;
|
|
526
536
|
weight?: number | undefined;
|
|
537
|
+
occurredAt?: string | undefined;
|
|
538
|
+
eventId?: string | undefined;
|
|
527
539
|
}, {
|
|
528
540
|
type: "like" | "reply" | "boost" | "follow" | "mention" | "profile_view" | "quote" | "repost";
|
|
529
541
|
fromUserId: string;
|
|
530
542
|
toUserId: string;
|
|
531
|
-
eventId?: string | undefined;
|
|
532
|
-
occurredAt?: string | undefined;
|
|
533
543
|
weight?: number | undefined;
|
|
544
|
+
occurredAt?: string | undefined;
|
|
545
|
+
eventId?: string | undefined;
|
|
534
546
|
}>, "many">;
|
|
535
547
|
}, "strip", z.ZodTypeAny, {
|
|
536
548
|
events: {
|
|
537
549
|
type: "like" | "reply" | "boost" | "follow" | "mention" | "profile_view" | "quote" | "repost";
|
|
538
550
|
fromUserId: string;
|
|
539
551
|
toUserId: string;
|
|
540
|
-
eventId?: string | undefined;
|
|
541
|
-
occurredAt?: string | undefined;
|
|
542
552
|
weight?: number | undefined;
|
|
553
|
+
occurredAt?: string | undefined;
|
|
554
|
+
eventId?: string | undefined;
|
|
543
555
|
}[];
|
|
544
556
|
}, {
|
|
545
557
|
events: {
|
|
546
558
|
type: "like" | "reply" | "boost" | "follow" | "mention" | "profile_view" | "quote" | "repost";
|
|
547
559
|
fromUserId: string;
|
|
548
560
|
toUserId: string;
|
|
549
|
-
eventId?: string | undefined;
|
|
550
|
-
occurredAt?: string | undefined;
|
|
551
561
|
weight?: number | undefined;
|
|
562
|
+
occurredAt?: string | undefined;
|
|
563
|
+
eventId?: string | undefined;
|
|
552
564
|
}[];
|
|
553
565
|
}>;
|
|
554
566
|
export type AppAffinityEventsIngest = z.infer<typeof appAffinityEventsIngestSchema>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** The requester is authenticated by the bearer; applications cannot submit viewer IDs. */
|
|
3
|
+
export declare const profileAccessInputSchema: z.ZodObject<{
|
|
4
|
+
subjectAccountId: z.ZodString;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
subjectAccountId: string;
|
|
7
|
+
}, {
|
|
8
|
+
subjectAccountId: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const profileAccessDecisionSchema: z.ZodObject<{
|
|
11
|
+
allowed: z.ZodBoolean;
|
|
12
|
+
reason: z.ZodEnum<["public", "owner", "private", "blocked", "unavailable"]>;
|
|
13
|
+
policyVersion: z.ZodLiteral<"1">;
|
|
14
|
+
}, "strict", z.ZodTypeAny, {
|
|
15
|
+
allowed: boolean;
|
|
16
|
+
reason: "public" | "owner" | "private" | "blocked" | "unavailable";
|
|
17
|
+
policyVersion: "1";
|
|
18
|
+
}, {
|
|
19
|
+
allowed: boolean;
|
|
20
|
+
reason: "public" | "owner" | "private" | "blocked" | "unavailable";
|
|
21
|
+
policyVersion: "1";
|
|
22
|
+
}>;
|
|
23
|
+
export type ProfileAccessInput = z.infer<typeof profileAccessInputSchema>;
|
|
24
|
+
export type ProfileAccessDecision = z.infer<typeof profileAccessDecisionSchema>;
|