@tinycloud/cli 1.5.1-beta.5 → 1.5.1-beta.7

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.
@@ -20252,8 +20252,13 @@ var requestSchema = external_exports.object({
20252
20252
  permissions: external_exports.array(permission).min(1),
20253
20253
  reason: external_exports.string().optional(),
20254
20254
  grantLifetimeSeconds: external_exports.number().int().positive(),
20255
- resultEncryptionPublicJwk: p256Jwk
20256
- }).strict();
20255
+ resultEncryptionPublicJwk: p256Jwk,
20256
+ /**
20257
+ * The lifetime the requester suggests approving, in seconds. Absent means the maximum, `grantLifetimeSeconds`. When present it is at most that
20258
+ * maximum; it has no upper bound of its own, and the approver may still choose less.
20259
+ */
20260
+ suggestedLifetimeSeconds: external_exports.number().int().positive().optional()
20261
+ }).strict().refine((request) => request.suggestedLifetimeSeconds === void 0 || request.suggestedLifetimeSeconds <= request.grantLifetimeSeconds);
20257
20262
  function parseApprovalRequest(value2, options = {}) {
20258
20263
  const parsed = requestSchema.safeParse(value2);
20259
20264
  if (!parsed.success) throw new LinkError("body_validation_failed", "invalid approval request");