@capxul/sdk 4.20.0-beta.36 → 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.
- package/README.md +8 -0
- package/dist/{access-D5D77YLI.mjs → access-aMjL10vw.mjs} +7299 -6134
- package/dist/{index-9tVY0-g7.d.mts → index-DzfcTT6t.d.mts} +424 -136
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +41 -37
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/{organizations-BKiw2PjB.mjs → organizations-DPpyjjx2.mjs} +123 -132
- package/dist/{permission-approvals-B2LrXyRx.mjs → permission-approvals-B6Oqszeb.mjs} +4 -4
- package/dist/{production-CLAx7XAB.mjs → production-PGbIhEG0.mjs} +731 -264
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.mjs +21 -8
- package/package.json +4 -4
|
@@ -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
|
|
24
|
-
* auth
|
|
25
|
-
* path. `
|
|
26
|
-
* (
|
|
27
|
-
*
|
|
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
|
-
/**
|
|
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,33 +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">;
|
|
250
345
|
/**
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
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).
|
|
254
375
|
*/
|
|
255
|
-
readonly
|
|
376
|
+
readonly providerRefusedInput: <C = never>(input: ProviderInputRefusalInput<C>) => CapxulError<"INVALID_INPUT">;
|
|
256
377
|
readonly capabilityUnavailable: (provider: string, operation: string) => CapxulError<"CAPABILITY_UNAVAILABLE">;
|
|
257
|
-
readonly invalidInput: (field: string, reason: string) => CapxulError<"INVALID_INPUT">;
|
|
258
|
-
readonly envMissing: (name: string) => CapxulError<"ENV_MISSING">;
|
|
259
|
-
readonly notImplemented: (domain: string, method: string) => CapxulError<"NOT_IMPLEMENTED">;
|
|
260
378
|
/**
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
* downstream observers can distinguish failure modes without parsing the
|
|
265
|
-
* message string. The redacted message names the timeout budget; the
|
|
266
|
-
* 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).
|
|
267
382
|
*/
|
|
268
|
-
readonly
|
|
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">;
|
|
269
387
|
readonly verificationRequired: (details: VerificationRequiredDetails) => CapxulError<"VERIFICATION_REQUIRED">;
|
|
270
388
|
readonly insufficientBalance: (asset: string, available: string, required: string) => CapxulError<"INSUFFICIENT_BALANCE">;
|
|
271
389
|
readonly invalidRecipient: (reason: string) => CapxulError<"INVALID_RECIPIENT">;
|
|
@@ -295,33 +413,34 @@ declare const Errors: {
|
|
|
295
413
|
* Roles condition violation) from an inconclusive infra failure. A confirmed
|
|
296
414
|
* revert is the ONLY mode the org spend port may map to a roles denial.
|
|
297
415
|
*/
|
|
298
|
-
readonly transactionFailed: (operation: string, cause?:
|
|
416
|
+
readonly transactionFailed: <C = never>(operation: string, cause?: Caught<C>, extra?: {
|
|
299
417
|
readonly reason?: string;
|
|
418
|
+
readonly userOpHash?: string;
|
|
300
419
|
}) => CapxulError<"TRANSACTION_FAILED">;
|
|
301
420
|
readonly rateLimited: (details?: {
|
|
302
421
|
readonly retryAfterMs?: number;
|
|
303
422
|
readonly resource?: string;
|
|
304
423
|
}) => CapxulError<"RATE_LIMITED">;
|
|
305
|
-
readonly networkError: (operation: string, cause?:
|
|
306
|
-
readonly unknown: (cause?:
|
|
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">;
|
|
307
426
|
readonly otpExpired: (details?: {
|
|
308
427
|
readonly email?: string;
|
|
309
428
|
readonly expiredAt?: number;
|
|
310
429
|
}) => CapxulError<"OTP_EXPIRED">;
|
|
311
|
-
readonly signerRejected: (details: {
|
|
430
|
+
readonly signerRejected: <C = never>(details: {
|
|
312
431
|
readonly source: SignerSource;
|
|
313
432
|
readonly reason?: string;
|
|
314
|
-
readonly cause?:
|
|
433
|
+
readonly cause?: Caught<C>;
|
|
315
434
|
}) => CapxulError<"SIGNER_REJECTED">;
|
|
316
435
|
readonly superseded: (details: {
|
|
317
436
|
readonly operation: string;
|
|
318
437
|
readonly reason: string;
|
|
319
438
|
readonly executionId?: string;
|
|
320
439
|
}) => CapxulError<"SUPERSEDED">;
|
|
321
|
-
readonly cancelled: (details?: {
|
|
440
|
+
readonly cancelled: <C = never>(details?: {
|
|
322
441
|
readonly operation?: string;
|
|
323
442
|
readonly reason?: string;
|
|
324
|
-
}) => CapxulError<"CANCELLED">;
|
|
443
|
+
}, cause?: Caught<C>) => CapxulError<"CANCELLED">;
|
|
325
444
|
/**
|
|
326
445
|
* Method called from a flow state where its precondition fails (TA16). The
|
|
327
446
|
* SDK's method API short-circuits with this error before driving the
|
|
@@ -338,6 +457,37 @@ declare const Errors: {
|
|
|
338
457
|
}) => CapxulError<"WRONG_STATE">;
|
|
339
458
|
};
|
|
340
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
|
|
341
491
|
//#region ../protocol/src/errors/schema.d.ts
|
|
342
492
|
declare const SerializedCapxulErrorSchema: Schema.Struct<{
|
|
343
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"]>;
|
|
@@ -345,9 +495,9 @@ declare const SerializedCapxulErrorSchema: Schema.Struct<{
|
|
|
345
495
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
346
496
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
347
497
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
348
|
-
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"]>>;
|
|
349
499
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
350
|
-
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"]>;
|
|
351
501
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
352
502
|
readonly method: Schema.String;
|
|
353
503
|
readonly retryable: Schema.Boolean;
|
|
@@ -361,7 +511,7 @@ declare const SerializedCapxulErrorSchema: Schema.Struct<{
|
|
|
361
511
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
362
512
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
363
513
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
364
|
-
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"]>;
|
|
365
515
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
366
516
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
367
517
|
readonly durationMs: Schema.Finite;
|
|
@@ -586,7 +736,15 @@ type OperationError<O extends Operation> = O["errors"][number];
|
|
|
586
736
|
* through the SDK can return any of them.
|
|
587
737
|
*/
|
|
588
738
|
declare const CALLER_SIDE: readonly ["NETWORK_ERROR", "CANCELLED", "UNKNOWN", "NOT_IMPLEMENTED", "CAPABILITY_UNAVAILABLE"];
|
|
589
|
-
|
|
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];
|
|
590
748
|
/** Every code a caller of this operation can receive: the row's, plus the caller side's. */
|
|
591
749
|
type CallError<O extends Operation> = OperationError<O> | CallerSideCode;
|
|
592
750
|
type Spec<Input extends WireInput, Output extends WireSchema, Code extends CapxulErrorCode> = {
|
|
@@ -786,6 +944,11 @@ interface SdkFailureDetail {
|
|
|
786
944
|
readonly navigator_online?: boolean;
|
|
787
945
|
readonly last_browser_event?: string;
|
|
788
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;
|
|
789
952
|
/** ADR-0023 R7: the chain cause, flat, same keys as every other producer. */
|
|
790
953
|
readonly chain_upstream?: string;
|
|
791
954
|
readonly chain_method?: string;
|
|
@@ -923,6 +1086,12 @@ declare class ConvexCallError extends ConvexCallError_base<{
|
|
|
923
1086
|
readonly cause: unknown;
|
|
924
1087
|
readonly details?: CapxulErrorDetails;
|
|
925
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;
|
|
926
1095
|
}> {}
|
|
927
1096
|
interface ConvexCallPort {
|
|
928
1097
|
query<TArgs extends Record<string, unknown>, TOutput>(fn: FunctionReference<"query", "public", TArgs, TOutput>, args: TArgs, options?: {
|
|
@@ -1572,7 +1741,7 @@ declare const claims: {
|
|
|
1572
1741
|
readonly deployedAt: Schema.NullOr<Schema.Finite>;
|
|
1573
1742
|
readonly claimedAt: Schema.NullOr<Schema.Finite>;
|
|
1574
1743
|
readonly createdAt: Schema.Finite;
|
|
1575
|
-
}>, "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">;
|
|
1576
1745
|
};
|
|
1577
1746
|
declare const balances: {
|
|
1578
1747
|
/** Every settlement asset's raw balance in the caller's personal Safe on this chain. */
|
|
@@ -1599,7 +1768,7 @@ declare const grants: {
|
|
|
1599
1768
|
readonly rawAmount: Schema.String;
|
|
1600
1769
|
}>, Schema.Struct<{
|
|
1601
1770
|
readonly txHash: Schema.String;
|
|
1602
|
-
}>, "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">;
|
|
1603
1772
|
};
|
|
1604
1773
|
/**
|
|
1605
1774
|
* A prepared money action waits here for the person to sign it with their own
|
|
@@ -1643,7 +1812,7 @@ declare const approvals: {
|
|
|
1643
1812
|
readonly explorerUrl: Schema.String;
|
|
1644
1813
|
}>;
|
|
1645
1814
|
readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1646
|
-
readonly code: Schema.
|
|
1815
|
+
readonly code: Schema.String;
|
|
1647
1816
|
readonly message: Schema.String;
|
|
1648
1817
|
}>>>;
|
|
1649
1818
|
}>;
|
|
@@ -1718,7 +1887,7 @@ declare const approvals: {
|
|
|
1718
1887
|
readonly explorerUrl: Schema.String;
|
|
1719
1888
|
}>;
|
|
1720
1889
|
readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1721
|
-
readonly code: Schema.
|
|
1890
|
+
readonly code: Schema.String;
|
|
1722
1891
|
readonly message: Schema.String;
|
|
1723
1892
|
}>>>;
|
|
1724
1893
|
}>;
|
|
@@ -1794,7 +1963,7 @@ declare const approvals: {
|
|
|
1794
1963
|
readonly explorerUrl: Schema.String;
|
|
1795
1964
|
}>;
|
|
1796
1965
|
readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1797
|
-
readonly code: Schema.
|
|
1966
|
+
readonly code: Schema.String;
|
|
1798
1967
|
readonly message: Schema.String;
|
|
1799
1968
|
}>>>;
|
|
1800
1969
|
}>;
|
|
@@ -1871,7 +2040,7 @@ declare const approvals: {
|
|
|
1871
2040
|
readonly explorerUrl: Schema.String;
|
|
1872
2041
|
}>;
|
|
1873
2042
|
readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1874
|
-
readonly code: Schema.
|
|
2043
|
+
readonly code: Schema.String;
|
|
1875
2044
|
readonly message: Schema.String;
|
|
1876
2045
|
}>>>;
|
|
1877
2046
|
}>;
|
|
@@ -1950,7 +2119,7 @@ declare const approvals: {
|
|
|
1950
2119
|
readonly explorerUrl: Schema.String;
|
|
1951
2120
|
}>;
|
|
1952
2121
|
readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1953
|
-
readonly code: Schema.
|
|
2122
|
+
readonly code: Schema.String;
|
|
1954
2123
|
readonly message: Schema.String;
|
|
1955
2124
|
}>>>;
|
|
1956
2125
|
}>;
|
|
@@ -2025,7 +2194,7 @@ declare const approvals: {
|
|
|
2025
2194
|
readonly explorerUrl: Schema.String;
|
|
2026
2195
|
}>;
|
|
2027
2196
|
readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2028
|
-
readonly code: Schema.
|
|
2197
|
+
readonly code: Schema.String;
|
|
2029
2198
|
readonly message: Schema.String;
|
|
2030
2199
|
}>>>;
|
|
2031
2200
|
}>;
|
|
@@ -2101,7 +2270,7 @@ declare const approvals: {
|
|
|
2101
2270
|
readonly explorerUrl: Schema.String;
|
|
2102
2271
|
}>;
|
|
2103
2272
|
readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2104
|
-
readonly code: Schema.
|
|
2273
|
+
readonly code: Schema.String;
|
|
2105
2274
|
readonly message: Schema.String;
|
|
2106
2275
|
}>>>;
|
|
2107
2276
|
}>;
|
|
@@ -3976,9 +4145,9 @@ declare const workspaces: {
|
|
|
3976
4145
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
3977
4146
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
3978
4147
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
3979
|
-
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"]>>;
|
|
3980
4149
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
3981
|
-
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"]>;
|
|
3982
4151
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
3983
4152
|
readonly method: Schema.String;
|
|
3984
4153
|
readonly retryable: Schema.Boolean;
|
|
@@ -3992,7 +4161,7 @@ declare const workspaces: {
|
|
|
3992
4161
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
3993
4162
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3994
4163
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
3995
|
-
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"]>;
|
|
3996
4165
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
3997
4166
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
3998
4167
|
readonly durationMs: Schema.Finite;
|
|
@@ -4013,9 +4182,9 @@ declare const workspaces: {
|
|
|
4013
4182
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4014
4183
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
4015
4184
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
4016
|
-
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"]>>;
|
|
4017
4186
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
4018
|
-
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"]>;
|
|
4019
4188
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4020
4189
|
readonly method: Schema.String;
|
|
4021
4190
|
readonly retryable: Schema.Boolean;
|
|
@@ -4029,7 +4198,7 @@ declare const workspaces: {
|
|
|
4029
4198
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
4030
4199
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4031
4200
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4032
|
-
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"]>;
|
|
4033
4202
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
4034
4203
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
4035
4204
|
readonly durationMs: Schema.Finite;
|
|
@@ -4268,9 +4437,9 @@ declare const setups: {
|
|
|
4268
4437
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4269
4438
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
4270
4439
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
4271
|
-
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"]>>;
|
|
4272
4441
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
4273
|
-
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"]>;
|
|
4274
4443
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4275
4444
|
readonly method: Schema.String;
|
|
4276
4445
|
readonly retryable: Schema.Boolean;
|
|
@@ -4284,7 +4453,7 @@ declare const setups: {
|
|
|
4284
4453
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
4285
4454
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4286
4455
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4287
|
-
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"]>;
|
|
4288
4457
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
4289
4458
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
4290
4459
|
readonly durationMs: Schema.Finite;
|
|
@@ -4305,9 +4474,9 @@ declare const setups: {
|
|
|
4305
4474
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4306
4475
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
4307
4476
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
4308
|
-
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"]>>;
|
|
4309
4478
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
4310
|
-
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"]>;
|
|
4311
4480
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4312
4481
|
readonly method: Schema.String;
|
|
4313
4482
|
readonly retryable: Schema.Boolean;
|
|
@@ -4321,7 +4490,7 @@ declare const setups: {
|
|
|
4321
4490
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
4322
4491
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4323
4492
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4324
|
-
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"]>;
|
|
4325
4494
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
4326
4495
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
4327
4496
|
readonly durationMs: Schema.Finite;
|
|
@@ -4355,9 +4524,9 @@ declare const setups: {
|
|
|
4355
4524
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4356
4525
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
4357
4526
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
4358
|
-
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"]>>;
|
|
4359
4528
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
4360
|
-
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"]>;
|
|
4361
4530
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4362
4531
|
readonly method: Schema.String;
|
|
4363
4532
|
readonly retryable: Schema.Boolean;
|
|
@@ -4371,7 +4540,7 @@ declare const setups: {
|
|
|
4371
4540
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
4372
4541
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4373
4542
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4374
|
-
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"]>;
|
|
4375
4544
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
4376
4545
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
4377
4546
|
readonly durationMs: Schema.Finite;
|
|
@@ -4392,9 +4561,9 @@ declare const setups: {
|
|
|
4392
4561
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4393
4562
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
4394
4563
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
4395
|
-
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"]>>;
|
|
4396
4565
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
4397
|
-
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"]>;
|
|
4398
4567
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4399
4568
|
readonly method: Schema.String;
|
|
4400
4569
|
readonly retryable: Schema.Boolean;
|
|
@@ -4408,7 +4577,7 @@ declare const setups: {
|
|
|
4408
4577
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
4409
4578
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4410
4579
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4411
|
-
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"]>;
|
|
4412
4581
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
4413
4582
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
4414
4583
|
readonly durationMs: Schema.Finite;
|
|
@@ -4469,9 +4638,9 @@ declare const setups: {
|
|
|
4469
4638
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4470
4639
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
4471
4640
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
4472
|
-
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"]>>;
|
|
4473
4642
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
4474
|
-
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"]>;
|
|
4475
4644
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4476
4645
|
readonly method: Schema.String;
|
|
4477
4646
|
readonly retryable: Schema.Boolean;
|
|
@@ -4485,7 +4654,7 @@ declare const setups: {
|
|
|
4485
4654
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
4486
4655
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4487
4656
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4488
|
-
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"]>;
|
|
4489
4658
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
4490
4659
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
4491
4660
|
readonly durationMs: Schema.Finite;
|
|
@@ -4506,9 +4675,9 @@ declare const setups: {
|
|
|
4506
4675
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4507
4676
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
4508
4677
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
4509
|
-
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"]>>;
|
|
4510
4679
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
4511
|
-
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"]>;
|
|
4512
4681
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4513
4682
|
readonly method: Schema.String;
|
|
4514
4683
|
readonly retryable: Schema.Boolean;
|
|
@@ -4522,7 +4691,7 @@ declare const setups: {
|
|
|
4522
4691
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
4523
4692
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4524
4693
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4525
|
-
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"]>;
|
|
4526
4695
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
4527
4696
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
4528
4697
|
readonly durationMs: Schema.Finite;
|
|
@@ -4557,9 +4726,9 @@ declare const setups: {
|
|
|
4557
4726
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4558
4727
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
4559
4728
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
4560
|
-
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"]>>;
|
|
4561
4730
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
4562
|
-
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"]>;
|
|
4563
4732
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4564
4733
|
readonly method: Schema.String;
|
|
4565
4734
|
readonly retryable: Schema.Boolean;
|
|
@@ -4573,7 +4742,7 @@ declare const setups: {
|
|
|
4573
4742
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
4574
4743
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4575
4744
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4576
|
-
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"]>;
|
|
4577
4746
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
4578
4747
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
4579
4748
|
readonly durationMs: Schema.Finite;
|
|
@@ -4594,9 +4763,9 @@ declare const setups: {
|
|
|
4594
4763
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4595
4764
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
4596
4765
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
4597
|
-
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"]>>;
|
|
4598
4767
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
4599
|
-
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"]>;
|
|
4600
4769
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4601
4770
|
readonly method: Schema.String;
|
|
4602
4771
|
readonly retryable: Schema.Boolean;
|
|
@@ -4610,7 +4779,7 @@ declare const setups: {
|
|
|
4610
4779
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
4611
4780
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4612
4781
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4613
|
-
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"]>;
|
|
4614
4783
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
4615
4784
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
4616
4785
|
readonly durationMs: Schema.Finite;
|
|
@@ -4654,7 +4823,7 @@ declare const setups: {
|
|
|
4654
4823
|
readonly paymasterPostOpGasLimit: Schema.optional<Schema.Codec<`0x${string}`, string, never, never>>;
|
|
4655
4824
|
readonly paymasterData: Schema.Codec<`0x${string}`, string, never, never>;
|
|
4656
4825
|
}>;
|
|
4657
|
-
}>, "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">;
|
|
4658
4827
|
/** Accept the signed bootstrap's hash, then send it from the one elected sender. */
|
|
4659
4828
|
submitAuthorization: Operation<"action", "organizations.setups.submitAuthorization", Schema.Struct<{
|
|
4660
4829
|
readonly orgId: Schema.NonEmptyString;
|
|
@@ -4690,9 +4859,9 @@ declare const setups: {
|
|
|
4690
4859
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4691
4860
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
4692
4861
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
4693
|
-
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"]>>;
|
|
4694
4863
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
4695
|
-
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"]>;
|
|
4696
4865
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4697
4866
|
readonly method: Schema.String;
|
|
4698
4867
|
readonly retryable: Schema.Boolean;
|
|
@@ -4706,7 +4875,7 @@ declare const setups: {
|
|
|
4706
4875
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
4707
4876
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4708
4877
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4709
|
-
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"]>;
|
|
4710
4879
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
4711
4880
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
4712
4881
|
readonly durationMs: Schema.Finite;
|
|
@@ -4727,9 +4896,9 @@ declare const setups: {
|
|
|
4727
4896
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4728
4897
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
4729
4898
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
4730
|
-
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"]>>;
|
|
4731
4900
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
4732
|
-
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"]>;
|
|
4733
4902
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4734
4903
|
readonly method: Schema.String;
|
|
4735
4904
|
readonly retryable: Schema.Boolean;
|
|
@@ -4743,7 +4912,7 @@ declare const setups: {
|
|
|
4743
4912
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
4744
4913
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4745
4914
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
4746
|
-
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"]>;
|
|
4747
4916
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
4748
4917
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
4749
4918
|
readonly durationMs: Schema.Finite;
|
|
@@ -5041,7 +5210,7 @@ declare const verifications$1: {
|
|
|
5041
5210
|
readonly argv: Schema.$Array<Schema.String>;
|
|
5042
5211
|
}>;
|
|
5043
5212
|
readonly status: Schema.Literals<readonly ["in_review", "approved", "rejected", "restricted"]>;
|
|
5044
|
-
}>]>, "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">;
|
|
5045
5214
|
start: Operation<"action", "parties.verifications.start", Schema.Struct<{
|
|
5046
5215
|
readonly orgId: Schema.optionalKey<Schema.String>;
|
|
5047
5216
|
readonly invitationId: Schema.optionalKey<Schema.String>;
|
|
@@ -5167,7 +5336,7 @@ declare const verifications$1: {
|
|
|
5167
5336
|
readonly argv: Schema.$Array<Schema.String>;
|
|
5168
5337
|
}>;
|
|
5169
5338
|
readonly status: Schema.Literals<readonly ["in_review", "approved", "rejected", "restricted"]>;
|
|
5170
|
-
}>]>, "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">;
|
|
5171
5340
|
status: Operation<"action", "parties.verifications.status", Schema.Struct<{
|
|
5172
5341
|
orgId: Schema.optionalKey<Schema.String>;
|
|
5173
5342
|
invitationId: Schema.optionalKey<Schema.String>;
|
|
@@ -5292,7 +5461,7 @@ declare const verifications$1: {
|
|
|
5292
5461
|
readonly argv: Schema.$Array<Schema.String>;
|
|
5293
5462
|
}>;
|
|
5294
5463
|
readonly status: Schema.Literals<readonly ["in_review", "approved", "rejected", "restricted"]>;
|
|
5295
|
-
}>]>, "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">;
|
|
5296
5465
|
answer: Operation<"action", "parties.verifications.answer", Schema.Struct<{
|
|
5297
5466
|
readonly orgId: Schema.optionalKey<Schema.String>;
|
|
5298
5467
|
readonly invitationId: Schema.optionalKey<Schema.String>;
|
|
@@ -5419,7 +5588,7 @@ declare const verifications$1: {
|
|
|
5419
5588
|
readonly argv: Schema.$Array<Schema.String>;
|
|
5420
5589
|
}>;
|
|
5421
5590
|
readonly status: Schema.Literals<readonly ["in_review", "approved", "rejected", "restricted"]>;
|
|
5422
|
-
}>]>, "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">;
|
|
5423
5592
|
};
|
|
5424
5593
|
declare const contacts: {
|
|
5425
5594
|
/** The actor's address book, most recent activity first. Hidden entries only when asked. */
|
|
@@ -5892,10 +6061,10 @@ declare const quotes: {
|
|
|
5892
6061
|
}>;
|
|
5893
6062
|
readonly rate: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
5894
6063
|
readonly warnings: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
5895
|
-
readonly code: import("effect/Schema").
|
|
6064
|
+
readonly code: import("effect/Schema").String;
|
|
5896
6065
|
readonly message: import("effect/Schema").String;
|
|
5897
6066
|
}>>;
|
|
5898
|
-
}>, "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">;
|
|
5899
6068
|
};
|
|
5900
6069
|
//#endregion
|
|
5901
6070
|
//#region ../protocol/src/payments/operations.d.ts
|
|
@@ -6839,7 +7008,7 @@ declare const commands$1: {
|
|
|
6839
7008
|
readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
|
|
6840
7009
|
}>;
|
|
6841
7010
|
}>>;
|
|
6842
|
-
}>, "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">;
|
|
6843
7012
|
/** A batch of Payments from an Organization Budget the caller may spend from. */
|
|
6844
7013
|
prepareOrganization: Operation<"action", "payments.commands.prepareOrganization", Schema.Struct<{
|
|
6845
7014
|
readonly orgId: Schema.refine<string, Schema.String>;
|
|
@@ -8654,7 +8823,7 @@ declare const commands$1: {
|
|
|
8654
8823
|
readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
|
|
8655
8824
|
}>>;
|
|
8656
8825
|
}>>;
|
|
8657
|
-
}>, "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">;
|
|
8658
8827
|
/** The Payment a payer confirmed for a request, exactly as the request froze it. */
|
|
8659
8828
|
prepareRequest: Operation<"action", "payments.commands.prepareRequest", Schema.Struct<{
|
|
8660
8829
|
readonly confirmation: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -10447,7 +10616,7 @@ declare const commands$1: {
|
|
|
10447
10616
|
readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
|
|
10448
10617
|
}>>;
|
|
10449
10618
|
}>>;
|
|
10450
|
-
}>, "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">;
|
|
10451
10620
|
/** A registered payer's Payment for an Offer checkout. */
|
|
10452
10621
|
prepareOfferCheckout: Operation<"action", "payments.commands.prepareOfferCheckout", Schema.Struct<{
|
|
10453
10622
|
readonly checkoutId: Schema.String;
|
|
@@ -10590,7 +10759,7 @@ declare const commands$1: {
|
|
|
10590
10759
|
readonly documentHash: Schema.Codec<DocumentHash, string, never, never>;
|
|
10591
10760
|
}>]>>;
|
|
10592
10761
|
}>;
|
|
10593
|
-
}>, "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">;
|
|
10594
10763
|
/** A registered payer's Payment for an Invoice checkout link. */
|
|
10595
10764
|
prepareInvoiceCheckout: Operation<"action", "payments.commands.prepareInvoiceCheckout", Schema.Struct<{
|
|
10596
10765
|
readonly linkToken: Schema.String;
|
|
@@ -10723,7 +10892,7 @@ declare const commands$1: {
|
|
|
10723
10892
|
readonly contractAddress: Schema.Codec<Address$1, string, never, never>;
|
|
10724
10893
|
readonly settlementId: Schema.Codec<`0x${string}`, string, never, never>;
|
|
10725
10894
|
}>;
|
|
10726
|
-
}>, "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">;
|
|
10727
10896
|
};
|
|
10728
10897
|
/** An existing Payment: retry its send, or claim, cancel or redirect its commitment. */
|
|
10729
10898
|
declare const lifecycles: {
|
|
@@ -12495,7 +12664,7 @@ declare const lifecycles: {
|
|
|
12495
12664
|
readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
|
|
12496
12665
|
}>>;
|
|
12497
12666
|
}>>;
|
|
12498
|
-
}>, "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">;
|
|
12499
12668
|
/** The same, refused unless the Payment belongs to the scope the caller names. */
|
|
12500
12669
|
prepareScoped: Operation<"action", "payments.lifecycles.prepareScoped", Schema.Struct<{
|
|
12501
12670
|
readonly signerAddress: Schema.Codec<Address$1, string, never, never>;
|
|
@@ -14270,7 +14439,7 @@ declare const lifecycles: {
|
|
|
14270
14439
|
readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
|
|
14271
14440
|
}>>;
|
|
14272
14441
|
}>>;
|
|
14273
|
-
}>, "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">;
|
|
14274
14443
|
/** What retrying an Organization's failed Payment would send again, before anyone signs. */
|
|
14275
14444
|
previewRetry: Operation<"query", "payments.lifecycles.previewRetry", Schema.Struct<{
|
|
14276
14445
|
readonly orgId: Schema.NonEmptyString;
|
|
@@ -14464,7 +14633,7 @@ declare const executions: {
|
|
|
14464
14633
|
readonly createdAt: Schema.Codec<EpochMs, number, never, never>;
|
|
14465
14634
|
readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
|
|
14466
14635
|
}>;
|
|
14467
|
-
}>, "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">;
|
|
14468
14637
|
/** Send any prepared command's signed execution and record every Payment it carries. */
|
|
14469
14638
|
submitCommand: Operation<"action", "payments.executions.submitCommand", Schema.Struct<{
|
|
14470
14639
|
readonly executionId: Schema.refine<string, Schema.String>;
|
|
@@ -14559,7 +14728,7 @@ declare const executions: {
|
|
|
14559
14728
|
readonly createdAt: Schema.Codec<EpochMs, number, never, never>;
|
|
14560
14729
|
readonly updatedAt: Schema.Codec<EpochMs, number, never, never>;
|
|
14561
14730
|
}>>;
|
|
14562
|
-
}>, "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">;
|
|
14563
14732
|
/** Close a prepared execution the signer refused or the caller dropped; false when it moved on. */
|
|
14564
14733
|
abandon: Operation<"action", "payments.executions.abandon", Schema.Struct<{
|
|
14565
14734
|
readonly executionId: Schema.refine<string, Schema.String>;
|
|
@@ -16471,7 +16640,7 @@ declare const runs: {
|
|
|
16471
16640
|
}>>;
|
|
16472
16641
|
}>;
|
|
16473
16642
|
}>]>;
|
|
16474
|
-
}>, "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">;
|
|
16475
16644
|
/** One saved run with its exact Payslips and Payments; null when the Organization has none by that id. */
|
|
16476
16645
|
get: Operation<"query", "payroll.runs.get", Schema.Struct<{
|
|
16477
16646
|
readonly orgId: Schema.NonEmptyString;
|
|
@@ -17366,16 +17535,6 @@ declare const commands: {
|
|
|
17366
17535
|
readonly retryCount: number;
|
|
17367
17536
|
readonly automaticRetry: "exhausted" | "none" | "scheduled";
|
|
17368
17537
|
readonly verification: {
|
|
17369
|
-
readonly status: "mismatch";
|
|
17370
|
-
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";
|
|
17371
|
-
readonly receipt?: {
|
|
17372
|
-
readonly chainId: ChainId;
|
|
17373
|
-
readonly userOpHash: `0x${string}`;
|
|
17374
|
-
readonly transactionHash: TxHash;
|
|
17375
|
-
readonly blockNumber: BlockNumber;
|
|
17376
|
-
readonly blockHash: `0x${string}`;
|
|
17377
|
-
} | undefined;
|
|
17378
|
-
} | {
|
|
17379
17538
|
readonly status: "pending";
|
|
17380
17539
|
readonly reason: "receipt_missing";
|
|
17381
17540
|
} | {
|
|
@@ -17401,6 +17560,16 @@ declare const commands: {
|
|
|
17401
17560
|
readonly dataHash: `0x${string}`;
|
|
17402
17561
|
}[];
|
|
17403
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;
|
|
17404
17573
|
} | {
|
|
17405
17574
|
readonly status: "provider_failure";
|
|
17406
17575
|
readonly retryable: true;
|
|
@@ -19212,7 +19381,7 @@ declare const commands: {
|
|
|
19212
19381
|
readonly limitRaw: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
|
|
19213
19382
|
readonly allowanceKey: Schema.optional<Schema.Codec<AllowanceKey, string, never, never>>;
|
|
19214
19383
|
}>>]>;
|
|
19215
|
-
}>, "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">;
|
|
19216
19385
|
/** Send the signed UserOperation, record it, and schedule its verification. */
|
|
19217
19386
|
submitExecution: Operation<"action", "permissions.commands.submitExecution", Schema.Struct<{
|
|
19218
19387
|
readonly executionId: Schema.refine<string, Schema.String>;
|
|
@@ -19308,7 +19477,7 @@ declare const commands: {
|
|
|
19308
19477
|
readonly limitRaw: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
|
|
19309
19478
|
readonly allowanceKey: Schema.optional<Schema.Codec<AllowanceKey, string, never, never>>;
|
|
19310
19479
|
}>>]>;
|
|
19311
|
-
}>, "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">;
|
|
19312
19481
|
};
|
|
19313
19482
|
declare const replacements: {
|
|
19314
19483
|
/** What replacing the Organization's Roles module would carry over, with its snapshot hash. */
|
|
@@ -20164,7 +20333,7 @@ declare const replacements: {
|
|
|
20164
20333
|
readonly limitRaw: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
|
|
20165
20334
|
readonly allowanceKey: Schema.optional<Schema.Codec<AllowanceKey, string, never, never>>;
|
|
20166
20335
|
}>>]>;
|
|
20167
|
-
}>, "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">;
|
|
20168
20337
|
};
|
|
20169
20338
|
declare const verifications: {
|
|
20170
20339
|
/** Read the receipt of the caller's submitted command and apply what it proves. */
|
|
@@ -20392,7 +20561,7 @@ declare const authorities: {
|
|
|
20392
20561
|
readonly everyDays: Schema.Finite;
|
|
20393
20562
|
readonly nextAt: Schema.Codec<EpochMs, number, never, never>;
|
|
20394
20563
|
}>>>;
|
|
20395
|
-
}>, "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">;
|
|
20396
20565
|
/** Whether the caller's Account may spend this amount from this Budget right now. */
|
|
20397
20566
|
authorize: Operation<"query", "permissions.authorities.authorize", Schema.Struct<{
|
|
20398
20567
|
readonly orgId: Schema.refine<string, Schema.String>;
|
|
@@ -20474,7 +20643,7 @@ declare const configurations: {
|
|
|
20474
20643
|
readonly signerAddress: Schema.Codec<Address$1, string, never, never>;
|
|
20475
20644
|
readonly userOpSenderSafe: Schema.Codec<SafeAddress, string, never, never>;
|
|
20476
20645
|
readonly digest: Schema.Codec<`0x${string}`, string, never, never>;
|
|
20477
|
-
}>, "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">;
|
|
20478
20647
|
/** Send the signed configuration, record it, and schedule its verification. */
|
|
20479
20648
|
submitExecution: Operation<"action", "permissions.configurations.submitExecution", Schema.Struct<{
|
|
20480
20649
|
readonly executionId: Schema.refine<string, Schema.String>;
|
|
@@ -20484,7 +20653,7 @@ declare const configurations: {
|
|
|
20484
20653
|
readonly executionId: Schema.refine<string, Schema.String>;
|
|
20485
20654
|
readonly commandId: Schema.Codec<PaymentCommandId, string, never, never>;
|
|
20486
20655
|
readonly userOpHash: Schema.Codec<`0x${string}`, string, never, never>;
|
|
20487
|
-
}>, "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">;
|
|
20488
20657
|
};
|
|
20489
20658
|
//#endregion
|
|
20490
20659
|
//#region ../protocol/src/profiles/operations.d.ts
|
|
@@ -25251,7 +25420,7 @@ declare const checkouts: {
|
|
|
25251
25420
|
readonly settlementId: Schema.Codec<`0x${string}`, string, never, never>;
|
|
25252
25421
|
readonly documentKind: Schema.Literals<readonly ["memo", "invoice"]>;
|
|
25253
25422
|
}>;
|
|
25254
|
-
}>, "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">;
|
|
25255
25424
|
/** An Invoice link's public terms, or null when the link names no Invoice. */
|
|
25256
25425
|
invoice: Operation<"query", "requests.checkouts.invoice", Schema.Struct<{
|
|
25257
25426
|
readonly linkToken: Schema.String;
|
|
@@ -26409,7 +26578,16 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
26409
26578
|
};
|
|
26410
26579
|
readonly auth: {
|
|
26411
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
|
+
};
|
|
26412
26589
|
readonly getSession: "auth.getSession";
|
|
26590
|
+
readonly resumeOtp: "auth.resumeOtp";
|
|
26413
26591
|
readonly signIn: "auth.signIn";
|
|
26414
26592
|
readonly signOut: "auth.signOut";
|
|
26415
26593
|
readonly sendVerificationOtp: "auth.sendVerificationOTP";
|
|
@@ -26419,10 +26597,6 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
26419
26597
|
readonly createOrg: "createOrg";
|
|
26420
26598
|
readonly orgs: "orgs";
|
|
26421
26599
|
};
|
|
26422
|
-
readonly clientRequests: {
|
|
26423
|
-
readonly decide: "clientRequests.decide";
|
|
26424
|
-
readonly read: "clientRequests.read";
|
|
26425
|
-
};
|
|
26426
26600
|
readonly currentUser: {
|
|
26427
26601
|
readonly get: "currentUser.get";
|
|
26428
26602
|
};
|
|
@@ -26467,8 +26641,10 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
26467
26641
|
readonly get: "me.get";
|
|
26468
26642
|
};
|
|
26469
26643
|
readonly onboarding: {
|
|
26644
|
+
readonly beginOrganization: "onboarding.beginOrganization";
|
|
26470
26645
|
readonly completeOrganization: "onboarding.completeOrganization";
|
|
26471
26646
|
readonly completePerson: "onboarding.completePerson";
|
|
26647
|
+
readonly listOrganizationSetups: "onboarding.listOrganizationSetups";
|
|
26472
26648
|
};
|
|
26473
26649
|
readonly smartAccount: {
|
|
26474
26650
|
readonly claim: "smartAccount.claim";
|
|
@@ -26553,6 +26729,9 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
26553
26729
|
};
|
|
26554
26730
|
readonly retry: "org.retry";
|
|
26555
26731
|
readonly roles: "org.roles";
|
|
26732
|
+
readonly setup: {
|
|
26733
|
+
readonly subscribe: "org.setup.subscribe";
|
|
26734
|
+
};
|
|
26556
26735
|
readonly treasury: "org.treasury";
|
|
26557
26736
|
};
|
|
26558
26737
|
readonly organization: {
|
|
@@ -26889,6 +27068,9 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
26889
27068
|
readonly health: "system.health";
|
|
26890
27069
|
readonly ping: "system.ping";
|
|
26891
27070
|
};
|
|
27071
|
+
readonly mcp: {
|
|
27072
|
+
readonly request: "mcp.request";
|
|
27073
|
+
};
|
|
26892
27074
|
readonly _internal: {
|
|
26893
27075
|
readonly accounts: {
|
|
26894
27076
|
readonly fund: "_internal.accounts.fund";
|
|
@@ -28856,9 +29038,9 @@ declare const OrganizationSetupSchema: Schema.Struct<{
|
|
|
28856
29038
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
28857
29039
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
28858
29040
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
28859
|
-
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"]>>;
|
|
28860
29042
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
28861
|
-
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"]>;
|
|
28862
29044
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
28863
29045
|
readonly method: Schema.String;
|
|
28864
29046
|
readonly retryable: Schema.Boolean;
|
|
@@ -28872,7 +29054,7 @@ declare const OrganizationSetupSchema: Schema.Struct<{
|
|
|
28872
29054
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
28873
29055
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
28874
29056
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
28875
|
-
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"]>;
|
|
28876
29058
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
28877
29059
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
28878
29060
|
readonly durationMs: Schema.Finite;
|
|
@@ -28893,9 +29075,9 @@ declare const OrganizationSetupSchema: Schema.Struct<{
|
|
|
28893
29075
|
readonly details: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
28894
29076
|
readonly correlationId: Schema.optionalKey<Schema.String>;
|
|
28895
29077
|
readonly layer: Schema.optionalKey<Schema.String>;
|
|
28896
|
-
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"]>>;
|
|
28897
29079
|
readonly chain: Schema.optionalKey<Schema.Struct<{
|
|
28898
|
-
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"]>;
|
|
28899
29081
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
28900
29082
|
readonly method: Schema.String;
|
|
28901
29083
|
readonly retryable: Schema.Boolean;
|
|
@@ -28909,7 +29091,7 @@ declare const OrganizationSetupSchema: Schema.Struct<{
|
|
|
28909
29091
|
readonly providerMessage: Schema.optionalKey<Schema.String>;
|
|
28910
29092
|
readonly attempts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
28911
29093
|
readonly upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
28912
|
-
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"]>;
|
|
28913
29095
|
readonly httpStatus: Schema.optionalKey<Schema.Finite>;
|
|
28914
29096
|
readonly rpcCode: Schema.optionalKey<Schema.Finite>;
|
|
28915
29097
|
readonly durationMs: Schema.Finite;
|
|
@@ -29048,8 +29230,9 @@ declare const PaymentQuoteSchema: Schema.Struct<{
|
|
|
29048
29230
|
readonly onCapxul: Schema.Boolean;
|
|
29049
29231
|
}>;
|
|
29050
29232
|
readonly rate: Schema.optionalKey<Schema.String>;
|
|
29233
|
+
/** Read with any code: an unknown one does not make the quote unreadable. */
|
|
29051
29234
|
readonly warnings: Schema.$Array<Schema.Struct<{
|
|
29052
|
-
readonly code: Schema.
|
|
29235
|
+
readonly code: Schema.String;
|
|
29053
29236
|
readonly message: Schema.String;
|
|
29054
29237
|
}>>;
|
|
29055
29238
|
}>;
|
|
@@ -34211,8 +34394,9 @@ declare const ApprovalSchema: Schema.Struct<{
|
|
|
34211
34394
|
readonly name: Schema.String;
|
|
34212
34395
|
readonly explorerUrl: Schema.String;
|
|
34213
34396
|
}>;
|
|
34397
|
+
/** Read with any code: an unknown one does not make the approval unreadable. */
|
|
34214
34398
|
readonly warnings: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
34215
|
-
readonly code: Schema.
|
|
34399
|
+
readonly code: Schema.String;
|
|
34216
34400
|
readonly message: Schema.String;
|
|
34217
34401
|
}>>>;
|
|
34218
34402
|
}>;
|
|
@@ -38331,6 +38515,8 @@ type Readiness = {
|
|
|
38331
38515
|
readonly failure: Failure;
|
|
38332
38516
|
readonly retryable: boolean;
|
|
38333
38517
|
};
|
|
38518
|
+
/** The calls whose failed work faults the identity machine. */
|
|
38519
|
+
type FaultingCall = "RequestOtp" | "VerifyOtp" | "ReadSession" | "SignOut";
|
|
38334
38520
|
type IdentityState =
|
|
38335
38521
|
/** The INITIAL state: a session probe is in flight and the machine knows
|
|
38336
38522
|
* nothing yet. Distinct from `signed_out`, which is a settled answer. Without
|
|
@@ -38361,6 +38547,10 @@ type IdentityState =
|
|
|
38361
38547
|
} | {
|
|
38362
38548
|
readonly phase: "faulted";
|
|
38363
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;
|
|
38364
38554
|
/** Non-null exactly when an OTP entry is resumable — the incumbent's
|
|
38365
38555
|
* `email !== null && otpRequestedAt !== null` pair,
|
|
38366
38556
|
* made structural. */
|
|
@@ -39261,10 +39451,15 @@ interface SystemMethods {
|
|
|
39261
39451
|
}
|
|
39262
39452
|
//#endregion
|
|
39263
39453
|
//#region src/media/images.d.ts
|
|
39264
|
-
/**
|
|
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
|
+
*/
|
|
39265
39459
|
type UploadImageResult = CapxulResult<{
|
|
39266
39460
|
readonly storageId: string;
|
|
39267
|
-
}, CallError<typeof images.generateUploadUrl> |
|
|
39461
|
+
}, CallError<typeof images.generateUploadUrl> | UploadFailureCode>;
|
|
39462
|
+
type UploadFailureCode = "PROVIDER_ERROR" | "PROVIDER_RESPONSE_INVALID";
|
|
39268
39463
|
interface MediaMethods {
|
|
39269
39464
|
uploadImage(blob: Blob, options?: InvocationControls): Promise<UploadImageResult>;
|
|
39270
39465
|
setProfileImage(input: OperationInput<typeof images.setProfileImage>, options?: InvocationControls): Promise<OperationResult<typeof images.setProfileImage>>;
|
|
@@ -39522,6 +39717,62 @@ declare function formatMoney(money: FormattableMoney, options?: {
|
|
|
39522
39717
|
readonly grammar?: "symbol" | "code";
|
|
39523
39718
|
}): string;
|
|
39524
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
|
|
39525
39776
|
//#region ../protocol/src/evm/payments-abi.d.ts
|
|
39526
39777
|
/** Immutable CapxulPaymentsV2 deployment on Base Sepolia. */
|
|
39527
39778
|
declare const CAPXUL_PAYMENTS_V2_ADDRESS: Address;
|
|
@@ -39673,6 +39924,10 @@ interface HostObservability {
|
|
|
39673
39924
|
readonly failures: ObservationAdapter;
|
|
39674
39925
|
readonly product: TelemetryPort;
|
|
39675
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
|
+
*/
|
|
39676
39931
|
interface PostHogObservabilityClient {
|
|
39677
39932
|
capture(event: string, properties?: Readonly<Record<string, unknown>>): unknown;
|
|
39678
39933
|
captureException?(exception: Error, properties?: Readonly<Record<string, unknown>>): unknown;
|
|
@@ -39680,7 +39935,20 @@ interface PostHogObservabilityClient {
|
|
|
39680
39935
|
group?(groupType: string, groupKey: string, properties?: Readonly<Record<string, unknown>>): unknown;
|
|
39681
39936
|
reset?(): unknown;
|
|
39682
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;
|
|
39683
39949
|
interface PostHogObservabilityOptions {
|
|
39950
|
+
/** Optional failure-only capture hook; omission uses the client's capture. */
|
|
39951
|
+
readonly failureCapture?: PostHogFailureCapture;
|
|
39684
39952
|
/** Consent / kill-switch seam. Defaults to enabled. */
|
|
39685
39953
|
readonly enabled?: boolean | (() => boolean);
|
|
39686
39954
|
/** Omission preserves bootstrap engineering. False/throw closes the acquired runtime's collection. */
|
|
@@ -39757,16 +40025,19 @@ interface HandledErrorReportContext {
|
|
|
39757
40025
|
readonly layer?: string;
|
|
39758
40026
|
/** Host input is normalized at the reporting boundary. */
|
|
39759
40027
|
readonly operation?: string;
|
|
40028
|
+
/** The provider of an error that is not a `CapxulError`; a `CapxulError` names its own. */
|
|
39760
40029
|
readonly provider?: string;
|
|
39761
|
-
|
|
40030
|
+
/** The mode of an error that is not a `CapxulError`; a `CapxulError` names its own. */
|
|
39762
40031
|
readonly failure_mode?: FailureMode;
|
|
39763
40032
|
}
|
|
39764
40033
|
/**
|
|
39765
40034
|
* Capture an error as a `$exception` event through the telemetry port,
|
|
39766
40035
|
* formatted for PostHog Error Tracking.
|
|
39767
40036
|
*
|
|
39768
|
-
*
|
|
39769
|
-
*
|
|
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.
|
|
39770
40041
|
* Fire-and-forget: telemetry defects are silently swallowed.
|
|
39771
40042
|
* Returns `Effect<void, never>` for use in Effect pipelines; the underlying
|
|
39772
40043
|
* adapter work is synchronous, so callers outside Effect contexts can
|
|
@@ -39796,4 +40067,21 @@ type CheckoutLinkReference = {
|
|
|
39796
40067
|
/** Build a reference URL. The consumer still reads authoritative terms from the backend. */
|
|
39797
40068
|
declare function checkoutUrl(frontendOrigin: string, reference: CheckoutLinkReference): string;
|
|
39798
40069
|
//#endregion
|
|
39799
|
-
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 };
|