calmlens 0.29.1 → 0.30.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/bin/calmlens.js +39 -18
- package/cjs/{BrowserUpload-CsxEB1Pr.js → BrowserUpload-BNeTp6eF.js} +1 -1
- package/cjs/{BrowserUpload-CeGsM9h1.d.ts → BrowserUpload-DS6KT6o_.d.ts} +2 -2
- package/{esm/CalmLensAppClient-D-BD_Ny1.d.ts → cjs/CalmLensAppClient-B4vzxEzg.d.ts} +1 -1
- package/cjs/{CalmLensAppClient-BWMcQM9v.js → CalmLensAppClient-ClqGwUbl.js} +7 -6
- package/cjs/{CalmLensConnection-DBgV8D1B.js → CalmLensConnection-og0jh-Fw.js} +29 -28
- package/cjs/CalmLensError-DPHJaVjX.js +1066 -0
- package/cjs/{CalmLensServerClient-BYN_N0lt.d.ts → CalmLensServerClient-BJl2Hsxr.d.ts} +12 -8
- package/cjs/{CalmLensServerClient-DYO3geSA.js → CalmLensServerClient-KsXM77rO.js} +37 -35
- package/cjs/{TestTriggers-uL2Ec8Vt-cPmmKvYd.js → CalmLensTestInputArguments-BXDBAOg_.js} +50 -22
- package/cjs/{CalmLensTypes-C2blKgTu.d.ts → CalmLensTypes-fAgF0_lq.d.ts} +206 -6
- package/cjs/{Classification-CMM2tZpJ-IdIh63n0.d.ts → Classification-DbXUPSvH-C0o2t4mg.d.ts} +15 -30
- package/cjs/{Core-CNmoxDCW.d.ts → Core-DL531ZPG.d.ts} +2 -2
- package/cjs/{Core-Bl-aESvN.js → Core-eDiPpil9.js} +4 -3
- package/cjs/{ModerationContextLimits-DHu2jHpo.js → ModerationContextLimits-BVBkcgSU.js} +67 -1126
- package/{esm/ReactUpload-kqEe6gcN.d.ts → cjs/ReactUpload-BoS0lr7U.d.ts} +1 -1
- package/cjs/{ReactUpload-BFVNyWoI.js → ReactUpload-DAPAzAwY.js} +1 -1
- package/{esm/TestTriggers-dognME9k-PWyIfHMI.d.ts → cjs/TestTriggers-CLjF01NU.d.ts} +2 -3
- package/cjs/{UploadController-VM1qYwNq.js → UploadController-BElzwMic.js} +6 -6
- package/{esm/WebhookPayload-DZWlnvcY.d.ts → cjs/WebhookPayload-DlGoY_db.d.ts} +11 -7
- package/cjs/app.d.ts +6 -6
- package/cjs/app.js +22 -21
- package/cjs/elements.d.ts +4 -4
- package/cjs/elements.js +4 -4
- package/cjs/{index-Dl2qwS8L.d.ts → index-ChrzzIRt.d.ts} +3 -3
- package/cjs/index.d.ts +5 -5
- package/cjs/index.js +21 -20
- package/cjs/react-native.d.ts +2 -2
- package/cjs/react-native.js +4 -4
- package/cjs/react.d.ts +4 -4
- package/cjs/react.js +5 -5
- package/cjs/server.d.ts +12 -12
- package/cjs/server.js +23 -22
- package/cjs/test-inputs.d.ts +6 -2
- package/cjs/test-inputs.js +23 -13
- package/cjs/testing.d.ts +14 -10
- package/cjs/testing.js +154 -147
- package/cjs/{ui-BCiLF8cU.js → ui-COjb2Hx6.js} +2 -2
- package/cjs/{ui-BtmJC-f9.d.ts → ui-DpZOLeVs.d.ts} +2 -2
- package/cjs/ui.d.ts +2 -2
- package/cjs/ui.js +3 -3
- package/cjs/vue.d.ts +5 -5
- package/cjs/vue.js +4 -4
- package/esm/{BrowserUpload-DB3WpaC1.js → BrowserUpload-BCmj5eGu.js} +1 -1
- package/esm/{BrowserUpload-CeGsM9h1.d.ts → BrowserUpload-DS6KT6o_.d.ts} +2 -2
- package/{cjs/CalmLensAppClient-D-BD_Ny1.d.ts → esm/CalmLensAppClient-B4vzxEzg.d.ts} +1 -1
- package/esm/{CalmLensAppClient-Dg-jPs4B.js → CalmLensAppClient-DcPVLn2y.js} +3 -2
- package/esm/{CalmLensConnection-Di7K7Wnl.js → CalmLensConnection-Pm-g6a1l.js} +2 -1
- package/esm/CalmLensError-BDWThPCr.js +917 -0
- package/esm/{CalmLensServerClient-BYN_N0lt.d.ts → CalmLensServerClient-BJl2Hsxr.d.ts} +12 -8
- package/esm/{CalmLensServerClient-Pdp7TI8y.js → CalmLensServerClient-C2HGsjkT.js} +18 -16
- package/esm/{TestTriggers-uL2Ec8Vt-DYbTEJWm.js → CalmLensTestInputArguments-Xh4GIadS.js} +22 -1
- package/esm/{CalmLensTypes-C2blKgTu.d.ts → CalmLensTypes-fAgF0_lq.d.ts} +206 -6
- package/esm/{Classification-CMM2tZpJ-IdIh63n0.d.ts → Classification-DbXUPSvH-C0o2t4mg.d.ts} +15 -30
- package/esm/{Core-CNmoxDCW.d.ts → Core-DL531ZPG.d.ts} +2 -2
- package/esm/{Core-CKk4teFu.js → Core-KYgLJ0eb.js} +3 -2
- package/esm/{ModerationContextLimits-xvxUjGfL.js → ModerationContextLimits-DmjWgTBa.js} +3 -918
- package/{cjs/ReactUpload-kqEe6gcN.d.ts → esm/ReactUpload-BoS0lr7U.d.ts} +1 -1
- package/esm/{ReactUpload-DY5qQ70s.js → ReactUpload-QW_RNxFp.js} +1 -1
- package/{cjs/TestTriggers-dognME9k-PWyIfHMI.d.ts → esm/TestTriggers-CLjF01NU.d.ts} +2 -3
- package/esm/{UploadController-wyor-5Z2.js → UploadController-Civ7QPwT.js} +2 -2
- package/{cjs/WebhookPayload-DZWlnvcY.d.ts → esm/WebhookPayload-DlGoY_db.d.ts} +11 -7
- package/esm/app.d.ts +6 -6
- package/esm/app.js +3 -2
- package/esm/elements.d.ts +4 -4
- package/esm/elements.js +4 -4
- package/esm/{index-Dl2qwS8L.d.ts → index-ChrzzIRt.d.ts} +3 -3
- package/esm/index.d.ts +5 -5
- package/esm/index.js +3 -1
- package/esm/react-native.d.ts +2 -2
- package/esm/react-native.js +4 -4
- package/esm/react.d.ts +4 -4
- package/esm/react.js +5 -5
- package/esm/server.d.ts +12 -12
- package/esm/server.js +4 -3
- package/esm/test-inputs.d.ts +6 -2
- package/esm/test-inputs.js +12 -1
- package/esm/testing.d.ts +14 -10
- package/esm/testing.js +27 -21
- package/esm/{ui-BqF49fSy.js → ui-BVXgDCO2.js} +2 -2
- package/esm/{ui-BtmJC-f9.d.ts → ui-DpZOLeVs.d.ts} +2 -2
- package/esm/ui.d.ts +2 -2
- package/esm/ui.js +3 -3
- package/esm/vue.d.ts +5 -5
- package/esm/vue.js +4 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as FolderPage, At as ResetPolicyOptions, B as CreateHashListOptions, D as BatchAssetsResponse, Dt as RequestAssetReviewOptions, E as BatchAssetsOptions, Et as RemoveAssetContentOptions, Ft as SetPolicyAutomaticUpdatesOptions, G as DeleteAssetOptions, Gt as UpdateLensOptions, Ht as UpdateAssetOptions, I as ClassifyTextOptions,
|
|
3
|
-
import { d as ListPromise, l as CalmLensResponse, r as CdnResponse } from "./WebhookPayload-
|
|
1
|
+
import { c as HashList, l as HashListEntry } from "./Classification-DbXUPSvH-C0o2t4mg.js";
|
|
2
|
+
import { $ as FolderPage, At as ResetPolicyOptions, B as CreateHashListOptions, Bn as AssetInfo, Cn as ProjectSettingsResource, D as BatchAssetsResponse, Dt as RequestAssetReviewOptions, E as BatchAssetsOptions, Et as RemoveAssetContentOptions, Ft as SetPolicyAutomaticUpdatesOptions, G as DeleteAssetOptions, Gt as UpdateLensOptions, Ht as UpdateAssetOptions, I as ClassifyTextOptions, It as SignAssetUrlOptions, J as EnsureLensesOptions, Jt as UpgradePolicyOptions, K as DeleteMetadataFieldOptions, Kt as UpdatePolicyOptions, Lt as SignUploadTokenOptions, M as CdnAssetUrlOptions, Mt as RetrieveAssetOptions, Nt as RetryAssetOptions, P as CdnServeOptions, Pn as Policy, Q as FolderIdOptions, Qt as UploadPresetPage, Rn as AssetSearchQuery, Rt as SignedAssetUrl, Sn as MetadataFieldsResource, T as AssignPolicyOptions, Tt as PolicyPage, U as CreatePolicyOptions, Ut as UpdateFolderOptions, V as CreateLensOptions, Vt as SubmitAssetOptions, W as DecideAssetOptions, Wt as UpdateHashListOptions, X as EnsureUploadPresetsOptions, Y as EnsureMetadataFieldsOptions, Yt as UploadAssetPartOptions, Z as EnsureUploadPresetsResponse, Zt as UploadPresetIdOptions, _ as AssetPage, _t as ListLensesOptions, b as AssetTimelinePage, bt as MoveAssetOptions, ct as LensIdOptions, dt as ListAssetTimelineOptions, et as GetAssetInfoOptions, ft as ListAssetsOptions, gt as ListHashListsOptions, ht as ListHashListEntriesOptions, it as HashListPage, jt as RetrieveAssetByExternalIdOptions, k as CalmLensServerClientOptions, kt as RequestOptions, ln as GetEventsResponse, lt as LensPage, mt as ListFoldersOptions, nt as HashListEntryPage, o as AssetChildrenPage, pt as ListEventsOptions, q as EnsureLensOptions, qt as UpdateProjectSettingsOptions, r as Asset, rn as WaitForAssetDecisionOptions, rt as HashListIdOptions, sn as AssetReviewRequest, st as Lens, t as AddHashListEntryOptions, tn as VerifyWebhookSignatureOptions, tt as HashListEntryIdOptions, ut as ListAssetChildrenOptions, v as AssetSearchResponse, vt as ListPoliciesOptions, wt as PolicyIdOptions, xn as Folder, xt as MoveFolderOptions, yt as ListUploadPresetsOptions, z as CreateFolderOptions, zt as SignedUploadToken } from "./CalmLensTypes-fAgF0_lq.js";
|
|
3
|
+
import { d as ListPromise, l as CalmLensResponse, r as CdnResponse } from "./WebhookPayload-DlGoY_db.js";
|
|
4
4
|
interface TransportRequest {
|
|
5
5
|
/** The client method sending the request, such as `assets.retrieve`, for hooks and logs. */
|
|
6
6
|
operation?: string;
|
|
@@ -242,13 +242,17 @@ declare class CalmLensServerClient {
|
|
|
242
242
|
list: (options?: ListEventsOptions, requestOptions?: RequestOptions) => ListPromise<GetEventsResponse>;
|
|
243
243
|
/**
|
|
244
244
|
* Retrieves the asset an event is about, as it is now, such as one from `events.list` or a
|
|
245
|
-
* parsed webhook delivery; events carry only the asset's ID
|
|
246
|
-
* event that isn't about an asset, and rejects with `asset/not-found` once the
|
|
247
|
-
* deleted. The asset's `
|
|
248
|
-
* `
|
|
245
|
+
* parsed webhook delivery; events carry only the asset's ID, in `resource`. Resolves to
|
|
246
|
+
* `null` for an event that isn't about an asset, and rejects with `asset/not-found` once the
|
|
247
|
+
* asset is deleted. The asset's `sequence` orders it against events: an event with a higher
|
|
248
|
+
* `resource.sequence` happened after this state, one with an equal or lower one is reflected
|
|
249
|
+
* in it.
|
|
249
250
|
*/
|
|
250
251
|
retrieveAsset: (event: {
|
|
251
|
-
readonly
|
|
252
|
+
readonly resource?: {
|
|
253
|
+
readonly kind: string;
|
|
254
|
+
readonly id: string;
|
|
255
|
+
} | null;
|
|
252
256
|
}, requestOptions?: RequestOptions) => Promise<CalmLensResponse<Asset> | null>;
|
|
253
257
|
};
|
|
254
258
|
get folders(): {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { C as invalidConfig, S as invalidArgument, l as CalmLensError, x as SDK_ERROR_CODES } from "./CalmLensError-BDWThPCr.js";
|
|
2
|
+
import { B as copyLastResponse, C as toTextAssetOptions, D as validateServerClientOptions, E as validateBatchAssetsOptions, H as readEnv, L as isBrowserRuntime, R as isReactNativeRuntime, S as stringifyQuery, V as listPages, f as validateSignAssetUrlOptions, g as encodePathSegment, l as buildAssetUrl, m as checkOptionKeys, p as DEFAULT_CDN_BASE_URL, s as appendSignedLocation, u as getAssetInfo, y as pollForDecision } from "./ModerationContextLimits-DmjWgTBa.js";
|
|
3
|
+
import { a as getMockHooks, c as prepareSubmitAssetOptions, d as validateCallOptions, l as resolveConnectionOptions, m as SERVER_OPTION_KEYS, o as invalidPayload, p as NULLABLE_OPTION_KEYS, r as expectAsset, s as newIdempotencyKey, t as CalmLensConnection, u as splitsIntoParts } from "./CalmLensConnection-Pm-g6a1l.js";
|
|
3
4
|
import { n as sha256Hex, r as timingSafeEqual, t as hmacSha256Hex } from "./CryptoUtils-BLCa-oZe-DKr3LmN6.js";
|
|
4
5
|
// src/contract/JsonUtils.js
|
|
5
6
|
const stringifyJsonCanonical = (value) => JSON.stringify(value, (_key, nestedValue) => {
|
|
@@ -152,8 +153,8 @@ const isOptional = (value, type, nullable) => value === void 0 || nullable && va
|
|
|
152
153
|
*/
|
|
153
154
|
const isWebhookEvent = (value) => {
|
|
154
155
|
if (!isObject(value) || typeof value.id !== "string" || typeof value.type !== "string" || typeof value.projectId !== "string" || typeof value.createdAt !== "number") return false;
|
|
155
|
-
const { severity, title, description,
|
|
156
|
-
return isOptional(severity, "string", false) && isOptional(title, "string", false) && isOptional(description, "string", true) &&
|
|
156
|
+
const { severity, title, description, resource, facts } = value;
|
|
157
|
+
return isOptional(severity, "string", false) && isOptional(title, "string", false) && isOptional(description, "string", true) && (resource === void 0 || resource === null || isObject(resource) && typeof resource.kind === "string" && typeof resource.id === "string" && typeof resource.sequence === "number") && (facts === void 0 || Array.isArray(facts) && facts.every((fact) => isObject(fact) && typeof fact.key === "string" && "value" in fact && isOptional(fact.url, "string", false)));
|
|
157
158
|
};
|
|
158
159
|
/**
|
|
159
160
|
* The value of one of an event's facts, by key, or `undefined` when the event doesn't carry it.
|
|
@@ -177,13 +178,13 @@ const getEventFacts = (event) => {
|
|
|
177
178
|
*/
|
|
178
179
|
const isTestWebhookEvent = (event) => Array.isArray(event?.facts) && event.facts.some((fact) => fact?.key === "test" && fact.value === true);
|
|
179
180
|
/**
|
|
180
|
-
* Whether to apply `event` after `lastSequence`, the highest `
|
|
181
|
-
* its
|
|
182
|
-
*
|
|
183
|
-
* earlier one returns `false`. Events
|
|
184
|
-
*
|
|
181
|
+
* Whether to apply `event` after `lastSequence`, the highest `resource.sequence` you have applied
|
|
182
|
+
* for its resource (`null` or `undefined` when none). Deliveries can arrive out of order: an event
|
|
183
|
+
* about a resource is newer only with a higher sequence, so a retried or repeated delivery of an
|
|
184
|
+
* earlier one returns `false`. Events about no resource have no sequence and are always new.
|
|
185
|
+
* Store the event's `resource.sequence` per `resource.id` once you have applied it.
|
|
185
186
|
*/
|
|
186
|
-
const
|
|
187
|
+
const isNewerEvent = (event, lastSequence) => !event.resource || lastSequence === null || lastSequence === void 0 || event.resource.sequence > lastSequence;
|
|
187
188
|
// src/client/ServedAssetInfo.ts
|
|
188
189
|
function parseServedAssetInfo(header) {
|
|
189
190
|
if (!header) return void 0;
|
|
@@ -687,12 +688,13 @@ sign: async (options) => {
|
|
|
687
688
|
} })),
|
|
688
689
|
/**
|
|
689
690
|
* Retrieves the asset an event is about, as it is now, such as one from `events.list` or a
|
|
690
|
-
* parsed webhook delivery; events carry only the asset's ID
|
|
691
|
-
* event that isn't about an asset, and rejects with `asset/not-found` once the
|
|
692
|
-
* deleted. The asset's `
|
|
693
|
-
* `
|
|
691
|
+
* parsed webhook delivery; events carry only the asset's ID, in `resource`. Resolves to
|
|
692
|
+
* `null` for an event that isn't about an asset, and rejects with `asset/not-found` once the
|
|
693
|
+
* asset is deleted. The asset's `sequence` orders it against events: an event with a higher
|
|
694
|
+
* `resource.sequence` happened after this state, one with an equal or lower one is reflected
|
|
695
|
+
* in it.
|
|
694
696
|
*/
|
|
695
|
-
retrieveAsset: async (event, requestOptions) => event.
|
|
697
|
+
retrieveAsset: async (event, requestOptions) => event.resource?.kind === "asset" ? this.assets.retrieve({ assetId: event.resource.id }, requestOptions) : null
|
|
696
698
|
};
|
|
697
699
|
}
|
|
698
700
|
get folders() {
|
|
@@ -948,4 +950,4 @@ sign: async (options) => {
|
|
|
948
950
|
}
|
|
949
951
|
}
|
|
950
952
|
};
|
|
951
|
-
export { WEBHOOK_TIMESTAMP_HEADER as a,
|
|
953
|
+
export { WEBHOOK_TIMESTAMP_HEADER as a, isNewerEvent as c, verifyWebhookSignature as d, signUploadTokenWithApiKey as f, WEBHOOK_SIGNATURE_TOLERANCE_SECONDS as i, isTestWebhookEvent as l, stringifyJsonCanonical as m, WEBHOOK_DELIVERY_HEADER as n, getEventFact as o, decodeUploadToken as p, WEBHOOK_SIGNATURE_HEADER as r, getEventFacts as s, CalmLensServerClient as t, parseWebhookEvent as u };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { S as invalidArgument } from "./CalmLensError-BDWThPCr.js";
|
|
1
2
|
import { r as timingSafeEqual, t as hmacSha256Hex } from "./CryptoUtils-BLCa-oZe-DKr3LmN6.js";
|
|
2
3
|
import * as z from "zod";
|
|
3
4
|
import { globalRegistry } from "zod";
|
|
@@ -1957,4 +1958,24 @@ async function detectTestImage(image, key, { whole = true } = {}) {
|
|
|
1957
1958
|
if (!scenario || !whole) return scenario;
|
|
1958
1959
|
return matchesTestImageGrid(image, grid, paintTestImageGrid(data.subarray(0, 18 + length), testImagePalette(scenario))) ? scenario : void 0;
|
|
1959
1960
|
}
|
|
1960
|
-
|
|
1961
|
+
// src/client/CalmLensTestInputArguments.ts
|
|
1962
|
+
/**
|
|
1963
|
+
* Runs a test input generator with the caller's scenario and key, reporting an invalid one as an
|
|
1964
|
+
* `sdk/invalid-argument` CalmLensError (naming the offending scenario field) instead of the
|
|
1965
|
+
* contract's raw validation error.
|
|
1966
|
+
*/
|
|
1967
|
+
async function withValidTestInputArguments(key, generate) {
|
|
1968
|
+
if (!TEST_INPUT_KEY_PATTERN.test(key)) throw invalidArgument("key must be a test input key: 32 lowercase hexadecimal characters");
|
|
1969
|
+
try {
|
|
1970
|
+
return await generate();
|
|
1971
|
+
} catch (error) {
|
|
1972
|
+
if (error instanceof z.ZodError) {
|
|
1973
|
+
const [issue] = error.issues;
|
|
1974
|
+
const path = (issue?.path ?? []).map((segment) => typeof segment === "number" ? segment : String(segment));
|
|
1975
|
+
throw invalidArgument(`Invalid test scenario at ${path.length ? path.join(".") : "scenario"}: ${issue?.message ?? error.message}`, { path });
|
|
1976
|
+
}
|
|
1977
|
+
if (error instanceof RangeError) throw invalidArgument(error.message);
|
|
1978
|
+
throw error;
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
export { TEST_FACE_AGE_PRESETS as a, detectTestImage as c, getImageTestCategories as d, getTestInputTag as f, CLASSIFICATION_CATEGORIES as g, lazySchema as h, TEST_FACE_AGE_MAX as i, detectTestTrigger as l, testInputForSignal as m, TEST_DETECTIONS_MAX as n, TEST_INPUT_KEY_PATTERN as o, paintTestImage as p, TEST_DETECTION_BOX_MAX as r, TEST_INPUT_PRESETS as s, withValidTestInputArguments as t, generateTestTextCode as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as HashList, d as ModerationContext, l as HashListEntry } from "./Classification-DbXUPSvH-C0o2t4mg.js";
|
|
2
2
|
import * as zod from "zod";
|
|
3
3
|
/**
|
|
4
4
|
* Where the asset is in the pipeline: waiting for its content or its turn (`queued`), being
|
|
@@ -15202,7 +15202,7 @@ declare const ASSET_SCHEMA: zod.ZodObject<{
|
|
|
15202
15202
|
averageColor: zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>;
|
|
15203
15203
|
}, zod.core.$strip>>;
|
|
15204
15204
|
}, zod.core.$strip>;
|
|
15205
|
-
|
|
15205
|
+
sequence: zod.ZodNumber;
|
|
15206
15206
|
}, zod.core.$strip>;
|
|
15207
15207
|
type Asset$1 = zod.infer<typeof ASSET_SCHEMA>;
|
|
15208
15208
|
/**
|
|
@@ -15280,6 +15280,21 @@ declare const ASSET_INFO_SCHEMA: zod.ZodObject<{
|
|
|
15280
15280
|
}>;
|
|
15281
15281
|
}, zod.core.$strip>;
|
|
15282
15282
|
type AssetInfo = zod.infer<typeof ASSET_INFO_SCHEMA>;
|
|
15283
|
+
/**
|
|
15284
|
+
* What moderation decided for an asset, which also decides how it is delivered: served to anyone
|
|
15285
|
+
* with access (`allowed`), served the same way but marked for reduced reach (`limited`), only to
|
|
15286
|
+
* requests that confirm the viewer's age with `ageConfirmed`, signed URLs and server keys included
|
|
15287
|
+
* (`age-restricted`), not served (`blocked`), or not served with its stored content deleted
|
|
15288
|
+
* (`purged`).
|
|
15289
|
+
*/
|
|
15290
|
+
declare const ASSET_MODERATION_DECISION_SCHEMA: zod.ZodEnum<{
|
|
15291
|
+
"age-restricted": "age-restricted";
|
|
15292
|
+
allowed: "allowed";
|
|
15293
|
+
blocked: "blocked";
|
|
15294
|
+
limited: "limited";
|
|
15295
|
+
purged: "purged";
|
|
15296
|
+
}>;
|
|
15297
|
+
type AssetModerationDecision$1 = zod.infer<typeof ASSET_MODERATION_DECISION_SCHEMA>;
|
|
15283
15298
|
type AssetDataInput = Blob | Response | ReadableStream<Uint8Array>;
|
|
15284
15299
|
type AssetBufferInput = ArrayBuffer | (Uint8Array & {
|
|
15285
15300
|
write(string: string, offset?: number, length?: number, encoding?: string): number;
|
|
@@ -20460,7 +20475,7 @@ declare const ASSET_SEARCH_RESULT_SCHEMA: zod.ZodObject<{
|
|
|
20460
20475
|
averageColor: zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>;
|
|
20461
20476
|
}, zod.core.$strip>>;
|
|
20462
20477
|
}, zod.core.$strip>;
|
|
20463
|
-
|
|
20478
|
+
sequence: zod.ZodNumber;
|
|
20464
20479
|
}, zod.core.$strip>;
|
|
20465
20480
|
score: zod.ZodNumber;
|
|
20466
20481
|
matchedFields: zod.ZodArray<zod.ZodEnum<{
|
|
@@ -35482,6 +35497,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35482
35497
|
permission: PermissionAction;
|
|
35483
35498
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35484
35499
|
enabled?: boolean;
|
|
35500
|
+
/**
|
|
35501
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35502
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35503
|
+
*/
|
|
35504
|
+
resource?: undefined;
|
|
35485
35505
|
fields: {
|
|
35486
35506
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35487
35507
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -35551,6 +35571,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35551
35571
|
permission: PermissionAction;
|
|
35552
35572
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35553
35573
|
enabled?: boolean;
|
|
35574
|
+
/**
|
|
35575
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35576
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35577
|
+
*/
|
|
35578
|
+
resource?: undefined;
|
|
35554
35579
|
fields: {
|
|
35555
35580
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35556
35581
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -35673,6 +35698,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35673
35698
|
permission: PermissionAction;
|
|
35674
35699
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35675
35700
|
enabled?: boolean;
|
|
35701
|
+
/**
|
|
35702
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35703
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35704
|
+
*/
|
|
35705
|
+
resource?: undefined;
|
|
35676
35706
|
fields: {
|
|
35677
35707
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35678
35708
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -35777,6 +35807,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35777
35807
|
permission: PermissionAction;
|
|
35778
35808
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35779
35809
|
enabled?: boolean;
|
|
35810
|
+
/**
|
|
35811
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35812
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35813
|
+
*/
|
|
35814
|
+
resource?: undefined;
|
|
35780
35815
|
fields: {
|
|
35781
35816
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35782
35817
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -35891,6 +35926,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35891
35926
|
permission: PermissionAction;
|
|
35892
35927
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35893
35928
|
enabled?: boolean;
|
|
35929
|
+
/**
|
|
35930
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35931
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35932
|
+
*/
|
|
35933
|
+
resource?: undefined;
|
|
35894
35934
|
fields: {
|
|
35895
35935
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35896
35936
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36005,6 +36045,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36005
36045
|
permission: PermissionAction;
|
|
36006
36046
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36007
36047
|
enabled?: boolean;
|
|
36048
|
+
/**
|
|
36049
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36050
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36051
|
+
*/
|
|
36052
|
+
resource?: undefined;
|
|
36008
36053
|
fields: {
|
|
36009
36054
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36010
36055
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36119,6 +36164,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36119
36164
|
permission: PermissionAction;
|
|
36120
36165
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36121
36166
|
enabled?: boolean;
|
|
36167
|
+
/**
|
|
36168
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36169
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36170
|
+
*/
|
|
36171
|
+
resource?: undefined;
|
|
36122
36172
|
fields: {
|
|
36123
36173
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36124
36174
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36233,6 +36283,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36233
36283
|
permission: PermissionAction;
|
|
36234
36284
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36235
36285
|
enabled?: boolean;
|
|
36286
|
+
/**
|
|
36287
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36288
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36289
|
+
*/
|
|
36290
|
+
resource?: undefined;
|
|
36236
36291
|
fields: {
|
|
36237
36292
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36238
36293
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36347,6 +36402,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36347
36402
|
permission: PermissionAction;
|
|
36348
36403
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36349
36404
|
enabled?: boolean;
|
|
36405
|
+
/**
|
|
36406
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36407
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36408
|
+
*/
|
|
36409
|
+
resource?: undefined;
|
|
36350
36410
|
fields: {
|
|
36351
36411
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36352
36412
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36460,6 +36520,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36460
36520
|
permission: PermissionAction;
|
|
36461
36521
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36462
36522
|
enabled?: boolean;
|
|
36523
|
+
/**
|
|
36524
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36525
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36526
|
+
*/
|
|
36527
|
+
resource?: undefined;
|
|
36463
36528
|
fields: {
|
|
36464
36529
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36465
36530
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36532,6 +36597,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36532
36597
|
permission: PermissionAction;
|
|
36533
36598
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36534
36599
|
enabled?: boolean;
|
|
36600
|
+
/**
|
|
36601
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36602
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36603
|
+
*/
|
|
36604
|
+
resource?: undefined;
|
|
36535
36605
|
fields: {
|
|
36536
36606
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36537
36607
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36598,6 +36668,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36598
36668
|
permission: PermissionAction;
|
|
36599
36669
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36600
36670
|
enabled?: boolean;
|
|
36671
|
+
/**
|
|
36672
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36673
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36674
|
+
*/
|
|
36675
|
+
resource?: undefined;
|
|
36601
36676
|
fields: {
|
|
36602
36677
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36603
36678
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36667,6 +36742,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36667
36742
|
permission: PermissionAction;
|
|
36668
36743
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36669
36744
|
enabled?: boolean;
|
|
36745
|
+
/**
|
|
36746
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36747
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36748
|
+
*/
|
|
36749
|
+
resource?: undefined;
|
|
36670
36750
|
fields: {
|
|
36671
36751
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36672
36752
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36736,6 +36816,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36736
36816
|
permission: PermissionAction;
|
|
36737
36817
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36738
36818
|
enabled?: boolean;
|
|
36819
|
+
/**
|
|
36820
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36821
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36822
|
+
*/
|
|
36823
|
+
resource?: undefined;
|
|
36739
36824
|
fields: {
|
|
36740
36825
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36741
36826
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36802,6 +36887,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36802
36887
|
permission: PermissionAction;
|
|
36803
36888
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36804
36889
|
enabled?: boolean;
|
|
36890
|
+
/**
|
|
36891
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36892
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36893
|
+
*/
|
|
36894
|
+
resource?: undefined;
|
|
36805
36895
|
fields: {
|
|
36806
36896
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36807
36897
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36922,6 +37012,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36922
37012
|
permission: PermissionAction;
|
|
36923
37013
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36924
37014
|
enabled?: boolean;
|
|
37015
|
+
/**
|
|
37016
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37017
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37018
|
+
*/
|
|
37019
|
+
resource?: undefined;
|
|
36925
37020
|
fields: {
|
|
36926
37021
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36927
37022
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -37018,6 +37113,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37018
37113
|
permission: PermissionAction;
|
|
37019
37114
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37020
37115
|
enabled?: boolean;
|
|
37116
|
+
/**
|
|
37117
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37118
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37119
|
+
*/
|
|
37120
|
+
resource?: undefined;
|
|
37021
37121
|
fields: {
|
|
37022
37122
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
37023
37123
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -37105,6 +37205,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37105
37205
|
permission: PermissionAction;
|
|
37106
37206
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37107
37207
|
enabled?: boolean;
|
|
37208
|
+
/**
|
|
37209
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37210
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37211
|
+
*/
|
|
37212
|
+
resource?: undefined;
|
|
37108
37213
|
fields: {
|
|
37109
37214
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
37110
37215
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -37208,6 +37313,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37208
37313
|
permission: PermissionAction;
|
|
37209
37314
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37210
37315
|
enabled?: boolean;
|
|
37316
|
+
/**
|
|
37317
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37318
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37319
|
+
*/
|
|
37320
|
+
resource?: undefined;
|
|
37211
37321
|
fields: {
|
|
37212
37322
|
limit: EventFieldDefinition<zod.ZodNumber>;
|
|
37213
37323
|
used: EventFieldDefinition<zod.ZodNumber>;
|
|
@@ -37261,6 +37371,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37261
37371
|
permission: PermissionAction;
|
|
37262
37372
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37263
37373
|
enabled?: boolean;
|
|
37374
|
+
/**
|
|
37375
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37376
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37377
|
+
*/
|
|
37378
|
+
resource?: undefined;
|
|
37264
37379
|
fields: {
|
|
37265
37380
|
reason: EventFieldDefinition<zod.ZodEnum<{
|
|
37266
37381
|
"payment-failed": "payment-failed";
|
|
@@ -37321,6 +37436,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37321
37436
|
permission: PermissionAction;
|
|
37322
37437
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37323
37438
|
enabled?: boolean;
|
|
37439
|
+
/**
|
|
37440
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37441
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37442
|
+
*/
|
|
37443
|
+
resource?: undefined;
|
|
37324
37444
|
fields: {
|
|
37325
37445
|
presetId: EventFieldDefinition<zod.ZodString>;
|
|
37326
37446
|
presetName: EventFieldDefinition<zod.ZodString>;
|
|
@@ -37374,6 +37494,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37374
37494
|
permission: PermissionAction;
|
|
37375
37495
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37376
37496
|
enabled?: boolean;
|
|
37497
|
+
/**
|
|
37498
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37499
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37500
|
+
*/
|
|
37501
|
+
resource?: "member" | undefined;
|
|
37377
37502
|
fields: {
|
|
37378
37503
|
memberUserId: EventFieldDefinition<zod.ZodString>;
|
|
37379
37504
|
memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37441,6 +37566,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37441
37566
|
permission: PermissionAction;
|
|
37442
37567
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37443
37568
|
enabled?: boolean;
|
|
37569
|
+
/**
|
|
37570
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37571
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37572
|
+
*/
|
|
37573
|
+
resource?: "member" | undefined;
|
|
37444
37574
|
fields: {
|
|
37445
37575
|
memberUserId: EventFieldDefinition<zod.ZodString>;
|
|
37446
37576
|
memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37508,6 +37638,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37508
37638
|
permission: PermissionAction;
|
|
37509
37639
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37510
37640
|
enabled?: boolean;
|
|
37641
|
+
/**
|
|
37642
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37643
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37644
|
+
*/
|
|
37645
|
+
resource?: "member" | undefined;
|
|
37511
37646
|
fields: {
|
|
37512
37647
|
memberUserId: EventFieldDefinition<zod.ZodString>;
|
|
37513
37648
|
memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37575,6 +37710,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37575
37710
|
permission: PermissionAction;
|
|
37576
37711
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37577
37712
|
enabled?: boolean;
|
|
37713
|
+
/**
|
|
37714
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37715
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37716
|
+
*/
|
|
37717
|
+
resource?: "member" | undefined;
|
|
37578
37718
|
fields: {
|
|
37579
37719
|
memberUserId: EventFieldDefinition<zod.ZodString>;
|
|
37580
37720
|
memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37659,6 +37799,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37659
37799
|
permission: PermissionAction;
|
|
37660
37800
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37661
37801
|
enabled?: boolean;
|
|
37802
|
+
/**
|
|
37803
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37804
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37805
|
+
*/
|
|
37806
|
+
resource?: undefined;
|
|
37662
37807
|
fields: {
|
|
37663
37808
|
inviteeEmail: EventFieldDefinition<zod.ZodString>;
|
|
37664
37809
|
role: EventFieldDefinition<zod.ZodEnum<{
|
|
@@ -37723,6 +37868,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37723
37868
|
permission: PermissionAction;
|
|
37724
37869
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37725
37870
|
enabled?: boolean;
|
|
37871
|
+
/**
|
|
37872
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37873
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37874
|
+
*/
|
|
37875
|
+
resource?: undefined;
|
|
37726
37876
|
fields: {
|
|
37727
37877
|
previousOrganisationId: EventFieldDefinition<zod.ZodString>;
|
|
37728
37878
|
previousOrganisationName: EventFieldDefinition<zod.ZodString>;
|
|
@@ -37794,6 +37944,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37794
37944
|
permission: PermissionAction;
|
|
37795
37945
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37796
37946
|
enabled?: boolean;
|
|
37947
|
+
/**
|
|
37948
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37949
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37950
|
+
*/
|
|
37951
|
+
resource?: "api-key" | undefined;
|
|
37797
37952
|
fields: {
|
|
37798
37953
|
keyId: EventFieldDefinition<zod.ZodString>;
|
|
37799
37954
|
keyName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37862,6 +38017,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37862
38017
|
permission: PermissionAction;
|
|
37863
38018
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37864
38019
|
enabled?: boolean;
|
|
38020
|
+
/**
|
|
38021
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38022
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38023
|
+
*/
|
|
38024
|
+
resource?: "api-key" | undefined;
|
|
37865
38025
|
fields: {
|
|
37866
38026
|
keyId: EventFieldDefinition<zod.ZodString>;
|
|
37867
38027
|
keyName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37915,6 +38075,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37915
38075
|
permission: PermissionAction;
|
|
37916
38076
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37917
38077
|
enabled?: boolean;
|
|
38078
|
+
/**
|
|
38079
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38080
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38081
|
+
*/
|
|
38082
|
+
resource?: "api-key" | undefined;
|
|
37918
38083
|
fields: {
|
|
37919
38084
|
keyId: EventFieldDefinition<zod.ZodString>;
|
|
37920
38085
|
keyName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37968,6 +38133,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37968
38133
|
permission: PermissionAction;
|
|
37969
38134
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37970
38135
|
enabled?: boolean;
|
|
38136
|
+
/**
|
|
38137
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38138
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38139
|
+
*/
|
|
38140
|
+
resource?: undefined;
|
|
37971
38141
|
fields: {
|
|
37972
38142
|
connectorId: EventFieldDefinition<zod.ZodString>;
|
|
37973
38143
|
connectorName: EventFieldDefinition<zod.ZodString>;
|
|
@@ -38037,6 +38207,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
38037
38207
|
permission: PermissionAction;
|
|
38038
38208
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
38039
38209
|
enabled?: boolean;
|
|
38210
|
+
/**
|
|
38211
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38212
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38213
|
+
*/
|
|
38214
|
+
resource?: undefined;
|
|
38040
38215
|
fields: {
|
|
38041
38216
|
appealId: EventFieldDefinition<zod.ZodString>;
|
|
38042
38217
|
subjectType: EventFieldDefinition<zod.ZodEnum<{
|
|
@@ -38100,6 +38275,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
38100
38275
|
permission: PermissionAction;
|
|
38101
38276
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
38102
38277
|
enabled?: boolean;
|
|
38278
|
+
/**
|
|
38279
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38280
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38281
|
+
*/
|
|
38282
|
+
resource?: undefined;
|
|
38103
38283
|
fields: {
|
|
38104
38284
|
appealId: EventFieldDefinition<zod.ZodString>;
|
|
38105
38285
|
subjectType: EventFieldDefinition<zod.ZodEnum<{
|
|
@@ -38180,6 +38360,9 @@ type EventFact<TType extends EventType = EventType> = TType extends EventType ?
|
|
|
38180
38360
|
url?: string;
|
|
38181
38361
|
} : never;
|
|
38182
38362
|
type EventFacts<TType extends EventType = EventType> = EventFact<TType>[];
|
|
38363
|
+
/** The kinds of resource an event can be about. Each resource numbers its own events in sequence. */
|
|
38364
|
+
declare const EVENT_RESOURCE_KINDS: readonly ["asset", "member", "api-key"];
|
|
38365
|
+
type EventResourceKind = (typeof EVENT_RESOURCE_KINDS)[number];
|
|
38183
38366
|
declare const ACTOR_SCHEMA: zod.ZodObject<{
|
|
38184
38367
|
type: zod.ZodEnum<{
|
|
38185
38368
|
"api-key": "api-key";
|
|
@@ -38190,6 +38373,16 @@ declare const ACTOR_SCHEMA: zod.ZodObject<{
|
|
|
38190
38373
|
id: zod.ZodNullable<zod.ZodString>;
|
|
38191
38374
|
}, zod.core.$strict>;
|
|
38192
38375
|
type Actor = zod.infer<typeof ACTOR_SCHEMA>;
|
|
38376
|
+
declare const EVENT_RESOURCE_SCHEMA: zod.ZodObject<{
|
|
38377
|
+
kind: zod.ZodEnum<{
|
|
38378
|
+
"api-key": "api-key";
|
|
38379
|
+
asset: "asset";
|
|
38380
|
+
member: "member";
|
|
38381
|
+
}>;
|
|
38382
|
+
id: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
|
|
38383
|
+
sequence: zod.ZodNumber;
|
|
38384
|
+
}, zod.core.$strict>;
|
|
38385
|
+
type EventResource = zod.infer<typeof EVENT_RESOURCE_SCHEMA>;
|
|
38193
38386
|
/** An event as `GET /events` lists it and webhooks deliver it. */
|
|
38194
38387
|
declare const PUBLIC_EVENT_SCHEMA: zod.ZodObject<{
|
|
38195
38388
|
id: zod.ZodString;
|
|
@@ -38244,8 +38437,15 @@ declare const PUBLIC_EVENT_SCHEMA: zod.ZodObject<{
|
|
|
38244
38437
|
}>;
|
|
38245
38438
|
title: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
|
|
38246
38439
|
description: zod.ZodOptional<zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>>;
|
|
38247
|
-
|
|
38248
|
-
|
|
38440
|
+
resource: zod.ZodNullable<zod.ZodObject<{
|
|
38441
|
+
kind: zod.ZodEnum<{
|
|
38442
|
+
"api-key": "api-key";
|
|
38443
|
+
asset: "asset";
|
|
38444
|
+
member: "member";
|
|
38445
|
+
}>;
|
|
38446
|
+
id: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
|
|
38447
|
+
sequence: zod.ZodNumber;
|
|
38448
|
+
}, zod.core.$strict>>;
|
|
38249
38449
|
facts: zod.ZodArray<zod.ZodObject<{
|
|
38250
38450
|
key: zod.ZodString;
|
|
38251
38451
|
value: zod.ZodUnknown & zod.ZodType<{} | null, unknown, zod.core.$ZodTypeInternals<{} | null, unknown>>;
|
|
@@ -43219,4 +43419,4 @@ interface ClassifyTextOptions extends Omit<SubmitAssetCommonOptions, "name" | "i
|
|
|
43219
43419
|
/** `folders.list` options. `sort` is `name` (the default) or `createdAt`, descending when prefixed with `-`. */
|
|
43220
43420
|
type ListFoldersOptions = GetFoldersQuery;
|
|
43221
43421
|
type FolderPage = GetFoldersResponse;
|
|
43222
|
-
export { FolderPage as $, UploadPresetSubmitAssetOptions as $t, CdnAssetLocation as A,
|
|
43422
|
+
export { FolderPage as $, UploadPresetSubmitAssetOptions as $t, CdnAssetLocation as A, ProcessingFeatureId as An, ResetPolicyOptions as At, CreateHashListOptions as B, AssetInfo as Bn, StreamingFeatureOptions as Bt, AssetUploadStatus as C, ProjectSettingsResource as Cn, MultipartUploadPartOptions as Ct, BatchAssetsResponse as D, BoundingBox as Dn, RequestAssetReviewOptions as Dt, BatchAssetsOptions as E, AgeRange as En, RemoveAssetContentOptions as Et, CdnTransform as F, CursorPage as Fn, SetPolicyAutomaticUpdatesOptions as Ft, DeleteAssetOptions as G, AssetRenderedKind as Gn, UpdateLensOptions as Gt, CreateMultipartUploadPartOptions as H, AssetHlsRendition as Hn, UpdateAssetOptions as Ht, ClassifyTextOptions as I, LensType as In, SignAssetUrlOptions as It, EnsureLensesOptions as J, ExtractedText as Jn, UpgradePolicyOptions as Jt, DeleteMetadataFieldOptions as K, AssetSafetyHold as Kn, UpdatePolicyOptions as Kt, ClientRequestDefaults as L, AssetSearchMatchField as Ln, SignUploadTokenOptions as Lt, CdnAssetUrlOptions as M, ProcessingFeatureStage as Mn, RetrieveAssetOptions as Mt, CdnResource as N, ProcessingFeatures as Nn, RetryAssetOptions as Nt, CalmLensAppClientOptions as O, DetectedFace as On, RequestAttempt as Ot, CdnServeOptions as P, Policy as Pn, SearchAssetsOptions as Pt, FolderIdOptions as Q, UploadPresetPage as Qt, ConnectionOptions as R, AssetSearchQuery as Rn, SignedAssetUrl as Rt, AssetUpload as S, MetadataFieldsResource as Sn, MultipartUploadOptions as St, AssignPolicyOptions as T, UploadPreset as Tn, PolicyPage as Tt, CreatePolicyOptions as U, AssetPreview as Un, UpdateFolderOptions as Ut, CreateLensOptions as V, AssetHls as Vn, SubmitAssetOptions as Vt, DecideAssetOptions as W, AssetRendered as Wn, UpdateHashListOptions as Wt, EnsureUploadPresetsOptions as X, MetadataItem as Xn, UploadPresetDefinition as Xt, EnsureMetadataFieldsOptions as Y, FileMetadata as Yn, UploadAssetPartOptions as Yt, EnsureUploadPresetsResponse as Z, ProcessingOptions as Zn, UploadPresetIdOptions as Zt, AssetPage as _, EventResourceKind as _n, ListLensesOptions as _t, AssetChecksums as a, WebhookPayloadInput as an, IdempotencyOptions as at, AssetTimelinePage as b, PermissionGrant as bn, MoveAssetOptions as bt, AssetClassificationFailureReason as c, AssetTimelineSegment as cn, LensIdOptions as ct, AssetContentOptions as d, EventResource as dn, ListAssetTimelineOptions as dt, UploadedAsset as en, GetAssetInfoOptions as et, AssetContentRemovalReason as f, TypedEvent as fn, ListAssetsOptions as ft, AssetModerationStatus as g, EventFacts as gn, ListHashListsOptions as gt, AssetModerationDecision as h, EventFactValues as hn, ListHashListEntriesOptions as ht, AssetAvailability as i, WebhookHeadersInput as in, HashListPage as it, CdnAssetReference as j, ProcessingFeatureResults as jn, RetrieveAssetByExternalIdOptions as jt, CalmLensServerClientOptions as k, DetectedPerson as kn, RequestOptions as kt, AssetClassificationStatus as l, GetEventsResponse as ln, LensPage as lt, AssetModeration as m, EventFact as mn, ListFoldersOptions as mt, AppInfo as n, ViewerClaims as nn, HashListEntryPage as nt, AssetChildrenPage as o, AssetBatchOperation as on, ImageTransformOptions as ot, AssetContentStatus as p, EventCategory as pn, ListEventsOptions as pt, EnsureLensOptions as q, AssetSafetyHoldReason as qn, UpdateProjectSettingsOptions as qt, Asset as r, WaitForAssetDecisionOptions as rn, HashListIdOptions as rt, AssetClassification as s, AssetReviewRequest as sn, Lens as st, AddHashListEntryOptions as t, VerifyWebhookSignatureOptions as tn, HashListEntryIdOptions as tt, AssetContent as u, Actor as un, ListAssetChildrenOptions as ut, AssetSearchResponse as v, EventSeverity as vn, ListPoliciesOptions as vt, AssetVisibility as w, PublicProjectSettings as wn, PolicyIdOptions as wt, AssetType as x, Folder as xn, MoveFolderOptions as xt, AssetSearchResult as y, EventType as yn, ListUploadPresetsOptions as yt, CreateFolderOptions as z, AssetBinaryPayloadInput as zn, SignedUploadToken as zt };
|