@capxul/observability 4.20.0-beta.1 → 4.20.0-beta.10

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/index.d.mts CHANGED
@@ -227,6 +227,26 @@ declare const CAPXUL_OPERATIONS: {
227
227
  readonly createOrg: "createOrg";
228
228
  readonly orgs: "orgs";
229
229
  };
230
+ /** AUTH A3 (#2073): the SDK facade over the native continuation endpoints. */
231
+ readonly clientRequests: {
232
+ readonly decide: "clientRequests.decide";
233
+ readonly read: "clientRequests.read";
234
+ };
235
+ /** AUTH A2 (#2072): the native client authorization issuer and its browser
236
+ * continuation. One name per durable transition the endpoints can fail on. */
237
+ readonly clientAuthorization: {
238
+ readonly acceptRequest: "clientAuthorization.acceptRequest";
239
+ readonly cancelRequest: "clientAuthorization.cancelRequest";
240
+ readonly consumeRequest: "clientAuthorization.consumeRequest";
241
+ readonly denyRequest: "clientAuthorization.denyRequest";
242
+ readonly invalidateContext: "clientAuthorization.invalidateContext";
243
+ readonly markConsented: "clientAuthorization.markConsented";
244
+ readonly readMetadata: "clientAuthorization.readMetadata";
245
+ readonly revokeGrant: "clientAuthorization.revokeGrant";
246
+ readonly rotateGrant: "clientAuthorization.rotateGrant";
247
+ readonly startRequest: "clientAuthorization.startRequest";
248
+ readonly sweepExpired: "clientAuthorization.sweepExpired";
249
+ };
230
250
  readonly credentials: {
231
251
  readonly bootstrapClient: "credentials.bootstrapClient";
232
252
  readonly mintQuickstartKey: "credentials.mintQuickstartKey";
@@ -266,7 +286,6 @@ declare const CAPXUL_OPERATIONS: {
266
286
  };
267
287
  readonly holdings: {
268
288
  readonly current: "holdings.current";
269
- readonly primary: "holdings.primary";
270
289
  };
271
290
  readonly indexer: {
272
291
  readonly reconcile: "indexer.reconcile";
@@ -327,10 +346,12 @@ declare const CAPXUL_OPERATIONS: {
327
346
  readonly prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution";
328
347
  readonly preparePaymentExecution: "moneyExecution.preparePaymentExecution";
329
348
  readonly preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution";
349
+ readonly prepareInvitationConfiguration: "moneyExecution.prepareInvitationConfiguration";
330
350
  readonly preparePermissionExecution: "moneyExecution.preparePermissionExecution";
331
351
  readonly recoverSubmissionClaims: "moneyExecution.recoverSubmissionClaims";
332
352
  readonly submit: "moneyExecution.submit";
333
353
  readonly submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution";
354
+ readonly submitInvitationConfigurationExecution: "moneyExecution.submitInvitationConfigurationExecution";
334
355
  readonly submitPaymentExecution: "moneyExecution.submitPaymentExecution";
335
356
  readonly submitPermissionExecution: "moneyExecution.submitPermissionExecution";
336
357
  };
@@ -352,22 +373,54 @@ declare const CAPXUL_OPERATIONS: {
352
373
  readonly completePerson: "onboarding.completePerson";
353
374
  };
354
375
  readonly org: {
355
- readonly acceptInvitations: "org.acceptInvitations";
356
376
  readonly account: {
357
377
  readonly get: "org.account.get";
358
378
  };
359
- readonly activateMember: "org.activateMember";
360
379
  readonly auditLog: "org.auditLog";
361
380
  readonly confirmBootstrap: "org.confirmBootstrap";
362
381
  readonly createOrg: "org.createOrg";
363
382
  readonly create: "org.create";
364
- readonly detectAndAcceptPendingInvitations: "org.detectAndAcceptPendingInvitations";
383
+ /**
384
+ * §11: the consent mutation reports `org_invite_accepted` through its own
385
+ * scheduled emitter. It is named for the emit, not the acceptance, because
386
+ * the interactive acceptance itself owns `org.invitations.accept`.
387
+ */
388
+ readonly emitInviteAccepted: "org.emitInviteAccepted";
365
389
  readonly emitInviteProgressed: "org.emitInviteProgressed";
366
390
  readonly expireInvitations: "org.expireInvitations";
367
391
  readonly getLifecycle: "org.getLifecycle";
368
392
  readonly getProofReceipt: "org.getProofReceipt";
369
393
  readonly invite: "org.invite";
370
- readonly inviteMember: "org.inviteMember";
394
+ /** D8 invitation lifecycle: preview, own list, read, and the four transitions. */
395
+ readonly invitations: {
396
+ /** The exact grantee's consent commit (§8): one accepted digest, once. */
397
+ readonly accept: "org.invitations.accept";
398
+ /**
399
+ * The authoring write. It is named `authorize`, not `invite`, because the
400
+ * backend already uses `org.invitations.invite` as a refusal label and
401
+ * `lint:telemetry-spine` refuses a label that collides with an operation.
402
+ */
403
+ readonly authorize: "org.invitations.authorize";
404
+ readonly cancel: "org.invitations.cancel";
405
+ readonly decline: "org.invitations.decline";
406
+ readonly get: "org.invitations.get";
407
+ readonly list: "org.invitations.list";
408
+ /**
409
+ * The Admin-scoped Organization list. It is named `listScoped`, not
410
+ * `list`, because the own-offer list already owns `org.invitations.list`.
411
+ */
412
+ readonly listScoped: "org.invitations.listScoped";
413
+ /**
414
+ * The authoring write's inner hops: the SDK drives the backend's existing
415
+ * prepare/submit pair, and these names label the two Convex calls. The
416
+ * owning `capxul_sdk_operation` record stays `org.invitations.authorize`.
417
+ */
418
+ readonly prepareConfiguration: "org.invitations.prepareConfiguration";
419
+ readonly preview: "org.invitations.preview";
420
+ readonly resend: "org.invitations.resend";
421
+ readonly retry: "org.invitations.retry";
422
+ readonly submitConfiguration: "org.invitations.submitConfiguration";
423
+ };
371
424
  readonly list: "org.list";
372
425
  readonly load: "org.load";
373
426
  readonly me: "org.me";
@@ -428,7 +481,6 @@ declare const CAPXUL_OPERATIONS: {
428
481
  };
429
482
  readonly recordFailure: "org.recordFailure";
430
483
  readonly recordProgress: "org.recordProgress";
431
- readonly resendInviteToken: "org.resendInviteToken";
432
484
  readonly resumeBootstrapSubmission: "org.resumeBootstrapSubmission";
433
485
  readonly retry: "org.retry";
434
486
  readonly retrySetup: "org.retrySetup";
@@ -449,9 +501,6 @@ declare const CAPXUL_OPERATIONS: {
449
501
  readonly organizationSetup: {
450
502
  readonly getProofReceipt: "organizationSetup.getProofReceipt";
451
503
  };
452
- readonly organizations: {
453
- readonly detectAndAcceptPendingInvitations: "orgs.detectAndAcceptPendingInvitations";
454
- };
455
504
  readonly payments: {
456
505
  readonly cancel: "payments.cancel";
457
506
  readonly claim: "payments.claim";
@@ -468,6 +517,7 @@ declare const CAPXUL_OPERATIONS: {
468
517
  readonly submitExecution: "payments.submitExecution";
469
518
  };
470
519
  readonly paymentDocuments: {
520
+ readonly get: "paymentDocuments.get";
471
521
  readonly render: "paymentDocuments.render";
472
522
  readonly verify: "paymentDocuments.verify";
473
523
  };
@@ -490,6 +540,7 @@ declare const CAPXUL_OPERATIONS: {
490
540
  readonly terms: "payroll.terms";
491
541
  };
492
542
  readonly permission: {
543
+ readonly verifyInvitationConfiguration: "permission.verifyInvitationConfiguration";
493
544
  readonly command: "permission.command";
494
545
  readonly retryVerification: "permission.retryVerification";
495
546
  readonly verify: "permission.verify";
@@ -612,7 +663,7 @@ interface TelemetryPort {
612
663
  }
613
664
  //#endregion
614
665
  //#region src/index.d.ts
615
- declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "identity_refused", "auth_signed_out", "onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "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", "chain_upstream_fallback", "bundler_error", "receipt_pending", "operation_retried", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_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_invite_expired", "payment_initiated", "payment_settled", "payment_failed", "payment_verification_retry", "payment_lifecycle_transition", "quick_pay_external_address_acknowledged", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident", "indexer_drift_corrected", "activity_annotation_saved", "ui_activity_action_completed", "contact_relationship_changed", "ui_contact_action_completed", "access_recovery_completed", "ui_access_step_completed", "org_invite_progressed", "invoice_issued", "invoice_request_transitioned", "ui_invoice_step_completed", "ui_treasury_step_completed", "ui_receive_step_completed", "payroll_group_changed", "payroll_run_transitioned", "ui_payroll_action_completed", "cli_diagnostic_completed"];
666
+ declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "identity_refused", "auth_signed_out", "native_authorization_started", "native_authorization_reviewed", "native_authorization_accepted", "native_authorization_denied", "native_authorization_connected", "native_authorization_failed", "onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "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", "chain_upstream_fallback", "bundler_error", "receipt_pending", "operation_retried", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_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_invite_expired", "payment_initiated", "payment_settled", "payment_failed", "payment_verification_retry", "payment_lifecycle_transition", "quick_pay_external_address_acknowledged", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident", "indexer_drift_corrected", "activity_annotation_saved", "ui_activity_action_completed", "contact_relationship_changed", "ui_contact_action_completed", "access_recovery_completed", "ui_access_step_completed", "org_invite_progressed", "invoice_issued", "invoice_request_transitioned", "ui_invoice_step_completed", "ui_treasury_step_completed", "ui_receive_step_completed", "payroll_group_changed", "payroll_run_transitioned", "ui_payroll_action_completed", "cli_diagnostic_completed", "cli_first_used", "cli_command_started", "cli_command_completed"];
616
667
  type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
617
668
  type NonEmptyTelemetryEventNames = readonly [TelemetryEventName, ...TelemetryEventName[]];
618
669
  type FunnelStepPropertyFilter = {
@@ -959,6 +1010,81 @@ declare const AuthSignedOutTelemetryEventSchema: Schema.Struct<{
959
1010
  sdk_version: Schema.optional<Schema.String>;
960
1011
  }>;
961
1012
  }>;
1013
+ declare const NativeAuthorizationStartedTelemetryEventSchema: Schema.Struct<{
1014
+ readonly name: Schema.Literal<"native_authorization_started">;
1015
+ readonly props: Schema.Struct<{
1016
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1017
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1018
+ readonly journey_id: Schema.optional<Schema.String>;
1019
+ readonly correlation_id: Schema.optional<Schema.String>;
1020
+ readonly sdk_version: Schema.optional<Schema.String>;
1021
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1022
+ }>;
1023
+ }>;
1024
+ declare const NativeAuthorizationReviewedTelemetryEventSchema: Schema.Struct<{
1025
+ readonly name: Schema.Literal<"native_authorization_reviewed">;
1026
+ readonly props: Schema.Struct<{
1027
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1028
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1029
+ readonly journey_id: Schema.optional<Schema.String>;
1030
+ readonly correlation_id: Schema.optional<Schema.String>;
1031
+ readonly sdk_version: Schema.optional<Schema.String>;
1032
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1033
+ }>;
1034
+ }>;
1035
+ declare const NativeAuthorizationAcceptedTelemetryEventSchema: Schema.Struct<{
1036
+ readonly name: Schema.Literal<"native_authorization_accepted">;
1037
+ readonly props: Schema.Struct<{
1038
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1039
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1040
+ readonly journey_id: Schema.optional<Schema.String>;
1041
+ readonly correlation_id: Schema.optional<Schema.String>;
1042
+ readonly sdk_version: Schema.optional<Schema.String>;
1043
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1044
+ /** Whether consent also had to finish account setup first. */
1045
+ readonly setup_state: Schema.optional<Schema.Literals<readonly ["not_required", "new", "resumable"]>>;
1046
+ }>;
1047
+ }>;
1048
+ declare const NativeAuthorizationDeniedTelemetryEventSchema: Schema.Struct<{
1049
+ readonly name: Schema.Literal<"native_authorization_denied">;
1050
+ readonly props: Schema.Struct<{
1051
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1052
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
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
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1057
+ }>;
1058
+ }>;
1059
+ declare const NativeAuthorizationConnectedTelemetryEventSchema: Schema.Struct<{
1060
+ readonly name: Schema.Literal<"native_authorization_connected">;
1061
+ readonly props: Schema.Struct<{
1062
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1063
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1064
+ readonly journey_id: Schema.optional<Schema.String>;
1065
+ readonly correlation_id: Schema.optional<Schema.String>;
1066
+ readonly sdk_version: Schema.optional<Schema.String>;
1067
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1068
+ }>;
1069
+ }>;
1070
+ declare const NativeAuthorizationFailedTelemetryEventSchema: Schema.Struct<{
1071
+ readonly name: Schema.Literal<"native_authorization_failed">;
1072
+ readonly props: Schema.Struct<{
1073
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1074
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1075
+ readonly journey_id: Schema.optional<Schema.String>;
1076
+ readonly correlation_id: Schema.optional<Schema.String>;
1077
+ readonly sdk_version: Schema.optional<Schema.String>;
1078
+ readonly mode: Schema.optional<Schema.Literals<readonly ["login", "signup"]>>;
1079
+ /** The refusal word the store returned, for example `identity_mismatch` or
1080
+ * `request_expired`. These are the closed `CLIENT_AUTHORIZATION_REFUSALS` from
1081
+ * `@capxul/wire` plus the store-internal `fresh_session_required` (ruling R3),
1082
+ * which the continuation maps to `identity_mismatch` on the wire but reports
1083
+ * truthfully here. Kept as `OptionalString` rather than an imported literal
1084
+ * set: this package must not depend on the transport contract. */
1085
+ readonly reason: Schema.optional<Schema.String>;
1086
+ }>;
1087
+ }>;
962
1088
  declare const OnboardingIntentSelectedTelemetryEventSchema: Schema.Struct<{
963
1089
  readonly name: Schema.Literal<"onboarding_intent_selected">;
964
1090
  readonly props: Schema.Struct<{
@@ -1240,6 +1366,7 @@ declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
1240
1366
  readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
1241
1367
  readonly chain_id: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1242
1368
  readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1369
+ readonly asset_id: Schema.optional<Schema.String>;
1243
1370
  readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1244
1371
  readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1245
1372
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
@@ -1293,6 +1420,7 @@ declare const FaucetRequestedTelemetryEventSchema: Schema.Struct<{
1293
1420
  readonly sdk_version: Schema.optional<Schema.String>;
1294
1421
  readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1295
1422
  readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1423
+ readonly asset_id: Schema.optional<Schema.String>;
1296
1424
  }>;
1297
1425
  }>;
1298
1426
  declare const FaucetConfirmedTelemetryEventSchema: Schema.Struct<{
@@ -1306,6 +1434,8 @@ declare const FaucetConfirmedTelemetryEventSchema: Schema.Struct<{
1306
1434
  readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1307
1435
  readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1308
1436
  readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
1437
+ readonly asset_id: Schema.optional<Schema.String>;
1438
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1309
1439
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1310
1440
  }>;
1311
1441
  }>;
@@ -1345,6 +1475,10 @@ declare const FaucetFailedTelemetryEventSchema: Schema.Struct<{
1345
1475
  readonly server: Schema.optional<Schema.String>;
1346
1476
  }>>;
1347
1477
  readonly reason: Schema.optional<Schema.String>;
1478
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1479
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1480
+ readonly asset_id: Schema.optional<Schema.String>;
1481
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1348
1482
  }>;
1349
1483
  }>;
1350
1484
  declare const ChainUpstreamFallbackTelemetryEventSchema: Schema.Struct<{
@@ -1540,6 +1674,11 @@ declare const OrgInviteSentTelemetryEventSchema: Schema.Struct<{
1540
1674
  readonly correlation_id: Schema.optional<Schema.String>;
1541
1675
  readonly sdk_version: Schema.optional<Schema.String>;
1542
1676
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1677
+ readonly invitation_id: Schema.optional<Schema.String>;
1678
+ readonly generation: Schema.optional<Schema.String>;
1679
+ readonly command_id: Schema.optional<Schema.String>;
1680
+ readonly subject_party_id: Schema.optional<Schema.String>;
1681
+ readonly persisted_at: Schema.optional<Schema.Codec<EpochMs, number, never, never>>;
1543
1682
  readonly email_domain: Schema.optional<Schema.String>;
1544
1683
  readonly role: Schema.optional<Schema.String>;
1545
1684
  readonly status: Schema.optional<Schema.String>;
@@ -1554,6 +1693,11 @@ declare const OrgInviteAcceptedTelemetryEventSchema: Schema.Struct<{
1554
1693
  readonly correlation_id: Schema.optional<Schema.String>;
1555
1694
  readonly sdk_version: Schema.optional<Schema.String>;
1556
1695
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1696
+ readonly invitation_id: Schema.optional<Schema.String>;
1697
+ readonly accepted_at: Schema.optional<Schema.Codec<EpochMs, number, never, never>>;
1698
+ readonly generation: Schema.optional<Schema.String>;
1699
+ readonly command_id: Schema.optional<Schema.String>;
1700
+ readonly subject_party_id: Schema.optional<Schema.String>;
1557
1701
  readonly role: Schema.optional<Schema.String>;
1558
1702
  readonly status: Schema.optional<Schema.String>;
1559
1703
  }>;
@@ -1568,6 +1712,7 @@ declare const OrgInviteExpiredTelemetryEventSchema: Schema.Struct<{
1568
1712
  readonly sdk_version: Schema.optional<Schema.String>;
1569
1713
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1570
1714
  readonly email_domain: Schema.optional<Schema.String>;
1715
+ readonly invitation_id: Schema.optional<Schema.String>;
1571
1716
  readonly reason: Schema.optional<Schema.String>;
1572
1717
  readonly role: Schema.optional<Schema.String>;
1573
1718
  readonly status: Schema.optional<Schema.String>;
@@ -1823,8 +1968,13 @@ declare const PermissionMirrorVerificationTelemetryEventSchema: Schema.Struct<{
1823
1968
  * actually returned, and which command it was, without either fact rewriting
1824
1969
  * the receipt outcome above. Absent when application has not happened yet.
1825
1970
  */
1826
- readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch"]>>;
1971
+ readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch", "cleanup_required", "not_applied", "application_failure", "mismatch", "refused"]>>;
1972
+ readonly command_kind: Schema.optional<Schema.Literals<readonly ["invitation_configuration", "invitation_eoa"]>>;
1827
1973
  readonly command_id: Schema.optional<Schema.String>;
1974
+ readonly invitation_id: Schema.optional<Schema.String>;
1975
+ readonly generation: Schema.optional<Schema.String>;
1976
+ readonly purpose: Schema.optional<Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>>;
1977
+ readonly $insert_id: Schema.optional<Schema.String>;
1828
1978
  /**
1829
1979
  * #1961 R03. The authorized stored row names the Permission it changed; the
1830
1980
  * verified receipt names the chain facts that prove it. Every field is
@@ -1924,6 +2074,93 @@ declare const ContactRelationshipChangedTelemetryEventSchema: Schema.Struct<{
1924
2074
  }>;
1925
2075
  }>;
1926
2076
  /** One completed online CLI diagnostic. No command input or provider text. */
2077
+ declare const CLI_COMMAND_NAMES: readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"];
2078
+ declare const CLI_CAPABILITIES: readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"];
2079
+ declare const CLI_INVOCATION_KINDS: readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"];
2080
+ type CliCommandName = (typeof CLI_COMMAND_NAMES)[number];
2081
+ type CliCapability = (typeof CLI_CAPABILITIES)[number];
2082
+ type CliInvocationKind = (typeof CLI_INVOCATION_KINDS)[number];
2083
+ declare const CliFirstUsedTelemetryEventSchema: Schema.Struct<{
2084
+ readonly name: Schema.Literal<"cli_first_used">;
2085
+ readonly props: Schema.Struct<{
2086
+ capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2087
+ producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2088
+ journey_id: Schema.optional<Schema.String>;
2089
+ correlation_id: Schema.optional<Schema.String>;
2090
+ schema_version: Schema.Literal<1>;
2091
+ command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
2092
+ capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"]>;
2093
+ invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2094
+ invocation_id: Schema.String;
2095
+ cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2096
+ anonymous_id: Schema.optional<Schema.String>;
2097
+ auth_user_id: Schema.optional<Schema.String>;
2098
+ occurred_at: Schema.Number;
2099
+ cli_version: Schema.String;
2100
+ sdk_version: Schema.String;
2101
+ release: Schema.String;
2102
+ platform: Schema.Literals<readonly ["darwin", "linux", "unknown"]>;
2103
+ architecture: Schema.Literals<readonly ["arm64", "x64", "unknown"]>;
2104
+ ci: Schema.Boolean;
2105
+ tty: Schema.Boolean;
2106
+ output_mode: Schema.Literals<readonly ["human", "json"]>;
2107
+ }>;
2108
+ }>;
2109
+ declare const CliCommandStartedTelemetryEventSchema: Schema.Struct<{
2110
+ readonly name: Schema.Literal<"cli_command_started">;
2111
+ readonly props: Schema.Struct<{
2112
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2113
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2114
+ readonly journey_id: Schema.optional<Schema.String>;
2115
+ readonly correlation_id: Schema.optional<Schema.String>;
2116
+ readonly schema_version: Schema.Literal<1>;
2117
+ readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
2118
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"]>;
2119
+ readonly invocation_id: Schema.String;
2120
+ readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2121
+ readonly anonymous_id: Schema.optional<Schema.String>;
2122
+ readonly auth_user_id: Schema.optional<Schema.String>;
2123
+ readonly occurred_at: Schema.Number;
2124
+ readonly cli_version: Schema.String;
2125
+ readonly sdk_version: Schema.String;
2126
+ readonly release: Schema.String;
2127
+ readonly platform: Schema.Literals<readonly ["darwin", "linux", "unknown"]>;
2128
+ readonly architecture: Schema.Literals<readonly ["arm64", "x64", "unknown"]>;
2129
+ readonly ci: Schema.Boolean;
2130
+ readonly tty: Schema.Boolean;
2131
+ readonly output_mode: Schema.Literals<readonly ["human", "json"]>;
2132
+ readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version"]>;
2133
+ }>;
2134
+ }>;
2135
+ declare const CliCommandCompletedTelemetryEventSchema: Schema.Struct<{
2136
+ readonly name: Schema.Literal<"cli_command_completed">;
2137
+ readonly props: Schema.Struct<{
2138
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2139
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2140
+ readonly journey_id: Schema.optional<Schema.String>;
2141
+ readonly correlation_id: Schema.optional<Schema.String>;
2142
+ readonly schema_version: Schema.Literal<1>;
2143
+ readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
2144
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"]>;
2145
+ readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2146
+ readonly invocation_id: Schema.String;
2147
+ readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2148
+ readonly anonymous_id: Schema.optional<Schema.String>;
2149
+ readonly auth_user_id: Schema.optional<Schema.String>;
2150
+ readonly occurred_at: Schema.Number;
2151
+ readonly cli_version: Schema.String;
2152
+ readonly sdk_version: Schema.String;
2153
+ readonly release: Schema.String;
2154
+ readonly platform: Schema.Literals<readonly ["darwin", "linux", "unknown"]>;
2155
+ readonly architecture: Schema.Literals<readonly ["arm64", "x64", "unknown"]>;
2156
+ readonly ci: Schema.Boolean;
2157
+ readonly tty: Schema.Boolean;
2158
+ readonly output_mode: Schema.Literals<readonly ["human", "json"]>;
2159
+ readonly outcome: Schema.Literals<readonly ["succeeded", "refused", "failed", "cancelled"]>;
2160
+ readonly duration_ms: Schema.Number;
2161
+ readonly error_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED", "CLI_USAGE", "CLI_CONFIG", "CLI_STORAGE", "CLI_DEFECT"]>>;
2162
+ }>;
2163
+ }>;
1927
2164
  declare const CliDiagnosticCompletedTelemetryEventSchema: Schema.Struct<{
1928
2165
  readonly name: Schema.Literal<"cli_diagnostic_completed">;
1929
2166
  readonly props: Schema.Struct<{
@@ -2149,9 +2386,12 @@ declare const OrgInviteProgressedTelemetryEventSchema: Schema.Struct<{
2149
2386
  readonly correlation_id: Schema.optional<Schema.String>;
2150
2387
  readonly sdk_version: Schema.optional<Schema.String>;
2151
2388
  readonly organization_id: Schema.Codec<string, string, never, never>;
2152
- readonly progress: Schema.Literals<readonly ["account_ready", "permission_applied", "membership_activated", "revoked"]>;
2389
+ readonly progress: Schema.Literals<readonly ["configuration_authorized", "account_ready", "permission_applied", "membership_activated", "revoked"]>;
2153
2390
  /** The invited Party. The initiating actor stays on the envelope's identity. */
2154
2391
  readonly member_party_id: Schema.String;
2392
+ readonly invitation_id: Schema.optional<Schema.String>;
2393
+ readonly generation: Schema.optional<Schema.String>;
2394
+ readonly command_id: Schema.optional<Schema.String>;
2155
2395
  readonly occurred_at: Schema.Number;
2156
2396
  }>;
2157
2397
  }>;
@@ -2350,9 +2590,12 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2350
2590
  readonly correlation_id: Schema.optional<Schema.String>;
2351
2591
  readonly sdk_version: Schema.optional<Schema.String>;
2352
2592
  readonly organization_id: Schema.Codec<string, string, never, never>;
2353
- readonly progress: Schema.Literals<readonly ["account_ready", "permission_applied", "membership_activated", "revoked"]>;
2593
+ readonly progress: Schema.Literals<readonly ["configuration_authorized", "account_ready", "permission_applied", "membership_activated", "revoked"]>;
2354
2594
  /** The invited Party. The initiating actor stays on the envelope's identity. */
2355
2595
  readonly member_party_id: Schema.String;
2596
+ readonly invitation_id: Schema.optional<Schema.String>;
2597
+ readonly generation: Schema.optional<Schema.String>;
2598
+ readonly command_id: Schema.optional<Schema.String>;
2356
2599
  readonly occurred_at: Schema.Number;
2357
2600
  }>;
2358
2601
  }>;
@@ -2532,6 +2775,87 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2532
2775
  readonly cli_version: Schema.String;
2533
2776
  }>;
2534
2777
  }>;
2778
+ readonly cli_first_used: Schema.Struct<{
2779
+ readonly name: Schema.Literal<"cli_first_used">;
2780
+ readonly props: Schema.Struct<{
2781
+ capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2782
+ producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2783
+ journey_id: Schema.optional<Schema.String>;
2784
+ correlation_id: Schema.optional<Schema.String>;
2785
+ schema_version: Schema.Literal<1>;
2786
+ command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
2787
+ capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"]>;
2788
+ invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2789
+ invocation_id: Schema.String;
2790
+ cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2791
+ anonymous_id: Schema.optional<Schema.String>;
2792
+ auth_user_id: Schema.optional<Schema.String>;
2793
+ occurred_at: Schema.Number;
2794
+ cli_version: Schema.String;
2795
+ sdk_version: Schema.String;
2796
+ release: Schema.String;
2797
+ platform: Schema.Literals<readonly ["darwin", "linux", "unknown"]>;
2798
+ architecture: Schema.Literals<readonly ["arm64", "x64", "unknown"]>;
2799
+ ci: Schema.Boolean;
2800
+ tty: Schema.Boolean;
2801
+ output_mode: Schema.Literals<readonly ["human", "json"]>;
2802
+ }>;
2803
+ }>;
2804
+ readonly cli_command_started: Schema.Struct<{
2805
+ readonly name: Schema.Literal<"cli_command_started">;
2806
+ readonly props: Schema.Struct<{
2807
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2808
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2809
+ readonly journey_id: Schema.optional<Schema.String>;
2810
+ readonly correlation_id: Schema.optional<Schema.String>;
2811
+ readonly schema_version: Schema.Literal<1>;
2812
+ readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
2813
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"]>;
2814
+ readonly invocation_id: Schema.String;
2815
+ readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2816
+ readonly anonymous_id: Schema.optional<Schema.String>;
2817
+ readonly auth_user_id: Schema.optional<Schema.String>;
2818
+ readonly occurred_at: Schema.Number;
2819
+ readonly cli_version: Schema.String;
2820
+ readonly sdk_version: Schema.String;
2821
+ readonly release: Schema.String;
2822
+ readonly platform: Schema.Literals<readonly ["darwin", "linux", "unknown"]>;
2823
+ readonly architecture: Schema.Literals<readonly ["arm64", "x64", "unknown"]>;
2824
+ readonly ci: Schema.Boolean;
2825
+ readonly tty: Schema.Boolean;
2826
+ readonly output_mode: Schema.Literals<readonly ["human", "json"]>;
2827
+ readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version"]>;
2828
+ }>;
2829
+ }>;
2830
+ readonly cli_command_completed: Schema.Struct<{
2831
+ readonly name: Schema.Literal<"cli_command_completed">;
2832
+ readonly props: Schema.Struct<{
2833
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2834
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2835
+ readonly journey_id: Schema.optional<Schema.String>;
2836
+ readonly correlation_id: Schema.optional<Schema.String>;
2837
+ readonly schema_version: Schema.Literal<1>;
2838
+ readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
2839
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"]>;
2840
+ readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2841
+ readonly invocation_id: Schema.String;
2842
+ readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2843
+ readonly anonymous_id: Schema.optional<Schema.String>;
2844
+ readonly auth_user_id: Schema.optional<Schema.String>;
2845
+ readonly occurred_at: Schema.Number;
2846
+ readonly cli_version: Schema.String;
2847
+ readonly sdk_version: Schema.String;
2848
+ readonly release: Schema.String;
2849
+ readonly platform: Schema.Literals<readonly ["darwin", "linux", "unknown"]>;
2850
+ readonly architecture: Schema.Literals<readonly ["arm64", "x64", "unknown"]>;
2851
+ readonly ci: Schema.Boolean;
2852
+ readonly tty: Schema.Boolean;
2853
+ readonly output_mode: Schema.Literals<readonly ["human", "json"]>;
2854
+ readonly outcome: Schema.Literals<readonly ["succeeded", "refused", "failed", "cancelled"]>;
2855
+ readonly duration_ms: Schema.Number;
2856
+ readonly error_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED", "CLI_USAGE", "CLI_CONFIG", "CLI_STORAGE", "CLI_DEFECT"]>>;
2857
+ }>;
2858
+ }>;
2535
2859
  readonly activity_annotation_saved: Schema.Struct<{
2536
2860
  readonly name: Schema.Literal<"activity_annotation_saved">;
2537
2861
  readonly props: Schema.Struct<{
@@ -2751,6 +3075,81 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2751
3075
  sdk_version: Schema.optional<Schema.String>;
2752
3076
  }>;
2753
3077
  }>;
3078
+ readonly native_authorization_started: Schema.Struct<{
3079
+ readonly name: Schema.Literal<"native_authorization_started">;
3080
+ readonly props: Schema.Struct<{
3081
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3082
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3083
+ readonly journey_id: Schema.optional<Schema.String>;
3084
+ readonly correlation_id: Schema.optional<Schema.String>;
3085
+ readonly sdk_version: Schema.optional<Schema.String>;
3086
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3087
+ }>;
3088
+ }>;
3089
+ readonly native_authorization_reviewed: Schema.Struct<{
3090
+ readonly name: Schema.Literal<"native_authorization_reviewed">;
3091
+ readonly props: Schema.Struct<{
3092
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3093
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3094
+ readonly journey_id: Schema.optional<Schema.String>;
3095
+ readonly correlation_id: Schema.optional<Schema.String>;
3096
+ readonly sdk_version: Schema.optional<Schema.String>;
3097
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3098
+ }>;
3099
+ }>;
3100
+ readonly native_authorization_accepted: Schema.Struct<{
3101
+ readonly name: Schema.Literal<"native_authorization_accepted">;
3102
+ readonly props: Schema.Struct<{
3103
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3104
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3105
+ readonly journey_id: Schema.optional<Schema.String>;
3106
+ readonly correlation_id: Schema.optional<Schema.String>;
3107
+ readonly sdk_version: Schema.optional<Schema.String>;
3108
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3109
+ /** Whether consent also had to finish account setup first. */
3110
+ readonly setup_state: Schema.optional<Schema.Literals<readonly ["not_required", "new", "resumable"]>>;
3111
+ }>;
3112
+ }>;
3113
+ readonly native_authorization_denied: Schema.Struct<{
3114
+ readonly name: Schema.Literal<"native_authorization_denied">;
3115
+ readonly props: Schema.Struct<{
3116
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3117
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3118
+ readonly journey_id: Schema.optional<Schema.String>;
3119
+ readonly correlation_id: Schema.optional<Schema.String>;
3120
+ readonly sdk_version: Schema.optional<Schema.String>;
3121
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3122
+ }>;
3123
+ }>;
3124
+ readonly native_authorization_connected: Schema.Struct<{
3125
+ readonly name: Schema.Literal<"native_authorization_connected">;
3126
+ readonly props: Schema.Struct<{
3127
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3128
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3129
+ readonly journey_id: Schema.optional<Schema.String>;
3130
+ readonly correlation_id: Schema.optional<Schema.String>;
3131
+ readonly sdk_version: Schema.optional<Schema.String>;
3132
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3133
+ }>;
3134
+ }>;
3135
+ readonly native_authorization_failed: Schema.Struct<{
3136
+ readonly name: Schema.Literal<"native_authorization_failed">;
3137
+ readonly props: Schema.Struct<{
3138
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3139
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3140
+ readonly journey_id: Schema.optional<Schema.String>;
3141
+ readonly correlation_id: Schema.optional<Schema.String>;
3142
+ readonly sdk_version: Schema.optional<Schema.String>;
3143
+ readonly mode: Schema.optional<Schema.Literals<readonly ["login", "signup"]>>;
3144
+ /** The refusal word the store returned, for example `identity_mismatch` or
3145
+ * `request_expired`. These are the closed `CLIENT_AUTHORIZATION_REFUSALS` from
3146
+ * `@capxul/wire` plus the store-internal `fresh_session_required` (ruling R3),
3147
+ * which the continuation maps to `identity_mismatch` on the wire but reports
3148
+ * truthfully here. Kept as `OptionalString` rather than an imported literal
3149
+ * set: this package must not depend on the transport contract. */
3150
+ readonly reason: Schema.optional<Schema.String>;
3151
+ }>;
3152
+ }>;
2754
3153
  readonly onboarding_intent_selected: Schema.Struct<{
2755
3154
  readonly name: Schema.Literal<"onboarding_intent_selected">;
2756
3155
  readonly props: Schema.Struct<{
@@ -3032,6 +3431,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3032
3431
  readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
3033
3432
  readonly chain_id: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3034
3433
  readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
3434
+ readonly asset_id: Schema.optional<Schema.String>;
3035
3435
  readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
3036
3436
  readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
3037
3437
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
@@ -3085,6 +3485,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3085
3485
  readonly sdk_version: Schema.optional<Schema.String>;
3086
3486
  readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
3087
3487
  readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3488
+ readonly asset_id: Schema.optional<Schema.String>;
3088
3489
  }>;
3089
3490
  }>;
3090
3491
  readonly faucet_confirmed: Schema.Struct<{
@@ -3098,6 +3499,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3098
3499
  readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
3099
3500
  readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3100
3501
  readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
3502
+ readonly asset_id: Schema.optional<Schema.String>;
3503
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
3101
3504
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
3102
3505
  }>;
3103
3506
  }>;
@@ -3137,6 +3540,10 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3137
3540
  readonly server: Schema.optional<Schema.String>;
3138
3541
  }>>;
3139
3542
  readonly reason: Schema.optional<Schema.String>;
3543
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
3544
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3545
+ readonly asset_id: Schema.optional<Schema.String>;
3546
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
3140
3547
  }>;
3141
3548
  }>;
3142
3549
  readonly chain_upstream_fallback: Schema.Struct<{
@@ -3332,6 +3739,11 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3332
3739
  readonly correlation_id: Schema.optional<Schema.String>;
3333
3740
  readonly sdk_version: Schema.optional<Schema.String>;
3334
3741
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
3742
+ readonly invitation_id: Schema.optional<Schema.String>;
3743
+ readonly generation: Schema.optional<Schema.String>;
3744
+ readonly command_id: Schema.optional<Schema.String>;
3745
+ readonly subject_party_id: Schema.optional<Schema.String>;
3746
+ readonly persisted_at: Schema.optional<Schema.Codec<EpochMs, number, never, never>>;
3335
3747
  readonly email_domain: Schema.optional<Schema.String>;
3336
3748
  readonly role: Schema.optional<Schema.String>;
3337
3749
  readonly status: Schema.optional<Schema.String>;
@@ -3346,6 +3758,11 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3346
3758
  readonly correlation_id: Schema.optional<Schema.String>;
3347
3759
  readonly sdk_version: Schema.optional<Schema.String>;
3348
3760
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
3761
+ readonly invitation_id: Schema.optional<Schema.String>;
3762
+ readonly accepted_at: Schema.optional<Schema.Codec<EpochMs, number, never, never>>;
3763
+ readonly generation: Schema.optional<Schema.String>;
3764
+ readonly command_id: Schema.optional<Schema.String>;
3765
+ readonly subject_party_id: Schema.optional<Schema.String>;
3349
3766
  readonly role: Schema.optional<Schema.String>;
3350
3767
  readonly status: Schema.optional<Schema.String>;
3351
3768
  }>;
@@ -3360,6 +3777,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3360
3777
  readonly sdk_version: Schema.optional<Schema.String>;
3361
3778
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
3362
3779
  readonly email_domain: Schema.optional<Schema.String>;
3780
+ readonly invitation_id: Schema.optional<Schema.String>;
3363
3781
  readonly reason: Schema.optional<Schema.String>;
3364
3782
  readonly role: Schema.optional<Schema.String>;
3365
3783
  readonly status: Schema.optional<Schema.String>;
@@ -3615,8 +4033,13 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3615
4033
  * actually returned, and which command it was, without either fact rewriting
3616
4034
  * the receipt outcome above. Absent when application has not happened yet.
3617
4035
  */
3618
- readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch"]>>;
4036
+ readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch", "cleanup_required", "not_applied", "application_failure", "mismatch", "refused"]>>;
4037
+ readonly command_kind: Schema.optional<Schema.Literals<readonly ["invitation_configuration", "invitation_eoa"]>>;
3619
4038
  readonly command_id: Schema.optional<Schema.String>;
4039
+ readonly invitation_id: Schema.optional<Schema.String>;
4040
+ readonly generation: Schema.optional<Schema.String>;
4041
+ readonly purpose: Schema.optional<Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>>;
4042
+ readonly $insert_id: Schema.optional<Schema.String>;
3620
4043
  /**
3621
4044
  * #1961 R03. The authorized stored row names the Permission it changed; the
3622
4045
  * verified receipt names the chain facts that prove it. Every field is
@@ -3934,4 +4357,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
3934
4357
  reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
3935
4358
  }
3936
4359
  //#endregion
3937
- export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CONTRACT_FIRST_TELEMETRY_EVENTS, CapturedNetworkRequestLike, CapxulBrowserAnalyticsInput, CapxulEnv, type CapxulOperation, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, CliDiagnosticCompletedTelemetryEventSchema, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, InitializePostHogBrowserAnalyticsInput, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, type NormalizedCapxulOperation, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteProgressedTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PayrollGroupChangedTelemetryEventSchema, PayrollRunTransitionedTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PointEventJourney, PostHogBeforeSend, PostHogBrowserCapture, PostHogBrowserInitialize, PostHogBrowserOptions, PostHogBrowserPageviewClient, PostHogProductAppOptions, PostHogTelemetryAdapter, PostHogUtilityAppOptions, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, TelemetryEnvelopeDefaults, TelemetryEvent, TelemetryEventName, TelemetryGroupInput, TelemetryIdentifyInput, type TelemetryPort, TelemetryProducer, TelemetryProps, TelemetryRedactionOptions, TrackHandler, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
4360
+ export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CLI_CAPABILITIES, CLI_COMMAND_NAMES, CLI_INVOCATION_KINDS, CONTRACT_FIRST_TELEMETRY_EVENTS, CapturedNetworkRequestLike, CapxulBrowserAnalyticsInput, CapxulEnv, type CapxulOperation, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, CliCapability, CliCommandCompletedTelemetryEventSchema, CliCommandName, CliCommandStartedTelemetryEventSchema, CliDiagnosticCompletedTelemetryEventSchema, CliFirstUsedTelemetryEventSchema, CliInvocationKind, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, InitializePostHogBrowserAnalyticsInput, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NativeAuthorizationAcceptedTelemetryEventSchema, NativeAuthorizationConnectedTelemetryEventSchema, NativeAuthorizationDeniedTelemetryEventSchema, NativeAuthorizationFailedTelemetryEventSchema, NativeAuthorizationReviewedTelemetryEventSchema, NativeAuthorizationStartedTelemetryEventSchema, NonEmptyTelemetryEventNames, type NormalizedCapxulOperation, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteProgressedTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PayrollGroupChangedTelemetryEventSchema, PayrollRunTransitionedTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PointEventJourney, PostHogBeforeSend, PostHogBrowserCapture, PostHogBrowserInitialize, PostHogBrowserOptions, PostHogBrowserPageviewClient, PostHogProductAppOptions, PostHogTelemetryAdapter, PostHogUtilityAppOptions, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, TelemetryEnvelopeDefaults, TelemetryEvent, TelemetryEventName, TelemetryGroupInput, TelemetryIdentifyInput, type TelemetryPort, TelemetryProducer, TelemetryProps, TelemetryRedactionOptions, TrackHandler, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };