@capxul/sdk 4.20.0-beta.35 → 4.20.0-beta.37

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.
@@ -4,7 +4,7 @@ import { Account, Address, Hex } from "viem";
4
4
  import { HttpClient } from "effect/http";
5
5
  import { OtlpExporter } from "effect/observability";
6
6
  //#region ../protocol/src/errors/codes.d.ts
7
- declare const CAPXUL_ERROR_CODES: readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"];
7
+ declare const CAPXUL_ERROR_CODES: readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"];
8
8
  type CapxulErrorCode = (typeof CAPXUL_ERROR_CODES)[number];
9
9
  /** The existing Organization authority refusal vocabulary. */
10
10
  declare const ROLE_PERMISSION_DENIED_REASONS: readonly ["over_cap", "daily_cap", "not_member", "disallowed_recipient", "condition_violation", "budget_exhausted"];
@@ -20,11 +20,13 @@ declare const EXPECTED_OPERATION_OUTCOMES: ReadonlySet<CapxulErrorCode>;
20
20
  //#endregion
21
21
  //#region ../protocol/src/errors/failure-modes.d.ts
22
22
  /**
23
- * Why an operation failed — the one flat vocabulary. The first four are the
24
- * auth/provider diagnoses that predate this file. The rest name the chain
25
- * path. `FailureMode` is derived from this list so a runtime membership check
26
- * (the SDK's `$exception` projection, the observability schema) and the type
27
- * can never drift apart.
23
+ * Why an operation failed — the one flat vocabulary. The first five are the
24
+ * auth and signer diagnoses that predate this file. The next eleven name the
25
+ * chain path. `refused` and `defect` name a provider refusal and a Capxul
26
+ * fault on any path (ADR-0039 D2). `FailureMode` is derived from this list so
27
+ * a runtime membership check (the SDK's `$exception` projection, the
28
+ * observability schema) and the type can never drift apart. Every word has a
29
+ * failure class in `classes.ts`.
28
30
  */
29
31
  declare const FAILURE_MODES: readonly [
30
32
  /** OTP cookies live on `localhost:PORT` but OpenFort hits the Convex host. */
@@ -41,7 +43,12 @@ declare const FAILURE_MODES: readonly [
41
43
  "rate-limited",
42
44
  /** No answer inside the budget. Retryable. */
43
45
  "timeout",
44
- /** HTTP 5xx, a connection failure, or a malformed envelope. Retryable. */
46
+ /**
47
+ * HTTP 5xx, a connection failure, an answer cut off in transit, or a chain
48
+ * RPC answer of the wrong shape (the next upstream may answer it). Retryable.
49
+ * A complete HTTP provider answer Capxul cannot use is
50
+ * `PROVIDER_RESPONSE_INVALID`, with no mode.
51
+ */
45
52
  "upstream-down",
46
53
  /** Simulation or execution reverted; `chain.revert` names it when decodable. */
47
54
  "revert",
@@ -59,6 +66,10 @@ declare const FAILURE_MODES: readonly [
59
66
  "bad-request",
60
67
  /** The node does not serve the method (JSON-RPC -32601). The next upstream may. */
61
68
  "method-unsupported",
69
+ /** The provider understood the request and refused it: an account, permission or policy refusal. */
70
+ "refused",
71
+ /** A Capxul bug or misconfiguration: Capxul's own code or settings failed. */
72
+ "defect",
62
73
  /** No cause could be determined. */
63
74
  "unknown"];
64
75
  type FailureMode = (typeof FAILURE_MODES)[number];
@@ -212,6 +223,98 @@ type NetworkErrorOptions = {
212
223
  readonly ms_since_browser_event?: number;
213
224
  };
214
225
  //#endregion
226
+ //#region ../protocol/src/errors/provider-evidence.d.ts
227
+ /**
228
+ * The providers a failure can name: Capxul's integrations and the ports the
229
+ * SDK and the backend call. Closed, so `details.provider` is a known word and
230
+ * a projection with no free text can still send it (ADR-0039 D6).
231
+ */
232
+ declare const PROVIDERS: readonly ["account-abstraction", "agent-exchange", "auth-cache", "auth-client", "better-auth", "bootstrap", "bridge", "browserBridge", "capxul-backend", "chain", "chain-evidence", "chain-rpc", "clock", "convex", "convex-storage", "credentials", "indexer", "invoice", "openfort", "openfort.shield", "ponder", "posthog", "resend", "sdk", "sdk-react", "signer", "verification"];
233
+ type ProviderName = (typeof PROVIDERS)[number];
234
+ /** What is wrong with the part of a provider's answer that `field` names (ADR-0039 D1). */
235
+ declare const PROVIDER_PROBLEMS: readonly ["missing", "invalid", "conflict"];
236
+ type ProviderProblem = (typeof PROVIDER_PROBLEMS)[number];
237
+ /**
238
+ * The modes of a provider failure with no usable answer: none arrived, or
239
+ * Capxul diagnosed what in the caller's environment kept the provider from
240
+ * answering (the five auth and signer diagnoses). The mode is the evidence.
241
+ * Every other mode names a refusal, which needs the status that refused, so
242
+ * each mode belongs to exactly one provider factory.
243
+ */
244
+ declare const PROVIDER_UNAVAILABLE_MODES: readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "defect", "unknown"];
245
+ type ProviderUnavailableMode = (typeof PROVIDER_UNAVAILABLE_MODES)[number];
246
+ /** The modes of a provider that understood the request and refused it. */
247
+ type ProviderRefusalMode = Exclude<FailureMode, ProviderUnavailableMode>;
248
+ /**
249
+ * What was caught, never a sentence about it: a string does not compile
250
+ * (ADR-0039 guard T1). A value typed `unknown` passes, because it is the
251
+ * caught value itself.
252
+ */
253
+ type Caught<C> = C extends string ? never : C;
254
+ /**
255
+ * The evidence a provider failure names (ADR-0039 D1). Each fact becomes the
256
+ * `details` key of the same name. `operation` is the provider's own operation,
257
+ * such as `virtualAccountHistory` or `eth_call`.
258
+ */
259
+ interface ProviderEvidence {
260
+ readonly provider: ProviderName;
261
+ readonly operation: string;
262
+ readonly httpStatus?: number | undefined;
263
+ /** The provider's own error code, such as Bridge's `code`. */
264
+ readonly providerCode?: string | undefined;
265
+ /** The request or answer field the failure names. */
266
+ readonly field?: string | undefined;
267
+ /** The provider's id for this request, for its support. */
268
+ readonly requestId?: string | undefined;
269
+ /** More evidence for an operator. The wire masks every credential in it. */
270
+ readonly details?: Readonly<Record<string, unknown>> | undefined;
271
+ }
272
+ /**
273
+ * A refusal names what refused: the HTTP status, the chain cause that carries
274
+ * it, or, when the answer kept no status, the mode Capxul read from the
275
+ * provider's error class or code (Openfort's `AuthorizationError` has none).
276
+ */
277
+ type RefusalEvidence = {
278
+ readonly httpStatus: number;
279
+ readonly chain?: ChainCause | undefined;
280
+ } | {
281
+ readonly chain: ChainCause;
282
+ readonly httpStatus?: undefined;
283
+ } | {
284
+ readonly mode: ProviderRefusalMode;
285
+ readonly httpStatus?: undefined;
286
+ readonly chain?: undefined;
287
+ };
288
+ /** `Errors.providerUnavailable`: no usable answer arrived. */
289
+ type ProviderUnavailableInput<C> = ProviderEvidence & {
290
+ readonly mode: ProviderUnavailableMode;
291
+ readonly chain?: ChainCause | undefined;
292
+ readonly cause?: Caught<C>;
293
+ };
294
+ /** `Errors.providerRefused`: the provider understood the request and refused it. */
295
+ type ProviderRefusalInput<C> = Omit<ProviderEvidence, "httpStatus"> & RefusalEvidence & {
296
+ readonly mode?: ProviderRefusalMode | undefined;
297
+ readonly cause?: Caught<C>;
298
+ };
299
+ /** `Errors.providerResponseInvalid`: the provider answered, and Capxul cannot use the answer. */
300
+ type ProviderResponseInvalidInput<C> = ProviderEvidence & {
301
+ readonly field: string;
302
+ readonly problem: ProviderProblem;
303
+ readonly reason?: string | undefined;
304
+ readonly cause?: Caught<C>;
305
+ };
306
+ /**
307
+ * `Errors.providerRefusedInput`: the provider understood the request and
308
+ * refused the person's own input (ADR-0039 D2). `field` names that input in
309
+ * Capxul's words, and `reason` is the provider's own reason for it.
310
+ */
311
+ type ProviderInputRefusalInput<C> = Omit<ProviderEvidence, "httpStatus" | "field"> & {
312
+ readonly httpStatus: number;
313
+ readonly field: string;
314
+ readonly reason: string;
315
+ readonly cause?: Caught<C>;
316
+ };
317
+ //#endregion
215
318
  //#region ../protocol/src/errors/factories.d.ts
216
319
  declare const Errors: {
217
320
  readonly notAuthenticated: (message?: string, opts?: {
@@ -239,27 +342,48 @@ declare const Errors: {
239
342
  readonly expectedOwner: string;
240
343
  readonly signerAddress: string;
241
344
  }) => CapxulError<"ACCOUNT_CLAIMED_BY_OTHER_SIGNER">;
242
- readonly providerError: (provider: string, operation: string, cause: unknown, opts?: {
243
- readonly failure_mode?: FailureMode;
244
- readonly httpStatus?: number;
245
- /** Extra evidence for the operator (response body, edge error code). */
246
- readonly details?: Readonly<Record<string, unknown>>;
247
- /** The structured chain-path cause; sets `mode` and `details.failure_mode` too. */
248
- readonly chain?: ChainCause;
249
- }) => CapxulError<"PROVIDER_ERROR">;
345
+ /**
346
+ * No usable answer came from the provider. `mode` says why: `timeout`,
347
+ * `upstream-down` or `rate-limited` when the provider is at fault (retry
348
+ * later); `signer-not-ready` or `no-secure-context` when the local signer
349
+ * cannot answer; `defect` when Capxul's own side failed before an answer
350
+ * could be used; `unknown` when nothing says. A chain cause, when given,
351
+ * names the same mode with its upstream evidence.
352
+ */
353
+ readonly providerUnavailable: <C = never>(input: ProviderUnavailableInput<C>) => CapxulError<"PROVIDER_ERROR">;
354
+ /**
355
+ * The provider understood the request and refused it. The HTTP status is
356
+ * required, or the chain cause that carries the refusal. `mode` says how,
357
+ * and is `refused` unless the answer says more (`unauthorized`,
358
+ * `forbidden`, `bad-request`, `revert`, ...).
359
+ */
360
+ readonly providerRefused: <C = never>(input: ProviderRefusalInput<C>) => CapxulError<"PROVIDER_ERROR">;
361
+ /**
362
+ * The provider answered, but Capxul cannot use its answer: `field` names
363
+ * the part, and `problem` says what is wrong with it (`missing`, `invalid`
364
+ * or `conflict`). `reason` adds the specific words. Distinct from
365
+ * `PROVIDER_ERROR`, where no usable answer arrived or the provider refused.
366
+ */
367
+ readonly providerResponseInvalid: <C = never>(input: ProviderResponseInvalidInput<C>) => CapxulError<"PROVIDER_RESPONSE_INVALID">;
368
+ /**
369
+ * The provider understood the request and refused the person's own input,
370
+ * such as an amount below its minimum: `INVALID_INPUT`, so the caller acts
371
+ * (ADR-0039 D2). `field` names the input as Capxul's caller knows it, and
372
+ * `reason` is the provider's reason, which the person reads. The status that
373
+ * refused is required. The field never sits before the colon, as in
374
+ * `invalidInput` (CAP-441).
375
+ */
376
+ readonly providerRefusedInput: <C = never>(input: ProviderInputRefusalInput<C>) => CapxulError<"INVALID_INPUT">;
250
377
  readonly capabilityUnavailable: (provider: string, operation: string) => CapxulError<"CAPABILITY_UNAVAILABLE">;
251
- readonly invalidInput: (field: string, reason: string) => CapxulError<"INVALID_INPUT">;
252
- readonly envMissing: (name: string) => CapxulError<"ENV_MISSING">;
253
- readonly notImplemented: (domain: string, method: string) => CapxulError<"NOT_IMPLEMENTED">;
254
378
  /**
255
- * Sibling factory to {@link Errors.providerError} for the per-state timeout
256
- * path in flows. Same `PROVIDER_ERROR` code as
257
- * `providerError`, plus a `details.reason: "timeout"` discriminator so
258
- * downstream observers can distinguish failure modes without parsing the
259
- * message string. The redacted message names the timeout budget; the
260
- * native `cause` carries the same information for `reportError` fidelity.
379
+ * The caller's input is wrong: `field` names it. `cause` is what refused it, such as a decode failure.
380
+ * The field never sits before the colon: the prose mask reads `signature:` as a credential label
381
+ * and would cut the next word on every surface that masks the text again (CAP-441).
261
382
  */
262
- readonly providerTimeout: (provider: string, operation: string, timeoutMs: number) => CapxulError<"PROVIDER_ERROR">;
383
+ readonly invalidInput: <C = never>(field: string, reason: string, cause?: Caught<C>) => CapxulError<"INVALID_INPUT">;
384
+ /** `cause` is what refused the value, when it is set but unusable. */
385
+ readonly envMissing: <C = never>(name: string, cause?: Caught<C>) => CapxulError<"ENV_MISSING">;
386
+ readonly notImplemented: (domain: string, method: string) => CapxulError<"NOT_IMPLEMENTED">;
263
387
  readonly verificationRequired: (details: VerificationRequiredDetails) => CapxulError<"VERIFICATION_REQUIRED">;
264
388
  readonly insufficientBalance: (asset: string, available: string, required: string) => CapxulError<"INSUFFICIENT_BALANCE">;
265
389
  readonly invalidRecipient: (reason: string) => CapxulError<"INVALID_RECIPIENT">;
@@ -289,33 +413,34 @@ declare const Errors: {
289
413
  * Roles condition violation) from an inconclusive infra failure. A confirmed
290
414
  * revert is the ONLY mode the org spend port may map to a roles denial.
291
415
  */
292
- readonly transactionFailed: (operation: string, cause?: unknown, extra?: {
416
+ readonly transactionFailed: <C = never>(operation: string, cause?: Caught<C>, extra?: {
293
417
  readonly reason?: string;
418
+ readonly userOpHash?: string;
294
419
  }) => CapxulError<"TRANSACTION_FAILED">;
295
420
  readonly rateLimited: (details?: {
296
421
  readonly retryAfterMs?: number;
297
422
  readonly resource?: string;
298
423
  }) => CapxulError<"RATE_LIMITED">;
299
- readonly networkError: (operation: string, cause?: unknown, opts?: NetworkErrorOptions) => CapxulError<"NETWORK_ERROR">;
300
- readonly unknown: (cause?: unknown) => CapxulError<"UNKNOWN">;
424
+ readonly networkError: <C = never>(operation: string, cause?: Caught<C>, opts?: NetworkErrorOptions) => CapxulError<"NETWORK_ERROR">;
425
+ readonly unknown: <C = never>(cause?: Caught<C>) => CapxulError<"UNKNOWN">;
301
426
  readonly otpExpired: (details?: {
302
427
  readonly email?: string;
303
428
  readonly expiredAt?: number;
304
429
  }) => CapxulError<"OTP_EXPIRED">;
305
- readonly signerRejected: (details: {
430
+ readonly signerRejected: <C = never>(details: {
306
431
  readonly source: SignerSource;
307
432
  readonly reason?: string;
308
- readonly cause?: unknown;
433
+ readonly cause?: Caught<C>;
309
434
  }) => CapxulError<"SIGNER_REJECTED">;
310
435
  readonly superseded: (details: {
311
436
  readonly operation: string;
312
437
  readonly reason: string;
313
438
  readonly executionId?: string;
314
439
  }) => CapxulError<"SUPERSEDED">;
315
- readonly cancelled: (details?: {
440
+ readonly cancelled: <C = never>(details?: {
316
441
  readonly operation?: string;
317
442
  readonly reason?: string;
318
- }) => CapxulError<"CANCELLED">;
443
+ }, cause?: Caught<C>) => CapxulError<"CANCELLED">;
319
444
  /**
320
445
  * Method called from a flow state where its precondition fails (TA16). The
321
446
  * SDK's method API short-circuits with this error before driving the
@@ -332,16 +457,47 @@ declare const Errors: {
332
457
  }) => CapxulError<"WRONG_STATE">;
333
458
  };
334
459
  //#endregion
460
+ //#region ../protocol/src/errors/classes.d.ts
461
+ /**
462
+ * Who acts on a failure (ADR-0039 D2). A class is derived from code and mode
463
+ * by the two tables below and is never stored, so it cannot disagree with
464
+ * them. No layer rewrites it (ADR-0023 R10).
465
+ */
466
+ declare const FAILURE_CLASSES: readonly [
467
+ /** The caller's request or environment is wrong. The caller (the person or the calling app) acts. */
468
+ "input",
469
+ /** The request is valid; the current state refuses it. The person or another party acts after a re-read, or waits. */
470
+ "state",
471
+ /** No usable answer arrived (timeout, 5xx, rate limit). Nobody acts now: retry later. Operations act if it persists. */
472
+ "provider-unavailable",
473
+ /** The provider understood the request and refused it. Capxul operations act: account, permission or policy. */
474
+ "provider-refused",
475
+ /** The provider answered; Capxul could not use it. Capxul engineering acts: the parser or a provider change. */
476
+ "provider-answer",
477
+ /** A Capxul bug or misconfiguration, or no known cause. Capxul engineering acts. */
478
+ "defect"];
479
+ type FailureClass = (typeof FAILURE_CLASSES)[number];
480
+ /**
481
+ * Who acts on this failure. A fixed class wins over the mode; a catch-all
482
+ * code takes the class of its mode, and a catch-all with no mode is a defect,
483
+ * because nothing classified it. Total on any value: a code or mode outside
484
+ * the vocabulary (a hand-built object, a newer peer) is a defect too.
485
+ */
486
+ declare function failureClass(failure: {
487
+ readonly code: CapxulErrorCode;
488
+ readonly mode?: FailureMode | undefined;
489
+ }): FailureClass;
490
+ //#endregion
335
491
  //#region ../protocol/src/errors/schema.d.ts
336
492
  declare const SerializedCapxulErrorSchema: Schema.Struct<{
337
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
493
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
338
494
  readonly message: Schema.String;
339
495
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
340
496
  readonly correlationId: Schema.optionalKey<Schema.String>;
341
497
  readonly layer: Schema.optionalKey<Schema.String>;
342
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
498
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
343
499
  readonly chain: Schema.optionalKey<Schema.Struct<{
344
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
500
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
345
501
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
346
502
  readonly method: Schema.String;
347
503
  readonly retryable: Schema.Boolean;
@@ -355,7 +511,7 @@ declare const SerializedCapxulErrorSchema: Schema.Struct<{
355
511
  readonly providerMessage: Schema.optionalKey<Schema.String>;
356
512
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
357
513
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
358
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
514
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
359
515
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
360
516
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
361
517
  readonly durationMs: Schema.Finite;
@@ -580,7 +736,15 @@ type OperationError<O extends Operation> = O["errors"][number];
580
736
  * through the SDK can return any of them.
581
737
  */
582
738
  declare const CALLER_SIDE: readonly ["NETWORK_ERROR", "CANCELLED", "UNKNOWN", "NOT_IMPLEMENTED", "CAPABILITY_UNAVAILABLE"];
583
- type CallerSideCode = (typeof CALLER_SIDE)[number];
739
+ /**
740
+ * Why a call ran signed out when the auth provider gave no token for the
741
+ * session (CAP-404): `PROVIDER_ERROR` or `PROVIDER_RESPONSE_INVALID`, naming
742
+ * the provider and its operation, or `RATE_LIMITED`. A call through the SDK can
743
+ * return any of them. The backend's own failure with one of these codes still
744
+ * needs its row to declare it.
745
+ */
746
+ declare const TOKEN_FAILURES: readonly ["PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "RATE_LIMITED"];
747
+ type CallerSideCode = (typeof CALLER_SIDE)[number] | (typeof TOKEN_FAILURES)[number];
584
748
  /** Every code a caller of this operation can receive: the row's, plus the caller side's. */
585
749
  type CallError<O extends Operation> = OperationError<O> | CallerSideCode;
586
750
  type Spec<Input extends WireInput, Output extends WireSchema, Code extends CapxulErrorCode> = {
@@ -780,6 +944,11 @@ interface SdkFailureDetail {
780
944
  readonly navigator_online?: boolean;
781
945
  readonly last_browser_event?: string;
782
946
  readonly ms_since_browser_event?: number;
947
+ /**
948
+ * CAP-387: how long a redacted backend refusal ran, in whole milliseconds,
949
+ * as the SDK measured it. Evidence only: it never sets the code or the mode.
950
+ */
951
+ readonly elapsed_ms?: number;
783
952
  /** ADR-0023 R7: the chain cause, flat, same keys as every other producer. */
784
953
  readonly chain_upstream?: string;
785
954
  readonly chain_method?: string;
@@ -917,6 +1086,12 @@ declare class ConvexCallError extends ConvexCallError_base<{
917
1086
  readonly cause: unknown;
918
1087
  readonly details?: CapxulErrorDetails;
919
1088
  readonly transport?: ConvexTransportFailure;
1089
+ /**
1090
+ * The call ran signed out because the auth provider failed to give the
1091
+ * session's token, and `publicError` is that failure, not the backend's
1092
+ * refusal (CAP-404).
1093
+ */
1094
+ readonly tokenFailure?: true;
920
1095
  }> {}
921
1096
  interface ConvexCallPort {
922
1097
  query<TArgs extends Record<string, unknown>, TOutput>(fn: FunctionReference<"query", "public", TArgs, TOutput>, args: TArgs, options?: {
@@ -1566,7 +1741,7 @@ declare const claims: {
1566
1741
  readonly deployedAt: Schema.NullOr<Schema.Finite>;
1567
1742
  readonly claimedAt: Schema.NullOr<Schema.Finite>;
1568
1743
  readonly createdAt: Schema.Finite;
1569
- }>, "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "UNKNOWN" | "WRONG_STATE">;
1744
+ }>, "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "UNKNOWN" | "WRONG_STATE">;
1570
1745
  };
1571
1746
  declare const balances: {
1572
1747
  /** Every settlement asset's raw balance in the caller's personal Safe on this chain. */
@@ -1593,7 +1768,7 @@ declare const grants: {
1593
1768
  readonly rawAmount: Schema.String;
1594
1769
  }>, Schema.Struct<{
1595
1770
  readonly txHash: Schema.String;
1596
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "SMART_ACCOUNT_MISSING" | "TRANSACTION_FAILED" | "UNKNOWN" | "WRONG_STATE">;
1771
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "SMART_ACCOUNT_MISSING" | "TRANSACTION_FAILED" | "UNKNOWN" | "WRONG_STATE">;
1597
1772
  };
1598
1773
  /**
1599
1774
  * A prepared money action waits here for the person to sign it with their own
@@ -1637,7 +1812,7 @@ declare const approvals: {
1637
1812
  readonly explorerUrl: Schema.String;
1638
1813
  }>;
1639
1814
  readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
1640
- readonly code: Schema.Literal<"RECIPIENT_ON_CAPXUL">;
1815
+ readonly code: Schema.String;
1641
1816
  readonly message: Schema.String;
1642
1817
  }>>>;
1643
1818
  }>;
@@ -1712,7 +1887,7 @@ declare const approvals: {
1712
1887
  readonly explorerUrl: Schema.String;
1713
1888
  }>;
1714
1889
  readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
1715
- readonly code: Schema.Literal<"RECIPIENT_ON_CAPXUL">;
1890
+ readonly code: Schema.String;
1716
1891
  readonly message: Schema.String;
1717
1892
  }>>>;
1718
1893
  }>;
@@ -1788,7 +1963,7 @@ declare const approvals: {
1788
1963
  readonly explorerUrl: Schema.String;
1789
1964
  }>;
1790
1965
  readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
1791
- readonly code: Schema.Literal<"RECIPIENT_ON_CAPXUL">;
1966
+ readonly code: Schema.String;
1792
1967
  readonly message: Schema.String;
1793
1968
  }>>>;
1794
1969
  }>;
@@ -1865,7 +2040,7 @@ declare const approvals: {
1865
2040
  readonly explorerUrl: Schema.String;
1866
2041
  }>;
1867
2042
  readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
1868
- readonly code: Schema.Literal<"RECIPIENT_ON_CAPXUL">;
2043
+ readonly code: Schema.String;
1869
2044
  readonly message: Schema.String;
1870
2045
  }>>>;
1871
2046
  }>;
@@ -1944,7 +2119,7 @@ declare const approvals: {
1944
2119
  readonly explorerUrl: Schema.String;
1945
2120
  }>;
1946
2121
  readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
1947
- readonly code: Schema.Literal<"RECIPIENT_ON_CAPXUL">;
2122
+ readonly code: Schema.String;
1948
2123
  readonly message: Schema.String;
1949
2124
  }>>>;
1950
2125
  }>;
@@ -2019,7 +2194,7 @@ declare const approvals: {
2019
2194
  readonly explorerUrl: Schema.String;
2020
2195
  }>;
2021
2196
  readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
2022
- readonly code: Schema.Literal<"RECIPIENT_ON_CAPXUL">;
2197
+ readonly code: Schema.String;
2023
2198
  readonly message: Schema.String;
2024
2199
  }>>>;
2025
2200
  }>;
@@ -2095,7 +2270,7 @@ declare const approvals: {
2095
2270
  readonly explorerUrl: Schema.String;
2096
2271
  }>;
2097
2272
  readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
2098
- readonly code: Schema.Literal<"RECIPIENT_ON_CAPXUL">;
2273
+ readonly code: Schema.String;
2099
2274
  readonly message: Schema.String;
2100
2275
  }>>>;
2101
2276
  }>;
@@ -2404,7 +2579,7 @@ declare const bankDetails: {
2404
2579
  readonly developerFeePercent: Schema.optionalKey<Schema.String>;
2405
2580
  readonly minimumDeposit: Schema.optionalKey<Schema.String>;
2406
2581
  readonly notice: Schema.optionalKey<Schema.String>;
2407
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
2582
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
2408
2583
  settle: Operation<"action", "banking.bankDetails.settle", Schema.Struct<{
2409
2584
  readonly actor: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2410
2585
  readonly kind: Schema.Literal<"account">;
@@ -2438,7 +2613,7 @@ declare const bankDetails: {
2438
2613
  readonly developerFeePercent: Schema.optionalKey<Schema.String>;
2439
2614
  readonly minimumDeposit: Schema.optionalKey<Schema.String>;
2440
2615
  readonly notice: Schema.optionalKey<Schema.String>;
2441
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
2616
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
2442
2617
  deactivate: Operation<"action", "banking.bankDetails.deactivate", Schema.Struct<{
2443
2618
  actor: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2444
2619
  readonly kind: Schema.Literal<"account">;
@@ -2471,7 +2646,7 @@ declare const bankDetails: {
2471
2646
  readonly developerFeePercent: Schema.optionalKey<Schema.String>;
2472
2647
  readonly minimumDeposit: Schema.optionalKey<Schema.String>;
2473
2648
  readonly notice: Schema.optionalKey<Schema.String>;
2474
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
2649
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
2475
2650
  reactivate: Operation<"action", "banking.bankDetails.reactivate", Schema.Struct<{
2476
2651
  actor: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2477
2652
  readonly kind: Schema.Literal<"account">;
@@ -2504,7 +2679,7 @@ declare const bankDetails: {
2504
2679
  readonly developerFeePercent: Schema.optionalKey<Schema.String>;
2505
2680
  readonly minimumDeposit: Schema.optionalKey<Schema.String>;
2506
2681
  readonly notice: Schema.optionalKey<Schema.String>;
2507
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
2682
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
2508
2683
  };
2509
2684
  declare const deposits: {
2510
2685
  list: Operation<"query", "banking.deposits.list", Schema.Struct<{
@@ -3965,14 +4140,14 @@ declare const workspaces: {
3965
4140
  readonly issue: Schema.NullOr<Schema.Struct<{
3966
4141
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
3967
4142
  readonly error: Schema.optionalKey<Schema.Struct<{
3968
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4143
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
3969
4144
  readonly message: Schema.String;
3970
4145
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
3971
4146
  readonly correlationId: Schema.optionalKey<Schema.String>;
3972
4147
  readonly layer: Schema.optionalKey<Schema.String>;
3973
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
4148
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
3974
4149
  readonly chain: Schema.optionalKey<Schema.Struct<{
3975
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4150
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
3976
4151
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
3977
4152
  readonly method: Schema.String;
3978
4153
  readonly retryable: Schema.Boolean;
@@ -3986,7 +4161,7 @@ declare const workspaces: {
3986
4161
  readonly providerMessage: Schema.optionalKey<Schema.String>;
3987
4162
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
3988
4163
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
3989
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4164
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
3990
4165
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
3991
4166
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
3992
4167
  readonly durationMs: Schema.Finite;
@@ -4002,14 +4177,14 @@ declare const workspaces: {
4002
4177
  readonly lastSendIssue: Schema.NullOr<Schema.Struct<{
4003
4178
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
4004
4179
  readonly error: Schema.optionalKey<Schema.Struct<{
4005
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4180
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4006
4181
  readonly message: Schema.String;
4007
4182
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
4008
4183
  readonly correlationId: Schema.optionalKey<Schema.String>;
4009
4184
  readonly layer: Schema.optionalKey<Schema.String>;
4010
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
4185
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
4011
4186
  readonly chain: Schema.optionalKey<Schema.Struct<{
4012
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4187
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4013
4188
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4014
4189
  readonly method: Schema.String;
4015
4190
  readonly retryable: Schema.Boolean;
@@ -4023,7 +4198,7 @@ declare const workspaces: {
4023
4198
  readonly providerMessage: Schema.optionalKey<Schema.String>;
4024
4199
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4025
4200
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4026
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4201
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4027
4202
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
4028
4203
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
4029
4204
  readonly durationMs: Schema.Finite;
@@ -4257,14 +4432,14 @@ declare const setups: {
4257
4432
  readonly issue: Schema.NullOr<Schema.Struct<{
4258
4433
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
4259
4434
  readonly error: Schema.optionalKey<Schema.Struct<{
4260
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4435
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4261
4436
  readonly message: Schema.String;
4262
4437
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
4263
4438
  readonly correlationId: Schema.optionalKey<Schema.String>;
4264
4439
  readonly layer: Schema.optionalKey<Schema.String>;
4265
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
4440
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
4266
4441
  readonly chain: Schema.optionalKey<Schema.Struct<{
4267
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4442
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4268
4443
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4269
4444
  readonly method: Schema.String;
4270
4445
  readonly retryable: Schema.Boolean;
@@ -4278,7 +4453,7 @@ declare const setups: {
4278
4453
  readonly providerMessage: Schema.optionalKey<Schema.String>;
4279
4454
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4280
4455
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4281
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4456
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4282
4457
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
4283
4458
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
4284
4459
  readonly durationMs: Schema.Finite;
@@ -4294,14 +4469,14 @@ declare const setups: {
4294
4469
  readonly lastSendIssue: Schema.NullOr<Schema.Struct<{
4295
4470
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
4296
4471
  readonly error: Schema.optionalKey<Schema.Struct<{
4297
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4472
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4298
4473
  readonly message: Schema.String;
4299
4474
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
4300
4475
  readonly correlationId: Schema.optionalKey<Schema.String>;
4301
4476
  readonly layer: Schema.optionalKey<Schema.String>;
4302
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
4477
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
4303
4478
  readonly chain: Schema.optionalKey<Schema.Struct<{
4304
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4479
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4305
4480
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4306
4481
  readonly method: Schema.String;
4307
4482
  readonly retryable: Schema.Boolean;
@@ -4315,7 +4490,7 @@ declare const setups: {
4315
4490
  readonly providerMessage: Schema.optionalKey<Schema.String>;
4316
4491
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4317
4492
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4318
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4493
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4319
4494
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
4320
4495
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
4321
4496
  readonly durationMs: Schema.Finite;
@@ -4344,14 +4519,14 @@ declare const setups: {
4344
4519
  readonly issue: Schema.NullOr<Schema.Struct<{
4345
4520
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
4346
4521
  readonly error: Schema.optionalKey<Schema.Struct<{
4347
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4522
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4348
4523
  readonly message: Schema.String;
4349
4524
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
4350
4525
  readonly correlationId: Schema.optionalKey<Schema.String>;
4351
4526
  readonly layer: Schema.optionalKey<Schema.String>;
4352
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
4527
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
4353
4528
  readonly chain: Schema.optionalKey<Schema.Struct<{
4354
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4529
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4355
4530
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4356
4531
  readonly method: Schema.String;
4357
4532
  readonly retryable: Schema.Boolean;
@@ -4365,7 +4540,7 @@ declare const setups: {
4365
4540
  readonly providerMessage: Schema.optionalKey<Schema.String>;
4366
4541
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4367
4542
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4368
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4543
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4369
4544
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
4370
4545
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
4371
4546
  readonly durationMs: Schema.Finite;
@@ -4381,14 +4556,14 @@ declare const setups: {
4381
4556
  readonly lastSendIssue: Schema.NullOr<Schema.Struct<{
4382
4557
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
4383
4558
  readonly error: Schema.optionalKey<Schema.Struct<{
4384
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4559
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4385
4560
  readonly message: Schema.String;
4386
4561
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
4387
4562
  readonly correlationId: Schema.optionalKey<Schema.String>;
4388
4563
  readonly layer: Schema.optionalKey<Schema.String>;
4389
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
4564
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
4390
4565
  readonly chain: Schema.optionalKey<Schema.Struct<{
4391
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4566
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4392
4567
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4393
4568
  readonly method: Schema.String;
4394
4569
  readonly retryable: Schema.Boolean;
@@ -4402,7 +4577,7 @@ declare const setups: {
4402
4577
  readonly providerMessage: Schema.optionalKey<Schema.String>;
4403
4578
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4404
4579
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4405
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4580
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4406
4581
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
4407
4582
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
4408
4583
  readonly durationMs: Schema.Finite;
@@ -4458,14 +4633,14 @@ declare const setups: {
4458
4633
  readonly issue: Schema.NullOr<Schema.Struct<{
4459
4634
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
4460
4635
  readonly error: Schema.optionalKey<Schema.Struct<{
4461
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4636
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4462
4637
  readonly message: Schema.String;
4463
4638
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
4464
4639
  readonly correlationId: Schema.optionalKey<Schema.String>;
4465
4640
  readonly layer: Schema.optionalKey<Schema.String>;
4466
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
4641
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
4467
4642
  readonly chain: Schema.optionalKey<Schema.Struct<{
4468
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4643
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4469
4644
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4470
4645
  readonly method: Schema.String;
4471
4646
  readonly retryable: Schema.Boolean;
@@ -4479,7 +4654,7 @@ declare const setups: {
4479
4654
  readonly providerMessage: Schema.optionalKey<Schema.String>;
4480
4655
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4481
4656
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4482
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4657
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4483
4658
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
4484
4659
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
4485
4660
  readonly durationMs: Schema.Finite;
@@ -4495,14 +4670,14 @@ declare const setups: {
4495
4670
  readonly lastSendIssue: Schema.NullOr<Schema.Struct<{
4496
4671
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
4497
4672
  readonly error: Schema.optionalKey<Schema.Struct<{
4498
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4673
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4499
4674
  readonly message: Schema.String;
4500
4675
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
4501
4676
  readonly correlationId: Schema.optionalKey<Schema.String>;
4502
4677
  readonly layer: Schema.optionalKey<Schema.String>;
4503
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
4678
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
4504
4679
  readonly chain: Schema.optionalKey<Schema.Struct<{
4505
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4680
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4506
4681
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4507
4682
  readonly method: Schema.String;
4508
4683
  readonly retryable: Schema.Boolean;
@@ -4516,7 +4691,7 @@ declare const setups: {
4516
4691
  readonly providerMessage: Schema.optionalKey<Schema.String>;
4517
4692
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4518
4693
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4519
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4694
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4520
4695
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
4521
4696
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
4522
4697
  readonly durationMs: Schema.Finite;
@@ -4546,14 +4721,14 @@ declare const setups: {
4546
4721
  readonly issue: Schema.NullOr<Schema.Struct<{
4547
4722
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
4548
4723
  readonly error: Schema.optionalKey<Schema.Struct<{
4549
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4724
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4550
4725
  readonly message: Schema.String;
4551
4726
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
4552
4727
  readonly correlationId: Schema.optionalKey<Schema.String>;
4553
4728
  readonly layer: Schema.optionalKey<Schema.String>;
4554
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
4729
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
4555
4730
  readonly chain: Schema.optionalKey<Schema.Struct<{
4556
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4731
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4557
4732
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4558
4733
  readonly method: Schema.String;
4559
4734
  readonly retryable: Schema.Boolean;
@@ -4567,7 +4742,7 @@ declare const setups: {
4567
4742
  readonly providerMessage: Schema.optionalKey<Schema.String>;
4568
4743
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4569
4744
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4570
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4745
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4571
4746
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
4572
4747
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
4573
4748
  readonly durationMs: Schema.Finite;
@@ -4583,14 +4758,14 @@ declare const setups: {
4583
4758
  readonly lastSendIssue: Schema.NullOr<Schema.Struct<{
4584
4759
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
4585
4760
  readonly error: Schema.optionalKey<Schema.Struct<{
4586
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4761
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4587
4762
  readonly message: Schema.String;
4588
4763
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
4589
4764
  readonly correlationId: Schema.optionalKey<Schema.String>;
4590
4765
  readonly layer: Schema.optionalKey<Schema.String>;
4591
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
4766
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
4592
4767
  readonly chain: Schema.optionalKey<Schema.Struct<{
4593
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4768
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4594
4769
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4595
4770
  readonly method: Schema.String;
4596
4771
  readonly retryable: Schema.Boolean;
@@ -4604,7 +4779,7 @@ declare const setups: {
4604
4779
  readonly providerMessage: Schema.optionalKey<Schema.String>;
4605
4780
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4606
4781
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4607
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4782
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4608
4783
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
4609
4784
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
4610
4785
  readonly durationMs: Schema.Finite;
@@ -4648,7 +4823,7 @@ declare const setups: {
4648
4823
  readonly paymasterPostOpGasLimit: Schema.optional<Schema.Codec<`0x${string}`, string, never, never>>;
4649
4824
  readonly paymasterData: Schema.Codec<`0x${string}`, string, never, never>;
4650
4825
  }>;
4651
- }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "UNKNOWN" | "WRONG_STATE">;
4826
+ }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "UNKNOWN" | "WRONG_STATE">;
4652
4827
  /** Accept the signed bootstrap's hash, then send it from the one elected sender. */
4653
4828
  submitAuthorization: Operation<"action", "organizations.setups.submitAuthorization", Schema.Struct<{
4654
4829
  readonly orgId: Schema.NonEmptyString;
@@ -4679,14 +4854,14 @@ declare const setups: {
4679
4854
  readonly issue: Schema.NullOr<Schema.Struct<{
4680
4855
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
4681
4856
  readonly error: Schema.optionalKey<Schema.Struct<{
4682
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4857
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4683
4858
  readonly message: Schema.String;
4684
4859
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
4685
4860
  readonly correlationId: Schema.optionalKey<Schema.String>;
4686
4861
  readonly layer: Schema.optionalKey<Schema.String>;
4687
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
4862
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
4688
4863
  readonly chain: Schema.optionalKey<Schema.Struct<{
4689
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4864
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4690
4865
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4691
4866
  readonly method: Schema.String;
4692
4867
  readonly retryable: Schema.Boolean;
@@ -4700,7 +4875,7 @@ declare const setups: {
4700
4875
  readonly providerMessage: Schema.optionalKey<Schema.String>;
4701
4876
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4702
4877
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4703
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4878
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4704
4879
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
4705
4880
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
4706
4881
  readonly durationMs: Schema.Finite;
@@ -4716,14 +4891,14 @@ declare const setups: {
4716
4891
  readonly lastSendIssue: Schema.NullOr<Schema.Struct<{
4717
4892
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
4718
4893
  readonly error: Schema.optionalKey<Schema.Struct<{
4719
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4894
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
4720
4895
  readonly message: Schema.String;
4721
4896
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
4722
4897
  readonly correlationId: Schema.optionalKey<Schema.String>;
4723
4898
  readonly layer: Schema.optionalKey<Schema.String>;
4724
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
4899
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
4725
4900
  readonly chain: Schema.optionalKey<Schema.Struct<{
4726
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4901
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4727
4902
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4728
4903
  readonly method: Schema.String;
4729
4904
  readonly retryable: Schema.Boolean;
@@ -4737,7 +4912,7 @@ declare const setups: {
4737
4912
  readonly providerMessage: Schema.optionalKey<Schema.String>;
4738
4913
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4739
4914
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
4740
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
4915
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
4741
4916
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
4742
4917
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
4743
4918
  readonly durationMs: Schema.Finite;
@@ -5035,7 +5210,7 @@ declare const verifications$1: {
5035
5210
  readonly argv: Schema.$Array<Schema.String>;
5036
5211
  }>;
5037
5212
  readonly status: Schema.Literals<readonly ["in_review", "approved", "rejected", "restricted"]>;
5038
- }>]>, "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
5213
+ }>]>, "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
5039
5214
  start: Operation<"action", "parties.verifications.start", Schema.Struct<{
5040
5215
  readonly orgId: Schema.optionalKey<Schema.String>;
5041
5216
  readonly invitationId: Schema.optionalKey<Schema.String>;
@@ -5161,7 +5336,7 @@ declare const verifications$1: {
5161
5336
  readonly argv: Schema.$Array<Schema.String>;
5162
5337
  }>;
5163
5338
  readonly status: Schema.Literals<readonly ["in_review", "approved", "rejected", "restricted"]>;
5164
- }>]>, "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
5339
+ }>]>, "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
5165
5340
  status: Operation<"action", "parties.verifications.status", Schema.Struct<{
5166
5341
  orgId: Schema.optionalKey<Schema.String>;
5167
5342
  invitationId: Schema.optionalKey<Schema.String>;
@@ -5286,7 +5461,7 @@ declare const verifications$1: {
5286
5461
  readonly argv: Schema.$Array<Schema.String>;
5287
5462
  }>;
5288
5463
  readonly status: Schema.Literals<readonly ["in_review", "approved", "rejected", "restricted"]>;
5289
- }>]>, "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
5464
+ }>]>, "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
5290
5465
  answer: Operation<"action", "parties.verifications.answer", Schema.Struct<{
5291
5466
  readonly orgId: Schema.optionalKey<Schema.String>;
5292
5467
  readonly invitationId: Schema.optionalKey<Schema.String>;
@@ -5413,7 +5588,7 @@ declare const verifications$1: {
5413
5588
  readonly argv: Schema.$Array<Schema.String>;
5414
5589
  }>;
5415
5590
  readonly status: Schema.Literals<readonly ["in_review", "approved", "rejected", "restricted"]>;
5416
- }>]>, "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
5591
+ }>]>, "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
5417
5592
  };
5418
5593
  declare const contacts: {
5419
5594
  /** The actor's address book, most recent activity first. Hidden entries only when asked. */
@@ -5886,10 +6061,10 @@ declare const quotes: {
5886
6061
  }>;
5887
6062
  readonly rate: import("effect/Schema").optionalKey<import("effect/Schema").String>;
5888
6063
  readonly warnings: import("effect/Schema").$Array<import("effect/Schema").Struct<{
5889
- readonly code: import("effect/Schema").Literal<"RECIPIENT_ON_CAPXUL">;
6064
+ readonly code: import("effect/Schema").String;
5890
6065
  readonly message: import("effect/Schema").String;
5891
6066
  }>>;
5892
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WRONG_STATE">;
6067
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WRONG_STATE">;
5893
6068
  };
5894
6069
  //#endregion
5895
6070
  //#region ../protocol/src/payments/operations.d.ts
@@ -6833,7 +7008,7 @@ declare const commands$1: {
6833
7008
  readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
6834
7009
  }>;
6835
7010
  }>>;
6836
- }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
7011
+ }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
6837
7012
  /** A batch of Payments from an Organization Budget the caller may spend from. */
6838
7013
  prepareOrganization: Operation<"action", "payments.commands.prepareOrganization", Schema.Struct<{
6839
7014
  readonly orgId: Schema.refine<string, Schema.String>;
@@ -8648,7 +8823,7 @@ declare const commands$1: {
8648
8823
  readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
8649
8824
  }>>;
8650
8825
  }>>;
8651
- }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
8826
+ }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
8652
8827
  /** The Payment a payer confirmed for a request, exactly as the request froze it. */
8653
8828
  prepareRequest: Operation<"action", "payments.commands.prepareRequest", Schema.Struct<{
8654
8829
  readonly confirmation: Schema.Union<readonly [Schema.Struct<{
@@ -10441,7 +10616,7 @@ declare const commands$1: {
10441
10616
  readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
10442
10617
  }>>;
10443
10618
  }>>;
10444
- }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
10619
+ }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
10445
10620
  /** A registered payer's Payment for an Offer checkout. */
10446
10621
  prepareOfferCheckout: Operation<"action", "payments.commands.prepareOfferCheckout", Schema.Struct<{
10447
10622
  readonly checkoutId: Schema.String;
@@ -10584,7 +10759,7 @@ declare const commands$1: {
10584
10759
  readonly documentHash: Schema.Codec<DocumentHash, string, never, never>;
10585
10760
  }>]>>;
10586
10761
  }>;
10587
- }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
10762
+ }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
10588
10763
  /** A registered payer's Payment for an Invoice checkout link. */
10589
10764
  prepareInvoiceCheckout: Operation<"action", "payments.commands.prepareInvoiceCheckout", Schema.Struct<{
10590
10765
  readonly linkToken: Schema.String;
@@ -10717,7 +10892,7 @@ declare const commands$1: {
10717
10892
  readonly contractAddress: Schema.Codec<Address$1, string, never, never>;
10718
10893
  readonly settlementId: Schema.Codec<`0x${string}`, string, never, never>;
10719
10894
  }>;
10720
- }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
10895
+ }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
10721
10896
  };
10722
10897
  /** An existing Payment: retry its send, or claim, cancel or redirect its commitment. */
10723
10898
  declare const lifecycles: {
@@ -12489,7 +12664,7 @@ declare const lifecycles: {
12489
12664
  readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
12490
12665
  }>>;
12491
12666
  }>>;
12492
- }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
12667
+ }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
12493
12668
  /** The same, refused unless the Payment belongs to the scope the caller names. */
12494
12669
  prepareScoped: Operation<"action", "payments.lifecycles.prepareScoped", Schema.Struct<{
12495
12670
  readonly signerAddress: Schema.Codec<Address$1, string, never, never>;
@@ -14264,7 +14439,7 @@ declare const lifecycles: {
14264
14439
  readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
14265
14440
  }>>;
14266
14441
  }>>;
14267
- }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
14442
+ }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
14268
14443
  /** What retrying an Organization's failed Payment would send again, before anyone signs. */
14269
14444
  previewRetry: Operation<"query", "payments.lifecycles.previewRetry", Schema.Struct<{
14270
14445
  readonly orgId: Schema.NonEmptyString;
@@ -14458,7 +14633,7 @@ declare const executions: {
14458
14633
  readonly createdAt: Schema.Codec<EpochMs, number, never, never>;
14459
14634
  readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
14460
14635
  }>;
14461
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "SUPERSEDED" | "UNKNOWN" | "WRONG_STATE">;
14636
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "SUPERSEDED" | "UNKNOWN" | "WRONG_STATE">;
14462
14637
  /** Send any prepared command's signed execution and record every Payment it carries. */
14463
14638
  submitCommand: Operation<"action", "payments.executions.submitCommand", Schema.Struct<{
14464
14639
  readonly executionId: Schema.refine<string, Schema.String>;
@@ -14553,7 +14728,7 @@ declare const executions: {
14553
14728
  readonly createdAt: Schema.Codec<EpochMs, number, never, never>;
14554
14729
  readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
14555
14730
  }>>;
14556
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "SUPERSEDED" | "UNKNOWN" | "WRONG_STATE">;
14731
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "SUPERSEDED" | "UNKNOWN" | "WRONG_STATE">;
14557
14732
  /** Close a prepared execution the signer refused or the caller dropped; false when it moved on. */
14558
14733
  abandon: Operation<"action", "payments.executions.abandon", Schema.Struct<{
14559
14734
  readonly executionId: Schema.refine<string, Schema.String>;
@@ -16465,7 +16640,7 @@ declare const runs: {
16465
16640
  }>>;
16466
16641
  }>;
16467
16642
  }>]>;
16468
- }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
16643
+ }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
16469
16644
  /** One saved run with its exact Payslips and Payments; null when the Organization has none by that id. */
16470
16645
  get: Operation<"query", "payroll.runs.get", Schema.Struct<{
16471
16646
  readonly orgId: Schema.NonEmptyString;
@@ -17360,16 +17535,6 @@ declare const commands: {
17360
17535
  readonly retryCount: number;
17361
17536
  readonly automaticRetry: "exhausted" | "none" | "scheduled";
17362
17537
  readonly verification: {
17363
- readonly status: "mismatch";
17364
- readonly code: "conflicting_replay" | "extra_authority_event" | "failed_user_operation" | "missing_event" | "non_canonical_block" | "wrong_chain" | "wrong_contract_identity" | "wrong_event_order" | "wrong_fact_tuple" | "wrong_sender" | "wrong_state";
17365
- readonly receipt?: {
17366
- readonly chainId: ChainId;
17367
- readonly userOpHash: `0x${string}`;
17368
- readonly transactionHash: TxHash;
17369
- readonly blockNumber: BlockNumber;
17370
- readonly blockHash: `0x${string}`;
17371
- } | undefined;
17372
- } | {
17373
17538
  readonly status: "pending";
17374
17539
  readonly reason: "receipt_missing";
17375
17540
  } | {
@@ -17395,6 +17560,16 @@ declare const commands: {
17395
17560
  readonly dataHash: `0x${string}`;
17396
17561
  }[];
17397
17562
  readonly factsHash: `0x${string}`;
17563
+ } | {
17564
+ readonly status: "mismatch";
17565
+ readonly code: "conflicting_replay" | "extra_authority_event" | "failed_user_operation" | "missing_event" | "non_canonical_block" | "wrong_chain" | "wrong_contract_identity" | "wrong_event_order" | "wrong_fact_tuple" | "wrong_sender" | "wrong_state";
17566
+ readonly receipt?: {
17567
+ readonly chainId: ChainId;
17568
+ readonly userOpHash: `0x${string}`;
17569
+ readonly transactionHash: TxHash;
17570
+ readonly blockNumber: BlockNumber;
17571
+ readonly blockHash: `0x${string}`;
17572
+ } | undefined;
17398
17573
  } | {
17399
17574
  readonly status: "provider_failure";
17400
17575
  readonly retryable: true;
@@ -19206,7 +19381,7 @@ declare const commands: {
19206
19381
  readonly limitRaw: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
19207
19382
  readonly allowanceKey: Schema.optional<Schema.Codec<AllowanceKey, string, never, never>>;
19208
19383
  }>>]>;
19209
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
19384
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
19210
19385
  /** Send the signed UserOperation, record it, and schedule its verification. */
19211
19386
  submitExecution: Operation<"action", "permissions.commands.submitExecution", Schema.Struct<{
19212
19387
  readonly executionId: Schema.refine<string, Schema.String>;
@@ -19302,7 +19477,7 @@ declare const commands: {
19302
19477
  readonly limitRaw: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
19303
19478
  readonly allowanceKey: Schema.optional<Schema.Codec<AllowanceKey, string, never, never>>;
19304
19479
  }>>]>;
19305
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "SUPERSEDED" | "UNKNOWN" | "WRONG_STATE">;
19480
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "SUPERSEDED" | "UNKNOWN" | "WRONG_STATE">;
19306
19481
  };
19307
19482
  declare const replacements: {
19308
19483
  /** What replacing the Organization's Roles module would carry over, with its snapshot hash. */
@@ -20158,7 +20333,7 @@ declare const replacements: {
20158
20333
  readonly limitRaw: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
20159
20334
  readonly allowanceKey: Schema.optional<Schema.Codec<AllowanceKey, string, never, never>>;
20160
20335
  }>>]>;
20161
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
20336
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
20162
20337
  };
20163
20338
  declare const verifications: {
20164
20339
  /** Read the receipt of the caller's submitted command and apply what it proves. */
@@ -20386,7 +20561,7 @@ declare const authorities: {
20386
20561
  readonly everyDays: Schema.Finite;
20387
20562
  readonly nextAt: Schema.Codec<EpochMs, number, never, never>;
20388
20563
  }>>>;
20389
- }>, "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN">;
20564
+ }>, "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN">;
20390
20565
  /** Whether the caller's Account may spend this amount from this Budget right now. */
20391
20566
  authorize: Operation<"query", "permissions.authorities.authorize", Schema.Struct<{
20392
20567
  readonly orgId: Schema.refine<string, Schema.String>;
@@ -20468,7 +20643,7 @@ declare const configurations: {
20468
20643
  readonly signerAddress: Schema.Codec<Address$1, string, never, never>;
20469
20644
  readonly userOpSenderSafe: Schema.Codec<SafeAddress, string, never, never>;
20470
20645
  readonly digest: Schema.Codec<`0x${string}`, string, never, never>;
20471
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
20646
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "UNKNOWN" | "WRONG_STATE">;
20472
20647
  /** Send the signed configuration, record it, and schedule its verification. */
20473
20648
  submitExecution: Operation<"action", "permissions.configurations.submitExecution", Schema.Struct<{
20474
20649
  readonly executionId: Schema.refine<string, Schema.String>;
@@ -20478,7 +20653,7 @@ declare const configurations: {
20478
20653
  readonly executionId: Schema.refine<string, Schema.String>;
20479
20654
  readonly commandId: Schema.Codec<PaymentCommandId, string, never, never>;
20480
20655
  readonly userOpHash: Schema.Codec<`0x${string}`, string, never, never>;
20481
- }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "SUPERSEDED" | "UNKNOWN" | "WRONG_STATE">;
20656
+ }>, "ACCOUNT_NOT_FOUND" | "ENV_MISSING" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "SMART_ACCOUNT_MISSING" | "SUPERSEDED" | "UNKNOWN" | "WRONG_STATE">;
20482
20657
  };
20483
20658
  //#endregion
20484
20659
  //#region ../protocol/src/profiles/operations.d.ts
@@ -25245,7 +25420,7 @@ declare const checkouts: {
25245
25420
  readonly settlementId: Schema.Codec<`0x${string}`, string, never, never>;
25246
25421
  readonly documentKind: Schema.Literals<readonly ["memo", "invoice"]>;
25247
25422
  }>;
25248
- }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
25423
+ }>, "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "ROLE_PERMISSION_DENIED" | "UNKNOWN" | "WRONG_STATE">;
25249
25424
  /** An Invoice link's public terms, or null when the link names no Invoice. */
25250
25425
  invoice: Operation<"query", "requests.checkouts.invoice", Schema.Struct<{
25251
25426
  readonly linkToken: Schema.String;
@@ -26403,7 +26578,16 @@ declare const CAPXUL_OPERATIONS: {
26403
26578
  };
26404
26579
  readonly auth: {
26405
26580
  readonly canSendOtp: "auth.canSendOtp";
26581
+ readonly createEncryptionSession: "auth.createEncryptionSession";
26582
+ readonly clientRequests: {
26583
+ readonly accept: "auth.clientRequests.accept";
26584
+ readonly cancel: "auth.clientRequests.cancel";
26585
+ readonly read: "auth.clientRequests.read";
26586
+ readonly sendOtp: "auth.clientRequests.sendOtp";
26587
+ readonly verifyOtp: "auth.clientRequests.verifyOtp";
26588
+ };
26406
26589
  readonly getSession: "auth.getSession";
26590
+ readonly resumeOtp: "auth.resumeOtp";
26407
26591
  readonly signIn: "auth.signIn";
26408
26592
  readonly signOut: "auth.signOut";
26409
26593
  readonly sendVerificationOtp: "auth.sendVerificationOTP";
@@ -26413,10 +26597,6 @@ declare const CAPXUL_OPERATIONS: {
26413
26597
  readonly createOrg: "createOrg";
26414
26598
  readonly orgs: "orgs";
26415
26599
  };
26416
- readonly clientRequests: {
26417
- readonly decide: "clientRequests.decide";
26418
- readonly read: "clientRequests.read";
26419
- };
26420
26600
  readonly currentUser: {
26421
26601
  readonly get: "currentUser.get";
26422
26602
  };
@@ -26461,8 +26641,10 @@ declare const CAPXUL_OPERATIONS: {
26461
26641
  readonly get: "me.get";
26462
26642
  };
26463
26643
  readonly onboarding: {
26644
+ readonly beginOrganization: "onboarding.beginOrganization";
26464
26645
  readonly completeOrganization: "onboarding.completeOrganization";
26465
26646
  readonly completePerson: "onboarding.completePerson";
26647
+ readonly listOrganizationSetups: "onboarding.listOrganizationSetups";
26466
26648
  };
26467
26649
  readonly smartAccount: {
26468
26650
  readonly claim: "smartAccount.claim";
@@ -26547,6 +26729,9 @@ declare const CAPXUL_OPERATIONS: {
26547
26729
  };
26548
26730
  readonly retry: "org.retry";
26549
26731
  readonly roles: "org.roles";
26732
+ readonly setup: {
26733
+ readonly subscribe: "org.setup.subscribe";
26734
+ };
26550
26735
  readonly treasury: "org.treasury";
26551
26736
  };
26552
26737
  readonly organization: {
@@ -26883,6 +27068,9 @@ declare const CAPXUL_OPERATIONS: {
26883
27068
  readonly health: "system.health";
26884
27069
  readonly ping: "system.ping";
26885
27070
  };
27071
+ readonly mcp: {
27072
+ readonly request: "mcp.request";
27073
+ };
26886
27074
  readonly _internal: {
26887
27075
  readonly accounts: {
26888
27076
  readonly fund: "_internal.accounts.fund";
@@ -28845,14 +29033,14 @@ declare const OrganizationSetupSchema: Schema.Struct<{
28845
29033
  readonly issue: Schema.NullOr<Schema.Struct<{
28846
29034
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
28847
29035
  readonly error: Schema.optionalKey<Schema.Struct<{
28848
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
29036
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
28849
29037
  readonly message: Schema.String;
28850
29038
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
28851
29039
  readonly correlationId: Schema.optionalKey<Schema.String>;
28852
29040
  readonly layer: Schema.optionalKey<Schema.String>;
28853
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
29041
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
28854
29042
  readonly chain: Schema.optionalKey<Schema.Struct<{
28855
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
29043
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
28856
29044
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
28857
29045
  readonly method: Schema.String;
28858
29046
  readonly retryable: Schema.Boolean;
@@ -28866,7 +29054,7 @@ declare const OrganizationSetupSchema: Schema.Struct<{
28866
29054
  readonly providerMessage: Schema.optionalKey<Schema.String>;
28867
29055
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
28868
29056
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
28869
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
29057
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
28870
29058
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
28871
29059
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
28872
29060
  readonly durationMs: Schema.Finite;
@@ -28882,14 +29070,14 @@ declare const OrganizationSetupSchema: Schema.Struct<{
28882
29070
  readonly lastSendIssue: Schema.NullOr<Schema.Struct<{
28883
29071
  readonly reason: Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>;
28884
29072
  readonly error: Schema.optionalKey<Schema.Struct<{
28885
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
29073
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
28886
29074
  readonly message: Schema.String;
28887
29075
  readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
28888
29076
  readonly correlationId: Schema.optionalKey<Schema.String>;
28889
29077
  readonly layer: Schema.optionalKey<Schema.String>;
28890
- readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>>;
29078
+ readonly mode: Schema.optionalKey<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>>;
28891
29079
  readonly chain: Schema.optionalKey<Schema.Struct<{
28892
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
29080
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
28893
29081
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
28894
29082
  readonly method: Schema.String;
28895
29083
  readonly retryable: Schema.Boolean;
@@ -28903,7 +29091,7 @@ declare const OrganizationSetupSchema: Schema.Struct<{
28903
29091
  readonly providerMessage: Schema.optionalKey<Schema.String>;
28904
29092
  readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
28905
29093
  readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
28906
- readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "unknown"]>;
29094
+ readonly mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "forbidden", "bad-request", "method-unsupported", "refused", "defect", "unknown"]>;
28907
29095
  readonly httpStatus: Schema.optionalKey<Schema.Finite>;
28908
29096
  readonly rpcCode: Schema.optionalKey<Schema.Finite>;
28909
29097
  readonly durationMs: Schema.Finite;
@@ -29042,8 +29230,9 @@ declare const PaymentQuoteSchema: Schema.Struct<{
29042
29230
  readonly onCapxul: Schema.Boolean;
29043
29231
  }>;
29044
29232
  readonly rate: Schema.optionalKey<Schema.String>;
29233
+ /** Read with any code: an unknown one does not make the quote unreadable. */
29045
29234
  readonly warnings: Schema.$Array<Schema.Struct<{
29046
- readonly code: Schema.Literal<"RECIPIENT_ON_CAPXUL">;
29235
+ readonly code: Schema.String;
29047
29236
  readonly message: Schema.String;
29048
29237
  }>>;
29049
29238
  }>;
@@ -34205,8 +34394,9 @@ declare const ApprovalSchema: Schema.Struct<{
34205
34394
  readonly name: Schema.String;
34206
34395
  readonly explorerUrl: Schema.String;
34207
34396
  }>;
34397
+ /** Read with any code: an unknown one does not make the approval unreadable. */
34208
34398
  readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
34209
- readonly code: Schema.Literal<"RECIPIENT_ON_CAPXUL">;
34399
+ readonly code: Schema.String;
34210
34400
  readonly message: Schema.String;
34211
34401
  }>>>;
34212
34402
  }>;
@@ -38325,6 +38515,8 @@ type Readiness = {
38325
38515
  readonly failure: Failure;
38326
38516
  readonly retryable: boolean;
38327
38517
  };
38518
+ /** The calls whose failed work faults the identity machine. */
38519
+ type FaultingCall = "RequestOtp" | "VerifyOtp" | "ReadSession" | "SignOut";
38328
38520
  type IdentityState =
38329
38521
  /** The INITIAL state: a session probe is in flight and the machine knows
38330
38522
  * nothing yet. Distinct from `signed_out`, which is a settled answer. Without
@@ -38355,6 +38547,10 @@ type IdentityState =
38355
38547
  } | {
38356
38548
  readonly phase: "faulted";
38357
38549
  readonly failure: Failure;
38550
+ /** The call whose work faulted the machine. A failed `ReadSession` is
38551
+ * the one fault after which the machine does not know whether the
38552
+ * person is signed in (CAP-420). */
38553
+ readonly failedAt: FaultingCall;
38358
38554
  /** Non-null exactly when an OTP entry is resumable — the incumbent's
38359
38555
  * `email !== null && otpRequestedAt !== null` pair,
38360
38556
  * made structural. */
@@ -38553,7 +38749,7 @@ declare const ClientRequestViewSchema: Schema.declareConstructor<{
38553
38749
  readonly expiresAt: EpochMs;
38554
38750
  readonly phase: "refused";
38555
38751
  readonly reason: "already_signed_up" | "cancelled" | "grant_expired" | "grant_revoked" | "identity_mismatch" | "invalid_request" | "refresh_reused" | "request_denied" | "request_expired" | "revoke_unconfirmed" | "setup_required" | "signup_required";
38556
- readonly code: "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ACCOUNT_NOT_FOUND" | "ACTOR_STOPPED" | "CANCELLED" | "CAPABILITY_UNAVAILABLE" | "EMAIL_DELIVERY_FAILED" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "INVALID_RECIPIENT" | "NETWORK_ERROR" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "OTP_EXPIRED" | "PLAYER_NOT_FOUND" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "RATE_LIMITED" | "ROLE_PERMISSION_DENIED" | "SIGNER_REJECTED" | "SMART_ACCOUNT_MISSING" | "STALE_EPOCH" | "SUPERSEDED" | "TRANSACTION_FAILED" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WORK_DIED" | "WRONG_STATE";
38752
+ readonly code: "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ACCOUNT_NOT_FOUND" | "ACTOR_STOPPED" | "CANCELLED" | "CAPABILITY_UNAVAILABLE" | "EMAIL_DELIVERY_FAILED" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "INVALID_RECIPIENT" | "NETWORK_ERROR" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "OTP_EXPIRED" | "PLAYER_NOT_FOUND" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "RATE_LIMITED" | "ROLE_PERMISSION_DENIED" | "SIGNER_REJECTED" | "SMART_ACCOUNT_MISSING" | "STALE_EPOCH" | "SUPERSEDED" | "TRANSACTION_FAILED" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WORK_DIED" | "WRONG_STATE";
38557
38753
  readonly field?: "country" | "displayName" | "email" | "handle" | "image" | "payoutAddresses" | undefined;
38558
38754
  readonly retryable: boolean;
38559
38755
  }, {
@@ -38619,7 +38815,7 @@ declare const ClientRequestViewSchema: Schema.declareConstructor<{
38619
38815
  readonly expiresAt: number;
38620
38816
  readonly phase: "refused";
38621
38817
  readonly reason: "already_signed_up" | "cancelled" | "grant_expired" | "grant_revoked" | "identity_mismatch" | "invalid_request" | "refresh_reused" | "request_denied" | "request_expired" | "revoke_unconfirmed" | "setup_required" | "signup_required";
38622
- readonly code: "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ACCOUNT_NOT_FOUND" | "ACTOR_STOPPED" | "CANCELLED" | "CAPABILITY_UNAVAILABLE" | "EMAIL_DELIVERY_FAILED" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "INVALID_RECIPIENT" | "NETWORK_ERROR" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "OTP_EXPIRED" | "PLAYER_NOT_FOUND" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "RATE_LIMITED" | "ROLE_PERMISSION_DENIED" | "SIGNER_REJECTED" | "SMART_ACCOUNT_MISSING" | "STALE_EPOCH" | "SUPERSEDED" | "TRANSACTION_FAILED" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WORK_DIED" | "WRONG_STATE";
38818
+ readonly code: "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ACCOUNT_NOT_FOUND" | "ACTOR_STOPPED" | "CANCELLED" | "CAPABILITY_UNAVAILABLE" | "EMAIL_DELIVERY_FAILED" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "INVALID_RECIPIENT" | "NETWORK_ERROR" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "OTP_EXPIRED" | "PLAYER_NOT_FOUND" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "RATE_LIMITED" | "ROLE_PERMISSION_DENIED" | "SIGNER_REJECTED" | "SMART_ACCOUNT_MISSING" | "STALE_EPOCH" | "SUPERSEDED" | "TRANSACTION_FAILED" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WORK_DIED" | "WRONG_STATE";
38623
38819
  readonly field?: "country" | "displayName" | "email" | "handle" | "image" | "payoutAddresses" | undefined;
38624
38820
  readonly retryable: boolean;
38625
38821
  }, readonly [Schema.Union<readonly [Schema.declareConstructor<{
@@ -39024,7 +39220,7 @@ declare const ClientRequestViewSchema: Schema.declareConstructor<{
39024
39220
  readonly expiresAt: EpochMs;
39025
39221
  readonly phase: "refused";
39026
39222
  readonly reason: "already_signed_up" | "cancelled" | "grant_expired" | "grant_revoked" | "identity_mismatch" | "invalid_request" | "refresh_reused" | "request_denied" | "request_expired" | "revoke_unconfirmed" | "setup_required" | "signup_required";
39027
- readonly code: "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ACCOUNT_NOT_FOUND" | "ACTOR_STOPPED" | "CANCELLED" | "CAPABILITY_UNAVAILABLE" | "EMAIL_DELIVERY_FAILED" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "INVALID_RECIPIENT" | "NETWORK_ERROR" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "OTP_EXPIRED" | "PLAYER_NOT_FOUND" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "RATE_LIMITED" | "ROLE_PERMISSION_DENIED" | "SIGNER_REJECTED" | "SMART_ACCOUNT_MISSING" | "STALE_EPOCH" | "SUPERSEDED" | "TRANSACTION_FAILED" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WORK_DIED" | "WRONG_STATE";
39223
+ readonly code: "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ACCOUNT_NOT_FOUND" | "ACTOR_STOPPED" | "CANCELLED" | "CAPABILITY_UNAVAILABLE" | "EMAIL_DELIVERY_FAILED" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "INVALID_RECIPIENT" | "NETWORK_ERROR" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "OTP_EXPIRED" | "PLAYER_NOT_FOUND" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "RATE_LIMITED" | "ROLE_PERMISSION_DENIED" | "SIGNER_REJECTED" | "SMART_ACCOUNT_MISSING" | "STALE_EPOCH" | "SUPERSEDED" | "TRANSACTION_FAILED" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WORK_DIED" | "WRONG_STATE";
39028
39224
  readonly field?: "country" | "displayName" | "email" | "handle" | "image" | "payoutAddresses" | undefined;
39029
39225
  readonly retryable: boolean;
39030
39226
  }, {
@@ -39033,7 +39229,7 @@ declare const ClientRequestViewSchema: Schema.declareConstructor<{
39033
39229
  readonly expiresAt: number;
39034
39230
  readonly phase: "refused";
39035
39231
  readonly reason: "already_signed_up" | "cancelled" | "grant_expired" | "grant_revoked" | "identity_mismatch" | "invalid_request" | "refresh_reused" | "request_denied" | "request_expired" | "revoke_unconfirmed" | "setup_required" | "signup_required";
39036
- readonly code: "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ACCOUNT_NOT_FOUND" | "ACTOR_STOPPED" | "CANCELLED" | "CAPABILITY_UNAVAILABLE" | "EMAIL_DELIVERY_FAILED" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "INVALID_RECIPIENT" | "NETWORK_ERROR" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "OTP_EXPIRED" | "PLAYER_NOT_FOUND" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "RATE_LIMITED" | "ROLE_PERMISSION_DENIED" | "SIGNER_REJECTED" | "SMART_ACCOUNT_MISSING" | "STALE_EPOCH" | "SUPERSEDED" | "TRANSACTION_FAILED" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WORK_DIED" | "WRONG_STATE";
39232
+ readonly code: "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ACCOUNT_NOT_FOUND" | "ACTOR_STOPPED" | "CANCELLED" | "CAPABILITY_UNAVAILABLE" | "EMAIL_DELIVERY_FAILED" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "INVALID_RECIPIENT" | "NETWORK_ERROR" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "OTP_EXPIRED" | "PLAYER_NOT_FOUND" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "RATE_LIMITED" | "ROLE_PERMISSION_DENIED" | "SIGNER_REJECTED" | "SMART_ACCOUNT_MISSING" | "STALE_EPOCH" | "SUPERSEDED" | "TRANSACTION_FAILED" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WORK_DIED" | "WRONG_STATE";
39037
39233
  readonly field?: "country" | "displayName" | "email" | "handle" | "image" | "payoutAddresses" | undefined;
39038
39234
  readonly retryable: boolean;
39039
39235
  }, readonly [Schema.Struct<{
@@ -39042,7 +39238,7 @@ declare const ClientRequestViewSchema: Schema.declareConstructor<{
39042
39238
  readonly expiresAt: Schema.Codec<EpochMs, number, never, never>;
39043
39239
  readonly phase: Schema.Literal<"refused">;
39044
39240
  readonly reason: Schema.Literals<readonly ["signup_required", "setup_required", "already_signed_up", "identity_mismatch", "invalid_request", "request_expired", "request_denied", "cancelled", "grant_revoked", "grant_expired", "refresh_reused", "revoke_unconfirmed"]>;
39045
- readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
39241
+ readonly code: Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "PROVIDER_RESPONSE_INVALID", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>;
39046
39242
  readonly field: Schema.optional<Schema.Literals<readonly ["email", "displayName", "country", "handle", "image", "payoutAddresses"]>>;
39047
39243
  readonly retryable: Schema.Boolean;
39048
39244
  }>], {
@@ -39051,7 +39247,7 @@ declare const ClientRequestViewSchema: Schema.declareConstructor<{
39051
39247
  readonly expiresAt: EpochMs;
39052
39248
  readonly phase: "refused";
39053
39249
  readonly reason: "already_signed_up" | "cancelled" | "grant_expired" | "grant_revoked" | "identity_mismatch" | "invalid_request" | "refresh_reused" | "request_denied" | "request_expired" | "revoke_unconfirmed" | "setup_required" | "signup_required";
39054
- readonly code: "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ACCOUNT_NOT_FOUND" | "ACTOR_STOPPED" | "CANCELLED" | "CAPABILITY_UNAVAILABLE" | "EMAIL_DELIVERY_FAILED" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "INVALID_RECIPIENT" | "NETWORK_ERROR" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "OTP_EXPIRED" | "PLAYER_NOT_FOUND" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "RATE_LIMITED" | "ROLE_PERMISSION_DENIED" | "SIGNER_REJECTED" | "SMART_ACCOUNT_MISSING" | "STALE_EPOCH" | "SUPERSEDED" | "TRANSACTION_FAILED" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WORK_DIED" | "WRONG_STATE";
39250
+ readonly code: "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ACCOUNT_NOT_FOUND" | "ACTOR_STOPPED" | "CANCELLED" | "CAPABILITY_UNAVAILABLE" | "EMAIL_DELIVERY_FAILED" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "INVALID_RECIPIENT" | "NETWORK_ERROR" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "OTP_EXPIRED" | "PLAYER_NOT_FOUND" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "RATE_LIMITED" | "ROLE_PERMISSION_DENIED" | "SIGNER_REJECTED" | "SMART_ACCOUNT_MISSING" | "STALE_EPOCH" | "SUPERSEDED" | "TRANSACTION_FAILED" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WORK_DIED" | "WRONG_STATE";
39055
39251
  readonly field?: "country" | "displayName" | "email" | "handle" | "image" | "payoutAddresses" | undefined;
39056
39252
  readonly retryable: boolean;
39057
39253
  }>]>], {
@@ -39117,7 +39313,7 @@ declare const ClientRequestViewSchema: Schema.declareConstructor<{
39117
39313
  readonly expiresAt: EpochMs;
39118
39314
  readonly phase: "refused";
39119
39315
  readonly reason: "already_signed_up" | "cancelled" | "grant_expired" | "grant_revoked" | "identity_mismatch" | "invalid_request" | "refresh_reused" | "request_denied" | "request_expired" | "revoke_unconfirmed" | "setup_required" | "signup_required";
39120
- readonly code: "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ACCOUNT_NOT_FOUND" | "ACTOR_STOPPED" | "CANCELLED" | "CAPABILITY_UNAVAILABLE" | "EMAIL_DELIVERY_FAILED" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "INVALID_RECIPIENT" | "NETWORK_ERROR" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "OTP_EXPIRED" | "PLAYER_NOT_FOUND" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "RATE_LIMITED" | "ROLE_PERMISSION_DENIED" | "SIGNER_REJECTED" | "SMART_ACCOUNT_MISSING" | "STALE_EPOCH" | "SUPERSEDED" | "TRANSACTION_FAILED" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WORK_DIED" | "WRONG_STATE";
39316
+ readonly code: "ACCOUNT_CLAIMED_BY_OTHER_SIGNER" | "ACCOUNT_NOT_FOUND" | "ACTOR_STOPPED" | "CANCELLED" | "CAPABILITY_UNAVAILABLE" | "EMAIL_DELIVERY_FAILED" | "ENV_MISSING" | "INSUFFICIENT_BALANCE" | "INVALID_INPUT" | "INVALID_RECIPIENT" | "NETWORK_ERROR" | "NOT_AUTHENTICATED" | "NOT_IMPLEMENTED" | "OTP_EXPIRED" | "PLAYER_NOT_FOUND" | "PROFILE_NOT_FOUND" | "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID" | "RATE_LIMITED" | "ROLE_PERMISSION_DENIED" | "SIGNER_REJECTED" | "SMART_ACCOUNT_MISSING" | "STALE_EPOCH" | "SUPERSEDED" | "TRANSACTION_FAILED" | "UNKNOWN" | "VERIFICATION_REQUIRED" | "WORK_DIED" | "WRONG_STATE";
39121
39317
  readonly field?: "country" | "displayName" | "email" | "handle" | "image" | "payoutAddresses" | undefined;
39122
39318
  readonly retryable: boolean;
39123
39319
  }>;
@@ -39255,10 +39451,15 @@ interface SystemMethods {
39255
39451
  }
39256
39452
  //#endregion
39257
39453
  //#region src/media/images.d.ts
39258
- /** The upload's URL request can fail as its row says; the POST itself fails as `PROVIDER_ERROR`. */
39454
+ /**
39455
+ * The upload's URL request can fail as its row says. The POST itself fails as
39456
+ * `PROVIDER_ERROR` (no answer, or a refusal), or as `PROVIDER_RESPONSE_INVALID`
39457
+ * when its answer names no storage id.
39458
+ */
39259
39459
  type UploadImageResult = CapxulResult<{
39260
39460
  readonly storageId: string;
39261
- }, CallError<typeof images.generateUploadUrl> | "PROVIDER_ERROR">;
39461
+ }, CallError<typeof images.generateUploadUrl> | UploadFailureCode>;
39462
+ type UploadFailureCode = "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID";
39262
39463
  interface MediaMethods {
39263
39464
  uploadImage(blob: Blob, options?: InvocationControls): Promise<UploadImageResult>;
39264
39465
  setProfileImage(input: OperationInput<typeof images.setProfileImage>, options?: InvocationControls): Promise<OperationResult<typeof images.setProfileImage>>;
@@ -39516,6 +39717,62 @@ declare function formatMoney(money: FormattableMoney, options?: {
39516
39717
  readonly grammar?: "symbol" | "code";
39517
39718
  }): string;
39518
39719
  //#endregion
39720
+ //#region ../protocol/src/errors/withheld.d.ts
39721
+ /**
39722
+ * A cause deliberately not carried (ADR-0023 R11): the result keeps the name
39723
+ * of what was caught and says why the rest is withheld. The one licensed way
39724
+ * to drop a cause.
39725
+ */
39726
+ declare function withheld(cause: unknown, reason: string): Error;
39727
+ //#endregion
39728
+ //#region ../protocol/src/errors/projection.d.ts
39729
+ /**
39730
+ * How much text a producer may send. `full` (backend, SDK) sends every key,
39731
+ * each string masked and bounded. `none` (CLI) sends closed facts only: no
39732
+ * message, no cause and no provider request id.
39733
+ */
39734
+ type FailureTextPolicy = "full" | "none";
39735
+ /** The properties of one failure row. Each key is absent when the failure does not name it. */
39736
+ interface FailureProperties {
39737
+ /** The error code. */
39738
+ readonly error_kind: CapxulErrorCode;
39739
+ /** Who acts on the failure. */
39740
+ readonly failure_class: FailureClass;
39741
+ /** The Capxul operation that failed. */
39742
+ readonly operation?: string;
39743
+ readonly failure_mode?: FailureMode;
39744
+ readonly provider?: ProviderName;
39745
+ /** The provider's own operation (`details.operation` of a provider failure). */
39746
+ readonly provider_operation?: string;
39747
+ readonly provider_code?: string;
39748
+ readonly http_status?: number;
39749
+ readonly field?: string;
39750
+ readonly problem?: ProviderProblem;
39751
+ readonly request_id?: string;
39752
+ /**
39753
+ * How long the call ran before it failed, in whole milliseconds, as the
39754
+ * producer measured it (`details.elapsed_ms`, CAP-387). Evidence only.
39755
+ */
39756
+ readonly elapsed_ms?: number;
39757
+ readonly error_message?: string;
39758
+ /** The cause chain, outermost first. */
39759
+ readonly error_cause?: string;
39760
+ readonly $issue_name: string;
39761
+ /** `code:mode:operation`, so one issue is one cause at one operation. */
39762
+ readonly $exception_fingerprint: string;
39763
+ }
39764
+ /**
39765
+ * The PostHog properties of a failure, under one text policy. `operation` is
39766
+ * the Capxul operation that failed. `details.operation` is the provider's
39767
+ * operation only on a provider failure (one that names `details.provider`);
39768
+ * on any other failure it is not sent, because it names a step of Capxul's
39769
+ * own and not a provider call.
39770
+ */
39771
+ declare function failureProperties(error: CapxulError, options: {
39772
+ readonly operation: string;
39773
+ readonly text: FailureTextPolicy;
39774
+ }): FailureProperties;
39775
+ //#endregion
39519
39776
  //#region ../protocol/src/evm/payments-abi.d.ts
39520
39777
  /** Immutable CapxulPaymentsV2 deployment on Base Sepolia. */
39521
39778
  declare const CAPXUL_PAYMENTS_V2_ADDRESS: Address;
@@ -39667,6 +39924,10 @@ interface HostObservability {
39667
39924
  readonly failures: ObservationAdapter;
39668
39925
  readonly product: TelemetryPort;
39669
39926
  }
39927
+ /**
39928
+ * The subset of a posthog-js client the SDK may call. Only `capture` is
39929
+ * required: a host that only wants event capture can omit the others.
39930
+ */
39670
39931
  interface PostHogObservabilityClient {
39671
39932
  capture(event: string, properties?: Readonly<Record<string, unknown>>): unknown;
39672
39933
  captureException?(exception: Error, properties?: Readonly<Record<string, unknown>>): unknown;
@@ -39674,7 +39935,20 @@ interface PostHogObservabilityClient {
39674
39935
  group?(groupType: string, groupKey: string, properties?: Readonly<Record<string, unknown>>): unknown;
39675
39936
  reset?(): unknown;
39676
39937
  }
39938
+ /** Masked factory words from the SDK's private original typed-failure path.
39939
+ * These are an in-process host capability, never serialized event authority.
39940
+ */
39941
+ interface PostHogFailureCanonicalWords {
39942
+ readonly error_message?: string;
39943
+ readonly $exception_message?: string;
39944
+ readonly $issue_description?: string;
39945
+ readonly exceptionValue?: string;
39946
+ }
39947
+ /** Host capture seam for SDK failures only. Delivery remains best effort. */
39948
+ type PostHogFailureCapture = (event: string, properties: Readonly<Record<string, unknown>>, canonicalWords?: PostHogFailureCanonicalWords) => unknown;
39677
39949
  interface PostHogObservabilityOptions {
39950
+ /** Optional failure-only capture hook; omission uses the client's capture. */
39951
+ readonly failureCapture?: PostHogFailureCapture;
39678
39952
  /** Consent / kill-switch seam. Defaults to enabled. */
39679
39953
  readonly enabled?: boolean | (() => boolean);
39680
39954
  /** Omission preserves bootstrap engineering. False/throw closes the acquired runtime's collection. */
@@ -39751,16 +40025,19 @@ interface HandledErrorReportContext {
39751
40025
  readonly layer?: string;
39752
40026
  /** Host input is normalized at the reporting boundary. */
39753
40027
  readonly operation?: string;
40028
+ /** The provider of an error that is not a `CapxulError`; a `CapxulError` names its own. */
39754
40029
  readonly provider?: string;
39755
- readonly capxul_error_code?: string;
40030
+ /** The mode of an error that is not a `CapxulError`; a `CapxulError` names its own. */
39756
40031
  readonly failure_mode?: FailureMode;
39757
40032
  }
39758
40033
  /**
39759
40034
  * Capture an error as a `$exception` event through the telemetry port,
39760
40035
  * formatted for PostHog Error Tracking.
39761
40036
  *
39762
- * Parses stack traces into `$exception_list` format, extracts structured
39763
- * metadata from CapxulError objects, and supplements with context props.
40037
+ * The failure facts are the failure row (`failureProperties`, ADR-0039 D6)
40038
+ * under the full text policy. An error that is not a `CapxulError` is
40039
+ * reported as `UNKNOWN`; its text is withheld, since a host error can quote
40040
+ * anything. Parses stack traces into `$exception_list` format.
39764
40041
  * Fire-and-forget: telemetry defects are silently swallowed.
39765
40042
  * Returns `Effect<void, never>` for use in Effect pipelines; the underlying
39766
40043
  * adapter work is synchronous, so callers outside Effect contexts can
@@ -39790,4 +40067,21 @@ type CheckoutLinkReference = {
39790
40067
  /** Build a reference URL. The consumer still reads authoritative terms from the backend. */
39791
40068
  declare function checkoutUrl(frontendOrigin: string, reference: CheckoutLinkReference): string;
39792
40069
  //#endregion
39793
- export { AuthMethods as $, RequestPaymentConfirmation as $a, PaymentDocumentsMethods as $i, PaymentPrepared as $n, ORGANIZATION_SETUP_REASONS as $o, PayrollRunApprovalInput as $r, AddressBookMethods as $t, formatAssetAmount as A, localPrivateKeyAccountProvider as Aa, MeProfile as Ai, VerificationInput as An, TelemetryIdentifyInput as Ao, ApprovalsMethods as Ar, Money as As, Budget as At, IdentityProfileDetails as B, PreparedOfferCheckoutExecution as Ba, ActivityKind as Bi, TargetReference as Bn, oauthBearerAuthClient as Bo, PermissionMethods as Br, FAILURE_MODES as Bs, DestinationAddInput as Bt, OpenfortBrowserSigner as C, SignerStatusStore as Ca, AccountLifecycle as Ci, BankDetailsOverview as Cn, OfferedAuthority as Co, valueActivitySummary as Cr, AuthUserId as Cs, InvitationSubscriptionOptions as Ct, CAPXUL_PAYMENTS_V2_ADDRESS as D, AccountRequirement as Da, DepositInstructions as Di, BankAccountField as Dn, CurrentPolicy as Do, ApprovalInput as Dr, Errors as Ds, InvitePreviewInput as Dt, createOpenfortBrowserSigner as E, AccountProviderSource as Ea, AccountMethods as Ei, BankAccountDetails as En, BudgetIntent as Eo, TOKENS as Er, toAddress as Es, InvitePrepared as Et, MoneyParseErrorReason as F, FixedOfferDraft as Fa, ActivityAnnotation as Fi, VerificationQuestion as Fn, CapxulOperation as Fo, BudgetLeft as Fr, isCapxulError as Fs, BankingMethods as Ft, SystemHealth as G, PrepareInvoiceCheckoutExecutionInput as Ga, ActivityReference as Gi, OrganizationPaymentRetryPreview as Gn, AuthCacheError as Go, PermissionReplaceInput as Gr, DestinationRemoveInput as Gt, IdentityRuntimeSendResult as H, InvoiceCheckoutReconciliation as Ha, ActivityMethods as Hi, OrganizationPaymentBatchInput as Hn, ObservationContext as Ho, PermissionPolicyChange as Hr, CAPXUL_ERROR_CODES as Hs, DestinationListInput as Ht, isMoneyParseError as I, FixedOfferDraftSchema as Ia, ActivityAnnotationInput as Ii, VerificationStatus as In, NormalizedCapxulOperation as Io, PermissionAssignInput as Ir, CHAIN_UPSTREAMS as Is, BankDepositCandidatesOptions as It, destination as J, PreparedRequestCheckoutExecution as Ja, ActivitySummaryTotal as Ji, Payment as Jn, CachedJwt as Jo, PermissionCommandView as Jr, ActorProfileMethods as Jt, SystemMethods as K, PrepareRequestCheckoutExecutionInput as Ka, ActivitySummary as Ki, OrganizationPaymentsMethods as Kn, AuthCachePort as Ko, PermissionRevokeInput as Kr, DestinationsMethods as Kt, parseMoney as L, OfferCheckout as La, ActivityDetail as Li, RecipientResolution as Ln, isCapxulOperation as Lo, PermissionAssignmentEffect as Lr, ChainCause as Ls, BankDepositMethods as Lt, requireAsset as M, CheckoutReconciliation as Ma, inboxPhase as Mi, VerificationOperations as Mn, TelemetryPortEvent as Mo, PermissionApprovalInput as Mr, toCurrencyCode as Ms, OrgMeMethod as Mt, toRaw as N, CheckoutState as Na, paymentPhase as Ni, VerificationAnswers as Nn, TelemetryPort as No, PermissionWrite as Nr, CapxulError as Ns, OrgMeOptions as Nt, formatMoney as O, Eip1193Provider as Oa, Home as Oi, BankAccountFilter as On, Permission as Oo, ApprovalOutcome as Or, AssetAmount as Os, OrgInvitations as Ot, MoneyParseError as P, FixedOffer as Pa, requestPhase as Pi, VerificationPersonInput as Pn, CAPXUL_OPERATIONS as Po, decodePermissionIntent as Pr, CapxulErrorDetails as Ps, BankDetailsMethods as Pt, CurrentUserMethods as Q, RequestCheckoutSummary as Qa, PAYMENT_STATUSES as Qi, PaymentMoney as Qn, Page as Qo, CancelApprovalInput as Qr, AddressBookLabelInput as Qt, CapxulClient as R, OfferCheckoutPreparation as Ra, ActivityFilter as Ri, Ref$1 as Rn, normalizeCapxulOperation as Ro, PermissionChangeInput as Rr, ChainUpstream as Rs, BankDepositsListOptions as Rt, OpenfortBrowserAuth as S, SignerStatus as Sa, Approval as Si, BankDetails as Sn, InvitePreview as So, Valuation as Sr, AuthSession as Ss, InvitationSnapshot as St, OpenfortBrowserSignerOptions as T, AccountProvider as Ta, isSettingUpLifecycle as Ti, BankAccount as Tn, PermissionReplacementPreview as To, AssetMetadata as Tr, EVM_ADDRESS_RE as Ts, InviteOptions as Tt, MediaMethods as U, InvoiceCheckoutState as Ua, ActivityPage as Ui, OrganizationPaymentInput as Un, ObservationDelivery as Uo, PermissionPrepared as Ur, CapxulErrorCode as Us, DestinationPayload as Ut, IdentityRuntime as V, InvoiceCheckoutPreparation as Va, ActivityListParams as Vi, TargetsMethods as Vn, ObservationAdapter as Vo, PermissionOptions as Vr, FailureMode as Vs, DestinationKind as Vt, UploadImageResult as W, InvoiceCheckoutSummary as Wa, ActivityRange as Wi, OrganizationPaymentItemInput as Wn, SdkFailureObservation as Wo, PermissionReadResult as Wr, EXPECTED_OPERATION_OUTCOMES as Ws, DestinationRail as Wt, isRestoring as X, RequestCheckoutReconciliation as Xa, PaymentActivityEvidence as Xi, PaymentDocumentKind as Xn, CapxulResult as Xo, PermissionIntent as Xr, AddressBookAddInput as Xt, isClaimed as Y, RequestCheckoutPreparation as Ya, MovementActivityEvidence as Yi, PaymentDirection as Yn, ActorReference as Yo, SubmittedPermissionExecution as Yr, ActorRelationshipMethods as Yt, CurrentUserContext as Z, RequestCheckoutState as Za, PAYMENT_DIRECTIONS as Zi, PaymentDocumentRef as Zn, OperationResult as Zo, OrganizationApprovalInput as Zr, AddressBookEntry as Zt, OpenfortEmbeddedWalletPort as _, ActorRef as _a, PayrollTermsUnit as _i, BankCurrency as _n, InvitationRecovery as _o, HoldingsMethods as _r, HANDLE_RE as _s, OrganizationAccess as _t, captureExceptionSync as a, CompletedPersonProfile as aa, AuthorizeRunOptions as ai, InboxFulfillOptions as an, OrganizationSetupPageInput as ao, PaymentsPayInput as ar, BudgetId as as, IdentityTransition as at, deriveDevPrivateKey as b, CapxulSigner as ba, PayrollGroupInputSchema as bi, BankDepositMatchCandidate as bn, InviteGrant as bo, Rate as br, toHandle as bs, RoleDefinition as bt, CapxulClientInput as c, OrganizationOnboardingInput as ca, PayrollGroupInput as ci, CheckoutsMethods as cn, Unsubscribe as co, PaymentDocumentOptions as cr, toBudgetId as cs, Readiness as ct, PostHogObservabilityOptions as d, PersonOnboardingInput as da, PayrollMethods as di, PayRequestRegisteredInput as dn, GranteeRef as do, SupportingReceiptInput as dr, Account$1 as ds, MemberIdentityProjection as dt, PaymentDocumentDownload as ea, RedirectApprovalInput as ei, ActorRequest as en, RequestPaymentTerms as eo, PaymentSnapshot as er, OrgId as es, Session as et, postHogObservability as f, ReadyAccountLifecycle as fa, PayrollOptions as fi, isCheckoutSettlementConsumed as fn, InvitationAcceptInput as fo, PaymentQuoteInput as fr, AccountId as fs, MemberStatus as ft, OpenfortEmbeddedWalletApi as g, PayoutAddress as ga, PayrollRuns as gi, BankAccountsMethods as gn, InvitationPhase as go, positionPeg as gr, toCountryCode as gs, OrgView as gt, openfortEmbeddedSignerFromWallet as h, Profile as ha, PayrollRunStatus as hi, BankAccountRequirementsInput as hn, InvitationPageInput as ho, SmartAccountMethods as hr, TesterKind as hs, OrgScopedMethods as ht, captureException as i, LineItemV3 as ia, AuthorizeRunInput as ii, InboxApproveInput as in, OrganizationSetupPage as io, PaymentType as ir, toPayrollGroupId as is, IdentityEvent as it, parseAssetAmount as j, CheckoutReceipt as ja, ActivityPhase as ji, VerificationMethods as jn, TelemetryEvent as jo, InvitationApprovalInput as jr, toAssetId as js, OrgMe as jt, assetSymbolFor as k, eip1193AccountProvider as ka, MeMethods as ki, BankAccountTarget as kn, TelemetryGroupInput as ko, ApprovalWaitOptions as kr, AssetId as ks, OwnInvitationsMethod as kt, HostObservability as l, OrganizationOnboardingOptions as la, PayrollGroupMember as li, CreateOfferCheckoutInput as ln, AuthorityRef as lo, PaymentDocumentOptionsSchema as lr, toPermissionAssignmentId as ls, StateLabel as lt, embeddedSigner as m, IdentityMethods as ma, PayrollRunItemInput as mi, BankAccountRequirements as mn, InvitationPage as mo, SmartAccount as mr, CountryCode as ms, OrgMethods as mt, checkoutUrl as n, PaymentDocumentRender as na, RetryApprovalInput as ni, ActorRequestsMethods as nn, InvocationControls as no, PaymentSubscriptionOptions as nr, PayrollGroupId as ns, ClientRequests as nt, CAPXUL_SDK_EXPECTED_OUTCOME_EVENT as o, OnboardingMethods as oa, PayrollEngagementTerms as oi, InboxItem as on, OrganizationSetupSnapshot as oo, PaymentsPayOptions as or, PermissionId as os, IdentityState as ot, OpenfortEmbeddedSignerInput as p, CompleteProfileInput as pa, PayrollRun as pi, BankAccountAddInput as pn, InvitationId as po, FinancialOpsMethods as pr, toAccountId as ps, MemberView as pt, Destination as q, PreparedInvoiceCheckoutExecution as qa, ActivitySummaryParams as qi, PaymentsMethods as qn, AuthCachePortTag as qo, PermissionCommandSnapshot as qr, ActorProfile as qt, HandledErrorReportContext as r, PaymentDocumentVerification as ra, decodePayrollRunInput as ri, OffersMethods as rn, OrganizationSetup as ro, PaymentTiming as rr, PayrollRunId as rs, ClientRequestView as rt, createCapxulClient as s, OrganizationOnboarding as sa, PayrollGroup as si, InboxMethods as sn, SetupIssue as so, InvoiceDraft as sr, RoleKey as ss, OrgLane as st, CheckoutLinkReference as t, PaymentDocumentReadRef as ta, RequestApprovalInput as ti, ActorRequestIssueInput as tn, PaymentQuote as to, PaymentStatus as tr, toOrgId as ts, AccountSetupPolicy as tt, PostHogObservabilityClient as u, PersonOnboarding as ua, PayrollGroupsMethods as ui, PayInvoiceRegisteredInput as un, EndingReason as uo, PaymentInstructionInput as ur, toPermissionId as us, AssignmentProjection as ut, openfortEmbeddedWalletPort as v, fingerprintPaymentIntent as va, PayrollRunSnapshot as vi, BankDeposit as vn, InvitationTarget as vo, CurrentHoldings as vr, Handle as vs, OrganizationAccount as vt, OpenfortBrowserSignerBootstrap as w, injectedWalletSigner as wa, AccountSetupStep as wi, SettlementToken as wn, SpendingScope as wo, valueIn as wr, Address$1 as ws, InviteMethod as wt, devPrivateKeySigner as x, Eip1193RequestProvider as xa, PayrollRunDetail as xi, BankDepositsPage as xn, InviteInput as xo, RateSource as xr, toPartyId as xs, RoleView as xt, DevPrivateKeySignerInput as y, CapxulDigestSigner as ya, PayrollGroupIdSchema as yi, BankDepositCandidatesPage as yn, InvitationView as yo, AccountsMethods as yr, PartyId as ys, OrganizationAuditLogItem as yt, CreateCapxulClientInput as z, PrepareOfferCheckoutExecutionInput as za, ActivityItem as zi, ResolvedTarget as zn, OAuthBearerAuthClientInput as zo, PermissionCreateInput as zr, RevertSummary as zs, Destination$1 as zt };
40070
+ //#region ../protocol/src/primitives/warning.d.ts
40071
+ /** The warning codes this build writes and acts on. */
40072
+ declare const WARNING_CODES: readonly [
40073
+ /** The recipient is on Capxul: paying their Capxul account is free and instant. */
40074
+ "RECIPIENT_ON_CAPXUL"];
40075
+ type WarningCode = (typeof WARNING_CODES)[number];
40076
+ /** A warning as a client reads it: any code, and the sentence to show. */
40077
+ declare const WarningSchema: Schema.Struct<{
40078
+ readonly code: Schema.String;
40079
+ readonly message: Schema.String;
40080
+ }>;
40081
+ type Warning = typeof WarningSchema.Type;
40082
+ /** Whether `warning` has this known code. */
40083
+ declare function hasWarningCode<Code extends WarningCode>(warning: Warning, code: Code): warning is Warning & {
40084
+ readonly code: Code;
40085
+ };
40086
+ //#endregion
40087
+ export { MediaMethods as $, InvoiceCheckoutState as $a, ActivityPage as $i, OrganizationPaymentInput as $n, ObservationDelivery as $o, PermissionPrepared as $r, CapxulError as $s, DestinationPayload as $t, OpenfortBrowserSignerBootstrap as A, CapxulSigner as Aa, PayrollGroupInputSchema as Ai, BankDepositMatchCandidate as An, InviteGrant as Ao, Rate as Ar, toHandle as As, RoleDefinition as At, formatAssetAmount as B, localPrivateKeyAccountProvider as Ba, MeProfile as Bi, VerificationInput as Bn, TelemetryIdentifyInput as Bo, ApprovalsMethods as Br, Errors as Bs, Budget as Bt, OpenfortEmbeddedWalletPort as C, CompleteProfileInput as Ca, PayrollRun as Ci, BankAccountAddInput as Cn, InvitationId as Co, FinancialOpsMethods as Cr, toAccountId as Cs, MemberView as Ct, devPrivateKeySigner as D, ActorRef as Da, PayrollTermsUnit as Di, BankCurrency as Dn, InvitationRecovery as Do, HoldingsMethods as Dr, HANDLE_RE as Ds, OrganizationAccess as Dt, deriveDevPrivateKey as E, PayoutAddress as Ea, PayrollRuns as Ei, BankAccountsMethods as En, InvitationPhase as Eo, positionPeg as Er, toCountryCode as Es, OrgView as Et, FailureTextPolicy as F, AccountProvider as Fa, isSettingUpLifecycle as Fi, BankAccount as Fn, PermissionReplacementPreview as Fo, AssetMetadata as Fr, EVM_ADDRESS_RE as Fs, InviteOptions as Ft, MoneyParseErrorReason as G, FixedOfferDraft as Ga, ActivityAnnotation as Gi, VerificationQuestion as Gn, CapxulOperation as Go, BudgetLeft as Gr, ProviderProblem as Gs, BankingMethods as Gt, requireAsset as H, CheckoutReconciliation as Ha, inboxPhase as Hi, VerificationOperations as Hn, TelemetryPortEvent as Ho, PermissionApprovalInput as Hr, PROVIDER_PROBLEMS as Hs, OrgMeMethod as Ht, failureProperties as I, AccountProviderSource as Ia, AccountMethods as Ii, BankAccountDetails as In, BudgetIntent as Io, TOKENS as Ir, toAddress as Is, InvitePrepared as It, CapxulClient as J, OfferCheckoutPreparation as Ja, ActivityFilter as Ji, Ref$1 as Jn, normalizeCapxulOperation as Jo, PermissionChangeInput as Jr, AssetAmount as Js, BankDepositsListOptions as Jt, isMoneyParseError as K, FixedOfferDraftSchema as Ka, ActivityAnnotationInput as Ki, VerificationStatus as Kn, NormalizedCapxulOperation as Ko, PermissionAssignInput as Kr, ProviderRefusalMode as Ks, BankDepositCandidatesOptions as Kt, withheld as L, AccountRequirement as La, DepositInstructions as Li, BankAccountField as Ln, CurrentPolicy as Lo, ApprovalInput as Lr, FAILURE_CLASSES as Ls, InvitePreviewInput as Lt, createOpenfortBrowserSigner as M, SignerStatus as Ma, Approval as Mi, BankDetails as Mn, InvitePreview as Mo, Valuation as Mr, AuthSession as Ms, InvitationSnapshot as Mt, CAPXUL_PAYMENTS_V2_ADDRESS as N, SignerStatusStore as Na, AccountLifecycle as Ni, BankDetailsOverview as Nn, OfferedAuthority as No, valueActivitySummary as Nr, AuthUserId as Ns, InvitationSubscriptionOptions as Nt, OpenfortBrowserAuth as O, fingerprintPaymentIntent as Oa, PayrollRunSnapshot as Oi, BankDeposit as On, InvitationTarget as Oo, CurrentHoldings as Or, Handle as Os, OrganizationAccount as Ot, FailureProperties as P, injectedWalletSigner as Pa, AccountSetupStep as Pi, SettlementToken as Pn, SpendingScope as Po, valueIn as Pr, Address$1 as Ps, InviteMethod as Pt, IdentityRuntimeSendResult as Q, InvoiceCheckoutReconciliation as Qa, ActivityMethods as Qi, OrganizationPaymentBatchInput as Qn, ObservationContext as Qo, PermissionPolicyChange as Qr, toCurrencyCode as Qs, DestinationListInput as Qt, formatMoney as R, Eip1193Provider as Ra, Home as Ri, BankAccountFilter as Rn, Permission as Ro, ApprovalOutcome as Rr, FailureClass as Rs, OrgInvitations as Rt, OpenfortEmbeddedWalletApi as S, ReadyAccountLifecycle as Sa, PayrollOptions as Si, isCheckoutSettlementConsumed as Sn, InvitationAcceptInput as So, PaymentQuoteInput as Sr, AccountId as Ss, MemberStatus as St, DevPrivateKeySignerInput as T, Profile as Ta, PayrollRunStatus as Ti, BankAccountRequirementsInput as Tn, InvitationPageInput as To, SmartAccountMethods as Tr, TesterKind as Ts, OrgScopedMethods as Tt, toRaw as U, CheckoutState as Ua, paymentPhase as Ui, VerificationAnswers as Un, TelemetryPort as Uo, PermissionWrite as Ur, ProviderEvidence as Us, OrgMeOptions as Ut, parseAssetAmount as V, CheckoutReceipt as Va, ActivityPhase as Vi, VerificationMethods as Vn, TelemetryEvent as Vo, InvitationApprovalInput as Vr, PROVIDERS as Vs, OrgMe as Vt, MoneyParseError as W, FixedOffer as Wa, requestPhase as Wi, VerificationPersonInput as Wn, CAPXUL_OPERATIONS as Wo, decodePermissionIntent as Wr, ProviderName as Ws, BankDetailsMethods as Wt, IdentityProfileDetails as X, PreparedOfferCheckoutExecution as Xa, ActivityKind as Xi, TargetReference as Xn, oauthBearerAuthClient as Xo, PermissionMethods as Xr, Money as Xs, DestinationAddInput as Xt, CreateCapxulClientInput as Y, PrepareOfferCheckoutExecutionInput as Ya, ActivityItem as Yi, ResolvedTarget as Yn, OAuthBearerAuthClientInput as Yo, PermissionCreateInput as Yr, AssetId as Ys, Destination$1 as Yt, IdentityRuntime as Z, InvoiceCheckoutPreparation as Za, ActivityListParams as Zi, TargetsMethods as Zn, ObservationAdapter as Zo, PermissionOptions as Zr, toAssetId as Zs, DestinationKind as Zt, PostHogObservabilityOptions as _, OrganizationOnboarding as _a, PayrollGroup as _i, InboxMethods as _n, SetupIssue as _o, InvoiceDraft as _r, RoleKey as _s, OrgLane as _t, CheckoutLinkReference as a, MovementActivityEvidence as aa, RevertSummary as ac, SubmittedPermissionExecution as ai, ActorRelationshipMethods as an, RequestCheckoutPreparation as ao, PaymentDirection as ar, ActorReference as as, isClaimed as at, embeddedSigner as b, PersonOnboarding as ba, PayrollGroupsMethods as bi, PayInvoiceRegisteredInput as bn, EndingReason as bo, PaymentInstructionInput as br, toPermissionId as bs, AssignmentProjection as bt, captureException as c, PAYMENT_STATUSES as ca, CAPXUL_ERROR_CODES as cc, CancelApprovalInput as ci, AddressBookLabelInput as cn, RequestCheckoutSummary as co, PaymentMoney as cr, Page as cs, CurrentUserMethods as ct, createCapxulClient as d, PaymentDocumentReadRef as da, RequestApprovalInput as di, ActorRequestIssueInput as dn, PaymentQuote as do, PaymentStatus as dr, toOrgId as ds, AccountSetupPolicy as dt, ActivityRange as ea, CapxulErrorDetails as ec, PermissionReadResult as ei, DestinationRail as en, InvoiceCheckoutSummary as eo, OrganizationPaymentItemInput as er, SdkFailureObservation as es, UploadImageResult as et, CapxulClientInput as f, PaymentDocumentRender as fa, RetryApprovalInput as fi, ActorRequestsMethods as fn, InvocationControls as fo, PaymentSubscriptionOptions as fr, PayrollGroupId as fs, ClientRequests as ft, PostHogObservabilityClient as g, OnboardingMethods as ga, PayrollEngagementTerms as gi, InboxItem as gn, OrganizationSetupSnapshot as go, PaymentsPayOptions as gr, PermissionId as gs, IdentityState as gt, PostHogFailureCapture as h, CompletedPersonProfile as ha, AuthorizeRunOptions as hi, InboxFulfillOptions as hn, OrganizationSetupPageInput as ho, PaymentsPayInput as hr, BudgetId as hs, IdentityTransition as ht, hasWarningCode as i, ActivitySummaryTotal as ia, ChainUpstream as ic, PermissionCommandView as ii, ActorProfileMethods as in, PreparedRequestCheckoutExecution as io, Payment as ir, CachedJwt as is, destination as it, OpenfortBrowserSignerOptions as j, Eip1193RequestProvider as ja, PayrollRunDetail as ji, BankDepositsPage as jn, InviteInput as jo, RateSource as jr, toPartyId as js, RoleView as jt, OpenfortBrowserSigner as k, CapxulDigestSigner as ka, PayrollGroupIdSchema as ki, BankDepositCandidatesPage as kn, InvitationView as ko, AccountsMethods as kr, PartyId as ks, OrganizationAuditLogItem as kt, captureExceptionSync as l, PaymentDocumentsMethods as la, CapxulErrorCode as lc, PayrollRunApprovalInput as li, AddressBookMethods as ln, RequestPaymentConfirmation as lo, PaymentPrepared as lr, ORGANIZATION_SETUP_REASONS as ls, AuthMethods as lt, PostHogFailureCanonicalWords as m, LineItemV3 as ma, AuthorizeRunInput as mi, InboxApproveInput as mn, OrganizationSetupPage as mo, PaymentType as mr, toPayrollGroupId as ms, IdentityEvent as mt, Warning as n, ActivitySummary as na, CHAIN_UPSTREAMS as nc, PermissionRevokeInput as ni, DestinationsMethods as nn, PrepareRequestCheckoutExecutionInput as no, OrganizationPaymentsMethods as nr, AuthCachePort as ns, SystemMethods as nt, checkoutUrl as o, PaymentActivityEvidence as oa, FAILURE_MODES as oc, PermissionIntent as oi, AddressBookAddInput as on, RequestCheckoutReconciliation as oo, PaymentDocumentKind as or, CapxulResult as os, isRestoring as ot, HostObservability as p, PaymentDocumentVerification as pa, decodePayrollRunInput as pi, OffersMethods as pn, OrganizationSetup as po, PaymentTiming as pr, PayrollRunId as ps, ClientRequestView as pt, parseMoney as q, OfferCheckout as qa, ActivityDetail as qi, RecipientResolution as qn, isCapxulOperation as qo, PermissionAssignmentEffect as qr, ProviderUnavailableMode as qs, BankDepositMethods as qt, WarningCode as r, ActivitySummaryParams as ra, ChainCause as rc, PermissionCommandSnapshot as ri, ActorProfile as rn, PreparedInvoiceCheckoutExecution as ro, PaymentsMethods as rr, AuthCachePortTag as rs, Destination as rt, HandledErrorReportContext as s, PAYMENT_DIRECTIONS as sa, FailureMode as sc, OrganizationApprovalInput as si, AddressBookEntry as sn, RequestCheckoutState as so, PaymentDocumentRef as sr, OperationResult as ss, CurrentUserContext as st, WARNING_CODES as t, ActivityReference as ta, isCapxulError as tc, PermissionReplaceInput as ti, DestinationRemoveInput as tn, PrepareInvoiceCheckoutExecutionInput as to, OrganizationPaymentRetryPreview as tr, AuthCacheError as ts, SystemHealth as tt, CAPXUL_SDK_EXPECTED_OUTCOME_EVENT as u, PaymentDocumentDownload as ua, EXPECTED_OPERATION_OUTCOMES as uc, RedirectApprovalInput as ui, ActorRequest as un, RequestPaymentTerms as uo, PaymentSnapshot as ur, OrgId as us, Session as ut, postHogObservability as v, OrganizationOnboardingInput as va, PayrollGroupInput as vi, CheckoutsMethods as vn, Unsubscribe as vo, PaymentDocumentOptions as vr, toBudgetId as vs, Readiness as vt, openfortEmbeddedWalletPort as w, IdentityMethods as wa, PayrollRunItemInput as wi, BankAccountRequirements as wn, InvitationPage as wo, SmartAccount as wr, CountryCode as ws, OrgMethods as wt, openfortEmbeddedSignerFromWallet as x, PersonOnboardingInput as xa, PayrollMethods as xi, PayRequestRegisteredInput as xn, GranteeRef as xo, SupportingReceiptInput as xr, Account$1 as xs, MemberIdentityProjection as xt, OpenfortEmbeddedSignerInput as y, OrganizationOnboardingOptions as ya, PayrollGroupMember as yi, CreateOfferCheckoutInput as yn, AuthorityRef as yo, PaymentDocumentOptionsSchema as yr, toPermissionAssignmentId as ys, StateLabel as yt, assetSymbolFor as z, eip1193AccountProvider as za, MeMethods as zi, BankAccountTarget as zn, TelemetryGroupInput as zo, ApprovalWaitOptions as zr, failureClass as zs, OwnInvitationsMethod as zt };