@oxy.so/contracts 4.21.0 → 4.22.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/client/contentClaims.js +139 -0
- package/dist/cjs/client/index.js +16 -1
- package/dist/cjs/contentClaims.js +246 -0
- package/dist/cjs/index.js +1 -0
- package/dist/esm/client/contentClaims.js +134 -0
- package/dist/esm/client/index.js +1 -0
- package/dist/esm/contentClaims.js +229 -0
- package/dist/esm/index.js +1 -0
- package/dist/types/client/contentClaims.d.ts +106 -0
- package/dist/types/client/index.d.ts +1 -0
- package/dist/types/client/safety.d.ts +1 -1
- package/dist/types/contentClaims.d.ts +383 -0
- package/dist/types/email/messages.d.ts +2 -2
- package/dist/types/externalIdentity.d.ts +12 -12
- package/dist/types/index.d.ts +1 -0
- package/dist/types/inference/aliaModelRelease.d.ts +8 -8
- package/dist/types/inference/catalogue.d.ts +4 -4
- package/dist/types/inference/inbox.d.ts +4 -4
- package/dist/types/inference/modelDocumentation.d.ts +16 -16
- package/dist/types/safety.d.ts +50 -50
- package/dist/types/sessionStatus.d.ts +4 -4
- package/dist/types/updates.d.ts +6 -6
- package/dist/types/userResponse.d.ts +6 -6
- package/package.json +1 -1
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content claims (ADR 0043 D10): the public "Report content / rights claim"
|
|
3
|
+
* intake, `POST /content-claims`, and the staff review of a claim.
|
|
4
|
+
*
|
|
5
|
+
* {@link contentClaimSubmissionSchema} is the request body the API parses and
|
|
6
|
+
* the Oxy website validates its form with before posting, so the form cannot
|
|
7
|
+
* accept what the API would answer 400 to. Every validation message is a
|
|
8
|
+
* stable KEY under `contentClaim.errors.*` (filled with
|
|
9
|
+
* {@link CONTENT_CLAIM_LIMITS} by whoever shows it), never English: the website
|
|
10
|
+
* translates the key, and the API answers its own English sentence for it in
|
|
11
|
+
* `fields`.
|
|
12
|
+
*/
|
|
13
|
+
import { z } from 'zod';
|
|
14
|
+
import { type ClaimantRelationship, type ContentClaimKind, type ContentClaimState } from './client/contentClaims';
|
|
15
|
+
export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_ERROR_CODES, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, CONTENT_CLAIM_STATES, COUNTER_NOTICE_STATEMENT_VERSION, COUNTER_NOTICE_STATEMENTS, ERASURE_REQUEST_DEADLINE_DAYS, OPEN_CONTENT_CLAIM_STATES, isErasureRequest, isRightsClaim, } from './client/contentClaims';
|
|
16
|
+
export type { ClaimantRelationship, ContentClaimErrorCode, ContentClaimKind, ContentClaimState, } from './client/contentClaims';
|
|
17
|
+
/** Every key a submission's validation can produce, under `contentClaim.errors.*`. */
|
|
18
|
+
export declare const CONTENT_CLAIM_VALIDATION_KEYS: readonly ["contentClaim.errors.kind", "contentClaim.errors.contentUrlsRequired", "contentClaim.errors.contentUrlsTooMany", "contentClaim.errors.contentUrlInvalid", "contentClaim.errors.descriptionShort", "contentClaim.errors.descriptionLong", "contentClaim.errors.originalWorkUrl", "contentClaim.errors.name", "contentClaim.errors.email", "contentClaim.errors.organization", "contentClaim.errors.relationship", "contentClaim.errors.goodFaith", "contentClaim.errors.accurate", "contentClaim.errors.signature"];
|
|
19
|
+
export type ContentClaimValidationKey = (typeof CONTENT_CLAIM_VALIDATION_KEYS)[number];
|
|
20
|
+
/**
|
|
21
|
+
* `POST /content-claims` — a claim, as the claimant sends it. Strict: an
|
|
22
|
+
* unknown key is refused rather than dropped.
|
|
23
|
+
*/
|
|
24
|
+
export declare const contentClaimSubmissionSchema: z.ZodObject<{
|
|
25
|
+
kind: z.ZodEnum<["copyright", "trademark", "privacy", "illegal_content", "other"]>;
|
|
26
|
+
contentUrls: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
27
|
+
description: z.ZodString;
|
|
28
|
+
originalWorkUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
29
|
+
claimant: z.ZodObject<{
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
email: z.ZodString;
|
|
32
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
33
|
+
relationship: z.ZodEnum<["rights_holder", "authorized_agent", "affected_person", "other"]>;
|
|
34
|
+
}, "strict", z.ZodTypeAny, {
|
|
35
|
+
name: string;
|
|
36
|
+
email: string;
|
|
37
|
+
relationship: "other" | "rights_holder" | "authorized_agent" | "affected_person";
|
|
38
|
+
organization?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
name: string;
|
|
41
|
+
email: string;
|
|
42
|
+
relationship: "other" | "rights_holder" | "authorized_agent" | "affected_person";
|
|
43
|
+
organization?: string | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
statements: z.ZodObject<{
|
|
46
|
+
goodFaith: z.ZodLiteral<true>;
|
|
47
|
+
accurate: z.ZodLiteral<true>;
|
|
48
|
+
}, "strict", z.ZodTypeAny, {
|
|
49
|
+
goodFaith: true;
|
|
50
|
+
accurate: true;
|
|
51
|
+
}, {
|
|
52
|
+
goodFaith: true;
|
|
53
|
+
accurate: true;
|
|
54
|
+
}>;
|
|
55
|
+
signature: z.ZodString;
|
|
56
|
+
}, "strict", z.ZodTypeAny, {
|
|
57
|
+
kind: "other" | "copyright" | "trademark" | "privacy" | "illegal_content";
|
|
58
|
+
description: string;
|
|
59
|
+
signature: string;
|
|
60
|
+
contentUrls: string[];
|
|
61
|
+
claimant: {
|
|
62
|
+
name: string;
|
|
63
|
+
email: string;
|
|
64
|
+
relationship: "other" | "rights_holder" | "authorized_agent" | "affected_person";
|
|
65
|
+
organization?: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
statements: {
|
|
68
|
+
goodFaith: true;
|
|
69
|
+
accurate: true;
|
|
70
|
+
};
|
|
71
|
+
originalWorkUrl?: string | undefined;
|
|
72
|
+
}, {
|
|
73
|
+
kind: "other" | "copyright" | "trademark" | "privacy" | "illegal_content";
|
|
74
|
+
description: string;
|
|
75
|
+
signature: string;
|
|
76
|
+
contentUrls: string[];
|
|
77
|
+
claimant: {
|
|
78
|
+
name: string;
|
|
79
|
+
email: string;
|
|
80
|
+
relationship: "other" | "rights_holder" | "authorized_agent" | "affected_person";
|
|
81
|
+
organization?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
statements: {
|
|
84
|
+
goodFaith: true;
|
|
85
|
+
accurate: true;
|
|
86
|
+
};
|
|
87
|
+
originalWorkUrl?: string | undefined;
|
|
88
|
+
}>;
|
|
89
|
+
export type ContentClaimSubmission = z.infer<typeof contentClaimSubmissionSchema>;
|
|
90
|
+
/** `201` to a submission: the claim's id and the reference the claimant quotes. */
|
|
91
|
+
export interface ContentClaimSubmissionResponse {
|
|
92
|
+
id: string;
|
|
93
|
+
/** e.g. `OXY-7K3M-9Q2D`: what the claimant quotes when writing about the claim. */
|
|
94
|
+
reference: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* `400` to a submission: `error` is a sentence for the person, and `fields`
|
|
98
|
+
* maps a body path (`claimant.email`, `contentUrls.3`) to a sentence about it.
|
|
99
|
+
*/
|
|
100
|
+
export interface ContentClaimSubmissionError {
|
|
101
|
+
error: string;
|
|
102
|
+
code: string;
|
|
103
|
+
fields?: Record<string, string>;
|
|
104
|
+
}
|
|
105
|
+
/** How a target's URL was understood. */
|
|
106
|
+
export declare const CONTENT_CLAIM_TARGET_RESOLUTIONS: readonly ["file", "unresolved"];
|
|
107
|
+
export type ContentClaimTargetResolution = (typeof CONTENT_CLAIM_TARGET_RESOLUTIONS)[number];
|
|
108
|
+
/** Who added a target: the claimant's URL, or staff attaching a file by id. */
|
|
109
|
+
export declare const CONTENT_CLAIM_TARGET_SOURCES: readonly ["claimant", "staff"];
|
|
110
|
+
export type ContentClaimTargetSource = (typeof CONTENT_CLAIM_TARGET_SOURCES)[number];
|
|
111
|
+
/** What the audit trail records. */
|
|
112
|
+
export declare const CONTENT_CLAIM_EVENT_ACTIONS: readonly ["submitted", "review_started", "targets_attached", "targets_blocked", "rejected", "counter_notice_recorded", "counter_notice_submitted", "reinstated", "upheld", "note_added"];
|
|
113
|
+
export type ContentClaimEventAction = (typeof CONTENT_CLAIM_EVENT_ACTIONS)[number];
|
|
114
|
+
/** One target as staff see it. */
|
|
115
|
+
export interface ContentClaimTargetView {
|
|
116
|
+
id: string;
|
|
117
|
+
source: ContentClaimTargetSource;
|
|
118
|
+
url: string | null;
|
|
119
|
+
resolution: ContentClaimTargetResolution;
|
|
120
|
+
/** The file this target names, when it names one (null after the file's owner was deleted). */
|
|
121
|
+
fileId: string | null;
|
|
122
|
+
sha256: string | null;
|
|
123
|
+
/** The file as it stands now, or null when there is no such row any more. */
|
|
124
|
+
file: {
|
|
125
|
+
id: string;
|
|
126
|
+
status: 'active' | 'trash' | 'blocked' | 'deleted';
|
|
127
|
+
visibility: 'private' | 'public' | 'unlisted';
|
|
128
|
+
mime: string;
|
|
129
|
+
size: number;
|
|
130
|
+
ownerKind: 'account' | 'application' | 'platform';
|
|
131
|
+
ownerUserId: string | null;
|
|
132
|
+
ownerApplicationId: string | null;
|
|
133
|
+
} | null;
|
|
134
|
+
blockedAt: string | null;
|
|
135
|
+
unblockedAt: string | null;
|
|
136
|
+
createdAt: string;
|
|
137
|
+
}
|
|
138
|
+
/** One audit entry. */
|
|
139
|
+
export interface ContentClaimEventView {
|
|
140
|
+
id: string;
|
|
141
|
+
action: ContentClaimEventAction;
|
|
142
|
+
/** The staff member (or the signed-in claimant, for `submitted`); null when anonymous or deleted. */
|
|
143
|
+
actorUserId: string | null;
|
|
144
|
+
fromState: ContentClaimState | null;
|
|
145
|
+
toState: ContentClaimState | null;
|
|
146
|
+
/** Free text staff wrote (a rejection reason, a counter-notice summary, a note). */
|
|
147
|
+
note: string | null;
|
|
148
|
+
details: Record<string, unknown>;
|
|
149
|
+
createdAt: string;
|
|
150
|
+
}
|
|
151
|
+
/** A row of the queue. */
|
|
152
|
+
export interface ContentClaimSummaryView {
|
|
153
|
+
id: string;
|
|
154
|
+
reference: string;
|
|
155
|
+
kind: ContentClaimKind;
|
|
156
|
+
relationship: ClaimantRelationship;
|
|
157
|
+
state: ContentClaimState;
|
|
158
|
+
/** The statutory deadline (an erasure request), or null. */
|
|
159
|
+
deadlineAt: string | null;
|
|
160
|
+
targetCount: number;
|
|
161
|
+
blockedTargetCount: number;
|
|
162
|
+
receivedAt: string;
|
|
163
|
+
updatedAt: string;
|
|
164
|
+
closedAt: string | null;
|
|
165
|
+
}
|
|
166
|
+
/** A claim in full, for its detail page. */
|
|
167
|
+
export interface ContentClaimDetailView extends ContentClaimSummaryView {
|
|
168
|
+
submittedByUserId: string | null;
|
|
169
|
+
/** The claimant's statement; null once the retention period erased it. */
|
|
170
|
+
claimant: {
|
|
171
|
+
name: string;
|
|
172
|
+
email: string;
|
|
173
|
+
organization: string | null;
|
|
174
|
+
signature: string;
|
|
175
|
+
description: string;
|
|
176
|
+
originalWorkUrl: string | null;
|
|
177
|
+
} | null;
|
|
178
|
+
/** When the claimant's statement is erased (set when the claim closes). */
|
|
179
|
+
claimantExpiresAt: string | null;
|
|
180
|
+
targets: ContentClaimTargetView[];
|
|
181
|
+
events: ContentClaimEventView[];
|
|
182
|
+
/** The owners' own counter-notices, oldest first. */
|
|
183
|
+
counterNotices: ContentClaimCounterNoticeView[];
|
|
184
|
+
}
|
|
185
|
+
/** `GET /content-claims` */
|
|
186
|
+
export interface ContentClaimListResponse {
|
|
187
|
+
claims: ContentClaimSummaryView[];
|
|
188
|
+
/** Pass as `cursor` for the next page; null on the last. */
|
|
189
|
+
nextCursor: string | null;
|
|
190
|
+
}
|
|
191
|
+
/** Every key a counter-notice's validation can produce, under `contentClaim.counterNotice.errors.*`. */
|
|
192
|
+
export declare const CONTENT_CLAIM_COUNTER_NOTICE_VALIDATION_KEYS: readonly ["contentClaim.counterNotice.errors.claim", "contentClaim.counterNotice.errors.reference", "contentClaim.counterNotice.errors.claimId", "contentClaim.counterNotice.errors.fileIds", "contentClaim.counterNotice.errors.name", "contentClaim.counterNotice.errors.address", "contentClaim.counterNotice.errors.phone", "contentClaim.counterNotice.errors.email", "contentClaim.counterNotice.errors.materialDescription", "contentClaim.counterNotice.errors.materialLocation", "contentClaim.counterNotice.errors.explanation", "contentClaim.counterNotice.errors.perjury", "contentClaim.counterNotice.errors.jurisdiction", "contentClaim.counterNotice.errors.serviceOfProcess", "contentClaim.counterNotice.errors.disclosure", "contentClaim.counterNotice.errors.signature"];
|
|
193
|
+
export type ContentClaimCounterNoticeValidationKey = (typeof CONTENT_CLAIM_COUNTER_NOTICE_VALIDATION_KEYS)[number];
|
|
194
|
+
/**
|
|
195
|
+
* `POST /content-claims/counter-notices` — the owner of content a claim took
|
|
196
|
+
* down disputes it (17 U.S.C. § 512(g)(3)). Signed in: the API answers only
|
|
197
|
+
* for files the caller owns.
|
|
198
|
+
*
|
|
199
|
+
* Names the claim by its `reference` (the `OXY-XXXX-XXXX` the owner was
|
|
200
|
+
* emailed), its `claimId`, or the blocked `fileIds` — at least one. With
|
|
201
|
+
* `fileIds` the notice covers exactly those files; without, every one of the
|
|
202
|
+
* caller's files the claim blocked. Strict: an unknown key is refused.
|
|
203
|
+
*/
|
|
204
|
+
export declare const contentClaimCounterNoticeSchema: z.ZodEffects<z.ZodObject<{
|
|
205
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
206
|
+
claimId: z.ZodOptional<z.ZodString>;
|
|
207
|
+
fileIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
208
|
+
subscriber: z.ZodObject<{
|
|
209
|
+
name: z.ZodString;
|
|
210
|
+
address: z.ZodString;
|
|
211
|
+
phone: z.ZodString;
|
|
212
|
+
email: z.ZodString;
|
|
213
|
+
}, "strict", z.ZodTypeAny, {
|
|
214
|
+
name: string;
|
|
215
|
+
email: string;
|
|
216
|
+
address: string;
|
|
217
|
+
phone: string;
|
|
218
|
+
}, {
|
|
219
|
+
name: string;
|
|
220
|
+
email: string;
|
|
221
|
+
address: string;
|
|
222
|
+
phone: string;
|
|
223
|
+
}>;
|
|
224
|
+
material: z.ZodObject<{
|
|
225
|
+
/** What was removed. */
|
|
226
|
+
description: z.ZodString;
|
|
227
|
+
/** Where it appeared before it was removed (a URL, or where in an app). */
|
|
228
|
+
location: z.ZodString;
|
|
229
|
+
}, "strict", z.ZodTypeAny, {
|
|
230
|
+
description: string;
|
|
231
|
+
location: string;
|
|
232
|
+
}, {
|
|
233
|
+
description: string;
|
|
234
|
+
location: string;
|
|
235
|
+
}>;
|
|
236
|
+
/** Why it was a mistake or a misidentification, in the owner's words. */
|
|
237
|
+
explanation: z.ZodString;
|
|
238
|
+
/** Each of `COUNTER_NOTICE_STATEMENTS`, affirmed. */
|
|
239
|
+
statements: z.ZodObject<{
|
|
240
|
+
perjury: z.ZodLiteral<true>;
|
|
241
|
+
jurisdiction: z.ZodLiteral<true>;
|
|
242
|
+
serviceOfProcess: z.ZodLiteral<true>;
|
|
243
|
+
disclosure: z.ZodLiteral<true>;
|
|
244
|
+
}, "strict", z.ZodTypeAny, {
|
|
245
|
+
perjury: true;
|
|
246
|
+
jurisdiction: true;
|
|
247
|
+
serviceOfProcess: true;
|
|
248
|
+
disclosure: true;
|
|
249
|
+
}, {
|
|
250
|
+
perjury: true;
|
|
251
|
+
jurisdiction: true;
|
|
252
|
+
serviceOfProcess: true;
|
|
253
|
+
disclosure: true;
|
|
254
|
+
}>;
|
|
255
|
+
/** The owner's full legal name, typed as their signature. */
|
|
256
|
+
signature: z.ZodString;
|
|
257
|
+
}, "strict", z.ZodTypeAny, {
|
|
258
|
+
signature: string;
|
|
259
|
+
statements: {
|
|
260
|
+
perjury: true;
|
|
261
|
+
jurisdiction: true;
|
|
262
|
+
serviceOfProcess: true;
|
|
263
|
+
disclosure: true;
|
|
264
|
+
};
|
|
265
|
+
subscriber: {
|
|
266
|
+
name: string;
|
|
267
|
+
email: string;
|
|
268
|
+
address: string;
|
|
269
|
+
phone: string;
|
|
270
|
+
};
|
|
271
|
+
material: {
|
|
272
|
+
description: string;
|
|
273
|
+
location: string;
|
|
274
|
+
};
|
|
275
|
+
explanation: string;
|
|
276
|
+
reference?: string | undefined;
|
|
277
|
+
claimId?: string | undefined;
|
|
278
|
+
fileIds?: string[] | undefined;
|
|
279
|
+
}, {
|
|
280
|
+
signature: string;
|
|
281
|
+
statements: {
|
|
282
|
+
perjury: true;
|
|
283
|
+
jurisdiction: true;
|
|
284
|
+
serviceOfProcess: true;
|
|
285
|
+
disclosure: true;
|
|
286
|
+
};
|
|
287
|
+
subscriber: {
|
|
288
|
+
name: string;
|
|
289
|
+
email: string;
|
|
290
|
+
address: string;
|
|
291
|
+
phone: string;
|
|
292
|
+
};
|
|
293
|
+
material: {
|
|
294
|
+
description: string;
|
|
295
|
+
location: string;
|
|
296
|
+
};
|
|
297
|
+
explanation: string;
|
|
298
|
+
reference?: string | undefined;
|
|
299
|
+
claimId?: string | undefined;
|
|
300
|
+
fileIds?: string[] | undefined;
|
|
301
|
+
}>, {
|
|
302
|
+
signature: string;
|
|
303
|
+
statements: {
|
|
304
|
+
perjury: true;
|
|
305
|
+
jurisdiction: true;
|
|
306
|
+
serviceOfProcess: true;
|
|
307
|
+
disclosure: true;
|
|
308
|
+
};
|
|
309
|
+
subscriber: {
|
|
310
|
+
name: string;
|
|
311
|
+
email: string;
|
|
312
|
+
address: string;
|
|
313
|
+
phone: string;
|
|
314
|
+
};
|
|
315
|
+
material: {
|
|
316
|
+
description: string;
|
|
317
|
+
location: string;
|
|
318
|
+
};
|
|
319
|
+
explanation: string;
|
|
320
|
+
reference?: string | undefined;
|
|
321
|
+
claimId?: string | undefined;
|
|
322
|
+
fileIds?: string[] | undefined;
|
|
323
|
+
}, {
|
|
324
|
+
signature: string;
|
|
325
|
+
statements: {
|
|
326
|
+
perjury: true;
|
|
327
|
+
jurisdiction: true;
|
|
328
|
+
serviceOfProcess: true;
|
|
329
|
+
disclosure: true;
|
|
330
|
+
};
|
|
331
|
+
subscriber: {
|
|
332
|
+
name: string;
|
|
333
|
+
email: string;
|
|
334
|
+
address: string;
|
|
335
|
+
phone: string;
|
|
336
|
+
};
|
|
337
|
+
material: {
|
|
338
|
+
description: string;
|
|
339
|
+
location: string;
|
|
340
|
+
};
|
|
341
|
+
explanation: string;
|
|
342
|
+
reference?: string | undefined;
|
|
343
|
+
claimId?: string | undefined;
|
|
344
|
+
fileIds?: string[] | undefined;
|
|
345
|
+
}>;
|
|
346
|
+
export type ContentClaimCounterNotice = z.infer<typeof contentClaimCounterNoticeSchema>;
|
|
347
|
+
/** `201` to a counter-notice. */
|
|
348
|
+
export interface ContentClaimCounterNoticeResponse {
|
|
349
|
+
/** The counter-notice's id. */
|
|
350
|
+
id: string;
|
|
351
|
+
/** The claim it answers, as the owner was emailed it. */
|
|
352
|
+
reference: string;
|
|
353
|
+
/** Where the claim is now: `counter_noticed`. */
|
|
354
|
+
state: ContentClaimState;
|
|
355
|
+
/** The caller's blocked files the notice covers. */
|
|
356
|
+
fileIds: string[];
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* `400` to a counter-notice: `{ error, code: CONTENT_CLAIM_COUNTER_NOTICE_INVALID,
|
|
360
|
+
* fields }`, `fields` mapping each body path to a sentence.
|
|
361
|
+
*/
|
|
362
|
+
export type ContentClaimCounterNoticeError = ContentClaimSubmissionError;
|
|
363
|
+
/** An owner's counter-notice as staff see it on the claim. */
|
|
364
|
+
export interface ContentClaimCounterNoticeView {
|
|
365
|
+
id: string;
|
|
366
|
+
/** The account that sent it (null once that account is deleted). */
|
|
367
|
+
submittedByUserId: string | null;
|
|
368
|
+
fileIds: string[];
|
|
369
|
+
/** Which wording of `COUNTER_NOTICE_STATEMENTS` was affirmed. */
|
|
370
|
+
statementVersion: string;
|
|
371
|
+
/** What the owner wrote; null once the retention period erased it. */
|
|
372
|
+
statement: {
|
|
373
|
+
name: string;
|
|
374
|
+
address: string;
|
|
375
|
+
phone: string;
|
|
376
|
+
email: string;
|
|
377
|
+
materialDescription: string;
|
|
378
|
+
materialLocation: string;
|
|
379
|
+
explanation: string;
|
|
380
|
+
signature: string;
|
|
381
|
+
} | null;
|
|
382
|
+
createdAt: string;
|
|
383
|
+
}
|
|
@@ -761,9 +761,9 @@ export declare const emailFilterSchema: z.ZodObject<{
|
|
|
761
761
|
id: string;
|
|
762
762
|
enabled: boolean;
|
|
763
763
|
userId: string;
|
|
764
|
+
matchAll: boolean;
|
|
764
765
|
_id: string;
|
|
765
766
|
order: number;
|
|
766
|
-
matchAll: boolean;
|
|
767
767
|
conditions: {
|
|
768
768
|
value: string;
|
|
769
769
|
field: "subject" | "from" | "size" | "to" | "has-attachment";
|
|
@@ -780,9 +780,9 @@ export declare const emailFilterSchema: z.ZodObject<{
|
|
|
780
780
|
id: string;
|
|
781
781
|
enabled: boolean;
|
|
782
782
|
userId: string;
|
|
783
|
+
matchAll: boolean;
|
|
783
784
|
_id: string;
|
|
784
785
|
order: number;
|
|
785
|
-
matchAll: boolean;
|
|
786
786
|
conditions: {
|
|
787
787
|
value: string;
|
|
788
788
|
field: "subject" | "from" | "size" | "to" | "has-attachment";
|
|
@@ -339,14 +339,14 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
339
339
|
publicKey?: string | undefined;
|
|
340
340
|
verified?: boolean | undefined;
|
|
341
341
|
did?: string | undefined;
|
|
342
|
-
|
|
343
|
-
phone?: string | undefined;
|
|
342
|
+
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
344
343
|
address?: string | undefined;
|
|
344
|
+
phone?: string | undefined;
|
|
345
|
+
_id?: string | undefined;
|
|
345
346
|
birthday?: string | undefined;
|
|
346
347
|
dateOfBirth?: string | undefined;
|
|
347
348
|
isAdult?: boolean | undefined;
|
|
348
349
|
languages?: string[] | undefined;
|
|
349
|
-
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
350
350
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
351
351
|
personalization?: {
|
|
352
352
|
mentionMono: {
|
|
@@ -400,14 +400,14 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
400
400
|
publicKey?: string | undefined;
|
|
401
401
|
verified?: boolean | undefined;
|
|
402
402
|
did?: string | undefined;
|
|
403
|
-
|
|
404
|
-
phone?: string | undefined;
|
|
403
|
+
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
405
404
|
address?: string | undefined;
|
|
405
|
+
phone?: string | undefined;
|
|
406
|
+
_id?: string | undefined;
|
|
406
407
|
birthday?: string | undefined;
|
|
407
408
|
dateOfBirth?: string | undefined;
|
|
408
409
|
isAdult?: boolean | undefined;
|
|
409
410
|
languages?: string[] | undefined;
|
|
410
|
-
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
411
411
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
412
412
|
personalization?: {
|
|
413
413
|
mentionMono: {
|
|
@@ -461,14 +461,14 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
461
461
|
publicKey?: string | undefined;
|
|
462
462
|
verified?: boolean | undefined;
|
|
463
463
|
did?: string | undefined;
|
|
464
|
-
|
|
465
|
-
phone?: string | undefined;
|
|
464
|
+
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
466
465
|
address?: string | undefined;
|
|
466
|
+
phone?: string | undefined;
|
|
467
|
+
_id?: string | undefined;
|
|
467
468
|
birthday?: string | undefined;
|
|
468
469
|
dateOfBirth?: string | undefined;
|
|
469
470
|
isAdult?: boolean | undefined;
|
|
470
471
|
languages?: string[] | undefined;
|
|
471
|
-
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
472
472
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
473
473
|
personalization?: {
|
|
474
474
|
mentionMono: {
|
|
@@ -522,14 +522,14 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
522
522
|
publicKey?: string | undefined;
|
|
523
523
|
verified?: boolean | undefined;
|
|
524
524
|
did?: string | undefined;
|
|
525
|
-
|
|
526
|
-
phone?: string | undefined;
|
|
525
|
+
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
527
526
|
address?: string | undefined;
|
|
527
|
+
phone?: string | undefined;
|
|
528
|
+
_id?: string | undefined;
|
|
528
529
|
birthday?: string | undefined;
|
|
529
530
|
dateOfBirth?: string | undefined;
|
|
530
531
|
isAdult?: boolean | undefined;
|
|
531
532
|
languages?: string[] | undefined;
|
|
532
|
-
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
533
533
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
534
534
|
personalization?: {
|
|
535
535
|
mentionMono: {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -219,9 +219,9 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
219
219
|
}, "strip", z.ZodTypeAny, {
|
|
220
220
|
schemaVersion: 1;
|
|
221
221
|
revision: string;
|
|
222
|
+
reference: string;
|
|
222
223
|
modelId: string;
|
|
223
224
|
revisionId: string;
|
|
224
|
-
reference: string;
|
|
225
225
|
releasedAt: string;
|
|
226
226
|
evaluations: {
|
|
227
227
|
score: string;
|
|
@@ -242,9 +242,9 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
242
242
|
}, {
|
|
243
243
|
schemaVersion: 1;
|
|
244
244
|
revision: string;
|
|
245
|
+
reference: string;
|
|
245
246
|
modelId: string;
|
|
246
247
|
revisionId: string;
|
|
247
|
-
reference: string;
|
|
248
248
|
releasedAt: string;
|
|
249
249
|
retiredAt?: string | undefined;
|
|
250
250
|
artifactDigest?: string | undefined;
|
|
@@ -265,9 +265,9 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
265
265
|
}>, {
|
|
266
266
|
schemaVersion: 1;
|
|
267
267
|
revision: string;
|
|
268
|
+
reference: string;
|
|
268
269
|
modelId: string;
|
|
269
270
|
revisionId: string;
|
|
270
|
-
reference: string;
|
|
271
271
|
releasedAt: string;
|
|
272
272
|
evaluations: {
|
|
273
273
|
score: string;
|
|
@@ -288,9 +288,9 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
288
288
|
}, {
|
|
289
289
|
schemaVersion: 1;
|
|
290
290
|
revision: string;
|
|
291
|
+
reference: string;
|
|
291
292
|
modelId: string;
|
|
292
293
|
revisionId: string;
|
|
293
|
-
reference: string;
|
|
294
294
|
releasedAt: string;
|
|
295
295
|
retiredAt?: string | undefined;
|
|
296
296
|
artifactDigest?: string | undefined;
|
|
@@ -392,9 +392,9 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
392
392
|
revision: {
|
|
393
393
|
schemaVersion: 1;
|
|
394
394
|
revision: string;
|
|
395
|
+
reference: string;
|
|
395
396
|
modelId: string;
|
|
396
397
|
revisionId: string;
|
|
397
|
-
reference: string;
|
|
398
398
|
releasedAt: string;
|
|
399
399
|
evaluations: {
|
|
400
400
|
score: string;
|
|
@@ -446,9 +446,9 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
446
446
|
revision: {
|
|
447
447
|
schemaVersion: 1;
|
|
448
448
|
revision: string;
|
|
449
|
+
reference: string;
|
|
449
450
|
modelId: string;
|
|
450
451
|
revisionId: string;
|
|
451
|
-
reference: string;
|
|
452
452
|
releasedAt: string;
|
|
453
453
|
retiredAt?: string | undefined;
|
|
454
454
|
artifactDigest?: string | undefined;
|
|
@@ -500,9 +500,9 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
500
500
|
revision: {
|
|
501
501
|
schemaVersion: 1;
|
|
502
502
|
revision: string;
|
|
503
|
+
reference: string;
|
|
503
504
|
modelId: string;
|
|
504
505
|
revisionId: string;
|
|
505
|
-
reference: string;
|
|
506
506
|
releasedAt: string;
|
|
507
507
|
evaluations: {
|
|
508
508
|
score: string;
|
|
@@ -554,9 +554,9 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
554
554
|
revision: {
|
|
555
555
|
schemaVersion: 1;
|
|
556
556
|
revision: string;
|
|
557
|
+
reference: string;
|
|
557
558
|
modelId: string;
|
|
558
559
|
revisionId: string;
|
|
559
|
-
reference: string;
|
|
560
560
|
releasedAt: string;
|
|
561
561
|
retiredAt?: string | undefined;
|
|
562
562
|
artifactDigest?: string | undefined;
|
|
@@ -876,9 +876,9 @@ export declare const modelRevisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
876
876
|
}, "strip", z.ZodTypeAny, {
|
|
877
877
|
schemaVersion: 1;
|
|
878
878
|
revision: string;
|
|
879
|
+
reference: string;
|
|
879
880
|
modelId: string;
|
|
880
881
|
revisionId: string;
|
|
881
|
-
reference: string;
|
|
882
882
|
releasedAt: string;
|
|
883
883
|
evaluations: {
|
|
884
884
|
score: string;
|
|
@@ -899,9 +899,9 @@ export declare const modelRevisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
899
899
|
}, {
|
|
900
900
|
schemaVersion: 1;
|
|
901
901
|
revision: string;
|
|
902
|
+
reference: string;
|
|
902
903
|
modelId: string;
|
|
903
904
|
revisionId: string;
|
|
904
|
-
reference: string;
|
|
905
905
|
releasedAt: string;
|
|
906
906
|
retiredAt?: string | undefined;
|
|
907
907
|
artifactDigest?: string | undefined;
|
|
@@ -922,9 +922,9 @@ export declare const modelRevisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
922
922
|
}>, {
|
|
923
923
|
schemaVersion: 1;
|
|
924
924
|
revision: string;
|
|
925
|
+
reference: string;
|
|
925
926
|
modelId: string;
|
|
926
927
|
revisionId: string;
|
|
927
|
-
reference: string;
|
|
928
928
|
releasedAt: string;
|
|
929
929
|
evaluations: {
|
|
930
930
|
score: string;
|
|
@@ -945,9 +945,9 @@ export declare const modelRevisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
945
945
|
}, {
|
|
946
946
|
schemaVersion: 1;
|
|
947
947
|
revision: string;
|
|
948
|
+
reference: string;
|
|
948
949
|
modelId: string;
|
|
949
950
|
revisionId: string;
|
|
950
|
-
reference: string;
|
|
951
951
|
releasedAt: string;
|
|
952
952
|
retiredAt?: string | undefined;
|
|
953
953
|
artifactDigest?: string | undefined;
|
|
@@ -137,7 +137,7 @@ export declare const inboxNaturalSearchResponseSchema: z.ZodObject<{
|
|
|
137
137
|
unread?: boolean | undefined;
|
|
138
138
|
after?: string | undefined;
|
|
139
139
|
before?: string | undefined;
|
|
140
|
-
mailbox?: "
|
|
140
|
+
mailbox?: "trash" | "inbox" | "sent" | "drafts" | "spam" | "archive" | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
subject?: string | undefined;
|
|
143
143
|
from?: string | undefined;
|
|
@@ -148,7 +148,7 @@ export declare const inboxNaturalSearchResponseSchema: z.ZodObject<{
|
|
|
148
148
|
unread?: boolean | undefined;
|
|
149
149
|
after?: string | undefined;
|
|
150
150
|
before?: string | undefined;
|
|
151
|
-
mailbox?: "
|
|
151
|
+
mailbox?: "trash" | "inbox" | "sent" | "drafts" | "spam" | "archive" | undefined;
|
|
152
152
|
}>;
|
|
153
153
|
interpretation: z.ZodString;
|
|
154
154
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -162,7 +162,7 @@ export declare const inboxNaturalSearchResponseSchema: z.ZodObject<{
|
|
|
162
162
|
unread?: boolean | undefined;
|
|
163
163
|
after?: string | undefined;
|
|
164
164
|
before?: string | undefined;
|
|
165
|
-
mailbox?: "
|
|
165
|
+
mailbox?: "trash" | "inbox" | "sent" | "drafts" | "spam" | "archive" | undefined;
|
|
166
166
|
};
|
|
167
167
|
interpretation: string;
|
|
168
168
|
}, {
|
|
@@ -176,7 +176,7 @@ export declare const inboxNaturalSearchResponseSchema: z.ZodObject<{
|
|
|
176
176
|
unread?: boolean | undefined;
|
|
177
177
|
after?: string | undefined;
|
|
178
178
|
before?: string | undefined;
|
|
179
|
-
mailbox?: "
|
|
179
|
+
mailbox?: "trash" | "inbox" | "sent" | "drafts" | "spam" | "archive" | undefined;
|
|
180
180
|
};
|
|
181
181
|
interpretation: string;
|
|
182
182
|
}>;
|