calmlens 0.37.1 → 0.38.1
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 +87 -17
- package/cjs/{BrowserUpload-84KQWr1Q.js → BrowserUpload-DS0lxg5C.js} +1 -1
- package/{esm/BrowserUpload-CuG3tWSo.d.ts → cjs/BrowserUpload-_iMX_nq0.d.ts} +2 -2
- package/{esm/CalmLensAppClient-QqtovWE-.d.ts → cjs/CalmLensAppClient-CQpnc4JZ.d.ts} +1 -1
- package/cjs/{CalmLensAppClient-D4tRb_P2.js → CalmLensAppClient-Diu1QtBz.js} +3 -3
- package/cjs/{CalmLensCdn-CdYY_XtK.js → CalmLensCdn-DCj0AfoS.js} +2 -2
- package/cjs/{CalmLensConnection-GkR2cKn5.js → CalmLensConnection-BpBq0nQR.js} +14 -4
- package/cjs/{CalmLensError-ifj5rLmk.js → CalmLensError-C9g7GXfU.js} +7 -2
- package/{esm/CalmLensServerClient-csSQqHBt.d.ts → cjs/CalmLensServerClient-CeTsE5Jx.d.ts} +5 -5
- package/cjs/{CalmLensServerClient-cgPOG4Sv.js → CalmLensServerClient-vdHfH0Nf.js} +15 -6
- package/cjs/{CalmLensTypes-_f7QVRtO.d.ts → CalmLensTypes-jond9q6a.d.ts} +28 -9
- package/cjs/{Core-BlnBBJKb.js → Core-BHQSo7rY.js} +3 -3
- package/{esm/Core-4iFxKJnY.d.ts → cjs/Core-C6_Q5ZME.d.ts} +2 -2
- package/cjs/{ReactUpload-D3AYIZBh.js → ReactUpload-bbHMmEUQ.js} +1 -1
- package/cjs/{ReactUpload-4qd2xACg.d.ts → ReactUpload-fy6zhY8M.d.ts} +1 -1
- package/cjs/{UploadController-BYuHuZ7K.js → UploadController-C1tiTTRR.js} +2 -2
- package/{esm/WebhookPayload-BJtggTLd.d.ts → cjs/WebhookPayload-DdpKjQGw.d.ts} +5 -3
- package/cjs/app.d.ts +4 -4
- package/cjs/app.js +3 -3
- package/cjs/elements.d.ts +4 -4
- package/cjs/elements.js +4 -4
- package/cjs/{index-IEA75nev.d.ts → index-CgAztQdX.d.ts} +2 -2
- package/cjs/index.d.ts +3 -3
- package/cjs/index.js +2 -2
- 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 +4 -4
- package/cjs/server.js +3 -3
- package/cjs/{CalmLensTestInputArguments-C6S09FVQ.js → test-inputs-DJnupsBH.js} +231 -22
- package/{esm/TestTriggers-CjDhhz78.d.ts → cjs/test-inputs-fugEK0py.d.ts} +36 -142
- package/cjs/test-inputs.d.ts +2 -18
- package/cjs/test-inputs.js +17 -126
- package/cjs/testing.d.ts +11 -14
- package/cjs/testing.js +38 -68
- package/cjs/{ui-Cy8MWXOw.js → ui-2jJvTcCP.js} +2 -2
- package/cjs/{ui-BMQW3Hse.d.ts → ui-Cp18fGXG.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-C429CcUi.js → BrowserUpload-C4YF17a3.js} +1 -1
- package/{cjs/BrowserUpload-CuG3tWSo.d.ts → esm/BrowserUpload-_iMX_nq0.d.ts} +2 -2
- package/esm/{CalmLensAppClient-Brvc-GXt.js → CalmLensAppClient-B2H7x_SJ.js} +3 -3
- package/{cjs/CalmLensAppClient-QqtovWE-.d.ts → esm/CalmLensAppClient-CQpnc4JZ.d.ts} +1 -1
- package/esm/{CalmLensCdn-cmxtF_dw.js → CalmLensCdn-Dh546rXe.js} +2 -2
- package/esm/{CalmLensConnection-DEfpIugc.js → CalmLensConnection-BbFlVAdl.js} +14 -4
- package/esm/{CalmLensError-C15tWu8W.js → CalmLensError-DjkibkdI.js} +7 -2
- package/{cjs/CalmLensServerClient-csSQqHBt.d.ts → esm/CalmLensServerClient-CeTsE5Jx.d.ts} +5 -5
- package/esm/{CalmLensServerClient-BpsCXVeO.js → CalmLensServerClient-CqH-tqcC.js} +15 -6
- package/esm/{CalmLensTypes-_f7QVRtO.d.ts → CalmLensTypes-jond9q6a.d.ts} +28 -9
- package/{cjs/Core-4iFxKJnY.d.ts → esm/Core-C6_Q5ZME.d.ts} +2 -2
- package/esm/{Core-C_f1o9RQ.js → Core-VNBTpvrG.js} +3 -3
- package/esm/{ReactUpload-Ch5qY7PS.js → ReactUpload-CRH6rSaX.js} +1 -1
- package/esm/{ReactUpload-4qd2xACg.d.ts → ReactUpload-fy6zhY8M.d.ts} +1 -1
- package/esm/{UploadController-9fkYFVZM.js → UploadController-BYxiONcw.js} +2 -2
- package/{cjs/WebhookPayload-BJtggTLd.d.ts → esm/WebhookPayload-DdpKjQGw.d.ts} +5 -3
- package/esm/app.d.ts +4 -4
- package/esm/app.js +3 -3
- package/esm/elements.d.ts +4 -4
- package/esm/elements.js +4 -4
- package/esm/{index-IEA75nev.d.ts → index-CgAztQdX.d.ts} +2 -2
- package/esm/index.d.ts +3 -3
- package/esm/index.js +2 -2
- 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 +4 -4
- package/esm/server.js +3 -3
- package/esm/{CalmLensTestInputArguments-DS_3mt1C.js → test-inputs-BLlkOmNC.js} +212 -15
- package/{cjs/TestTriggers-CjDhhz78.d.ts → esm/test-inputs-fugEK0py.d.ts} +36 -142
- package/esm/test-inputs.d.ts +2 -18
- package/esm/test-inputs.js +1 -115
- package/esm/testing.d.ts +11 -14
- package/esm/testing.js +27 -57
- package/esm/{ui-BMQW3Hse.d.ts → ui-Cp18fGXG.d.ts} +2 -2
- package/esm/{ui-HK74e42L.js → ui-siBYiNJZ.js} +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
package/bin/calmlens.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
4
4
|
import { parseArgs } from "node:util";
|
|
5
5
|
// package.json
|
|
6
|
-
var version = "0.
|
|
6
|
+
var version = "0.38.1";
|
|
7
7
|
|
|
8
8
|
// src/contract/ModerationCategories-CHFRoeWV.js
|
|
9
9
|
var CLASSIFICATION_CATEGORIES = [
|
|
@@ -79,6 +79,7 @@ var API_ERROR_CODES = {
|
|
|
79
79
|
IDEMPOTENT_REQUEST_IN_PROGRESS: "idempotency/request-in-progress",
|
|
80
80
|
NO_RENDERED_VERSION: "asset/no-rendered-version",
|
|
81
81
|
ASSET_NOT_FOUND: "asset/not-found",
|
|
82
|
+
ASSET_NOT_AVAILABLE: "asset/not-available",
|
|
82
83
|
PROJECT_NOT_FOUND: "project/not-found",
|
|
83
84
|
ASSET_CHILD_NOT_DELETABLE: "asset/child-not-deletable",
|
|
84
85
|
ASSET_REVIEW_CHANGED: "asset/review-changed",
|
|
@@ -2138,10 +2139,14 @@ var assertUploadSize = (type, size, inParts) => {
|
|
|
2138
2139
|
}
|
|
2139
2140
|
};
|
|
2140
2141
|
var isBlob = (value) => typeof Blob !== "undefined" && value instanceof Blob;
|
|
2142
|
+
var isUntypedText = (content) => !!content && typeof content === "object" && ("plainText" in content) && content.type === undefined;
|
|
2141
2143
|
var withContentObject = (options) => {
|
|
2142
2144
|
if (!options || typeof options !== "object" || !("content" in options))
|
|
2143
2145
|
return options;
|
|
2144
2146
|
const content = options.content;
|
|
2147
|
+
if (isUntypedText(content)) {
|
|
2148
|
+
return { ...options, content: { ...content, type: "text/plain" } };
|
|
2149
|
+
}
|
|
2145
2150
|
if (!isBlob(content))
|
|
2146
2151
|
return options;
|
|
2147
2152
|
if (!content.type) {
|
|
@@ -3209,8 +3214,14 @@ class CalmLensServerClient {
|
|
|
3209
3214
|
});
|
|
3210
3215
|
}
|
|
3211
3216
|
async#submitEnsureLenses(options, requestOptions) {
|
|
3217
|
+
const key = requestOptions?.idempotencyKey;
|
|
3218
|
+
const chunked = options.length > ENSURE_LENSES_MAX_PER_REQUEST;
|
|
3219
|
+
if (chunked && (key?.length ?? 0) > MAX_SPLIT_IDEMPOTENCY_KEY_LENGTH) {
|
|
3220
|
+
throw invalidArgument(`idempotencyKey can be at most ${MAX_SPLIT_IDEMPOTENCY_KEY_LENGTH} characters for lenses sent in several requests`);
|
|
3221
|
+
}
|
|
3212
3222
|
for (let start = 0;start < options.length; start += ENSURE_LENSES_MAX_PER_REQUEST) {
|
|
3213
|
-
|
|
3223
|
+
const chunk = start / ENSURE_LENSES_MAX_PER_REQUEST + 1;
|
|
3224
|
+
await this.#submitEnsureLensesChunk(options.slice(start, start + ENSURE_LENSES_MAX_PER_REQUEST), key && chunked ? { ...requestOptions, idempotencyKey: `${key}:chunk-${chunk}` } : requestOptions);
|
|
3214
3225
|
}
|
|
3215
3226
|
}
|
|
3216
3227
|
async#submitEnsureLensesChunk(options, requestOptions) {
|
|
@@ -6934,6 +6945,17 @@ function _array(Class, element, params) {
|
|
|
6934
6945
|
...normalizeParams(params)
|
|
6935
6946
|
});
|
|
6936
6947
|
}
|
|
6948
|
+
function _custom(Class, fn, _params) {
|
|
6949
|
+
const norm = normalizeParams(_params);
|
|
6950
|
+
norm.abort ?? (norm.abort = true);
|
|
6951
|
+
const schema = new Class({
|
|
6952
|
+
type: "custom",
|
|
6953
|
+
check: "custom",
|
|
6954
|
+
fn,
|
|
6955
|
+
...norm
|
|
6956
|
+
});
|
|
6957
|
+
return schema;
|
|
6958
|
+
}
|
|
6937
6959
|
function _refine(Class, fn, _params) {
|
|
6938
6960
|
const schema = new Class({
|
|
6939
6961
|
type: "custom",
|
|
@@ -8916,6 +8938,9 @@ var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
8916
8938
|
ZodType.init(inst, def);
|
|
8917
8939
|
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
|
|
8918
8940
|
});
|
|
8941
|
+
function custom(fn, _params) {
|
|
8942
|
+
return _custom(ZodCustom, fn ?? (() => true), _params);
|
|
8943
|
+
}
|
|
8919
8944
|
function refine(fn, _params = {}) {
|
|
8920
8945
|
return _refine(ZodCustom, fn, _params);
|
|
8921
8946
|
}
|
|
@@ -9032,7 +9057,7 @@ Object.keys(JURISDICTIONS).filter((code) => JURISDICTIONS[code].optional);
|
|
|
9032
9057
|
var COUNTRIES = new Set("AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW".split(" "));
|
|
9033
9058
|
var EU_COUNTRIES2 = new Set("AT BE BG HR CY CZ DK EE FI FR DE GR HU IE IT LV LT LU MT NL PL PT RO SK SI ES SE".split(" "));
|
|
9034
9059
|
|
|
9035
|
-
// src/contract/TestRegionalActions-
|
|
9060
|
+
// src/contract/TestRegionalActions-BAzqFJfV.js
|
|
9036
9061
|
var msg = (text) => text;
|
|
9037
9062
|
var MODERATION_QUALIFIER_INFO = {
|
|
9038
9063
|
"sexual-pornographic-media": {
|
|
@@ -10041,13 +10066,14 @@ var MODERATION_QUALIFIER_INFO = {
|
|
|
10041
10066
|
}
|
|
10042
10067
|
};
|
|
10043
10068
|
var MODERATION_QUALIFIERS = Object.keys(MODERATION_QUALIFIER_INFO);
|
|
10044
|
-
MODERATION_QUALIFIERS.reduce((groups, qualifier) => {
|
|
10069
|
+
var MODERATION_QUALIFIERS_BY_CATEGORY = MODERATION_QUALIFIERS.reduce((groups, qualifier) => {
|
|
10045
10070
|
(groups[MODERATION_QUALIFIER_INFO[qualifier].category] ??= []).push(qualifier);
|
|
10046
10071
|
return groups;
|
|
10047
10072
|
}, {});
|
|
10048
|
-
function
|
|
10049
|
-
return MODERATION_QUALIFIER_INFO[qualifier];
|
|
10073
|
+
function isInputQualifier(qualifier) {
|
|
10074
|
+
return MODERATION_QUALIFIER_INFO[qualifier].fromInput === true;
|
|
10050
10075
|
}
|
|
10076
|
+
var getModerationQualifiers = (category) => MODERATION_QUALIFIERS_BY_CATEGORY[category] ?? [];
|
|
10051
10077
|
var TEST_REGIONAL_ACTIONS_SCHEMA = /* @__PURE__ */ lazySchema(() => array(object({
|
|
10052
10078
|
region: JURISDICTION_SCHEMA.exclude(["global"]),
|
|
10053
10079
|
action: _enum([
|
|
@@ -10057,7 +10083,7 @@ var TEST_REGIONAL_ACTIONS_SCHEMA = /* @__PURE__ */ lazySchema(() => array(object
|
|
|
10057
10083
|
])
|
|
10058
10084
|
}).strict()).max(7).refine((entries) => new Set(entries.map((entry) => entry.region)).size === entries.length, "Choose each region once"));
|
|
10059
10085
|
|
|
10060
|
-
// src/contract/TestTriggers-
|
|
10086
|
+
// src/contract/TestTriggers-ByQZ27Zp.js
|
|
10061
10087
|
var TEST_IMAGE_GRID_LEVELS = [
|
|
10062
10088
|
72,
|
|
10063
10089
|
128,
|
|
@@ -10151,6 +10177,14 @@ var TEST_DETECTIONS_SCHEMA = /* @__PURE__ */ lazySchema(() => object({
|
|
|
10151
10177
|
people: union([array(TEST_DETECTED_PERSON_SCHEMA).max(32), literal("unavailable")]).optional(),
|
|
10152
10178
|
faces: union([array(TEST_DETECTED_FACE_SCHEMA).max(32), literal("unavailable")]).optional()
|
|
10153
10179
|
}).strict());
|
|
10180
|
+
var TEST_INPUT_QUALIFIER_ERRORS = {
|
|
10181
|
+
unknown: "unknown-qualifier",
|
|
10182
|
+
automatic: "input-type-qualifier",
|
|
10183
|
+
repeated: "repeated-qualifier"
|
|
10184
|
+
};
|
|
10185
|
+
var isKnownQualifier = (qualifier) => MODERATION_QUALIFIERS.includes(qualifier);
|
|
10186
|
+
var isCategoryQualifier = (category, qualifier) => getModerationQualifiers(category).includes(qualifier);
|
|
10187
|
+
var getTestInputQualifiers = (category) => getModerationQualifiers(category).filter((qualifier) => !isInputQualifier(qualifier));
|
|
10154
10188
|
var TEST_INPUT_SCHEMA = /* @__PURE__ */ lazySchema(() => object({
|
|
10155
10189
|
regionalActions: TEST_REGIONAL_ACTIONS_SCHEMA.optional(),
|
|
10156
10190
|
unassessedCategories: array(_enum(CLASSIFICATION_CATEGORIES)).max(CLASSIFICATION_CATEGORIES.length).optional(),
|
|
@@ -10162,13 +10196,49 @@ var TEST_INPUT_SCHEMA = /* @__PURE__ */ lazySchema(() => object({
|
|
|
10162
10196
|
"age-restrict",
|
|
10163
10197
|
"block"
|
|
10164
10198
|
]).optional(),
|
|
10165
|
-
qualifiers: array(
|
|
10199
|
+
qualifiers: array(custom((value) => typeof value === "string", { message: "A qualifier is a string, such as harassment-abuse." })).max(64)
|
|
10166
10200
|
}).strict().superRefine((instance, context) => {
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10171
|
-
|
|
10201
|
+
const seen = /* @__PURE__ */ new Set;
|
|
10202
|
+
instance.qualifiers.forEach((qualifier, index) => {
|
|
10203
|
+
const path = ["qualifiers", index];
|
|
10204
|
+
const details = {
|
|
10205
|
+
category: instance.category,
|
|
10206
|
+
qualifier
|
|
10207
|
+
};
|
|
10208
|
+
if (isKnownQualifier(qualifier) && isInputQualifier(qualifier))
|
|
10209
|
+
context.addIssue({
|
|
10210
|
+
code: "custom",
|
|
10211
|
+
path,
|
|
10212
|
+
params: {
|
|
10213
|
+
...details,
|
|
10214
|
+
reason: TEST_INPUT_QUALIFIER_ERRORS.automatic
|
|
10215
|
+
},
|
|
10216
|
+
message: `"${qualifier}" is set by the input type: leave it out.`
|
|
10217
|
+
});
|
|
10218
|
+
else if (!isCategoryQualifier(instance.category, qualifier)) {
|
|
10219
|
+
const allowed = getTestInputQualifiers(instance.category);
|
|
10220
|
+
context.addIssue({
|
|
10221
|
+
code: "custom",
|
|
10222
|
+
path,
|
|
10223
|
+
params: {
|
|
10224
|
+
...details,
|
|
10225
|
+
reason: TEST_INPUT_QUALIFIER_ERRORS.unknown,
|
|
10226
|
+
allowed
|
|
10227
|
+
},
|
|
10228
|
+
message: `Unknown ${instance.category} qualifier "${qualifier}": choose from ${allowed.join(", ")}.`
|
|
10229
|
+
});
|
|
10230
|
+
} else if (seen.has(qualifier))
|
|
10231
|
+
context.addIssue({
|
|
10232
|
+
code: "custom",
|
|
10233
|
+
path,
|
|
10234
|
+
params: {
|
|
10235
|
+
...details,
|
|
10236
|
+
reason: TEST_INPUT_QUALIFIER_ERRORS.repeated
|
|
10237
|
+
},
|
|
10238
|
+
message: `"${qualifier}" is repeated: give each qualifier once.`
|
|
10239
|
+
});
|
|
10240
|
+
seen.add(qualifier);
|
|
10241
|
+
});
|
|
10172
10242
|
})).max(128),
|
|
10173
10243
|
detections: TEST_DETECTIONS_SCHEMA.optional()
|
|
10174
10244
|
}).strict().superRefine((scenario, context) => {
|
|
@@ -10360,14 +10430,14 @@ async function withValidTestInputArguments(key, generate) {
|
|
|
10360
10430
|
if (error instanceof ZodError) {
|
|
10361
10431
|
const [issue] = error.issues;
|
|
10362
10432
|
const path = (issue?.path ?? []).map((segment) => typeof segment === "number" ? segment : String(segment));
|
|
10363
|
-
|
|
10433
|
+
const qualifier = issue?.code === "custom" && typeof issue.params?.reason === "string" ? issue.params : {};
|
|
10434
|
+
throw invalidArgument(`Invalid test scenario at ${path.length ? path.join(".") : "scenario"}: ${issue?.message ?? error.message}`, { path, ...qualifier });
|
|
10364
10435
|
}
|
|
10365
10436
|
if (error instanceof RangeError)
|
|
10366
10437
|
throw invalidArgument(error.message);
|
|
10367
10438
|
throw error;
|
|
10368
10439
|
}
|
|
10369
10440
|
}
|
|
10370
|
-
|
|
10371
10441
|
// src/test-inputs.ts
|
|
10372
10442
|
var generateTestTextCode2 = (scenario, key) => withValidTestInputArguments(key, () => generateTestTextCode(scenario, key));
|
|
10373
10443
|
|
|
@@ -17377,7 +17447,7 @@ var schemas_exports = /* @__PURE__ */ __exportAll({
|
|
|
17377
17447
|
cuid: () => cuid3,
|
|
17378
17448
|
cuid2: () => cuid22,
|
|
17379
17449
|
currencyCode: () => currencyCode,
|
|
17380
|
-
custom: () =>
|
|
17450
|
+
custom: () => custom2,
|
|
17381
17451
|
date: () => date$1,
|
|
17382
17452
|
describe: () => describe2,
|
|
17383
17453
|
discriminatedUnion: () => discriminatedUnion,
|
|
@@ -18836,7 +18906,7 @@ function check(fn) {
|
|
|
18836
18906
|
ch._zod.check = fn;
|
|
18837
18907
|
return ch;
|
|
18838
18908
|
}
|
|
18839
|
-
function
|
|
18909
|
+
function custom2(fn, _params) {
|
|
18840
18910
|
return /* @__PURE__ */ _custom2(ZodCustom2, fn ?? (() => true), _params);
|
|
18841
18911
|
}
|
|
18842
18912
|
function refine2(fn, _params = {}) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_UploadController = require("./UploadController-
|
|
1
|
+
const require_UploadController = require("./UploadController-C1tiTTRR.js");
|
|
2
2
|
// src/ui/BrowserUpload.ts
|
|
3
3
|
/** Creates an upload queue for the browser components, such as one a form starts on submit. */
|
|
4
4
|
const createUploadController = (options) => require_UploadController.createUploadController(options);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as UploadFile, I as UploadItem$1, L as UploadSnapshot$1, N as UploadController, P as UploadControllerOptions$1, h as UploaderProps$1, k as CalmLensUpload$1 } from "./Core-
|
|
2
|
-
import { r as UseCalmLensUploadResult$1 } from "./ReactUpload-
|
|
1
|
+
import { F as UploadFile, I as UploadItem$1, L as UploadSnapshot$1, N as UploadController, P as UploadControllerOptions$1, h as UploaderProps$1, k as CalmLensUpload$1 } from "./Core-C6_Q5ZME.js";
|
|
2
|
+
import { r as UseCalmLensUploadResult$1 } from "./ReactUpload-fy6zhY8M.js";
|
|
3
3
|
type UploadItem<F extends UploadFile = File> = UploadItem$1<F>;
|
|
4
4
|
type CalmLensUpload<F extends UploadFile = File> = CalmLensUpload$1<F>;
|
|
5
5
|
type UploadSnapshot<F extends UploadFile = File> = UploadSnapshot$1<F>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as CdnAssetUrlOptions, O as CalmLensAppClientOptions, Rt as RequestOptions, Vt as RetrieveAssetOptions, an as UploadAssetPartOptions, ln as UploadPresetSubmitAssetOptions, un as UploadedAsset } from "./CalmLensTypes-
|
|
1
|
+
import { M as CdnAssetUrlOptions, O as CalmLensAppClientOptions, Rt as RequestOptions, Vt as RetrieveAssetOptions, an as UploadAssetPartOptions, ln as UploadPresetSubmitAssetOptions, un as UploadedAsset } from "./CalmLensTypes-jond9q6a.js";
|
|
2
2
|
declare const inspectSymbol: unique symbol;
|
|
3
3
|
/**
|
|
4
4
|
* The CalmLens client for browsers and React Native apps. It uploads through an upload preset,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_CalmLensError = require("./CalmLensError-
|
|
2
|
-
const require_CalmLensCdn = require("./CalmLensCdn-
|
|
3
|
-
const require_CalmLensConnection = require("./CalmLensConnection-
|
|
1
|
+
const require_CalmLensError = require("./CalmLensError-C9g7GXfU.js");
|
|
2
|
+
const require_CalmLensCdn = require("./CalmLensCdn-DCj0AfoS.js");
|
|
3
|
+
const require_CalmLensConnection = require("./CalmLensConnection-BpBq0nQR.js");
|
|
4
4
|
// src/client/CalmLensAppClient.ts
|
|
5
5
|
const inspectSymbol = Symbol.for("nodejs.util.inspect.custom");
|
|
6
6
|
/** `options`, once `checkOptionKeys` finds only keys `operation` takes. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_CalmLensError = require("./CalmLensError-
|
|
1
|
+
const require_CalmLensError = require("./CalmLensError-C9g7GXfU.js");
|
|
2
2
|
// src/client/CalmLensLogging.ts
|
|
3
3
|
const LOG_LEVELS = [
|
|
4
4
|
"off",
|
|
@@ -152,7 +152,7 @@ const listPages = (fetchPage, { cursor, feed = false } = {}) => {
|
|
|
152
152
|
};
|
|
153
153
|
// src/client/CalmLensVersion.ts
|
|
154
154
|
/** This SDK's version, from its package.json. */
|
|
155
|
-
const SDK_VERSION = "0.
|
|
155
|
+
const SDK_VERSION = "0.38.1";
|
|
156
156
|
const runtimeName = () => {
|
|
157
157
|
const runtime = globalThis;
|
|
158
158
|
if (isReactNativeRuntime()) return "react-native";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_CalmLensError = require("./CalmLensError-
|
|
2
|
-
const require_CalmLensCdn = require("./CalmLensCdn-
|
|
1
|
+
const require_CalmLensError = require("./CalmLensError-C9g7GXfU.js");
|
|
2
|
+
const require_CalmLensCdn = require("./CalmLensCdn-DCj0AfoS.js");
|
|
3
3
|
// src/contract/AssetPayload.js
|
|
4
4
|
const bufferInputToBytes = (value) => {
|
|
5
5
|
if (value instanceof ArrayBuffer) return new Uint8Array(value);
|
|
@@ -606,13 +606,23 @@ const assertUploadSize = (type, size, inParts) => {
|
|
|
606
606
|
};
|
|
607
607
|
/** Checks upload options before anything is sent. */
|
|
608
608
|
const isBlob = (value) => typeof Blob !== "undefined" && value instanceof Blob;
|
|
609
|
+
/** Plain text given without a type, which is `text/plain`, as the API defaults it. */
|
|
610
|
+
const isUntypedText = (content) => !!content && typeof content === "object" && "plainText" in content && content.type === void 0;
|
|
609
611
|
/**
|
|
610
|
-
* `content`
|
|
611
|
-
*
|
|
612
|
+
* `content` as the `{ data, type }` or `{ plainText, type }` the rest of the client reads: a `Blob`
|
|
613
|
+
* or `File` has its own type (and a File's name is the asset's when the options give none), and
|
|
614
|
+
* plain text without a type is `text/plain`.
|
|
612
615
|
*/
|
|
613
616
|
const withContentObject = (options) => {
|
|
614
617
|
if (!options || typeof options !== "object" || !("content" in options)) return options;
|
|
615
618
|
const content = options.content;
|
|
619
|
+
if (isUntypedText(content)) return {
|
|
620
|
+
...options,
|
|
621
|
+
content: {
|
|
622
|
+
...content,
|
|
623
|
+
type: "text/plain"
|
|
624
|
+
}
|
|
625
|
+
};
|
|
616
626
|
if (!isBlob(content)) return options;
|
|
617
627
|
if (!content.type) throw invalidPayload("The Blob has no type: create it with one, such as new Blob([bytes], { type: \"image/png\" }), or pass { data, type }");
|
|
618
628
|
const fileName = typeof File !== "undefined" && content instanceof File ? content.name : void 0;
|
|
@@ -55,6 +55,7 @@ const API_ERROR_CODES = {
|
|
|
55
55
|
IDEMPOTENT_REQUEST_IN_PROGRESS: "idempotency/request-in-progress",
|
|
56
56
|
NO_RENDERED_VERSION: "asset/no-rendered-version",
|
|
57
57
|
ASSET_NOT_FOUND: "asset/not-found",
|
|
58
|
+
ASSET_NOT_AVAILABLE: "asset/not-available",
|
|
58
59
|
PROJECT_NOT_FOUND: "project/not-found",
|
|
59
60
|
ASSET_CHILD_NOT_DELETABLE: "asset/child-not-deletable",
|
|
60
61
|
ASSET_REVIEW_CHANGED: "asset/review-changed",
|
|
@@ -341,6 +342,10 @@ const API_ERROR_DEFINITIONS = {
|
|
|
341
342
|
status: 404,
|
|
342
343
|
message: "Asset not found"
|
|
343
344
|
},
|
|
345
|
+
"asset/not-available": {
|
|
346
|
+
status: 403,
|
|
347
|
+
message: "This asset isn't available to this viewer: it may still be uploading or awaiting moderation, or its delivery is blocked or restricted."
|
|
348
|
+
},
|
|
344
349
|
"project/not-found": {
|
|
345
350
|
status: 404,
|
|
346
351
|
message: "Project not found"
|
|
@@ -784,8 +789,8 @@ var CalmLensError = class CalmLensError extends Error {
|
|
|
784
789
|
/**
|
|
785
790
|
* Whether repeating the same request may succeed: transport failures, timeouts (a request's
|
|
786
791
|
* `timeoutMs` or `waitForDecision`'s deadline), throttling (429), internal and gateway errors (500, 502, 503, 504)
|
|
787
|
-
* and idempotent requests still in progress. Only repeat a create
|
|
788
|
-
* `idempotencyKey`.
|
|
792
|
+
* and idempotent requests still in progress. Only repeat a write (a create, upload, change or
|
|
793
|
+
* delete) with the same `idempotencyKey`.
|
|
789
794
|
*/
|
|
790
795
|
isRetryable() {
|
|
791
796
|
return RETRYABLE_CODES.has(this.code) || this.status !== void 0 && RETRYABLE_STATUSES.has(this.status);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as HashList, l as HashListEntry } from "./Classification-C3pkrGYS-B7EygpJn.js";
|
|
2
|
-
import { $t as UpdateFolderOptions, At as PolicyIdOptions, B as CreateHashListOptions, Bn as AssetSearchQuery, Bt as RetrieveAssetByExternalIdOptions, Ct as ListPoliciesOptions, D as BatchAssetsResponse, E as BatchAssetsOptions, Et as MoveFolderOptions, Ft as RemoveAssetContentOptions, G as DeleteAssetOptions, Gt as SignAssetUrlOptions, Hn as AssetInfo, Ht as RetryAssetOptions, I as ClassifyTextOptions, It as RequestAssetReviewOptions, J as EnsureLensesOptions, Jt as SignedUploadToken, K as DeleteMetadataFieldOptions, Kt as SignUploadTokenOptions, M as CdnAssetUrlOptions, Nt as ProjectSettingsResource, P as CdnServeOptions, Qt as UpdateAssetOptions, Rn as Folder, Rt as RequestOptions, St as ListLensesOptions, T as AssignPolicyOptions, Tt as MoveAssetOptions, U as CreatePolicyOptions, V as CreateLensOptions, Vt as RetrieveAssetOptions, W as DecideAssetOptions, Wt as SetPolicyAutomaticUpdatesOptions, X as EnsureUploadPresetsOptions, Xt as SubmitAssetOptions, Y as EnsureMetadataFieldsOptions, Z as EnsureUploadPresetsResponse, _ as AssetPage, _n as AssetReviewRequest, _t as ListAssetsOptions, an as UploadAssetPartOptions, at as GetAssetInfoOptions, b as AssetTimelinePage, bt as ListHashListEntriesOptions, cn as UploadPresetPage, ct as HashListIdOptions, dn as VerifyWebhookSignatureOptions, en as UpdateHashListOptions, ft as Lens, gt as ListAssetTimelineOptions, ht as ListAssetChildrenOptions, in as UpgradePolicyOptions, it as FolderPage, jt as PolicyPage, k as CalmLensServerClientOptions, kt as Policy, lt as HashListPage, mt as LensPage, nn as UpdatePolicyOptions, nt as EventsPage, o as AssetChildrenPage, ot as HashListEntryIdOptions, pn as WaitForAssetDecisionOptions, pt as LensIdOptions, q as EnsureLensOptions, qt as SignedAssetUrl, r as Asset, rn as UpdateProjectSettingsOptions, rt as FolderIdOptions, sn as UploadPresetIdOptions, st as HashListEntryPage, t as AddHashListEntryOptions, tn as UpdateLensOptions, v as AssetSearchResponse, vt as ListEventsOptions, wt as ListUploadPresetsOptions, xt as ListHashListsOptions, yn as MetadataFieldsResource, yt as ListFoldersOptions, z as CreateFolderOptions, zt as ResetPolicyOptions } from "./CalmLensTypes-
|
|
3
|
-
import { d as ListPromise, l as CalmLensResponse, r as CdnResponse } from "./WebhookPayload-
|
|
2
|
+
import { $t as UpdateFolderOptions, At as PolicyIdOptions, B as CreateHashListOptions, Bn as AssetSearchQuery, Bt as RetrieveAssetByExternalIdOptions, Ct as ListPoliciesOptions, D as BatchAssetsResponse, E as BatchAssetsOptions, Et as MoveFolderOptions, Ft as RemoveAssetContentOptions, G as DeleteAssetOptions, Gt as SignAssetUrlOptions, Hn as AssetInfo, Ht as RetryAssetOptions, I as ClassifyTextOptions, It as RequestAssetReviewOptions, J as EnsureLensesOptions, Jt as SignedUploadToken, K as DeleteMetadataFieldOptions, Kt as SignUploadTokenOptions, M as CdnAssetUrlOptions, Nt as ProjectSettingsResource, P as CdnServeOptions, Qt as UpdateAssetOptions, Rn as Folder, Rt as RequestOptions, St as ListLensesOptions, T as AssignPolicyOptions, Tt as MoveAssetOptions, U as CreatePolicyOptions, V as CreateLensOptions, Vt as RetrieveAssetOptions, W as DecideAssetOptions, Wt as SetPolicyAutomaticUpdatesOptions, X as EnsureUploadPresetsOptions, Xt as SubmitAssetOptions, Y as EnsureMetadataFieldsOptions, Z as EnsureUploadPresetsResponse, _ as AssetPage, _n as AssetReviewRequest, _t as ListAssetsOptions, an as UploadAssetPartOptions, at as GetAssetInfoOptions, b as AssetTimelinePage, bt as ListHashListEntriesOptions, cn as UploadPresetPage, ct as HashListIdOptions, dn as VerifyWebhookSignatureOptions, en as UpdateHashListOptions, ft as Lens, gt as ListAssetTimelineOptions, ht as ListAssetChildrenOptions, in as UpgradePolicyOptions, it as FolderPage, jt as PolicyPage, k as CalmLensServerClientOptions, kt as Policy, lt as HashListPage, mt as LensPage, nn as UpdatePolicyOptions, nt as EventsPage, o as AssetChildrenPage, ot as HashListEntryIdOptions, pn as WaitForAssetDecisionOptions, pt as LensIdOptions, q as EnsureLensOptions, qt as SignedAssetUrl, r as Asset, rn as UpdateProjectSettingsOptions, rt as FolderIdOptions, sn as UploadPresetIdOptions, st as HashListEntryPage, t as AddHashListEntryOptions, tn as UpdateLensOptions, v as AssetSearchResponse, vt as ListEventsOptions, wt as ListUploadPresetsOptions, xt as ListHashListsOptions, yn as MetadataFieldsResource, yt as ListFoldersOptions, z as CreateFolderOptions, zt as ResetPolicyOptions } from "./CalmLensTypes-jond9q6a.js";
|
|
3
|
+
import { d as ListPromise, l as CalmLensResponse, r as CdnResponse } from "./WebhookPayload-DdpKjQGw.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;
|
|
@@ -8,7 +8,7 @@ interface TransportRequest {
|
|
|
8
8
|
url: string;
|
|
9
9
|
headers?: Record<string, string>;
|
|
10
10
|
body?: BodyInit | null;
|
|
11
|
-
/** Sent as `Idempotency-Key`; it also makes a
|
|
11
|
+
/** Sent as `Idempotency-Key`; it also makes a write safe to retry. */
|
|
12
12
|
idempotencyKey?: string;
|
|
13
13
|
/** Deadline per attempt in milliseconds, or undefined for none. */
|
|
14
14
|
timeoutMs?: number;
|
|
@@ -214,8 +214,8 @@ declare class CalmLensServerClient {
|
|
|
214
214
|
* another (`asset/child-not-deletable`), or nothing is queued. Resolves with
|
|
215
215
|
* `{ batchId, status: "queued", assetCount }` once queued; the work runs in the background
|
|
216
216
|
* and records `asset.deleted` or `asset.content-removed` for each asset, with a `batch-id`
|
|
217
|
-
* fact naming `batchId`. Assets under a safety hold are skipped.
|
|
218
|
-
* `
|
|
217
|
+
* fact naming `batchId`. Assets under a safety hold are skipped. Retried only with an
|
|
218
|
+
* `idempotencyKey` request option.
|
|
219
219
|
*/
|
|
220
220
|
batch: (options: BatchAssetsOptions, requestOptions?: RequestOptions) => Promise<CalmLensResponse<BatchAssetsResponse>>;
|
|
221
221
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_CalmLensError = require("./CalmLensError-
|
|
2
|
-
const require_CalmLensCdn = require("./CalmLensCdn-
|
|
3
|
-
const require_CalmLensConnection = require("./CalmLensConnection-
|
|
1
|
+
const require_CalmLensError = require("./CalmLensError-C9g7GXfU.js");
|
|
2
|
+
const require_CalmLensCdn = require("./CalmLensCdn-DCj0AfoS.js");
|
|
3
|
+
const require_CalmLensConnection = require("./CalmLensConnection-BpBq0nQR.js");
|
|
4
4
|
const require_CryptoUtils_BLCa_oZe = require("./CryptoUtils-BLCa-oZe-leCkr1ko.js");
|
|
5
5
|
// src/contract/JsonUtils.js
|
|
6
6
|
const stringifyJsonCanonical = (value) => JSON.stringify(value, (_key, nestedValue) => {
|
|
@@ -654,8 +654,8 @@ sign: async (options) => {
|
|
|
654
654
|
* another (`asset/child-not-deletable`), or nothing is queued. Resolves with
|
|
655
655
|
* `{ batchId, status: "queued", assetCount }` once queued; the work runs in the background
|
|
656
656
|
* and records `asset.deleted` or `asset.content-removed` for each asset, with a `batch-id`
|
|
657
|
-
* fact naming `batchId`. Assets under a safety hold are skipped.
|
|
658
|
-
* `
|
|
657
|
+
* fact naming `batchId`. Assets under a safety hold are skipped. Retried only with an
|
|
658
|
+
* `idempotencyKey` request option.
|
|
659
659
|
*/
|
|
660
660
|
batch: async (options, requestOptions) => {
|
|
661
661
|
const { assetIds, operation } = checked("assets.batch", options);
|
|
@@ -936,7 +936,16 @@ sign: async (options) => {
|
|
|
936
936
|
});
|
|
937
937
|
}
|
|
938
938
|
async #submitEnsureLenses(options, requestOptions) {
|
|
939
|
-
|
|
939
|
+
const key = requestOptions?.idempotencyKey;
|
|
940
|
+
const chunked = options.length > 100;
|
|
941
|
+
if (chunked && (key?.length ?? 0) > 240) throw require_CalmLensError.invalidArgument(`idempotencyKey can be at most 240 characters for lenses sent in several requests`);
|
|
942
|
+
for (let start = 0; start < options.length; start += 100) {
|
|
943
|
+
const chunk = start / 100 + 1;
|
|
944
|
+
await this.#submitEnsureLensesChunk(options.slice(start, start + 100), key && chunked ? {
|
|
945
|
+
...requestOptions,
|
|
946
|
+
idempotencyKey: `${key}:chunk-${chunk}`
|
|
947
|
+
} : requestOptions);
|
|
948
|
+
}
|
|
940
949
|
}
|
|
941
950
|
async #submitEnsureLensesChunk(options, requestOptions) {
|
|
942
951
|
const result = await this.#send("ensureLenses", requestOptions, "PUT", `${this.#projectPath}/lenses`, { body: { lenses: options } });
|
|
@@ -42876,8 +42876,8 @@ interface ClientRequestDefaults {
|
|
|
42876
42876
|
uploadTimeoutMs?: number;
|
|
42877
42877
|
/**
|
|
42878
42878
|
* How many times to retry a request that failed before a response arrived or returned 429,
|
|
42879
|
-
* 500, 502, 503, 504 or `idempotency/request-in-progress`. Only reads and
|
|
42880
|
-
* `Idempotency-Key` (
|
|
42879
|
+
* 500, 502, 503, 504 or `idempotency/request-in-progress`. Only reads and writes carrying an
|
|
42880
|
+
* `Idempotency-Key` (uploads always do) are retried, with jittered backoff that honours
|
|
42881
42881
|
* `Retry-After`. Streamed bodies are never retried. Defaults to 2; 0 disables retries.
|
|
42882
42882
|
*/
|
|
42883
42883
|
maxRetries?: number;
|
|
@@ -42902,8 +42902,8 @@ interface RequestOptions {
|
|
|
42902
42902
|
/** How many times to retry this call's requests; 0 turns retries off. */
|
|
42903
42903
|
maxRetries?: number;
|
|
42904
42904
|
/**
|
|
42905
|
-
* Sent as `Idempotency-Key`, which
|
|
42906
|
-
* Uploads generate one when you pass none.
|
|
42905
|
+
* Sent as `Idempotency-Key`, which makes any write (POST, PUT, PATCH or DELETE) safe to retry:
|
|
42906
|
+
* CalmLens runs it once and replays its response. Uploads generate one when you pass none.
|
|
42907
42907
|
*/
|
|
42908
42908
|
idempotencyKey?: string;
|
|
42909
42909
|
/** Extra headers. The SDK's own (`X-Api-Key`, `User-Agent`, `Idempotency-Key`) win. */
|
|
@@ -43339,7 +43339,23 @@ type ListAssetChildrenOptions = Partial<GetAssetChildrenQuery> & {
|
|
|
43339
43339
|
type ListAssetTimelineOptions = Partial<GetAssetTimelineQuery> & {
|
|
43340
43340
|
assetId: string;
|
|
43341
43341
|
};
|
|
43342
|
-
|
|
43342
|
+
/**
|
|
43343
|
+
* Content and its MIME type or file extension. `type` defaults to `text/plain` for `plainText`;
|
|
43344
|
+
* give `text/html` to moderate the text as a web page. Other content needs its type.
|
|
43345
|
+
*/
|
|
43346
|
+
type AssetContentOptions = ((Extract<AssetBinaryPayloadInput, {
|
|
43347
|
+
plainText: string;
|
|
43348
|
+
}> & {
|
|
43349
|
+
type?: string;
|
|
43350
|
+
}) | (Exclude<AssetBinaryPayloadInput, {
|
|
43351
|
+
plainText: string;
|
|
43352
|
+
}> & {
|
|
43353
|
+
type: string;
|
|
43354
|
+
})) & {
|
|
43355
|
+
sizeInBytes?: number;
|
|
43356
|
+
};
|
|
43357
|
+
/** Content as the client sends it, with its type resolved. */
|
|
43358
|
+
type PreparedAssetContentOptions = AssetBinaryPayloadInput & {
|
|
43343
43359
|
type: string;
|
|
43344
43360
|
sizeInBytes?: number;
|
|
43345
43361
|
};
|
|
@@ -43358,7 +43374,7 @@ interface UploadAssetPartOptions extends IdempotencyOptions {
|
|
|
43358
43374
|
*/
|
|
43359
43375
|
wait?: boolean;
|
|
43360
43376
|
}
|
|
43361
|
-
type CreateMultipartUploadPartOptions =
|
|
43377
|
+
type CreateMultipartUploadPartOptions = PreparedAssetContentOptions & {
|
|
43362
43378
|
partNumber?: number;
|
|
43363
43379
|
isFinal?: boolean;
|
|
43364
43380
|
sizeInBytes?: number;
|
|
@@ -43397,9 +43413,12 @@ interface SubmitAssetCommonOptions extends IdempotencyOptions {
|
|
|
43397
43413
|
* name the asset's name when you give none), or bytes, base64 or plain text with their `type`.
|
|
43398
43414
|
*/
|
|
43399
43415
|
type AssetContentInput = AssetContentOptions | Blob;
|
|
43400
|
-
/**
|
|
43416
|
+
/**
|
|
43417
|
+
* Options as the client sends them, once a `Blob` or `File` is read as `{ data, type }` and plain
|
|
43418
|
+
* text without a type is `text/plain`.
|
|
43419
|
+
*/
|
|
43401
43420
|
type PreparedSubmitAssetOptions = (SubmitAssetCommonOptions & {
|
|
43402
|
-
content:
|
|
43421
|
+
content: PreparedAssetContentOptions;
|
|
43403
43422
|
}) | (SubmitAssetCommonOptions & {
|
|
43404
43423
|
url: string;
|
|
43405
43424
|
}) | (SubmitAssetCommonOptions & {
|
|
@@ -43414,7 +43433,7 @@ type PreparedSubmitAssetOptions = (SubmitAssetCommonOptions & {
|
|
|
43414
43433
|
});
|
|
43415
43434
|
/** What `assets.create` and `assets.classify` take: content, a URL or a multipart part. */
|
|
43416
43435
|
type SubmitAssetOptions = PreparedSubmitAssetOptions | (SubmitAssetCommonOptions & {
|
|
43417
|
-
content:
|
|
43436
|
+
content: AssetContentInput;
|
|
43418
43437
|
});
|
|
43419
43438
|
interface MultipartUploadOptions extends SubmitAssetCommonOptions {
|
|
43420
43439
|
part: CreateMultipartUploadPartOptions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_CalmLensError = require("./CalmLensError-
|
|
2
|
-
const require_CalmLensCdn = require("./CalmLensCdn-
|
|
3
|
-
const require_UploadController = require("./UploadController-
|
|
1
|
+
const require_CalmLensError = require("./CalmLensError-C9g7GXfU.js");
|
|
2
|
+
const require_CalmLensCdn = require("./CalmLensCdn-DCj0AfoS.js");
|
|
3
|
+
const require_UploadController = require("./UploadController-C1tiTTRR.js");
|
|
4
4
|
const require_FileIcons = require("./FileIcons-Ob003MdS.js");
|
|
5
5
|
// src/ui/viewers/ViewerAsset.ts
|
|
6
6
|
/** Spreadsheet MIME types, as `content.format` reports them (compared lower-cased). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as CdnTransform, O as CalmLensAppClientOptions, fn as ViewerClaims, g as AssetModerationStatus, i as AssetAvailability } from "./CalmLensTypes-
|
|
2
|
-
import { t as CalmLensAppClient } from "./CalmLensAppClient-
|
|
1
|
+
import { F as CdnTransform, O as CalmLensAppClientOptions, fn as ViewerClaims, g as AssetModerationStatus, i as AssetAvailability } from "./CalmLensTypes-jond9q6a.js";
|
|
2
|
+
import { t as CalmLensAppClient } from "./CalmLensAppClient-CQpnc4JZ.js";
|
|
3
3
|
import { o as UploadFileIconFamily } from "./FileIcons-4qSX7DW2.js";
|
|
4
4
|
/**
|
|
5
5
|
* The text the asset viewers show, keyed by name. `{name}` placeholders are filled in when shown.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_UploadController = require("./UploadController-
|
|
1
|
+
const require_UploadController = require("./UploadController-C1tiTTRR.js");
|
|
2
2
|
let react = require("react");
|
|
3
3
|
// src/ui/ReactUpload.ts
|
|
4
4
|
const CalmLensContext = (0, react.createContext)(void 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as UploadFile, L as UploadSnapshot, N as UploadController, O as CalmLensProvidedOptions, P as UploadControllerOptions } from "./Core-
|
|
1
|
+
import { F as UploadFile, L as UploadSnapshot, N as UploadController, O as CalmLensProvidedOptions, P as UploadControllerOptions } from "./Core-C6_Q5ZME.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
type CalmLensProviderProps<F extends UploadFile = File> = CalmLensProvidedOptions<F> & {
|
|
4
4
|
children?: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_CalmLensError = require("./CalmLensError-
|
|
2
|
-
const require_CalmLensAppClient = require("./CalmLensAppClient-
|
|
1
|
+
const require_CalmLensError = require("./CalmLensError-C9g7GXfU.js");
|
|
2
|
+
const require_CalmLensAppClient = require("./CalmLensAppClient-Diu1QtBz.js");
|
|
3
3
|
// src/contract/PlaceholderHashDecode.js
|
|
4
4
|
/**
|
|
5
5
|
* Decodes a ThumbHash to an RGBA image. RGB is not be premultiplied by A.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fn as EventResourceKind, Nn as TypedEvent, jn as Actor } from "./CalmLensTypes-
|
|
1
|
+
import { Fn as EventResourceKind, Nn as TypedEvent, jn as Actor } from "./CalmLensTypes-jond9q6a.js";
|
|
2
2
|
import * as zod from "zod";
|
|
3
3
|
/** Error codes the CalmLens API documents, by name. */
|
|
4
4
|
declare const API_ERROR_CODES: {
|
|
@@ -56,6 +56,7 @@ declare const API_ERROR_CODES: {
|
|
|
56
56
|
readonly IDEMPOTENT_REQUEST_IN_PROGRESS: "idempotency/request-in-progress";
|
|
57
57
|
readonly NO_RENDERED_VERSION: "asset/no-rendered-version";
|
|
58
58
|
readonly ASSET_NOT_FOUND: "asset/not-found";
|
|
59
|
+
readonly ASSET_NOT_AVAILABLE: "asset/not-available";
|
|
59
60
|
readonly PROJECT_NOT_FOUND: "project/not-found";
|
|
60
61
|
readonly ASSET_CHILD_NOT_DELETABLE: "asset/child-not-deletable";
|
|
61
62
|
readonly ASSET_REVIEW_CHANGED: "asset/review-changed";
|
|
@@ -208,6 +209,7 @@ declare const CALMLENS_ERROR_CODES: {
|
|
|
208
209
|
readonly IDEMPOTENT_REQUEST_IN_PROGRESS: "idempotency/request-in-progress";
|
|
209
210
|
readonly NO_RENDERED_VERSION: "asset/no-rendered-version";
|
|
210
211
|
readonly ASSET_NOT_FOUND: "asset/not-found";
|
|
212
|
+
readonly ASSET_NOT_AVAILABLE: "asset/not-available";
|
|
211
213
|
readonly PROJECT_NOT_FOUND: "project/not-found";
|
|
212
214
|
readonly ASSET_CHILD_NOT_DELETABLE: "asset/child-not-deletable";
|
|
213
215
|
readonly ASSET_REVIEW_CHANGED: "asset/review-changed";
|
|
@@ -376,8 +378,8 @@ declare class CalmLensError extends Error {
|
|
|
376
378
|
/**
|
|
377
379
|
* Whether repeating the same request may succeed: transport failures, timeouts (a request's
|
|
378
380
|
* `timeoutMs` or `waitForDecision`'s deadline), throttling (429), internal and gateway errors (500, 502, 503, 504)
|
|
379
|
-
* and idempotent requests still in progress. Only repeat a create
|
|
380
|
-
* `idempotencyKey`.
|
|
381
|
+
* and idempotent requests still in progress. Only repeat a write (a create, upload, change or
|
|
382
|
+
* delete) with the same `idempotencyKey`.
|
|
381
383
|
*/
|
|
382
384
|
isRetryable(): boolean;
|
|
383
385
|
}
|
package/cjs/app.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as ClassificationQualifierResults, c as HashList, d as ModerationContext, i as ClassificationNotEvaluatedReason, l as HashListEntry, n as ClassificationCategory, o as Likelihood, r as ClassificationCategoryReport, s as ModerationQualifier, t as ClassificationCategories, u as PolicyAction } from "./Classification-C3pkrGYS-B7EygpJn.js";
|
|
2
|
-
import { $ as EventFactValues, $n as ProcessingOptions, $t as UpdateFolderOptions, A as CdnAssetLocation, An as LensType, At as PolicyIdOptions, B as CreateHashListOptions, Bn as AssetSearchQuery, Bt as RetrieveAssetByExternalIdOptions, C as AssetUploadStatus, Cn as DetectedFace, Ct as ListPoliciesOptions, D as BatchAssetsResponse, Dn as ProcessingFeatureStage, Dt as MultipartUploadOptions, E as BatchAssetsOptions, En as ProcessingFeatureResults, Et as MoveFolderOptions, F as CdnTransform, Fn as EventResourceKind, Ft as RemoveAssetContentOptions, G as DeleteAssetOptions, Gn as AssetPreview, Gt as SignAssetUrlOptions, H as CreateMultipartUploadPartOptions, Hn as AssetInfo, Ht as RetryAssetOptions, I as ClassifyTextOptions, In as EventSeverity, It as RequestAssetReviewOptions, J as EnsureLensesOptions, Jn as AssetSafetyHold, Jt as SignedUploadToken, K as DeleteMetadataFieldOptions, Kn as AssetRendered, Kt as SignUploadTokenOptions, L as ClientRequestDefaults, Lt as RequestAttempt, M as CdnAssetUrlOptions, Mn as EventResource, Mt as PolicySettings, N as CdnResource, Nt as ProjectSettingsResource, O as CalmLensAppClientOptions, On as ProcessingFeatures, Ot as MultipartUploadPartOptions, P as CdnServeOptions, Pn as EventCategory, Pt as PublicProjectSettings, Q as EventFact, Qn as MetadataItem, Qt as UpdateAssetOptions, R as ConnectionOptions, Rn as Folder, Rt as RequestOptions, S as AssetUpload, Sn as BoundingBox, St as ListLensesOptions, T as AssignPolicyOptions, Tn as ProcessingFeatureId, Tt as MoveAssetOptions, U as CreatePolicyOptions, Un as AssetHls, Ut as SearchAssetsOptions, V as CreateLensOptions, Vt as RetrieveAssetOptions, W as DecideAssetOptions, Wn as AssetHlsRendition, Wt as SetPolicyAutomaticUpdatesOptions, X as EnsureUploadPresetsOptions, Xn as ExtractedText, Xt as SubmitAssetOptions, Y as EnsureMetadataFieldsOptions, Yn as AssetSafetyHoldReason, Yt as StreamingFeatureOptions, Z as EnsureUploadPresetsResponse, Zn as FileMetadata, Zt as TypedEvent, _ as AssetPage, _n as AssetReviewRequest, _t as ListAssetsOptions, a as AssetChecksums, an as UploadAssetPartOptions, at as GetAssetInfoOptions, b as AssetTimelinePage, bn as UploadPreset, bt as ListHashListEntriesOptions, c as AssetClassificationFailureReason, cn as UploadPresetPage, ct as HashListIdOptions, d as AssetContentOptions, dn as VerifyWebhookSignatureOptions, dt as ImageTransformOptions, en as UpdateHashListOptions, et as EventFacts, f as AssetContentRemovalReason, fn as ViewerClaims, ft as Lens, g as AssetModerationStatus, gn as AssetBatchOperation, gt as ListAssetTimelineOptions, h as AssetModerationDecision, hn as WebhookPayloadInput, ht as ListAssetChildrenOptions, i as AssetAvailability, in as UpgradePolicyOptions, it as FolderPage, j as CdnAssetReference, jt as PolicyPage, k as CalmLensServerClientOptions, kn as CursorPage, kt as Policy, l as AssetClassificationStatus, ln as UploadPresetSubmitAssetOptions, lt as HashListPage, m as AssetModeration, mn as WebhookHeadersInput, mt as LensPage, n as AppInfo, nn as UpdatePolicyOptions, nt as EventsPage, o as AssetChildrenPage, on as UploadPresetDefinition, ot as HashListEntryIdOptions, p as AssetContentStatus, pn as WaitForAssetDecisionOptions, pt as LensIdOptions, q as EnsureLensOptions, qn as AssetRenderedKind, qt as SignedAssetUrl, r as Asset, rn as UpdateProjectSettingsOptions, rt as FolderIdOptions, s as AssetClassification, sn as UploadPresetIdOptions, st as HashListEntryPage, t as AddHashListEntryOptions, tn as UpdateLensOptions, tt as EventType, u as AssetContent, un as UploadedAsset, ut as IdempotencyOptions, v as AssetSearchResponse, vn as AssetTimelineSegment, vt as ListEventsOptions, w as AssetVisibility, wn as DetectedPerson, wt as ListUploadPresetsOptions, x as AssetType, xn as AgeRange, xt as ListHashListsOptions, y as AssetSearchResult, yn as MetadataFieldsResource, yt as ListFoldersOptions, z as CreateFolderOptions, zn as AssetSearchMatchField, zt as ResetPolicyOptions } from "./CalmLensTypes-
|
|
3
|
-
import { t as CalmLensAppClient } from "./CalmLensAppClient-
|
|
4
|
-
import { a as getAssetInfo, i as CDN_RESOURCES, n as SDK_VERSION, r as DEFAULT_CDN_BASE_URL, t as ModerationContextItem } from "./index-
|
|
5
|
-
import { A as CalmLensRateLimitError, C as CalmLensErrorKind, D as CalmLensNotFoundError, E as CalmLensInvalidResponseError, F as SdkErrorCode, I as ApiErrorCode, M as CalmLensTimeoutError, N as CalmLensUnprocessableEntityError, O as CalmLensPayloadTooLargeError, P as CalmLensWebhookVerificationError, S as CalmLensErrorDetails, T as CalmLensInvalidArgumentError, _ as CalmLensConfigurationError, a as AUTO_PAGING_TO_ARRAY_MAX, b as CalmLensError, c as CalmLensLastResponse, d as ListPromise, f as CALMLENS_ERROR_CODES, g as CalmLensCancelledError, h as CalmLensBadRequestError, i as ServedAssetInfo, j as CalmLensServerError, k as CalmLensPermissionDeniedError, l as CalmLensResponse, m as CalmLensAuthenticationError, o as AutoPaging, p as CalmLensApiError, r as CdnResponse, s as AutoPagingToArrayOptions, t as ReceivedWebhookEventPayload, u as ListPage, v as CalmLensConflictError, w as CalmLensErrorOptions, x as CalmLensErrorCode, y as CalmLensConnectionError } from "./WebhookPayload-
|
|
2
|
+
import { $ as EventFactValues, $n as ProcessingOptions, $t as UpdateFolderOptions, A as CdnAssetLocation, An as LensType, At as PolicyIdOptions, B as CreateHashListOptions, Bn as AssetSearchQuery, Bt as RetrieveAssetByExternalIdOptions, C as AssetUploadStatus, Cn as DetectedFace, Ct as ListPoliciesOptions, D as BatchAssetsResponse, Dn as ProcessingFeatureStage, Dt as MultipartUploadOptions, E as BatchAssetsOptions, En as ProcessingFeatureResults, Et as MoveFolderOptions, F as CdnTransform, Fn as EventResourceKind, Ft as RemoveAssetContentOptions, G as DeleteAssetOptions, Gn as AssetPreview, Gt as SignAssetUrlOptions, H as CreateMultipartUploadPartOptions, Hn as AssetInfo, Ht as RetryAssetOptions, I as ClassifyTextOptions, In as EventSeverity, It as RequestAssetReviewOptions, J as EnsureLensesOptions, Jn as AssetSafetyHold, Jt as SignedUploadToken, K as DeleteMetadataFieldOptions, Kn as AssetRendered, Kt as SignUploadTokenOptions, L as ClientRequestDefaults, Lt as RequestAttempt, M as CdnAssetUrlOptions, Mn as EventResource, Mt as PolicySettings, N as CdnResource, Nt as ProjectSettingsResource, O as CalmLensAppClientOptions, On as ProcessingFeatures, Ot as MultipartUploadPartOptions, P as CdnServeOptions, Pn as EventCategory, Pt as PublicProjectSettings, Q as EventFact, Qn as MetadataItem, Qt as UpdateAssetOptions, R as ConnectionOptions, Rn as Folder, Rt as RequestOptions, S as AssetUpload, Sn as BoundingBox, St as ListLensesOptions, T as AssignPolicyOptions, Tn as ProcessingFeatureId, Tt as MoveAssetOptions, U as CreatePolicyOptions, Un as AssetHls, Ut as SearchAssetsOptions, V as CreateLensOptions, Vt as RetrieveAssetOptions, W as DecideAssetOptions, Wn as AssetHlsRendition, Wt as SetPolicyAutomaticUpdatesOptions, X as EnsureUploadPresetsOptions, Xn as ExtractedText, Xt as SubmitAssetOptions, Y as EnsureMetadataFieldsOptions, Yn as AssetSafetyHoldReason, Yt as StreamingFeatureOptions, Z as EnsureUploadPresetsResponse, Zn as FileMetadata, Zt as TypedEvent, _ as AssetPage, _n as AssetReviewRequest, _t as ListAssetsOptions, a as AssetChecksums, an as UploadAssetPartOptions, at as GetAssetInfoOptions, b as AssetTimelinePage, bn as UploadPreset, bt as ListHashListEntriesOptions, c as AssetClassificationFailureReason, cn as UploadPresetPage, ct as HashListIdOptions, d as AssetContentOptions, dn as VerifyWebhookSignatureOptions, dt as ImageTransformOptions, en as UpdateHashListOptions, et as EventFacts, f as AssetContentRemovalReason, fn as ViewerClaims, ft as Lens, g as AssetModerationStatus, gn as AssetBatchOperation, gt as ListAssetTimelineOptions, h as AssetModerationDecision, hn as WebhookPayloadInput, ht as ListAssetChildrenOptions, i as AssetAvailability, in as UpgradePolicyOptions, it as FolderPage, j as CdnAssetReference, jt as PolicyPage, k as CalmLensServerClientOptions, kn as CursorPage, kt as Policy, l as AssetClassificationStatus, ln as UploadPresetSubmitAssetOptions, lt as HashListPage, m as AssetModeration, mn as WebhookHeadersInput, mt as LensPage, n as AppInfo, nn as UpdatePolicyOptions, nt as EventsPage, o as AssetChildrenPage, on as UploadPresetDefinition, ot as HashListEntryIdOptions, p as AssetContentStatus, pn as WaitForAssetDecisionOptions, pt as LensIdOptions, q as EnsureLensOptions, qn as AssetRenderedKind, qt as SignedAssetUrl, r as Asset, rn as UpdateProjectSettingsOptions, rt as FolderIdOptions, s as AssetClassification, sn as UploadPresetIdOptions, st as HashListEntryPage, t as AddHashListEntryOptions, tn as UpdateLensOptions, tt as EventType, u as AssetContent, un as UploadedAsset, ut as IdempotencyOptions, v as AssetSearchResponse, vn as AssetTimelineSegment, vt as ListEventsOptions, w as AssetVisibility, wn as DetectedPerson, wt as ListUploadPresetsOptions, x as AssetType, xn as AgeRange, xt as ListHashListsOptions, y as AssetSearchResult, yn as MetadataFieldsResource, yt as ListFoldersOptions, z as CreateFolderOptions, zn as AssetSearchMatchField, zt as ResetPolicyOptions } from "./CalmLensTypes-jond9q6a.js";
|
|
3
|
+
import { t as CalmLensAppClient } from "./CalmLensAppClient-CQpnc4JZ.js";
|
|
4
|
+
import { a as getAssetInfo, i as CDN_RESOURCES, n as SDK_VERSION, r as DEFAULT_CDN_BASE_URL, t as ModerationContextItem } from "./index-CgAztQdX.js";
|
|
5
|
+
import { A as CalmLensRateLimitError, C as CalmLensErrorKind, D as CalmLensNotFoundError, E as CalmLensInvalidResponseError, F as SdkErrorCode, I as ApiErrorCode, M as CalmLensTimeoutError, N as CalmLensUnprocessableEntityError, O as CalmLensPayloadTooLargeError, P as CalmLensWebhookVerificationError, S as CalmLensErrorDetails, T as CalmLensInvalidArgumentError, _ as CalmLensConfigurationError, a as AUTO_PAGING_TO_ARRAY_MAX, b as CalmLensError, c as CalmLensLastResponse, d as ListPromise, f as CALMLENS_ERROR_CODES, g as CalmLensCancelledError, h as CalmLensBadRequestError, i as ServedAssetInfo, j as CalmLensServerError, k as CalmLensPermissionDeniedError, l as CalmLensResponse, m as CalmLensAuthenticationError, o as AutoPaging, p as CalmLensApiError, r as CdnResponse, s as AutoPagingToArrayOptions, t as ReceivedWebhookEventPayload, u as ListPage, v as CalmLensConflictError, w as CalmLensErrorOptions, x as CalmLensErrorCode, y as CalmLensConnectionError } from "./WebhookPayload-DdpKjQGw.js";
|
|
6
6
|
export { AUTO_PAGING_TO_ARRAY_MAX, type AddHashListEntryOptions, type AgeRange, type ApiErrorCode, type AppInfo, type Asset, type AssetAvailability, type AssetBatchOperation, type AssetChecksums, type AssetChildrenPage, type AssetClassification, type AssetClassificationFailureReason, type AssetClassificationStatus, type AssetContent, type AssetContentOptions, type AssetContentRemovalReason, type AssetContentStatus, type AssetHls, type AssetHlsRendition, type AssetInfo, type AssetModeration, type AssetModerationDecision, type AssetModerationStatus, type AssetPage, type AssetPreview, type AssetRendered, type AssetRenderedKind, type AssetReviewRequest, type AssetSafetyHold, type AssetSafetyHoldReason, type AssetSearchMatchField, type AssetSearchQuery, type AssetSearchResponse, type AssetSearchResult, type AssetTimelinePage, type AssetTimelineSegment, type AssetType, type AssetUpload, type AssetUploadStatus, type AssetVisibility, type AssignPolicyOptions, type AutoPaging, type AutoPagingToArrayOptions, type BatchAssetsOptions, type BatchAssetsResponse, type BoundingBox, CALMLENS_ERROR_CODES, CDN_RESOURCES, CalmLensApiError, CalmLensAppClient, type CalmLensAppClientOptions, CalmLensAuthenticationError, CalmLensBadRequestError, CalmLensCancelledError, CalmLensConfigurationError, CalmLensConflictError, CalmLensConnectionError, CalmLensError, type CalmLensErrorCode, type CalmLensErrorDetails, type CalmLensErrorKind, type CalmLensErrorOptions, CalmLensInvalidArgumentError, CalmLensInvalidResponseError, type CalmLensLastResponse, CalmLensNotFoundError, CalmLensPayloadTooLargeError, CalmLensPermissionDeniedError, CalmLensRateLimitError, type CalmLensResponse, type CalmLensServerClientOptions, CalmLensServerError, CalmLensTimeoutError, CalmLensUnprocessableEntityError, CalmLensWebhookVerificationError, type CdnAssetLocation, type CdnAssetReference, type CdnAssetUrlOptions, type CdnResource, type CdnResponse, type CdnServeOptions, type CdnTransform, type ClassificationCategories, type ClassificationCategory, type ClassificationCategoryReport, type ClassificationNotEvaluatedReason, type ClassificationQualifierResults, type ClassifyTextOptions, type ClientRequestDefaults, type ConnectionOptions, type CreateFolderOptions, type CreateHashListOptions, type CreateLensOptions, type CreateMultipartUploadPartOptions, type CreatePolicyOptions, type CursorPage, DEFAULT_CDN_BASE_URL, type DecideAssetOptions, type DeleteAssetOptions, type DeleteMetadataFieldOptions, type DetectedFace, type DetectedPerson, type EnsureLensOptions, type EnsureLensesOptions, type EnsureMetadataFieldsOptions, type EnsureUploadPresetsOptions, type EnsureUploadPresetsResponse, type EventCategory, type EventFact, type EventFactValues, type EventFacts, type EventResource, type EventResourceKind, type EventSeverity, type EventType, type EventsPage, type ExtractedText, type FileMetadata, type Folder, type FolderIdOptions, type FolderPage, type GetAssetInfoOptions, type HashList, type HashListEntry, type HashListEntryIdOptions, type HashListEntryPage, type HashListIdOptions, type HashListPage, type IdempotencyOptions, type ImageTransformOptions, type Lens, type LensIdOptions, type LensPage, type LensType, type Likelihood, type ListAssetChildrenOptions, type ListAssetTimelineOptions, type ListAssetsOptions, type ListEventsOptions, type ListFoldersOptions, type ListHashListEntriesOptions, type ListHashListsOptions, type ListLensesOptions, type ListPage, type ListPoliciesOptions, type ListPromise, type ListUploadPresetsOptions, type MetadataFieldsResource, type MetadataItem, type ModerationContext, type ModerationContextItem, type ModerationQualifier, type MoveAssetOptions, type MoveFolderOptions, type MultipartUploadOptions, type MultipartUploadPartOptions, type Policy, type PolicyAction, type PolicyIdOptions, type PolicyPage, type PolicySettings, type ProcessingFeatureId, type ProcessingFeatureResults, type ProcessingFeatureStage, type ProcessingFeatures, type ProcessingOptions, type ProjectSettingsResource, type PublicProjectSettings, type RemoveAssetContentOptions, type RequestAssetReviewOptions, type RequestAttempt, type RequestOptions, type ResetPolicyOptions, type RetrieveAssetByExternalIdOptions, type RetrieveAssetOptions, type RetryAssetOptions, SDK_VERSION, type SdkErrorCode, type SearchAssetsOptions, type ServedAssetInfo, type SetPolicyAutomaticUpdatesOptions, type SignAssetUrlOptions, type SignUploadTokenOptions, type SignedAssetUrl, type SignedUploadToken, type StreamingFeatureOptions, type SubmitAssetOptions, type TypedEvent, type UpdateAssetOptions, type UpdateFolderOptions, type UpdateHashListOptions, type UpdateLensOptions, type UpdatePolicyOptions, type UpdateProjectSettingsOptions, type UpgradePolicyOptions, type UploadAssetPartOptions, type UploadPreset, type UploadPresetDefinition, type UploadPresetIdOptions, type UploadPresetPage, type UploadPresetSubmitAssetOptions, type UploadedAsset, type VerifyWebhookSignatureOptions, type ViewerClaims, type WaitForAssetDecisionOptions, type ReceivedWebhookEventPayload as WebhookEventPayload, type WebhookHeadersInput, type WebhookPayloadInput, getAssetInfo };
|
package/cjs/app.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_CalmLensError = require("./CalmLensError-
|
|
3
|
-
const require_CalmLensCdn = require("./CalmLensCdn-
|
|
2
|
+
const require_CalmLensError = require("./CalmLensError-C9g7GXfU.js");
|
|
3
|
+
const require_CalmLensCdn = require("./CalmLensCdn-DCj0AfoS.js");
|
|
4
4
|
require("./index.js");
|
|
5
|
-
const require_CalmLensAppClient = require("./CalmLensAppClient-
|
|
5
|
+
const require_CalmLensAppClient = require("./CalmLensAppClient-Diu1QtBz.js");
|
|
6
6
|
exports.AUTO_PAGING_TO_ARRAY_MAX = require_CalmLensCdn.AUTO_PAGING_TO_ARRAY_MAX;
|
|
7
7
|
exports.CALMLENS_ERROR_CODES = require_CalmLensError.CALMLENS_ERROR_CODES;
|
|
8
8
|
exports.CDN_RESOURCES = require_CalmLensCdn.CDN_RESOURCES;
|