@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,229 @@
|
|
|
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
|
+
// The Zod-free half of this contract lives in `./client/` (`@oxy.so/contracts/client`);
|
|
15
|
+
// it is re-exported here so the root entry carries the whole contract.
|
|
16
|
+
import { CLAIMANT_RELATIONSHIPS, CONTENT_CLAIM_COUNTER_NOTICE_LIMITS, CONTENT_CLAIM_KINDS, CONTENT_CLAIM_LIMITS, CONTENT_CLAIM_REFERENCE_PATTERN, } from './client/contentClaims.js';
|
|
17
|
+
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.js';
|
|
18
|
+
/** Every key a submission's validation can produce, under `contentClaim.errors.*`. */
|
|
19
|
+
export const CONTENT_CLAIM_VALIDATION_KEYS = [
|
|
20
|
+
'contentClaim.errors.kind',
|
|
21
|
+
'contentClaim.errors.contentUrlsRequired',
|
|
22
|
+
'contentClaim.errors.contentUrlsTooMany',
|
|
23
|
+
'contentClaim.errors.contentUrlInvalid',
|
|
24
|
+
'contentClaim.errors.descriptionShort',
|
|
25
|
+
'contentClaim.errors.descriptionLong',
|
|
26
|
+
'contentClaim.errors.originalWorkUrl',
|
|
27
|
+
'contentClaim.errors.name',
|
|
28
|
+
'contentClaim.errors.email',
|
|
29
|
+
'contentClaim.errors.organization',
|
|
30
|
+
'contentClaim.errors.relationship',
|
|
31
|
+
'contentClaim.errors.goodFaith',
|
|
32
|
+
'contentClaim.errors.accurate',
|
|
33
|
+
'contentClaim.errors.signature',
|
|
34
|
+
];
|
|
35
|
+
function isHttpsUrl(value) {
|
|
36
|
+
try {
|
|
37
|
+
const url = new URL(value);
|
|
38
|
+
return url.protocol === 'https:' && url.hostname.length > 0;
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const httpsUrl = (message) => z.string().trim().max(CONTENT_CLAIM_LIMITS.maxUrlLength, message).refine(isHttpsUrl, message);
|
|
45
|
+
/**
|
|
46
|
+
* `POST /content-claims` — a claim, as the claimant sends it. Strict: an
|
|
47
|
+
* unknown key is refused rather than dropped.
|
|
48
|
+
*/
|
|
49
|
+
export const contentClaimSubmissionSchema = z
|
|
50
|
+
.object({
|
|
51
|
+
kind: z.enum(CONTENT_CLAIM_KINDS, { message: 'contentClaim.errors.kind' }),
|
|
52
|
+
contentUrls: z
|
|
53
|
+
.array(httpsUrl('contentClaim.errors.contentUrlInvalid'), {
|
|
54
|
+
message: 'contentClaim.errors.contentUrlsRequired',
|
|
55
|
+
})
|
|
56
|
+
.min(CONTENT_CLAIM_LIMITS.minUrls, 'contentClaim.errors.contentUrlsRequired')
|
|
57
|
+
.max(CONTENT_CLAIM_LIMITS.maxUrls, 'contentClaim.errors.contentUrlsTooMany'),
|
|
58
|
+
description: z
|
|
59
|
+
.string({ message: 'contentClaim.errors.descriptionShort' })
|
|
60
|
+
.trim()
|
|
61
|
+
.min(CONTENT_CLAIM_LIMITS.minDescription, 'contentClaim.errors.descriptionShort')
|
|
62
|
+
.max(CONTENT_CLAIM_LIMITS.maxDescription, 'contentClaim.errors.descriptionLong'),
|
|
63
|
+
originalWorkUrl: httpsUrl('contentClaim.errors.originalWorkUrl').optional(),
|
|
64
|
+
claimant: z
|
|
65
|
+
.object({
|
|
66
|
+
name: z
|
|
67
|
+
.string({ message: 'contentClaim.errors.name' })
|
|
68
|
+
.trim()
|
|
69
|
+
.min(1, 'contentClaim.errors.name')
|
|
70
|
+
.max(CONTENT_CLAIM_LIMITS.maxName, 'contentClaim.errors.name'),
|
|
71
|
+
email: z
|
|
72
|
+
.string({ message: 'contentClaim.errors.email' })
|
|
73
|
+
.trim()
|
|
74
|
+
.email('contentClaim.errors.email')
|
|
75
|
+
.max(CONTENT_CLAIM_LIMITS.maxEmail, 'contentClaim.errors.email'),
|
|
76
|
+
organization: z
|
|
77
|
+
.string({ message: 'contentClaim.errors.organization' })
|
|
78
|
+
.trim()
|
|
79
|
+
.max(CONTENT_CLAIM_LIMITS.maxOrganization, 'contentClaim.errors.organization')
|
|
80
|
+
.optional(),
|
|
81
|
+
relationship: z.enum(CLAIMANT_RELATIONSHIPS, {
|
|
82
|
+
message: 'contentClaim.errors.relationship',
|
|
83
|
+
}),
|
|
84
|
+
}, { message: 'contentClaim.errors.name' })
|
|
85
|
+
.strict(),
|
|
86
|
+
statements: z
|
|
87
|
+
.object({
|
|
88
|
+
goodFaith: z.literal(true, {
|
|
89
|
+
errorMap: () => ({ message: 'contentClaim.errors.goodFaith' }),
|
|
90
|
+
}),
|
|
91
|
+
accurate: z.literal(true, {
|
|
92
|
+
errorMap: () => ({ message: 'contentClaim.errors.accurate' }),
|
|
93
|
+
}),
|
|
94
|
+
}, { message: 'contentClaim.errors.goodFaith' })
|
|
95
|
+
.strict(),
|
|
96
|
+
signature: z
|
|
97
|
+
.string({ message: 'contentClaim.errors.signature' })
|
|
98
|
+
.trim()
|
|
99
|
+
.min(1, 'contentClaim.errors.signature')
|
|
100
|
+
.max(CONTENT_CLAIM_LIMITS.maxName, 'contentClaim.errors.signature'),
|
|
101
|
+
})
|
|
102
|
+
.strict();
|
|
103
|
+
// ---------------------------------------------------------------------------
|
|
104
|
+
// The staff review (`/content-claims` behind the `content:claims` capability)
|
|
105
|
+
// ---------------------------------------------------------------------------
|
|
106
|
+
/** How a target's URL was understood. */
|
|
107
|
+
export const CONTENT_CLAIM_TARGET_RESOLUTIONS = [
|
|
108
|
+
/** An Oxy file: `cloud.oxy.so/<id>`, `/cdn/<id>`, `/assets/<id>…`, a stored key. */
|
|
109
|
+
'file',
|
|
110
|
+
/** A page of an Oxy app or anything else: a person attaches the files it shows. */
|
|
111
|
+
'unresolved',
|
|
112
|
+
];
|
|
113
|
+
/** Who added a target: the claimant's URL, or staff attaching a file by id. */
|
|
114
|
+
export const CONTENT_CLAIM_TARGET_SOURCES = ['claimant', 'staff'];
|
|
115
|
+
/** What the audit trail records. */
|
|
116
|
+
export const CONTENT_CLAIM_EVENT_ACTIONS = [
|
|
117
|
+
'submitted',
|
|
118
|
+
'review_started',
|
|
119
|
+
'targets_attached',
|
|
120
|
+
'targets_blocked',
|
|
121
|
+
'rejected',
|
|
122
|
+
'counter_notice_recorded',
|
|
123
|
+
/** The owner of the blocked content sent a counter-notice themselves (`POST /content-claims/counter-notices`). */
|
|
124
|
+
'counter_notice_submitted',
|
|
125
|
+
'reinstated',
|
|
126
|
+
'upheld',
|
|
127
|
+
'note_added',
|
|
128
|
+
];
|
|
129
|
+
// ---------------------------------------------------------------------------
|
|
130
|
+
// The owner's counter-notice (`POST /content-claims/counter-notices`)
|
|
131
|
+
// ---------------------------------------------------------------------------
|
|
132
|
+
/** Every key a counter-notice's validation can produce, under `contentClaim.counterNotice.errors.*`. */
|
|
133
|
+
export const CONTENT_CLAIM_COUNTER_NOTICE_VALIDATION_KEYS = [
|
|
134
|
+
'contentClaim.counterNotice.errors.claim',
|
|
135
|
+
'contentClaim.counterNotice.errors.reference',
|
|
136
|
+
'contentClaim.counterNotice.errors.claimId',
|
|
137
|
+
'contentClaim.counterNotice.errors.fileIds',
|
|
138
|
+
'contentClaim.counterNotice.errors.name',
|
|
139
|
+
'contentClaim.counterNotice.errors.address',
|
|
140
|
+
'contentClaim.counterNotice.errors.phone',
|
|
141
|
+
'contentClaim.counterNotice.errors.email',
|
|
142
|
+
'contentClaim.counterNotice.errors.materialDescription',
|
|
143
|
+
'contentClaim.counterNotice.errors.materialLocation',
|
|
144
|
+
'contentClaim.counterNotice.errors.explanation',
|
|
145
|
+
'contentClaim.counterNotice.errors.perjury',
|
|
146
|
+
'contentClaim.counterNotice.errors.jurisdiction',
|
|
147
|
+
'contentClaim.counterNotice.errors.serviceOfProcess',
|
|
148
|
+
'contentClaim.counterNotice.errors.disclosure',
|
|
149
|
+
'contentClaim.counterNotice.errors.signature',
|
|
150
|
+
];
|
|
151
|
+
const N = CONTENT_CLAIM_COUNTER_NOTICE_LIMITS;
|
|
152
|
+
const boundedText = (min, max, message) => z.string({ message }).trim().min(min, message).max(max, message);
|
|
153
|
+
const affirmed = (message) => z.literal(true, { errorMap: () => ({ message }) });
|
|
154
|
+
/**
|
|
155
|
+
* `POST /content-claims/counter-notices` — the owner of content a claim took
|
|
156
|
+
* down disputes it (17 U.S.C. § 512(g)(3)). Signed in: the API answers only
|
|
157
|
+
* for files the caller owns.
|
|
158
|
+
*
|
|
159
|
+
* Names the claim by its `reference` (the `OXY-XXXX-XXXX` the owner was
|
|
160
|
+
* emailed), its `claimId`, or the blocked `fileIds` — at least one. With
|
|
161
|
+
* `fileIds` the notice covers exactly those files; without, every one of the
|
|
162
|
+
* caller's files the claim blocked. Strict: an unknown key is refused.
|
|
163
|
+
*/
|
|
164
|
+
export const contentClaimCounterNoticeSchema = z
|
|
165
|
+
.object({
|
|
166
|
+
reference: z
|
|
167
|
+
.string({ message: 'contentClaim.counterNotice.errors.reference' })
|
|
168
|
+
.trim()
|
|
169
|
+
.toUpperCase()
|
|
170
|
+
.regex(CONTENT_CLAIM_REFERENCE_PATTERN, 'contentClaim.counterNotice.errors.reference')
|
|
171
|
+
.optional(),
|
|
172
|
+
claimId: z
|
|
173
|
+
.string({ message: 'contentClaim.counterNotice.errors.claimId' })
|
|
174
|
+
.trim()
|
|
175
|
+
.uuid('contentClaim.counterNotice.errors.claimId')
|
|
176
|
+
.optional(),
|
|
177
|
+
fileIds: z
|
|
178
|
+
.array(boundedText(1, N.maxFileId, 'contentClaim.counterNotice.errors.fileIds'), {
|
|
179
|
+
message: 'contentClaim.counterNotice.errors.fileIds',
|
|
180
|
+
})
|
|
181
|
+
.min(1, 'contentClaim.counterNotice.errors.fileIds')
|
|
182
|
+
.max(N.maxFileIds, 'contentClaim.counterNotice.errors.fileIds')
|
|
183
|
+
.optional(),
|
|
184
|
+
subscriber: z
|
|
185
|
+
.object({
|
|
186
|
+
name: boundedText(1, N.maxName, 'contentClaim.counterNotice.errors.name'),
|
|
187
|
+
address: boundedText(1, N.maxAddress, 'contentClaim.counterNotice.errors.address'),
|
|
188
|
+
phone: boundedText(N.minPhone, N.maxPhone, 'contentClaim.counterNotice.errors.phone').regex(/^\+?[0-9 ().-]+$/, 'contentClaim.counterNotice.errors.phone'),
|
|
189
|
+
email: z
|
|
190
|
+
.string({ message: 'contentClaim.counterNotice.errors.email' })
|
|
191
|
+
.trim()
|
|
192
|
+
.email('contentClaim.counterNotice.errors.email')
|
|
193
|
+
.max(N.maxEmail, 'contentClaim.counterNotice.errors.email'),
|
|
194
|
+
}, { message: 'contentClaim.counterNotice.errors.name' })
|
|
195
|
+
.strict(),
|
|
196
|
+
material: z
|
|
197
|
+
.object({
|
|
198
|
+
/** What was removed. */
|
|
199
|
+
description: boundedText(N.minMaterial, N.maxMaterial, 'contentClaim.counterNotice.errors.materialDescription'),
|
|
200
|
+
/** Where it appeared before it was removed (a URL, or where in an app). */
|
|
201
|
+
location: boundedText(1, N.maxLocation, 'contentClaim.counterNotice.errors.materialLocation'),
|
|
202
|
+
}, { message: 'contentClaim.counterNotice.errors.materialDescription' })
|
|
203
|
+
.strict(),
|
|
204
|
+
/** Why it was a mistake or a misidentification, in the owner's words. */
|
|
205
|
+
explanation: boundedText(N.minExplanation, N.maxExplanation, 'contentClaim.counterNotice.errors.explanation'),
|
|
206
|
+
/** Each of `COUNTER_NOTICE_STATEMENTS`, affirmed. */
|
|
207
|
+
statements: z
|
|
208
|
+
.object({
|
|
209
|
+
perjury: affirmed('contentClaim.counterNotice.errors.perjury'),
|
|
210
|
+
jurisdiction: affirmed('contentClaim.counterNotice.errors.jurisdiction'),
|
|
211
|
+
serviceOfProcess: affirmed('contentClaim.counterNotice.errors.serviceOfProcess'),
|
|
212
|
+
disclosure: affirmed('contentClaim.counterNotice.errors.disclosure'),
|
|
213
|
+
}, { message: 'contentClaim.counterNotice.errors.perjury' })
|
|
214
|
+
.strict(),
|
|
215
|
+
/** The owner's full legal name, typed as their signature. */
|
|
216
|
+
signature: boundedText(1, N.maxSignature, 'contentClaim.counterNotice.errors.signature'),
|
|
217
|
+
})
|
|
218
|
+
.strict()
|
|
219
|
+
.superRefine((value, ctx) => {
|
|
220
|
+
if (value.reference === undefined &&
|
|
221
|
+
value.claimId === undefined &&
|
|
222
|
+
value.fileIds === undefined) {
|
|
223
|
+
ctx.addIssue({
|
|
224
|
+
code: z.ZodIssueCode.custom,
|
|
225
|
+
path: ['reference'],
|
|
226
|
+
message: 'contentClaim.counterNotice.errors.claim',
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
});
|
package/dist/esm/index.js
CHANGED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content claims (ADR 0043 D10) — the constants of the public "Report content
|
|
3
|
+
* / rights claim" intake and of a claim's review, without Zod. Schemas:
|
|
4
|
+
* `../contentClaims.ts`.
|
|
5
|
+
*
|
|
6
|
+
* Part of `@oxy.so/contracts/client`: never import `zod` here (see `./check.ts`).
|
|
7
|
+
*/
|
|
8
|
+
/** What a claim asserts. */
|
|
9
|
+
export declare const CONTENT_CLAIM_KINDS: readonly ["copyright", "trademark", "privacy", "illegal_content", "other"];
|
|
10
|
+
export type ContentClaimKind = (typeof CONTENT_CLAIM_KINDS)[number];
|
|
11
|
+
/** Who the claimant is to the content. */
|
|
12
|
+
export declare const CLAIMANT_RELATIONSHIPS: readonly ["rights_holder", "authorized_agent", "affected_person", "other"];
|
|
13
|
+
export type ClaimantRelationship = (typeof CLAIMANT_RELATIONSHIPS)[number];
|
|
14
|
+
/** The bounds of a submission. The website fills its validation messages from these. */
|
|
15
|
+
export declare const CONTENT_CLAIM_LIMITS: {
|
|
16
|
+
readonly minUrls: 1;
|
|
17
|
+
readonly maxUrls: 20;
|
|
18
|
+
readonly maxUrlLength: 2048;
|
|
19
|
+
readonly minDescription: 20;
|
|
20
|
+
readonly maxDescription: 5000;
|
|
21
|
+
readonly maxName: 200;
|
|
22
|
+
readonly maxOrganization: 200;
|
|
23
|
+
readonly maxEmail: 254;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Where a claim is in its review.
|
|
27
|
+
*
|
|
28
|
+
* `received → reviewing → actioned | rejected`; an actioned claim can be
|
|
29
|
+
* answered by the content's owner (`counter_noticed`), which ends either in
|
|
30
|
+
* `reinstated` (the content is served again) or `upheld` (it stays blocked).
|
|
31
|
+
* A claim can also be rejected straight from `received`.
|
|
32
|
+
*/
|
|
33
|
+
export declare const CONTENT_CLAIM_STATES: readonly ["received", "reviewing", "actioned", "rejected", "counter_noticed", "reinstated", "upheld"];
|
|
34
|
+
export type ContentClaimState = (typeof CONTENT_CLAIM_STATES)[number];
|
|
35
|
+
/** The states in which a claim is still open: its evidence is kept and its blocks can change. */
|
|
36
|
+
export declare const OPEN_CONTENT_CLAIM_STATES: readonly ["received", "reviewing", "actioned", "counter_noticed"];
|
|
37
|
+
/** The states a claim ends in. */
|
|
38
|
+
export declare const CLOSED_CONTENT_CLAIM_STATES: readonly ["rejected", "reinstated", "upheld"];
|
|
39
|
+
/**
|
|
40
|
+
* The kinds whose claimant asserts a right in a work or a mark. Only these
|
|
41
|
+
* carry the link to the original — a privacy or illegal-content report
|
|
42
|
+
* asserts no ownership.
|
|
43
|
+
*/
|
|
44
|
+
export declare function isRightsClaim(kind: ContentClaimKind): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* A request to erase the claimant's OWN personal data (GDPR art. 17): a
|
|
47
|
+
* privacy claim made by the person it is about. Oxy must answer it within one
|
|
48
|
+
* month (art. 12(3)); the claim carries that deadline.
|
|
49
|
+
*/
|
|
50
|
+
export declare function isErasureRequest(kind: ContentClaimKind, relationship: ClaimantRelationship): boolean;
|
|
51
|
+
/** Days Oxy has to answer an erasure request ({@link isErasureRequest}). */
|
|
52
|
+
export declare const ERASURE_REQUEST_DEADLINE_DAYS = 30;
|
|
53
|
+
/**
|
|
54
|
+
* Stable error codes a takedown produces elsewhere in the API. A file whose
|
|
55
|
+
* bytes are on the blocklist cannot be uploaded, imported or copied by anyone
|
|
56
|
+
* (HTTP 451).
|
|
57
|
+
*/
|
|
58
|
+
export declare const CONTENT_CLAIM_ERROR_CODES: {
|
|
59
|
+
/** The submission failed validation; `fields` names each problem. */
|
|
60
|
+
readonly invalid: "CONTENT_CLAIM_INVALID";
|
|
61
|
+
/** These exact bytes were taken down after a claim and cannot be stored again. */
|
|
62
|
+
readonly contentBlocked: "CONTENT_BLOCKED";
|
|
63
|
+
/** A counter-notice failed validation; `fields` names each problem. */
|
|
64
|
+
readonly counterNoticeInvalid: "CONTENT_CLAIM_COUNTER_NOTICE_INVALID";
|
|
65
|
+
/** The files named are blocked by more than one claim: name the claim's reference. */
|
|
66
|
+
readonly counterNoticeAmbiguous: "CONTENT_CLAIM_COUNTER_NOTICE_AMBIGUOUS";
|
|
67
|
+
/** This account already sent a counter-notice for this claim. */
|
|
68
|
+
readonly counterNoticeExists: "CONTENT_CLAIM_COUNTER_NOTICE_EXISTS";
|
|
69
|
+
};
|
|
70
|
+
export type ContentClaimErrorCode = (typeof CONTENT_CLAIM_ERROR_CODES)[keyof typeof CONTENT_CLAIM_ERROR_CODES];
|
|
71
|
+
/**
|
|
72
|
+
* A claim's reference as the claimant and the owner are sent it:
|
|
73
|
+
* `OXY-XXXX-XXXX`, Crockford base32 (no I, L, O or U).
|
|
74
|
+
*/
|
|
75
|
+
export declare const CONTENT_CLAIM_REFERENCE_PATTERN: RegExp;
|
|
76
|
+
/** The bounds of an owner's counter-notice. The website fills its validation messages from these. */
|
|
77
|
+
export declare const CONTENT_CLAIM_COUNTER_NOTICE_LIMITS: {
|
|
78
|
+
readonly maxFileIds: 50;
|
|
79
|
+
readonly maxFileId: 64;
|
|
80
|
+
readonly maxName: 200;
|
|
81
|
+
readonly maxAddress: 500;
|
|
82
|
+
readonly minPhone: 5;
|
|
83
|
+
readonly maxPhone: 40;
|
|
84
|
+
readonly maxEmail: 254;
|
|
85
|
+
readonly minMaterial: 10;
|
|
86
|
+
readonly maxMaterial: 2000;
|
|
87
|
+
readonly maxLocation: 2048;
|
|
88
|
+
readonly minExplanation: 20;
|
|
89
|
+
readonly maxExplanation: 5000;
|
|
90
|
+
readonly maxSignature: 200;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* The statements an owner's counter-notice makes, word for word — what the
|
|
94
|
+
* form shows beside each box (17 U.S.C. § 512(g)(3)(C) and (D), and what Oxy
|
|
95
|
+
* does with the notice). The API records {@link COUNTER_NOTICE_STATEMENT_VERSION}
|
|
96
|
+
* with every notice, so the wording a person agreed to can always be told
|
|
97
|
+
* apart from a later one. Change the text only together with the version.
|
|
98
|
+
*/
|
|
99
|
+
export declare const COUNTER_NOTICE_STATEMENTS: {
|
|
100
|
+
readonly perjury: "I swear, under penalty of perjury, that I have a good faith belief that the material identified above was removed or disabled as a result of a mistake or misidentification of the material to be removed or disabled.";
|
|
101
|
+
readonly jurisdiction: "I consent to the jurisdiction of the Federal District Court for the judicial district in which my address is located or, if my address is outside of the United States, any judicial district in which Oxy may be found.";
|
|
102
|
+
readonly serviceOfProcess: "I will accept service of process from the person who provided the notification of the claimed infringement, or an agent of such person.";
|
|
103
|
+
readonly disclosure: "I understand that Oxy sends a copy of this counter-notice, including my name and contact details, to the person who made the claim, as the law requires.";
|
|
104
|
+
};
|
|
105
|
+
/** The version of {@link COUNTER_NOTICE_STATEMENTS} in force. */
|
|
106
|
+
export declare const COUNTER_NOTICE_STATEMENT_VERSION = "2026-10-16";
|
|
@@ -35,3 +35,4 @@ export { publicApplicationCheck } from './sessionStatus';
|
|
|
35
35
|
export { EMAIL_ACCOUNTS_MAX, EMAIL_SIGNIN_CHOICE_TTL_MS, EMAIL_SIGNIN_LINK_TTL_MS, EMAIL_SIGNIN_LONG_CODE_ALPHABET, EMAIL_SIGNIN_LONG_CODE_LENGTH, PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH, REAUTH_ACTIONS, SIGNIN_SECOND_FACTOR_MAX_ATTEMPTS, SIGNIN_SECOND_FACTOR_TTL_MS, SIGN_IN_ERROR_CODES, TOTP_BACKUP_CODE_COUNT, TOTP_DIGITS, TOTP_PERIOD_SECONDS, emailSignInChooseAccountCheck, emailSignInLinkResponseCheck, emailSignInPendingCheck, emailSignInStartResponseCheck, isEmailSignInChooseAccount, isSecondFactorRequired, normalizeEmailSignInCode, reauthProofCheck, secondFactorRequiredCheck, signInMethodsCheck, totpBackupCodesResponseCheck, totpEnrollResponseCheck, } from './signIn';
|
|
36
36
|
export { BOT_USERNAME_INVALID_MESSAGE, BOT_USERNAME_SUFFIX, NUMERIC_USERNAME_MESSAGE, RESERVED_USERNAMES, RESERVED_USERNAME_MESSAGE, USERNAME_INVALID_MESSAGE, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, USERNAME_PATTERN_SOURCE, applyBotUsernameSuffix, botUsernameCheck, stripDisallowedUsernameCharacters, usernameCheck, usernameCheckForAccountKind, } from './username';
|
|
37
37
|
export { userNameCheck } from './userResponse';
|
|
38
|
+
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 './contentClaims';
|
|
@@ -21,7 +21,7 @@ export declare const profileAccessInputCheck: Check<{
|
|
|
21
21
|
}>;
|
|
22
22
|
export declare const profileAccessDecisionCheck: Check<{
|
|
23
23
|
allowed: boolean;
|
|
24
|
-
reason: "owner" | "unavailable" | "
|
|
24
|
+
reason: "owner" | "unavailable" | "blocked" | "private" | "public";
|
|
25
25
|
policyVersion: "1";
|
|
26
26
|
}>;
|
|
27
27
|
export declare const supervisionInvitationCheck: Check<{
|