Skip to content

TypeScript API / laikacms/storage / OwnedLockSchema

Variable: OwnedLockSchema ​

ts
const OwnedLockSchema: StandardSchemaV1<{
  acquiredAt: string;
  expiresAt: string;
  key: string;
  owner: {
     id: string;
     name: string;
  };
  token: string;
}, {
  acquiredAt: Utc;
  expiresAt: Utc;
  key: string;
  owner: {
     id: string;
     name: string;
  };
  token: string & Brand<"LockToken">;
}> & Struct<{
  acquiredAt: DateTimeUtcFromString;
  expiresAt: DateTimeUtcFromString;
  key: String;
  owner: Struct<{
     id: String;
     name: String;
  }>;
  token: brand<String, "LockToken">;
}>;

A lock as returned to the caller that acquired or refreshed it: the public Lock plus the bearer LockToken.

Released under the MIT License.