apps 0.0.1-beta.66 → 0.0.1-beta.68

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.
@@ -2,6 +2,8 @@
2
2
  import { Schema, type Effect } from "effect";
3
3
  declare const CacheError_base: Schema.Class<CacheError, Schema.TaggedStruct<"CacheError", {
4
4
  readonly reason: Schema.Literals<readonly ["unavailable", "storage", "invalid", "capacity", "timeout"]>;
5
+ /** Which of `cacheLimits` the request exceeded, when one did. */
6
+ readonly limit: Schema.optionalKey<Schema.Literals<readonly ["keyBytes", "entryBytes", "batchBytes", "batchEntries", "totalBytes", "totalEntries"]>>;
5
7
  }>, import("effect/Cause").YieldableError>;
6
8
  /** Expected cache failures never include keys, values or upstream exception text. */
7
9
  export declare class CacheError extends CacheError_base {
@@ -56,3 +56,8 @@ export interface AppSqlStorage {
56
56
  export declare const reservedTablePrefix = "_executor_";
57
57
  /** Where an app keeps its migrations: `0001_create_notes.sql`, applied in number order. */
58
58
  export declare const migrationsDirectory = "migrations";
59
+ /**
60
+ * The most values one statement may bind. Durable Object SQLite sets `SQLITE_LIMIT_VARIABLE_NUMBER`
61
+ * to 100 on every host; `ctx.sql` checks it first so the error names the limit.
62
+ */
63
+ export declare const sqlBindingsLimit = 100;
@@ -1,7 +1,7 @@
1
1
  import { UpstreamError } from "../contracts/failure.js";
2
2
  /** Whether `bounded` shortened this message, so it may end partway through a secret. */
3
3
  export declare const isShortenedUpstream: (message: string) => boolean;
4
- /** The error a JSON error body states, if it uses JSON-RPC's or OAuth's error format. */
4
+ /** The error a JSON error body states, if it uses a nested error object or OAuth's format. */
5
5
  export declare const bodyUpstreamError: (json: unknown) => UpstreamError | undefined;
6
6
  /** The `error` and `error_description` of a Bearer challenge (RFC 6750, section 3). */
7
7
  export declare const challengeUpstreamError: (header: string | undefined) => UpstreamError | undefined;