@ttt-productions/ttt-core 0.41.0 → 0.43.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/doc-schemas/account-deletion.d.ts +44 -0
- package/dist/doc-schemas/account-deletion.d.ts.map +1 -1
- package/dist/doc-schemas/account-deletion.js +50 -0
- package/dist/doc-schemas/account-deletion.js.map +1 -1
- package/dist/doc-schemas/ncii/cases.d.ts +2 -0
- package/dist/doc-schemas/ncii/cases.d.ts.map +1 -1
- package/dist/doc-schemas/ncii/requests.d.ts +79 -11
- package/dist/doc-schemas/ncii/requests.d.ts.map +1 -1
- package/dist/doc-schemas/ncii/requests.js +46 -12
- package/dist/doc-schemas/ncii/requests.js.map +1 -1
- package/dist/doc-schemas/registry.d.ts +56 -1
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/doc-schemas/registry.js +3 -0
- package/dist/doc-schemas/registry.js.map +1 -1
- package/dist/doc-schemas/safety/case.d.ts +14 -1
- package/dist/doc-schemas/safety/case.d.ts.map +1 -1
- package/dist/doc-schemas/safety/case.js +12 -1
- package/dist/doc-schemas/safety/case.js.map +1 -1
- package/dist/doc-schemas/safety/foundation.d.ts +12 -1
- package/dist/doc-schemas/safety/foundation.d.ts.map +1 -1
- package/dist/doc-schemas/safety/foundation.js +12 -1
- package/dist/doc-schemas/safety/foundation.js.map +1 -1
- package/dist/doc-schemas/safety/report.d.ts +2 -0
- package/dist/doc-schemas/safety/report.d.ts.map +1 -1
- package/dist/doc-schemas/safety/report.js +7 -1
- package/dist/doc-schemas/safety/report.js.map +1 -1
- package/dist/paths/collections.d.ts +1 -0
- package/dist/paths/collections.d.ts.map +1 -1
- package/dist/paths/collections.js +4 -0
- package/dist/paths/collections.js.map +1 -1
- package/dist/paths/path-builders.d.ts +1 -0
- package/dist/paths/path-builders.d.ts.map +1 -1
- package/dist/paths/path-builders.js +3 -0
- package/dist/paths/path-builders.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,10 +5,39 @@ export declare const AccountDeletionRequestStatusSchema: z.ZodEnum<{
|
|
|
5
5
|
completed: "completed";
|
|
6
6
|
cancelled: "cancelled";
|
|
7
7
|
scrubbing: "scrubbing";
|
|
8
|
+
leased: "leased";
|
|
8
9
|
parkedOnHold: "parkedOnHold";
|
|
9
10
|
superseded: "superseded";
|
|
10
11
|
}>;
|
|
11
12
|
export type AccountDeletionRequestStatus = z.infer<typeof AccountDeletionRequestStatusSchema>;
|
|
13
|
+
/**
|
|
14
|
+
* [C-02] The erasure LEASE / epoch token — the race fence between the destructive
|
|
15
|
+
* scrub and a mid-scrub safety hold.
|
|
16
|
+
*
|
|
17
|
+
* The scrub acquires this transactionally ONLY when the account owns no active
|
|
18
|
+
* blocking hold; it then re-verifies the SAME `epoch` inside every destructive
|
|
19
|
+
* Firestore transaction and immediately before AND after each non-transactional
|
|
20
|
+
* external delete (Auth/Storage). `commitSafetyHold` reads this lease and, when it
|
|
21
|
+
* is `active`, REVOKES it (sets `revokedByHold`/`revokedAt`, status → `parkedOnHold`)
|
|
22
|
+
* in the SAME transaction that commits the hold — so a hold deterministically wins
|
|
23
|
+
* the race and the scrub, finding its epoch revoked on the next check, aborts into
|
|
24
|
+
* a recoverable parked state without finishing the destruction.
|
|
25
|
+
*/
|
|
26
|
+
export declare const ErasureLeaseV1Schema: z.ZodObject<{
|
|
27
|
+
epoch: z.ZodNumber;
|
|
28
|
+
state: z.ZodEnum<{
|
|
29
|
+
active: "active";
|
|
30
|
+
released: "released";
|
|
31
|
+
revoked: "revoked";
|
|
32
|
+
}>;
|
|
33
|
+
acquiredAt: z.ZodNumber;
|
|
34
|
+
expiresAt: z.ZodNumber;
|
|
35
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
36
|
+
revokedByHoldRefId: z.ZodOptional<z.ZodString>;
|
|
37
|
+
revokedAt: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
releasedAt: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
}, z.core.$strict>;
|
|
40
|
+
export type ErasureLeaseV1 = z.infer<typeof ErasureLeaseV1Schema>;
|
|
12
41
|
/** `accountDeletionRequests/{uid}` — one per user; doc id IS the uid. */
|
|
13
42
|
export declare const AccountDeletionRequestV1Schema: z.ZodObject<{
|
|
14
43
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -18,6 +47,7 @@ export declare const AccountDeletionRequestV1Schema: z.ZodObject<{
|
|
|
18
47
|
completed: "completed";
|
|
19
48
|
cancelled: "cancelled";
|
|
20
49
|
scrubbing: "scrubbing";
|
|
50
|
+
leased: "leased";
|
|
21
51
|
parkedOnHold: "parkedOnHold";
|
|
22
52
|
superseded: "superseded";
|
|
23
53
|
}>;
|
|
@@ -32,6 +62,20 @@ export declare const AccountDeletionRequestV1Schema: z.ZodObject<{
|
|
|
32
62
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
33
63
|
supersededAt: z.ZodOptional<z.ZodNumber>;
|
|
34
64
|
supersededReason: z.ZodOptional<z.ZodString>;
|
|
65
|
+
erasureLease: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
epoch: z.ZodNumber;
|
|
67
|
+
state: z.ZodEnum<{
|
|
68
|
+
active: "active";
|
|
69
|
+
released: "released";
|
|
70
|
+
revoked: "revoked";
|
|
71
|
+
}>;
|
|
72
|
+
acquiredAt: z.ZodNumber;
|
|
73
|
+
expiresAt: z.ZodNumber;
|
|
74
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
75
|
+
revokedByHoldRefId: z.ZodOptional<z.ZodString>;
|
|
76
|
+
revokedAt: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
releasedAt: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
}, z.core.$strict>>;
|
|
35
79
|
createdAt: z.ZodNumber;
|
|
36
80
|
updatedAt: z.ZodNumber;
|
|
37
81
|
}, z.core.$strict>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-deletion.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/account-deletion.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account-deletion.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/account-deletion.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,gDAAgD;AAChD,eAAO,MAAM,kCAAkC;;;;;;;;EAU7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;kBAmBtB,CAAC;AACZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,yEAAyE;AACzE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA0BhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -14,16 +14,63 @@
|
|
|
14
14
|
//
|
|
15
15
|
// The scrub itself deletes/anonymizes data across many collections; this doc is
|
|
16
16
|
// ONLY the request lifecycle + the worker's resumable cursor.
|
|
17
|
+
//
|
|
18
|
+
// [C-02] Erasure-vs-safety-hold race fence. The destructive scrub and a safety
|
|
19
|
+
// hold landing mid-scrub race over the SAME account. The fence is an epoch LEASE
|
|
20
|
+
// stamped on THIS doc (`erasureLease`): the scrub transactionally acquires the
|
|
21
|
+
// lease ONLY when the account owns no active blocking hold; every destructive
|
|
22
|
+
// write re-checks the SAME epoch in its own transaction; and `commitSafetyHold`
|
|
23
|
+
// (the SINGLE shared hold authority) reads this doc's live lease and PARKS the
|
|
24
|
+
// erasure (revoking the epoch) before committing a hold against a leased account.
|
|
25
|
+
// A revoked epoch makes every still-running destructive step a no-op. The lease
|
|
26
|
+
// lives HERE — not a parallel safety-only deletion subsystem — so the one shared
|
|
27
|
+
// hold/destructive contract owns the fence (architectural-preferences Rule 3).
|
|
17
28
|
import { z } from 'zod';
|
|
18
29
|
/** Lifecycle of an account-deletion request. */
|
|
19
30
|
export const AccountDeletionRequestStatusSchema = z.enum([
|
|
20
31
|
'pending', // grace window running; user can still cancel by logging in
|
|
21
32
|
'cancelled', // user cancelled (logged back in) before the window elapsed
|
|
22
33
|
'scrubbing', // the scrub worker has started the anonymize-in-place erasure
|
|
34
|
+
// [C-02] the scrub holds an ACTIVE erasure lease and is mid-destruction. A hold
|
|
35
|
+
// landing now revokes the lease (→ parkedOnHold) so the scrub aborts deterministically.
|
|
36
|
+
'leased',
|
|
23
37
|
'parkedOnHold', // erasure deferred — a blocking safety hold covers the user's data
|
|
24
38
|
'completed', // erasure finished
|
|
25
39
|
'superseded', // overridden by a ban-for-cause / evidence-preservation outcome
|
|
26
40
|
]);
|
|
41
|
+
/**
|
|
42
|
+
* [C-02] The erasure LEASE / epoch token — the race fence between the destructive
|
|
43
|
+
* scrub and a mid-scrub safety hold.
|
|
44
|
+
*
|
|
45
|
+
* The scrub acquires this transactionally ONLY when the account owns no active
|
|
46
|
+
* blocking hold; it then re-verifies the SAME `epoch` inside every destructive
|
|
47
|
+
* Firestore transaction and immediately before AND after each non-transactional
|
|
48
|
+
* external delete (Auth/Storage). `commitSafetyHold` reads this lease and, when it
|
|
49
|
+
* is `active`, REVOKES it (sets `revokedByHold`/`revokedAt`, status → `parkedOnHold`)
|
|
50
|
+
* in the SAME transaction that commits the hold — so a hold deterministically wins
|
|
51
|
+
* the race and the scrub, finding its epoch revoked on the next check, aborts into
|
|
52
|
+
* a recoverable parked state without finishing the destruction.
|
|
53
|
+
*/
|
|
54
|
+
export const ErasureLeaseV1Schema = z
|
|
55
|
+
.object({
|
|
56
|
+
/** Monotonic acquisition token. The "live lease" identity: every destructive step
|
|
57
|
+
* re-reads the doc and proceeds ONLY if this still equals the epoch it acquired. */
|
|
58
|
+
epoch: z.number().int().nonnegative(),
|
|
59
|
+
/** 'active' = the scrub holds the lease; 'revoked' = a hold reclaimed it mid-scrub
|
|
60
|
+
* (the scrub must abort); 'released' = the scrub finished/relinquished cleanly. */
|
|
61
|
+
state: z.enum(['active', 'revoked', 'released']),
|
|
62
|
+
acquiredAt: z.number(),
|
|
63
|
+
/** Staleness boundary. A still-`active` lease past this is presumed crashed and may
|
|
64
|
+
* be safely superseded by a fresh acquisition (idempotent retry / crash recovery). */
|
|
65
|
+
expiresAt: z.number(),
|
|
66
|
+
/** Last destructive phase the scrub reached under this epoch (observability + recovery). */
|
|
67
|
+
phase: z.string().optional(),
|
|
68
|
+
/** Set when a hold revoked the lease — the caseId/refId of the winning hold (audit trail). */
|
|
69
|
+
revokedByHoldRefId: z.string().min(1).optional(),
|
|
70
|
+
revokedAt: z.number().optional(),
|
|
71
|
+
releasedAt: z.number().optional(),
|
|
72
|
+
})
|
|
73
|
+
.strict();
|
|
27
74
|
/** `accountDeletionRequests/{uid}` — one per user; doc id IS the uid. */
|
|
28
75
|
export const AccountDeletionRequestV1Schema = z
|
|
29
76
|
.object({
|
|
@@ -45,6 +92,9 @@ export const AccountDeletionRequestV1Schema = z
|
|
|
45
92
|
completedAt: z.number().optional(),
|
|
46
93
|
supersededAt: z.number().optional(),
|
|
47
94
|
supersededReason: z.string().optional(),
|
|
95
|
+
// [C-02] the erasure-vs-hold race fence (see ErasureLeaseV1). Absent until the
|
|
96
|
+
// scrub first acquires the lease; thereafter it carries the live epoch + state.
|
|
97
|
+
erasureLease: ErasureLeaseV1Schema.optional(),
|
|
48
98
|
createdAt: z.number(),
|
|
49
99
|
updatedAt: z.number(),
|
|
50
100
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-deletion.js","sourceRoot":"","sources":["../../src/doc-schemas/account-deletion.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,EAAE;AACF,6EAA6E;AAC7E,gFAAgF;AAChF,iFAAiF;AACjF,6EAA6E;AAC7E,mEAAmE;AACnE,iFAAiF;AACjF,qEAAqE;AACrE,iFAAiF;AACjF,iFAAiF;AACjF,kFAAkF;AAClF,6CAA6C;AAC7C,EAAE;AACF,gFAAgF;AAChF,8DAA8D;
|
|
1
|
+
{"version":3,"file":"account-deletion.js","sourceRoot":"","sources":["../../src/doc-schemas/account-deletion.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,EAAE;AACF,6EAA6E;AAC7E,gFAAgF;AAChF,iFAAiF;AACjF,6EAA6E;AAC7E,mEAAmE;AACnE,iFAAiF;AACjF,qEAAqE;AACrE,iFAAiF;AACjF,iFAAiF;AACjF,kFAAkF;AAClF,6CAA6C;AAC7C,EAAE;AACF,gFAAgF;AAChF,8DAA8D;AAC9D,EAAE;AACF,+EAA+E;AAC/E,iFAAiF;AACjF,+EAA+E;AAC/E,8EAA8E;AAC9E,gFAAgF;AAChF,+EAA+E;AAC/E,kFAAkF;AAClF,gFAAgF;AAChF,iFAAiF;AACjF,+EAA+E;AAE/E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,gDAAgD;AAChD,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC;IACvD,SAAS,EAAE,4DAA4D;IACvE,WAAW,EAAE,4DAA4D;IACzE,WAAW,EAAE,8DAA8D;IAC3E,gFAAgF;IAChF,wFAAwF;IACxF,QAAQ;IACR,cAAc,EAAE,mEAAmE;IACnF,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,gEAAgE;CAC/E,CAAC,CAAC;AAGH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,CAAC;IACN;yFACqF;IACrF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC;wFACoF;IACpF,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,U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AC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,+EAA+E;IAC/E,gFAAgF;IAChF,YAAY,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC7C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -20,10 +20,12 @@ export declare const NciiCaseV1Schema: z.ZodObject<{
|
|
|
20
20
|
likeness: "likeness";
|
|
21
21
|
}>;
|
|
22
22
|
internalStatus: z.ZodEnum<{
|
|
23
|
+
failed: "failed";
|
|
23
24
|
rejected: "rejected";
|
|
24
25
|
removed: "removed";
|
|
25
26
|
open: "open";
|
|
26
27
|
removalInProgress: "removalInProgress";
|
|
28
|
+
processing: "processing";
|
|
27
29
|
closed: "closed";
|
|
28
30
|
}>;
|
|
29
31
|
childSafetyLinkStatus: z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cases.d.ts","sourceRoot":"","sources":["../../../src/doc-schemas/ncii/cases.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,oDAAoD;AACpD,eAAO,MAAM,kBAAkB;;;EAA+B,CAAC;AAC/D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;;;gCAKgC;AAChC,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"cases.d.ts","sourceRoot":"","sources":["../../../src/doc-schemas/ncii/cases.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,oDAAoD;AACpD,eAAO,MAAM,kBA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;;;;;kBAWzB,CAAC;AACZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -100,12 +100,60 @@ export declare const TakeItDownElectronicSignatureV1Schema: z.ZodObject<{
|
|
|
100
100
|
}>;
|
|
101
101
|
}, z.core.$strict>;
|
|
102
102
|
export type TakeItDownElectronicSignatureV1 = z.infer<typeof TakeItDownElectronicSignatureV1Schema>;
|
|
103
|
+
/** [H-02] Server-owned scan status for the optional authority-proof photo.
|
|
104
|
+
* Written by `onNciiEvidenceUploaded` when the authority-evidence prefix is
|
|
105
|
+
* matched. `pending` until the scan resolves; `clean` = safe for operator
|
|
106
|
+
* review; `matched` = PhotoDNA hit (converges to child-safety path); `rejected`
|
|
107
|
+
* = spoof/magic-byte rejection; `unavailable` = scan could not produce a
|
|
108
|
+
* verdict (fail-closed until resolved). Absence of the photo leaves the status
|
|
109
|
+
* absent — operators must not be shown/allowed to act on proof until `clean`. */
|
|
110
|
+
export declare const AuthorityProofScanStatusSchema: z.ZodEnum<{
|
|
111
|
+
pending: "pending";
|
|
112
|
+
rejected: "rejected";
|
|
113
|
+
clean: "clean";
|
|
114
|
+
matched: "matched";
|
|
115
|
+
unavailable: "unavailable";
|
|
116
|
+
}>;
|
|
117
|
+
export type AuthorityProofScanStatus = z.infer<typeof AuthorityProofScanStatusSchema>;
|
|
118
|
+
/** [H-02] Server-owned authority-proof scan state. Embedded on the authorized-
|
|
119
|
+
* representative block; written by the `onNciiEvidenceUploaded` trigger (never
|
|
120
|
+
* by the client). Present only when an authority-proof photo was uploaded. */
|
|
121
|
+
export declare const AuthorityProofScanStateV1Schema: z.ZodObject<{
|
|
122
|
+
scanStatus: z.ZodEnum<{
|
|
123
|
+
pending: "pending";
|
|
124
|
+
rejected: "rejected";
|
|
125
|
+
clean: "clean";
|
|
126
|
+
matched: "matched";
|
|
127
|
+
unavailable: "unavailable";
|
|
128
|
+
}>;
|
|
129
|
+
objectGeneration: z.ZodString;
|
|
130
|
+
objectHash: z.ZodString;
|
|
131
|
+
scannedAt: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
}, z.core.$strict>;
|
|
133
|
+
export type AuthorityProofScanStateV1 = z.infer<typeof AuthorityProofScanStateV1Schema>;
|
|
103
134
|
/** The authorized-representative block — present only for an
|
|
104
|
-
* `authorizedRepresentative` requester.
|
|
135
|
+
* `authorizedRepresentative` requester.
|
|
136
|
+
* [H-03] `authorityCertification` is a required good-faith attestation of
|
|
137
|
+
* authority; `authorityEvidenceRef` + `authorityProofScan` are OPTIONAL
|
|
138
|
+
* (presence is supporting material; absence never blocks completeness or the
|
|
139
|
+
* 48h clock). */
|
|
105
140
|
export declare const TakeItDownAuthorizedRepresentativeV1Schema: z.ZodObject<{
|
|
106
141
|
representedPersonName: z.ZodString;
|
|
107
142
|
authorityBasis: z.ZodString;
|
|
143
|
+
authorityCertification: z.ZodBoolean;
|
|
108
144
|
authorityEvidenceRef: z.ZodOptional<z.ZodString>;
|
|
145
|
+
authorityProofScan: z.ZodOptional<z.ZodObject<{
|
|
146
|
+
scanStatus: z.ZodEnum<{
|
|
147
|
+
pending: "pending";
|
|
148
|
+
rejected: "rejected";
|
|
149
|
+
clean: "clean";
|
|
150
|
+
matched: "matched";
|
|
151
|
+
unavailable: "unavailable";
|
|
152
|
+
}>;
|
|
153
|
+
objectGeneration: z.ZodString;
|
|
154
|
+
objectHash: z.ZodString;
|
|
155
|
+
scannedAt: z.ZodOptional<z.ZodNumber>;
|
|
156
|
+
}, z.core.$strict>>;
|
|
109
157
|
}, z.core.$strict>;
|
|
110
158
|
export type TakeItDownAuthorizedRepresentativeV1 = z.infer<typeof TakeItDownAuthorizedRepresentativeV1Schema>;
|
|
111
159
|
/** `takeItDownRequests/{requestId}/private/requester` = TakeItDownRequesterPrivateV1.
|
|
@@ -127,13 +175,25 @@ export declare const TakeItDownRequesterPrivateV1Schema: z.ZodObject<{
|
|
|
127
175
|
authorizedRepresentative: z.ZodOptional<z.ZodObject<{
|
|
128
176
|
representedPersonName: z.ZodString;
|
|
129
177
|
authorityBasis: z.ZodString;
|
|
178
|
+
authorityCertification: z.ZodBoolean;
|
|
130
179
|
authorityEvidenceRef: z.ZodOptional<z.ZodString>;
|
|
180
|
+
authorityProofScan: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
scanStatus: z.ZodEnum<{
|
|
182
|
+
pending: "pending";
|
|
183
|
+
rejected: "rejected";
|
|
184
|
+
clean: "clean";
|
|
185
|
+
matched: "matched";
|
|
186
|
+
unavailable: "unavailable";
|
|
187
|
+
}>;
|
|
188
|
+
objectGeneration: z.ZodString;
|
|
189
|
+
objectHash: z.ZodString;
|
|
190
|
+
scannedAt: z.ZodOptional<z.ZodNumber>;
|
|
191
|
+
}, z.core.$strict>>;
|
|
131
192
|
}, z.core.$strict>>;
|
|
132
193
|
nonconsentStatement: z.ZodString;
|
|
133
194
|
supportingFacts: z.ZodString;
|
|
134
195
|
goodFaithCertification: z.ZodBoolean;
|
|
135
196
|
accuracyCertification: z.ZodOptional<z.ZodBoolean>;
|
|
136
|
-
authorityCertification: z.ZodOptional<z.ZodBoolean>;
|
|
137
197
|
targetLocator: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
138
198
|
kind: z.ZodLiteral<"mediaAsset">;
|
|
139
199
|
mediaAssetId: z.ZodString;
|
|
@@ -219,6 +279,7 @@ export declare const TakeItDownSubmissionV1Schema: z.ZodObject<{
|
|
|
219
279
|
requesterRole: "requesterRole";
|
|
220
280
|
electronicSignature: "electronicSignature";
|
|
221
281
|
authorityBasis: "authorityBasis";
|
|
282
|
+
authorityCertification: "authorityCertification";
|
|
222
283
|
authorityEvidence: "authorityEvidence";
|
|
223
284
|
targetLocator: "targetLocator";
|
|
224
285
|
nonconsentStatement: "nonconsentStatement";
|
|
@@ -354,6 +415,7 @@ export declare const TakeItDownPublicStatusV1Schema: z.ZodObject<{
|
|
|
354
415
|
requesterRole: "requesterRole";
|
|
355
416
|
electronicSignature: "electronicSignature";
|
|
356
417
|
authorityBasis: "authorityBasis";
|
|
418
|
+
authorityCertification: "authorityCertification";
|
|
357
419
|
authorityEvidence: "authorityEvidence";
|
|
358
420
|
targetLocator: "targetLocator";
|
|
359
421
|
nonconsentStatement: "nonconsentStatement";
|
|
@@ -426,26 +488,32 @@ export declare const NciiRetainedEvidenceInventoryV1Schema: z.ZodObject<{
|
|
|
426
488
|
export type NciiRetainedEvidenceInventoryV1 = z.infer<typeof NciiRetainedEvidenceInventoryV1Schema>;
|
|
427
489
|
/** [C-02] Required field codes for a `depictedPerson` request (counsel-ratified). */
|
|
428
490
|
export declare const REQUIRED_FIELD_CODES_DEPICTED_PERSON: readonly ["requesterName", "requesterRole", "electronicSignature", "targetLocator", "nonconsentStatement", "goodFaithCertification"];
|
|
429
|
-
/** [C-02] Required field codes for an `authorizedRepresentative` request =
|
|
430
|
-
* depicted-person set ∪ { authorityBasis,
|
|
431
|
-
|
|
491
|
+
/** [C-02 / H-03] Required field codes for an `authorizedRepresentative` request =
|
|
492
|
+
* depicted-person set ∪ { authorityBasis, authorityCertification }.
|
|
493
|
+
* `authorityEvidence` (the optional documentary photo) is NOT required;
|
|
494
|
+
* absence or pending scan never blocks completeness or the 48h clock. */
|
|
495
|
+
export declare const REQUIRED_FIELD_CODES_AUTHORIZED_REPRESENTATIVE: readonly ["requesterName", "requesterRole", "electronicSignature", "targetLocator", "nonconsentStatement", "goodFaithCertification", "authorityBasis", "authorityCertification"];
|
|
432
496
|
/** [C-02] The contact one-of: at least ONE of these must be present (neither is
|
|
433
497
|
* individually required; either alone satisfies it). */
|
|
434
498
|
export declare const CONTACT_ONE_OF_FIELD_CODES: readonly ["contactEmail", "contactPhone"];
|
|
435
|
-
/** [C-02] `requiredFieldCodes(requesterRole)` — the
|
|
499
|
+
/** [C-02 / H-03] `requiredFieldCodes(requesterRole)` — the required set.
|
|
436
500
|
* `supportingFacts` is collected but is NOT a completeness gate; `contactEmail` /
|
|
437
501
|
* `contactPhone` are governed by the contact one-of (see CONTACT_ONE_OF_FIELD_CODES),
|
|
438
|
-
* never individually required.
|
|
439
|
-
*
|
|
440
|
-
*
|
|
502
|
+
* never individually required. `authorityEvidence` (the optional documentary photo)
|
|
503
|
+
* is NOT required; absence or a pending/unavailable scan never blocks completeness
|
|
504
|
+
* or the 48h clock. The implementer uses EXACTLY this set and never hard-requires
|
|
505
|
+
* `contactPhone` or the authorizedRepresentative block on a depicted-person request. */
|
|
441
506
|
export declare function requiredFieldCodes(requesterRole: TakeItDownRequesterRole): readonly TakeItDownFieldCode[];
|
|
442
|
-
/** [C-02] `computeCompleteness` — returns `complete` iff every code in
|
|
507
|
+
/** [C-02 / H-02 / H-03] `computeCompleteness` — returns `complete` iff every code in
|
|
443
508
|
* `requiredFieldCodes(requesterRole)` is supplied AND the contact one-of holds;
|
|
444
509
|
* otherwise `incomplete` with the missing codes surfaced (those become
|
|
445
510
|
* `TakeItDownPublicStatusV1.missingFieldCodes`). The missing-set lists the role's
|
|
446
511
|
* unmet required codes, plus a `contactEmail`/`contactPhone` representative for an
|
|
447
512
|
* unmet contact one-of (the implementer/UI decides which contact code to surface;
|
|
448
|
-
* here we surface `contactEmail` as the canonical missing-contact marker).
|
|
513
|
+
* here we surface `contactEmail` as the canonical missing-contact marker).
|
|
514
|
+
* [H-02] The optional authority-proof photo's presence, absence, or pending scan
|
|
515
|
+
* (`authorityProofScan.scanStatus`) is NEVER a gate — completeness is purely the
|
|
516
|
+
* written statutory elements + the authority certification. */
|
|
449
517
|
export declare function computeCompleteness(input: {
|
|
450
518
|
requesterRole: TakeItDownRequesterRole;
|
|
451
519
|
suppliedFieldCodes: readonly TakeItDownFieldCode[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../src/doc-schemas/ncii/requests.ts"],"names":[],"mappings":"AAiCA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAc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EpD;;;yEAGyE;AACzE,eAAO,MAAM,8CAA8C,kLAIR,CAAC;AAEpD;wDACwD;AACxD,eAAO,MAAM,0BAA0B,2CAGY,CAAC;AAEpD;;;;;;wFAMwF;AACxF,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,uBAAuB,GACrC,SAAS,mBAAmB,EAAE,CAIhC;AAED;;;;;;;;;+DAS+D;AAC/D,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,aAAa,EAAE,uBAAuB,CAAC;IACvC,kBAAkB,EAAE,SAAS,mBAAmB,EAAE,CAAC;CACpD,GAAG;IAAE,MAAM,EAAE,YAAY,GAAG,UAAU,CAAC;IAAC,iBAAiB,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAelF"}
|
|
@@ -79,12 +79,41 @@ export const TakeItDownElectronicSignatureV1Schema = z.object({
|
|
|
79
79
|
signedAt: z.number(),
|
|
80
80
|
signatureMethod: TakeItDownSignatureMethodSchema,
|
|
81
81
|
}).strict();
|
|
82
|
+
/** [H-02] Server-owned scan status for the optional authority-proof photo.
|
|
83
|
+
* Written by `onNciiEvidenceUploaded` when the authority-evidence prefix is
|
|
84
|
+
* matched. `pending` until the scan resolves; `clean` = safe for operator
|
|
85
|
+
* review; `matched` = PhotoDNA hit (converges to child-safety path); `rejected`
|
|
86
|
+
* = spoof/magic-byte rejection; `unavailable` = scan could not produce a
|
|
87
|
+
* verdict (fail-closed until resolved). Absence of the photo leaves the status
|
|
88
|
+
* absent — operators must not be shown/allowed to act on proof until `clean`. */
|
|
89
|
+
export const AuthorityProofScanStatusSchema = z.enum([
|
|
90
|
+
'pending',
|
|
91
|
+
'clean',
|
|
92
|
+
'matched',
|
|
93
|
+
'rejected',
|
|
94
|
+
'unavailable',
|
|
95
|
+
]);
|
|
96
|
+
/** [H-02] Server-owned authority-proof scan state. Embedded on the authorized-
|
|
97
|
+
* representative block; written by the `onNciiEvidenceUploaded` trigger (never
|
|
98
|
+
* by the client). Present only when an authority-proof photo was uploaded. */
|
|
99
|
+
export const AuthorityProofScanStateV1Schema = z.object({
|
|
100
|
+
scanStatus: AuthorityProofScanStatusSchema,
|
|
101
|
+
objectGeneration: z.string().min(1),
|
|
102
|
+
objectHash: z.string().min(1),
|
|
103
|
+
scannedAt: z.number().optional(),
|
|
104
|
+
}).strict();
|
|
82
105
|
/** The authorized-representative block — present only for an
|
|
83
|
-
* `authorizedRepresentative` requester.
|
|
106
|
+
* `authorizedRepresentative` requester.
|
|
107
|
+
* [H-03] `authorityCertification` is a required good-faith attestation of
|
|
108
|
+
* authority; `authorityEvidenceRef` + `authorityProofScan` are OPTIONAL
|
|
109
|
+
* (presence is supporting material; absence never blocks completeness or the
|
|
110
|
+
* 48h clock). */
|
|
84
111
|
export const TakeItDownAuthorizedRepresentativeV1Schema = z.object({
|
|
85
112
|
representedPersonName: z.string(),
|
|
86
113
|
authorityBasis: z.string(),
|
|
114
|
+
authorityCertification: z.boolean(),
|
|
87
115
|
authorityEvidenceRef: z.string().min(1).optional(),
|
|
116
|
+
authorityProofScan: AuthorityProofScanStateV1Schema.optional(),
|
|
88
117
|
}).strict();
|
|
89
118
|
/** `takeItDownRequests/{requestId}/private/requester` = TakeItDownRequesterPrivateV1.
|
|
90
119
|
* RESTRICTED — nciiRequestReviewer / nciiEvidenceReviewer only. Fixed doc id
|
|
@@ -99,8 +128,7 @@ export const TakeItDownRequesterPrivateV1Schema = z.object({
|
|
|
99
128
|
nonconsentStatement: z.string(), // the statutory non-consent statement
|
|
100
129
|
supportingFacts: z.string(),
|
|
101
130
|
goodFaithCertification: z.boolean(),
|
|
102
|
-
accuracyCertification: z.boolean().optional(), //
|
|
103
|
-
authorityCertification: z.boolean().optional(), // [H2] NOT a hard validity gate by default — counsel decides
|
|
131
|
+
accuracyCertification: z.boolean().optional(), // NOT a hard validity gate by default — counsel decides
|
|
104
132
|
// The EXACT validated locator the requester submitted (restricted; operator-only — never on the
|
|
105
133
|
// PII-free root, which keeps only TargetLocatorSummaryV1). For the public no-login url-only intake
|
|
106
134
|
// this is the raw `{ kind:'url', url }` so the operator can FIND the on-platform content and
|
|
@@ -282,12 +310,14 @@ export const REQUIRED_FIELD_CODES_DEPICTED_PERSON = [
|
|
|
282
310
|
'nonconsentStatement',
|
|
283
311
|
'goodFaithCertification',
|
|
284
312
|
];
|
|
285
|
-
/** [C-02] Required field codes for an `authorizedRepresentative` request =
|
|
286
|
-
* depicted-person set ∪ { authorityBasis,
|
|
313
|
+
/** [C-02 / H-03] Required field codes for an `authorizedRepresentative` request =
|
|
314
|
+
* depicted-person set ∪ { authorityBasis, authorityCertification }.
|
|
315
|
+
* `authorityEvidence` (the optional documentary photo) is NOT required;
|
|
316
|
+
* absence or pending scan never blocks completeness or the 48h clock. */
|
|
287
317
|
export const REQUIRED_FIELD_CODES_AUTHORIZED_REPRESENTATIVE = [
|
|
288
318
|
...REQUIRED_FIELD_CODES_DEPICTED_PERSON,
|
|
289
319
|
'authorityBasis',
|
|
290
|
-
'
|
|
320
|
+
'authorityCertification',
|
|
291
321
|
];
|
|
292
322
|
/** [C-02] The contact one-of: at least ONE of these must be present (neither is
|
|
293
323
|
* individually required; either alone satisfies it). */
|
|
@@ -295,24 +325,28 @@ export const CONTACT_ONE_OF_FIELD_CODES = [
|
|
|
295
325
|
'contactEmail',
|
|
296
326
|
'contactPhone',
|
|
297
327
|
];
|
|
298
|
-
/** [C-02] `requiredFieldCodes(requesterRole)` — the
|
|
328
|
+
/** [C-02 / H-03] `requiredFieldCodes(requesterRole)` — the required set.
|
|
299
329
|
* `supportingFacts` is collected but is NOT a completeness gate; `contactEmail` /
|
|
300
330
|
* `contactPhone` are governed by the contact one-of (see CONTACT_ONE_OF_FIELD_CODES),
|
|
301
|
-
* never individually required.
|
|
302
|
-
*
|
|
303
|
-
*
|
|
331
|
+
* never individually required. `authorityEvidence` (the optional documentary photo)
|
|
332
|
+
* is NOT required; absence or a pending/unavailable scan never blocks completeness
|
|
333
|
+
* or the 48h clock. The implementer uses EXACTLY this set and never hard-requires
|
|
334
|
+
* `contactPhone` or the authorizedRepresentative block on a depicted-person request. */
|
|
304
335
|
export function requiredFieldCodes(requesterRole) {
|
|
305
336
|
return requesterRole === 'authorizedRepresentative'
|
|
306
337
|
? REQUIRED_FIELD_CODES_AUTHORIZED_REPRESENTATIVE
|
|
307
338
|
: REQUIRED_FIELD_CODES_DEPICTED_PERSON;
|
|
308
339
|
}
|
|
309
|
-
/** [C-02] `computeCompleteness` — returns `complete` iff every code in
|
|
340
|
+
/** [C-02 / H-02 / H-03] `computeCompleteness` — returns `complete` iff every code in
|
|
310
341
|
* `requiredFieldCodes(requesterRole)` is supplied AND the contact one-of holds;
|
|
311
342
|
* otherwise `incomplete` with the missing codes surfaced (those become
|
|
312
343
|
* `TakeItDownPublicStatusV1.missingFieldCodes`). The missing-set lists the role's
|
|
313
344
|
* unmet required codes, plus a `contactEmail`/`contactPhone` representative for an
|
|
314
345
|
* unmet contact one-of (the implementer/UI decides which contact code to surface;
|
|
315
|
-
* here we surface `contactEmail` as the canonical missing-contact marker).
|
|
346
|
+
* here we surface `contactEmail` as the canonical missing-contact marker).
|
|
347
|
+
* [H-02] The optional authority-proof photo's presence, absence, or pending scan
|
|
348
|
+
* (`authorityProofScan.scanStatus`) is NEVER a gate — completeness is purely the
|
|
349
|
+
* written statutory elements + the authority certification. */
|
|
316
350
|
export function computeCompleteness(input) {
|
|
317
351
|
const supplied = new Set(input.suppliedFieldCodes);
|
|
318
352
|
const missingFieldCodes = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../src/doc-schemas/ncii/requests.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,gFAAgF;AAChF,6EAA6E;AAC7E,wDAAwD;AACxD,EAAE;AACF,kFAAkF;AAClF,0EAA0E;AAC1E,6EAA6E;AAC7E,mFAAmF;AACnF,2EAA2E;AAC3E,mFAAmF;AACnF,oCAAoC;AACpC,EAAE;AACF,0EAA0E;AAC1E,gF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gBAAgB,GAAG,0BAA0B,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IACvF,IAAI,CAAC,gBAAgB;QAAE,iBAAiB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAE9D,OAAO;QACL,MAAM,EAAE,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY;QAClE,iBAAiB;KAClB,CAAC;AACJ,CAAC"}
|
|
@@ -1007,6 +1007,8 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1007
1007
|
}>;
|
|
1008
1008
|
status: z.ZodEnum<{
|
|
1009
1009
|
pending: "pending";
|
|
1010
|
+
failed: "failed";
|
|
1011
|
+
processing: "processing";
|
|
1010
1012
|
resolved: "resolved";
|
|
1011
1013
|
reviewing: "reviewing";
|
|
1012
1014
|
}>;
|
|
@@ -3683,6 +3685,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3683
3685
|
completed: "completed";
|
|
3684
3686
|
cancelled: "cancelled";
|
|
3685
3687
|
scrubbing: "scrubbing";
|
|
3688
|
+
leased: "leased";
|
|
3686
3689
|
parkedOnHold: "parkedOnHold";
|
|
3687
3690
|
superseded: "superseded";
|
|
3688
3691
|
}>;
|
|
@@ -3697,6 +3700,20 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3697
3700
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
3698
3701
|
supersededAt: z.ZodOptional<z.ZodNumber>;
|
|
3699
3702
|
supersededReason: z.ZodOptional<z.ZodString>;
|
|
3703
|
+
erasureLease: z.ZodOptional<z.ZodObject<{
|
|
3704
|
+
epoch: z.ZodNumber;
|
|
3705
|
+
state: z.ZodEnum<{
|
|
3706
|
+
active: "active";
|
|
3707
|
+
released: "released";
|
|
3708
|
+
revoked: "revoked";
|
|
3709
|
+
}>;
|
|
3710
|
+
acquiredAt: z.ZodNumber;
|
|
3711
|
+
expiresAt: z.ZodNumber;
|
|
3712
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
3713
|
+
revokedByHoldRefId: z.ZodOptional<z.ZodString>;
|
|
3714
|
+
revokedAt: z.ZodOptional<z.ZodNumber>;
|
|
3715
|
+
releasedAt: z.ZodOptional<z.ZodNumber>;
|
|
3716
|
+
}, z.core.$strict>>;
|
|
3700
3717
|
createdAt: z.ZodNumber;
|
|
3701
3718
|
updatedAt: z.ZodNumber;
|
|
3702
3719
|
}, z.core.$strict>;
|
|
@@ -3754,6 +3771,8 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3754
3771
|
latestAt: z.ZodNumber;
|
|
3755
3772
|
}, z.core.$strict>;
|
|
3756
3773
|
workStatus: z.ZodEnum<{
|
|
3774
|
+
failed: "failed";
|
|
3775
|
+
processing: "processing";
|
|
3757
3776
|
new: "new";
|
|
3758
3777
|
triaged: "triaged";
|
|
3759
3778
|
reporting: "reporting";
|
|
@@ -4749,13 +4768,25 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
4749
4768
|
authorizedRepresentative: z.ZodOptional<z.ZodObject<{
|
|
4750
4769
|
representedPersonName: z.ZodString;
|
|
4751
4770
|
authorityBasis: z.ZodString;
|
|
4771
|
+
authorityCertification: z.ZodBoolean;
|
|
4752
4772
|
authorityEvidenceRef: z.ZodOptional<z.ZodString>;
|
|
4773
|
+
authorityProofScan: z.ZodOptional<z.ZodObject<{
|
|
4774
|
+
scanStatus: z.ZodEnum<{
|
|
4775
|
+
pending: "pending";
|
|
4776
|
+
rejected: "rejected";
|
|
4777
|
+
clean: "clean";
|
|
4778
|
+
matched: "matched";
|
|
4779
|
+
unavailable: "unavailable";
|
|
4780
|
+
}>;
|
|
4781
|
+
objectGeneration: z.ZodString;
|
|
4782
|
+
objectHash: z.ZodString;
|
|
4783
|
+
scannedAt: z.ZodOptional<z.ZodNumber>;
|
|
4784
|
+
}, z.core.$strict>>;
|
|
4753
4785
|
}, z.core.$strict>>;
|
|
4754
4786
|
nonconsentStatement: z.ZodString;
|
|
4755
4787
|
supportingFacts: z.ZodString;
|
|
4756
4788
|
goodFaithCertification: z.ZodBoolean;
|
|
4757
4789
|
accuracyCertification: z.ZodOptional<z.ZodBoolean>;
|
|
4758
|
-
authorityCertification: z.ZodOptional<z.ZodBoolean>;
|
|
4759
4790
|
targetLocator: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4760
4791
|
kind: z.ZodLiteral<"mediaAsset">;
|
|
4761
4792
|
mediaAssetId: z.ZodString;
|
|
@@ -4831,6 +4862,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
4831
4862
|
requesterRole: "requesterRole";
|
|
4832
4863
|
electronicSignature: "electronicSignature";
|
|
4833
4864
|
authorityBasis: "authorityBasis";
|
|
4865
|
+
authorityCertification: "authorityCertification";
|
|
4834
4866
|
authorityEvidence: "authorityEvidence";
|
|
4835
4867
|
targetLocator: "targetLocator";
|
|
4836
4868
|
nonconsentStatement: "nonconsentStatement";
|
|
@@ -4941,6 +4973,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
4941
4973
|
requesterRole: "requesterRole";
|
|
4942
4974
|
electronicSignature: "electronicSignature";
|
|
4943
4975
|
authorityBasis: "authorityBasis";
|
|
4976
|
+
authorityCertification: "authorityCertification";
|
|
4944
4977
|
authorityEvidence: "authorityEvidence";
|
|
4945
4978
|
targetLocator: "targetLocator";
|
|
4946
4979
|
nonconsentStatement: "nonconsentStatement";
|
|
@@ -4980,10 +5013,12 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
4980
5013
|
likeness: "likeness";
|
|
4981
5014
|
}>;
|
|
4982
5015
|
internalStatus: z.ZodEnum<{
|
|
5016
|
+
failed: "failed";
|
|
4983
5017
|
rejected: "rejected";
|
|
4984
5018
|
removed: "removed";
|
|
4985
5019
|
open: "open";
|
|
4986
5020
|
removalInProgress: "removalInProgress";
|
|
5021
|
+
processing: "processing";
|
|
4987
5022
|
closed: "closed";
|
|
4988
5023
|
}>;
|
|
4989
5024
|
childSafetyLinkStatus: z.ZodEnum<{
|
|
@@ -5088,6 +5123,26 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
5088
5123
|
detectedAt: z.ZodNumber;
|
|
5089
5124
|
createdAt: z.ZodNumber;
|
|
5090
5125
|
}, z.core.$strict>;
|
|
5126
|
+
readonly 'nciiInventoryDeadLetter/{inventoryId}': z.ZodObject<{
|
|
5127
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
5128
|
+
inventoryId: z.ZodString;
|
|
5129
|
+
reason: z.ZodEnum<{
|
|
5130
|
+
orphan: "orphan";
|
|
5131
|
+
fileTooLarge: "fileTooLarge";
|
|
5132
|
+
imageTooLarge: "imageTooLarge";
|
|
5133
|
+
archiveOrPolyglot: "archiveOrPolyglot";
|
|
5134
|
+
malformedPath: "malformedPath";
|
|
5135
|
+
scanRejected: "scanRejected";
|
|
5136
|
+
}>;
|
|
5137
|
+
bucket: z.ZodString;
|
|
5138
|
+
key: z.ZodString;
|
|
5139
|
+
generation: z.ZodString;
|
|
5140
|
+
requestReference: z.ZodOptional<z.ZodString>;
|
|
5141
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
5142
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
5143
|
+
detectedAt: z.ZodNumber;
|
|
5144
|
+
createdAt: z.ZodNumber;
|
|
5145
|
+
}, z.core.$strict>;
|
|
5091
5146
|
readonly 'nciiTemporaryHolds/{holdId}': z.ZodObject<{
|
|
5092
5147
|
schemaVersion: z.ZodLiteral<1>;
|
|
5093
5148
|
holdId: z.ZodString;
|