@capxul/observability 2.3.1 → 2.4.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.
- package/dist/engineering.d.mts +3 -2
- package/dist/engineering.mjs +9 -7
- package/dist/index.d.mts +94 -98
- package/dist/index.mjs +9 -9
- package/package.json +1 -1
package/dist/engineering.d.mts
CHANGED
|
@@ -3,7 +3,8 @@ import { OtlpExporter } from "effect/unstable/observability";
|
|
|
3
3
|
|
|
4
4
|
//#region src/engineering.d.ts
|
|
5
5
|
type EngineeringProducer = "browser" | "server";
|
|
6
|
-
|
|
6
|
+
declare const ENGINEERING_CAPXUL_ENVS: readonly ["development", "staging", "production", "local"];
|
|
7
|
+
type EngineeringCapxulEnv = (typeof ENGINEERING_CAPXUL_ENVS)[number];
|
|
7
8
|
interface EngineeringTelemetryConfig {
|
|
8
9
|
readonly host: string;
|
|
9
10
|
readonly headers: Readonly<Record<string, string>>;
|
|
@@ -22,4 +23,4 @@ declare const makeLeakSafeEngineeringTracer: (delegate: Tracer.Tracer) => Tracer
|
|
|
22
23
|
/** Shared browser/server OTLP layer. OtlpLogger merges with incumbent loggers once. */
|
|
23
24
|
declare const makeEngineeringTelemetryLayer: (config: EngineeringTelemetryConfig) => Layer.Layer<OtlpExporter.Flusher, never, never>;
|
|
24
25
|
//#endregion
|
|
25
|
-
export { EngineeringCapxulEnv, EngineeringProducer, EngineeringTelemetryConfig, makeEngineeringTelemetryLayer, makeLeakSafeEngineeringTracer, postHogOtlpEndpoints, traceHeaderFilter };
|
|
26
|
+
export { ENGINEERING_CAPXUL_ENVS, EngineeringCapxulEnv, EngineeringProducer, EngineeringTelemetryConfig, makeEngineeringTelemetryLayer, makeLeakSafeEngineeringTracer, postHogOtlpEndpoints, traceHeaderFilter };
|
package/dist/engineering.mjs
CHANGED
|
@@ -2,6 +2,12 @@ import { Cause, Effect, Exit, Layer, Tracer } from "effect";
|
|
|
2
2
|
import { FetchHttpClient, Headers, HttpClient } from "effect/unstable/http";
|
|
3
3
|
import { OtlpExporter, OtlpLogger, OtlpSerialization, OtlpTracer } from "effect/unstable/observability";
|
|
4
4
|
//#region src/engineering.ts
|
|
5
|
+
const ENGINEERING_CAPXUL_ENVS = [
|
|
6
|
+
"development",
|
|
7
|
+
"staging",
|
|
8
|
+
"production",
|
|
9
|
+
"local"
|
|
10
|
+
];
|
|
5
11
|
const SAFE_TRACED_HEADER_NAMES = [
|
|
6
12
|
"content-length",
|
|
7
13
|
"content-type",
|
|
@@ -24,11 +30,7 @@ const postHogOtlpEndpoints = (host) => {
|
|
|
24
30
|
traces: `${base}/i/v1/traces`
|
|
25
31
|
};
|
|
26
32
|
};
|
|
27
|
-
const
|
|
28
|
-
"development",
|
|
29
|
-
"staging",
|
|
30
|
-
"production"
|
|
31
|
-
]);
|
|
33
|
+
const ENGINEERING_CAPXUL_ENV_SET = new Set(ENGINEERING_CAPXUL_ENVS);
|
|
32
34
|
const ENGINEERING_PRODUCERS = new Set(["browser", "server"]);
|
|
33
35
|
const PUBLIC_POSTHOG_AUTHORIZATION = /^Bearer phc_[A-Za-z0-9_-]{1,191}$/u;
|
|
34
36
|
const SAFE_RESOURCE_VALUE = /^[A-Za-z0-9][A-Za-z0-9._+@/-]{0,127}$/u;
|
|
@@ -40,7 +42,7 @@ const validateEngineeringTelemetryConfig = (config) => {
|
|
|
40
42
|
throw new TypeError("engineering telemetry host must be an absolute HTTPS URL");
|
|
41
43
|
}
|
|
42
44
|
if (url.protocol !== "https:" || url.username.length > 0 || url.password.length > 0 || url.pathname !== "/" || url.search.length > 0 || url.hash.length > 0 || !(url.hostname === "posthog.com" || url.hostname.endsWith(".posthog.com"))) throw new TypeError("engineering telemetry host must be a credential-free HTTPS origin");
|
|
43
|
-
if (!
|
|
45
|
+
if (!ENGINEERING_CAPXUL_ENV_SET.has(config.capxulEnv)) throw new TypeError("engineering telemetry capxulEnv is not canonical");
|
|
44
46
|
if (!ENGINEERING_PRODUCERS.has(config.producer)) throw new TypeError("engineering telemetry producer is not canonical");
|
|
45
47
|
if (!SAFE_RESOURCE_VALUE.test(config.sdkVersion)) throw new TypeError("engineering telemetry sdkVersion must be a bounded safe value");
|
|
46
48
|
if (config.serviceName !== void 0 && !SAFE_RESOURCE_VALUE.test(config.serviceName)) throw new TypeError("engineering telemetry serviceName must be a bounded safe value");
|
|
@@ -103,4 +105,4 @@ const makeEngineeringTelemetryLayer = (config) => {
|
|
|
103
105
|
return Layer.mergeAll(tracing, logging, headerPolicy).pipe(Layer.provide(OtlpSerialization.layerJson), Layer.provide(FetchHttpClient.layer));
|
|
104
106
|
};
|
|
105
107
|
//#endregion
|
|
106
|
-
export { makeEngineeringTelemetryLayer, makeLeakSafeEngineeringTracer, postHogOtlpEndpoints, traceHeaderFilter };
|
|
108
|
+
export { ENGINEERING_CAPXUL_ENVS, makeEngineeringTelemetryLayer, makeLeakSafeEngineeringTracer, postHogOtlpEndpoints, traceHeaderFilter };
|
package/dist/index.d.mts
CHANGED
|
@@ -284,9 +284,12 @@ type PII = Schema.Schema.Type<typeof PII>;
|
|
|
284
284
|
* a present `unknown` is loud), and sync v2 never synthesizes an artifact for
|
|
285
285
|
* it.
|
|
286
286
|
*/
|
|
287
|
-
declare const CAPXUL_ENVS: readonly ["development", "staging", "production", "unknown"];
|
|
287
|
+
declare const CAPXUL_ENVS: readonly ["development", "staging", "production", "unknown", "local"];
|
|
288
288
|
type CapxulEnv = (typeof CAPXUL_ENVS)[number];
|
|
289
|
-
/**
|
|
289
|
+
/**
|
|
290
|
+
* Environments a synced product surface may be built for. `unknown` and
|
|
291
|
+
* `local` cannot. This list is deliberately narrower than `CAPXUL_ENVS`.
|
|
292
|
+
*/
|
|
290
293
|
declare const SYNCABLE_CAPXUL_ENVS: readonly ["development", "staging", "production"];
|
|
291
294
|
/**
|
|
292
295
|
* Which half of the system emitted the event. REQUIRED alongside `capxul_env`
|
|
@@ -308,7 +311,7 @@ declare function stampTelemetryEnvelope(event: TelemetryEvent, defaults: Telemet
|
|
|
308
311
|
declare const AuthOtpRequestedTelemetryEventSchema: Schema.Struct<{
|
|
309
312
|
readonly name: Schema.Literal<"auth_otp_requested">;
|
|
310
313
|
readonly props: Schema.Struct<{
|
|
311
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
314
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
312
315
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
313
316
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
314
317
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -320,7 +323,7 @@ declare const AuthOtpRequestedTelemetryEventSchema: Schema.Struct<{
|
|
|
320
323
|
declare const AuthOtpDeliveredTelemetryEventSchema: Schema.Struct<{
|
|
321
324
|
readonly name: Schema.Literal<"auth_otp_delivered">;
|
|
322
325
|
readonly props: Schema.Struct<{
|
|
323
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
326
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
324
327
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
325
328
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
326
329
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -334,7 +337,7 @@ declare const AuthOtpDeliveredTelemetryEventSchema: Schema.Struct<{
|
|
|
334
337
|
declare const AuthOtpExpiredTelemetryEventSchema: Schema.Struct<{
|
|
335
338
|
readonly name: Schema.Literal<"auth_otp_expired">;
|
|
336
339
|
readonly props: Schema.Struct<{
|
|
337
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
340
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
338
341
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
339
342
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
340
343
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -346,7 +349,7 @@ declare const AuthOtpExpiredTelemetryEventSchema: Schema.Struct<{
|
|
|
346
349
|
declare const AuthVerifiedTelemetryEventSchema: Schema.Struct<{
|
|
347
350
|
readonly name: Schema.Literal<"auth_verified">;
|
|
348
351
|
readonly props: Schema.Struct<{
|
|
349
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
352
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
350
353
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
351
354
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
352
355
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -357,7 +360,7 @@ declare const AuthVerifiedTelemetryEventSchema: Schema.Struct<{
|
|
|
357
360
|
declare const AuthFailedTelemetryEventSchema: Schema.Struct<{
|
|
358
361
|
readonly name: Schema.Literal<"auth_failed">;
|
|
359
362
|
readonly props: Schema.Struct<{
|
|
360
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
363
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
361
364
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
362
365
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
363
366
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -370,7 +373,7 @@ declare const AuthFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
370
373
|
declare const AuthSignedOutTelemetryEventSchema: Schema.Struct<{
|
|
371
374
|
readonly name: Schema.Literal<"auth_signed_out">;
|
|
372
375
|
readonly props: Schema.Struct<{
|
|
373
|
-
capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
376
|
+
capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
374
377
|
producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
375
378
|
journey_id: Schema.optional<Schema.String>;
|
|
376
379
|
correlation_id: Schema.optional<Schema.String>;
|
|
@@ -380,7 +383,7 @@ declare const AuthSignedOutTelemetryEventSchema: Schema.Struct<{
|
|
|
380
383
|
declare const OnboardingIntentSelectedTelemetryEventSchema: Schema.Struct<{
|
|
381
384
|
readonly name: Schema.Literal<"onboarding_intent_selected">;
|
|
382
385
|
readonly props: Schema.Struct<{
|
|
383
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
386
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
384
387
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
385
388
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
386
389
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
@@ -392,7 +395,7 @@ declare const OnboardingIntentSelectedTelemetryEventSchema: Schema.Struct<{
|
|
|
392
395
|
declare const OnboardingProfileSubmittedTelemetryEventSchema: Schema.Struct<{
|
|
393
396
|
readonly name: Schema.Literal<"onboarding_profile_submitted">;
|
|
394
397
|
readonly props: Schema.Struct<{
|
|
395
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
398
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
396
399
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
397
400
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
398
401
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
@@ -403,7 +406,7 @@ declare const OnboardingProfileSubmittedTelemetryEventSchema: Schema.Struct<{
|
|
|
403
406
|
declare const OnboardingOrganizationSubmittedTelemetryEventSchema: Schema.Struct<{
|
|
404
407
|
readonly name: Schema.Literal<"onboarding_organization_submitted">;
|
|
405
408
|
readonly props: Schema.Struct<{
|
|
406
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
409
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
407
410
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
408
411
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
409
412
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
@@ -413,7 +416,7 @@ declare const OnboardingOrganizationSubmittedTelemetryEventSchema: Schema.Struct
|
|
|
413
416
|
declare const OnboardingDashboardReachedTelemetryEventSchema: Schema.Struct<{
|
|
414
417
|
readonly name: Schema.Literal<"onboarding_dashboard_reached">;
|
|
415
418
|
readonly props: Schema.Struct<{
|
|
416
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
419
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
417
420
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
418
421
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
419
422
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
@@ -425,7 +428,7 @@ declare const OnboardingDashboardReachedTelemetryEventSchema: Schema.Struct<{
|
|
|
425
428
|
declare const ProvisioningSafeCreatedTelemetryEventSchema: Schema.Struct<{
|
|
426
429
|
readonly name: Schema.Literal<"provisioning_safe_created">;
|
|
427
430
|
readonly props: Schema.Struct<{
|
|
428
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
431
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
429
432
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
430
433
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
431
434
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -436,7 +439,7 @@ declare const ProvisioningSafeCreatedTelemetryEventSchema: Schema.Struct<{
|
|
|
436
439
|
declare const ProvisioningSafeConfirmedTelemetryEventSchema: Schema.Struct<{
|
|
437
440
|
readonly name: Schema.Literal<"provisioning_safe_confirmed">;
|
|
438
441
|
readonly props: Schema.Struct<{
|
|
439
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
442
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
440
443
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
441
444
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
442
445
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -453,7 +456,7 @@ declare const ProvisioningSafeConfirmedTelemetryEventSchema: Schema.Struct<{
|
|
|
453
456
|
declare const BootstrapResolvedTelemetryEventSchema: Schema.Struct<{
|
|
454
457
|
readonly name: Schema.Literal<"bootstrap_resolved">;
|
|
455
458
|
readonly props: Schema.Struct<{
|
|
456
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
459
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
457
460
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
458
461
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
459
462
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -468,7 +471,7 @@ declare const BootstrapResolvedTelemetryEventSchema: Schema.Struct<{
|
|
|
468
471
|
declare const BootstrapFailedTelemetryEventSchema: Schema.Struct<{
|
|
469
472
|
readonly name: Schema.Literal<"bootstrap_failed">;
|
|
470
473
|
readonly props: Schema.Struct<{
|
|
471
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
474
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
472
475
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
473
476
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
474
477
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -482,7 +485,7 @@ declare const BootstrapFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
482
485
|
declare const MemberActivationStartedTelemetryEventSchema: Schema.Struct<{
|
|
483
486
|
readonly name: Schema.Literal<"member_activation_started">;
|
|
484
487
|
readonly props: Schema.Struct<{
|
|
485
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
488
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
486
489
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
487
490
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
488
491
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -493,7 +496,7 @@ declare const MemberActivationStartedTelemetryEventSchema: Schema.Struct<{
|
|
|
493
496
|
declare const MemberActivationReadyTelemetryEventSchema: Schema.Struct<{
|
|
494
497
|
readonly name: Schema.Literal<"member_activation_ready">;
|
|
495
498
|
readonly props: Schema.Struct<{
|
|
496
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
499
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
497
500
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
498
501
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
499
502
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -505,7 +508,7 @@ declare const MemberActivationReadyTelemetryEventSchema: Schema.Struct<{
|
|
|
505
508
|
declare const MemberActivationFailedTelemetryEventSchema: Schema.Struct<{
|
|
506
509
|
readonly name: Schema.Literal<"member_activation_failed">;
|
|
507
510
|
readonly props: Schema.Struct<{
|
|
508
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
511
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
509
512
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
510
513
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
511
514
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -519,7 +522,7 @@ declare const MemberActivationFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
519
522
|
declare const OrganizationCreationStartedTelemetryEventSchema: Schema.Struct<{
|
|
520
523
|
readonly name: Schema.Literal<"organization_creation_started">;
|
|
521
524
|
readonly props: Schema.Struct<{
|
|
522
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
525
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
523
526
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
524
527
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
525
528
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -532,7 +535,7 @@ declare const OrganizationCreationStartedTelemetryEventSchema: Schema.Struct<{
|
|
|
532
535
|
declare const OrganizationCreationReadyTelemetryEventSchema: Schema.Struct<{
|
|
533
536
|
readonly name: Schema.Literal<"organization_creation_ready">;
|
|
534
537
|
readonly props: Schema.Struct<{
|
|
535
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
538
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
536
539
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
537
540
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
538
541
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -546,7 +549,7 @@ declare const OrganizationCreationReadyTelemetryEventSchema: Schema.Struct<{
|
|
|
546
549
|
declare const OrganizationCreationFailedTelemetryEventSchema: Schema.Struct<{
|
|
547
550
|
readonly name: Schema.Literal<"organization_creation_failed">;
|
|
548
551
|
readonly props: Schema.Struct<{
|
|
549
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
552
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
550
553
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
551
554
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
552
555
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -563,7 +566,7 @@ declare const OrganizationCreationFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
563
566
|
declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
|
|
564
567
|
readonly name: Schema.Literal<"account_balance_read">;
|
|
565
568
|
readonly props: Schema.Struct<{
|
|
566
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
569
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
567
570
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
568
571
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
569
572
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -577,7 +580,7 @@ declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
|
|
|
577
580
|
declare const AccountBalanceFailedTelemetryEventSchema: Schema.Struct<{
|
|
578
581
|
readonly name: Schema.Literal<"account_balance_failed">;
|
|
579
582
|
readonly props: Schema.Struct<{
|
|
580
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
583
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
581
584
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
582
585
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
583
586
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -588,7 +591,7 @@ declare const AccountBalanceFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
588
591
|
declare const FaucetRequestedTelemetryEventSchema: Schema.Struct<{
|
|
589
592
|
readonly name: Schema.Literal<"faucet_requested">;
|
|
590
593
|
readonly props: Schema.Struct<{
|
|
591
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
594
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
592
595
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
593
596
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
594
597
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -600,7 +603,7 @@ declare const FaucetRequestedTelemetryEventSchema: Schema.Struct<{
|
|
|
600
603
|
declare const FaucetConfirmedTelemetryEventSchema: Schema.Struct<{
|
|
601
604
|
readonly name: Schema.Literal<"faucet_confirmed">;
|
|
602
605
|
readonly props: Schema.Struct<{
|
|
603
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
606
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
604
607
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
605
608
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
606
609
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -614,7 +617,7 @@ declare const FaucetConfirmedTelemetryEventSchema: Schema.Struct<{
|
|
|
614
617
|
declare const FaucetFailedTelemetryEventSchema: Schema.Struct<{
|
|
615
618
|
readonly name: Schema.Literal<"faucet_failed">;
|
|
616
619
|
readonly props: Schema.Struct<{
|
|
617
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
620
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
618
621
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
619
622
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
620
623
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -625,7 +628,7 @@ declare const FaucetFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
625
628
|
declare const OrgCreateStartedTelemetryEventSchema: Schema.Struct<{
|
|
626
629
|
readonly name: Schema.Literal<"org_create_started">;
|
|
627
630
|
readonly props: Schema.Struct<{
|
|
628
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
631
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
629
632
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
630
633
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
631
634
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -638,7 +641,7 @@ declare const OrgCreateStartedTelemetryEventSchema: Schema.Struct<{
|
|
|
638
641
|
declare const OrgSafeCreatedTelemetryEventSchema: Schema.Struct<{
|
|
639
642
|
readonly name: Schema.Literal<"org_safe_created">;
|
|
640
643
|
readonly props: Schema.Struct<{
|
|
641
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
644
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
642
645
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
643
646
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
644
647
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -651,7 +654,7 @@ declare const OrgSafeCreatedTelemetryEventSchema: Schema.Struct<{
|
|
|
651
654
|
declare const OrgSafeConfirmedTelemetryEventSchema: Schema.Struct<{
|
|
652
655
|
readonly name: Schema.Literal<"org_safe_confirmed">;
|
|
653
656
|
readonly props: Schema.Struct<{
|
|
654
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
657
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
655
658
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
656
659
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
657
660
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -665,7 +668,7 @@ declare const OrgSafeConfirmedTelemetryEventSchema: Schema.Struct<{
|
|
|
665
668
|
declare const OrgRolesSeededTelemetryEventSchema: Schema.Struct<{
|
|
666
669
|
readonly name: Schema.Literal<"org_roles_seeded">;
|
|
667
670
|
readonly props: Schema.Struct<{
|
|
668
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
671
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
669
672
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
670
673
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
671
674
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -679,7 +682,7 @@ declare const OrgRolesSeededTelemetryEventSchema: Schema.Struct<{
|
|
|
679
682
|
declare const OrgCreatedTelemetryEventSchema: Schema.Struct<{
|
|
680
683
|
readonly name: Schema.Literal<"org_created">;
|
|
681
684
|
readonly props: Schema.Struct<{
|
|
682
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
685
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
683
686
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
684
687
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
685
688
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -693,7 +696,7 @@ declare const OrgCreatedTelemetryEventSchema: Schema.Struct<{
|
|
|
693
696
|
declare const OrgCreateFailedTelemetryEventSchema: Schema.Struct<{
|
|
694
697
|
readonly name: Schema.Literal<"org_create_failed">;
|
|
695
698
|
readonly props: Schema.Struct<{
|
|
696
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
699
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
697
700
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
698
701
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
699
702
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -705,7 +708,7 @@ declare const OrgCreateFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
705
708
|
declare const OrgInviteSentTelemetryEventSchema: Schema.Struct<{
|
|
706
709
|
readonly name: Schema.Literal<"org_invite_sent">;
|
|
707
710
|
readonly props: Schema.Struct<{
|
|
708
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
711
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
709
712
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
710
713
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
711
714
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -719,7 +722,7 @@ declare const OrgInviteSentTelemetryEventSchema: Schema.Struct<{
|
|
|
719
722
|
declare const OrgInviteAcceptedTelemetryEventSchema: Schema.Struct<{
|
|
720
723
|
readonly name: Schema.Literal<"org_invite_accepted">;
|
|
721
724
|
readonly props: Schema.Struct<{
|
|
722
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
725
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
723
726
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
724
727
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
725
728
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -732,7 +735,7 @@ declare const OrgInviteAcceptedTelemetryEventSchema: Schema.Struct<{
|
|
|
732
735
|
declare const OrgInviteExpiredTelemetryEventSchema: Schema.Struct<{
|
|
733
736
|
readonly name: Schema.Literal<"org_invite_expired">;
|
|
734
737
|
readonly props: Schema.Struct<{
|
|
735
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
738
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
736
739
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
737
740
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
738
741
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -747,7 +750,7 @@ declare const OrgInviteExpiredTelemetryEventSchema: Schema.Struct<{
|
|
|
747
750
|
declare const PaymentInitiatedTelemetryEventSchema: Schema.Struct<{
|
|
748
751
|
readonly name: Schema.Literal<"payment_initiated">;
|
|
749
752
|
readonly props: Schema.Struct<{
|
|
750
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
753
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
751
754
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
752
755
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
753
756
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -759,7 +762,7 @@ declare const PaymentInitiatedTelemetryEventSchema: Schema.Struct<{
|
|
|
759
762
|
declare const PaymentSettledTelemetryEventSchema: Schema.Struct<{
|
|
760
763
|
readonly name: Schema.Literal<"payment_settled">;
|
|
761
764
|
readonly props: Schema.Struct<{
|
|
762
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
765
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
763
766
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
764
767
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
765
768
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -772,7 +775,7 @@ declare const PaymentSettledTelemetryEventSchema: Schema.Struct<{
|
|
|
772
775
|
declare const PaymentFailedTelemetryEventSchema: Schema.Struct<{
|
|
773
776
|
readonly name: Schema.Literal<"payment_failed">;
|
|
774
777
|
readonly props: Schema.Struct<{
|
|
775
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
778
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
776
779
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
777
780
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
778
781
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -785,7 +788,7 @@ declare const PaymentFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
785
788
|
declare const DepositInitiatedTelemetryEventSchema: Schema.Struct<{
|
|
786
789
|
readonly name: Schema.Literal<"deposit_initiated">;
|
|
787
790
|
readonly props: Schema.Struct<{
|
|
788
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
791
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
789
792
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
790
793
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
791
794
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -795,7 +798,7 @@ declare const DepositInitiatedTelemetryEventSchema: Schema.Struct<{
|
|
|
795
798
|
declare const DepositSettledTelemetryEventSchema: Schema.Struct<{
|
|
796
799
|
readonly name: Schema.Literal<"deposit_settled">;
|
|
797
800
|
readonly props: Schema.Struct<{
|
|
798
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
801
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
799
802
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
800
803
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
801
804
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -808,7 +811,7 @@ declare const DepositSettledTelemetryEventSchema: Schema.Struct<{
|
|
|
808
811
|
declare const PermissionMirrorVerificationTelemetryEventSchema: Schema.Struct<{
|
|
809
812
|
readonly name: Schema.Literal<"permission_mirror_verification">;
|
|
810
813
|
readonly props: Schema.Struct<{
|
|
811
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
814
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
812
815
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
813
816
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
814
817
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -816,15 +819,13 @@ declare const PermissionMirrorVerificationTelemetryEventSchema: Schema.Struct<{
|
|
|
816
819
|
readonly outcome: Schema.String;
|
|
817
820
|
readonly reason: Schema.String;
|
|
818
821
|
readonly chain_id: Schema.Number;
|
|
819
|
-
readonly finality: Schema.String;
|
|
820
|
-
readonly lag_blocks: Schema.Number;
|
|
821
822
|
readonly retry_count: Schema.Number;
|
|
822
823
|
}>;
|
|
823
824
|
}>;
|
|
824
825
|
declare const MovementScanWindowTelemetryEventSchema: Schema.Struct<{
|
|
825
826
|
readonly name: Schema.Literal<"movement_scan_window">;
|
|
826
827
|
readonly props: Schema.Struct<{
|
|
827
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
828
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
828
829
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
829
830
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
830
831
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -841,7 +842,7 @@ declare const MovementScanWindowTelemetryEventSchema: Schema.Struct<{
|
|
|
841
842
|
declare const MovementScanCheckpointTelemetryEventSchema: Schema.Struct<{
|
|
842
843
|
readonly name: Schema.Literal<"movement_scan_checkpoint">;
|
|
843
844
|
readonly props: Schema.Struct<{
|
|
844
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
845
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
845
846
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
846
847
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
847
848
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -855,7 +856,7 @@ declare const MovementScanCheckpointTelemetryEventSchema: Schema.Struct<{
|
|
|
855
856
|
declare const MovementScanIncidentTelemetryEventSchema: Schema.Struct<{
|
|
856
857
|
readonly name: Schema.Literal<"movement_scan_incident">;
|
|
857
858
|
readonly props: Schema.Struct<{
|
|
858
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
859
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
859
860
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
860
861
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
861
862
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -870,7 +871,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
870
871
|
readonly auth_otp_requested: Schema.Struct<{
|
|
871
872
|
readonly name: Schema.Literal<"auth_otp_requested">;
|
|
872
873
|
readonly props: Schema.Struct<{
|
|
873
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
874
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
874
875
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
875
876
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
876
877
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -882,7 +883,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
882
883
|
readonly auth_otp_delivered: Schema.Struct<{
|
|
883
884
|
readonly name: Schema.Literal<"auth_otp_delivered">;
|
|
884
885
|
readonly props: Schema.Struct<{
|
|
885
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
886
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
886
887
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
887
888
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
888
889
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -896,7 +897,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
896
897
|
readonly auth_otp_expired: Schema.Struct<{
|
|
897
898
|
readonly name: Schema.Literal<"auth_otp_expired">;
|
|
898
899
|
readonly props: Schema.Struct<{
|
|
899
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
900
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
900
901
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
901
902
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
902
903
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -908,7 +909,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
908
909
|
readonly auth_verified: Schema.Struct<{
|
|
909
910
|
readonly name: Schema.Literal<"auth_verified">;
|
|
910
911
|
readonly props: Schema.Struct<{
|
|
911
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
912
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
912
913
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
913
914
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
914
915
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -919,7 +920,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
919
920
|
readonly auth_failed: Schema.Struct<{
|
|
920
921
|
readonly name: Schema.Literal<"auth_failed">;
|
|
921
922
|
readonly props: Schema.Struct<{
|
|
922
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
923
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
923
924
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
924
925
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
925
926
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -932,7 +933,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
932
933
|
readonly auth_signed_out: Schema.Struct<{
|
|
933
934
|
readonly name: Schema.Literal<"auth_signed_out">;
|
|
934
935
|
readonly props: Schema.Struct<{
|
|
935
|
-
capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
936
|
+
capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
936
937
|
producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
937
938
|
journey_id: Schema.optional<Schema.String>;
|
|
938
939
|
correlation_id: Schema.optional<Schema.String>;
|
|
@@ -942,7 +943,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
942
943
|
readonly onboarding_intent_selected: Schema.Struct<{
|
|
943
944
|
readonly name: Schema.Literal<"onboarding_intent_selected">;
|
|
944
945
|
readonly props: Schema.Struct<{
|
|
945
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
946
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
946
947
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
947
948
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
948
949
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
@@ -954,7 +955,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
954
955
|
readonly onboarding_profile_submitted: Schema.Struct<{
|
|
955
956
|
readonly name: Schema.Literal<"onboarding_profile_submitted">;
|
|
956
957
|
readonly props: Schema.Struct<{
|
|
957
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
958
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
958
959
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
959
960
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
960
961
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
@@ -965,7 +966,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
965
966
|
readonly onboarding_organization_submitted: Schema.Struct<{
|
|
966
967
|
readonly name: Schema.Literal<"onboarding_organization_submitted">;
|
|
967
968
|
readonly props: Schema.Struct<{
|
|
968
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
969
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
969
970
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
970
971
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
971
972
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
@@ -975,7 +976,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
975
976
|
readonly onboarding_dashboard_reached: Schema.Struct<{
|
|
976
977
|
readonly name: Schema.Literal<"onboarding_dashboard_reached">;
|
|
977
978
|
readonly props: Schema.Struct<{
|
|
978
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
979
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
979
980
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
980
981
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
981
982
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
@@ -987,7 +988,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
987
988
|
readonly provisioning_safe_created: Schema.Struct<{
|
|
988
989
|
readonly name: Schema.Literal<"provisioning_safe_created">;
|
|
989
990
|
readonly props: Schema.Struct<{
|
|
990
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
991
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
991
992
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
992
993
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
993
994
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -998,7 +999,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
998
999
|
readonly provisioning_safe_confirmed: Schema.Struct<{
|
|
999
1000
|
readonly name: Schema.Literal<"provisioning_safe_confirmed">;
|
|
1000
1001
|
readonly props: Schema.Struct<{
|
|
1001
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1002
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1002
1003
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1003
1004
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1004
1005
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1015,7 +1016,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1015
1016
|
readonly bootstrap_resolved: Schema.Struct<{
|
|
1016
1017
|
readonly name: Schema.Literal<"bootstrap_resolved">;
|
|
1017
1018
|
readonly props: Schema.Struct<{
|
|
1018
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1019
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1019
1020
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1020
1021
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1021
1022
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1030,7 +1031,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1030
1031
|
readonly bootstrap_failed: Schema.Struct<{
|
|
1031
1032
|
readonly name: Schema.Literal<"bootstrap_failed">;
|
|
1032
1033
|
readonly props: Schema.Struct<{
|
|
1033
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1034
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1034
1035
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1035
1036
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1036
1037
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1044,7 +1045,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1044
1045
|
readonly member_activation_started: Schema.Struct<{
|
|
1045
1046
|
readonly name: Schema.Literal<"member_activation_started">;
|
|
1046
1047
|
readonly props: Schema.Struct<{
|
|
1047
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1048
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1048
1049
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1049
1050
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1050
1051
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1055,7 +1056,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1055
1056
|
readonly member_activation_ready: Schema.Struct<{
|
|
1056
1057
|
readonly name: Schema.Literal<"member_activation_ready">;
|
|
1057
1058
|
readonly props: Schema.Struct<{
|
|
1058
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1059
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1059
1060
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1060
1061
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1061
1062
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1067,7 +1068,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1067
1068
|
readonly member_activation_failed: Schema.Struct<{
|
|
1068
1069
|
readonly name: Schema.Literal<"member_activation_failed">;
|
|
1069
1070
|
readonly props: Schema.Struct<{
|
|
1070
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1071
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1071
1072
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1072
1073
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1073
1074
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1081,7 +1082,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1081
1082
|
readonly organization_creation_started: Schema.Struct<{
|
|
1082
1083
|
readonly name: Schema.Literal<"organization_creation_started">;
|
|
1083
1084
|
readonly props: Schema.Struct<{
|
|
1084
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1085
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1085
1086
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1086
1087
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1087
1088
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1094,7 +1095,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1094
1095
|
readonly organization_creation_ready: Schema.Struct<{
|
|
1095
1096
|
readonly name: Schema.Literal<"organization_creation_ready">;
|
|
1096
1097
|
readonly props: Schema.Struct<{
|
|
1097
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1098
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1098
1099
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1099
1100
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1100
1101
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1108,7 +1109,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1108
1109
|
readonly organization_creation_failed: Schema.Struct<{
|
|
1109
1110
|
readonly name: Schema.Literal<"organization_creation_failed">;
|
|
1110
1111
|
readonly props: Schema.Struct<{
|
|
1111
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1112
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1112
1113
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1113
1114
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1114
1115
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1125,7 +1126,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1125
1126
|
readonly account_balance_read: Schema.Struct<{
|
|
1126
1127
|
readonly name: Schema.Literal<"account_balance_read">;
|
|
1127
1128
|
readonly props: Schema.Struct<{
|
|
1128
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1129
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1129
1130
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1130
1131
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1131
1132
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1139,7 +1140,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1139
1140
|
readonly account_balance_failed: Schema.Struct<{
|
|
1140
1141
|
readonly name: Schema.Literal<"account_balance_failed">;
|
|
1141
1142
|
readonly props: Schema.Struct<{
|
|
1142
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1143
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1143
1144
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1144
1145
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1145
1146
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1150,7 +1151,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1150
1151
|
readonly faucet_requested: Schema.Struct<{
|
|
1151
1152
|
readonly name: Schema.Literal<"faucet_requested">;
|
|
1152
1153
|
readonly props: Schema.Struct<{
|
|
1153
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1154
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1154
1155
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1155
1156
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1156
1157
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1162,7 +1163,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1162
1163
|
readonly faucet_confirmed: Schema.Struct<{
|
|
1163
1164
|
readonly name: Schema.Literal<"faucet_confirmed">;
|
|
1164
1165
|
readonly props: Schema.Struct<{
|
|
1165
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1166
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1166
1167
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1167
1168
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1168
1169
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1176,7 +1177,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1176
1177
|
readonly faucet_failed: Schema.Struct<{
|
|
1177
1178
|
readonly name: Schema.Literal<"faucet_failed">;
|
|
1178
1179
|
readonly props: Schema.Struct<{
|
|
1179
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1180
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1180
1181
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1181
1182
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1182
1183
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1187,7 +1188,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1187
1188
|
readonly org_create_started: Schema.Struct<{
|
|
1188
1189
|
readonly name: Schema.Literal<"org_create_started">;
|
|
1189
1190
|
readonly props: Schema.Struct<{
|
|
1190
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1191
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1191
1192
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1192
1193
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1193
1194
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1200,7 +1201,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1200
1201
|
readonly org_safe_created: Schema.Struct<{
|
|
1201
1202
|
readonly name: Schema.Literal<"org_safe_created">;
|
|
1202
1203
|
readonly props: Schema.Struct<{
|
|
1203
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1204
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1204
1205
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1205
1206
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1206
1207
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1213,7 +1214,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1213
1214
|
readonly org_safe_confirmed: Schema.Struct<{
|
|
1214
1215
|
readonly name: Schema.Literal<"org_safe_confirmed">;
|
|
1215
1216
|
readonly props: Schema.Struct<{
|
|
1216
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1217
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1217
1218
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1218
1219
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1219
1220
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1227,7 +1228,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1227
1228
|
readonly org_roles_seeded: Schema.Struct<{
|
|
1228
1229
|
readonly name: Schema.Literal<"org_roles_seeded">;
|
|
1229
1230
|
readonly props: Schema.Struct<{
|
|
1230
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1231
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1231
1232
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1232
1233
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1233
1234
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1241,7 +1242,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1241
1242
|
readonly org_created: Schema.Struct<{
|
|
1242
1243
|
readonly name: Schema.Literal<"org_created">;
|
|
1243
1244
|
readonly props: Schema.Struct<{
|
|
1244
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1245
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1245
1246
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1246
1247
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1247
1248
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1255,7 +1256,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1255
1256
|
readonly org_create_failed: Schema.Struct<{
|
|
1256
1257
|
readonly name: Schema.Literal<"org_create_failed">;
|
|
1257
1258
|
readonly props: Schema.Struct<{
|
|
1258
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1259
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1259
1260
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1260
1261
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1261
1262
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1267,7 +1268,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1267
1268
|
readonly org_invite_sent: Schema.Struct<{
|
|
1268
1269
|
readonly name: Schema.Literal<"org_invite_sent">;
|
|
1269
1270
|
readonly props: Schema.Struct<{
|
|
1270
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1271
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1271
1272
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1272
1273
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1273
1274
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1281,7 +1282,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1281
1282
|
readonly org_invite_accepted: Schema.Struct<{
|
|
1282
1283
|
readonly name: Schema.Literal<"org_invite_accepted">;
|
|
1283
1284
|
readonly props: Schema.Struct<{
|
|
1284
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1285
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1285
1286
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1286
1287
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1287
1288
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1294,7 +1295,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1294
1295
|
readonly org_invite_expired: Schema.Struct<{
|
|
1295
1296
|
readonly name: Schema.Literal<"org_invite_expired">;
|
|
1296
1297
|
readonly props: Schema.Struct<{
|
|
1297
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1298
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1298
1299
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1299
1300
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1300
1301
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1309,7 +1310,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1309
1310
|
readonly payment_initiated: Schema.Struct<{
|
|
1310
1311
|
readonly name: Schema.Literal<"payment_initiated">;
|
|
1311
1312
|
readonly props: Schema.Struct<{
|
|
1312
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1313
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1313
1314
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1314
1315
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1315
1316
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1321,7 +1322,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1321
1322
|
readonly payment_settled: Schema.Struct<{
|
|
1322
1323
|
readonly name: Schema.Literal<"payment_settled">;
|
|
1323
1324
|
readonly props: Schema.Struct<{
|
|
1324
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1325
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1325
1326
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1326
1327
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1327
1328
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1334,7 +1335,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1334
1335
|
readonly payment_failed: Schema.Struct<{
|
|
1335
1336
|
readonly name: Schema.Literal<"payment_failed">;
|
|
1336
1337
|
readonly props: Schema.Struct<{
|
|
1337
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1338
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1338
1339
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1339
1340
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1340
1341
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1347,7 +1348,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1347
1348
|
readonly deposit_initiated: Schema.Struct<{
|
|
1348
1349
|
readonly name: Schema.Literal<"deposit_initiated">;
|
|
1349
1350
|
readonly props: Schema.Struct<{
|
|
1350
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1351
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1351
1352
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1352
1353
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1353
1354
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1357,7 +1358,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1357
1358
|
readonly deposit_settled: Schema.Struct<{
|
|
1358
1359
|
readonly name: Schema.Literal<"deposit_settled">;
|
|
1359
1360
|
readonly props: Schema.Struct<{
|
|
1360
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1361
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1361
1362
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1362
1363
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1363
1364
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1370,7 +1371,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1370
1371
|
readonly permission_mirror_verification: Schema.Struct<{
|
|
1371
1372
|
readonly name: Schema.Literal<"permission_mirror_verification">;
|
|
1372
1373
|
readonly props: Schema.Struct<{
|
|
1373
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1374
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1374
1375
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1375
1376
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1376
1377
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1378,15 +1379,13 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1378
1379
|
readonly outcome: Schema.String;
|
|
1379
1380
|
readonly reason: Schema.String;
|
|
1380
1381
|
readonly chain_id: Schema.Number;
|
|
1381
|
-
readonly finality: Schema.String;
|
|
1382
|
-
readonly lag_blocks: Schema.Number;
|
|
1383
1382
|
readonly retry_count: Schema.Number;
|
|
1384
1383
|
}>;
|
|
1385
1384
|
}>;
|
|
1386
1385
|
readonly movement_scan_window: Schema.Struct<{
|
|
1387
1386
|
readonly name: Schema.Literal<"movement_scan_window">;
|
|
1388
1387
|
readonly props: Schema.Struct<{
|
|
1389
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1388
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1390
1389
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1391
1390
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1392
1391
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1403,7 +1402,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1403
1402
|
readonly movement_scan_checkpoint: Schema.Struct<{
|
|
1404
1403
|
readonly name: Schema.Literal<"movement_scan_checkpoint">;
|
|
1405
1404
|
readonly props: Schema.Struct<{
|
|
1406
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1405
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1407
1406
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1408
1407
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1409
1408
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1417,7 +1416,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1417
1416
|
readonly movement_scan_incident: Schema.Struct<{
|
|
1418
1417
|
readonly name: Schema.Literal<"movement_scan_incident">;
|
|
1419
1418
|
readonly props: Schema.Struct<{
|
|
1420
|
-
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
|
|
1419
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1421
1420
|
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1422
1421
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1423
1422
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
@@ -1488,13 +1487,10 @@ interface PostHogBrowserCapture {
|
|
|
1488
1487
|
*/
|
|
1489
1488
|
declare function sanitizePostHogBrowserEvent<T extends PostHogBrowserCapture | null>(event: T): T;
|
|
1490
1489
|
/**
|
|
1491
|
-
*
|
|
1492
|
-
* `producer: "browser"
|
|
1493
|
-
* its own to stamp at — `before_send` is the one funnel every capture,
|
|
1494
|
-
* pageview, exception and replay-meta event passes through. Forgetting to
|
|
1495
|
-
* register a super-property is therefore not a failure mode.
|
|
1490
|
+
* Drop local events before transport. Sanitize and stamp every other browser
|
|
1491
|
+
* event with `capxul_env` and `producer: "browser"`.
|
|
1496
1492
|
*/
|
|
1497
|
-
declare function createCapxulBeforeSend(capxulEnv: CapxulEnv): <T extends PostHogBrowserCapture | null>(event: T) => T;
|
|
1493
|
+
declare function createCapxulBeforeSend(capxulEnv: CapxulEnv): <T extends PostHogBrowserCapture | null>(event: T) => T | null;
|
|
1498
1494
|
type PostHogBeforeSend = ReturnType<typeof createCapxulBeforeSend>;
|
|
1499
1495
|
/**
|
|
1500
1496
|
* ADR-0016 posture, unchanged: capability-URL utility apps (approval links,
|
package/dist/index.mjs
CHANGED
|
@@ -332,9 +332,13 @@ const CAPXUL_ENVS = [
|
|
|
332
332
|
"development",
|
|
333
333
|
"staging",
|
|
334
334
|
"production",
|
|
335
|
-
"unknown"
|
|
335
|
+
"unknown",
|
|
336
|
+
"local"
|
|
336
337
|
];
|
|
337
|
-
/**
|
|
338
|
+
/**
|
|
339
|
+
* Environments a synced product surface may be built for. `unknown` and
|
|
340
|
+
* `local` cannot. This list is deliberately narrower than `CAPXUL_ENVS`.
|
|
341
|
+
*/
|
|
338
342
|
const SYNCABLE_CAPXUL_ENVS = [
|
|
339
343
|
"development",
|
|
340
344
|
"staging",
|
|
@@ -638,8 +642,6 @@ const PermissionMirrorVerificationProps = Schema.Struct({
|
|
|
638
642
|
outcome: Schema.String,
|
|
639
643
|
reason: Schema.String,
|
|
640
644
|
chain_id: Schema.Number,
|
|
641
|
-
finality: Schema.String,
|
|
642
|
-
lag_blocks: Schema.Number,
|
|
643
645
|
retry_count: Schema.Number
|
|
644
646
|
});
|
|
645
647
|
const MovementScanWindowProps = Schema.Struct({
|
|
@@ -949,14 +951,12 @@ function sanitizePostHogBrowserEvent(event) {
|
|
|
949
951
|
return event;
|
|
950
952
|
}
|
|
951
953
|
/**
|
|
952
|
-
*
|
|
953
|
-
* `producer: "browser"
|
|
954
|
-
* its own to stamp at — `before_send` is the one funnel every capture,
|
|
955
|
-
* pageview, exception and replay-meta event passes through. Forgetting to
|
|
956
|
-
* register a super-property is therefore not a failure mode.
|
|
954
|
+
* Drop local events before transport. Sanitize and stamp every other browser
|
|
955
|
+
* event with `capxul_env` and `producer: "browser"`.
|
|
957
956
|
*/
|
|
958
957
|
function createCapxulBeforeSend(capxulEnv) {
|
|
959
958
|
return (event) => {
|
|
959
|
+
if (capxulEnv === "local") return null;
|
|
960
960
|
const sanitized = sanitizePostHogBrowserEvent(event);
|
|
961
961
|
if (sanitized === null) return sanitized;
|
|
962
962
|
sanitized.properties.capxul_env = capxulEnv;
|