@capxul/observability 4.20.0-beta.2 → 4.20.0-beta.21

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";
@@ -325,12 +344,17 @@ declare const CAPXUL_OPERATIONS: {
325
344
  readonly moneyExecution: {
326
345
  readonly abandonPaymentExecution: "moneyExecution.abandonPaymentExecution";
327
346
  readonly prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution";
347
+ readonly prepareRequestPaymentExecution: "moneyExecution.prepareRequestPaymentExecution";
328
348
  readonly preparePaymentExecution: "moneyExecution.preparePaymentExecution";
329
349
  readonly preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution";
350
+ readonly prepareInvitationConfiguration: "moneyExecution.prepareInvitationConfiguration";
330
351
  readonly preparePermissionExecution: "moneyExecution.preparePermissionExecution";
331
352
  readonly recoverSubmissionClaims: "moneyExecution.recoverSubmissionClaims";
332
353
  readonly submit: "moneyExecution.submit";
354
+ readonly prepareInvoiceCheckoutExecution: "moneyExecution.prepareInvoiceCheckoutExecution";
355
+ readonly prepareOfferCheckoutExecution: "moneyExecution.prepareOfferCheckoutExecution";
333
356
  readonly submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution";
357
+ readonly submitInvitationConfigurationExecution: "moneyExecution.submitInvitationConfigurationExecution";
334
358
  readonly submitPaymentExecution: "moneyExecution.submitPaymentExecution";
335
359
  readonly submitPermissionExecution: "moneyExecution.submitPermissionExecution";
336
360
  };
@@ -339,7 +363,9 @@ declare const CAPXUL_OPERATIONS: {
339
363
  readonly scan: "movement.scan";
340
364
  };
341
365
  readonly inbox: {
366
+ readonly paymentTerms: "inbox.paymentTerms";
342
367
  readonly approve: "inbox.approve";
368
+ readonly fulfill: "inbox.fulfill";
343
369
  readonly decline: "inbox.decline";
344
370
  readonly list: "inbox.list";
345
371
  };
@@ -347,27 +373,86 @@ declare const CAPXUL_OPERATIONS: {
347
373
  readonly quote: "offramp.quote";
348
374
  readonly status: "offramp.status";
349
375
  };
376
+ readonly offers: {
377
+ readonly create: "offers.create";
378
+ readonly get: "offers.get";
379
+ readonly list: "offers.list";
380
+ readonly revise: "offers.revise";
381
+ readonly deactivate: "offers.deactivate";
382
+ };
383
+ readonly checkouts: {
384
+ readonly request: "checkouts.request";
385
+ readonly prepareRequest: "checkouts.prepareRequest";
386
+ readonly requestState: "checkouts.requestState";
387
+ readonly reconcileRequest: "checkouts.reconcileRequest";
388
+ readonly prepareRequestRegistered: "checkouts.prepareRequestRegistered";
389
+ readonly invoice: "checkouts.invoice";
390
+ readonly prepareInvoice: "checkouts.prepareInvoice";
391
+ readonly invoiceState: "checkouts.invoiceState";
392
+ readonly reconcileInvoice: "checkouts.reconcileInvoice";
393
+ readonly payInvoiceRegistered: "checkouts.payInvoiceRegistered";
394
+ readonly prepareRegistered: "checkouts.prepareRegistered";
395
+ readonly state: "checkouts.state";
396
+ readonly reconcile: "checkouts.reconcile";
397
+ readonly offer: "checkouts.offer";
398
+ readonly create: "checkouts.create";
399
+ readonly get: "checkouts.get";
400
+ readonly prepare: "checkouts.prepare";
401
+ };
350
402
  readonly onboarding: {
351
403
  readonly completeOrganization: "onboarding.completeOrganization";
352
404
  readonly completePerson: "onboarding.completePerson";
353
405
  };
354
406
  readonly org: {
355
- readonly acceptInvitations: "org.acceptInvitations";
356
407
  readonly account: {
357
408
  readonly get: "org.account.get";
358
409
  };
359
- readonly activateMember: "org.activateMember";
360
410
  readonly auditLog: "org.auditLog";
361
411
  readonly confirmBootstrap: "org.confirmBootstrap";
362
412
  readonly createOrg: "org.createOrg";
363
413
  readonly create: "org.create";
364
- readonly detectAndAcceptPendingInvitations: "org.detectAndAcceptPendingInvitations";
414
+ /**
415
+ * §11: the consent mutation reports `org_invite_accepted` through its own
416
+ * scheduled emitter. It is named for the emit, not the acceptance, because
417
+ * the interactive acceptance itself owns `org.invitations.accept`.
418
+ */
419
+ readonly emitInviteAccepted: "org.emitInviteAccepted";
365
420
  readonly emitInviteProgressed: "org.emitInviteProgressed";
366
421
  readonly expireInvitations: "org.expireInvitations";
367
422
  readonly getLifecycle: "org.getLifecycle";
368
423
  readonly getProofReceipt: "org.getProofReceipt";
369
424
  readonly invite: "org.invite";
370
- readonly inviteMember: "org.inviteMember";
425
+ /** D8 invitation lifecycle: preview, own list, read, and the four transitions. */
426
+ readonly invitations: {
427
+ /** The exact grantee's consent commit (§8): one accepted digest, once. */
428
+ readonly accept: "org.invitations.accept";
429
+ /**
430
+ * The authoring write. It is named `authorize`, not `invite`, because the
431
+ * backend already uses `org.invitations.invite` as a refusal label and
432
+ * `lint:telemetry-spine` refuses a label that collides with an operation.
433
+ */
434
+ readonly authorize: "org.invitations.authorize";
435
+ readonly cancel: "org.invitations.cancel";
436
+ readonly decline: "org.invitations.decline";
437
+ readonly get: "org.invitations.get";
438
+ readonly subscribe: "org.invitations.subscribe";
439
+ readonly list: "org.invitations.list";
440
+ /**
441
+ * The Admin-scoped Organization list. It is named `listScoped`, not
442
+ * `list`, because the own-offer list already owns `org.invitations.list`.
443
+ */
444
+ readonly listScoped: "org.invitations.listScoped";
445
+ /**
446
+ * The authoring write's inner hops: the SDK drives the backend's existing
447
+ * prepare/submit pair, and these names label the two Convex calls. The
448
+ * owning `capxul_sdk_operation` record stays `org.invitations.authorize`.
449
+ */
450
+ readonly prepareConfiguration: "org.invitations.prepareConfiguration";
451
+ readonly preview: "org.invitations.preview";
452
+ readonly resend: "org.invitations.resend";
453
+ readonly retry: "org.invitations.retry";
454
+ readonly submitConfiguration: "org.invitations.submitConfiguration";
455
+ };
371
456
  readonly list: "org.list";
372
457
  readonly load: "org.load";
373
458
  readonly me: "org.me";
@@ -379,16 +464,25 @@ declare const CAPXUL_OPERATIONS: {
379
464
  readonly change: "org.permissions.change";
380
465
  readonly create: "org.permissions.create";
381
466
  readonly get: "org.permissions.get";
467
+ readonly getCommand: "org.permissions.getCommand";
468
+ readonly subscribeCommand: "org.permissions.subscribeCommand";
382
469
  readonly list: "org.permissions.list";
383
470
  readonly replace: "org.permissions.replace";
471
+ readonly previewReplacement: "org.permissions.previewReplacement";
384
472
  readonly revoke: "org.permissions.revoke";
385
473
  };
386
474
  readonly payments: {
475
+ readonly get: "org.payments.get";
476
+ readonly list: "org.payments.list";
387
477
  readonly pay: "org.payments.pay";
388
478
  readonly payBatch: "org.payments.payBatch";
479
+ readonly previewRetry: "org.payments.previewRetry";
480
+ readonly subscribe: "org.payments.subscribe";
389
481
  };
390
482
  readonly payroll: {
391
483
  readonly authorizeRun: "org.payroll.authorizeRun";
484
+ readonly getRun: "org.payroll.getRun";
485
+ readonly subscribeRun: "org.payroll.subscribeRun";
392
486
  readonly groups: {
393
487
  readonly list: "org.payroll.groups.list";
394
488
  readonly remove: "org.payroll.groups.remove";
@@ -428,7 +522,6 @@ declare const CAPXUL_OPERATIONS: {
428
522
  };
429
523
  readonly recordFailure: "org.recordFailure";
430
524
  readonly recordProgress: "org.recordProgress";
431
- readonly resendInviteToken: "org.resendInviteToken";
432
525
  readonly resumeBootstrapSubmission: "org.resumeBootstrapSubmission";
433
526
  readonly retry: "org.retry";
434
527
  readonly retrySetup: "org.retrySetup";
@@ -449,9 +542,6 @@ declare const CAPXUL_OPERATIONS: {
449
542
  readonly organizationSetup: {
450
543
  readonly getProofReceipt: "organizationSetup.getProofReceipt";
451
544
  };
452
- readonly organizations: {
453
- readonly detectAndAcceptPendingInvitations: "orgs.detectAndAcceptPendingInvitations";
454
- };
455
545
  readonly payments: {
456
546
  readonly cancel: "payments.cancel";
457
547
  readonly claim: "payments.claim";
@@ -466,8 +556,10 @@ declare const CAPXUL_OPERATIONS: {
466
556
  readonly retry: "payments.retry";
467
557
  readonly submitCommandExecution: "payments.submitCommandExecution";
468
558
  readonly submitExecution: "payments.submitExecution";
559
+ readonly subscribe: "payments.subscribe";
469
560
  };
470
561
  readonly paymentDocuments: {
562
+ readonly get: "paymentDocuments.get";
471
563
  readonly render: "paymentDocuments.render";
472
564
  readonly verify: "paymentDocuments.verify";
473
565
  };
@@ -476,6 +568,8 @@ declare const CAPXUL_OPERATIONS: {
476
568
  };
477
569
  readonly payroll: {
478
570
  readonly authorizeRun: "payroll.authorizeRun";
571
+ readonly getRun: "payroll.getRun";
572
+ readonly subscribeRun: "payroll.subscribeRun";
479
573
  readonly emitGroupChanged: "payroll.emitGroupChanged";
480
574
  readonly emitRunTransitioned: "payroll.emitRunTransitioned";
481
575
  readonly groups: {
@@ -490,6 +584,9 @@ declare const CAPXUL_OPERATIONS: {
490
584
  readonly terms: "payroll.terms";
491
585
  };
492
586
  readonly permission: {
587
+ readonly getCommand: "permission.getCommand";
588
+ readonly previewReplacement: "permission.previewReplacement";
589
+ readonly verifyInvitationConfiguration: "permission.verifyInvitationConfiguration";
493
590
  readonly command: "permission.command";
494
591
  readonly retryVerification: "permission.retryVerification";
495
592
  readonly verify: "permission.verify";
@@ -500,8 +597,11 @@ declare const CAPXUL_OPERATIONS: {
500
597
  readonly change: "permissions.change";
501
598
  readonly create: "permissions.create";
502
599
  readonly get: "permissions.get";
600
+ readonly getCommand: "permissions.getCommand";
601
+ readonly subscribeCommand: "permissions.subscribeCommand";
503
602
  readonly list: "permissions.list";
504
603
  readonly prepareExecution: "permissions.prepareExecution";
604
+ readonly previewReplacement: "permissions.previewReplacement";
505
605
  readonly replace: "permissions.replace";
506
606
  readonly revoke: "permissions.revoke";
507
607
  readonly submitExecution: "permissions.submitExecution";
@@ -612,7 +712,7 @@ interface TelemetryPort {
612
712
  }
613
713
  //#endregion
614
714
  //#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"];
715
+ 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
716
  type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
617
717
  type NonEmptyTelemetryEventNames = readonly [TelemetryEventName, ...TelemetryEventName[]];
618
718
  type FunnelStepPropertyFilter = {
@@ -959,6 +1059,81 @@ declare const AuthSignedOutTelemetryEventSchema: Schema.Struct<{
959
1059
  sdk_version: Schema.optional<Schema.String>;
960
1060
  }>;
961
1061
  }>;
1062
+ declare const NativeAuthorizationStartedTelemetryEventSchema: Schema.Struct<{
1063
+ readonly name: Schema.Literal<"native_authorization_started">;
1064
+ readonly props: Schema.Struct<{
1065
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1066
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1067
+ readonly journey_id: Schema.optional<Schema.String>;
1068
+ readonly correlation_id: Schema.optional<Schema.String>;
1069
+ readonly sdk_version: Schema.optional<Schema.String>;
1070
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1071
+ }>;
1072
+ }>;
1073
+ declare const NativeAuthorizationReviewedTelemetryEventSchema: Schema.Struct<{
1074
+ readonly name: Schema.Literal<"native_authorization_reviewed">;
1075
+ readonly props: Schema.Struct<{
1076
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1077
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1078
+ readonly journey_id: Schema.optional<Schema.String>;
1079
+ readonly correlation_id: Schema.optional<Schema.String>;
1080
+ readonly sdk_version: Schema.optional<Schema.String>;
1081
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1082
+ }>;
1083
+ }>;
1084
+ declare const NativeAuthorizationAcceptedTelemetryEventSchema: Schema.Struct<{
1085
+ readonly name: Schema.Literal<"native_authorization_accepted">;
1086
+ readonly props: Schema.Struct<{
1087
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1088
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1089
+ readonly journey_id: Schema.optional<Schema.String>;
1090
+ readonly correlation_id: Schema.optional<Schema.String>;
1091
+ readonly sdk_version: Schema.optional<Schema.String>;
1092
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1093
+ /** Whether consent also had to finish account setup first. */
1094
+ readonly setup_state: Schema.optional<Schema.Literals<readonly ["not_required", "new", "resumable"]>>;
1095
+ }>;
1096
+ }>;
1097
+ declare const NativeAuthorizationDeniedTelemetryEventSchema: Schema.Struct<{
1098
+ readonly name: Schema.Literal<"native_authorization_denied">;
1099
+ readonly props: Schema.Struct<{
1100
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1101
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1102
+ readonly journey_id: Schema.optional<Schema.String>;
1103
+ readonly correlation_id: Schema.optional<Schema.String>;
1104
+ readonly sdk_version: Schema.optional<Schema.String>;
1105
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1106
+ }>;
1107
+ }>;
1108
+ declare const NativeAuthorizationConnectedTelemetryEventSchema: Schema.Struct<{
1109
+ readonly name: Schema.Literal<"native_authorization_connected">;
1110
+ readonly props: Schema.Struct<{
1111
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1112
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1113
+ readonly journey_id: Schema.optional<Schema.String>;
1114
+ readonly correlation_id: Schema.optional<Schema.String>;
1115
+ readonly sdk_version: Schema.optional<Schema.String>;
1116
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1117
+ }>;
1118
+ }>;
1119
+ declare const NativeAuthorizationFailedTelemetryEventSchema: Schema.Struct<{
1120
+ readonly name: Schema.Literal<"native_authorization_failed">;
1121
+ readonly props: Schema.Struct<{
1122
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1123
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1124
+ readonly journey_id: Schema.optional<Schema.String>;
1125
+ readonly correlation_id: Schema.optional<Schema.String>;
1126
+ readonly sdk_version: Schema.optional<Schema.String>;
1127
+ readonly mode: Schema.optional<Schema.Literals<readonly ["login", "signup"]>>;
1128
+ /** The refusal word the store returned, for example `identity_mismatch` or
1129
+ * `request_expired`. These are the closed `CLIENT_AUTHORIZATION_REFUSALS` from
1130
+ * `@capxul/wire` plus the store-internal `fresh_session_required` (ruling R3),
1131
+ * which the continuation maps to `identity_mismatch` on the wire but reports
1132
+ * truthfully here. Kept as `OptionalString` rather than an imported literal
1133
+ * set: this package must not depend on the transport contract. */
1134
+ readonly reason: Schema.optional<Schema.String>;
1135
+ }>;
1136
+ }>;
962
1137
  declare const OnboardingIntentSelectedTelemetryEventSchema: Schema.Struct<{
963
1138
  readonly name: Schema.Literal<"onboarding_intent_selected">;
964
1139
  readonly props: Schema.Struct<{
@@ -1166,6 +1341,7 @@ declare const OrganizationCreationStartedTelemetryEventSchema: Schema.Struct<{
1166
1341
  readonly $insert_id: Schema.String;
1167
1342
  readonly organization_id: Schema.Codec<string, string, never, never>;
1168
1343
  readonly attempt_number: Schema.refine<number, Schema.Number>;
1344
+ readonly release: Schema.optional<Schema.String>;
1169
1345
  }>;
1170
1346
  }>;
1171
1347
  declare const OrganizationCreationReadyTelemetryEventSchema: Schema.Struct<{
@@ -1180,6 +1356,7 @@ declare const OrganizationCreationReadyTelemetryEventSchema: Schema.Struct<{
1180
1356
  readonly organization_id: Schema.Codec<string, string, never, never>;
1181
1357
  readonly attempt_number: Schema.refine<number, Schema.Number>;
1182
1358
  readonly duration_ms: Schema.Codec<DurationMs, number, never, never>;
1359
+ readonly release: Schema.optional<Schema.String>;
1183
1360
  }>;
1184
1361
  }>;
1185
1362
  declare const OrganizationCreationFailedTelemetryEventSchema: Schema.Struct<{
@@ -1223,9 +1400,10 @@ declare const OrganizationCreationFailedTelemetryEventSchema: Schema.Struct<{
1223
1400
  readonly stage: Schema.Literals<readonly ["profile", "accountProvisioning", "accountClaim", "preparingFounderAccount", "awaitingFounderAuthorization", "submittingBootstrap", "confirmingBootstrap"]>;
1224
1401
  readonly error_code: Schema.String;
1225
1402
  readonly retryable: Schema.Boolean;
1403
+ readonly release: Schema.optional<Schema.String>;
1226
1404
  /** #1655: the SDK's backoff before this attempt. Absent on the first attempt. */
1227
1405
  readonly backoff_ms: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1228
- readonly failure_reason: Schema.optional<Schema.Literals<readonly ["deterministic_address_mismatch", "receipt_provider_unavailable", "receipt_mismatch", "block_provider_unavailable", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch"]>>;
1406
+ readonly failure_reason: Schema.optional<Schema.Literals<readonly ["receipt_provider_unavailable", "block_provider_unavailable", "submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>>;
1229
1407
  }>;
1230
1408
  }>;
1231
1409
  declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
@@ -1240,6 +1418,7 @@ declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
1240
1418
  readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
1241
1419
  readonly chain_id: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1242
1420
  readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1421
+ readonly asset_id: Schema.optional<Schema.String>;
1243
1422
  readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1244
1423
  readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1245
1424
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
@@ -1293,6 +1472,7 @@ declare const FaucetRequestedTelemetryEventSchema: Schema.Struct<{
1293
1472
  readonly sdk_version: Schema.optional<Schema.String>;
1294
1473
  readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1295
1474
  readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1475
+ readonly asset_id: Schema.optional<Schema.String>;
1296
1476
  }>;
1297
1477
  }>;
1298
1478
  declare const FaucetConfirmedTelemetryEventSchema: Schema.Struct<{
@@ -1306,6 +1486,8 @@ declare const FaucetConfirmedTelemetryEventSchema: Schema.Struct<{
1306
1486
  readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1307
1487
  readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1308
1488
  readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
1489
+ readonly asset_id: Schema.optional<Schema.String>;
1490
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1309
1491
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1310
1492
  }>;
1311
1493
  }>;
@@ -1345,6 +1527,10 @@ declare const FaucetFailedTelemetryEventSchema: Schema.Struct<{
1345
1527
  readonly server: Schema.optional<Schema.String>;
1346
1528
  }>>;
1347
1529
  readonly reason: Schema.optional<Schema.String>;
1530
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1531
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1532
+ readonly asset_id: Schema.optional<Schema.String>;
1533
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1348
1534
  }>;
1349
1535
  }>;
1350
1536
  declare const ChainUpstreamFallbackTelemetryEventSchema: Schema.Struct<{
@@ -1540,6 +1726,11 @@ declare const OrgInviteSentTelemetryEventSchema: Schema.Struct<{
1540
1726
  readonly correlation_id: Schema.optional<Schema.String>;
1541
1727
  readonly sdk_version: Schema.optional<Schema.String>;
1542
1728
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1729
+ readonly invitation_id: Schema.optional<Schema.String>;
1730
+ readonly generation: Schema.optional<Schema.String>;
1731
+ readonly command_id: Schema.optional<Schema.String>;
1732
+ readonly subject_party_id: Schema.optional<Schema.String>;
1733
+ readonly persisted_at: Schema.optional<Schema.Codec<EpochMs, number, never, never>>;
1543
1734
  readonly email_domain: Schema.optional<Schema.String>;
1544
1735
  readonly role: Schema.optional<Schema.String>;
1545
1736
  readonly status: Schema.optional<Schema.String>;
@@ -1554,6 +1745,11 @@ declare const OrgInviteAcceptedTelemetryEventSchema: Schema.Struct<{
1554
1745
  readonly correlation_id: Schema.optional<Schema.String>;
1555
1746
  readonly sdk_version: Schema.optional<Schema.String>;
1556
1747
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1748
+ readonly invitation_id: Schema.optional<Schema.String>;
1749
+ readonly accepted_at: Schema.optional<Schema.Codec<EpochMs, number, never, never>>;
1750
+ readonly generation: Schema.optional<Schema.String>;
1751
+ readonly command_id: Schema.optional<Schema.String>;
1752
+ readonly subject_party_id: Schema.optional<Schema.String>;
1557
1753
  readonly role: Schema.optional<Schema.String>;
1558
1754
  readonly status: Schema.optional<Schema.String>;
1559
1755
  }>;
@@ -1568,6 +1764,7 @@ declare const OrgInviteExpiredTelemetryEventSchema: Schema.Struct<{
1568
1764
  readonly sdk_version: Schema.optional<Schema.String>;
1569
1765
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1570
1766
  readonly email_domain: Schema.optional<Schema.String>;
1767
+ readonly invitation_id: Schema.optional<Schema.String>;
1571
1768
  readonly reason: Schema.optional<Schema.String>;
1572
1769
  readonly role: Schema.optional<Schema.String>;
1573
1770
  readonly status: Schema.optional<Schema.String>;
@@ -1823,8 +2020,13 @@ declare const PermissionMirrorVerificationTelemetryEventSchema: Schema.Struct<{
1823
2020
  * actually returned, and which command it was, without either fact rewriting
1824
2021
  * the receipt outcome above. Absent when application has not happened yet.
1825
2022
  */
1826
- readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch"]>>;
2023
+ readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch", "cleanup_required", "not_applied", "application_failure", "mismatch", "refused"]>>;
2024
+ readonly command_kind: Schema.optional<Schema.Literals<readonly ["invitation_configuration", "invitation_eoa"]>>;
1827
2025
  readonly command_id: Schema.optional<Schema.String>;
2026
+ readonly invitation_id: Schema.optional<Schema.String>;
2027
+ readonly generation: Schema.optional<Schema.String>;
2028
+ readonly purpose: Schema.optional<Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>>;
2029
+ readonly $insert_id: Schema.optional<Schema.String>;
1828
2030
  /**
1829
2031
  * #1961 R03. The authorized stored row names the Permission it changed; the
1830
2032
  * verified receipt names the chain facts that prove it. Every field is
@@ -1924,6 +2126,99 @@ declare const ContactRelationshipChangedTelemetryEventSchema: Schema.Struct<{
1924
2126
  }>;
1925
2127
  }>;
1926
2128
  /** One completed online CLI diagnostic. No command input or provider text. */
2129
+ declare const CLI_COMMAND_NAMES: readonly ["status", "request", "request.list", "request.get", "request.cancel", "offer", "offer.create", "offer.list", "offer.get", "offer.revise", "offer.deactivate", "org.offer", "org.offer.create", "org.offer.list", "org.offer.get", "org.offer.revise", "org.offer.deactivate", "request.issue", "inbox", "inbox.list", "inbox.get", "inbox.pay", "inbox.decline", "org.request", "org.request.list", "org.request.get", "org.request.cancel", "org.request.issue", "org.inbox", "org.inbox.list", "org.inbox.get", "org.inbox.pay", "org.inbox.decline", "capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "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"];
2130
+ declare const CLI_CAPABILITIES: readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"];
2131
+ declare const CLI_INVOCATION_KINDS: readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"];
2132
+ type CliCommandName = (typeof CLI_COMMAND_NAMES)[number];
2133
+ type CliCapability = (typeof CLI_CAPABILITIES)[number];
2134
+ type CliInvocationKind = (typeof CLI_INVOCATION_KINDS)[number];
2135
+ declare const CliFirstUsedTelemetryEventSchema: Schema.Struct<{
2136
+ readonly name: Schema.Literal<"cli_first_used">;
2137
+ readonly props: Schema.Struct<{
2138
+ capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2139
+ producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2140
+ journey_id: Schema.optional<Schema.String>;
2141
+ correlation_id: Schema.optional<Schema.String>;
2142
+ schema_version: Schema.Literal<1>;
2143
+ command: Schema.Literals<readonly ["status", "request", "request.list", "request.get", "request.cancel", "offer", "offer.create", "offer.list", "offer.get", "offer.revise", "offer.deactivate", "org.offer", "org.offer.create", "org.offer.list", "org.offer.get", "org.offer.revise", "org.offer.deactivate", "request.issue", "inbox", "inbox.list", "inbox.get", "inbox.pay", "inbox.decline", "org.request", "org.request.list", "org.request.get", "org.request.cancel", "org.request.issue", "org.inbox", "org.inbox.list", "org.inbox.get", "org.inbox.pay", "org.inbox.decline", "capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "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
+ capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"]>;
2145
+ invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2146
+ invocation_id: Schema.String;
2147
+ cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2148
+ anonymous_id: Schema.optional<Schema.String>;
2149
+ auth_user_id: Schema.optional<Schema.String>;
2150
+ occurred_at: Schema.Number;
2151
+ cli_version: Schema.String;
2152
+ sdk_version: Schema.String;
2153
+ release: Schema.String;
2154
+ platform: Schema.Literals<readonly ["darwin", "linux", "unknown"]>;
2155
+ architecture: Schema.Literals<readonly ["arm64", "x64", "unknown"]>;
2156
+ ci: Schema.Boolean;
2157
+ tty: Schema.Boolean;
2158
+ output_mode: Schema.Literals<readonly ["human", "json"]>;
2159
+ }>;
2160
+ }>;
2161
+ declare const CliCommandStartedTelemetryEventSchema: Schema.Struct<{
2162
+ readonly name: Schema.Literal<"cli_command_started">;
2163
+ readonly props: Schema.Struct<{
2164
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2165
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2166
+ readonly journey_id: Schema.optional<Schema.String>;
2167
+ readonly correlation_id: Schema.optional<Schema.String>;
2168
+ readonly schema_version: Schema.Literal<1>;
2169
+ readonly command: Schema.Literals<readonly ["status", "request", "request.list", "request.get", "request.cancel", "offer", "offer.create", "offer.list", "offer.get", "offer.revise", "offer.deactivate", "org.offer", "org.offer.create", "org.offer.list", "org.offer.get", "org.offer.revise", "org.offer.deactivate", "request.issue", "inbox", "inbox.list", "inbox.get", "inbox.pay", "inbox.decline", "org.request", "org.request.list", "org.request.get", "org.request.cancel", "org.request.issue", "org.inbox", "org.inbox.list", "org.inbox.get", "org.inbox.pay", "org.inbox.decline", "capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "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"]>;
2170
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"]>;
2171
+ readonly invocation_id: Schema.String;
2172
+ readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2173
+ readonly anonymous_id: Schema.optional<Schema.String>;
2174
+ readonly auth_user_id: Schema.optional<Schema.String>;
2175
+ readonly occurred_at: Schema.Number;
2176
+ readonly cli_version: Schema.String;
2177
+ readonly sdk_version: Schema.String;
2178
+ readonly release: Schema.String;
2179
+ readonly platform: Schema.Literals<readonly ["darwin", "linux", "unknown"]>;
2180
+ readonly architecture: Schema.Literals<readonly ["arm64", "x64", "unknown"]>;
2181
+ readonly ci: Schema.Boolean;
2182
+ readonly tty: Schema.Boolean;
2183
+ readonly output_mode: Schema.Literals<readonly ["human", "json"]>;
2184
+ readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version"]>;
2185
+ }>;
2186
+ }>;
2187
+ declare const CliCommandCompletedTelemetryEventSchema: Schema.Struct<{
2188
+ readonly name: Schema.Literal<"cli_command_completed">;
2189
+ readonly props: Schema.Struct<{
2190
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2191
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2192
+ readonly journey_id: Schema.optional<Schema.String>;
2193
+ readonly correlation_id: Schema.optional<Schema.String>;
2194
+ readonly schema_version: Schema.Literal<1>;
2195
+ readonly command: Schema.Literals<readonly ["status", "request", "request.list", "request.get", "request.cancel", "offer", "offer.create", "offer.list", "offer.get", "offer.revise", "offer.deactivate", "org.offer", "org.offer.create", "org.offer.list", "org.offer.get", "org.offer.revise", "org.offer.deactivate", "request.issue", "inbox", "inbox.list", "inbox.get", "inbox.pay", "inbox.decline", "org.request", "org.request.list", "org.request.get", "org.request.cancel", "org.request.issue", "org.inbox", "org.inbox.list", "org.inbox.get", "org.inbox.pay", "org.inbox.decline", "capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "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"]>;
2196
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"]>;
2197
+ readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2198
+ readonly invocation_id: Schema.String;
2199
+ readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2200
+ readonly anonymous_id: Schema.optional<Schema.String>;
2201
+ readonly auth_user_id: Schema.optional<Schema.String>;
2202
+ readonly occurred_at: Schema.Number;
2203
+ readonly cli_version: Schema.String;
2204
+ readonly sdk_version: Schema.String;
2205
+ readonly release: Schema.String;
2206
+ readonly platform: Schema.Literals<readonly ["darwin", "linux", "unknown"]>;
2207
+ readonly architecture: Schema.Literals<readonly ["arm64", "x64", "unknown"]>;
2208
+ readonly ci: Schema.Boolean;
2209
+ readonly tty: Schema.Boolean;
2210
+ readonly output_mode: Schema.Literals<readonly ["human", "json"]>;
2211
+ readonly outcome: Schema.Literals<readonly ["succeeded", "refused", "failed", "cancelled"]>;
2212
+ readonly duration_ms: Schema.Number;
2213
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2214
+ readonly setup_status: Schema.optional<Schema.Literals<readonly ["awaitingAuthorization", "processing", "needsAttention", "ready", "rechecking", "failed"]>>;
2215
+ readonly setup_reason: Schema.optional<Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>>;
2216
+ readonly $groups: Schema.optional<Schema.Struct<{
2217
+ readonly organization: Schema.Codec<string, string, never, never>;
2218
+ }>>;
2219
+ 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", "CLI_DEADLINE"]>>;
2220
+ }>;
2221
+ }>;
1927
2222
  declare const CliDiagnosticCompletedTelemetryEventSchema: Schema.Struct<{
1928
2223
  readonly name: Schema.Literal<"cli_diagnostic_completed">;
1929
2224
  readonly props: Schema.Struct<{
@@ -2149,9 +2444,12 @@ declare const OrgInviteProgressedTelemetryEventSchema: Schema.Struct<{
2149
2444
  readonly correlation_id: Schema.optional<Schema.String>;
2150
2445
  readonly sdk_version: Schema.optional<Schema.String>;
2151
2446
  readonly organization_id: Schema.Codec<string, string, never, never>;
2152
- readonly progress: Schema.Literals<readonly ["account_ready", "permission_applied", "membership_activated", "revoked"]>;
2447
+ readonly progress: Schema.Literals<readonly ["configuration_authorized", "account_ready", "permission_applied", "membership_activated", "revoked"]>;
2153
2448
  /** The invited Party. The initiating actor stays on the envelope's identity. */
2154
2449
  readonly member_party_id: Schema.String;
2450
+ readonly invitation_id: Schema.optional<Schema.String>;
2451
+ readonly generation: Schema.optional<Schema.String>;
2452
+ readonly command_id: Schema.optional<Schema.String>;
2155
2453
  readonly occurred_at: Schema.Number;
2156
2454
  }>;
2157
2455
  }>;
@@ -2350,9 +2648,12 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2350
2648
  readonly correlation_id: Schema.optional<Schema.String>;
2351
2649
  readonly sdk_version: Schema.optional<Schema.String>;
2352
2650
  readonly organization_id: Schema.Codec<string, string, never, never>;
2353
- readonly progress: Schema.Literals<readonly ["account_ready", "permission_applied", "membership_activated", "revoked"]>;
2651
+ readonly progress: Schema.Literals<readonly ["configuration_authorized", "account_ready", "permission_applied", "membership_activated", "revoked"]>;
2354
2652
  /** The invited Party. The initiating actor stays on the envelope's identity. */
2355
2653
  readonly member_party_id: Schema.String;
2654
+ readonly invitation_id: Schema.optional<Schema.String>;
2655
+ readonly generation: Schema.optional<Schema.String>;
2656
+ readonly command_id: Schema.optional<Schema.String>;
2356
2657
  readonly occurred_at: Schema.Number;
2357
2658
  }>;
2358
2659
  }>;
@@ -2532,6 +2833,93 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2532
2833
  readonly cli_version: Schema.String;
2533
2834
  }>;
2534
2835
  }>;
2836
+ readonly cli_first_used: Schema.Struct<{
2837
+ readonly name: Schema.Literal<"cli_first_used">;
2838
+ readonly props: Schema.Struct<{
2839
+ capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2840
+ producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2841
+ journey_id: Schema.optional<Schema.String>;
2842
+ correlation_id: Schema.optional<Schema.String>;
2843
+ schema_version: Schema.Literal<1>;
2844
+ command: Schema.Literals<readonly ["status", "request", "request.list", "request.get", "request.cancel", "offer", "offer.create", "offer.list", "offer.get", "offer.revise", "offer.deactivate", "org.offer", "org.offer.create", "org.offer.list", "org.offer.get", "org.offer.revise", "org.offer.deactivate", "request.issue", "inbox", "inbox.list", "inbox.get", "inbox.pay", "inbox.decline", "org.request", "org.request.list", "org.request.get", "org.request.cancel", "org.request.issue", "org.inbox", "org.inbox.list", "org.inbox.get", "org.inbox.pay", "org.inbox.decline", "capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "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"]>;
2845
+ capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"]>;
2846
+ invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2847
+ invocation_id: Schema.String;
2848
+ cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2849
+ anonymous_id: Schema.optional<Schema.String>;
2850
+ auth_user_id: Schema.optional<Schema.String>;
2851
+ occurred_at: Schema.Number;
2852
+ cli_version: Schema.String;
2853
+ sdk_version: Schema.String;
2854
+ release: Schema.String;
2855
+ platform: Schema.Literals<readonly ["darwin", "linux", "unknown"]>;
2856
+ architecture: Schema.Literals<readonly ["arm64", "x64", "unknown"]>;
2857
+ ci: Schema.Boolean;
2858
+ tty: Schema.Boolean;
2859
+ output_mode: Schema.Literals<readonly ["human", "json"]>;
2860
+ }>;
2861
+ }>;
2862
+ readonly cli_command_started: Schema.Struct<{
2863
+ readonly name: Schema.Literal<"cli_command_started">;
2864
+ readonly props: Schema.Struct<{
2865
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2866
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2867
+ readonly journey_id: Schema.optional<Schema.String>;
2868
+ readonly correlation_id: Schema.optional<Schema.String>;
2869
+ readonly schema_version: Schema.Literal<1>;
2870
+ readonly command: Schema.Literals<readonly ["status", "request", "request.list", "request.get", "request.cancel", "offer", "offer.create", "offer.list", "offer.get", "offer.revise", "offer.deactivate", "org.offer", "org.offer.create", "org.offer.list", "org.offer.get", "org.offer.revise", "org.offer.deactivate", "request.issue", "inbox", "inbox.list", "inbox.get", "inbox.pay", "inbox.decline", "org.request", "org.request.list", "org.request.get", "org.request.cancel", "org.request.issue", "org.inbox", "org.inbox.list", "org.inbox.get", "org.inbox.pay", "org.inbox.decline", "capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "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"]>;
2871
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"]>;
2872
+ readonly invocation_id: Schema.String;
2873
+ readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2874
+ readonly anonymous_id: Schema.optional<Schema.String>;
2875
+ readonly auth_user_id: Schema.optional<Schema.String>;
2876
+ readonly occurred_at: Schema.Number;
2877
+ readonly cli_version: Schema.String;
2878
+ readonly sdk_version: Schema.String;
2879
+ readonly release: Schema.String;
2880
+ readonly platform: Schema.Literals<readonly ["darwin", "linux", "unknown"]>;
2881
+ readonly architecture: Schema.Literals<readonly ["arm64", "x64", "unknown"]>;
2882
+ readonly ci: Schema.Boolean;
2883
+ readonly tty: Schema.Boolean;
2884
+ readonly output_mode: Schema.Literals<readonly ["human", "json"]>;
2885
+ readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version"]>;
2886
+ }>;
2887
+ }>;
2888
+ readonly cli_command_completed: Schema.Struct<{
2889
+ readonly name: Schema.Literal<"cli_command_completed">;
2890
+ readonly props: Schema.Struct<{
2891
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2892
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2893
+ readonly journey_id: Schema.optional<Schema.String>;
2894
+ readonly correlation_id: Schema.optional<Schema.String>;
2895
+ readonly schema_version: Schema.Literal<1>;
2896
+ readonly command: Schema.Literals<readonly ["status", "request", "request.list", "request.get", "request.cancel", "offer", "offer.create", "offer.list", "offer.get", "offer.revise", "offer.deactivate", "org.offer", "org.offer.create", "org.offer.list", "org.offer.get", "org.offer.revise", "org.offer.deactivate", "request.issue", "inbox", "inbox.list", "inbox.get", "inbox.pay", "inbox.decline", "org.request", "org.request.list", "org.request.get", "org.request.cancel", "org.request.issue", "org.inbox", "org.inbox.list", "org.inbox.get", "org.inbox.pay", "org.inbox.decline", "capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "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"]>;
2897
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"]>;
2898
+ readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2899
+ readonly invocation_id: Schema.String;
2900
+ readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2901
+ readonly anonymous_id: Schema.optional<Schema.String>;
2902
+ readonly auth_user_id: Schema.optional<Schema.String>;
2903
+ readonly occurred_at: Schema.Number;
2904
+ readonly cli_version: Schema.String;
2905
+ readonly sdk_version: Schema.String;
2906
+ readonly release: Schema.String;
2907
+ readonly platform: Schema.Literals<readonly ["darwin", "linux", "unknown"]>;
2908
+ readonly architecture: Schema.Literals<readonly ["arm64", "x64", "unknown"]>;
2909
+ readonly ci: Schema.Boolean;
2910
+ readonly tty: Schema.Boolean;
2911
+ readonly output_mode: Schema.Literals<readonly ["human", "json"]>;
2912
+ readonly outcome: Schema.Literals<readonly ["succeeded", "refused", "failed", "cancelled"]>;
2913
+ readonly duration_ms: Schema.Number;
2914
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2915
+ readonly setup_status: Schema.optional<Schema.Literals<readonly ["awaitingAuthorization", "processing", "needsAttention", "ready", "rechecking", "failed"]>>;
2916
+ readonly setup_reason: Schema.optional<Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>>;
2917
+ readonly $groups: Schema.optional<Schema.Struct<{
2918
+ readonly organization: Schema.Codec<string, string, never, never>;
2919
+ }>>;
2920
+ 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", "CLI_DEADLINE"]>>;
2921
+ }>;
2922
+ }>;
2535
2923
  readonly activity_annotation_saved: Schema.Struct<{
2536
2924
  readonly name: Schema.Literal<"activity_annotation_saved">;
2537
2925
  readonly props: Schema.Struct<{
@@ -2751,6 +3139,81 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2751
3139
  sdk_version: Schema.optional<Schema.String>;
2752
3140
  }>;
2753
3141
  }>;
3142
+ readonly native_authorization_started: Schema.Struct<{
3143
+ readonly name: Schema.Literal<"native_authorization_started">;
3144
+ readonly props: Schema.Struct<{
3145
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3146
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3147
+ readonly journey_id: Schema.optional<Schema.String>;
3148
+ readonly correlation_id: Schema.optional<Schema.String>;
3149
+ readonly sdk_version: Schema.optional<Schema.String>;
3150
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3151
+ }>;
3152
+ }>;
3153
+ readonly native_authorization_reviewed: Schema.Struct<{
3154
+ readonly name: Schema.Literal<"native_authorization_reviewed">;
3155
+ readonly props: Schema.Struct<{
3156
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3157
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3158
+ readonly journey_id: Schema.optional<Schema.String>;
3159
+ readonly correlation_id: Schema.optional<Schema.String>;
3160
+ readonly sdk_version: Schema.optional<Schema.String>;
3161
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3162
+ }>;
3163
+ }>;
3164
+ readonly native_authorization_accepted: Schema.Struct<{
3165
+ readonly name: Schema.Literal<"native_authorization_accepted">;
3166
+ readonly props: Schema.Struct<{
3167
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3168
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3169
+ readonly journey_id: Schema.optional<Schema.String>;
3170
+ readonly correlation_id: Schema.optional<Schema.String>;
3171
+ readonly sdk_version: Schema.optional<Schema.String>;
3172
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3173
+ /** Whether consent also had to finish account setup first. */
3174
+ readonly setup_state: Schema.optional<Schema.Literals<readonly ["not_required", "new", "resumable"]>>;
3175
+ }>;
3176
+ }>;
3177
+ readonly native_authorization_denied: Schema.Struct<{
3178
+ readonly name: Schema.Literal<"native_authorization_denied">;
3179
+ readonly props: Schema.Struct<{
3180
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3181
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3182
+ readonly journey_id: Schema.optional<Schema.String>;
3183
+ readonly correlation_id: Schema.optional<Schema.String>;
3184
+ readonly sdk_version: Schema.optional<Schema.String>;
3185
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3186
+ }>;
3187
+ }>;
3188
+ readonly native_authorization_connected: Schema.Struct<{
3189
+ readonly name: Schema.Literal<"native_authorization_connected">;
3190
+ readonly props: Schema.Struct<{
3191
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3192
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3193
+ readonly journey_id: Schema.optional<Schema.String>;
3194
+ readonly correlation_id: Schema.optional<Schema.String>;
3195
+ readonly sdk_version: Schema.optional<Schema.String>;
3196
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3197
+ }>;
3198
+ }>;
3199
+ readonly native_authorization_failed: Schema.Struct<{
3200
+ readonly name: Schema.Literal<"native_authorization_failed">;
3201
+ readonly props: Schema.Struct<{
3202
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3203
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3204
+ readonly journey_id: Schema.optional<Schema.String>;
3205
+ readonly correlation_id: Schema.optional<Schema.String>;
3206
+ readonly sdk_version: Schema.optional<Schema.String>;
3207
+ readonly mode: Schema.optional<Schema.Literals<readonly ["login", "signup"]>>;
3208
+ /** The refusal word the store returned, for example `identity_mismatch` or
3209
+ * `request_expired`. These are the closed `CLIENT_AUTHORIZATION_REFUSALS` from
3210
+ * `@capxul/wire` plus the store-internal `fresh_session_required` (ruling R3),
3211
+ * which the continuation maps to `identity_mismatch` on the wire but reports
3212
+ * truthfully here. Kept as `OptionalString` rather than an imported literal
3213
+ * set: this package must not depend on the transport contract. */
3214
+ readonly reason: Schema.optional<Schema.String>;
3215
+ }>;
3216
+ }>;
2754
3217
  readonly onboarding_intent_selected: Schema.Struct<{
2755
3218
  readonly name: Schema.Literal<"onboarding_intent_selected">;
2756
3219
  readonly props: Schema.Struct<{
@@ -2958,6 +3421,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2958
3421
  readonly $insert_id: Schema.String;
2959
3422
  readonly organization_id: Schema.Codec<string, string, never, never>;
2960
3423
  readonly attempt_number: Schema.refine<number, Schema.Number>;
3424
+ readonly release: Schema.optional<Schema.String>;
2961
3425
  }>;
2962
3426
  }>;
2963
3427
  readonly organization_creation_ready: Schema.Struct<{
@@ -2972,6 +3436,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2972
3436
  readonly organization_id: Schema.Codec<string, string, never, never>;
2973
3437
  readonly attempt_number: Schema.refine<number, Schema.Number>;
2974
3438
  readonly duration_ms: Schema.Codec<DurationMs, number, never, never>;
3439
+ readonly release: Schema.optional<Schema.String>;
2975
3440
  }>;
2976
3441
  }>;
2977
3442
  readonly organization_creation_failed: Schema.Struct<{
@@ -3015,9 +3480,10 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3015
3480
  readonly stage: Schema.Literals<readonly ["profile", "accountProvisioning", "accountClaim", "preparingFounderAccount", "awaitingFounderAuthorization", "submittingBootstrap", "confirmingBootstrap"]>;
3016
3481
  readonly error_code: Schema.String;
3017
3482
  readonly retryable: Schema.Boolean;
3483
+ readonly release: Schema.optional<Schema.String>;
3018
3484
  /** #1655: the SDK's backoff before this attempt. Absent on the first attempt. */
3019
3485
  readonly backoff_ms: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
3020
- readonly failure_reason: Schema.optional<Schema.Literals<readonly ["deterministic_address_mismatch", "receipt_provider_unavailable", "receipt_mismatch", "block_provider_unavailable", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch"]>>;
3486
+ readonly failure_reason: Schema.optional<Schema.Literals<readonly ["receipt_provider_unavailable", "block_provider_unavailable", "submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>>;
3021
3487
  }>;
3022
3488
  }>;
3023
3489
  readonly account_balance_read: Schema.Struct<{
@@ -3032,6 +3498,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3032
3498
  readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
3033
3499
  readonly chain_id: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3034
3500
  readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
3501
+ readonly asset_id: Schema.optional<Schema.String>;
3035
3502
  readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
3036
3503
  readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
3037
3504
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
@@ -3085,6 +3552,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3085
3552
  readonly sdk_version: Schema.optional<Schema.String>;
3086
3553
  readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
3087
3554
  readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3555
+ readonly asset_id: Schema.optional<Schema.String>;
3088
3556
  }>;
3089
3557
  }>;
3090
3558
  readonly faucet_confirmed: Schema.Struct<{
@@ -3098,6 +3566,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3098
3566
  readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
3099
3567
  readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3100
3568
  readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
3569
+ readonly asset_id: Schema.optional<Schema.String>;
3570
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
3101
3571
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
3102
3572
  }>;
3103
3573
  }>;
@@ -3137,6 +3607,10 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3137
3607
  readonly server: Schema.optional<Schema.String>;
3138
3608
  }>>;
3139
3609
  readonly reason: Schema.optional<Schema.String>;
3610
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
3611
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3612
+ readonly asset_id: Schema.optional<Schema.String>;
3613
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
3140
3614
  }>;
3141
3615
  }>;
3142
3616
  readonly chain_upstream_fallback: Schema.Struct<{
@@ -3332,6 +3806,11 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3332
3806
  readonly correlation_id: Schema.optional<Schema.String>;
3333
3807
  readonly sdk_version: Schema.optional<Schema.String>;
3334
3808
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
3809
+ readonly invitation_id: Schema.optional<Schema.String>;
3810
+ readonly generation: Schema.optional<Schema.String>;
3811
+ readonly command_id: Schema.optional<Schema.String>;
3812
+ readonly subject_party_id: Schema.optional<Schema.String>;
3813
+ readonly persisted_at: Schema.optional<Schema.Codec<EpochMs, number, never, never>>;
3335
3814
  readonly email_domain: Schema.optional<Schema.String>;
3336
3815
  readonly role: Schema.optional<Schema.String>;
3337
3816
  readonly status: Schema.optional<Schema.String>;
@@ -3346,6 +3825,11 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3346
3825
  readonly correlation_id: Schema.optional<Schema.String>;
3347
3826
  readonly sdk_version: Schema.optional<Schema.String>;
3348
3827
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
3828
+ readonly invitation_id: Schema.optional<Schema.String>;
3829
+ readonly accepted_at: Schema.optional<Schema.Codec<EpochMs, number, never, never>>;
3830
+ readonly generation: Schema.optional<Schema.String>;
3831
+ readonly command_id: Schema.optional<Schema.String>;
3832
+ readonly subject_party_id: Schema.optional<Schema.String>;
3349
3833
  readonly role: Schema.optional<Schema.String>;
3350
3834
  readonly status: Schema.optional<Schema.String>;
3351
3835
  }>;
@@ -3360,6 +3844,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3360
3844
  readonly sdk_version: Schema.optional<Schema.String>;
3361
3845
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
3362
3846
  readonly email_domain: Schema.optional<Schema.String>;
3847
+ readonly invitation_id: Schema.optional<Schema.String>;
3363
3848
  readonly reason: Schema.optional<Schema.String>;
3364
3849
  readonly role: Schema.optional<Schema.String>;
3365
3850
  readonly status: Schema.optional<Schema.String>;
@@ -3615,8 +4100,13 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3615
4100
  * actually returned, and which command it was, without either fact rewriting
3616
4101
  * the receipt outcome above. Absent when application has not happened yet.
3617
4102
  */
3618
- readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch"]>>;
4103
+ readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch", "cleanup_required", "not_applied", "application_failure", "mismatch", "refused"]>>;
4104
+ readonly command_kind: Schema.optional<Schema.Literals<readonly ["invitation_configuration", "invitation_eoa"]>>;
3619
4105
  readonly command_id: Schema.optional<Schema.String>;
4106
+ readonly invitation_id: Schema.optional<Schema.String>;
4107
+ readonly generation: Schema.optional<Schema.String>;
4108
+ readonly purpose: Schema.optional<Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>>;
4109
+ readonly $insert_id: Schema.optional<Schema.String>;
3620
4110
  /**
3621
4111
  * #1961 R03. The authorized stored row names the Permission it changed; the
3622
4112
  * verified receipt names the chain facts that prove it. Every field is
@@ -3934,4 +4424,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
3934
4424
  reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
3935
4425
  }
3936
4426
  //#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 };
4427
+ 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 };