calmlens 0.29.2 → 0.31.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 +17 -45
- package/{esm/BrowserUpload-CeGsM9h1.d.ts → cjs/BrowserUpload-BAH54V1q.d.ts} +2 -2
- package/cjs/{BrowserUpload-CCXt4DAY.js → BrowserUpload-IiRDbL85.js} +1 -1
- package/cjs/{CalmLensAppClient-ea-qXkmD.js → CalmLensAppClient-BBcq6pJg.js} +10 -10
- package/cjs/{CalmLensAppClient-D-BD_Ny1.d.ts → CalmLensAppClient-CdlcDd5l.d.ts} +1 -1
- package/cjs/{ModerationContextLimits-1XP4ZTQk.js → CalmLensCdn-2VbArrj-.js} +2 -52
- package/cjs/{CalmLensConnection-BrySN2M3.js → CalmLensConnection-CpnDGa8W.js} +15 -22
- package/cjs/{CalmLensError-DPHJaVjX.js → CalmLensError-ifj5rLmk.js} +5 -0
- package/{esm/CalmLensServerClient-BYN_N0lt.d.ts → cjs/CalmLensServerClient-CtS66dCU.d.ts} +12 -8
- package/cjs/{CalmLensServerClient-FD7H7KvL.js → CalmLensServerClient-DbemlDXj.js} +38 -37
- package/cjs/{CalmLensTestInputArguments-BXDBAOg_.js → CalmLensTestInputArguments-PYuRmE0j.js} +1 -1
- package/cjs/{CalmLensTypes-C2blKgTu.d.ts → CalmLensTypes-87kiUg0H.d.ts} +208 -10
- package/cjs/{Classification-CMM2tZpJ-IdIh63n0.d.ts → Classification-C3pkrGYS-B7EygpJn.d.ts} +16 -50
- package/cjs/{Core-CNmoxDCW.d.ts → Core-Ccy4-_sN.d.ts} +2 -2
- package/cjs/{Core-DMFa3EUp.js → Core-xy9aV1ED.js} +8 -8
- package/cjs/{ReactUpload-gaeiPSeH.js → ReactUpload-BX3XOVfb.js} +1 -1
- package/{esm/ReactUpload-kqEe6gcN.d.ts → cjs/ReactUpload-DBhppuxM.d.ts} +1 -1
- package/cjs/{TestTriggers-CFnel6a9.d.ts → TestTriggers-Daxebd0V.d.ts} +1 -1
- package/cjs/{UploadController-CyPTBuZg.js → UploadController-CmTjpOfp.js} +2 -2
- package/{esm/WebhookPayload-DZWlnvcY.d.ts → cjs/WebhookPayload-B4rA_Dvm.d.ts} +13 -7
- package/cjs/app.d.ts +6 -6
- package/cjs/app.js +8 -11
- package/cjs/elements.d.ts +4 -4
- package/cjs/elements.js +4 -4
- package/cjs/{index-Dl2qwS8L.d.ts → index-CWUnLKoF.d.ts} +8 -4
- package/cjs/index.d.ts +5 -5
- package/cjs/index.js +7 -10
- package/cjs/react-native.d.ts +2 -2
- package/cjs/react-native.js +7 -7
- package/cjs/react.d.ts +4 -4
- package/cjs/react.js +5 -5
- package/cjs/server.d.ts +12 -12
- package/cjs/server.js +9 -12
- package/cjs/test-inputs.d.ts +1 -1
- package/cjs/test-inputs.js +1 -1
- package/cjs/testing.d.ts +12 -8
- package/cjs/testing.js +89 -37
- package/cjs/{ui-DNP1uWQy.js → ui-BJKh49aM.js} +3 -3
- package/cjs/{ui-BtmJC-f9.d.ts → ui-sjnJhloQ.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/{cjs/BrowserUpload-CeGsM9h1.d.ts → esm/BrowserUpload-BAH54V1q.d.ts} +2 -2
- package/esm/{BrowserUpload-Bu6eWqQS.js → BrowserUpload-C5aXj6QC.js} +1 -1
- package/esm/{CalmLensAppClient-D-BD_Ny1.d.ts → CalmLensAppClient-CdlcDd5l.d.ts} +1 -1
- package/esm/{CalmLensAppClient-xp-fH6Lz.js → CalmLensAppClient-gAd0C_Q_.js} +3 -3
- package/esm/{ModerationContextLimits-CtAyz60h.js → CalmLensCdn-CcxEY6wB.js} +3 -35
- package/esm/{CalmLensConnection-DwG5yBk2.js → CalmLensConnection-CfGVp95D.js} +2 -9
- package/esm/{CalmLensError-BDWThPCr.js → CalmLensError-C15tWu8W.js} +5 -0
- package/esm/{CalmLensServerClient-CKlNBBo3.js → CalmLensServerClient-CPWeRVWO.js} +18 -17
- package/{cjs/CalmLensServerClient-BYN_N0lt.d.ts → esm/CalmLensServerClient-CtS66dCU.d.ts} +12 -8
- package/esm/{CalmLensTestInputArguments-Xh4GIadS.js → CalmLensTestInputArguments-CqPADTkl.js} +1 -1
- package/esm/{CalmLensTypes-C2blKgTu.d.ts → CalmLensTypes-87kiUg0H.d.ts} +208 -10
- package/esm/{Classification-CMM2tZpJ-IdIh63n0.d.ts → Classification-C3pkrGYS-B7EygpJn.d.ts} +16 -50
- package/esm/{Core-CNmoxDCW.d.ts → Core-Ccy4-_sN.d.ts} +2 -2
- package/esm/{Core-DnCeTmvS.js → Core-DTcxpv3O.js} +3 -3
- package/{cjs/ReactUpload-kqEe6gcN.d.ts → esm/ReactUpload-DBhppuxM.d.ts} +1 -1
- package/esm/{ReactUpload-D30YlRui.js → ReactUpload-Dg7MtjbJ.js} +1 -1
- package/esm/{TestTriggers-CFnel6a9.d.ts → TestTriggers-Daxebd0V.d.ts} +1 -1
- package/esm/{UploadController-DENryQ8H.js → UploadController-DVsTVJVv.js} +2 -2
- package/{cjs/WebhookPayload-DZWlnvcY.d.ts → esm/WebhookPayload-B4rA_Dvm.d.ts} +13 -7
- package/esm/app.d.ts +6 -6
- package/esm/app.js +4 -4
- package/esm/elements.d.ts +4 -4
- package/esm/elements.js +4 -4
- package/esm/{index-Dl2qwS8L.d.ts → index-CWUnLKoF.d.ts} +8 -4
- package/esm/index.d.ts +5 -5
- package/esm/index.js +3 -3
- 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 -4
- package/esm/test-inputs.d.ts +1 -1
- package/esm/test-inputs.js +1 -1
- package/esm/testing.d.ts +12 -8
- package/esm/testing.js +74 -22
- package/esm/{ui-DUEBbRJ0.js → ui-DUao8UY0.js} +2 -2
- package/esm/{ui-BtmJC-f9.d.ts → ui-sjnJhloQ.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 { C as invalidConfig, S as invalidArgument, l as CalmLensError, x as SDK_ERROR_CODES } from "./CalmLensError-
|
|
2
|
-
import {
|
|
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-
|
|
1
|
+
import { C as invalidConfig, S as invalidArgument, l as CalmLensError, x as SDK_ERROR_CODES } from "./CalmLensError-C15tWu8W.js";
|
|
2
|
+
import { C as validateBatchAssetsOptions, F as isReactNativeRuntime, L as copyLastResponse, P as isBrowserRuntime, R as listPages, b as toTextAssetOptions, d as checkOptionKeys, g as pollForDecision, i as appendSignedLocation, l as validateSignAssetUrlOptions, o as buildAssetUrl, p as encodePathSegment, s as getAssetInfo, u as DEFAULT_CDN_BASE_URL, w as validateServerClientOptions, y as stringifyQuery, z as readEnv } from "./CalmLensCdn-CcxEY6wB.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-CfGVp95D.js";
|
|
4
4
|
import { n as sha256Hex, r as timingSafeEqual, t as hmacSha256Hex } from "./CryptoUtils-BLCa-oZe-DKr3LmN6.js";
|
|
5
5
|
// src/contract/JsonUtils.js
|
|
6
6
|
const stringifyJsonCanonical = (value) => JSON.stringify(value, (_key, nestedValue) => {
|
|
@@ -153,8 +153,8 @@ const isOptional = (value, type, nullable) => value === void 0 || nullable && va
|
|
|
153
153
|
*/
|
|
154
154
|
const isWebhookEvent = (value) => {
|
|
155
155
|
if (!isObject(value) || typeof value.id !== "string" || typeof value.type !== "string" || typeof value.projectId !== "string" || typeof value.createdAt !== "number") return false;
|
|
156
|
-
const { severity, title, description,
|
|
157
|
-
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)));
|
|
158
158
|
};
|
|
159
159
|
/**
|
|
160
160
|
* The value of one of an event's facts, by key, or `undefined` when the event doesn't carry it.
|
|
@@ -178,13 +178,13 @@ const getEventFacts = (event) => {
|
|
|
178
178
|
*/
|
|
179
179
|
const isTestWebhookEvent = (event) => Array.isArray(event?.facts) && event.facts.some((fact) => fact?.key === "test" && fact.value === true);
|
|
180
180
|
/**
|
|
181
|
-
* Whether to apply `event` after `lastSequence`, the highest `
|
|
182
|
-
* its
|
|
183
|
-
*
|
|
184
|
-
* earlier one returns `false`. Events
|
|
185
|
-
*
|
|
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.
|
|
186
186
|
*/
|
|
187
|
-
const
|
|
187
|
+
const isNewerEvent = (event, lastSequence) => !event.resource || lastSequence === null || lastSequence === void 0 || event.resource.sequence > lastSequence;
|
|
188
188
|
// src/client/ServedAssetInfo.ts
|
|
189
189
|
function parseServedAssetInfo(header) {
|
|
190
190
|
if (!header) return void 0;
|
|
@@ -688,12 +688,13 @@ sign: async (options) => {
|
|
|
688
688
|
} })),
|
|
689
689
|
/**
|
|
690
690
|
* Retrieves the asset an event is about, as it is now, such as one from `events.list` or a
|
|
691
|
-
* parsed webhook delivery; events carry only the asset's ID
|
|
692
|
-
* event that isn't about an asset, and rejects with `asset/not-found` once the
|
|
693
|
-
* deleted. The asset's `
|
|
694
|
-
* `
|
|
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.
|
|
695
696
|
*/
|
|
696
|
-
retrieveAsset: async (event, requestOptions) => event.
|
|
697
|
+
retrieveAsset: async (event, requestOptions) => event.resource?.kind === "asset" ? this.assets.retrieve({ assetId: event.resource.id }, requestOptions) : null
|
|
697
698
|
};
|
|
698
699
|
}
|
|
699
700
|
get folders() {
|
|
@@ -949,4 +950,4 @@ sign: async (options) => {
|
|
|
949
950
|
}
|
|
950
951
|
}
|
|
951
952
|
};
|
|
952
|
-
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,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-C3pkrGYS-B7EygpJn.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-87kiUg0H.js";
|
|
3
|
+
import { d as ListPromise, l as CalmLensResponse, r as CdnResponse } from "./WebhookPayload-B4rA_Dvm.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(): {
|
package/esm/{CalmLensTestInputArguments-Xh4GIadS.js → CalmLensTestInputArguments-CqPADTkl.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as invalidArgument } from "./CalmLensError-
|
|
1
|
+
import { S as invalidArgument } from "./CalmLensError-C15tWu8W.js";
|
|
2
2
|
import { r as timingSafeEqual, t as hmacSha256Hex } from "./CryptoUtils-BLCa-oZe-DKr3LmN6.js";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
import { globalRegistry } from "zod";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as HashList, d as ModerationContext, l as HashListEntry } from "./Classification-C3pkrGYS-B7EygpJn.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
|
|
@@ -10095,8 +10095,7 @@ declare const ASSET_SCHEMA: zod.ZodObject<{
|
|
|
10095
10095
|
authorId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
10096
10096
|
context: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
10097
10097
|
items: zod.ZodArray<zod.ZodObject<{
|
|
10098
|
-
|
|
10099
|
-
authorId: zod.ZodOptional<zod.ZodString>;
|
|
10098
|
+
assetId: zod.ZodString;
|
|
10100
10099
|
}, zod.core.$strict>>;
|
|
10101
10100
|
}, zod.core.$strip>>>;
|
|
10102
10101
|
type: zod.ZodEnum<{
|
|
@@ -15202,7 +15201,7 @@ declare const ASSET_SCHEMA: zod.ZodObject<{
|
|
|
15202
15201
|
averageColor: zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>;
|
|
15203
15202
|
}, zod.core.$strip>>;
|
|
15204
15203
|
}, zod.core.$strip>;
|
|
15205
|
-
|
|
15204
|
+
sequence: zod.ZodNumber;
|
|
15206
15205
|
}, zod.core.$strip>;
|
|
15207
15206
|
type Asset$1 = zod.infer<typeof ASSET_SCHEMA>;
|
|
15208
15207
|
/**
|
|
@@ -15280,6 +15279,21 @@ declare const ASSET_INFO_SCHEMA: zod.ZodObject<{
|
|
|
15280
15279
|
}>;
|
|
15281
15280
|
}, zod.core.$strip>;
|
|
15282
15281
|
type AssetInfo = zod.infer<typeof ASSET_INFO_SCHEMA>;
|
|
15282
|
+
/**
|
|
15283
|
+
* What moderation decided for an asset, which also decides how it is delivered: served to anyone
|
|
15284
|
+
* with access (`allowed`), served the same way but marked for reduced reach (`limited`), only to
|
|
15285
|
+
* requests that confirm the viewer's age with `ageConfirmed`, signed URLs and server keys included
|
|
15286
|
+
* (`age-restricted`), not served (`blocked`), or not served with its stored content deleted
|
|
15287
|
+
* (`purged`).
|
|
15288
|
+
*/
|
|
15289
|
+
declare const ASSET_MODERATION_DECISION_SCHEMA: zod.ZodEnum<{
|
|
15290
|
+
"age-restricted": "age-restricted";
|
|
15291
|
+
allowed: "allowed";
|
|
15292
|
+
blocked: "blocked";
|
|
15293
|
+
limited: "limited";
|
|
15294
|
+
purged: "purged";
|
|
15295
|
+
}>;
|
|
15296
|
+
type AssetModerationDecision$1 = zod.infer<typeof ASSET_MODERATION_DECISION_SCHEMA>;
|
|
15283
15297
|
type AssetDataInput = Blob | Response | ReadableStream<Uint8Array>;
|
|
15284
15298
|
type AssetBufferInput = ArrayBuffer | (Uint8Array & {
|
|
15285
15299
|
write(string: string, offset?: number, length?: number, encoding?: string): number;
|
|
@@ -15353,8 +15367,7 @@ declare const ASSET_SEARCH_RESULT_SCHEMA: zod.ZodObject<{
|
|
|
15353
15367
|
authorId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
15354
15368
|
context: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
15355
15369
|
items: zod.ZodArray<zod.ZodObject<{
|
|
15356
|
-
|
|
15357
|
-
authorId: zod.ZodOptional<zod.ZodString>;
|
|
15370
|
+
assetId: zod.ZodString;
|
|
15358
15371
|
}, zod.core.$strict>>;
|
|
15359
15372
|
}, zod.core.$strip>>>;
|
|
15360
15373
|
type: zod.ZodEnum<{
|
|
@@ -20460,7 +20473,7 @@ declare const ASSET_SEARCH_RESULT_SCHEMA: zod.ZodObject<{
|
|
|
20460
20473
|
averageColor: zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>;
|
|
20461
20474
|
}, zod.core.$strip>>;
|
|
20462
20475
|
}, zod.core.$strip>;
|
|
20463
|
-
|
|
20476
|
+
sequence: zod.ZodNumber;
|
|
20464
20477
|
}, zod.core.$strip>;
|
|
20465
20478
|
score: zod.ZodNumber;
|
|
20466
20479
|
matchedFields: zod.ZodArray<zod.ZodEnum<{
|
|
@@ -35482,6 +35495,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35482
35495
|
permission: PermissionAction;
|
|
35483
35496
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35484
35497
|
enabled?: boolean;
|
|
35498
|
+
/**
|
|
35499
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35500
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35501
|
+
*/
|
|
35502
|
+
resource?: undefined;
|
|
35485
35503
|
fields: {
|
|
35486
35504
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35487
35505
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -35551,6 +35569,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35551
35569
|
permission: PermissionAction;
|
|
35552
35570
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35553
35571
|
enabled?: boolean;
|
|
35572
|
+
/**
|
|
35573
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35574
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35575
|
+
*/
|
|
35576
|
+
resource?: undefined;
|
|
35554
35577
|
fields: {
|
|
35555
35578
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35556
35579
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -35673,6 +35696,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35673
35696
|
permission: PermissionAction;
|
|
35674
35697
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35675
35698
|
enabled?: boolean;
|
|
35699
|
+
/**
|
|
35700
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35701
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35702
|
+
*/
|
|
35703
|
+
resource?: undefined;
|
|
35676
35704
|
fields: {
|
|
35677
35705
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35678
35706
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -35777,6 +35805,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35777
35805
|
permission: PermissionAction;
|
|
35778
35806
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35779
35807
|
enabled?: boolean;
|
|
35808
|
+
/**
|
|
35809
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35810
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35811
|
+
*/
|
|
35812
|
+
resource?: undefined;
|
|
35780
35813
|
fields: {
|
|
35781
35814
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35782
35815
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -35891,6 +35924,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
35891
35924
|
permission: PermissionAction;
|
|
35892
35925
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
35893
35926
|
enabled?: boolean;
|
|
35927
|
+
/**
|
|
35928
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
35929
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
35930
|
+
*/
|
|
35931
|
+
resource?: undefined;
|
|
35894
35932
|
fields: {
|
|
35895
35933
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
35896
35934
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36005,6 +36043,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36005
36043
|
permission: PermissionAction;
|
|
36006
36044
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36007
36045
|
enabled?: boolean;
|
|
36046
|
+
/**
|
|
36047
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36048
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36049
|
+
*/
|
|
36050
|
+
resource?: undefined;
|
|
36008
36051
|
fields: {
|
|
36009
36052
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36010
36053
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36119,6 +36162,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36119
36162
|
permission: PermissionAction;
|
|
36120
36163
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36121
36164
|
enabled?: boolean;
|
|
36165
|
+
/**
|
|
36166
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36167
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36168
|
+
*/
|
|
36169
|
+
resource?: undefined;
|
|
36122
36170
|
fields: {
|
|
36123
36171
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36124
36172
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36233,6 +36281,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36233
36281
|
permission: PermissionAction;
|
|
36234
36282
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36235
36283
|
enabled?: boolean;
|
|
36284
|
+
/**
|
|
36285
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36286
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36287
|
+
*/
|
|
36288
|
+
resource?: undefined;
|
|
36236
36289
|
fields: {
|
|
36237
36290
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36238
36291
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36347,6 +36400,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36347
36400
|
permission: PermissionAction;
|
|
36348
36401
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36349
36402
|
enabled?: boolean;
|
|
36403
|
+
/**
|
|
36404
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36405
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36406
|
+
*/
|
|
36407
|
+
resource?: undefined;
|
|
36350
36408
|
fields: {
|
|
36351
36409
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36352
36410
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36460,6 +36518,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36460
36518
|
permission: PermissionAction;
|
|
36461
36519
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36462
36520
|
enabled?: boolean;
|
|
36521
|
+
/**
|
|
36522
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36523
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36524
|
+
*/
|
|
36525
|
+
resource?: undefined;
|
|
36463
36526
|
fields: {
|
|
36464
36527
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36465
36528
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36532,6 +36595,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36532
36595
|
permission: PermissionAction;
|
|
36533
36596
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36534
36597
|
enabled?: boolean;
|
|
36598
|
+
/**
|
|
36599
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36600
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36601
|
+
*/
|
|
36602
|
+
resource?: undefined;
|
|
36535
36603
|
fields: {
|
|
36536
36604
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36537
36605
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36598,6 +36666,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36598
36666
|
permission: PermissionAction;
|
|
36599
36667
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36600
36668
|
enabled?: boolean;
|
|
36669
|
+
/**
|
|
36670
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36671
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36672
|
+
*/
|
|
36673
|
+
resource?: undefined;
|
|
36601
36674
|
fields: {
|
|
36602
36675
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36603
36676
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36667,6 +36740,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36667
36740
|
permission: PermissionAction;
|
|
36668
36741
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36669
36742
|
enabled?: boolean;
|
|
36743
|
+
/**
|
|
36744
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36745
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36746
|
+
*/
|
|
36747
|
+
resource?: undefined;
|
|
36670
36748
|
fields: {
|
|
36671
36749
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36672
36750
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36736,6 +36814,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36736
36814
|
permission: PermissionAction;
|
|
36737
36815
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36738
36816
|
enabled?: boolean;
|
|
36817
|
+
/**
|
|
36818
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36819
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36820
|
+
*/
|
|
36821
|
+
resource?: undefined;
|
|
36739
36822
|
fields: {
|
|
36740
36823
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36741
36824
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36802,6 +36885,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36802
36885
|
permission: PermissionAction;
|
|
36803
36886
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36804
36887
|
enabled?: boolean;
|
|
36888
|
+
/**
|
|
36889
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
36890
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
36891
|
+
*/
|
|
36892
|
+
resource?: undefined;
|
|
36805
36893
|
fields: {
|
|
36806
36894
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36807
36895
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -36922,6 +37010,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
36922
37010
|
permission: PermissionAction;
|
|
36923
37011
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
36924
37012
|
enabled?: boolean;
|
|
37013
|
+
/**
|
|
37014
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37015
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37016
|
+
*/
|
|
37017
|
+
resource?: undefined;
|
|
36925
37018
|
fields: {
|
|
36926
37019
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
36927
37020
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -37018,6 +37111,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37018
37111
|
permission: PermissionAction;
|
|
37019
37112
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37020
37113
|
enabled?: boolean;
|
|
37114
|
+
/**
|
|
37115
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37116
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37117
|
+
*/
|
|
37118
|
+
resource?: undefined;
|
|
37021
37119
|
fields: {
|
|
37022
37120
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
37023
37121
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -37105,6 +37203,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37105
37203
|
permission: PermissionAction;
|
|
37106
37204
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37107
37205
|
enabled?: boolean;
|
|
37206
|
+
/**
|
|
37207
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37208
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37209
|
+
*/
|
|
37210
|
+
resource?: undefined;
|
|
37108
37211
|
fields: {
|
|
37109
37212
|
assetName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
37110
37213
|
assetType: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
|
|
@@ -37208,6 +37311,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37208
37311
|
permission: PermissionAction;
|
|
37209
37312
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37210
37313
|
enabled?: boolean;
|
|
37314
|
+
/**
|
|
37315
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37316
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37317
|
+
*/
|
|
37318
|
+
resource?: undefined;
|
|
37211
37319
|
fields: {
|
|
37212
37320
|
limit: EventFieldDefinition<zod.ZodNumber>;
|
|
37213
37321
|
used: EventFieldDefinition<zod.ZodNumber>;
|
|
@@ -37261,6 +37369,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37261
37369
|
permission: PermissionAction;
|
|
37262
37370
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37263
37371
|
enabled?: boolean;
|
|
37372
|
+
/**
|
|
37373
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37374
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37375
|
+
*/
|
|
37376
|
+
resource?: undefined;
|
|
37264
37377
|
fields: {
|
|
37265
37378
|
reason: EventFieldDefinition<zod.ZodEnum<{
|
|
37266
37379
|
"payment-failed": "payment-failed";
|
|
@@ -37321,6 +37434,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37321
37434
|
permission: PermissionAction;
|
|
37322
37435
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37323
37436
|
enabled?: boolean;
|
|
37437
|
+
/**
|
|
37438
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37439
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37440
|
+
*/
|
|
37441
|
+
resource?: undefined;
|
|
37324
37442
|
fields: {
|
|
37325
37443
|
presetId: EventFieldDefinition<zod.ZodString>;
|
|
37326
37444
|
presetName: EventFieldDefinition<zod.ZodString>;
|
|
@@ -37374,6 +37492,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37374
37492
|
permission: PermissionAction;
|
|
37375
37493
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37376
37494
|
enabled?: boolean;
|
|
37495
|
+
/**
|
|
37496
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37497
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37498
|
+
*/
|
|
37499
|
+
resource?: "member" | undefined;
|
|
37377
37500
|
fields: {
|
|
37378
37501
|
memberUserId: EventFieldDefinition<zod.ZodString>;
|
|
37379
37502
|
memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37441,6 +37564,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37441
37564
|
permission: PermissionAction;
|
|
37442
37565
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37443
37566
|
enabled?: boolean;
|
|
37567
|
+
/**
|
|
37568
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37569
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37570
|
+
*/
|
|
37571
|
+
resource?: "member" | undefined;
|
|
37444
37572
|
fields: {
|
|
37445
37573
|
memberUserId: EventFieldDefinition<zod.ZodString>;
|
|
37446
37574
|
memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37508,6 +37636,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37508
37636
|
permission: PermissionAction;
|
|
37509
37637
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37510
37638
|
enabled?: boolean;
|
|
37639
|
+
/**
|
|
37640
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37641
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37642
|
+
*/
|
|
37643
|
+
resource?: "member" | undefined;
|
|
37511
37644
|
fields: {
|
|
37512
37645
|
memberUserId: EventFieldDefinition<zod.ZodString>;
|
|
37513
37646
|
memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37575,6 +37708,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37575
37708
|
permission: PermissionAction;
|
|
37576
37709
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37577
37710
|
enabled?: boolean;
|
|
37711
|
+
/**
|
|
37712
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37713
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37714
|
+
*/
|
|
37715
|
+
resource?: "member" | undefined;
|
|
37578
37716
|
fields: {
|
|
37579
37717
|
memberUserId: EventFieldDefinition<zod.ZodString>;
|
|
37580
37718
|
memberName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37659,6 +37797,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37659
37797
|
permission: PermissionAction;
|
|
37660
37798
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37661
37799
|
enabled?: boolean;
|
|
37800
|
+
/**
|
|
37801
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37802
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37803
|
+
*/
|
|
37804
|
+
resource?: undefined;
|
|
37662
37805
|
fields: {
|
|
37663
37806
|
inviteeEmail: EventFieldDefinition<zod.ZodString>;
|
|
37664
37807
|
role: EventFieldDefinition<zod.ZodEnum<{
|
|
@@ -37723,6 +37866,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37723
37866
|
permission: PermissionAction;
|
|
37724
37867
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37725
37868
|
enabled?: boolean;
|
|
37869
|
+
/**
|
|
37870
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37871
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37872
|
+
*/
|
|
37873
|
+
resource?: undefined;
|
|
37726
37874
|
fields: {
|
|
37727
37875
|
previousOrganisationId: EventFieldDefinition<zod.ZodString>;
|
|
37728
37876
|
previousOrganisationName: EventFieldDefinition<zod.ZodString>;
|
|
@@ -37794,6 +37942,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37794
37942
|
permission: PermissionAction;
|
|
37795
37943
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37796
37944
|
enabled?: boolean;
|
|
37945
|
+
/**
|
|
37946
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
37947
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
37948
|
+
*/
|
|
37949
|
+
resource?: "api-key" | undefined;
|
|
37797
37950
|
fields: {
|
|
37798
37951
|
keyId: EventFieldDefinition<zod.ZodString>;
|
|
37799
37952
|
keyName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37862,6 +38015,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37862
38015
|
permission: PermissionAction;
|
|
37863
38016
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37864
38017
|
enabled?: boolean;
|
|
38018
|
+
/**
|
|
38019
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38020
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38021
|
+
*/
|
|
38022
|
+
resource?: "api-key" | undefined;
|
|
37865
38023
|
fields: {
|
|
37866
38024
|
keyId: EventFieldDefinition<zod.ZodString>;
|
|
37867
38025
|
keyName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37915,6 +38073,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37915
38073
|
permission: PermissionAction;
|
|
37916
38074
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37917
38075
|
enabled?: boolean;
|
|
38076
|
+
/**
|
|
38077
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38078
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38079
|
+
*/
|
|
38080
|
+
resource?: "api-key" | undefined;
|
|
37918
38081
|
fields: {
|
|
37919
38082
|
keyId: EventFieldDefinition<zod.ZodString>;
|
|
37920
38083
|
keyName: EventFieldDefinition<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>;
|
|
@@ -37968,6 +38131,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
37968
38131
|
permission: PermissionAction;
|
|
37969
38132
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
37970
38133
|
enabled?: boolean;
|
|
38134
|
+
/**
|
|
38135
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38136
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38137
|
+
*/
|
|
38138
|
+
resource?: undefined;
|
|
37971
38139
|
fields: {
|
|
37972
38140
|
connectorId: EventFieldDefinition<zod.ZodString>;
|
|
37973
38141
|
connectorName: EventFieldDefinition<zod.ZodString>;
|
|
@@ -38037,6 +38205,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
38037
38205
|
permission: PermissionAction;
|
|
38038
38206
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
38039
38207
|
enabled?: boolean;
|
|
38208
|
+
/**
|
|
38209
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38210
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38211
|
+
*/
|
|
38212
|
+
resource?: undefined;
|
|
38040
38213
|
fields: {
|
|
38041
38214
|
appealId: EventFieldDefinition<zod.ZodString>;
|
|
38042
38215
|
subjectType: EventFieldDefinition<zod.ZodEnum<{
|
|
@@ -38100,6 +38273,11 @@ declare const EVENT_TYPE_INFO: {
|
|
|
38100
38273
|
permission: PermissionAction;
|
|
38101
38274
|
/** Types of unreleased features are left out of the published contract until enabled. */
|
|
38102
38275
|
enabled?: boolean;
|
|
38276
|
+
/**
|
|
38277
|
+
* The kind of resource other than an asset that events of this type are about: each is numbered
|
|
38278
|
+
* in that resource's sequence (`getEventResourceKind`). Asset events are about an asset.
|
|
38279
|
+
*/
|
|
38280
|
+
resource?: undefined;
|
|
38103
38281
|
fields: {
|
|
38104
38282
|
appealId: EventFieldDefinition<zod.ZodString>;
|
|
38105
38283
|
subjectType: EventFieldDefinition<zod.ZodEnum<{
|
|
@@ -38180,6 +38358,9 @@ type EventFact<TType extends EventType = EventType> = TType extends EventType ?
|
|
|
38180
38358
|
url?: string;
|
|
38181
38359
|
} : never;
|
|
38182
38360
|
type EventFacts<TType extends EventType = EventType> = EventFact<TType>[];
|
|
38361
|
+
/** The kinds of resource an event can be about. Each resource numbers its own events in sequence. */
|
|
38362
|
+
declare const EVENT_RESOURCE_KINDS: readonly ["asset", "member", "api-key"];
|
|
38363
|
+
type EventResourceKind = (typeof EVENT_RESOURCE_KINDS)[number];
|
|
38183
38364
|
declare const ACTOR_SCHEMA: zod.ZodObject<{
|
|
38184
38365
|
type: zod.ZodEnum<{
|
|
38185
38366
|
"api-key": "api-key";
|
|
@@ -38190,6 +38371,16 @@ declare const ACTOR_SCHEMA: zod.ZodObject<{
|
|
|
38190
38371
|
id: zod.ZodNullable<zod.ZodString>;
|
|
38191
38372
|
}, zod.core.$strict>;
|
|
38192
38373
|
type Actor = zod.infer<typeof ACTOR_SCHEMA>;
|
|
38374
|
+
declare const EVENT_RESOURCE_SCHEMA: zod.ZodObject<{
|
|
38375
|
+
kind: zod.ZodEnum<{
|
|
38376
|
+
"api-key": "api-key";
|
|
38377
|
+
asset: "asset";
|
|
38378
|
+
member: "member";
|
|
38379
|
+
}>;
|
|
38380
|
+
id: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
|
|
38381
|
+
sequence: zod.ZodNumber;
|
|
38382
|
+
}, zod.core.$strict>;
|
|
38383
|
+
type EventResource = zod.infer<typeof EVENT_RESOURCE_SCHEMA>;
|
|
38193
38384
|
/** An event as `GET /events` lists it and webhooks deliver it. */
|
|
38194
38385
|
declare const PUBLIC_EVENT_SCHEMA: zod.ZodObject<{
|
|
38195
38386
|
id: zod.ZodString;
|
|
@@ -38244,8 +38435,15 @@ declare const PUBLIC_EVENT_SCHEMA: zod.ZodObject<{
|
|
|
38244
38435
|
}>;
|
|
38245
38436
|
title: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
|
|
38246
38437
|
description: zod.ZodOptional<zod.ZodNullable<zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>>>;
|
|
38247
|
-
|
|
38248
|
-
|
|
38438
|
+
resource: zod.ZodNullable<zod.ZodObject<{
|
|
38439
|
+
kind: zod.ZodEnum<{
|
|
38440
|
+
"api-key": "api-key";
|
|
38441
|
+
asset: "asset";
|
|
38442
|
+
member: "member";
|
|
38443
|
+
}>;
|
|
38444
|
+
id: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
|
|
38445
|
+
sequence: zod.ZodNumber;
|
|
38446
|
+
}, zod.core.$strict>>;
|
|
38249
38447
|
facts: zod.ZodArray<zod.ZodObject<{
|
|
38250
38448
|
key: zod.ZodString;
|
|
38251
38449
|
value: zod.ZodUnknown & zod.ZodType<{} | null, unknown, zod.core.$ZodTypeInternals<{} | null, unknown>>;
|
|
@@ -43219,4 +43417,4 @@ interface ClassifyTextOptions extends Omit<SubmitAssetCommonOptions, "name" | "i
|
|
|
43219
43417
|
/** `folders.list` options. `sort` is `name` (the default) or `createdAt`, descending when prefixed with `-`. */
|
|
43220
43418
|
type ListFoldersOptions = GetFoldersQuery;
|
|
43221
43419
|
type FolderPage = GetFoldersResponse;
|
|
43222
|
-
export { FolderPage as $, UploadPresetSubmitAssetOptions as $t, CdnAssetLocation as A,
|
|
43420
|
+
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 };
|