@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
|
@@ -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
|
/**
|
|
@@ -209,11 +209,11 @@ export declare const recommendationItemSchema: z.ZodObject<{
|
|
|
209
209
|
followers: z.ZodNumber;
|
|
210
210
|
following: z.ZodNumber;
|
|
211
211
|
}, "strip", z.ZodTypeAny, {
|
|
212
|
-
following: number;
|
|
213
212
|
followers: number;
|
|
214
|
-
}, {
|
|
215
213
|
following: number;
|
|
214
|
+
}, {
|
|
216
215
|
followers: number;
|
|
216
|
+
following: number;
|
|
217
217
|
}>;
|
|
218
218
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
219
219
|
id: z.ZodString;
|
|
@@ -238,11 +238,11 @@ export declare const recommendationItemSchema: z.ZodObject<{
|
|
|
238
238
|
followers: z.ZodNumber;
|
|
239
239
|
following: z.ZodNumber;
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
|
-
following: number;
|
|
242
241
|
followers: number;
|
|
243
|
-
}, {
|
|
244
242
|
following: number;
|
|
243
|
+
}, {
|
|
245
244
|
followers: number;
|
|
245
|
+
following: number;
|
|
246
246
|
}>;
|
|
247
247
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
248
248
|
id: z.ZodString;
|
|
@@ -267,11 +267,11 @@ export declare const recommendationItemSchema: z.ZodObject<{
|
|
|
267
267
|
followers: z.ZodNumber;
|
|
268
268
|
following: z.ZodNumber;
|
|
269
269
|
}, "strip", z.ZodTypeAny, {
|
|
270
|
-
following: number;
|
|
271
270
|
followers: number;
|
|
272
|
-
}, {
|
|
273
271
|
following: number;
|
|
272
|
+
}, {
|
|
274
273
|
followers: number;
|
|
274
|
+
following: number;
|
|
275
275
|
}>;
|
|
276
276
|
}, z.ZodTypeAny, "passthrough">>;
|
|
277
277
|
export type RecommendationItem = z.infer<typeof recommendationItemSchema>;
|
|
@@ -299,11 +299,11 @@ export declare const recommendationResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
299
299
|
followers: z.ZodNumber;
|
|
300
300
|
following: z.ZodNumber;
|
|
301
301
|
}, "strip", z.ZodTypeAny, {
|
|
302
|
-
following: number;
|
|
303
302
|
followers: number;
|
|
304
|
-
}, {
|
|
305
303
|
following: number;
|
|
304
|
+
}, {
|
|
306
305
|
followers: number;
|
|
306
|
+
following: number;
|
|
307
307
|
}>;
|
|
308
308
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
309
309
|
id: z.ZodString;
|
|
@@ -328,11 +328,11 @@ export declare const recommendationResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
328
328
|
followers: z.ZodNumber;
|
|
329
329
|
following: z.ZodNumber;
|
|
330
330
|
}, "strip", z.ZodTypeAny, {
|
|
331
|
-
following: number;
|
|
332
331
|
followers: number;
|
|
333
|
-
}, {
|
|
334
332
|
following: number;
|
|
333
|
+
}, {
|
|
335
334
|
followers: number;
|
|
335
|
+
following: number;
|
|
336
336
|
}>;
|
|
337
337
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
338
338
|
id: z.ZodString;
|
|
@@ -357,11 +357,11 @@ export declare const recommendationResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
357
357
|
followers: z.ZodNumber;
|
|
358
358
|
following: z.ZodNumber;
|
|
359
359
|
}, "strip", z.ZodTypeAny, {
|
|
360
|
-
following: number;
|
|
361
360
|
followers: number;
|
|
362
|
-
}, {
|
|
363
361
|
following: number;
|
|
362
|
+
}, {
|
|
364
363
|
followers: number;
|
|
364
|
+
following: number;
|
|
365
365
|
}>;
|
|
366
366
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
367
367
|
export type RecommendationResponse = z.infer<typeof recommendationResponseSchema>;
|
|
@@ -503,16 +503,16 @@ export declare const appAffinityEventSchema: z.ZodObject<{
|
|
|
503
503
|
type: "like" | "reply" | "boost" | "follow" | "mention" | "profile_view" | "quote" | "repost";
|
|
504
504
|
fromUserId: string;
|
|
505
505
|
toUserId: string;
|
|
506
|
-
eventId?: string | undefined;
|
|
507
|
-
occurredAt?: string | undefined;
|
|
508
506
|
weight?: number | undefined;
|
|
507
|
+
occurredAt?: string | undefined;
|
|
508
|
+
eventId?: string | undefined;
|
|
509
509
|
}, {
|
|
510
510
|
type: "like" | "reply" | "boost" | "follow" | "mention" | "profile_view" | "quote" | "repost";
|
|
511
511
|
fromUserId: string;
|
|
512
512
|
toUserId: string;
|
|
513
|
-
eventId?: string | undefined;
|
|
514
|
-
occurredAt?: string | undefined;
|
|
515
513
|
weight?: number | undefined;
|
|
514
|
+
occurredAt?: string | undefined;
|
|
515
|
+
eventId?: string | undefined;
|
|
516
516
|
}>;
|
|
517
517
|
export type AppAffinityEvent = z.infer<typeof appAffinityEventSchema>;
|
|
518
518
|
/**
|
|
@@ -533,34 +533,34 @@ export declare const appAffinityEventsIngestSchema: z.ZodObject<{
|
|
|
533
533
|
type: "like" | "reply" | "boost" | "follow" | "mention" | "profile_view" | "quote" | "repost";
|
|
534
534
|
fromUserId: string;
|
|
535
535
|
toUserId: string;
|
|
536
|
-
eventId?: string | undefined;
|
|
537
|
-
occurredAt?: string | undefined;
|
|
538
536
|
weight?: number | undefined;
|
|
537
|
+
occurredAt?: string | undefined;
|
|
538
|
+
eventId?: string | undefined;
|
|
539
539
|
}, {
|
|
540
540
|
type: "like" | "reply" | "boost" | "follow" | "mention" | "profile_view" | "quote" | "repost";
|
|
541
541
|
fromUserId: string;
|
|
542
542
|
toUserId: string;
|
|
543
|
-
eventId?: string | undefined;
|
|
544
|
-
occurredAt?: string | undefined;
|
|
545
543
|
weight?: number | undefined;
|
|
544
|
+
occurredAt?: string | undefined;
|
|
545
|
+
eventId?: string | undefined;
|
|
546
546
|
}>, "many">;
|
|
547
547
|
}, "strip", z.ZodTypeAny, {
|
|
548
548
|
events: {
|
|
549
549
|
type: "like" | "reply" | "boost" | "follow" | "mention" | "profile_view" | "quote" | "repost";
|
|
550
550
|
fromUserId: string;
|
|
551
551
|
toUserId: string;
|
|
552
|
-
eventId?: string | undefined;
|
|
553
|
-
occurredAt?: string | undefined;
|
|
554
552
|
weight?: number | undefined;
|
|
553
|
+
occurredAt?: string | undefined;
|
|
554
|
+
eventId?: string | undefined;
|
|
555
555
|
}[];
|
|
556
556
|
}, {
|
|
557
557
|
events: {
|
|
558
558
|
type: "like" | "reply" | "boost" | "follow" | "mention" | "profile_view" | "quote" | "repost";
|
|
559
559
|
fromUserId: string;
|
|
560
560
|
toUserId: string;
|
|
561
|
-
eventId?: string | undefined;
|
|
562
|
-
occurredAt?: string | undefined;
|
|
563
561
|
weight?: number | undefined;
|
|
562
|
+
occurredAt?: string | undefined;
|
|
563
|
+
eventId?: string | undefined;
|
|
564
564
|
}[];
|
|
565
565
|
}>;
|
|
566
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>;
|