calmlens 0.20.0 → 0.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/README.md +15 -10
- package/bin/calmlens.js +1848 -679
- package/cjs/{BrowserUpload-C07aL9Vq.d.ts → BrowserUpload-BWjZ9ntu.d.ts} +2 -2
- package/cjs/{BrowserUpload-CjSHjx3C.js → BrowserUpload-Bwlib4Zc.js} +1 -1
- package/cjs/{CalmLensAppClient-DDLojj0P.d.ts → CalmLensAppClient-BaW3ddUR.d.ts} +13 -3
- package/cjs/{CalmLensAppClient-NaCxOVlM.js → CalmLensAppClient-DUYMo9PZ.js} +30 -10
- package/cjs/{CalmLensOptionKeys-p2QK687A.js → CalmLensOptionKeys-YvgV995V.js} +318 -374
- package/cjs/{CalmLensServerClient-BDzTthxE.js → CalmLensServerClient-3N-gdsxC.js} +346 -89
- package/cjs/CalmLensServerClient-BKzn8zmp.d.ts +353 -0
- package/cjs/{CalmLensTypes-COJbOuiv.d.ts → CalmLensTypes-BDKwThbO.d.ts} +26993 -27187
- package/cjs/{Classification-D3SkprrQ-CMnQKW13.d.ts → Classification-Q5zGpR8l-CEWjnE39.d.ts} +731 -607
- package/cjs/Core-C33pkBmf.d.ts +826 -0
- package/cjs/Core-Cm5Z1oJ9.js +1001 -0
- package/cjs/FileIcons-4qSX7DW2.d.ts +67 -0
- package/cjs/{ModerationContextLimits-2nIv7Zh3.js → ModerationContextLimits-ud1xpZRK.js} +727 -268
- package/cjs/{ReactUpload-BdTRCTGA.js → ReactUpload-DQ0BYISX.js} +1 -1
- package/cjs/{ReactUpload-CRJNPB5T.d.ts → ReactUpload-DhF8mm51.d.ts} +1 -1
- package/{esm/TestTriggers-D-fwfhEP-hlaP1oW2.d.ts → cjs/TestTriggers-D0pYHbkr-D5T0VdSn.d.ts} +146 -8
- package/cjs/{TestTriggers-DbhsNPdg-DjvVuc2h.js → TestTriggers-D29T_R0M-D6Bu-Mln.js} +355 -47
- package/cjs/{UploadController-MLVs97Zt.js → UploadController-l8fZM2qT.js} +34 -14
- package/{esm/WebhookPayload-DkukERKE.d.ts → cjs/WebhookPayload-Dt6DttS0.d.ts} +120 -86
- package/cjs/app.d.ts +6 -7
- package/cjs/app.js +4 -3
- package/cjs/elements.d.ts +123 -22
- package/cjs/elements.js +553 -156
- package/cjs/file-icons.d.ts +2 -67
- package/cjs/index-Bde1wjiw.d.ts +16 -0
- package/cjs/index.d.ts +5 -6
- package/cjs/index.js +3 -2
- package/cjs/react-native.d.ts +52 -11
- package/cjs/react-native.js +231 -99
- package/cjs/react.d.ts +42 -9
- package/cjs/react.js +381 -118
- package/cjs/server.d.ts +48 -7
- package/cjs/server.js +7 -3
- package/cjs/test-inputs.d.ts +2 -2
- package/cjs/test-inputs.js +13 -9
- package/cjs/testing.d.ts +29 -15
- package/cjs/testing.js +1722 -433
- package/cjs/ui-BRA4HQ8r.js +1359 -0
- package/cjs/ui-YQuvbidU.d.ts +139 -0
- package/cjs/ui.d.ts +3 -2
- package/cjs/ui.js +45 -22
- package/cjs/vue.d.ts +802 -199
- package/cjs/vue.js +359 -127
- package/esm/{BrowserUpload-C07aL9Vq.d.ts → BrowserUpload-BWjZ9ntu.d.ts} +2 -2
- package/esm/{BrowserUpload-CAVkRotw.js → BrowserUpload-GRZVB0G_.js} +1 -1
- package/esm/{CalmLensAppClient-PQ9VBvlW.js → CalmLensAppClient-B5QIJ6KS.js} +30 -10
- package/esm/{CalmLensAppClient-DDLojj0P.d.ts → CalmLensAppClient-BaW3ddUR.d.ts} +13 -3
- package/esm/{CalmLensOptionKeys-Do2mPP6w.js → CalmLensOptionKeys-BG7Qrh8-.js} +317 -367
- package/esm/CalmLensServerClient-BKzn8zmp.d.ts +353 -0
- package/esm/{CalmLensServerClient-C_H5aAsV.js → CalmLensServerClient-bRUAebi-.js} +323 -90
- package/esm/{CalmLensTypes-COJbOuiv.d.ts → CalmLensTypes-BDKwThbO.d.ts} +26993 -27187
- package/esm/{Classification-D3SkprrQ-CMnQKW13.d.ts → Classification-Q5zGpR8l-CEWjnE39.d.ts} +731 -607
- package/esm/Core-BvQe4moS.js +846 -0
- package/esm/Core-C33pkBmf.d.ts +826 -0
- package/esm/FileIcons-4qSX7DW2.d.ts +67 -0
- package/esm/{ModerationContextLimits-Chw-AzgL.js → ModerationContextLimits-CrxSnVZ3.js} +682 -253
- package/esm/{ReactUpload-CMmL0R5Q.js → ReactUpload-BMO8saxT.js} +1 -1
- package/esm/{ReactUpload-CRJNPB5T.d.ts → ReactUpload-DhF8mm51.d.ts} +1 -1
- package/{cjs/TestTriggers-D-fwfhEP-hlaP1oW2.d.ts → esm/TestTriggers-D0pYHbkr-D5T0VdSn.d.ts} +146 -8
- package/esm/{TestTriggers-DbhsNPdg-CUdrv8Nm.js → TestTriggers-D29T_R0M-Ztc74ucs.js} +332 -48
- package/esm/{UploadController-BJZghJpg.js → UploadController-DnJrWiE4.js} +34 -14
- package/{cjs/WebhookPayload-DkukERKE.d.ts → esm/WebhookPayload-Dt6DttS0.d.ts} +120 -86
- package/esm/app.d.ts +6 -7
- package/esm/app.js +3 -3
- package/esm/elements.d.ts +123 -22
- package/esm/elements.js +497 -128
- package/esm/file-icons.d.ts +2 -67
- package/esm/index-Bde1wjiw.d.ts +16 -0
- package/esm/index.d.ts +5 -6
- package/esm/index.js +1 -1
- package/esm/react-native.d.ts +52 -11
- package/esm/react-native.js +205 -75
- package/esm/react.d.ts +42 -9
- package/esm/react.js +327 -91
- package/esm/server.d.ts +48 -7
- package/esm/server.js +3 -3
- package/esm/styles.css +142 -22
- package/esm/svelte/AssetViewer.svelte +25 -0
- package/esm/svelte/CalmLensAsset.svelte +318 -0
- package/esm/svelte/CalmLensDocumentViewer.svelte +7 -0
- package/esm/svelte/CalmLensImageViewer.svelte +7 -0
- package/esm/svelte/CalmLensSpreadsheetViewer.svelte +7 -0
- package/esm/svelte/CalmLensTextViewer.svelte +7 -0
- package/esm/svelte/CalmLensWebsiteViewer.svelte +7 -0
- package/esm/svelte/index.d.ts +29 -6
- package/esm/svelte/index.js +7 -2
- package/esm/test-inputs.d.ts +2 -2
- package/esm/test-inputs.js +1 -1
- package/esm/testing.d.ts +29 -15
- package/esm/testing.js +1718 -429
- package/esm/ui-YQuvbidU.d.ts +139 -0
- package/esm/ui-heryDd6g.js +1258 -0
- package/esm/ui.d.ts +3 -2
- package/esm/ui.js +4 -3
- package/esm/vue.d.ts +802 -199
- package/esm/vue.js +308 -103
- package/package.json +4 -2
- package/cjs/CalmLensServerClient-C-jsjn8m.d.ts +0 -259
- package/cjs/ModerationContext-9lGm-Mna-CcmbRnOy.d.ts +0 -67
- package/cjs/index-DxbJ_Xaa.d.ts +0 -253
- package/cjs/ui-BSqPGKrZ.d.ts +0 -539
- package/cjs/ui-CX1z2pD9.js +0 -586
- package/esm/CalmLensServerClient-C-jsjn8m.d.ts +0 -259
- package/esm/ModerationContext-9lGm-Mna-CcmbRnOy.d.ts +0 -67
- package/esm/index-DxbJ_Xaa.d.ts +0 -253
- package/esm/svelte/CalmLensMedia.svelte +0 -134
- package/esm/ui-BSqPGKrZ.d.ts +0 -539
- package/esm/ui-CXH7xJpb.js +0 -461
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import { o as HashList, s as HashListEntry } from "./ModerationContext-9lGm-Mna-CcmbRnOy.js";
|
|
2
|
-
import { A as CdnServeOptions, B as DeleteAssetContentOptions, C as AssignPolicyOptions, Ct as SubmitAssetOptions, D as CalmLensServerClientOptions, Dt as UpdatePolicyOptions, Et as UpdateHashListOptions, F as CreateFolderOptions, G as FolderIdOptions, H as EnsureLensOptions, I as CreateHashListOptions, J as HashListEntryIdOptions, Jt as Folder, K as FolderPage, Lt as GetEventsResponse, M as ClassifyTextOptions, Nt as WaitForAssetDecisionOptions, O as CdnAssetUrlOptions, Ot as UploadAssetPartOptions, P as CreateAssetSignedUrlOptions, R as CreatePolicyOptions, Rt as PostAssetSignedUrlResponse, T as BatchAssetsResponse, Tt as UpdateFolderOptions, U as EnsureLensesOptions, V as DeleteAssetOptions, W as ExplainAssetOptions, X as HashListIdOptions, Y as HashListEntryPage, Yt as Policy, Z as HashListPage, _ as AssetSearchResponse, _t as RetryAssetOptions, a as AssetChildrenPage, at as ListEventsOptions, bt as SignUploadTokenOptions, ct as ListHashListsOptions, en as AssetSearchQuery, et as IterateAssetChildrenOptions, g as AssetPage, gt as RetrieveAssetOptions, ht as RequestOptions, it as ListAssetsOptions, jt as VerifyWebhookSignatureOptions, lt as MoveAssetOptions, mt as PolicyList, n as ApplyPolicyPresetOptions, nt as Lens, ot as ListFoldersOptions, pt as PolicyIdOptions, r as Asset, rt as ListAssetChildrenOptions, st as ListHashListEntriesOptions, t as AddHashListEntryOptions, tt as IterateAssetsOptions, ut as MoveFolderOptions, w as BatchAssetsOptions, wt as UpdateAssetOptions, xt as SignedUploadToken, yt as SetPolicyAutomaticUpdatesOptions, z as DecideAssetOptions } from "./CalmLensTypes-COJbOuiv.js";
|
|
3
|
-
import "./WebhookPayload-DkukERKE.js";
|
|
4
|
-
interface LensCache {
|
|
5
|
-
readonly ensuredLenses: Map<string, Lens>;
|
|
6
|
-
readonly pendingEnsureLenses: Map<string, Promise<void>>;
|
|
7
|
-
}
|
|
8
|
-
declare const inspectSymbol: unique symbol;
|
|
9
|
-
/**
|
|
10
|
-
* The CalmLens API client for your server, authenticated with a project API key. Create one per
|
|
11
|
-
* project and reuse it; it holds no connections. Every method takes one options object and
|
|
12
|
-
* throws `CalmLensError` on failure. Browsers and apps upload with `CalmLensAppClient` instead.
|
|
13
|
-
*/
|
|
14
|
-
declare class CalmLensServerClient {
|
|
15
|
-
#private;
|
|
16
|
-
/**
|
|
17
|
-
* Verifies that a webhook delivery came from CalmLens: checks the `v1=` HMAC-SHA256 in
|
|
18
|
-
* `x-calmlens-signature` over `"<x-calmlens-timestamp>.<raw body>"` and rejects timestamps
|
|
19
|
-
* more than `toleranceSeconds` (default 300) from now, which stops replayed deliveries.
|
|
20
|
-
* Also exported as `verifyWebhookSignature`; `parseWebhookEvent` verifies and parses.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const payload = await request.text();
|
|
25
|
-
* const isValid = await CalmLensServerClient.verifyWebhookSignature({
|
|
26
|
-
* payload,
|
|
27
|
-
* headers: request.headers,
|
|
28
|
-
* secret: process.env.CALMLENS_WEBHOOK_SECRET!,
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
static verifyWebhookSignature(options: VerifyWebhookSignatureOptions): Promise<boolean>;
|
|
33
|
-
constructor(options: CalmLensServerClientOptions, lenses?: LensCache);
|
|
34
|
-
/**
|
|
35
|
-
* A client with different cancellation, deadlines or retries for the calls made through it,
|
|
36
|
-
* sharing this client's credentials and lens cache. This client is unchanged.
|
|
37
|
-
*/
|
|
38
|
-
withRequestOptions(options: RequestOptions): CalmLensServerClient;
|
|
39
|
-
/** Keeps the API key out of `console.log`, `util.inspect` and `JSON.stringify`. */
|
|
40
|
-
[inspectSymbol](): string;
|
|
41
|
-
toJSON(): {
|
|
42
|
-
projectId: string;
|
|
43
|
-
baseUrl: string;
|
|
44
|
-
cdnBaseUrl: string;
|
|
45
|
-
};
|
|
46
|
-
private get projectPath();
|
|
47
|
-
private request;
|
|
48
|
-
private submitAsset;
|
|
49
|
-
get cdn(): {
|
|
50
|
-
/**
|
|
51
|
-
* Builds a CDN URL for asset content or a preview, without a request. Private assets
|
|
52
|
-
* need a signed URL (`assets.createSignedUrl`) or an authenticated request; public
|
|
53
|
-
* age-restricted assets additionally require `viewerClaims.ageConfirmed: true`. Your
|
|
54
|
-
* platform confirms the viewer's age; CalmLens does not verify this claim, and anyone can
|
|
55
|
-
* add it to a public URL.
|
|
56
|
-
*/
|
|
57
|
-
getAssetUrl: (urlOptions: CdnAssetUrlOptions) => string;
|
|
58
|
-
/**
|
|
59
|
-
* Fetches asset content or a preview from the CDN with the client's API key, and returns
|
|
60
|
-
* the `Response` as soon as headers arrive, so the body streams. Non-2xx responses are
|
|
61
|
-
* returned, not thrown; `timeoutMs` covers only the wait for headers.
|
|
62
|
-
*/
|
|
63
|
-
serve: (options: CdnServeOptions) => Promise<Response>;
|
|
64
|
-
};
|
|
65
|
-
get text(): {
|
|
66
|
-
/**
|
|
67
|
-
* Moderates text and waits for the decision. Sends `text` as `text/plain` content named
|
|
68
|
-
* `text` unless you pass `name`.
|
|
69
|
-
*/
|
|
70
|
-
classify: (options: ClassifyTextOptions) => Promise<Asset>;
|
|
71
|
-
};
|
|
72
|
-
/** Assets: uploads, moderation and management. */
|
|
73
|
-
get assets(): {
|
|
74
|
-
/** Searches accessible assets by keyword or a natural-language description. */
|
|
75
|
-
search: (options: Partial<AssetSearchQuery> & {
|
|
76
|
-
query: string;
|
|
77
|
-
}) => Promise<AssetSearchResponse>;
|
|
78
|
-
/** Lists one page of the project's assets, with optional filter and ordering. */
|
|
79
|
-
list: (options?: ListAssetsOptions) => Promise<AssetPage>;
|
|
80
|
-
/**
|
|
81
|
-
* Yields every asset matching `options`, fetching pages as needed. The cursor keeps the position
|
|
82
|
-
* stable when other assets are inserted or deleted.
|
|
83
|
-
*/
|
|
84
|
-
iterate: (options?: IterateAssetsOptions) => AsyncGenerator<Asset, void, undefined>;
|
|
85
|
-
/** Retrieves an asset with its status and classification results. */
|
|
86
|
-
retrieve: (options: RetrieveAssetOptions) => Promise<Asset>;
|
|
87
|
-
/** Updates an asset's editable fields. */
|
|
88
|
-
update: (options: UpdateAssetOptions) => Promise<Asset>;
|
|
89
|
-
/** Lists one page of the assets extracted from a website or multimedia document. */
|
|
90
|
-
listChildren: (options?: ListAssetChildrenOptions) => Promise<AssetChildrenPage>;
|
|
91
|
-
/** Yields every child of an asset, fetching pages as needed. */
|
|
92
|
-
iterateChildren: (options: IterateAssetChildrenOptions) => AsyncGenerator<Asset, void, undefined>;
|
|
93
|
-
/**
|
|
94
|
-
* Uploads an asset and queues it for moderation, returning immediately with processing
|
|
95
|
-
* status `processing` (or `uploading` for the first multipart part). Retried safely with an
|
|
96
|
-
* `Idempotency-Key`.
|
|
97
|
-
*/
|
|
98
|
-
create: (options: SubmitAssetOptions) => Promise<Asset>;
|
|
99
|
-
/**
|
|
100
|
-
* Uploads an asset and waits for its moderation decision. Audio and video still finish
|
|
101
|
-
* in the background. Retried safely with an `Idempotency-Key`.
|
|
102
|
-
*/
|
|
103
|
-
classify: (classifyOptions: SubmitAssetOptions) => Promise<Asset>;
|
|
104
|
-
/**
|
|
105
|
-
* Uploads the next part of a multipart upload. The upload's queue mode, chosen when it
|
|
106
|
-
* started, applies when the final part arrives; pass `queue` to override it.
|
|
107
|
-
*/
|
|
108
|
-
uploadPart: (partOptions: UploadAssetPartOptions) => Promise<Asset>;
|
|
109
|
-
/**
|
|
110
|
-
* Creates a short-lived signed CDN URL, so browsers can load private content without
|
|
111
|
-
* an API key.
|
|
112
|
-
*/
|
|
113
|
-
createSignedUrl: (signedUrlOptions: CreateAssetSignedUrlOptions) => Promise<PostAssetSignedUrlResponse>;
|
|
114
|
-
/** Moves an asset into a folder, or to the project root with `folderId: null`. */
|
|
115
|
-
move: (options: MoveAssetOptions) => Promise<Asset>;
|
|
116
|
-
/**
|
|
117
|
-
* Processes an asset that failed (classification status `failed`) again. It returns to
|
|
118
|
-
* `processing` and is
|
|
119
|
-
* moderated like a new upload; its content must still be stored.
|
|
120
|
-
*/
|
|
121
|
-
retry: (options: RetryAssetOptions) => Promise<Asset>;
|
|
122
|
-
/**
|
|
123
|
-
* Records a reviewer's decision, replacing the policy's: the asset's moderation status
|
|
124
|
-
* becomes `decision`, the note joins its review history and the matching `asset.<status>`
|
|
125
|
-
* event is sent. An asset still pending moderation can only be blocked or purged. Purging
|
|
126
|
-
* needs `confirmPurge: true` and permanently deletes the stored content.
|
|
127
|
-
*/
|
|
128
|
-
decide: (options: DecideAssetOptions) => Promise<Asset>;
|
|
129
|
-
/**
|
|
130
|
-
* Completes the policy evidence behind a decided asset's moderation decision: the report's
|
|
131
|
-
* `classification.moderation.evidence` becomes `full` and every action stays as
|
|
132
|
-
* decided. With `rerun: true` the asset is moderated again with the project's current policy
|
|
133
|
-
* and returns in `processing`; use it when the policy has changed since the decision
|
|
134
|
-
* (`asset/policy-changed`).
|
|
135
|
-
*/
|
|
136
|
-
explain: (options: ExplainAssetOptions) => Promise<Asset>;
|
|
137
|
-
/**
|
|
138
|
-
* Waits until an asset's `classification.moderation.status` is no longer `pending` (`allowed`,
|
|
139
|
-
* `limited`, `age-restricted`, `blocked` or `purged`), or its `classification.status` is `failed`, and returns that asset, checking every few seconds. Rejects with `sdk/timeout` if there is no
|
|
140
|
-
* decision within `timeoutMs` (default 60000). Webhooks report decisions without polling.
|
|
141
|
-
*/
|
|
142
|
-
waitForDecision: (waitOptions: WaitForAssetDecisionOptions) => Promise<Asset>;
|
|
143
|
-
/**
|
|
144
|
-
* Removes an asset's stored content (source, preview and retained extracted text) while
|
|
145
|
-
* keeping the asset record, metadata and classification results. The returned asset has
|
|
146
|
-
* `content.status` set to `removed` and `content.removalReason` to `requested`; the CDN no longer serves it.
|
|
147
|
-
*/
|
|
148
|
-
deleteContent: (options: DeleteAssetContentOptions) => Promise<Asset>;
|
|
149
|
-
/** Deletes an asset record together with its stored content. */
|
|
150
|
-
delete: (options: DeleteAssetOptions) => Promise<void>;
|
|
151
|
-
/**
|
|
152
|
-
* Deletes up to 500 assets (`operation: "delete"`) or removes their stored content
|
|
153
|
-
* (`"remove-content"`) in one request. Every asset must exist in the project and the key
|
|
154
|
-
* needs `assets:delete` for its folder, or nothing is queued. Resolves with
|
|
155
|
-
* `{ queued: true }` once queued; the work runs in the background and records
|
|
156
|
-
* `asset.deleted` or `asset.content-removed` for each asset. Assets under a safety hold
|
|
157
|
-
* are skipped. Not retried: it carries no `Idempotency-Key`.
|
|
158
|
-
*/
|
|
159
|
-
batch: (options: BatchAssetsOptions) => Promise<BatchAssetsResponse>;
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* Signs upload tokens on your server, so a browser or app can upload through an upload preset
|
|
163
|
-
* that requires one. Signing happens locally with your API key: it makes no request.
|
|
164
|
-
*/
|
|
165
|
-
get uploadTokens(): {
|
|
166
|
-
/**
|
|
167
|
-
* Signs a single-use token for one upload through `uploadPresetId`. Give `token` to the
|
|
168
|
-
* browser or app, which passes it to `CalmLensAppClient` as `token`.
|
|
169
|
-
*/
|
|
170
|
-
sign: (options: SignUploadTokenOptions) => Promise<SignedUploadToken>;
|
|
171
|
-
};
|
|
172
|
-
private buildAssets;
|
|
173
|
-
get events(): {
|
|
174
|
-
/**
|
|
175
|
-
* Lists project events after a cursor, oldest first. Call without `cursor` to get a cursor
|
|
176
|
-
* for "now", then poll with each response's `nextCursor`. Webhook deliveries carry the same
|
|
177
|
-
* events reshaped as `{ id, type, createdAt, projectId, data }`.
|
|
178
|
-
*/
|
|
179
|
-
list: (options?: ListEventsOptions) => Promise<GetEventsResponse>;
|
|
180
|
-
/**
|
|
181
|
-
* Yields pages of events after `cursor` until no more are waiting. Save each page's
|
|
182
|
-
* `nextCursor` to resume later. Without `cursor`, yields one empty page whose `nextCursor`
|
|
183
|
-
* is "now".
|
|
184
|
-
*/
|
|
185
|
-
pages: (options?: ListEventsOptions) => AsyncGenerator<GetEventsResponse, void, undefined>;
|
|
186
|
-
};
|
|
187
|
-
private iterateEventPages;
|
|
188
|
-
private iteratePages;
|
|
189
|
-
get folders(): {
|
|
190
|
-
/**
|
|
191
|
-
* Lists one page of child folders, sorted by name unless `ordering` says otherwise. Pass
|
|
192
|
-
* `nextCursor` as `cursor` for the next page; fetch a branch when it is opened.
|
|
193
|
-
*/
|
|
194
|
-
list: (options?: ListFoldersOptions) => Promise<FolderPage>;
|
|
195
|
-
retrieve: (options: FolderIdOptions) => Promise<Folder>;
|
|
196
|
-
/** Creates a folder at the project root or inside `parentId`. */
|
|
197
|
-
create: (options: CreateFolderOptions) => Promise<Folder>;
|
|
198
|
-
update: (options: UpdateFolderOptions) => Promise<Folder>;
|
|
199
|
-
/** Deletes an empty folder; throws `folder/not-empty` otherwise. */
|
|
200
|
-
delete: (options: FolderIdOptions) => Promise<void>;
|
|
201
|
-
/** Moves a folder under `parentId`, or to the project root with `parentId: null`. */
|
|
202
|
-
move: (options: MoveFolderOptions) => Promise<Folder>;
|
|
203
|
-
};
|
|
204
|
-
/**
|
|
205
|
-
* Hash lists hold PDQ hashes of images the project never wants again. Image uploads are
|
|
206
|
-
* compared with every list: `flag` lists record matches, `block` lists also block close ones.
|
|
207
|
-
*/
|
|
208
|
-
get hashLists(): {
|
|
209
|
-
/** Lists one page of the project's hash lists, newest first. */
|
|
210
|
-
list: (options?: ListHashListsOptions) => Promise<HashListPage>;
|
|
211
|
-
retrieve: (options: HashListIdOptions) => Promise<HashList>;
|
|
212
|
-
create: (options: CreateHashListOptions) => Promise<HashList>;
|
|
213
|
-
/** Renames a list or changes its action; the new action applies to later uploads. */
|
|
214
|
-
update: (options: UpdateHashListOptions) => Promise<HashList>;
|
|
215
|
-
/** Deletes the list and every entry in it. */
|
|
216
|
-
delete: (options: HashListIdOptions) => Promise<void>;
|
|
217
|
-
/** Lists one page of a list's entries, newest first. */
|
|
218
|
-
listEntries: (options: ListHashListEntriesOptions) => Promise<HashListEntryPage>;
|
|
219
|
-
/** Adds a hash, or an image asset's hash; a hash already in the list returns its entry. */
|
|
220
|
-
addEntry: (options: AddHashListEntryOptions) => Promise<HashListEntry>;
|
|
221
|
-
removeEntry: (options: HashListEntryIdOptions) => Promise<void>;
|
|
222
|
-
};
|
|
223
|
-
/**
|
|
224
|
-
* Moderation policies belong to the project's organisation and its projects share them. Every
|
|
225
|
-
* change sends the policy's `revision`, so a policy changed since is refused. Through a
|
|
226
|
-
* project's key you can change only policies no other project uses or owns.
|
|
227
|
-
*/
|
|
228
|
-
get policies(): {
|
|
229
|
-
/** Lists the organisation's policies and the ID of the one the project uses. */
|
|
230
|
-
list: () => Promise<PolicyList>;
|
|
231
|
-
retrieve: (options: PolicyIdOptions) => Promise<Policy>;
|
|
232
|
-
/** Creates a policy from `settings`, or a copy of a built-in preset with `presetId`. */
|
|
233
|
-
create: (options: CreatePolicyOptions) => Promise<Policy>;
|
|
234
|
-
/** Changes the name, description or settings; later moderation uses them. */
|
|
235
|
-
update: (options: UpdatePolicyOptions) => Promise<Policy>;
|
|
236
|
-
/** Resets a preset copy to its pinned version, or updates an unchanged copy to the latest. */
|
|
237
|
-
applyPreset: (options: ApplyPolicyPresetOptions) => Promise<Policy>;
|
|
238
|
-
/** Switches automatic updates on or off for the organisation's own preset policy. */
|
|
239
|
-
setAutomaticUpdates: (options: SetPolicyAutomaticUpdatesOptions) => Promise<Policy>;
|
|
240
|
-
/** Deletes a policy that no project or upload preset uses. */
|
|
241
|
-
delete: (options: PolicyIdOptions) => Promise<void>;
|
|
242
|
-
/** Chooses the policy the project moderates with. */
|
|
243
|
-
assign: (options: AssignPolicyOptions) => Promise<Policy>;
|
|
244
|
-
};
|
|
245
|
-
/**
|
|
246
|
-
* Create a named lens at any positive version, or update it with a greater version.
|
|
247
|
-
* Supplying the same definition and version is idempotent.
|
|
248
|
-
*/
|
|
249
|
-
ensureLens(options: EnsureLensOptions): Promise<Lens>;
|
|
250
|
-
/**
|
|
251
|
-
* Create or update several named lenses. New definitions are sent in one API request, or in
|
|
252
|
-
* consecutive requests of at most {@link ENSURE_LENSES_MAX_PER_REQUEST} definitions, in order.
|
|
253
|
-
* Each lens follows the same versioning and idempotency rules as ensureLens().
|
|
254
|
-
*/
|
|
255
|
-
ensureLenses(options: EnsureLensesOptions): Promise<Lens[]>;
|
|
256
|
-
private submitEnsureLenses;
|
|
257
|
-
private submitEnsureLensesChunk;
|
|
258
|
-
}
|
|
259
|
-
export { CalmLensServerClient as t };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as zod from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* What moderation decided for an asset, which also decides how it is delivered: served to anyone
|
|
4
|
-
* with access (`allowed`), served the same way but marked for reduced reach (`limited`), only to
|
|
5
|
-
* requests that confirm the viewer's age with `ageConfirmed`, signed URLs and server keys included
|
|
6
|
-
* (`age-restricted`), not served (`blocked`), or not served with its stored content deleted
|
|
7
|
-
* (`purged`).
|
|
8
|
-
*/
|
|
9
|
-
declare const ASSET_MODERATION_DECISION_SCHEMA: zod.ZodEnum<{
|
|
10
|
-
"age-restricted": "age-restricted";
|
|
11
|
-
allowed: "allowed";
|
|
12
|
-
blocked: "blocked";
|
|
13
|
-
limited: "limited";
|
|
14
|
-
purged: "purged";
|
|
15
|
-
}>;
|
|
16
|
-
type AssetModerationDecision = zod.infer<typeof ASSET_MODERATION_DECISION_SCHEMA>;
|
|
17
|
-
declare const HASH_LIST_SCHEMA: zod.ZodObject<{
|
|
18
|
-
id: zod.ZodString;
|
|
19
|
-
projectId: zod.ZodString;
|
|
20
|
-
name: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
|
|
21
|
-
description: zod.ZodOptional<zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>>;
|
|
22
|
-
action: zod.ZodEnum<{
|
|
23
|
-
block: "block";
|
|
24
|
-
flag: "flag";
|
|
25
|
-
}>;
|
|
26
|
-
createdAt: zod.ZodNumber;
|
|
27
|
-
updatedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
28
|
-
}, zod.core.$strip>;
|
|
29
|
-
type HashList = zod.infer<typeof HASH_LIST_SCHEMA>;
|
|
30
|
-
declare const HASH_LIST_ENTRY_SCHEMA: zod.ZodObject<{
|
|
31
|
-
id: zod.ZodString;
|
|
32
|
-
projectId: zod.ZodString;
|
|
33
|
-
hashListId: zod.ZodString;
|
|
34
|
-
hash: zod.ZodString;
|
|
35
|
-
quality: zod.ZodNullable<zod.ZodNumber>;
|
|
36
|
-
label: zod.ZodOptional<zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>>;
|
|
37
|
-
sourceAssetId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
38
|
-
createdAt: zod.ZodNumber;
|
|
39
|
-
}, zod.core.$strip>;
|
|
40
|
-
type HashListEntry = zod.infer<typeof HASH_LIST_ENTRY_SCHEMA>;
|
|
41
|
-
/** The most recent earlier posts CalmLens uses. */
|
|
42
|
-
declare const MODERATION_CONTEXT_USED_ITEMS = 5;
|
|
43
|
-
/**
|
|
44
|
-
* The most characters of earlier posts CalmLens uses. The newest post always fits, since no post
|
|
45
|
-
* may be longer.
|
|
46
|
-
*/
|
|
47
|
-
declare const MODERATION_CONTEXT_USED_CHARACTERS = 2000;
|
|
48
|
-
/** An earlier post in the conversation. */
|
|
49
|
-
interface ModerationContextItem {
|
|
50
|
-
text: string;
|
|
51
|
-
authorId?: string;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* The earlier posts CalmLens uses: the most recent ones, newest first, while at most
|
|
55
|
-
* `MODERATION_CONTEXT_USED_ITEMS` and `MODERATION_CONTEXT_USED_CHARACTERS` allow, returned oldest
|
|
56
|
-
* first. The newest post is always kept, so an over-long one is left for validation to reject.
|
|
57
|
-
*/
|
|
58
|
-
declare const selectModerationContextItems: <Item extends ModerationContextItem>(items: readonly Item[]) => Item[];
|
|
59
|
-
/** The context a request may send: up to 20 earlier posts, oldest first. */
|
|
60
|
-
declare const MODERATION_CONTEXT_SCHEMA: zod.ZodObject<{
|
|
61
|
-
items: zod.ZodArray<zod.ZodObject<{
|
|
62
|
-
text: zod.ZodString;
|
|
63
|
-
authorId: zod.ZodOptional<zod.ZodString>;
|
|
64
|
-
}, zod.core.$strict>>;
|
|
65
|
-
}, zod.core.$strict>;
|
|
66
|
-
type ModerationContext = zod.infer<typeof MODERATION_CONTEXT_SCHEMA>;
|
|
67
|
-
export { selectModerationContextItems as a, AssetModerationDecision as c, ModerationContextItem as i, MODERATION_CONTEXT_USED_CHARACTERS as n, HashList as o, MODERATION_CONTEXT_USED_ITEMS as r, HashListEntry as s, ModerationContext as t };
|
package/esm/index-DxbJ_Xaa.d.ts
DELETED
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import "./ModerationContext-9lGm-Mna-CcmbRnOy.js";
|
|
2
|
-
import { q as GetAssetUrlOptions } from "./CalmLensTypes-COJbOuiv.js";
|
|
3
|
-
import "./WebhookPayload-DkukERKE.js";
|
|
4
|
-
import "./Classification-D3SkprrQ-CMnQKW13.js";
|
|
5
|
-
import * as zod from "zod";
|
|
6
|
-
declare const DEFAULT_CDN_BASE_URL = "https://cdn.calmlens.com/v1";
|
|
7
|
-
/**
|
|
8
|
-
* Builds an asset's CDN URL without a client: no API key and no request, so it works in browsers.
|
|
9
|
-
* `CalmLensServerClient`'s `cdn.getAssetUrl` uses it too.
|
|
10
|
-
*
|
|
11
|
-
* `resource` is `rendered` (default), `original` or `placeholder`. Only `rendered` takes a lens or
|
|
12
|
-
* transform, and it serves images in the best format the browser accepts. A
|
|
13
|
-
* placeholder is a small blurred PNG that the CDN serves publicly for every asset whatever its
|
|
14
|
-
* visibility or moderation status, without requiring age confirmation.
|
|
15
|
-
*/
|
|
16
|
-
declare const getAssetUrl: ({ projectId, assetIdentifier, cdnBaseUrl, resource, ...options }: GetAssetUrlOptions) => string;
|
|
17
|
-
/** This SDK's version, from its package.json. */
|
|
18
|
-
declare const SDK_VERSION: string;
|
|
19
|
-
/**
|
|
20
|
-
* Optional analyses a request can turn on or off with `processingOptions.features.<id>`. The
|
|
21
|
-
* catalog is the single source for the request and result schemas, cache keys and metering. Each
|
|
22
|
-
* feature's `activation` sets what a request that doesn't mention it gets; there is no
|
|
23
|
-
* project-level default.
|
|
24
|
-
*/
|
|
25
|
-
/** How mature a feature is. Beta results may change shape. */
|
|
26
|
-
declare const PROCESSING_FEATURE_STAGES: readonly ["beta", "ga"];
|
|
27
|
-
type ProcessingFeatureStage = (typeof PROCESSING_FEATURE_STAGES)[number];
|
|
28
|
-
declare const PROCESSING_FEATURE_IDS: readonly ["ocr", "personDetection", "faceDetection", "linkDetection", "aiGeneratedDetection"];
|
|
29
|
-
type ProcessingFeatureId = (typeof PROCESSING_FEATURE_IDS)[number];
|
|
30
|
-
declare const PROCESSING_FEATURES_SCHEMA: zod.ZodObject<{
|
|
31
|
-
ocr: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
32
|
-
enabled: zod.ZodBoolean;
|
|
33
|
-
}, zod.core.$strict>>>;
|
|
34
|
-
personDetection: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
35
|
-
enabled: zod.ZodBoolean;
|
|
36
|
-
}, zod.core.$strict>>>;
|
|
37
|
-
faceDetection: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
38
|
-
enabled: zod.ZodBoolean;
|
|
39
|
-
ageEstimation: zod.ZodOptional<zod.ZodBoolean>;
|
|
40
|
-
}, zod.core.$strict>>>;
|
|
41
|
-
linkDetection: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
42
|
-
enabled: zod.ZodBoolean;
|
|
43
|
-
}, zod.core.$strict>>>;
|
|
44
|
-
aiGeneratedDetection: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
45
|
-
enabled: zod.ZodBoolean;
|
|
46
|
-
}, zod.core.$strict>>>;
|
|
47
|
-
}, zod.core.$strict>;
|
|
48
|
-
type ProcessingFeatures = zod.infer<typeof PROCESSING_FEATURES_SCHEMA>;
|
|
49
|
-
/** Position and size as fractions of the image width and height, from 0 to 1. */
|
|
50
|
-
declare const BOUNDING_BOX_SCHEMA: zod.ZodObject<{
|
|
51
|
-
left: zod.ZodNumber;
|
|
52
|
-
top: zod.ZodNumber;
|
|
53
|
-
width: zod.ZodNumber;
|
|
54
|
-
height: zod.ZodNumber;
|
|
55
|
-
}, zod.core.$strict>;
|
|
56
|
-
type BoundingBox = zod.infer<typeof BOUNDING_BOX_SCHEMA>;
|
|
57
|
-
declare const AGE_RANGE_SCHEMA: zod.ZodObject<{
|
|
58
|
-
low: zod.ZodNumber;
|
|
59
|
-
high: zod.ZodNumber;
|
|
60
|
-
}, zod.core.$strict>;
|
|
61
|
-
type AgeRange = zod.infer<typeof AGE_RANGE_SCHEMA>;
|
|
62
|
-
declare const DETECTED_PERSON_SCHEMA: zod.ZodObject<{
|
|
63
|
-
box: zod.ZodObject<{
|
|
64
|
-
left: zod.ZodNumber;
|
|
65
|
-
top: zod.ZodNumber;
|
|
66
|
-
width: zod.ZodNumber;
|
|
67
|
-
height: zod.ZodNumber;
|
|
68
|
-
}, zod.core.$strict>;
|
|
69
|
-
confidence: zod.ZodNumber;
|
|
70
|
-
}, zod.core.$strict>;
|
|
71
|
-
type DetectedPerson = zod.infer<typeof DETECTED_PERSON_SCHEMA>;
|
|
72
|
-
declare const DETECTED_FACE_SCHEMA: zod.ZodObject<{
|
|
73
|
-
box: zod.ZodObject<{
|
|
74
|
-
left: zod.ZodNumber;
|
|
75
|
-
top: zod.ZodNumber;
|
|
76
|
-
width: zod.ZodNumber;
|
|
77
|
-
height: zod.ZodNumber;
|
|
78
|
-
}, zod.core.$strict>;
|
|
79
|
-
confidence: zod.ZodNumber;
|
|
80
|
-
ageRange: zod.ZodOptional<zod.ZodObject<{
|
|
81
|
-
low: zod.ZodNumber;
|
|
82
|
-
high: zod.ZodNumber;
|
|
83
|
-
}, zod.core.$strict>>;
|
|
84
|
-
}, zod.core.$strict>;
|
|
85
|
-
type DetectedFace = zod.infer<typeof DETECTED_FACE_SCHEMA>;
|
|
86
|
-
declare const PROCESSING_FEATURE_RESULTS_SCHEMA: zod.ZodObject<{
|
|
87
|
-
personDetection: zod.ZodOptional<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
88
|
-
status: zod.ZodLiteral<"evaluated">;
|
|
89
|
-
stage: zod.ZodEnum<{
|
|
90
|
-
beta: "beta";
|
|
91
|
-
ga: "ga";
|
|
92
|
-
}>;
|
|
93
|
-
people: zod.ZodArray<zod.ZodObject<{
|
|
94
|
-
box: zod.ZodObject<{
|
|
95
|
-
left: zod.ZodNumber;
|
|
96
|
-
top: zod.ZodNumber;
|
|
97
|
-
width: zod.ZodNumber;
|
|
98
|
-
height: zod.ZodNumber;
|
|
99
|
-
}, zod.core.$strict>;
|
|
100
|
-
confidence: zod.ZodNumber;
|
|
101
|
-
}, zod.core.$strict>>;
|
|
102
|
-
}, zod.core.$strict>, zod.ZodObject<{
|
|
103
|
-
status: zod.ZodLiteral<"not-evaluated">;
|
|
104
|
-
stage: zod.ZodEnum<{
|
|
105
|
-
beta: "beta";
|
|
106
|
-
ga: "ga";
|
|
107
|
-
}>;
|
|
108
|
-
reason: zod.ZodEnum<{
|
|
109
|
-
"not-supported": "not-supported";
|
|
110
|
-
unavailable: "unavailable";
|
|
111
|
-
}>;
|
|
112
|
-
}, zod.core.$strict>], "status">>;
|
|
113
|
-
faceDetection: zod.ZodOptional<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
114
|
-
status: zod.ZodLiteral<"evaluated">;
|
|
115
|
-
stage: zod.ZodEnum<{
|
|
116
|
-
beta: "beta";
|
|
117
|
-
ga: "ga";
|
|
118
|
-
}>;
|
|
119
|
-
faces: zod.ZodArray<zod.ZodObject<{
|
|
120
|
-
box: zod.ZodObject<{
|
|
121
|
-
left: zod.ZodNumber;
|
|
122
|
-
top: zod.ZodNumber;
|
|
123
|
-
width: zod.ZodNumber;
|
|
124
|
-
height: zod.ZodNumber;
|
|
125
|
-
}, zod.core.$strict>;
|
|
126
|
-
confidence: zod.ZodNumber;
|
|
127
|
-
ageRange: zod.ZodOptional<zod.ZodObject<{
|
|
128
|
-
low: zod.ZodNumber;
|
|
129
|
-
high: zod.ZodNumber;
|
|
130
|
-
}, zod.core.$strict>>;
|
|
131
|
-
}, zod.core.$strict>>;
|
|
132
|
-
}, zod.core.$strict>, zod.ZodObject<{
|
|
133
|
-
status: zod.ZodLiteral<"not-evaluated">;
|
|
134
|
-
stage: zod.ZodEnum<{
|
|
135
|
-
beta: "beta";
|
|
136
|
-
ga: "ga";
|
|
137
|
-
}>;
|
|
138
|
-
reason: zod.ZodEnum<{
|
|
139
|
-
"not-supported": "not-supported";
|
|
140
|
-
unavailable: "unavailable";
|
|
141
|
-
}>;
|
|
142
|
-
}, zod.core.$strict>], "status">>;
|
|
143
|
-
linkDetection: zod.ZodOptional<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
144
|
-
status: zod.ZodLiteral<"evaluated">;
|
|
145
|
-
stage: zod.ZodEnum<{
|
|
146
|
-
beta: "beta";
|
|
147
|
-
ga: "ga";
|
|
148
|
-
}>;
|
|
149
|
-
qrCodes: zod.ZodArray<zod.ZodObject<{
|
|
150
|
-
value: zod.ZodString;
|
|
151
|
-
box: zod.ZodObject<{
|
|
152
|
-
left: zod.ZodNumber;
|
|
153
|
-
top: zod.ZodNumber;
|
|
154
|
-
width: zod.ZodNumber;
|
|
155
|
-
height: zod.ZodNumber;
|
|
156
|
-
}, zod.core.$strict>;
|
|
157
|
-
}, zod.core.$strict>>;
|
|
158
|
-
links: zod.ZodArray<zod.ZodObject<{
|
|
159
|
-
url: zod.ZodString;
|
|
160
|
-
source: zod.ZodEnum<{
|
|
161
|
-
"qr-code": "qr-code";
|
|
162
|
-
text: "text";
|
|
163
|
-
}>;
|
|
164
|
-
}, zod.core.$strict>>;
|
|
165
|
-
}, zod.core.$strict>, zod.ZodObject<{
|
|
166
|
-
status: zod.ZodLiteral<"not-evaluated">;
|
|
167
|
-
stage: zod.ZodEnum<{
|
|
168
|
-
beta: "beta";
|
|
169
|
-
ga: "ga";
|
|
170
|
-
}>;
|
|
171
|
-
reason: zod.ZodEnum<{
|
|
172
|
-
"not-supported": "not-supported";
|
|
173
|
-
unavailable: "unavailable";
|
|
174
|
-
}>;
|
|
175
|
-
}, zod.core.$strict>], "status">>;
|
|
176
|
-
linkSafety: zod.ZodOptional<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
177
|
-
status: zod.ZodLiteral<"evaluated">;
|
|
178
|
-
stage: zod.ZodEnum<{
|
|
179
|
-
beta: "beta";
|
|
180
|
-
ga: "ga";
|
|
181
|
-
}>;
|
|
182
|
-
links: zod.ZodArray<zod.ZodObject<{
|
|
183
|
-
url: zod.ZodString;
|
|
184
|
-
finalUrl: zod.ZodNullable<zod.ZodString>;
|
|
185
|
-
redirects: zod.ZodNumber;
|
|
186
|
-
source: zod.ZodEnum<{
|
|
187
|
-
"qr-code": "qr-code";
|
|
188
|
-
text: "text";
|
|
189
|
-
}>;
|
|
190
|
-
verdict: zod.ZodEnum<{
|
|
191
|
-
adult: "adult";
|
|
192
|
-
gambling: "gambling";
|
|
193
|
-
malware: "malware";
|
|
194
|
-
phishing: "phishing";
|
|
195
|
-
safe: "safe";
|
|
196
|
-
unresolved: "unresolved";
|
|
197
|
-
}>;
|
|
198
|
-
evidence: zod.ZodArray<zod.ZodObject<{
|
|
199
|
-
check: zod.ZodEnum<{
|
|
200
|
-
"domain-categories": "domain-categories";
|
|
201
|
-
"threat-lists": "threat-lists";
|
|
202
|
-
}>;
|
|
203
|
-
status: zod.ZodEnum<{
|
|
204
|
-
checked: "checked";
|
|
205
|
-
failed: "failed";
|
|
206
|
-
}>;
|
|
207
|
-
labels: zod.ZodArray<zod.ZodString>;
|
|
208
|
-
}, zod.core.$strict>>;
|
|
209
|
-
}, zod.core.$strict>>;
|
|
210
|
-
}, zod.core.$strict>, zod.ZodObject<{
|
|
211
|
-
status: zod.ZodLiteral<"not-evaluated">;
|
|
212
|
-
stage: zod.ZodEnum<{
|
|
213
|
-
beta: "beta";
|
|
214
|
-
ga: "ga";
|
|
215
|
-
}>;
|
|
216
|
-
reason: zod.ZodEnum<{
|
|
217
|
-
"not-supported": "not-supported";
|
|
218
|
-
unavailable: "unavailable";
|
|
219
|
-
}>;
|
|
220
|
-
}, zod.core.$strict>], "status">>;
|
|
221
|
-
aiGeneratedDetection: zod.ZodOptional<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
222
|
-
status: zod.ZodLiteral<"evaluated">;
|
|
223
|
-
stage: zod.ZodEnum<{
|
|
224
|
-
beta: "beta";
|
|
225
|
-
ga: "ga";
|
|
226
|
-
}>;
|
|
227
|
-
provenance: zod.ZodEnum<{
|
|
228
|
-
"ai-edited": "ai-edited";
|
|
229
|
-
"ai-generated": "ai-generated";
|
|
230
|
-
unknown: "unknown";
|
|
231
|
-
}>;
|
|
232
|
-
signals: zod.ZodArray<zod.ZodObject<{
|
|
233
|
-
kind: zod.ZodEnum<{
|
|
234
|
-
c2pa: "c2pa";
|
|
235
|
-
"generator-metadata": "generator-metadata";
|
|
236
|
-
"iptc-digital-source-type": "iptc-digital-source-type";
|
|
237
|
-
}>;
|
|
238
|
-
value: zod.ZodString;
|
|
239
|
-
}, zod.core.$strict>>;
|
|
240
|
-
}, zod.core.$strict>, zod.ZodObject<{
|
|
241
|
-
status: zod.ZodLiteral<"not-evaluated">;
|
|
242
|
-
stage: zod.ZodEnum<{
|
|
243
|
-
beta: "beta";
|
|
244
|
-
ga: "ga";
|
|
245
|
-
}>;
|
|
246
|
-
reason: zod.ZodEnum<{
|
|
247
|
-
"not-supported": "not-supported";
|
|
248
|
-
unavailable: "unavailable";
|
|
249
|
-
}>;
|
|
250
|
-
}, zod.core.$strict>], "status">>;
|
|
251
|
-
}, zod.core.$strict>;
|
|
252
|
-
type ProcessingFeatureResults = zod.infer<typeof PROCESSING_FEATURE_RESULTS_SCHEMA>;
|
|
253
|
-
export { ProcessingFeatureId as a, ProcessingFeatures as c, getAssetUrl as d, DetectedPerson as i, SDK_VERSION as l, BoundingBox as n, ProcessingFeatureResults as o, DetectedFace as r, ProcessingFeatureStage as s, AgeRange as t, DEFAULT_CDN_BASE_URL as u };
|