@capxul/observability 1.1.0

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.
@@ -0,0 +1,2330 @@
1
+ import { Effect, Schema } from "effect";
2
+
3
+ //#region ../errors/src/errors.d.ts
4
+ declare const CAPXUL_ERROR_CODES: readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "PROVIDER_ERROR", "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"];
5
+ type CapxulErrorCode = (typeof CAPXUL_ERROR_CODES)[number];
6
+ /**
7
+ * Why an auth/provider call failed — a flat CAUSE enum. The *where* (which
8
+ * OpenFort operation) stays in the separate `operation` detail field; this
9
+ * names the root cause so a single `$exception` can be triaged without
10
+ * parsing the message. Five members, no free strings:
11
+ *
12
+ * - `auth-origin-mismatch`: OTP cookies live on `localhost:PORT` but OpenFort
13
+ * hits the Convex host → no session reaches the provider.
14
+ * - `stale-openfort-cache`: an old `userId` in scoped storage makes the SDK
15
+ * skip re-auth → 401 on `v2/accounts`.
16
+ * - `app-env-allowlist`: the selected app/deployment origin is not allowlisted
17
+ * → 401.
18
+ * - `no-secure-context`: sandboxed/headless browser with no Web Crypto, so
19
+ * `getAddress`/`configure` can never produce an address. Previously vanished
20
+ * into `unknown`; the signer's secure-context probe now names it.
21
+ * - `unknown`: catch-all when no cause could be determined.
22
+ */
23
+ type FailureMode = "auth-origin-mismatch" | "stale-openfort-cache" | "app-env-allowlist" | "no-secure-context" | "unknown";
24
+ type CapxulErrorDetails = Record<string, unknown>;
25
+ type CapxulErrorOptions = {
26
+ readonly cause?: unknown;
27
+ readonly details?: CapxulErrorDetails;
28
+ readonly correlationId?: string;
29
+ readonly layer?: string;
30
+ };
31
+ declare class CapxulError extends Error {
32
+ readonly code: CapxulErrorCode;
33
+ readonly details?: CapxulErrorDetails;
34
+ readonly correlationId?: string;
35
+ readonly layer?: string;
36
+ constructor(code: CapxulErrorCode, message: string, options?: CapxulErrorOptions);
37
+ }
38
+ //#endregion
39
+ //#region ../types/src/brand.d.ts
40
+ /**
41
+ * Nominal type helper. `Brand<T, B>` is structurally a `T` at runtime but
42
+ * distinct at compile time, preventing accidental swaps between primitives.
43
+ *
44
+ * @internal
45
+ */
46
+ declare const brand: unique symbol;
47
+ type Brand<T, B extends string> = T & {
48
+ readonly [brand]: B;
49
+ };
50
+ //#endregion
51
+ //#region ../types/src/index.d.ts
52
+ type Address = Brand<string, "Address">;
53
+ type AnonymousDistinctId = Brand<string, "AnonymousDistinctId">;
54
+ type AccountId = Brand<string, "AccountId">;
55
+ type SubAccountId = Brand<string, "SubAccountId">;
56
+ type AppId = Brand<string, "AppId">;
57
+ type PublishableKeyId = Brand<string, "PublishableKeyId">;
58
+ type DurationMs = Brand<number, "DurationMs">;
59
+ type TxHash = Brand<string, "TxHash">;
60
+ type EpochMs = Brand<number, "EpochMs">;
61
+ type ChainId = Brand<number, "ChainId">;
62
+ type CurrencyCode = Brand<SupportedCurrencyCode, "CurrencyCode">;
63
+ type BlockNumber = Brand<number, "BlockNumber">;
64
+ type WeiAmount = Brand<string, "WeiAmount">;
65
+ declare const SUPPORTED_CURRENCIES: readonly [{
66
+ readonly code: "USD";
67
+ readonly symbol: "$";
68
+ readonly name: "US Dollar";
69
+ }, {
70
+ readonly code: "NGN";
71
+ readonly symbol: "NGN";
72
+ readonly name: "Nigerian Naira";
73
+ }, {
74
+ readonly code: "GHS";
75
+ readonly symbol: "GHS";
76
+ readonly name: "Ghanaian Cedi";
77
+ }, {
78
+ readonly code: "KES";
79
+ readonly symbol: "KSh";
80
+ readonly name: "Kenyan Shilling";
81
+ }, {
82
+ readonly code: "UGX";
83
+ readonly symbol: "USh";
84
+ readonly name: "Ugandan Shilling";
85
+ }];
86
+ type SupportedCurrencyCode = (typeof SUPPORTED_CURRENCIES)[number]["code"];
87
+ //#endregion
88
+ //#region src/telemetry-port.d.ts
89
+ /**
90
+ * Context for reporting handled errors via `reportHandledError`.
91
+ * Carries structured metadata extracted from the error context.
92
+ */
93
+ interface HandledErrorReportContext {
94
+ readonly layer?: string;
95
+ readonly operation?: string;
96
+ readonly failure_mode?: FailureMode;
97
+ readonly provider?: string;
98
+ }
99
+ /**
100
+ * Canonical TelemetryPort interface. Every adapter (production, test, in-memory)
101
+ * implements this contract. All methods return `Effect<void, never>` —
102
+ * fire-and-forget, defects are caught and traced.
103
+ */
104
+ interface TelemetryPort {
105
+ readonly emit: (event: TelemetryEvent) => Effect.Effect<void, never>;
106
+ readonly identify: (input: TelemetryIdentifyInput) => Effect.Effect<void, never>;
107
+ readonly group: (input: TelemetryGroupInput) => Effect.Effect<void, never>;
108
+ readonly reset: () => Effect.Effect<void, never>;
109
+ readonly reportHandledError?: (error: CapxulError, context?: HandledErrorReportContext) => Effect.Effect<void, never>;
110
+ }
111
+ //#endregion
112
+ //#region src/index.d.ts
113
+ declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "auth_signed_out", "provisioning_safe_created", "provisioning_safe_confirmed", "bootstrap_resolved", "bootstrap_failed", "member_activation_started", "member_activation_ready", "member_activation_failed", "organization_creation_started", "organization_creation_ready", "organization_creation_failed", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_failed", "subaccount_created", "subaccount_renamed", "subaccount_deleted", "subaccount_op_failed", "transfer_requested", "transfer_backend_received", "transfer_confirmed", "transfer_failed", "org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created", "org_create_failed", "org_invite_sent", "org_invite_accepted", "org_role_granted", "org_member_active", "org_member_removed", "org_invite_expired", "org_role_grant_failed", "payment_requested", "payment_resolved", "payment_document_attached", "payment_submitted", "payment_settled", "payment_claimed", "payment_cancelled", "payment_redirected", "payment_failed", "stream_created", "stream_claimed", "stream_cancelled", "stream_completed", "stream_failed", "withdrawal_requested", "withdrawal_submitted", "withdrawal_settled", "withdrawal_failed"];
114
+ type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
115
+ type NonEmptyTelemetryEventNames = readonly [TelemetryEventName, ...TelemetryEventName[]];
116
+ type FunnelJourney = {
117
+ readonly type: "funnel";
118
+ readonly steps: NonEmptyTelemetryEventNames;
119
+ readonly drops_on?: NonEmptyTelemetryEventNames;
120
+ };
121
+ type PointEventJourney = {
122
+ readonly type: "point_event";
123
+ readonly point_event: TelemetryEventName;
124
+ };
125
+ type Journey = FunnelJourney | PointEventJourney;
126
+ declare const TELEMETRY_JOURNEYS: {
127
+ readonly returning_user_login: {
128
+ readonly type: "funnel";
129
+ readonly steps: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_verified"];
130
+ readonly drops_on: readonly ["auth_otp_expired", "auth_failed"];
131
+ };
132
+ readonly new_user_first_signin: {
133
+ readonly type: "funnel";
134
+ readonly steps: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_verified", "provisioning_safe_created", "provisioning_safe_confirmed"];
135
+ readonly drops_on: readonly ["auth_otp_expired", "auth_failed"];
136
+ };
137
+ readonly sign_out_session_close: {
138
+ readonly type: "point_event";
139
+ readonly point_event: "auth_signed_out";
140
+ };
141
+ readonly member_activation: {
142
+ readonly type: "funnel";
143
+ readonly steps: readonly ["member_activation_started", "member_activation_ready"];
144
+ readonly drops_on: readonly ["member_activation_failed"];
145
+ };
146
+ readonly organization_creation_lifecycle: {
147
+ readonly type: "funnel";
148
+ readonly steps: readonly ["organization_creation_started", "organization_creation_ready"];
149
+ readonly drops_on: readonly ["organization_creation_failed"];
150
+ };
151
+ readonly money_on_screen: {
152
+ readonly type: "point_event";
153
+ readonly point_event: "account_balance_read";
154
+ };
155
+ readonly fund_account: {
156
+ readonly type: "funnel";
157
+ readonly steps: readonly ["faucet_requested", "faucet_confirmed"];
158
+ readonly drops_on: readonly ["faucet_failed"];
159
+ };
160
+ readonly first_value_movement: {
161
+ readonly type: "funnel";
162
+ readonly steps: readonly ["account_balance_read", "transfer_requested", "transfer_confirmed"];
163
+ readonly drops_on: readonly ["transfer_failed"];
164
+ };
165
+ readonly subaccount_lifecycle: {
166
+ readonly type: "point_event";
167
+ readonly point_event: "subaccount_created";
168
+ };
169
+ readonly org_creation: {
170
+ readonly type: "funnel";
171
+ readonly steps: readonly ["org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created"];
172
+ readonly drops_on: readonly ["org_create_failed"];
173
+ };
174
+ readonly org_member_onboarding: {
175
+ readonly type: "funnel";
176
+ readonly steps: readonly ["org_invite_sent", "org_invite_accepted", "org_role_granted", "org_member_active"];
177
+ readonly drops_on: readonly ["org_invite_expired", "org_role_grant_failed"];
178
+ };
179
+ readonly direct_payment: {
180
+ readonly type: "funnel";
181
+ readonly steps: readonly ["payment_requested", "payment_resolved", "payment_document_attached", "payment_submitted", "payment_settled"];
182
+ readonly drops_on: readonly ["payment_failed"];
183
+ };
184
+ readonly commitment_claim: {
185
+ readonly type: "funnel";
186
+ readonly steps: readonly ["payment_submitted", "payment_claimed"];
187
+ readonly drops_on: readonly ["payment_cancelled"];
188
+ };
189
+ readonly commitment_redirect: {
190
+ readonly type: "point_event";
191
+ readonly point_event: "payment_redirected";
192
+ };
193
+ readonly salary_stream: {
194
+ readonly type: "funnel";
195
+ readonly steps: readonly ["stream_created", "stream_claimed", "stream_completed"];
196
+ readonly drops_on: readonly ["stream_cancelled", "stream_failed"];
197
+ };
198
+ readonly cash_out: {
199
+ readonly type: "funnel";
200
+ readonly steps: readonly ["withdrawal_requested", "withdrawal_submitted", "withdrawal_settled"];
201
+ readonly drops_on: readonly ["withdrawal_failed"];
202
+ };
203
+ };
204
+ type TelemetryProps = Record<string, unknown>;
205
+ type TelemetryEvent = {
206
+ readonly name: TelemetryEventName;
207
+ readonly props?: TelemetryProps | undefined;
208
+ };
209
+ declare const PII: Schema.brand<Schema.String, "PII">;
210
+ type PII = Schema.Schema.Type<typeof PII>;
211
+ /**
212
+ * Environment discriminator (ADR-0020 A1 amendment, 2026-08-07). PostHog
213
+ * project 368736 is the SINGLE sink for every environment, so `capxul_env` —
214
+ * not project isolation — is what keeps a production surface from reading dev
215
+ * traffic. It is REQUIRED on every catalog event and every synced artifact
216
+ * filters on it.
217
+ *
218
+ * `unknown` is a defect marker, not an environment: it means a producer
219
+ * reached the transport without declaring where it runs. It is in the union so
220
+ * the property is never ABSENT (an absent property is invisible to a filter,
221
+ * a present `unknown` is loud), and sync v2 never synthesizes an artifact for
222
+ * it.
223
+ */
224
+ declare const CAPXUL_ENVS: readonly ["development", "e2e", "staging", "production", "unknown"];
225
+ type CapxulEnv = (typeof CAPXUL_ENVS)[number];
226
+ /** Environments a synced product surface may be built for (`unknown` cannot). */
227
+ declare const SYNCABLE_CAPXUL_ENVS: readonly ["development", "e2e", "staging", "production"];
228
+ /**
229
+ * Which half of the system emitted the event. REQUIRED alongside `capxul_env`
230
+ * so a name that two halves can produce (settlement, auth) stays attributable.
231
+ */
232
+ declare const TELEMETRY_PRODUCERS: readonly ["server", "browser", "sdk", "mcp", "e2e"];
233
+ type TelemetryProducer = (typeof TELEMETRY_PRODUCERS)[number];
234
+ interface TelemetryEnvelopeDefaults {
235
+ readonly capxul_env: CapxulEnv;
236
+ readonly producer: TelemetryProducer;
237
+ }
238
+ /**
239
+ * Stamp the required envelope onto an event at its emit boundary. Call-site
240
+ * props win on conflict: a relay that already knows the true producer (the
241
+ * browser-failure relay stamps `browser` while running on the server) must not
242
+ * be overwritten by the transport's own default.
243
+ */
244
+ declare function stampTelemetryEnvelope(event: TelemetryEvent, defaults: TelemetryEnvelopeDefaults): TelemetryEvent;
245
+ declare const AuthOtpRequestedTelemetryEventSchema: Schema.Struct<{
246
+ readonly name: Schema.Literal<"auth_otp_requested">;
247
+ readonly props: Schema.Struct<{
248
+ readonly email: Schema.optional<Schema.brand<Schema.String, "PII">>;
249
+ readonly email_domain: Schema.optional<Schema.String>;
250
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
251
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
252
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
253
+ readonly journey_id: Schema.optional<Schema.String>;
254
+ readonly correlation_id: Schema.optional<Schema.String>;
255
+ readonly sdk_version: Schema.optional<Schema.String>;
256
+ }>;
257
+ }>;
258
+ declare const AuthOtpDeliveredTelemetryEventSchema: Schema.Struct<{
259
+ readonly name: Schema.Literal<"auth_otp_delivered">;
260
+ readonly props: Schema.Struct<{
261
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
262
+ readonly email: Schema.optional<Schema.brand<Schema.String, "PII">>;
263
+ readonly email_domain: Schema.optional<Schema.String>;
264
+ readonly resendMessageId: Schema.optional<Schema.String>;
265
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
266
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
267
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
268
+ readonly journey_id: Schema.optional<Schema.String>;
269
+ readonly correlation_id: Schema.optional<Schema.String>;
270
+ readonly sdk_version: Schema.optional<Schema.String>;
271
+ }>;
272
+ }>;
273
+ declare const AuthOtpExpiredTelemetryEventSchema: Schema.Struct<{
274
+ readonly name: Schema.Literal<"auth_otp_expired">;
275
+ readonly props: Schema.Struct<{
276
+ readonly email: Schema.optional<Schema.brand<Schema.String, "PII">>;
277
+ readonly email_domain: Schema.optional<Schema.String>;
278
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
279
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
280
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
281
+ readonly journey_id: Schema.optional<Schema.String>;
282
+ readonly correlation_id: Schema.optional<Schema.String>;
283
+ readonly sdk_version: Schema.optional<Schema.String>;
284
+ }>;
285
+ }>;
286
+ declare const AuthVerifiedTelemetryEventSchema: Schema.Struct<{
287
+ readonly name: Schema.Literal<"auth_verified">;
288
+ readonly props: Schema.Struct<{
289
+ readonly auth_type: Schema.optional<Schema.String>;
290
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
291
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
292
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
293
+ readonly journey_id: Schema.optional<Schema.String>;
294
+ readonly correlation_id: Schema.optional<Schema.String>;
295
+ readonly sdk_version: Schema.optional<Schema.String>;
296
+ }>;
297
+ }>;
298
+ declare const AuthFailedTelemetryEventSchema: Schema.Struct<{
299
+ readonly name: Schema.Literal<"auth_failed">;
300
+ readonly props: Schema.Struct<{
301
+ readonly email: Schema.optional<Schema.brand<Schema.String, "PII">>;
302
+ readonly auth_type: Schema.optional<Schema.String>;
303
+ readonly reason: Schema.optional<Schema.String>;
304
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
305
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
306
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
307
+ readonly journey_id: Schema.optional<Schema.String>;
308
+ readonly correlation_id: Schema.optional<Schema.String>;
309
+ readonly sdk_version: Schema.optional<Schema.String>;
310
+ }>;
311
+ }>;
312
+ declare const AuthSignedOutTelemetryEventSchema: Schema.Struct<{
313
+ readonly name: Schema.Literal<"auth_signed_out">;
314
+ readonly props: Schema.Struct<{
315
+ capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
316
+ producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
317
+ capxul_e2e_run_id: Schema.optional<Schema.String>;
318
+ journey_id: Schema.optional<Schema.String>;
319
+ correlation_id: Schema.optional<Schema.String>;
320
+ sdk_version: Schema.optional<Schema.String>;
321
+ }>;
322
+ }>;
323
+ declare const ProvisioningSafeCreatedTelemetryEventSchema: Schema.Struct<{
324
+ readonly name: Schema.Literal<"provisioning_safe_created">;
325
+ readonly props: Schema.Struct<{
326
+ readonly safe_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
327
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
328
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
329
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
330
+ readonly journey_id: Schema.optional<Schema.String>;
331
+ readonly correlation_id: Schema.optional<Schema.String>;
332
+ readonly sdk_version: Schema.optional<Schema.String>;
333
+ }>;
334
+ }>;
335
+ declare const ProvisioningSafeConfirmedTelemetryEventSchema: Schema.Struct<{
336
+ readonly name: Schema.Literal<"provisioning_safe_confirmed">;
337
+ readonly props: Schema.Struct<{
338
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
339
+ readonly deployedAt: Schema.optional<Schema.Codec<EpochMs, number, never, never>>;
340
+ readonly deployedAtBlock: Schema.optional<Schema.Codec<BlockNumber, number, never, never>>;
341
+ readonly deployTxHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
342
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
343
+ readonly safe_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
344
+ readonly userOpHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
345
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
346
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
347
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
348
+ readonly journey_id: Schema.optional<Schema.String>;
349
+ readonly correlation_id: Schema.optional<Schema.String>;
350
+ readonly sdk_version: Schema.optional<Schema.String>;
351
+ }>;
352
+ }>;
353
+ declare const BootstrapResolvedTelemetryEventSchema: Schema.Struct<{
354
+ readonly name: Schema.Literal<"bootstrap_resolved">;
355
+ readonly props: Schema.Struct<{
356
+ readonly applicationId: Schema.optional<Schema.Codec<AppId, string, never, never>>;
357
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
358
+ readonly env: Schema.optional<Schema.String>;
359
+ readonly keyId: Schema.optional<Schema.Codec<PublishableKeyId, string, never, never>>;
360
+ readonly origin: Schema.optional<Schema.String>;
361
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
362
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
363
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
364
+ readonly journey_id: Schema.optional<Schema.String>;
365
+ readonly correlation_id: Schema.optional<Schema.String>;
366
+ readonly sdk_version: Schema.optional<Schema.String>;
367
+ }>;
368
+ }>;
369
+ declare const BootstrapFailedTelemetryEventSchema: Schema.Struct<{
370
+ readonly name: Schema.Literal<"bootstrap_failed">;
371
+ readonly props: Schema.Struct<{
372
+ readonly applicationId: Schema.optional<Schema.Codec<AppId, string, never, never>>;
373
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
374
+ readonly origin: Schema.optional<Schema.String>;
375
+ readonly reason: Schema.optional<Schema.String>;
376
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
377
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
378
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
379
+ readonly journey_id: Schema.optional<Schema.String>;
380
+ readonly correlation_id: Schema.optional<Schema.String>;
381
+ readonly sdk_version: Schema.optional<Schema.String>;
382
+ }>;
383
+ }>;
384
+ declare const MemberActivationStartedTelemetryEventSchema: Schema.Struct<{
385
+ readonly name: Schema.Literal<"member_activation_started">;
386
+ readonly props: Schema.Struct<{
387
+ readonly $insert_id: Schema.String;
388
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
389
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
390
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
391
+ readonly journey_id: Schema.optional<Schema.String>;
392
+ readonly correlation_id: Schema.optional<Schema.String>;
393
+ readonly sdk_version: Schema.optional<Schema.String>;
394
+ }>;
395
+ }>;
396
+ declare const MemberActivationReadyTelemetryEventSchema: Schema.Struct<{
397
+ readonly name: Schema.Literal<"member_activation_ready">;
398
+ readonly props: Schema.Struct<{
399
+ readonly $insert_id: Schema.String;
400
+ readonly duration_ms: Schema.Codec<DurationMs, number, never, never>;
401
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
402
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
403
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
404
+ readonly journey_id: Schema.optional<Schema.String>;
405
+ readonly correlation_id: Schema.optional<Schema.String>;
406
+ readonly sdk_version: Schema.optional<Schema.String>;
407
+ }>;
408
+ }>;
409
+ declare const MemberActivationFailedTelemetryEventSchema: Schema.Struct<{
410
+ readonly name: Schema.Literal<"member_activation_failed">;
411
+ readonly props: Schema.Struct<{
412
+ readonly $insert_id: Schema.String;
413
+ readonly stage: Schema.Literals<readonly ["profile", "accountProvisioning", "accountClaim", "preparingFounderAccount", "awaitingFounderAuthorization", "submittingBootstrap", "confirmingBootstrap"]>;
414
+ readonly error_code: Schema.String;
415
+ readonly retryable: Schema.Boolean;
416
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
417
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
418
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
419
+ readonly journey_id: Schema.optional<Schema.String>;
420
+ readonly correlation_id: Schema.optional<Schema.String>;
421
+ readonly sdk_version: Schema.optional<Schema.String>;
422
+ }>;
423
+ }>;
424
+ declare const OrganizationCreationStartedTelemetryEventSchema: Schema.Struct<{
425
+ readonly name: Schema.Literal<"organization_creation_started">;
426
+ readonly props: Schema.Struct<{
427
+ readonly $insert_id: Schema.String;
428
+ readonly organization_id: Schema.Codec<string, string, never, never>;
429
+ readonly attempt_number: Schema.refine<number, Schema.Number>;
430
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
431
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
432
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
433
+ readonly journey_id: Schema.optional<Schema.String>;
434
+ readonly correlation_id: Schema.optional<Schema.String>;
435
+ readonly sdk_version: Schema.optional<Schema.String>;
436
+ }>;
437
+ }>;
438
+ declare const OrganizationCreationReadyTelemetryEventSchema: Schema.Struct<{
439
+ readonly name: Schema.Literal<"organization_creation_ready">;
440
+ readonly props: Schema.Struct<{
441
+ readonly $insert_id: Schema.String;
442
+ readonly organization_id: Schema.Codec<string, string, never, never>;
443
+ readonly attempt_number: Schema.refine<number, Schema.Number>;
444
+ readonly duration_ms: Schema.Codec<DurationMs, number, never, never>;
445
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
446
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
447
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
448
+ readonly journey_id: Schema.optional<Schema.String>;
449
+ readonly correlation_id: Schema.optional<Schema.String>;
450
+ readonly sdk_version: Schema.optional<Schema.String>;
451
+ }>;
452
+ }>;
453
+ declare const OrganizationCreationFailedTelemetryEventSchema: Schema.Struct<{
454
+ readonly name: Schema.Literal<"organization_creation_failed">;
455
+ readonly props: Schema.Struct<{
456
+ readonly $insert_id: Schema.String;
457
+ readonly organization_id: Schema.Codec<string, string, never, never>;
458
+ readonly attempt_number: Schema.refine<number, Schema.Number>;
459
+ readonly stage: Schema.Literals<readonly ["profile", "accountProvisioning", "accountClaim", "preparingFounderAccount", "awaitingFounderAuthorization", "submittingBootstrap", "confirmingBootstrap"]>;
460
+ readonly error_code: Schema.String;
461
+ readonly retryable: Schema.Boolean;
462
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
463
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
464
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
465
+ readonly journey_id: Schema.optional<Schema.String>;
466
+ readonly correlation_id: Schema.optional<Schema.String>;
467
+ readonly sdk_version: Schema.optional<Schema.String>;
468
+ }>;
469
+ }>;
470
+ declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
471
+ readonly name: Schema.Literal<"account_balance_read">;
472
+ readonly props: Schema.Struct<{
473
+ readonly account_id: Schema.optional<Schema.Codec<AccountId, string, never, never>>;
474
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
475
+ readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
476
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
477
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
478
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
479
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
480
+ readonly journey_id: Schema.optional<Schema.String>;
481
+ readonly correlation_id: Schema.optional<Schema.String>;
482
+ readonly sdk_version: Schema.optional<Schema.String>;
483
+ }>;
484
+ }>;
485
+ declare const AccountBalanceFailedTelemetryEventSchema: Schema.Struct<{
486
+ readonly name: Schema.Literal<"account_balance_failed">;
487
+ readonly props: Schema.Struct<{
488
+ readonly reason: Schema.optional<Schema.String>;
489
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
490
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
491
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
492
+ readonly journey_id: Schema.optional<Schema.String>;
493
+ readonly correlation_id: Schema.optional<Schema.String>;
494
+ readonly sdk_version: Schema.optional<Schema.String>;
495
+ }>;
496
+ }>;
497
+ declare const FaucetRequestedTelemetryEventSchema: Schema.Struct<{
498
+ readonly name: Schema.Literal<"faucet_requested">;
499
+ readonly props: Schema.Struct<{
500
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
501
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
502
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
503
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
504
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
505
+ readonly journey_id: Schema.optional<Schema.String>;
506
+ readonly correlation_id: Schema.optional<Schema.String>;
507
+ readonly sdk_version: Schema.optional<Schema.String>;
508
+ }>;
509
+ }>;
510
+ declare const FaucetConfirmedTelemetryEventSchema: Schema.Struct<{
511
+ readonly name: Schema.Literal<"faucet_confirmed">;
512
+ readonly props: Schema.Struct<{
513
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
514
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
515
+ readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
516
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
517
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
518
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
519
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
520
+ readonly journey_id: Schema.optional<Schema.String>;
521
+ readonly correlation_id: Schema.optional<Schema.String>;
522
+ readonly sdk_version: Schema.optional<Schema.String>;
523
+ }>;
524
+ }>;
525
+ declare const FaucetFailedTelemetryEventSchema: Schema.Struct<{
526
+ readonly name: Schema.Literal<"faucet_failed">;
527
+ readonly props: Schema.Struct<{
528
+ readonly reason: Schema.optional<Schema.String>;
529
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
530
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
531
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
532
+ readonly journey_id: Schema.optional<Schema.String>;
533
+ readonly correlation_id: Schema.optional<Schema.String>;
534
+ readonly sdk_version: Schema.optional<Schema.String>;
535
+ }>;
536
+ }>;
537
+ declare const SubaccountCreatedTelemetryEventSchema: Schema.Struct<{
538
+ readonly name: Schema.Literal<"subaccount_created">;
539
+ readonly props: Schema.Struct<{
540
+ readonly sub_account_id: Schema.optional<Schema.Codec<SubAccountId, string, never, never>>;
541
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
542
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
543
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
544
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
545
+ readonly journey_id: Schema.optional<Schema.String>;
546
+ readonly correlation_id: Schema.optional<Schema.String>;
547
+ readonly sdk_version: Schema.optional<Schema.String>;
548
+ }>;
549
+ }>;
550
+ declare const SubaccountRenamedTelemetryEventSchema: Schema.Struct<{
551
+ readonly name: Schema.Literal<"subaccount_renamed">;
552
+ readonly props: Schema.Struct<{
553
+ readonly sub_account_id: Schema.optional<Schema.Codec<SubAccountId, string, never, never>>;
554
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
555
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
556
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
557
+ readonly journey_id: Schema.optional<Schema.String>;
558
+ readonly correlation_id: Schema.optional<Schema.String>;
559
+ readonly sdk_version: Schema.optional<Schema.String>;
560
+ }>;
561
+ }>;
562
+ declare const SubaccountDeletedTelemetryEventSchema: Schema.Struct<{
563
+ readonly name: Schema.Literal<"subaccount_deleted">;
564
+ readonly props: Schema.Struct<{
565
+ readonly sub_account_id: Schema.optional<Schema.Codec<SubAccountId, string, never, never>>;
566
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
567
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
568
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
569
+ readonly journey_id: Schema.optional<Schema.String>;
570
+ readonly correlation_id: Schema.optional<Schema.String>;
571
+ readonly sdk_version: Schema.optional<Schema.String>;
572
+ }>;
573
+ }>;
574
+ declare const SubaccountOpFailedTelemetryEventSchema: Schema.Struct<{
575
+ readonly name: Schema.Literal<"subaccount_op_failed">;
576
+ readonly props: Schema.Struct<{
577
+ readonly op: Schema.optional<Schema.Literals<readonly ["create", "rename", "delete"]>>;
578
+ readonly reason: Schema.optional<Schema.String>;
579
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
580
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
581
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
582
+ readonly journey_id: Schema.optional<Schema.String>;
583
+ readonly correlation_id: Schema.optional<Schema.String>;
584
+ readonly sdk_version: Schema.optional<Schema.String>;
585
+ }>;
586
+ }>;
587
+ declare const TransferRequestedTelemetryEventSchema: Schema.Struct<{
588
+ readonly name: Schema.Literal<"transfer_requested">;
589
+ readonly props: Schema.Struct<{
590
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
591
+ readonly direction: Schema.optional<Schema.Literals<readonly ["add", "out", "between"]>>;
592
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
593
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
594
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
595
+ readonly journey_id: Schema.optional<Schema.String>;
596
+ readonly correlation_id: Schema.optional<Schema.String>;
597
+ readonly sdk_version: Schema.optional<Schema.String>;
598
+ }>;
599
+ }>;
600
+ declare const TransferBackendReceivedTelemetryEventSchema: Schema.Struct<{
601
+ readonly name: Schema.Literal<"transfer_backend_received">;
602
+ readonly props: Schema.Struct<{
603
+ readonly direction: Schema.optional<Schema.Literals<readonly ["add", "out", "between"]>>;
604
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
605
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
606
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
607
+ readonly journey_id: Schema.optional<Schema.String>;
608
+ readonly correlation_id: Schema.optional<Schema.String>;
609
+ readonly sdk_version: Schema.optional<Schema.String>;
610
+ }>;
611
+ }>;
612
+ declare const TransferConfirmedTelemetryEventSchema: Schema.Struct<{
613
+ readonly name: Schema.Literal<"transfer_confirmed">;
614
+ readonly props: Schema.Struct<{
615
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
616
+ readonly direction: Schema.optional<Schema.Literals<readonly ["add", "out", "between"]>>;
617
+ readonly available_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
618
+ readonly txless: Schema.optional<Schema.Literal<true>>;
619
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
620
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
621
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
622
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
623
+ readonly journey_id: Schema.optional<Schema.String>;
624
+ readonly correlation_id: Schema.optional<Schema.String>;
625
+ readonly sdk_version: Schema.optional<Schema.String>;
626
+ }>;
627
+ }>;
628
+ declare const TransferFailedTelemetryEventSchema: Schema.Struct<{
629
+ readonly name: Schema.Literal<"transfer_failed">;
630
+ readonly props: Schema.Struct<{
631
+ readonly reason: Schema.optional<Schema.String>;
632
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
633
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
634
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
635
+ readonly journey_id: Schema.optional<Schema.String>;
636
+ readonly correlation_id: Schema.optional<Schema.String>;
637
+ readonly sdk_version: Schema.optional<Schema.String>;
638
+ }>;
639
+ }>;
640
+ declare const OrgCreateStartedTelemetryEventSchema: Schema.Struct<{
641
+ readonly name: Schema.Literal<"org_create_started">;
642
+ readonly props: Schema.Struct<{
643
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
644
+ readonly email_domain: Schema.optional<Schema.String>;
645
+ readonly template: Schema.optional<Schema.String>;
646
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
647
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
648
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
649
+ readonly journey_id: Schema.optional<Schema.String>;
650
+ readonly correlation_id: Schema.optional<Schema.String>;
651
+ readonly sdk_version: Schema.optional<Schema.String>;
652
+ }>;
653
+ }>;
654
+ declare const OrgSafeCreatedTelemetryEventSchema: Schema.Struct<{
655
+ readonly name: Schema.Literal<"org_safe_created">;
656
+ readonly props: Schema.Struct<{
657
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
658
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
659
+ readonly safe_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
660
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
661
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
662
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
663
+ readonly journey_id: Schema.optional<Schema.String>;
664
+ readonly correlation_id: Schema.optional<Schema.String>;
665
+ readonly sdk_version: Schema.optional<Schema.String>;
666
+ }>;
667
+ }>;
668
+ declare const OrgSafeConfirmedTelemetryEventSchema: Schema.Struct<{
669
+ readonly name: Schema.Literal<"org_safe_confirmed">;
670
+ readonly props: Schema.Struct<{
671
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
672
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
673
+ readonly safe_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
674
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
675
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
676
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
677
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
678
+ readonly journey_id: Schema.optional<Schema.String>;
679
+ readonly correlation_id: Schema.optional<Schema.String>;
680
+ readonly sdk_version: Schema.optional<Schema.String>;
681
+ }>;
682
+ }>;
683
+ declare const OrgRolesSeededTelemetryEventSchema: Schema.Struct<{
684
+ readonly name: Schema.Literal<"org_roles_seeded">;
685
+ readonly props: Schema.Struct<{
686
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
687
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
688
+ readonly role: Schema.optional<Schema.String>;
689
+ readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
690
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
691
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
692
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
693
+ readonly journey_id: Schema.optional<Schema.String>;
694
+ readonly correlation_id: Schema.optional<Schema.String>;
695
+ readonly sdk_version: Schema.optional<Schema.String>;
696
+ }>;
697
+ }>;
698
+ declare const OrgCreatedTelemetryEventSchema: Schema.Struct<{
699
+ readonly name: Schema.Literal<"org_created">;
700
+ readonly props: Schema.Struct<{
701
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
702
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
703
+ readonly safe_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
704
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
705
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
706
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
707
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
708
+ readonly journey_id: Schema.optional<Schema.String>;
709
+ readonly correlation_id: Schema.optional<Schema.String>;
710
+ readonly sdk_version: Schema.optional<Schema.String>;
711
+ }>;
712
+ }>;
713
+ declare const OrgCreateFailedTelemetryEventSchema: Schema.Struct<{
714
+ readonly name: Schema.Literal<"org_create_failed">;
715
+ readonly props: Schema.Struct<{
716
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
717
+ readonly reason: Schema.optional<Schema.String>;
718
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
719
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
720
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
721
+ readonly journey_id: Schema.optional<Schema.String>;
722
+ readonly correlation_id: Schema.optional<Schema.String>;
723
+ readonly sdk_version: Schema.optional<Schema.String>;
724
+ }>;
725
+ }>;
726
+ declare const OrgInviteSentTelemetryEventSchema: Schema.Struct<{
727
+ readonly name: Schema.Literal<"org_invite_sent">;
728
+ readonly props: Schema.Struct<{
729
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
730
+ readonly email_domain: Schema.optional<Schema.String>;
731
+ readonly role: Schema.optional<Schema.String>;
732
+ readonly status: Schema.optional<Schema.String>;
733
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
734
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
735
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
736
+ readonly journey_id: Schema.optional<Schema.String>;
737
+ readonly correlation_id: Schema.optional<Schema.String>;
738
+ readonly sdk_version: Schema.optional<Schema.String>;
739
+ }>;
740
+ }>;
741
+ declare const OrgInviteAcceptedTelemetryEventSchema: Schema.Struct<{
742
+ readonly name: Schema.Literal<"org_invite_accepted">;
743
+ readonly props: Schema.Struct<{
744
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
745
+ readonly role: Schema.optional<Schema.String>;
746
+ readonly status: Schema.optional<Schema.String>;
747
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
748
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
749
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
750
+ readonly journey_id: Schema.optional<Schema.String>;
751
+ readonly correlation_id: Schema.optional<Schema.String>;
752
+ readonly sdk_version: Schema.optional<Schema.String>;
753
+ }>;
754
+ }>;
755
+ declare const OrgRoleGrantedTelemetryEventSchema: Schema.Struct<{
756
+ readonly name: Schema.Literal<"org_role_granted">;
757
+ readonly props: Schema.Struct<{
758
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
759
+ readonly role: Schema.optional<Schema.String>;
760
+ readonly status: Schema.optional<Schema.String>;
761
+ readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
762
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
763
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
764
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
765
+ readonly journey_id: Schema.optional<Schema.String>;
766
+ readonly correlation_id: Schema.optional<Schema.String>;
767
+ readonly sdk_version: Schema.optional<Schema.String>;
768
+ }>;
769
+ }>;
770
+ declare const OrgMemberActiveTelemetryEventSchema: Schema.Struct<{
771
+ readonly name: Schema.Literal<"org_member_active">;
772
+ readonly props: Schema.Struct<{
773
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
774
+ readonly role: Schema.optional<Schema.String>;
775
+ readonly status: Schema.optional<Schema.String>;
776
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
777
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
778
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
779
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
780
+ readonly journey_id: Schema.optional<Schema.String>;
781
+ readonly correlation_id: Schema.optional<Schema.String>;
782
+ readonly sdk_version: Schema.optional<Schema.String>;
783
+ }>;
784
+ }>;
785
+ declare const OrgMemberRemovedTelemetryEventSchema: Schema.Struct<{
786
+ readonly name: Schema.Literal<"org_member_removed">;
787
+ readonly props: Schema.Struct<{
788
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
789
+ readonly role: Schema.optional<Schema.String>;
790
+ readonly status: Schema.optional<Schema.String>;
791
+ readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
792
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
793
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
794
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
795
+ readonly journey_id: Schema.optional<Schema.String>;
796
+ readonly correlation_id: Schema.optional<Schema.String>;
797
+ readonly sdk_version: Schema.optional<Schema.String>;
798
+ }>;
799
+ }>;
800
+ declare const OrgInviteExpiredTelemetryEventSchema: Schema.Struct<{
801
+ readonly name: Schema.Literal<"org_invite_expired">;
802
+ readonly props: Schema.Struct<{
803
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
804
+ readonly email_domain: Schema.optional<Schema.String>;
805
+ readonly reason: Schema.optional<Schema.String>;
806
+ readonly role: Schema.optional<Schema.String>;
807
+ readonly status: Schema.optional<Schema.String>;
808
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
809
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
810
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
811
+ readonly journey_id: Schema.optional<Schema.String>;
812
+ readonly correlation_id: Schema.optional<Schema.String>;
813
+ readonly sdk_version: Schema.optional<Schema.String>;
814
+ }>;
815
+ }>;
816
+ declare const OrgRoleGrantFailedTelemetryEventSchema: Schema.Struct<{
817
+ readonly name: Schema.Literal<"org_role_grant_failed">;
818
+ readonly props: Schema.Struct<{
819
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
820
+ readonly reason: Schema.optional<Schema.String>;
821
+ readonly role: Schema.optional<Schema.String>;
822
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
823
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
824
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
825
+ readonly journey_id: Schema.optional<Schema.String>;
826
+ readonly correlation_id: Schema.optional<Schema.String>;
827
+ readonly sdk_version: Schema.optional<Schema.String>;
828
+ }>;
829
+ }>;
830
+ declare const PaymentRequestedTelemetryEventSchema: Schema.Struct<{
831
+ readonly name: Schema.Literal<"payment_requested">;
832
+ readonly props: Schema.Struct<{
833
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
834
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
835
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
836
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
837
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
838
+ readonly status: Schema.optional<Schema.String>;
839
+ readonly reason: Schema.optional<Schema.String>;
840
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
841
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
842
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
843
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
844
+ readonly journey_id: Schema.optional<Schema.String>;
845
+ readonly correlation_id: Schema.optional<Schema.String>;
846
+ readonly sdk_version: Schema.optional<Schema.String>;
847
+ }>;
848
+ }>;
849
+ declare const PaymentResolvedTelemetryEventSchema: Schema.Struct<{
850
+ readonly name: Schema.Literal<"payment_resolved">;
851
+ readonly props: Schema.Struct<{
852
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
853
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
854
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
855
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
856
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
857
+ readonly status: Schema.optional<Schema.String>;
858
+ readonly reason: Schema.optional<Schema.String>;
859
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
860
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
861
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
862
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
863
+ readonly journey_id: Schema.optional<Schema.String>;
864
+ readonly correlation_id: Schema.optional<Schema.String>;
865
+ readonly sdk_version: Schema.optional<Schema.String>;
866
+ }>;
867
+ }>;
868
+ declare const PaymentDocumentAttachedTelemetryEventSchema: Schema.Struct<{
869
+ readonly name: Schema.Literal<"payment_document_attached">;
870
+ readonly props: Schema.Struct<{
871
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
872
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
873
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
874
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
875
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
876
+ readonly status: Schema.optional<Schema.String>;
877
+ readonly reason: Schema.optional<Schema.String>;
878
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
879
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
880
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
881
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
882
+ readonly journey_id: Schema.optional<Schema.String>;
883
+ readonly correlation_id: Schema.optional<Schema.String>;
884
+ readonly sdk_version: Schema.optional<Schema.String>;
885
+ }>;
886
+ }>;
887
+ declare const PaymentSubmittedTelemetryEventSchema: Schema.Struct<{
888
+ readonly name: Schema.Literal<"payment_submitted">;
889
+ readonly props: Schema.Struct<{
890
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
891
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
892
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
893
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
894
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
895
+ readonly status: Schema.optional<Schema.String>;
896
+ readonly reason: Schema.optional<Schema.String>;
897
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
898
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
899
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
900
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
901
+ readonly journey_id: Schema.optional<Schema.String>;
902
+ readonly correlation_id: Schema.optional<Schema.String>;
903
+ readonly sdk_version: Schema.optional<Schema.String>;
904
+ }>;
905
+ }>;
906
+ declare const PaymentSettledTelemetryEventSchema: Schema.Struct<{
907
+ readonly name: Schema.Literal<"payment_settled">;
908
+ readonly props: Schema.Struct<{
909
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
910
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
911
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
912
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
913
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
914
+ readonly status: Schema.optional<Schema.String>;
915
+ readonly reason: Schema.optional<Schema.String>;
916
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
917
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
918
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
919
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
920
+ readonly journey_id: Schema.optional<Schema.String>;
921
+ readonly correlation_id: Schema.optional<Schema.String>;
922
+ readonly sdk_version: Schema.optional<Schema.String>;
923
+ }>;
924
+ }>;
925
+ declare const PaymentClaimedTelemetryEventSchema: Schema.Struct<{
926
+ readonly name: Schema.Literal<"payment_claimed">;
927
+ readonly props: Schema.Struct<{
928
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
929
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
930
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
931
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
932
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
933
+ readonly status: Schema.optional<Schema.String>;
934
+ readonly reason: Schema.optional<Schema.String>;
935
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
936
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
937
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
938
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
939
+ readonly journey_id: Schema.optional<Schema.String>;
940
+ readonly correlation_id: Schema.optional<Schema.String>;
941
+ readonly sdk_version: Schema.optional<Schema.String>;
942
+ }>;
943
+ }>;
944
+ declare const PaymentCancelledTelemetryEventSchema: Schema.Struct<{
945
+ readonly name: Schema.Literal<"payment_cancelled">;
946
+ readonly props: Schema.Struct<{
947
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
948
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
949
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
950
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
951
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
952
+ readonly status: Schema.optional<Schema.String>;
953
+ readonly reason: Schema.optional<Schema.String>;
954
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
955
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
956
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
957
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
958
+ readonly journey_id: Schema.optional<Schema.String>;
959
+ readonly correlation_id: Schema.optional<Schema.String>;
960
+ readonly sdk_version: Schema.optional<Schema.String>;
961
+ }>;
962
+ }>;
963
+ declare const PaymentRedirectedTelemetryEventSchema: Schema.Struct<{
964
+ readonly name: Schema.Literal<"payment_redirected">;
965
+ readonly props: Schema.Struct<{
966
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
967
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
968
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
969
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
970
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
971
+ readonly status: Schema.optional<Schema.String>;
972
+ readonly reason: Schema.optional<Schema.String>;
973
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
974
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
975
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
976
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
977
+ readonly journey_id: Schema.optional<Schema.String>;
978
+ readonly correlation_id: Schema.optional<Schema.String>;
979
+ readonly sdk_version: Schema.optional<Schema.String>;
980
+ }>;
981
+ }>;
982
+ declare const PaymentFailedTelemetryEventSchema: Schema.Struct<{
983
+ readonly name: Schema.Literal<"payment_failed">;
984
+ readonly props: Schema.Struct<{
985
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
986
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
987
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
988
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
989
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
990
+ readonly status: Schema.optional<Schema.String>;
991
+ readonly reason: Schema.optional<Schema.String>;
992
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
993
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
994
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
995
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
996
+ readonly journey_id: Schema.optional<Schema.String>;
997
+ readonly correlation_id: Schema.optional<Schema.String>;
998
+ readonly sdk_version: Schema.optional<Schema.String>;
999
+ }>;
1000
+ }>;
1001
+ declare const StreamCreatedTelemetryEventSchema: Schema.Struct<{
1002
+ readonly name: Schema.Literal<"stream_created">;
1003
+ readonly props: Schema.Struct<{
1004
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1005
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1006
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1007
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1008
+ readonly status: Schema.optional<Schema.String>;
1009
+ readonly available_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1010
+ readonly reason: Schema.optional<Schema.String>;
1011
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1012
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1013
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1014
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1015
+ readonly journey_id: Schema.optional<Schema.String>;
1016
+ readonly correlation_id: Schema.optional<Schema.String>;
1017
+ readonly sdk_version: Schema.optional<Schema.String>;
1018
+ }>;
1019
+ }>;
1020
+ declare const StreamClaimedTelemetryEventSchema: Schema.Struct<{
1021
+ readonly name: Schema.Literal<"stream_claimed">;
1022
+ readonly props: Schema.Struct<{
1023
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1024
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1025
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1026
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1027
+ readonly status: Schema.optional<Schema.String>;
1028
+ readonly available_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1029
+ readonly reason: Schema.optional<Schema.String>;
1030
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1031
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1032
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1033
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1034
+ readonly journey_id: Schema.optional<Schema.String>;
1035
+ readonly correlation_id: Schema.optional<Schema.String>;
1036
+ readonly sdk_version: Schema.optional<Schema.String>;
1037
+ }>;
1038
+ }>;
1039
+ declare const StreamCancelledTelemetryEventSchema: Schema.Struct<{
1040
+ readonly name: Schema.Literal<"stream_cancelled">;
1041
+ readonly props: Schema.Struct<{
1042
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1043
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1044
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1045
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1046
+ readonly status: Schema.optional<Schema.String>;
1047
+ readonly available_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1048
+ readonly reason: Schema.optional<Schema.String>;
1049
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1050
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1051
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1052
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1053
+ readonly journey_id: Schema.optional<Schema.String>;
1054
+ readonly correlation_id: Schema.optional<Schema.String>;
1055
+ readonly sdk_version: Schema.optional<Schema.String>;
1056
+ }>;
1057
+ }>;
1058
+ declare const StreamCompletedTelemetryEventSchema: Schema.Struct<{
1059
+ readonly name: Schema.Literal<"stream_completed">;
1060
+ readonly props: Schema.Struct<{
1061
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1062
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1063
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1064
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1065
+ readonly status: Schema.optional<Schema.String>;
1066
+ readonly available_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1067
+ readonly reason: Schema.optional<Schema.String>;
1068
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1069
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1070
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1071
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1072
+ readonly journey_id: Schema.optional<Schema.String>;
1073
+ readonly correlation_id: Schema.optional<Schema.String>;
1074
+ readonly sdk_version: Schema.optional<Schema.String>;
1075
+ }>;
1076
+ }>;
1077
+ declare const StreamFailedTelemetryEventSchema: Schema.Struct<{
1078
+ readonly name: Schema.Literal<"stream_failed">;
1079
+ readonly props: Schema.Struct<{
1080
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1081
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1082
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1083
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1084
+ readonly status: Schema.optional<Schema.String>;
1085
+ readonly available_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1086
+ readonly reason: Schema.optional<Schema.String>;
1087
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1088
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1089
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1090
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1091
+ readonly journey_id: Schema.optional<Schema.String>;
1092
+ readonly correlation_id: Schema.optional<Schema.String>;
1093
+ readonly sdk_version: Schema.optional<Schema.String>;
1094
+ }>;
1095
+ }>;
1096
+ declare const WithdrawalRequestedTelemetryEventSchema: Schema.Struct<{
1097
+ readonly name: Schema.Literal<"withdrawal_requested">;
1098
+ readonly props: Schema.Struct<{
1099
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1100
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1101
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1102
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1103
+ readonly status: Schema.optional<Schema.String>;
1104
+ readonly reason: Schema.optional<Schema.String>;
1105
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1106
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1107
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1108
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1109
+ readonly journey_id: Schema.optional<Schema.String>;
1110
+ readonly correlation_id: Schema.optional<Schema.String>;
1111
+ readonly sdk_version: Schema.optional<Schema.String>;
1112
+ }>;
1113
+ }>;
1114
+ declare const WithdrawalSubmittedTelemetryEventSchema: Schema.Struct<{
1115
+ readonly name: Schema.Literal<"withdrawal_submitted">;
1116
+ readonly props: Schema.Struct<{
1117
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1118
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1119
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1120
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1121
+ readonly status: Schema.optional<Schema.String>;
1122
+ readonly reason: Schema.optional<Schema.String>;
1123
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1124
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1125
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1126
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1127
+ readonly journey_id: Schema.optional<Schema.String>;
1128
+ readonly correlation_id: Schema.optional<Schema.String>;
1129
+ readonly sdk_version: Schema.optional<Schema.String>;
1130
+ }>;
1131
+ }>;
1132
+ declare const WithdrawalSettledTelemetryEventSchema: Schema.Struct<{
1133
+ readonly name: Schema.Literal<"withdrawal_settled">;
1134
+ readonly props: Schema.Struct<{
1135
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1136
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1137
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1138
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1139
+ readonly status: Schema.optional<Schema.String>;
1140
+ readonly reason: Schema.optional<Schema.String>;
1141
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1142
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1143
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1144
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1145
+ readonly journey_id: Schema.optional<Schema.String>;
1146
+ readonly correlation_id: Schema.optional<Schema.String>;
1147
+ readonly sdk_version: Schema.optional<Schema.String>;
1148
+ }>;
1149
+ }>;
1150
+ declare const WithdrawalFailedTelemetryEventSchema: Schema.Struct<{
1151
+ readonly name: Schema.Literal<"withdrawal_failed">;
1152
+ readonly props: Schema.Struct<{
1153
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1154
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1155
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1156
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1157
+ readonly status: Schema.optional<Schema.String>;
1158
+ readonly reason: Schema.optional<Schema.String>;
1159
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1160
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1161
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1162
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1163
+ readonly journey_id: Schema.optional<Schema.String>;
1164
+ readonly correlation_id: Schema.optional<Schema.String>;
1165
+ readonly sdk_version: Schema.optional<Schema.String>;
1166
+ }>;
1167
+ }>;
1168
+ declare const TELEMETRY_EVENT_SCHEMAS: {
1169
+ readonly auth_otp_requested: Schema.Struct<{
1170
+ readonly name: Schema.Literal<"auth_otp_requested">;
1171
+ readonly props: Schema.Struct<{
1172
+ readonly email: Schema.optional<Schema.brand<Schema.String, "PII">>;
1173
+ readonly email_domain: Schema.optional<Schema.String>;
1174
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1175
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1176
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1177
+ readonly journey_id: Schema.optional<Schema.String>;
1178
+ readonly correlation_id: Schema.optional<Schema.String>;
1179
+ readonly sdk_version: Schema.optional<Schema.String>;
1180
+ }>;
1181
+ }>;
1182
+ readonly auth_otp_delivered: Schema.Struct<{
1183
+ readonly name: Schema.Literal<"auth_otp_delivered">;
1184
+ readonly props: Schema.Struct<{
1185
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1186
+ readonly email: Schema.optional<Schema.brand<Schema.String, "PII">>;
1187
+ readonly email_domain: Schema.optional<Schema.String>;
1188
+ readonly resendMessageId: Schema.optional<Schema.String>;
1189
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1190
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1191
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1192
+ readonly journey_id: Schema.optional<Schema.String>;
1193
+ readonly correlation_id: Schema.optional<Schema.String>;
1194
+ readonly sdk_version: Schema.optional<Schema.String>;
1195
+ }>;
1196
+ }>;
1197
+ readonly auth_otp_expired: Schema.Struct<{
1198
+ readonly name: Schema.Literal<"auth_otp_expired">;
1199
+ readonly props: Schema.Struct<{
1200
+ readonly email: Schema.optional<Schema.brand<Schema.String, "PII">>;
1201
+ readonly email_domain: Schema.optional<Schema.String>;
1202
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1203
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1204
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1205
+ readonly journey_id: Schema.optional<Schema.String>;
1206
+ readonly correlation_id: Schema.optional<Schema.String>;
1207
+ readonly sdk_version: Schema.optional<Schema.String>;
1208
+ }>;
1209
+ }>;
1210
+ readonly auth_verified: Schema.Struct<{
1211
+ readonly name: Schema.Literal<"auth_verified">;
1212
+ readonly props: Schema.Struct<{
1213
+ readonly auth_type: Schema.optional<Schema.String>;
1214
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1215
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1216
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1217
+ readonly journey_id: Schema.optional<Schema.String>;
1218
+ readonly correlation_id: Schema.optional<Schema.String>;
1219
+ readonly sdk_version: Schema.optional<Schema.String>;
1220
+ }>;
1221
+ }>;
1222
+ readonly auth_failed: Schema.Struct<{
1223
+ readonly name: Schema.Literal<"auth_failed">;
1224
+ readonly props: Schema.Struct<{
1225
+ readonly email: Schema.optional<Schema.brand<Schema.String, "PII">>;
1226
+ readonly auth_type: Schema.optional<Schema.String>;
1227
+ readonly reason: Schema.optional<Schema.String>;
1228
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1229
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1230
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1231
+ readonly journey_id: Schema.optional<Schema.String>;
1232
+ readonly correlation_id: Schema.optional<Schema.String>;
1233
+ readonly sdk_version: Schema.optional<Schema.String>;
1234
+ }>;
1235
+ }>;
1236
+ readonly auth_signed_out: Schema.Struct<{
1237
+ readonly name: Schema.Literal<"auth_signed_out">;
1238
+ readonly props: Schema.Struct<{
1239
+ capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1240
+ producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1241
+ capxul_e2e_run_id: Schema.optional<Schema.String>;
1242
+ journey_id: Schema.optional<Schema.String>;
1243
+ correlation_id: Schema.optional<Schema.String>;
1244
+ sdk_version: Schema.optional<Schema.String>;
1245
+ }>;
1246
+ }>;
1247
+ readonly provisioning_safe_created: Schema.Struct<{
1248
+ readonly name: Schema.Literal<"provisioning_safe_created">;
1249
+ readonly props: Schema.Struct<{
1250
+ readonly safe_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1251
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1252
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1253
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1254
+ readonly journey_id: Schema.optional<Schema.String>;
1255
+ readonly correlation_id: Schema.optional<Schema.String>;
1256
+ readonly sdk_version: Schema.optional<Schema.String>;
1257
+ }>;
1258
+ }>;
1259
+ readonly provisioning_safe_confirmed: Schema.Struct<{
1260
+ readonly name: Schema.Literal<"provisioning_safe_confirmed">;
1261
+ readonly props: Schema.Struct<{
1262
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1263
+ readonly deployedAt: Schema.optional<Schema.Codec<EpochMs, number, never, never>>;
1264
+ readonly deployedAtBlock: Schema.optional<Schema.Codec<BlockNumber, number, never, never>>;
1265
+ readonly deployTxHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
1266
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1267
+ readonly safe_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1268
+ readonly userOpHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
1269
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1270
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1271
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1272
+ readonly journey_id: Schema.optional<Schema.String>;
1273
+ readonly correlation_id: Schema.optional<Schema.String>;
1274
+ readonly sdk_version: Schema.optional<Schema.String>;
1275
+ }>;
1276
+ }>;
1277
+ readonly bootstrap_resolved: Schema.Struct<{
1278
+ readonly name: Schema.Literal<"bootstrap_resolved">;
1279
+ readonly props: Schema.Struct<{
1280
+ readonly applicationId: Schema.optional<Schema.Codec<AppId, string, never, never>>;
1281
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1282
+ readonly env: Schema.optional<Schema.String>;
1283
+ readonly keyId: Schema.optional<Schema.Codec<PublishableKeyId, string, never, never>>;
1284
+ readonly origin: Schema.optional<Schema.String>;
1285
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1286
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1287
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1288
+ readonly journey_id: Schema.optional<Schema.String>;
1289
+ readonly correlation_id: Schema.optional<Schema.String>;
1290
+ readonly sdk_version: Schema.optional<Schema.String>;
1291
+ }>;
1292
+ }>;
1293
+ readonly bootstrap_failed: Schema.Struct<{
1294
+ readonly name: Schema.Literal<"bootstrap_failed">;
1295
+ readonly props: Schema.Struct<{
1296
+ readonly applicationId: Schema.optional<Schema.Codec<AppId, string, never, never>>;
1297
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1298
+ readonly origin: Schema.optional<Schema.String>;
1299
+ readonly reason: Schema.optional<Schema.String>;
1300
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1301
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1302
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1303
+ readonly journey_id: Schema.optional<Schema.String>;
1304
+ readonly correlation_id: Schema.optional<Schema.String>;
1305
+ readonly sdk_version: Schema.optional<Schema.String>;
1306
+ }>;
1307
+ }>;
1308
+ readonly member_activation_started: Schema.Struct<{
1309
+ readonly name: Schema.Literal<"member_activation_started">;
1310
+ readonly props: Schema.Struct<{
1311
+ readonly $insert_id: Schema.String;
1312
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1313
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1314
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1315
+ readonly journey_id: Schema.optional<Schema.String>;
1316
+ readonly correlation_id: Schema.optional<Schema.String>;
1317
+ readonly sdk_version: Schema.optional<Schema.String>;
1318
+ }>;
1319
+ }>;
1320
+ readonly member_activation_ready: Schema.Struct<{
1321
+ readonly name: Schema.Literal<"member_activation_ready">;
1322
+ readonly props: Schema.Struct<{
1323
+ readonly $insert_id: Schema.String;
1324
+ readonly duration_ms: Schema.Codec<DurationMs, number, never, never>;
1325
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1326
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1327
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1328
+ readonly journey_id: Schema.optional<Schema.String>;
1329
+ readonly correlation_id: Schema.optional<Schema.String>;
1330
+ readonly sdk_version: Schema.optional<Schema.String>;
1331
+ }>;
1332
+ }>;
1333
+ readonly member_activation_failed: Schema.Struct<{
1334
+ readonly name: Schema.Literal<"member_activation_failed">;
1335
+ readonly props: Schema.Struct<{
1336
+ readonly $insert_id: Schema.String;
1337
+ readonly stage: Schema.Literals<readonly ["profile", "accountProvisioning", "accountClaim", "preparingFounderAccount", "awaitingFounderAuthorization", "submittingBootstrap", "confirmingBootstrap"]>;
1338
+ readonly error_code: Schema.String;
1339
+ readonly retryable: Schema.Boolean;
1340
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1341
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1342
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1343
+ readonly journey_id: Schema.optional<Schema.String>;
1344
+ readonly correlation_id: Schema.optional<Schema.String>;
1345
+ readonly sdk_version: Schema.optional<Schema.String>;
1346
+ }>;
1347
+ }>;
1348
+ readonly organization_creation_started: Schema.Struct<{
1349
+ readonly name: Schema.Literal<"organization_creation_started">;
1350
+ readonly props: Schema.Struct<{
1351
+ readonly $insert_id: Schema.String;
1352
+ readonly organization_id: Schema.Codec<string, string, never, never>;
1353
+ readonly attempt_number: Schema.refine<number, Schema.Number>;
1354
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1355
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1356
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1357
+ readonly journey_id: Schema.optional<Schema.String>;
1358
+ readonly correlation_id: Schema.optional<Schema.String>;
1359
+ readonly sdk_version: Schema.optional<Schema.String>;
1360
+ }>;
1361
+ }>;
1362
+ readonly organization_creation_ready: Schema.Struct<{
1363
+ readonly name: Schema.Literal<"organization_creation_ready">;
1364
+ readonly props: Schema.Struct<{
1365
+ readonly $insert_id: Schema.String;
1366
+ readonly organization_id: Schema.Codec<string, string, never, never>;
1367
+ readonly attempt_number: Schema.refine<number, Schema.Number>;
1368
+ readonly duration_ms: Schema.Codec<DurationMs, number, never, never>;
1369
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1370
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1371
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1372
+ readonly journey_id: Schema.optional<Schema.String>;
1373
+ readonly correlation_id: Schema.optional<Schema.String>;
1374
+ readonly sdk_version: Schema.optional<Schema.String>;
1375
+ }>;
1376
+ }>;
1377
+ readonly organization_creation_failed: Schema.Struct<{
1378
+ readonly name: Schema.Literal<"organization_creation_failed">;
1379
+ readonly props: Schema.Struct<{
1380
+ readonly $insert_id: Schema.String;
1381
+ readonly organization_id: Schema.Codec<string, string, never, never>;
1382
+ readonly attempt_number: Schema.refine<number, Schema.Number>;
1383
+ readonly stage: Schema.Literals<readonly ["profile", "accountProvisioning", "accountClaim", "preparingFounderAccount", "awaitingFounderAuthorization", "submittingBootstrap", "confirmingBootstrap"]>;
1384
+ readonly error_code: Schema.String;
1385
+ readonly retryable: Schema.Boolean;
1386
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1387
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1388
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1389
+ readonly journey_id: Schema.optional<Schema.String>;
1390
+ readonly correlation_id: Schema.optional<Schema.String>;
1391
+ readonly sdk_version: Schema.optional<Schema.String>;
1392
+ }>;
1393
+ }>;
1394
+ readonly account_balance_read: Schema.Struct<{
1395
+ readonly name: Schema.Literal<"account_balance_read">;
1396
+ readonly props: Schema.Struct<{
1397
+ readonly account_id: Schema.optional<Schema.Codec<AccountId, string, never, never>>;
1398
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1399
+ readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1400
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1401
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1402
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1403
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1404
+ readonly journey_id: Schema.optional<Schema.String>;
1405
+ readonly correlation_id: Schema.optional<Schema.String>;
1406
+ readonly sdk_version: Schema.optional<Schema.String>;
1407
+ }>;
1408
+ }>;
1409
+ readonly account_balance_failed: Schema.Struct<{
1410
+ readonly name: Schema.Literal<"account_balance_failed">;
1411
+ readonly props: Schema.Struct<{
1412
+ readonly reason: Schema.optional<Schema.String>;
1413
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1414
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1415
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1416
+ readonly journey_id: Schema.optional<Schema.String>;
1417
+ readonly correlation_id: Schema.optional<Schema.String>;
1418
+ readonly sdk_version: Schema.optional<Schema.String>;
1419
+ }>;
1420
+ }>;
1421
+ readonly faucet_requested: Schema.Struct<{
1422
+ readonly name: Schema.Literal<"faucet_requested">;
1423
+ readonly props: Schema.Struct<{
1424
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1425
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1426
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1427
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1428
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1429
+ readonly journey_id: Schema.optional<Schema.String>;
1430
+ readonly correlation_id: Schema.optional<Schema.String>;
1431
+ readonly sdk_version: Schema.optional<Schema.String>;
1432
+ }>;
1433
+ }>;
1434
+ readonly faucet_confirmed: Schema.Struct<{
1435
+ readonly name: Schema.Literal<"faucet_confirmed">;
1436
+ readonly props: Schema.Struct<{
1437
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1438
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1439
+ readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
1440
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1441
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1442
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1443
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1444
+ readonly journey_id: Schema.optional<Schema.String>;
1445
+ readonly correlation_id: Schema.optional<Schema.String>;
1446
+ readonly sdk_version: Schema.optional<Schema.String>;
1447
+ }>;
1448
+ }>;
1449
+ readonly faucet_failed: Schema.Struct<{
1450
+ readonly name: Schema.Literal<"faucet_failed">;
1451
+ readonly props: Schema.Struct<{
1452
+ readonly reason: Schema.optional<Schema.String>;
1453
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1454
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1455
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1456
+ readonly journey_id: Schema.optional<Schema.String>;
1457
+ readonly correlation_id: Schema.optional<Schema.String>;
1458
+ readonly sdk_version: Schema.optional<Schema.String>;
1459
+ }>;
1460
+ }>;
1461
+ readonly subaccount_created: Schema.Struct<{
1462
+ readonly name: Schema.Literal<"subaccount_created">;
1463
+ readonly props: Schema.Struct<{
1464
+ readonly sub_account_id: Schema.optional<Schema.Codec<SubAccountId, string, never, never>>;
1465
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1466
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1467
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1468
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1469
+ readonly journey_id: Schema.optional<Schema.String>;
1470
+ readonly correlation_id: Schema.optional<Schema.String>;
1471
+ readonly sdk_version: Schema.optional<Schema.String>;
1472
+ }>;
1473
+ }>;
1474
+ readonly subaccount_renamed: Schema.Struct<{
1475
+ readonly name: Schema.Literal<"subaccount_renamed">;
1476
+ readonly props: Schema.Struct<{
1477
+ readonly sub_account_id: Schema.optional<Schema.Codec<SubAccountId, string, never, never>>;
1478
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1479
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1480
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1481
+ readonly journey_id: Schema.optional<Schema.String>;
1482
+ readonly correlation_id: Schema.optional<Schema.String>;
1483
+ readonly sdk_version: Schema.optional<Schema.String>;
1484
+ }>;
1485
+ }>;
1486
+ readonly subaccount_deleted: Schema.Struct<{
1487
+ readonly name: Schema.Literal<"subaccount_deleted">;
1488
+ readonly props: Schema.Struct<{
1489
+ readonly sub_account_id: Schema.optional<Schema.Codec<SubAccountId, string, never, never>>;
1490
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1491
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1492
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1493
+ readonly journey_id: Schema.optional<Schema.String>;
1494
+ readonly correlation_id: Schema.optional<Schema.String>;
1495
+ readonly sdk_version: Schema.optional<Schema.String>;
1496
+ }>;
1497
+ }>;
1498
+ readonly subaccount_op_failed: Schema.Struct<{
1499
+ readonly name: Schema.Literal<"subaccount_op_failed">;
1500
+ readonly props: Schema.Struct<{
1501
+ readonly op: Schema.optional<Schema.Literals<readonly ["create", "rename", "delete"]>>;
1502
+ readonly reason: Schema.optional<Schema.String>;
1503
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1504
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1505
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1506
+ readonly journey_id: Schema.optional<Schema.String>;
1507
+ readonly correlation_id: Schema.optional<Schema.String>;
1508
+ readonly sdk_version: Schema.optional<Schema.String>;
1509
+ }>;
1510
+ }>;
1511
+ readonly transfer_requested: Schema.Struct<{
1512
+ readonly name: Schema.Literal<"transfer_requested">;
1513
+ readonly props: Schema.Struct<{
1514
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1515
+ readonly direction: Schema.optional<Schema.Literals<readonly ["add", "out", "between"]>>;
1516
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1517
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1518
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1519
+ readonly journey_id: Schema.optional<Schema.String>;
1520
+ readonly correlation_id: Schema.optional<Schema.String>;
1521
+ readonly sdk_version: Schema.optional<Schema.String>;
1522
+ }>;
1523
+ }>;
1524
+ readonly transfer_backend_received: Schema.Struct<{
1525
+ readonly name: Schema.Literal<"transfer_backend_received">;
1526
+ readonly props: Schema.Struct<{
1527
+ readonly direction: Schema.optional<Schema.Literals<readonly ["add", "out", "between"]>>;
1528
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1529
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1530
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1531
+ readonly journey_id: Schema.optional<Schema.String>;
1532
+ readonly correlation_id: Schema.optional<Schema.String>;
1533
+ readonly sdk_version: Schema.optional<Schema.String>;
1534
+ }>;
1535
+ }>;
1536
+ readonly transfer_confirmed: Schema.Struct<{
1537
+ readonly name: Schema.Literal<"transfer_confirmed">;
1538
+ readonly props: Schema.Struct<{
1539
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1540
+ readonly direction: Schema.optional<Schema.Literals<readonly ["add", "out", "between"]>>;
1541
+ readonly available_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1542
+ readonly txless: Schema.optional<Schema.Literal<true>>;
1543
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1544
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1545
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1546
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1547
+ readonly journey_id: Schema.optional<Schema.String>;
1548
+ readonly correlation_id: Schema.optional<Schema.String>;
1549
+ readonly sdk_version: Schema.optional<Schema.String>;
1550
+ }>;
1551
+ }>;
1552
+ readonly transfer_failed: Schema.Struct<{
1553
+ readonly name: Schema.Literal<"transfer_failed">;
1554
+ readonly props: Schema.Struct<{
1555
+ readonly reason: Schema.optional<Schema.String>;
1556
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1557
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1558
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1559
+ readonly journey_id: Schema.optional<Schema.String>;
1560
+ readonly correlation_id: Schema.optional<Schema.String>;
1561
+ readonly sdk_version: Schema.optional<Schema.String>;
1562
+ }>;
1563
+ }>;
1564
+ readonly org_create_started: Schema.Struct<{
1565
+ readonly name: Schema.Literal<"org_create_started">;
1566
+ readonly props: Schema.Struct<{
1567
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1568
+ readonly email_domain: Schema.optional<Schema.String>;
1569
+ readonly template: Schema.optional<Schema.String>;
1570
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1571
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1572
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1573
+ readonly journey_id: Schema.optional<Schema.String>;
1574
+ readonly correlation_id: Schema.optional<Schema.String>;
1575
+ readonly sdk_version: Schema.optional<Schema.String>;
1576
+ }>;
1577
+ }>;
1578
+ readonly org_safe_created: Schema.Struct<{
1579
+ readonly name: Schema.Literal<"org_safe_created">;
1580
+ readonly props: Schema.Struct<{
1581
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1582
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1583
+ readonly safe_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1584
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1585
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1586
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1587
+ readonly journey_id: Schema.optional<Schema.String>;
1588
+ readonly correlation_id: Schema.optional<Schema.String>;
1589
+ readonly sdk_version: Schema.optional<Schema.String>;
1590
+ }>;
1591
+ }>;
1592
+ readonly org_safe_confirmed: Schema.Struct<{
1593
+ readonly name: Schema.Literal<"org_safe_confirmed">;
1594
+ readonly props: Schema.Struct<{
1595
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1596
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1597
+ readonly safe_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1598
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1599
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1600
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1601
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1602
+ readonly journey_id: Schema.optional<Schema.String>;
1603
+ readonly correlation_id: Schema.optional<Schema.String>;
1604
+ readonly sdk_version: Schema.optional<Schema.String>;
1605
+ }>;
1606
+ }>;
1607
+ readonly org_roles_seeded: Schema.Struct<{
1608
+ readonly name: Schema.Literal<"org_roles_seeded">;
1609
+ readonly props: Schema.Struct<{
1610
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1611
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1612
+ readonly role: Schema.optional<Schema.String>;
1613
+ readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
1614
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1615
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1616
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1617
+ readonly journey_id: Schema.optional<Schema.String>;
1618
+ readonly correlation_id: Schema.optional<Schema.String>;
1619
+ readonly sdk_version: Schema.optional<Schema.String>;
1620
+ }>;
1621
+ }>;
1622
+ readonly org_created: Schema.Struct<{
1623
+ readonly name: Schema.Literal<"org_created">;
1624
+ readonly props: Schema.Struct<{
1625
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1626
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1627
+ readonly safe_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1628
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1629
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1630
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1631
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1632
+ readonly journey_id: Schema.optional<Schema.String>;
1633
+ readonly correlation_id: Schema.optional<Schema.String>;
1634
+ readonly sdk_version: Schema.optional<Schema.String>;
1635
+ }>;
1636
+ }>;
1637
+ readonly org_create_failed: Schema.Struct<{
1638
+ readonly name: Schema.Literal<"org_create_failed">;
1639
+ readonly props: Schema.Struct<{
1640
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1641
+ readonly reason: Schema.optional<Schema.String>;
1642
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1643
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1644
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1645
+ readonly journey_id: Schema.optional<Schema.String>;
1646
+ readonly correlation_id: Schema.optional<Schema.String>;
1647
+ readonly sdk_version: Schema.optional<Schema.String>;
1648
+ }>;
1649
+ }>;
1650
+ readonly org_invite_sent: Schema.Struct<{
1651
+ readonly name: Schema.Literal<"org_invite_sent">;
1652
+ readonly props: Schema.Struct<{
1653
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1654
+ readonly email_domain: Schema.optional<Schema.String>;
1655
+ readonly role: Schema.optional<Schema.String>;
1656
+ readonly status: Schema.optional<Schema.String>;
1657
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1658
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1659
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1660
+ readonly journey_id: Schema.optional<Schema.String>;
1661
+ readonly correlation_id: Schema.optional<Schema.String>;
1662
+ readonly sdk_version: Schema.optional<Schema.String>;
1663
+ }>;
1664
+ }>;
1665
+ readonly org_invite_accepted: Schema.Struct<{
1666
+ readonly name: Schema.Literal<"org_invite_accepted">;
1667
+ readonly props: Schema.Struct<{
1668
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1669
+ readonly role: Schema.optional<Schema.String>;
1670
+ readonly status: Schema.optional<Schema.String>;
1671
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1672
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1673
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1674
+ readonly journey_id: Schema.optional<Schema.String>;
1675
+ readonly correlation_id: Schema.optional<Schema.String>;
1676
+ readonly sdk_version: Schema.optional<Schema.String>;
1677
+ }>;
1678
+ }>;
1679
+ readonly org_role_granted: Schema.Struct<{
1680
+ readonly name: Schema.Literal<"org_role_granted">;
1681
+ readonly props: Schema.Struct<{
1682
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1683
+ readonly role: Schema.optional<Schema.String>;
1684
+ readonly status: Schema.optional<Schema.String>;
1685
+ readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
1686
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1687
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1688
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1689
+ readonly journey_id: Schema.optional<Schema.String>;
1690
+ readonly correlation_id: Schema.optional<Schema.String>;
1691
+ readonly sdk_version: Schema.optional<Schema.String>;
1692
+ }>;
1693
+ }>;
1694
+ readonly org_member_active: Schema.Struct<{
1695
+ readonly name: Schema.Literal<"org_member_active">;
1696
+ readonly props: Schema.Struct<{
1697
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1698
+ readonly role: Schema.optional<Schema.String>;
1699
+ readonly status: Schema.optional<Schema.String>;
1700
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1701
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1702
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1703
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1704
+ readonly journey_id: Schema.optional<Schema.String>;
1705
+ readonly correlation_id: Schema.optional<Schema.String>;
1706
+ readonly sdk_version: Schema.optional<Schema.String>;
1707
+ }>;
1708
+ }>;
1709
+ readonly org_member_removed: Schema.Struct<{
1710
+ readonly name: Schema.Literal<"org_member_removed">;
1711
+ readonly props: Schema.Struct<{
1712
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1713
+ readonly role: Schema.optional<Schema.String>;
1714
+ readonly status: Schema.optional<Schema.String>;
1715
+ readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
1716
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1717
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1718
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1719
+ readonly journey_id: Schema.optional<Schema.String>;
1720
+ readonly correlation_id: Schema.optional<Schema.String>;
1721
+ readonly sdk_version: Schema.optional<Schema.String>;
1722
+ }>;
1723
+ }>;
1724
+ readonly org_invite_expired: Schema.Struct<{
1725
+ readonly name: Schema.Literal<"org_invite_expired">;
1726
+ readonly props: Schema.Struct<{
1727
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1728
+ readonly email_domain: Schema.optional<Schema.String>;
1729
+ readonly reason: Schema.optional<Schema.String>;
1730
+ readonly role: Schema.optional<Schema.String>;
1731
+ readonly status: Schema.optional<Schema.String>;
1732
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1733
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1734
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1735
+ readonly journey_id: Schema.optional<Schema.String>;
1736
+ readonly correlation_id: Schema.optional<Schema.String>;
1737
+ readonly sdk_version: Schema.optional<Schema.String>;
1738
+ }>;
1739
+ }>;
1740
+ readonly org_role_grant_failed: Schema.Struct<{
1741
+ readonly name: Schema.Literal<"org_role_grant_failed">;
1742
+ readonly props: Schema.Struct<{
1743
+ readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1744
+ readonly reason: Schema.optional<Schema.String>;
1745
+ readonly role: Schema.optional<Schema.String>;
1746
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1747
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1748
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1749
+ readonly journey_id: Schema.optional<Schema.String>;
1750
+ readonly correlation_id: Schema.optional<Schema.String>;
1751
+ readonly sdk_version: Schema.optional<Schema.String>;
1752
+ }>;
1753
+ }>;
1754
+ readonly payment_requested: Schema.Struct<{
1755
+ readonly name: Schema.Literal<"payment_requested">;
1756
+ readonly props: Schema.Struct<{
1757
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1758
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
1759
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1760
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1761
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1762
+ readonly status: Schema.optional<Schema.String>;
1763
+ readonly reason: Schema.optional<Schema.String>;
1764
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1765
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1766
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1767
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1768
+ readonly journey_id: Schema.optional<Schema.String>;
1769
+ readonly correlation_id: Schema.optional<Schema.String>;
1770
+ readonly sdk_version: Schema.optional<Schema.String>;
1771
+ }>;
1772
+ }>;
1773
+ readonly payment_resolved: Schema.Struct<{
1774
+ readonly name: Schema.Literal<"payment_resolved">;
1775
+ readonly props: Schema.Struct<{
1776
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1777
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
1778
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1779
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1780
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1781
+ readonly status: Schema.optional<Schema.String>;
1782
+ readonly reason: Schema.optional<Schema.String>;
1783
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1784
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1785
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1786
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1787
+ readonly journey_id: Schema.optional<Schema.String>;
1788
+ readonly correlation_id: Schema.optional<Schema.String>;
1789
+ readonly sdk_version: Schema.optional<Schema.String>;
1790
+ }>;
1791
+ }>;
1792
+ readonly payment_document_attached: Schema.Struct<{
1793
+ readonly name: Schema.Literal<"payment_document_attached">;
1794
+ readonly props: Schema.Struct<{
1795
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1796
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
1797
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1798
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1799
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1800
+ readonly status: Schema.optional<Schema.String>;
1801
+ readonly reason: Schema.optional<Schema.String>;
1802
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1803
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1804
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1805
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1806
+ readonly journey_id: Schema.optional<Schema.String>;
1807
+ readonly correlation_id: Schema.optional<Schema.String>;
1808
+ readonly sdk_version: Schema.optional<Schema.String>;
1809
+ }>;
1810
+ }>;
1811
+ readonly payment_submitted: Schema.Struct<{
1812
+ readonly name: Schema.Literal<"payment_submitted">;
1813
+ readonly props: Schema.Struct<{
1814
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1815
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
1816
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1817
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1818
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1819
+ readonly status: Schema.optional<Schema.String>;
1820
+ readonly reason: Schema.optional<Schema.String>;
1821
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1822
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1823
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1824
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1825
+ readonly journey_id: Schema.optional<Schema.String>;
1826
+ readonly correlation_id: Schema.optional<Schema.String>;
1827
+ readonly sdk_version: Schema.optional<Schema.String>;
1828
+ }>;
1829
+ }>;
1830
+ readonly payment_settled: Schema.Struct<{
1831
+ readonly name: Schema.Literal<"payment_settled">;
1832
+ readonly props: Schema.Struct<{
1833
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1834
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
1835
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1836
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1837
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1838
+ readonly status: Schema.optional<Schema.String>;
1839
+ readonly reason: Schema.optional<Schema.String>;
1840
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1841
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1842
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1843
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1844
+ readonly journey_id: Schema.optional<Schema.String>;
1845
+ readonly correlation_id: Schema.optional<Schema.String>;
1846
+ readonly sdk_version: Schema.optional<Schema.String>;
1847
+ }>;
1848
+ }>;
1849
+ readonly payment_claimed: Schema.Struct<{
1850
+ readonly name: Schema.Literal<"payment_claimed">;
1851
+ readonly props: Schema.Struct<{
1852
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1853
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
1854
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1855
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1856
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1857
+ readonly status: Schema.optional<Schema.String>;
1858
+ readonly reason: Schema.optional<Schema.String>;
1859
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1860
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1861
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1862
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1863
+ readonly journey_id: Schema.optional<Schema.String>;
1864
+ readonly correlation_id: Schema.optional<Schema.String>;
1865
+ readonly sdk_version: Schema.optional<Schema.String>;
1866
+ }>;
1867
+ }>;
1868
+ readonly payment_cancelled: Schema.Struct<{
1869
+ readonly name: Schema.Literal<"payment_cancelled">;
1870
+ readonly props: Schema.Struct<{
1871
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1872
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
1873
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1874
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1875
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1876
+ readonly status: Schema.optional<Schema.String>;
1877
+ readonly reason: Schema.optional<Schema.String>;
1878
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1879
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1880
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1881
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1882
+ readonly journey_id: Schema.optional<Schema.String>;
1883
+ readonly correlation_id: Schema.optional<Schema.String>;
1884
+ readonly sdk_version: Schema.optional<Schema.String>;
1885
+ }>;
1886
+ }>;
1887
+ readonly payment_redirected: Schema.Struct<{
1888
+ readonly name: Schema.Literal<"payment_redirected">;
1889
+ readonly props: Schema.Struct<{
1890
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1891
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
1892
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1893
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1894
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1895
+ readonly status: Schema.optional<Schema.String>;
1896
+ readonly reason: Schema.optional<Schema.String>;
1897
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1898
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1899
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1900
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1901
+ readonly journey_id: Schema.optional<Schema.String>;
1902
+ readonly correlation_id: Schema.optional<Schema.String>;
1903
+ readonly sdk_version: Schema.optional<Schema.String>;
1904
+ }>;
1905
+ }>;
1906
+ readonly payment_failed: Schema.Struct<{
1907
+ readonly name: Schema.Literal<"payment_failed">;
1908
+ readonly props: Schema.Struct<{
1909
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1910
+ readonly payee_id: Schema.optional<Schema.refine<string, Schema.String>>;
1911
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1912
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1913
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1914
+ readonly status: Schema.optional<Schema.String>;
1915
+ readonly reason: Schema.optional<Schema.String>;
1916
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1917
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1918
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1919
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1920
+ readonly journey_id: Schema.optional<Schema.String>;
1921
+ readonly correlation_id: Schema.optional<Schema.String>;
1922
+ readonly sdk_version: Schema.optional<Schema.String>;
1923
+ }>;
1924
+ }>;
1925
+ readonly stream_created: Schema.Struct<{
1926
+ readonly name: Schema.Literal<"stream_created">;
1927
+ readonly props: Schema.Struct<{
1928
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1929
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1930
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1931
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1932
+ readonly status: Schema.optional<Schema.String>;
1933
+ readonly available_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1934
+ readonly reason: Schema.optional<Schema.String>;
1935
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1936
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1937
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1938
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1939
+ readonly journey_id: Schema.optional<Schema.String>;
1940
+ readonly correlation_id: Schema.optional<Schema.String>;
1941
+ readonly sdk_version: Schema.optional<Schema.String>;
1942
+ }>;
1943
+ }>;
1944
+ readonly stream_claimed: Schema.Struct<{
1945
+ readonly name: Schema.Literal<"stream_claimed">;
1946
+ readonly props: Schema.Struct<{
1947
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1948
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1949
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1950
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1951
+ readonly status: Schema.optional<Schema.String>;
1952
+ readonly available_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1953
+ readonly reason: Schema.optional<Schema.String>;
1954
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1955
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1956
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1957
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1958
+ readonly journey_id: Schema.optional<Schema.String>;
1959
+ readonly correlation_id: Schema.optional<Schema.String>;
1960
+ readonly sdk_version: Schema.optional<Schema.String>;
1961
+ }>;
1962
+ }>;
1963
+ readonly stream_cancelled: Schema.Struct<{
1964
+ readonly name: Schema.Literal<"stream_cancelled">;
1965
+ readonly props: Schema.Struct<{
1966
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1967
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1968
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1969
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1970
+ readonly status: Schema.optional<Schema.String>;
1971
+ readonly available_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1972
+ readonly reason: Schema.optional<Schema.String>;
1973
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1974
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1975
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1976
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1977
+ readonly journey_id: Schema.optional<Schema.String>;
1978
+ readonly correlation_id: Schema.optional<Schema.String>;
1979
+ readonly sdk_version: Schema.optional<Schema.String>;
1980
+ }>;
1981
+ }>;
1982
+ readonly stream_completed: Schema.Struct<{
1983
+ readonly name: Schema.Literal<"stream_completed">;
1984
+ readonly props: Schema.Struct<{
1985
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
1986
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
1987
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1988
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1989
+ readonly status: Schema.optional<Schema.String>;
1990
+ readonly available_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1991
+ readonly reason: Schema.optional<Schema.String>;
1992
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1993
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
1994
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1995
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
1996
+ readonly journey_id: Schema.optional<Schema.String>;
1997
+ readonly correlation_id: Schema.optional<Schema.String>;
1998
+ readonly sdk_version: Schema.optional<Schema.String>;
1999
+ }>;
2000
+ }>;
2001
+ readonly stream_failed: Schema.Struct<{
2002
+ readonly name: Schema.Literal<"stream_failed">;
2003
+ readonly props: Schema.Struct<{
2004
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
2005
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
2006
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
2007
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
2008
+ readonly status: Schema.optional<Schema.String>;
2009
+ readonly available_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
2010
+ readonly reason: Schema.optional<Schema.String>;
2011
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
2012
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
2013
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2014
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
2015
+ readonly journey_id: Schema.optional<Schema.String>;
2016
+ readonly correlation_id: Schema.optional<Schema.String>;
2017
+ readonly sdk_version: Schema.optional<Schema.String>;
2018
+ }>;
2019
+ }>;
2020
+ readonly withdrawal_requested: Schema.Struct<{
2021
+ readonly name: Schema.Literal<"withdrawal_requested">;
2022
+ readonly props: Schema.Struct<{
2023
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
2024
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
2025
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
2026
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
2027
+ readonly status: Schema.optional<Schema.String>;
2028
+ readonly reason: Schema.optional<Schema.String>;
2029
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
2030
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
2031
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2032
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
2033
+ readonly journey_id: Schema.optional<Schema.String>;
2034
+ readonly correlation_id: Schema.optional<Schema.String>;
2035
+ readonly sdk_version: Schema.optional<Schema.String>;
2036
+ }>;
2037
+ }>;
2038
+ readonly withdrawal_submitted: Schema.Struct<{
2039
+ readonly name: Schema.Literal<"withdrawal_submitted">;
2040
+ readonly props: Schema.Struct<{
2041
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
2042
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
2043
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
2044
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
2045
+ readonly status: Schema.optional<Schema.String>;
2046
+ readonly reason: Schema.optional<Schema.String>;
2047
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
2048
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
2049
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2050
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
2051
+ readonly journey_id: Schema.optional<Schema.String>;
2052
+ readonly correlation_id: Schema.optional<Schema.String>;
2053
+ readonly sdk_version: Schema.optional<Schema.String>;
2054
+ }>;
2055
+ }>;
2056
+ readonly withdrawal_settled: Schema.Struct<{
2057
+ readonly name: Schema.Literal<"withdrawal_settled">;
2058
+ readonly props: Schema.Struct<{
2059
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
2060
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
2061
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
2062
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
2063
+ readonly status: Schema.optional<Schema.String>;
2064
+ readonly reason: Schema.optional<Schema.String>;
2065
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
2066
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
2067
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2068
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
2069
+ readonly journey_id: Schema.optional<Schema.String>;
2070
+ readonly correlation_id: Schema.optional<Schema.String>;
2071
+ readonly sdk_version: Schema.optional<Schema.String>;
2072
+ }>;
2073
+ }>;
2074
+ readonly withdrawal_failed: Schema.Struct<{
2075
+ readonly name: Schema.Literal<"withdrawal_failed">;
2076
+ readonly props: Schema.Struct<{
2077
+ readonly payment_id: Schema.optional<Schema.refine<string, Schema.String>>;
2078
+ readonly document_hash: Schema.optional<Schema.refine<string, Schema.String>>;
2079
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
2080
+ readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
2081
+ readonly status: Schema.optional<Schema.String>;
2082
+ readonly reason: Schema.optional<Schema.String>;
2083
+ readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
2084
+ readonly capxul_env: Schema.Literals<readonly ["development", "e2e", "staging", "production", "unknown"]>;
2085
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2086
+ readonly capxul_e2e_run_id: Schema.optional<Schema.String>;
2087
+ readonly journey_id: Schema.optional<Schema.String>;
2088
+ readonly correlation_id: Schema.optional<Schema.String>;
2089
+ readonly sdk_version: Schema.optional<Schema.String>;
2090
+ }>;
2091
+ }>;
2092
+ };
2093
+ declare const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS: readonly [{
2094
+ readonly eventName: "payment_requested";
2095
+ readonly ownerIssue: 410;
2096
+ readonly producer: "sdk-target";
2097
+ }, {
2098
+ readonly eventName: "payment_resolved";
2099
+ readonly ownerIssue: 410;
2100
+ readonly producer: "sdk-target";
2101
+ }, {
2102
+ readonly eventName: "payment_document_attached";
2103
+ readonly ownerIssue: 486;
2104
+ readonly producer: "sdk-target";
2105
+ }, {
2106
+ readonly eventName: "payment_submitted";
2107
+ readonly ownerIssue: 410;
2108
+ readonly producer: "sdk-target";
2109
+ }, {
2110
+ readonly eventName: "payment_failed";
2111
+ readonly ownerIssue: 410;
2112
+ readonly producer: "sdk-target";
2113
+ }, {
2114
+ readonly eventName: "stream_created";
2115
+ readonly ownerIssue: 411;
2116
+ readonly producer: "sdk-target";
2117
+ }, {
2118
+ readonly eventName: "stream_failed";
2119
+ readonly ownerIssue: 411;
2120
+ readonly producer: "sdk-target";
2121
+ }, {
2122
+ readonly eventName: "withdrawal_requested";
2123
+ readonly ownerIssue: 410;
2124
+ readonly producer: "sdk-target";
2125
+ }, {
2126
+ readonly eventName: "withdrawal_submitted";
2127
+ readonly ownerIssue: 410;
2128
+ readonly producer: "sdk-target";
2129
+ }, {
2130
+ readonly eventName: "withdrawal_failed";
2131
+ readonly ownerIssue: 410;
2132
+ readonly producer: "sdk-target";
2133
+ }];
2134
+ /**
2135
+ * Catalog events whose product mapper remains gated on the #1150 frontend
2136
+ * adoption. L1 S1 removes their retired SDK-flow producers without inventing
2137
+ * replacements inside the identity actor. The telemetry-spine gate enforces
2138
+ * planned-XOR-wired: a name must leave this list in the same change that adds
2139
+ * its real product-boundary producer.
2140
+ */
2141
+ declare const PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS: readonly ["auth_otp_requested", "auth_otp_expired", "auth_verified", "auth_failed", "auth_signed_out"];
2142
+ interface TelemetryIdentifyInput {
2143
+ readonly distinctId: string;
2144
+ readonly anonDistinctId?: AnonymousDistinctId;
2145
+ readonly traits?: TelemetryProps;
2146
+ readonly properties?: TelemetryProps;
2147
+ }
2148
+ interface TelemetryGroupInput {
2149
+ readonly groupType: string;
2150
+ readonly groupKey: string;
2151
+ readonly properties?: TelemetryProps;
2152
+ }
2153
+ type TrackHandler = (name: TelemetryEventName, props?: TelemetryProps) => void;
2154
+ declare function setTrackHandler(handler: TrackHandler): TrackHandler;
2155
+ declare function getTrackHandler(): TrackHandler;
2156
+ declare function track(name: TelemetryEventName, props?: TelemetryProps): void;
2157
+ interface TelemetryRedactionOptions {
2158
+ readonly rawMode?: boolean;
2159
+ }
2160
+ declare function redactTelemetryEvent(event: TelemetryEvent, options?: TelemetryRedactionOptions): TelemetryEvent;
2161
+ declare function redactTelemetryProps(name: TelemetryEventName, props: TelemetryProps | undefined, options?: TelemetryRedactionOptions): TelemetryProps | undefined;
2162
+ /**
2163
+ * The vendor-neutral shape needed by a PostHog `before_send` callback.
2164
+ * Keeping this structural avoids making the observability contract depend on
2165
+ * posthog-js while still giving browser hosts one shared URL-scrubbing policy.
2166
+ */
2167
+ interface PostHogBrowserCapture {
2168
+ readonly event: string;
2169
+ properties: Record<string, unknown>;
2170
+ $set?: Record<string, unknown>;
2171
+ $set_once?: Record<string, unknown>;
2172
+ }
2173
+ /**
2174
+ * Remove query strings and fragments from every PostHog URL/referrer/path
2175
+ * property before transport. Browser applications may carry emails, draft ids,
2176
+ * or other capabilities in the URL; those values must never leave the origin.
2177
+ *
2178
+ * The callback mutates and returns the supplied event, matching PostHog's
2179
+ * `before_send` contract while preserving the event's full structural type.
2180
+ */
2181
+ declare function sanitizePostHogBrowserEvent<T extends PostHogBrowserCapture | null>(event: T): T;
2182
+ /**
2183
+ * Sanitize AND stamp. Every browser event leaves with `capxul_env` and
2184
+ * `producer: "browser"` on it, because the browser half has no transport of
2185
+ * its own to stamp at — `before_send` is the one funnel every capture,
2186
+ * pageview, exception and replay-meta event passes through. Forgetting to
2187
+ * register a super-property is therefore not a failure mode.
2188
+ */
2189
+ declare function createCapxulBeforeSend(capxulEnv: CapxulEnv): <T extends PostHogBrowserCapture | null>(event: T) => T;
2190
+ type PostHogBeforeSend = ReturnType<typeof createCapxulBeforeSend>;
2191
+ /**
2192
+ * ADR-0016 posture, unchanged: capability-URL utility apps (approval links,
2193
+ * docs). No persistence, no autocapture, no replay, no flags, pathname-only
2194
+ * pageviews. Survives the app demolition as a library.
2195
+ */
2196
+ interface PostHogUtilityAppOptions {
2197
+ readonly api_host: string;
2198
+ readonly defaults: "2026-01-30";
2199
+ readonly autocapture: false;
2200
+ readonly capture_pageview: false;
2201
+ readonly capture_pageleave: true;
2202
+ readonly disable_session_recording: true;
2203
+ readonly disable_persistence: true;
2204
+ readonly capture_heatmaps: false;
2205
+ readonly capture_exceptions: false;
2206
+ readonly capture_performance: false;
2207
+ readonly disable_surveys: true;
2208
+ readonly disable_web_experiments: true;
2209
+ readonly disable_product_tours: true;
2210
+ readonly disable_conversations: true;
2211
+ readonly disable_external_dependency_loading: true;
2212
+ readonly person_profiles: "identified_only";
2213
+ readonly advanced_disable_flags: true;
2214
+ readonly save_campaign_params: false;
2215
+ readonly save_referrer: false;
2216
+ readonly before_send: PostHogBeforeSend;
2217
+ }
2218
+ /** Back-compat alias for the pre-ADR-0020 name. */
2219
+ type PostHogBrowserOptions = PostHogUtilityAppOptions;
2220
+ /**
2221
+ * ADR-0020 A6 product posture: same sanitizer / slim-bundle / token-guard core
2222
+ * as the utility profile, but the three toggles a PRODUCT needs and a
2223
+ * capability-URL utility must not have —
2224
+ *
2225
+ * - `disable_persistence: false` — J1 spans an OTP reload; without persistence
2226
+ * step 1 and step 3 are different anonymous "users" and every multi-page
2227
+ * funnel lies.
2228
+ * - identify-driven person profiles (ADR-0020 A2 wires the calls at L1).
2229
+ * - session replay, PRODUCTION only, fully masked (inputs, all text, no
2230
+ * canvas, no header/body capture). Below production it stays off, which is
2231
+ * also why external dependency loading (the recorder script) stays blocked
2232
+ * there.
2233
+ *
2234
+ * Autocapture stays OFF: funnels run on catalog events, not on DOM guesses.
2235
+ */
2236
+ interface PostHogProductAppOptions {
2237
+ readonly api_host: string;
2238
+ readonly defaults: "2026-01-30";
2239
+ readonly autocapture: false;
2240
+ readonly capture_pageview: false;
2241
+ readonly capture_pageleave: true;
2242
+ readonly disable_session_recording: boolean;
2243
+ readonly disable_persistence: false;
2244
+ readonly capture_heatmaps: false;
2245
+ readonly capture_exceptions: true;
2246
+ readonly capture_performance: false;
2247
+ readonly disable_surveys: true;
2248
+ readonly disable_web_experiments: true;
2249
+ readonly disable_product_tours: true;
2250
+ readonly disable_conversations: true;
2251
+ readonly disable_external_dependency_loading: boolean;
2252
+ readonly person_profiles: "identified_only";
2253
+ readonly advanced_disable_flags: true;
2254
+ readonly save_campaign_params: false;
2255
+ readonly save_referrer: false;
2256
+ readonly session_recording: {
2257
+ readonly maskAllInputs: true;
2258
+ readonly maskTextSelector: "*";
2259
+ readonly captureCanvas: {
2260
+ readonly recordCanvas: false;
2261
+ };
2262
+ readonly recordHeaders: false;
2263
+ readonly recordBody: false;
2264
+ };
2265
+ readonly before_send: PostHogBeforeSend;
2266
+ }
2267
+ interface CapxulBrowserAnalyticsInput {
2268
+ readonly key: string | undefined;
2269
+ readonly host: string;
2270
+ /** Where this browser build runs. Stamped on every event it sends. */
2271
+ readonly capxulEnv: CapxulEnv;
2272
+ }
2273
+ /** Back-compat alias for the pre-ADR-0020 name. */
2274
+ type InitializePostHogBrowserAnalyticsInput = CapxulBrowserAnalyticsInput;
2275
+ declare function utilityAppAnalytics(input: CapxulBrowserAnalyticsInput): PostHogUtilityAppOptions;
2276
+ declare function productAppAnalytics(input: CapxulBrowserAnalyticsInput): PostHogProductAppOptions;
2277
+ type PostHogBrowserInitialize<Options, T> = (key: string, options: Options) => T;
2278
+ interface PostHogBrowserPageviewClient {
2279
+ capture(event: "$pageview", properties: Readonly<Record<string, unknown>>): unknown;
2280
+ }
2281
+ /**
2282
+ * Apply a named privacy profile before an application-owned PostHog client
2283
+ * initializes. Hosts still own the vendor client and lifecycle; this helper
2284
+ * centralizes the security-relevant options and the missing-key opt-out (no
2285
+ * key ⇒ no client ⇒ no network call).
2286
+ */
2287
+ declare function initializeCapxulBrowserAnalytics<Options, T>(profile: (input: CapxulBrowserAnalyticsInput) => Options, input: CapxulBrowserAnalyticsInput, initialize: PostHogBrowserInitialize<Options, T>): T | undefined;
2288
+ /** The utility profile, pre-bound — the shape ADR-0016's consumers already use. */
2289
+ declare function initializePostHogBrowserAnalytics<T>(input: CapxulBrowserAnalyticsInput, initialize: PostHogBrowserInitialize<PostHogUtilityAppOptions, T>): T | undefined;
2290
+ /**
2291
+ * Build an explicit SPA pageview sink for toolbar-free PostHog clients. The
2292
+ * pathname-only input avoids query capabilities, repeated pathnames are
2293
+ * deduplicated, and vendor failures remain best-effort.
2294
+ */
2295
+ declare function createPostHogBrowserPageviewTracker(client: PostHogBrowserPageviewClient | null | undefined): (pathname: string) => void;
2296
+ declare class RecordingTelemetryAdapter implements TelemetryPort {
2297
+ #private;
2298
+ constructor(options?: TelemetryRedactionOptions);
2299
+ get events(): readonly TelemetryEvent[];
2300
+ emit(event: TelemetryEvent): Effect.Effect<void, never>;
2301
+ identify(_input: TelemetryIdentifyInput): Effect.Effect<void, never>;
2302
+ group(_input: TelemetryGroupInput): Effect.Effect<void, never>;
2303
+ reset(): Effect.Effect<void, never>;
2304
+ reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
2305
+ clear(): void;
2306
+ }
2307
+ declare class PostHogTelemetryAdapter implements TelemetryPort {
2308
+ #private;
2309
+ constructor(deps: {
2310
+ readonly capture: (name: string, props?: TelemetryProps) => void | Promise<void>;
2311
+ });
2312
+ emit(event: TelemetryEvent): Effect.Effect<void, never>;
2313
+ identify(_input: TelemetryIdentifyInput): Effect.Effect<void, never>;
2314
+ group(_input: TelemetryGroupInput): Effect.Effect<void, never>;
2315
+ reset(): Effect.Effect<void, never>;
2316
+ reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
2317
+ }
2318
+ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
2319
+ #private;
2320
+ constructor(options?: TelemetryRedactionOptions);
2321
+ subscribe(handler: (event: TelemetryEvent) => void): () => void;
2322
+ emit(event: TelemetryEvent): Effect.Effect<void, never>;
2323
+ identify(_input: TelemetryIdentifyInput): Effect.Effect<void, never>;
2324
+ group(_input: TelemetryGroupInput): Effect.Effect<void, never>;
2325
+ reset(): Effect.Effect<void, never>;
2326
+ reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
2327
+ }
2328
+ //#endregion
2329
+ export { AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, CAPXUL_ENVS, CapxulBrowserAnalyticsInput, CapxulEnv, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, type HandledErrorReportContext, InMemoryTelemetryBusAdapter, InitializePostHogBrowserAnalyticsInput, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, NonEmptyTelemetryEventNames, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgMemberActiveTelemetryEventSchema, OrgMemberRemovedTelemetryEventSchema, OrgRoleGrantFailedTelemetryEventSchema, OrgRoleGrantedTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentCancelledTelemetryEventSchema, PaymentClaimedTelemetryEventSchema, PaymentDocumentAttachedTelemetryEventSchema, PaymentFailedTelemetryEventSchema, PaymentRedirectedTelemetryEventSchema, PaymentRequestedTelemetryEventSchema, PaymentResolvedTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentSubmittedTelemetryEventSchema, PointEventJourney, PostHogBeforeSend, PostHogBrowserCapture, PostHogBrowserInitialize, PostHogBrowserOptions, PostHogBrowserPageviewClient, PostHogProductAppOptions, PostHogTelemetryAdapter, PostHogUtilityAppOptions, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, RecordingTelemetryAdapter, SYNCABLE_CAPXUL_ENVS, StreamCancelledTelemetryEventSchema, StreamClaimedTelemetryEventSchema, StreamCompletedTelemetryEventSchema, StreamCreatedTelemetryEventSchema, StreamFailedTelemetryEventSchema, SubaccountCreatedTelemetryEventSchema, SubaccountDeletedTelemetryEventSchema, SubaccountOpFailedTelemetryEventSchema, SubaccountRenamedTelemetryEventSchema, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, TelemetryEnvelopeDefaults, TelemetryEvent, TelemetryEventName, TelemetryGroupInput, TelemetryIdentifyInput, type TelemetryPort, TelemetryProducer, TelemetryProps, TelemetryRedactionOptions, TrackHandler, TransferBackendReceivedTelemetryEventSchema, TransferConfirmedTelemetryEventSchema, TransferFailedTelemetryEventSchema, TransferRequestedTelemetryEventSchema, WithdrawalFailedTelemetryEventSchema, WithdrawalRequestedTelemetryEventSchema, WithdrawalSettledTelemetryEventSchema, WithdrawalSubmittedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
2330
+ //# sourceMappingURL=index.d.mts.map