SignTransformOptions
type SignTransformOptions = { expiresInSeconds: number; nowSeconds?: number; tenantId?: number;};Defined in: packages/asset-client/src/transform.ts:600
Properties
Section titled “Properties”expiresInSeconds
Section titled “expiresInSeconds”expiresInSeconds: number;Defined in: packages/asset-client/src/transform.ts:606
Lifetime in seconds, 120 .. 604 800. Required — there is no “forever”
option, for the same reason signAccessUrl has none: a signed URL that
never expires is a public URL the moment someone forwards it.
nowSeconds?
Section titled “nowSeconds?”optional nowSeconds?: number;Defined in: packages/asset-client/src/transform.ts:614
Injectable clock, for tests that need a URL already dead on arrival.
tenantId?
Section titled “tenantId?”optional tenantId?: number;Defined in: packages/asset-client/src/transform.ts:612
The tenant this signature speaks for. Defaults to the process-global
(setTenantId, or a NitidaClient with tenantId) — the tenant is part
of the signed message, so it cannot be guessed from the asset.