@capxul/observability 4.20.0-beta.6 → 4.20.0-beta.7

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.
@@ -1,4 +1,4 @@
1
- import { _ as CLI_COMMAND_NAMES, cn as CAPXUL_ERROR_CODES, dn as redactSecrets, fn as redactUrlSecrets, g as CLI_CAPABILITIES, ln as FAILURE_MODES, on as isCapxulOperation, un as isCredentialField, v as CLI_INVOCATION_KINDS } from "./src-CQ3cNORQ.mjs";
1
+ import { _ as CLI_COMMAND_NAMES, cn as CAPXUL_ERROR_CODES, dn as redactSecrets, fn as redactUrlSecrets, g as CLI_CAPABILITIES, ln as FAILURE_MODES, on as isCapxulOperation, un as isCredentialField, v as CLI_INVOCATION_KINDS } from "./src-Dhf8f_EV.mjs";
2
2
  import { Cause, Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, LogLevel, Logger, Metric, Option, References, Schedule, Stream, Tracer } from "effect";
3
3
  import { FetchHttpClient, Headers, HttpBody, HttpClient, HttpClientError, HttpClientResponse } from "effect/unstable/http";
4
4
  import { OtlpExporter, OtlpLogger, OtlpMetrics, OtlpSerialization, OtlpTracer } from "effect/unstable/observability";
package/dist/index.d.mts CHANGED
@@ -346,10 +346,12 @@ declare const CAPXUL_OPERATIONS: {
346
346
  readonly prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution";
347
347
  readonly preparePaymentExecution: "moneyExecution.preparePaymentExecution";
348
348
  readonly preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution";
349
+ readonly prepareInvitationConfiguration: "moneyExecution.prepareInvitationConfiguration";
349
350
  readonly preparePermissionExecution: "moneyExecution.preparePermissionExecution";
350
351
  readonly recoverSubmissionClaims: "moneyExecution.recoverSubmissionClaims";
351
352
  readonly submit: "moneyExecution.submit";
352
353
  readonly submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution";
354
+ readonly submitInvitationConfigurationExecution: "moneyExecution.submitInvitationConfigurationExecution";
353
355
  readonly submitPaymentExecution: "moneyExecution.submitPaymentExecution";
354
356
  readonly submitPermissionExecution: "moneyExecution.submitPermissionExecution";
355
357
  };
@@ -371,22 +373,54 @@ declare const CAPXUL_OPERATIONS: {
371
373
  readonly completePerson: "onboarding.completePerson";
372
374
  };
373
375
  readonly org: {
374
- readonly acceptInvitations: "org.acceptInvitations";
375
376
  readonly account: {
376
377
  readonly get: "org.account.get";
377
378
  };
378
- readonly activateMember: "org.activateMember";
379
379
  readonly auditLog: "org.auditLog";
380
380
  readonly confirmBootstrap: "org.confirmBootstrap";
381
381
  readonly createOrg: "org.createOrg";
382
382
  readonly create: "org.create";
383
- 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";
384
389
  readonly emitInviteProgressed: "org.emitInviteProgressed";
385
390
  readonly expireInvitations: "org.expireInvitations";
386
391
  readonly getLifecycle: "org.getLifecycle";
387
392
  readonly getProofReceipt: "org.getProofReceipt";
388
393
  readonly invite: "org.invite";
389
- 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
+ };
390
424
  readonly list: "org.list";
391
425
  readonly load: "org.load";
392
426
  readonly me: "org.me";
@@ -447,7 +481,6 @@ declare const CAPXUL_OPERATIONS: {
447
481
  };
448
482
  readonly recordFailure: "org.recordFailure";
449
483
  readonly recordProgress: "org.recordProgress";
450
- readonly resendInviteToken: "org.resendInviteToken";
451
484
  readonly resumeBootstrapSubmission: "org.resumeBootstrapSubmission";
452
485
  readonly retry: "org.retry";
453
486
  readonly retrySetup: "org.retrySetup";
@@ -468,9 +501,6 @@ declare const CAPXUL_OPERATIONS: {
468
501
  readonly organizationSetup: {
469
502
  readonly getProofReceipt: "organizationSetup.getProofReceipt";
470
503
  };
471
- readonly organizations: {
472
- readonly detectAndAcceptPendingInvitations: "orgs.detectAndAcceptPendingInvitations";
473
- };
474
504
  readonly payments: {
475
505
  readonly cancel: "payments.cancel";
476
506
  readonly claim: "payments.claim";
@@ -510,6 +540,7 @@ declare const CAPXUL_OPERATIONS: {
510
540
  readonly terms: "payroll.terms";
511
541
  };
512
542
  readonly permission: {
543
+ readonly verifyInvitationConfiguration: "permission.verifyInvitationConfiguration";
513
544
  readonly command: "permission.command";
514
545
  readonly retryVerification: "permission.retryVerification";
515
546
  readonly verify: "permission.verify";
@@ -1643,6 +1674,11 @@ declare const OrgInviteSentTelemetryEventSchema: Schema.Struct<{
1643
1674
  readonly correlation_id: Schema.optional<Schema.String>;
1644
1675
  readonly sdk_version: Schema.optional<Schema.String>;
1645
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>>;
1646
1682
  readonly email_domain: Schema.optional<Schema.String>;
1647
1683
  readonly role: Schema.optional<Schema.String>;
1648
1684
  readonly status: Schema.optional<Schema.String>;
@@ -1657,6 +1693,11 @@ declare const OrgInviteAcceptedTelemetryEventSchema: Schema.Struct<{
1657
1693
  readonly correlation_id: Schema.optional<Schema.String>;
1658
1694
  readonly sdk_version: Schema.optional<Schema.String>;
1659
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>;
1660
1701
  readonly role: Schema.optional<Schema.String>;
1661
1702
  readonly status: Schema.optional<Schema.String>;
1662
1703
  }>;
@@ -1671,6 +1712,7 @@ declare const OrgInviteExpiredTelemetryEventSchema: Schema.Struct<{
1671
1712
  readonly sdk_version: Schema.optional<Schema.String>;
1672
1713
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1673
1714
  readonly email_domain: Schema.optional<Schema.String>;
1715
+ readonly invitation_id: Schema.optional<Schema.String>;
1674
1716
  readonly reason: Schema.optional<Schema.String>;
1675
1717
  readonly role: Schema.optional<Schema.String>;
1676
1718
  readonly status: Schema.optional<Schema.String>;
@@ -1926,8 +1968,13 @@ declare const PermissionMirrorVerificationTelemetryEventSchema: Schema.Struct<{
1926
1968
  * actually returned, and which command it was, without either fact rewriting
1927
1969
  * the receipt outcome above. Absent when application has not happened yet.
1928
1970
  */
1929
- 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"]>>;
1930
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>;
1931
1978
  /**
1932
1979
  * #1961 R03. The authorized stored row names the Permission it changed; the
1933
1980
  * verified receipt names the chain facts that prove it. Every field is
@@ -2027,8 +2074,8 @@ declare const ContactRelationshipChangedTelemetryEventSchema: Schema.Struct<{
2027
2074
  }>;
2028
2075
  }>;
2029
2076
  /** One completed online CLI diagnostic. No command input or provider text. */
2030
- 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", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"];
2031
- declare const CLI_CAPABILITIES: readonly ["cli", "diagnostics", "collection", "authentication", "organization"];
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"];
2032
2079
  declare const CLI_INVOCATION_KINDS: readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"];
2033
2080
  type CliCommandName = (typeof CLI_COMMAND_NAMES)[number];
2034
2081
  type CliCapability = (typeof CLI_CAPABILITIES)[number];
@@ -2041,8 +2088,8 @@ declare const CliFirstUsedTelemetryEventSchema: Schema.Struct<{
2041
2088
  journey_id: Schema.optional<Schema.String>;
2042
2089
  correlation_id: Schema.optional<Schema.String>;
2043
2090
  schema_version: Schema.Literal<1>;
2044
- 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", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"]>;
2045
- capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization"]>;
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"]>;
2046
2093
  invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2047
2094
  invocation_id: Schema.String;
2048
2095
  cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
@@ -2067,8 +2114,8 @@ declare const CliCommandStartedTelemetryEventSchema: Schema.Struct<{
2067
2114
  readonly journey_id: Schema.optional<Schema.String>;
2068
2115
  readonly correlation_id: Schema.optional<Schema.String>;
2069
2116
  readonly schema_version: Schema.Literal<1>;
2070
- 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", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"]>;
2071
- readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization"]>;
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"]>;
2072
2119
  readonly invocation_id: Schema.String;
2073
2120
  readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2074
2121
  readonly anonymous_id: Schema.optional<Schema.String>;
@@ -2093,8 +2140,8 @@ declare const CliCommandCompletedTelemetryEventSchema: Schema.Struct<{
2093
2140
  readonly journey_id: Schema.optional<Schema.String>;
2094
2141
  readonly correlation_id: Schema.optional<Schema.String>;
2095
2142
  readonly schema_version: Schema.Literal<1>;
2096
- 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", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"]>;
2097
- readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization"]>;
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"]>;
2098
2145
  readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2099
2146
  readonly invocation_id: Schema.String;
2100
2147
  readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
@@ -2339,9 +2386,12 @@ declare const OrgInviteProgressedTelemetryEventSchema: Schema.Struct<{
2339
2386
  readonly correlation_id: Schema.optional<Schema.String>;
2340
2387
  readonly sdk_version: Schema.optional<Schema.String>;
2341
2388
  readonly organization_id: Schema.Codec<string, string, never, never>;
2342
- 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"]>;
2343
2390
  /** The invited Party. The initiating actor stays on the envelope's identity. */
2344
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>;
2345
2395
  readonly occurred_at: Schema.Number;
2346
2396
  }>;
2347
2397
  }>;
@@ -2540,9 +2590,12 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2540
2590
  readonly correlation_id: Schema.optional<Schema.String>;
2541
2591
  readonly sdk_version: Schema.optional<Schema.String>;
2542
2592
  readonly organization_id: Schema.Codec<string, string, never, never>;
2543
- 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"]>;
2544
2594
  /** The invited Party. The initiating actor stays on the envelope's identity. */
2545
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>;
2546
2599
  readonly occurred_at: Schema.Number;
2547
2600
  }>;
2548
2601
  }>;
@@ -2730,8 +2783,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2730
2783
  journey_id: Schema.optional<Schema.String>;
2731
2784
  correlation_id: Schema.optional<Schema.String>;
2732
2785
  schema_version: Schema.Literal<1>;
2733
- 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", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"]>;
2734
- capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization"]>;
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"]>;
2735
2788
  invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2736
2789
  invocation_id: Schema.String;
2737
2790
  cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
@@ -2756,8 +2809,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2756
2809
  readonly journey_id: Schema.optional<Schema.String>;
2757
2810
  readonly correlation_id: Schema.optional<Schema.String>;
2758
2811
  readonly schema_version: Schema.Literal<1>;
2759
- 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", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"]>;
2760
- readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization"]>;
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"]>;
2761
2814
  readonly invocation_id: Schema.String;
2762
2815
  readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2763
2816
  readonly anonymous_id: Schema.optional<Schema.String>;
@@ -2782,8 +2835,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2782
2835
  readonly journey_id: Schema.optional<Schema.String>;
2783
2836
  readonly correlation_id: Schema.optional<Schema.String>;
2784
2837
  readonly schema_version: Schema.Literal<1>;
2785
- 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", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"]>;
2786
- readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization"]>;
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"]>;
2787
2840
  readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2788
2841
  readonly invocation_id: Schema.String;
2789
2842
  readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
@@ -3686,6 +3739,11 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3686
3739
  readonly correlation_id: Schema.optional<Schema.String>;
3687
3740
  readonly sdk_version: Schema.optional<Schema.String>;
3688
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>>;
3689
3747
  readonly email_domain: Schema.optional<Schema.String>;
3690
3748
  readonly role: Schema.optional<Schema.String>;
3691
3749
  readonly status: Schema.optional<Schema.String>;
@@ -3700,6 +3758,11 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3700
3758
  readonly correlation_id: Schema.optional<Schema.String>;
3701
3759
  readonly sdk_version: Schema.optional<Schema.String>;
3702
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>;
3703
3766
  readonly role: Schema.optional<Schema.String>;
3704
3767
  readonly status: Schema.optional<Schema.String>;
3705
3768
  }>;
@@ -3714,6 +3777,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3714
3777
  readonly sdk_version: Schema.optional<Schema.String>;
3715
3778
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
3716
3779
  readonly email_domain: Schema.optional<Schema.String>;
3780
+ readonly invitation_id: Schema.optional<Schema.String>;
3717
3781
  readonly reason: Schema.optional<Schema.String>;
3718
3782
  readonly role: Schema.optional<Schema.String>;
3719
3783
  readonly status: Schema.optional<Schema.String>;
@@ -3969,8 +4033,13 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3969
4033
  * actually returned, and which command it was, without either fact rewriting
3970
4034
  * the receipt outcome above. Absent when application has not happened yet.
3971
4035
  */
3972
- 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"]>>;
3973
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>;
3974
4043
  /**
3975
4044
  * #1961 R03. The authorized stored row names the Permission it changed; the
3976
4045
  * verified receipt names the chain facts that prove it. Every field is
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as OnboardingIntentSelectedTelemetryEventSchema, $t as redactTelemetryProps, A as FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, At as ReceiptPendingTelemetryEventSchema, B as MemberActivationFailedTelemetryEventSchema, Bt as UiContactActionCompletedTelemetryEventSchema, C as CliCommandCompletedTelemetryEventSchema, Ct as PayrollGroupChangedTelemetryEventSchema, D as ContactRelationshipChangedTelemetryEventSchema, Dt as ProvisioningSafeConfirmedTelemetryEventSchema, E as CliFirstUsedTelemetryEventSchema, Et as PostHogTelemetryAdapter, F as IdentityRefusedTelemetryEventSchema, Ft as TELEMETRY_EVENT_SCHEMAS, G as MovementScanWindowTelemetryEventSchema, Gt as createCapxulBeforeSend, H as MemberActivationStartedTelemetryEventSchema, Ht as UiPayrollActionCompletedTelemetryEventSchema, I as InMemoryTelemetryBusAdapter, It as TELEMETRY_JOURNEYS, J as NativeAuthorizationDeniedTelemetryEventSchema, Jt as initializeCapxulBrowserAnalytics, K as NativeAuthorizationAcceptedTelemetryEventSchema, Kt as createPostHogBrowserPageviewTracker, L as IndexerDriftCorrectedTelemetryEventSchema, Lt as TELEMETRY_PRODUCERS, M as FaucetConfirmedTelemetryEventSchema, Mt as ResponseHeadersSchema, N as FaucetFailedTelemetryEventSchema, Nt as SYNCABLE_CAPXUL_ENVS, O as DepositInitiatedTelemetryEventSchema, Ot as ProvisioningSafeCreatedTelemetryEventSchema, P as FaucetRequestedTelemetryEventSchema, Pt as TELEMETRY_EVENT_NAMES, Q as OnboardingDashboardReachedTelemetryEventSchema, Qt as redactTelemetryEvent, R as InvoiceIssuedTelemetryEventSchema, Rt as UiAccessStepCompletedTelemetryEventSchema, S as ChainUpstreamSchema, St as PaymentVerificationRetryTelemetryEventSchema, T as CliDiagnosticCompletedTelemetryEventSchema, Tt as PermissionMirrorVerificationTelemetryEventSchema, U as MovementScanCheckpointTelemetryEventSchema, Ut as UiReceiveStepCompletedTelemetryEventSchema, V as MemberActivationReadyTelemetryEventSchema, Vt as UiInvoiceStepCompletedTelemetryEventSchema, W as MovementScanIncidentTelemetryEventSchema, Wt as UiTreasuryStepCompletedTelemetryEventSchema, X as NativeAuthorizationReviewedTelemetryEventSchema, Xt as maskCapturedNetworkRequest, Y as NativeAuthorizationFailedTelemetryEventSchema, Yt as initializePostHogBrowserAnalytics, Z as NativeAuthorizationStartedTelemetryEventSchema, Zt as productAppAnalytics, _ as CLI_COMMAND_NAMES, _t as PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, a as AuthFailedTelemetryEventSchema, an as CAPXUL_OPERATIONS, at as OrgCreatedTelemetryEventSchema, b as ChainAttemptSchema, bt as PaymentLifecycleTransitionTelemetryEventSchema, c as AuthOtpRequestedTelemetryEventSchema, ct as OrgInviteProgressedTelemetryEventSchema, d as BROWSER_GATED_TELEMETRY_EVENTS, dt as OrgSafeConfirmedTelemetryEventSchema, en as sanitizePostHogBrowserEvent, et as OnboardingOrganizationSubmittedTelemetryEventSchema, f as BootstrapFailedTelemetryEventSchema, ft as OrgSafeCreatedTelemetryEventSchema, g as CLI_CAPABILITIES, gt as PII, h as CAPXUL_ENVS, ht as OrganizationCreationStartedTelemetryEventSchema, i as ActivityAnnotationSavedTelemetryEventSchema, in as utilityAppAnalytics, it as OrgCreateStartedTelemetryEventSchema, j as FailureModeSchema, jt as RecordingTelemetryAdapter, k as DepositSettledTelemetryEventSchema, kt as QuickPayExternalAddressAcknowledgedTelemetryEventSchema, l as AuthSignedOutTelemetryEventSchema, lt as OrgInviteSentTelemetryEventSchema, m as BundlerErrorTelemetryEventSchema, mt as OrganizationCreationReadyTelemetryEventSchema, n as AccountBalanceFailedTelemetryEventSchema, nn as stampTelemetryEnvelope, nt as OperationRetriedTelemetryEventSchema, o as AuthOtpDeliveredTelemetryEventSchema, on as isCapxulOperation, ot as OrgInviteAcceptedTelemetryEventSchema, p as BootstrapResolvedTelemetryEventSchema, pt as OrganizationCreationFailedTelemetryEventSchema, q as NativeAuthorizationConnectedTelemetryEventSchema, qt as getTrackHandler, r as AccountBalanceReadTelemetryEventSchema, rn as track, rt as OrgCreateFailedTelemetryEventSchema, s as AuthOtpExpiredTelemetryEventSchema, sn as normalizeCapxulOperation, st as OrgInviteExpiredTelemetryEventSchema, t as AccessRecoveryCompletedTelemetryEventSchema, tn as setTrackHandler, tt as OnboardingProfileSubmittedTelemetryEventSchema, u as AuthVerifiedTelemetryEventSchema, ut as OrgRolesSeededTelemetryEventSchema, v as CLI_INVOCATION_KINDS, vt as PaymentFailedTelemetryEventSchema, w as CliCommandStartedTelemetryEventSchema, wt as PayrollRunTransitionedTelemetryEventSchema, x as ChainUpstreamFallbackTelemetryEventSchema, xt as PaymentSettledTelemetryEventSchema, y as CONTRACT_FIRST_TELEMETRY_EVENTS, yt as PaymentInitiatedTelemetryEventSchema, z as InvoiceRequestTransitionedTelemetryEventSchema, zt as UiActivityActionCompletedTelemetryEventSchema } from "./src-CQ3cNORQ.mjs";
1
+ import { $ as OnboardingIntentSelectedTelemetryEventSchema, $t as redactTelemetryProps, A as FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, At as ReceiptPendingTelemetryEventSchema, B as MemberActivationFailedTelemetryEventSchema, Bt as UiContactActionCompletedTelemetryEventSchema, C as CliCommandCompletedTelemetryEventSchema, Ct as PayrollGroupChangedTelemetryEventSchema, D as ContactRelationshipChangedTelemetryEventSchema, Dt as ProvisioningSafeConfirmedTelemetryEventSchema, E as CliFirstUsedTelemetryEventSchema, Et as PostHogTelemetryAdapter, F as IdentityRefusedTelemetryEventSchema, Ft as TELEMETRY_EVENT_SCHEMAS, G as MovementScanWindowTelemetryEventSchema, Gt as createCapxulBeforeSend, H as MemberActivationStartedTelemetryEventSchema, Ht as UiPayrollActionCompletedTelemetryEventSchema, I as InMemoryTelemetryBusAdapter, It as TELEMETRY_JOURNEYS, J as NativeAuthorizationDeniedTelemetryEventSchema, Jt as initializeCapxulBrowserAnalytics, K as NativeAuthorizationAcceptedTelemetryEventSchema, Kt as createPostHogBrowserPageviewTracker, L as IndexerDriftCorrectedTelemetryEventSchema, Lt as TELEMETRY_PRODUCERS, M as FaucetConfirmedTelemetryEventSchema, Mt as ResponseHeadersSchema, N as FaucetFailedTelemetryEventSchema, Nt as SYNCABLE_CAPXUL_ENVS, O as DepositInitiatedTelemetryEventSchema, Ot as ProvisioningSafeCreatedTelemetryEventSchema, P as FaucetRequestedTelemetryEventSchema, Pt as TELEMETRY_EVENT_NAMES, Q as OnboardingDashboardReachedTelemetryEventSchema, Qt as redactTelemetryEvent, R as InvoiceIssuedTelemetryEventSchema, Rt as UiAccessStepCompletedTelemetryEventSchema, S as ChainUpstreamSchema, St as PaymentVerificationRetryTelemetryEventSchema, T as CliDiagnosticCompletedTelemetryEventSchema, Tt as PermissionMirrorVerificationTelemetryEventSchema, U as MovementScanCheckpointTelemetryEventSchema, Ut as UiReceiveStepCompletedTelemetryEventSchema, V as MemberActivationReadyTelemetryEventSchema, Vt as UiInvoiceStepCompletedTelemetryEventSchema, W as MovementScanIncidentTelemetryEventSchema, Wt as UiTreasuryStepCompletedTelemetryEventSchema, X as NativeAuthorizationReviewedTelemetryEventSchema, Xt as maskCapturedNetworkRequest, Y as NativeAuthorizationFailedTelemetryEventSchema, Yt as initializePostHogBrowserAnalytics, Z as NativeAuthorizationStartedTelemetryEventSchema, Zt as productAppAnalytics, _ as CLI_COMMAND_NAMES, _t as PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, a as AuthFailedTelemetryEventSchema, an as CAPXUL_OPERATIONS, at as OrgCreatedTelemetryEventSchema, b as ChainAttemptSchema, bt as PaymentLifecycleTransitionTelemetryEventSchema, c as AuthOtpRequestedTelemetryEventSchema, ct as OrgInviteProgressedTelemetryEventSchema, d as BROWSER_GATED_TELEMETRY_EVENTS, dt as OrgSafeConfirmedTelemetryEventSchema, en as sanitizePostHogBrowserEvent, et as OnboardingOrganizationSubmittedTelemetryEventSchema, f as BootstrapFailedTelemetryEventSchema, ft as OrgSafeCreatedTelemetryEventSchema, g as CLI_CAPABILITIES, gt as PII, h as CAPXUL_ENVS, ht as OrganizationCreationStartedTelemetryEventSchema, i as ActivityAnnotationSavedTelemetryEventSchema, in as utilityAppAnalytics, it as OrgCreateStartedTelemetryEventSchema, j as FailureModeSchema, jt as RecordingTelemetryAdapter, k as DepositSettledTelemetryEventSchema, kt as QuickPayExternalAddressAcknowledgedTelemetryEventSchema, l as AuthSignedOutTelemetryEventSchema, lt as OrgInviteSentTelemetryEventSchema, m as BundlerErrorTelemetryEventSchema, mt as OrganizationCreationReadyTelemetryEventSchema, n as AccountBalanceFailedTelemetryEventSchema, nn as stampTelemetryEnvelope, nt as OperationRetriedTelemetryEventSchema, o as AuthOtpDeliveredTelemetryEventSchema, on as isCapxulOperation, ot as OrgInviteAcceptedTelemetryEventSchema, p as BootstrapResolvedTelemetryEventSchema, pt as OrganizationCreationFailedTelemetryEventSchema, q as NativeAuthorizationConnectedTelemetryEventSchema, qt as getTrackHandler, r as AccountBalanceReadTelemetryEventSchema, rn as track, rt as OrgCreateFailedTelemetryEventSchema, s as AuthOtpExpiredTelemetryEventSchema, sn as normalizeCapxulOperation, st as OrgInviteExpiredTelemetryEventSchema, t as AccessRecoveryCompletedTelemetryEventSchema, tn as setTrackHandler, tt as OnboardingProfileSubmittedTelemetryEventSchema, u as AuthVerifiedTelemetryEventSchema, ut as OrgRolesSeededTelemetryEventSchema, v as CLI_INVOCATION_KINDS, vt as PaymentFailedTelemetryEventSchema, w as CliCommandStartedTelemetryEventSchema, wt as PayrollRunTransitionedTelemetryEventSchema, x as ChainUpstreamFallbackTelemetryEventSchema, xt as PaymentSettledTelemetryEventSchema, y as CONTRACT_FIRST_TELEMETRY_EVENTS, yt as PaymentInitiatedTelemetryEventSchema, z as InvoiceRequestTransitionedTelemetryEventSchema, zt as UiActivityActionCompletedTelemetryEventSchema } from "./src-Dhf8f_EV.mjs";
2
2
  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, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, CliCommandCompletedTelemetryEventSchema, CliCommandStartedTelemetryEventSchema, CliDiagnosticCompletedTelemetryEventSchema, CliFirstUsedTelemetryEventSchema, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NativeAuthorizationAcceptedTelemetryEventSchema, NativeAuthorizationConnectedTelemetryEventSchema, NativeAuthorizationDeniedTelemetryEventSchema, NativeAuthorizationFailedTelemetryEventSchema, NativeAuthorizationReviewedTelemetryEventSchema, NativeAuthorizationStartedTelemetryEventSchema, 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, PostHogTelemetryAdapter, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
@@ -558,10 +558,12 @@ const CAPXUL_OPERATIONS = {
558
558
  prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution",
559
559
  preparePaymentExecution: "moneyExecution.preparePaymentExecution",
560
560
  preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution",
561
+ prepareInvitationConfiguration: "moneyExecution.prepareInvitationConfiguration",
561
562
  preparePermissionExecution: "moneyExecution.preparePermissionExecution",
562
563
  recoverSubmissionClaims: "moneyExecution.recoverSubmissionClaims",
563
564
  submit: "moneyExecution.submit",
564
565
  submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution",
566
+ submitInvitationConfigurationExecution: "moneyExecution.submitInvitationConfigurationExecution",
565
567
  submitPaymentExecution: "moneyExecution.submitPaymentExecution",
566
568
  submitPermissionExecution: "moneyExecution.submitPermissionExecution"
567
569
  },
@@ -583,20 +585,52 @@ const CAPXUL_OPERATIONS = {
583
585
  completePerson: "onboarding.completePerson"
584
586
  },
585
587
  org: {
586
- acceptInvitations: "org.acceptInvitations",
587
588
  account: { get: "org.account.get" },
588
- activateMember: "org.activateMember",
589
589
  auditLog: "org.auditLog",
590
590
  confirmBootstrap: "org.confirmBootstrap",
591
591
  createOrg: "org.createOrg",
592
592
  create: "org.create",
593
- detectAndAcceptPendingInvitations: "org.detectAndAcceptPendingInvitations",
593
+ /**
594
+ * §11: the consent mutation reports `org_invite_accepted` through its own
595
+ * scheduled emitter. It is named for the emit, not the acceptance, because
596
+ * the interactive acceptance itself owns `org.invitations.accept`.
597
+ */
598
+ emitInviteAccepted: "org.emitInviteAccepted",
594
599
  emitInviteProgressed: "org.emitInviteProgressed",
595
600
  expireInvitations: "org.expireInvitations",
596
601
  getLifecycle: "org.getLifecycle",
597
602
  getProofReceipt: "org.getProofReceipt",
598
603
  invite: "org.invite",
599
- inviteMember: "org.inviteMember",
604
+ /** D8 invitation lifecycle: preview, own list, read, and the four transitions. */
605
+ invitations: {
606
+ /** The exact grantee's consent commit (§8): one accepted digest, once. */
607
+ accept: "org.invitations.accept",
608
+ /**
609
+ * The authoring write. It is named `authorize`, not `invite`, because the
610
+ * backend already uses `org.invitations.invite` as a refusal label and
611
+ * `lint:telemetry-spine` refuses a label that collides with an operation.
612
+ */
613
+ authorize: "org.invitations.authorize",
614
+ cancel: "org.invitations.cancel",
615
+ decline: "org.invitations.decline",
616
+ get: "org.invitations.get",
617
+ list: "org.invitations.list",
618
+ /**
619
+ * The Admin-scoped Organization list. It is named `listScoped`, not
620
+ * `list`, because the own-offer list already owns `org.invitations.list`.
621
+ */
622
+ listScoped: "org.invitations.listScoped",
623
+ /**
624
+ * The authoring write's inner hops: the SDK drives the backend's existing
625
+ * prepare/submit pair, and these names label the two Convex calls. The
626
+ * owning `capxul_sdk_operation` record stays `org.invitations.authorize`.
627
+ */
628
+ prepareConfiguration: "org.invitations.prepareConfiguration",
629
+ preview: "org.invitations.preview",
630
+ resend: "org.invitations.resend",
631
+ retry: "org.invitations.retry",
632
+ submitConfiguration: "org.invitations.submitConfiguration"
633
+ },
600
634
  list: "org.list",
601
635
  load: "org.load",
602
636
  me: "org.me",
@@ -655,7 +689,6 @@ const CAPXUL_OPERATIONS = {
655
689
  },
656
690
  recordFailure: "org.recordFailure",
657
691
  recordProgress: "org.recordProgress",
658
- resendInviteToken: "org.resendInviteToken",
659
692
  resumeBootstrapSubmission: "org.resumeBootstrapSubmission",
660
693
  retry: "org.retry",
661
694
  retrySetup: "org.retrySetup",
@@ -672,7 +705,6 @@ const CAPXUL_OPERATIONS = {
672
705
  retry: "organizationPayments.retry"
673
706
  },
674
707
  organizationSetup: { getProofReceipt: "organizationSetup.getProofReceipt" },
675
- organizations: { detectAndAcceptPendingInvitations: "orgs.detectAndAcceptPendingInvitations" },
676
708
  payments: {
677
709
  cancel: "payments.cancel",
678
710
  claim: "payments.claim",
@@ -710,6 +742,7 @@ const CAPXUL_OPERATIONS = {
710
742
  terms: "payroll.terms"
711
743
  },
712
744
  permission: {
745
+ verifyInvitationConfiguration: "permission.verifyInvitationConfiguration",
713
746
  command: "permission.command",
714
747
  retryVerification: "permission.retryVerification",
715
748
  verify: "permission.verify",
@@ -1547,6 +1580,11 @@ const OrgCreateFailedProps = Schema.Struct({
1547
1580
  const OrgInviteSentProps = Schema.Struct({
1548
1581
  ...TelemetryEnvelopeProps,
1549
1582
  org_id: OptionalOrgId,
1583
+ invitation_id: OptionalString,
1584
+ generation: OptionalString,
1585
+ command_id: OptionalString,
1586
+ subject_party_id: OptionalString,
1587
+ persisted_at: OptionalEpochMs,
1550
1588
  email_domain: OptionalString,
1551
1589
  role: OptionalString,
1552
1590
  status: OptionalString
@@ -1554,6 +1592,11 @@ const OrgInviteSentProps = Schema.Struct({
1554
1592
  const OrgInviteAcceptedProps = Schema.Struct({
1555
1593
  ...TelemetryEnvelopeProps,
1556
1594
  org_id: OptionalOrgId,
1595
+ invitation_id: OptionalString,
1596
+ accepted_at: OptionalEpochMs,
1597
+ generation: OptionalString,
1598
+ command_id: OptionalString,
1599
+ subject_party_id: OptionalString,
1557
1600
  role: OptionalString,
1558
1601
  status: OptionalString
1559
1602
  });
@@ -1561,6 +1604,7 @@ const OrgInviteExpiredProps = Schema.Struct({
1561
1604
  ...TelemetryEnvelopeProps,
1562
1605
  org_id: OptionalOrgId,
1563
1606
  email_domain: OptionalString,
1607
+ invitation_id: OptionalString,
1564
1608
  reason: OptionalString,
1565
1609
  role: OptionalString,
1566
1610
  status: OptionalString
@@ -1713,9 +1757,24 @@ const PermissionMirrorVerificationProps = Schema.Struct({
1713
1757
  "applied",
1714
1758
  "replayed",
1715
1759
  "conflicting_replay",
1716
- "revision_mismatch"
1760
+ "revision_mismatch",
1761
+ "cleanup_required",
1762
+ "not_applied",
1763
+ "application_failure",
1764
+ "mismatch",
1765
+ "refused"
1717
1766
  ])),
1767
+ command_kind: Schema.optional(Schema.Literals(["invitation_configuration", "invitation_eoa"])),
1718
1768
  command_id: OptionalString,
1769
+ invitation_id: OptionalString,
1770
+ generation: OptionalString,
1771
+ purpose: Schema.optional(Schema.Literals([
1772
+ "configure",
1773
+ "grant",
1774
+ "disable",
1775
+ "compensate"
1776
+ ])),
1777
+ $insert_id: OptionalString,
1719
1778
  /**
1720
1779
  * #1961 R03. The authorized stored row names the Permission it changed; the
1721
1780
  * verified receipt names the chain facts that prove it. Every field is
@@ -2102,6 +2161,13 @@ const CLI_COMMAND_NAMES = [
2102
2161
  "auth.profile",
2103
2162
  "auth.status",
2104
2163
  "auth.logout",
2164
+ "contact",
2165
+ "contact.list",
2166
+ "contact.get",
2167
+ "contact.add",
2168
+ "contact.label",
2169
+ "contact.hide",
2170
+ "contact.unhide",
2105
2171
  "org",
2106
2172
  CAPXUL_OPERATIONS.org.list,
2107
2173
  "org.use",
@@ -2110,6 +2176,24 @@ const CLI_COMMAND_NAMES = [
2110
2176
  CAPXUL_OPERATIONS.org.members,
2111
2177
  "org.member",
2112
2178
  "org.member.get",
2179
+ "org.member.invite",
2180
+ "org.contact",
2181
+ "org.contact.list",
2182
+ "org.contact.get",
2183
+ "org.contact.add",
2184
+ "org.contact.label",
2185
+ "org.contact.hide",
2186
+ "org.contact.unhide",
2187
+ CAPXUL_OPERATIONS.org.invite,
2188
+ "org.invite.list",
2189
+ "org.invite.get",
2190
+ "org.invite.wait",
2191
+ "org.invite.review",
2192
+ "org.invite.accept",
2193
+ "org.invite.decline",
2194
+ "org.invite.cancel",
2195
+ "org.invite.resend",
2196
+ "org.invite.retry",
2113
2197
  "org.wait",
2114
2198
  CAPXUL_OPERATIONS.org.create,
2115
2199
  CAPXUL_OPERATIONS.org.retry,
@@ -2120,7 +2204,8 @@ const CLI_CAPABILITIES = [
2120
2204
  "diagnostics",
2121
2205
  "collection",
2122
2206
  "authentication",
2123
- "organization"
2207
+ "organization",
2208
+ "contacts"
2124
2209
  ];
2125
2210
  const CLI_INVOCATION_KINDS = [
2126
2211
  "command",
@@ -2385,6 +2470,7 @@ const OrgInviteProgressedTelemetryEventSchema = Schema.Struct({
2385
2470
  ...TelemetryEnvelopeProps,
2386
2471
  organization_id: OrgIdTelemetrySchema,
2387
2472
  progress: Schema.Literals([
2473
+ "configuration_authorized",
2388
2474
  "account_ready",
2389
2475
  "permission_applied",
2390
2476
  "membership_activated",
@@ -2392,6 +2478,9 @@ const OrgInviteProgressedTelemetryEventSchema = Schema.Struct({
2392
2478
  ]),
2393
2479
  /** The invited Party. The initiating actor stays on the envelope's identity. */
2394
2480
  member_party_id: Schema.String,
2481
+ invitation_id: Schema.optional(Schema.String),
2482
+ generation: Schema.optional(Schema.String),
2483
+ command_id: Schema.optional(Schema.String),
2395
2484
  occurred_at: Schema.Number
2396
2485
  })
2397
2486
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/observability",
3
- "version": "4.20.0-beta.6",
3
+ "version": "4.20.0-beta.7",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",