@capxul/observability 4.20.0-beta.26 → 4.20.0-beta.28

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.
@@ -2182,10 +2182,19 @@ const ApprovalNetworkSchema = Schema.Struct({
2182
2182
  name: Schema.String,
2183
2183
  explorerUrl: Schema.String
2184
2184
  });
2185
+ /**
2186
+ * Whose money the operation moves: the person's own, or an Organization's,
2187
+ * which a reader follows through that Organization's scope.
2188
+ */
2189
+ const ApprovalActorSchema = Schema.Union([Schema.Struct({ kind: Schema.Literal("personal") }), Schema.Struct({
2190
+ kind: Schema.Literal("organization"),
2191
+ orgId: Schema.NonEmptyString
2192
+ })]);
2185
2193
  /** What the person reads before they sign. */
2186
2194
  const ApprovalSummarySchema = Schema.Struct({
2187
2195
  title: Schema.String,
2188
2196
  from: Schema.Struct({
2197
+ kind: Schema.Literals(["personal", "organization"]),
2189
2198
  label: Schema.String,
2190
2199
  address: AddressSchema$1
2191
2200
  }),
@@ -2207,6 +2216,7 @@ const ApprovalSchema = Schema.Struct({
2207
2216
  url: Schema.String,
2208
2217
  kind: Schema.Literals(APPROVAL_KINDS),
2209
2218
  state: Schema.Literals(APPROVAL_STATES),
2219
+ actor: ApprovalActorSchema,
2210
2220
  summary: ApprovalSummarySchema,
2211
2221
  operation: ApprovalOperationSchema,
2212
2222
  /** Who must sign: the owner key of the paying Safe. */
@@ -2877,6 +2887,15 @@ const probes = {
2877
2887
  })
2878
2888
  };
2879
2889
  //#endregion
2890
+ //#region ../protocol/src/evm/role-dsl.ts
2891
+ /**
2892
+ * How a capped Budget's allowance refills (#2298). `monthly` refills the
2893
+ * allowance to its cap every 30 days. Roles v2 counts fixed periods from the
2894
+ * moment the allowance is set; it has no calendar month. Absent means `none`:
2895
+ * the cap is one pot that spending drains for good.
2896
+ */
2897
+ const ORG_BUDGET_REFILLS = ["monthly", "none"];
2898
+ //#endregion
2880
2899
  //#region ../protocol/src/permissions/permission-schema.ts
2881
2900
  /**
2882
2901
  * One stored `setAllowance` call inside a command's expected authority set.
@@ -2915,12 +2934,19 @@ const BudgetScopeSchema = Schema.Struct({
2915
2934
  })]),
2916
2935
  actions: Schema.NonEmptyArray(Schema.Literals(["pay", "commitments"]))
2917
2936
  }).pipe(Schema.refine((scope) => new Set(scope.actions).size === scope.actions.length && (scope.recipients.type === "anyone" || scope.recipients.accounts.length >= 1 && scope.recipients.accounts.length <= 32 && new Set(scope.recipients.accounts).size === scope.recipients.accounts.length), { message: "Budget scope requires unique actions and one to 32 unique allowed Accounts" }));
2937
+ /**
2938
+ * How a capped Budget refills (#2298): `monthly` tops the cap back up every 30
2939
+ * days (a fixed Roles v2 period, not a calendar month); `none` never refills.
2940
+ * Absent means `none`, and writers store only `monthly`.
2941
+ */
2942
+ const BudgetRefillSchema = Schema.Literals(ORG_BUDGET_REFILLS);
2918
2943
  /** The accepted product policy stored with one Permission revision. */
2919
2944
  const CurrentPolicySchema = Schema.Union([Schema.Struct({
2920
2945
  type: Schema.Literal("budget"),
2921
2946
  asset: AssetIdSchema,
2922
2947
  limit: Schema.NullOr(Schema.String),
2923
- scope: BudgetScopeSchema
2948
+ scope: BudgetScopeSchema,
2949
+ refill: Schema.optional(BudgetRefillSchema)
2924
2950
  }), Schema.Struct({ type: Schema.Literal("managePeople") })]);
2925
2951
  const BudgetIntentSchema = CurrentPolicySchema.pipe(Schema.refine((value) => {
2926
2952
  if (value.type !== "budget") return false;
@@ -2985,7 +3011,8 @@ const ResolvedPermissionBudgetPolicySchema = Schema.Struct({
2985
3011
  "send",
2986
3012
  "sendBatch",
2987
3013
  "createCommitment"
2988
- ]))
3014
+ ])),
3015
+ refill: Schema.optional(BudgetRefillSchema)
2989
3016
  });
2990
3017
  const PermissionRecipientBindingSchema = Schema.Struct({
2991
3018
  accountId: AccountIdSchema$1,
@@ -2997,14 +3024,16 @@ const StoredPermissionIntentSchema = Schema.Union([Schema.Struct({
2997
3024
  type: Schema.Literal("budget"),
2998
3025
  asset: AssetIdSchema,
2999
3026
  limit: Schema.NullOr(AssetAmountSchema),
3000
- scope: Schema.optional(BudgetScopeSchema)
3027
+ scope: Schema.optional(BudgetScopeSchema),
3028
+ refill: Schema.optional(BudgetRefillSchema)
3001
3029
  }).pipe(Schema.refine((intent) => intent.limit === null || intent.limit.asset === intent.asset, { message: "Budget limit must use the Budget asset" })), Schema.Struct({ type: Schema.Literal("managePeople") })]);
3002
3030
  /** Writes state every granted right and use a finite positive AssetAmount cap. */
3003
3031
  const PermissionIntentSchema = Schema.Union([Schema.Struct({
3004
3032
  type: Schema.Literal("budget"),
3005
3033
  asset: AssetIdSchema,
3006
3034
  limit: AssetAmountSchema,
3007
- scope: BudgetScopeSchema
3035
+ scope: BudgetScopeSchema,
3036
+ refill: Schema.optional(BudgetRefillSchema)
3008
3037
  }).pipe(Schema.refine((intent) => intent.limit.asset === intent.asset && /[1-9]/u.test(intent.limit.value), { message: "Budget cap must be positive and use the Budget asset" })), Schema.Struct({ type: Schema.Literal("managePeople") })]);
3009
3038
  //#endregion
3010
3039
  //#region ../protocol/src/permissions/replacement-schema.ts
@@ -3206,7 +3235,7 @@ const InviteGrantsSchema = Schema.Array(Schema.Union([
3206
3235
  Schema.Struct({
3207
3236
  type: Schema.Literal("new_budget"),
3208
3237
  label: Schema.String.pipe(Schema.refine((value) => value.trim().length >= 1 && value.trim().length <= 128)),
3209
- intent: BudgetIntentSchema
3238
+ intent: BudgetIntentSchema.pipe(Schema.refine((intent) => intent.refill !== "monthly", { message: "An invitation's new Budget cannot refill; change it once granted" }))
3210
3239
  })
3211
3240
  ])).pipe(Schema.refine((grants) => {
3212
3241
  if (grants.length < 1 || grants.length > 16) return false;
@@ -6402,7 +6431,9 @@ const PEOPLE_OPERATIONS = {
6402
6431
  emitSafeConfirmed: "accounts.safes.emitSafeConfirmed",
6403
6432
  readSafe: "accounts.safes.readSafe",
6404
6433
  recordDeployment: "accounts.safes.recordDeployment"
6405
- }
6434
+ },
6435
+ /** The home's requests to pay and Payments to retry, read in one query. */
6436
+ summaries: { loadNeedsYou: "accounts.summaries.loadNeedsYou" }
6406
6437
  },
6407
6438
  /** The host observer's names for `client.approvals.*`. */
6408
6439
  approvals: {
@@ -6583,7 +6614,11 @@ const ORGANIZATION_OPERATIONS = {
6583
6614
  seedNativeReadiness: "operator.fixtures.seedNativeReadiness",
6584
6615
  seedPrerequisites: "operator.fixtures.seedPrerequisites"
6585
6616
  },
6586
- identities: { purgeByEmail: "operator.identities.purgeByEmail" }
6617
+ identities: {
6618
+ purgeByEmail: "operator.identities.purgeByEmail",
6619
+ /** One Account and every row that refers to it, unless it has Payments or an Organization tie. */
6620
+ purgeAccount: "operator.identities.purgeAccount"
6621
+ }
6587
6622
  },
6588
6623
  /** Organizations' internal functions; its public rows join from `OPERATIONS`. */
6589
6624
  organizations: {
@@ -6657,7 +6692,9 @@ emitSaved: "activity.annotations.emitSaved" },
6657
6692
  pay: "organizationPayments.pay",
6658
6693
  payBatch: "organizationPayments.payBatch",
6659
6694
  prepareExecution: "organizationPayments.prepareExecution",
6660
- retry: "organizationPayments.retry"
6695
+ retry: "organizationPayments.retry",
6696
+ cancel: "organizationPayments.cancel",
6697
+ redirect: "organizationPayments.redirect"
6661
6698
  },
6662
6699
  /**
6663
6700
  * Payments' internal functions and the client's own method names; its public
@@ -6679,7 +6716,9 @@ emitSaved: "activity.annotations.emitSaved" },
6679
6716
  loadContext: "payments.commands.loadContext",
6680
6717
  loadExecutionContext: "payments.commands.loadExecutionContext",
6681
6718
  /** The capped Budget a prepared Organization command spends from, before its allowance is read on chain. */
6682
- loadBudgetAllowance: "payments.commands.loadBudgetAllowance"
6719
+ loadBudgetAllowance: "payments.commands.loadBudgetAllowance",
6720
+ /** What a new Payment command would spend and from which Safe, read before it is born. */
6721
+ loadBirthFunding: "payments.commands.loadBirthFunding"
6683
6722
  },
6684
6723
  lifecycles: { prepareIntent: "payments.lifecycles.prepareIntent" },
6685
6724
  /** The stored UserOperation of every money command: Payment, Permission and configuration. */
@@ -6833,7 +6872,11 @@ const PLATFORM_OPERATIONS = {
6833
6872
  recordUse: "applications.bootstraps.recordUse",
6834
6873
  resolve: "applications.bootstraps.resolve"
6835
6874
  },
6836
- keys: { issue: "applications.keys.issue" },
6875
+ keys: {
6876
+ issue: "applications.keys.issue",
6877
+ /** Operator-only: revoke one key by its id, whoever owns it. */
6878
+ revokeById: "applications.keys.revokeById"
6879
+ },
6837
6880
  quickstarts: {
6838
6881
  claim: "applications.quickstarts.claim",
6839
6882
  mint: "applications.quickstarts.mint"
@@ -7013,12 +7056,6 @@ const TELEMETRY_EVENT_NAMES = [
7013
7056
  "faucet_requested",
7014
7057
  "faucet_confirmed",
7015
7058
  "faucet_failed",
7016
- "org_create_started",
7017
- "org_safe_created",
7018
- "org_safe_confirmed",
7019
- "org_roles_seeded",
7020
- "org_created",
7021
- "org_create_failed",
7022
7059
  "org_invite_sent",
7023
7060
  "org_invite_accepted",
7024
7061
  "org_invite_expired",
@@ -7056,181 +7093,6 @@ const TELEMETRY_EVENT_NAMES = [
7056
7093
  "cli_command_completed"
7057
7094
  ];
7058
7095
  //#endregion
7059
- //#region src/catalog/journeys.ts
7060
- const TELEMETRY_JOURNEYS = {
7061
- returning_user_login: {
7062
- type: "funnel",
7063
- steps: [
7064
- "auth_otp_requested",
7065
- "auth_otp_delivered",
7066
- "auth_verified"
7067
- ],
7068
- drops_on: ["auth_otp_expired", "auth_failed"]
7069
- },
7070
- new_user_first_signin: {
7071
- type: "funnel",
7072
- steps: [
7073
- "auth_otp_requested",
7074
- "auth_otp_delivered",
7075
- "auth_verified",
7076
- "provisioning_safe_created",
7077
- "provisioning_safe_confirmed"
7078
- ],
7079
- drops_on: ["auth_otp_expired", "auth_failed"]
7080
- },
7081
- sign_out_session_close: {
7082
- type: "point_event",
7083
- point_event: "auth_signed_out"
7084
- },
7085
- member_activation: {
7086
- type: "funnel",
7087
- steps: ["member_activation_started", "member_activation_ready"],
7088
- drops_on: ["member_activation_failed"]
7089
- },
7090
- organization_creation_lifecycle: {
7091
- type: "funnel",
7092
- steps: ["organization_creation_started", "organization_creation_ready"],
7093
- drops_on: ["organization_creation_failed"]
7094
- },
7095
- new_member_personal_dashboard: {
7096
- type: "funnel",
7097
- steps: [
7098
- "auth_verified",
7099
- "onboarding_intent_selected",
7100
- "onboarding_profile_submitted",
7101
- "member_activation_ready",
7102
- "onboarding_dashboard_reached"
7103
- ],
7104
- step_filters: {
7105
- onboarding_intent_selected: [{
7106
- key: "intent",
7107
- value: ["personal"],
7108
- operator: "exact",
7109
- type: "event"
7110
- }, {
7111
- key: "entry_point",
7112
- value: ["signup"],
7113
- operator: "exact",
7114
- type: "event"
7115
- }],
7116
- onboarding_profile_submitted: [{
7117
- key: "intent",
7118
- value: ["personal"],
7119
- operator: "exact",
7120
- type: "event"
7121
- }],
7122
- onboarding_dashboard_reached: [{
7123
- key: "intent",
7124
- value: ["personal"],
7125
- operator: "exact",
7126
- type: "event"
7127
- }]
7128
- }
7129
- },
7130
- new_member_organization_dashboard: {
7131
- type: "funnel",
7132
- steps: [
7133
- "auth_verified",
7134
- "onboarding_intent_selected",
7135
- "onboarding_profile_submitted",
7136
- "onboarding_organization_submitted",
7137
- "member_activation_started",
7138
- "member_activation_ready",
7139
- "organization_creation_started",
7140
- "organization_creation_ready",
7141
- "onboarding_dashboard_reached"
7142
- ],
7143
- step_filters: {
7144
- onboarding_intent_selected: [{
7145
- key: "intent",
7146
- value: ["organization"],
7147
- operator: "exact",
7148
- type: "event"
7149
- }, {
7150
- key: "entry_point",
7151
- value: ["signup"],
7152
- operator: "exact",
7153
- type: "event"
7154
- }],
7155
- onboarding_profile_submitted: [{
7156
- key: "intent",
7157
- value: ["organization"],
7158
- operator: "exact",
7159
- type: "event"
7160
- }],
7161
- onboarding_dashboard_reached: [{
7162
- key: "intent",
7163
- value: ["organization"],
7164
- operator: "exact",
7165
- type: "event"
7166
- }]
7167
- }
7168
- },
7169
- existing_member_organization_dashboard: {
7170
- type: "funnel",
7171
- steps: [
7172
- "onboarding_intent_selected",
7173
- "onboarding_organization_submitted",
7174
- "organization_creation_started",
7175
- "organization_creation_ready",
7176
- "onboarding_dashboard_reached"
7177
- ],
7178
- step_filters: {
7179
- onboarding_intent_selected: [{
7180
- key: "intent",
7181
- value: ["organization"],
7182
- operator: "exact",
7183
- type: "event"
7184
- }, {
7185
- key: "entry_point",
7186
- value: ["dashboard"],
7187
- operator: "exact",
7188
- type: "event"
7189
- }],
7190
- onboarding_dashboard_reached: [{
7191
- key: "intent",
7192
- value: ["organization"],
7193
- operator: "exact",
7194
- type: "event"
7195
- }]
7196
- }
7197
- },
7198
- money_on_screen: {
7199
- type: "point_event",
7200
- point_event: "account_balance_read"
7201
- },
7202
- fund_account: {
7203
- type: "funnel",
7204
- steps: ["faucet_requested", "faucet_confirmed"],
7205
- drops_on: ["faucet_failed"]
7206
- },
7207
- org_creation: {
7208
- type: "funnel",
7209
- steps: [
7210
- "org_create_started",
7211
- "org_safe_created",
7212
- "org_safe_confirmed",
7213
- "org_roles_seeded",
7214
- "org_created"
7215
- ],
7216
- drops_on: ["org_create_failed"]
7217
- },
7218
- org_member_onboarding: {
7219
- type: "funnel",
7220
- steps: ["org_invite_sent", "org_invite_accepted"],
7221
- drops_on: ["org_invite_expired"]
7222
- },
7223
- direct_payment: {
7224
- type: "funnel",
7225
- steps: ["payment_initiated", "payment_settled"],
7226
- drops_on: ["payment_failed"]
7227
- },
7228
- deposit: {
7229
- type: "funnel",
7230
- steps: ["deposit_initiated", "deposit_settled"]
7231
- }
7232
- };
7233
- //#endregion
7234
7096
  //#region src/catalog/values.ts
7235
7097
  const OptionalString = Schema.optional(Schema.String);
7236
7098
  const AddressSchema = Schema.String.pipe(Schema.decodeTo(Schema.String, {
@@ -7299,6 +7161,13 @@ const EXCEPTION_EVENT_NAME = "$exception";
7299
7161
  * and classes only, not this evidence.
7300
7162
  */
7301
7163
  const EXPECTED_OUTCOME_EVENT_NAME = "capxul_backend_expected_outcome";
7164
+ /**
7165
+ * The SDK's twin of `capxul_backend_expected_outcome`: an expected outcome the
7166
+ * SDK's failure projection captures through the host's PostHog client. Like
7167
+ * the backend's, its properties are the error evidence, so no catalog schema
7168
+ * validates it.
7169
+ */
7170
+ const SDK_EXPECTED_OUTCOME_EVENT_NAME = "capxul_sdk_expected_outcome";
7302
7171
  const PII = Schema.String.pipe(Schema.brand("PII"));
7303
7172
  /**
7304
7173
  * Environment discriminator (ADR-0020 A1 amendment, 2026-08-07). PostHog
@@ -7426,6 +7295,239 @@ const UiStepProps = {
7426
7295
  organization_id: OptionalOrgId,
7427
7296
  reason_code: OptionalReasonCode
7428
7297
  };
7298
+ /**
7299
+ * A journey's variants (`JOURNEYS`): the way a person came into a journey, or
7300
+ * the way they took through it. A variant is a property of the journey's step
7301
+ * events, never a journey of its own, so each journey funnel breaks down by
7302
+ * it. A step event takes only the variants that a journey contract names on
7303
+ * it, picked one by one; the analytics plan test checks both directions.
7304
+ * `pay_path` and `funding_source` have no carrier until their Phase 2 events.
7305
+ * `payment_*` events already carry `recipient_is_capxul_account`, and
7306
+ * `invoice_issued` carries `issuer_scope_kind`; neither is repeated here.
7307
+ */
7308
+ const JourneyVariantProps = {
7309
+ /** How a person came to Get started: by themselves, an invite, money that waited, or an invoice. */
7310
+ entry_path: Schema.optional(Schema.Literals([
7311
+ "signup",
7312
+ "invite",
7313
+ "claim",
7314
+ "invoice"
7315
+ ])),
7316
+ /** Where the person acted. `agent` is an AI agent driving the CLI. */
7317
+ surface: Schema.optional(Schema.Literals([
7318
+ "web",
7319
+ "cli",
7320
+ "agent"
7321
+ ])),
7322
+ /** Who pays: a person from their own account, or an Organization from a Budget. */
7323
+ payer_kind: Schema.optional(Schema.Literals(["person", "organization"])),
7324
+ /** How a request was paid: from the payer's inbox, or by its link at checkout. */
7325
+ pay_path: Schema.optional(Schema.Literals(["inbox", "link"])),
7326
+ /** Where an account's first money came from. `bank` is the planned on-ramp. */
7327
+ funding_source: Schema.optional(Schema.Literals([
7328
+ "deposit",
7329
+ "payment",
7330
+ "claim",
7331
+ "bank"
7332
+ ]))
7333
+ };
7334
+ //#endregion
7335
+ //#region src/catalog/journeys.ts
7336
+ /**
7337
+ * The launch journeys (decision pack P0, 2026-10-07). Sign-in, approvals,
7338
+ * Budgets and contacts are steps or properties inside them, and a planned
7339
+ * feature joins one as a variant or a step when it is built. Every key needs a
7340
+ * journey contract in `packages/tools` `analytics`, or that package fails to
7341
+ * compile.
7342
+ */
7343
+ const JOURNEYS = {
7344
+ get_started: {
7345
+ title: "Get started",
7346
+ finish: "The account is ready: the person's Safe is live",
7347
+ variants: ["entry_path", "surface"]
7348
+ },
7349
+ money_in: {
7350
+ title: "Money in",
7351
+ finish: "The first balance above 0",
7352
+ variants: ["funding_source"]
7353
+ },
7354
+ pay_someone: {
7355
+ title: "Pay someone",
7356
+ finish: "The payment settles, or the recipient claims it when they had no account",
7357
+ variants: [
7358
+ "recipient_is_capxul_account",
7359
+ "payer_kind",
7360
+ "surface"
7361
+ ]
7362
+ },
7363
+ get_paid: {
7364
+ title: "Get paid",
7365
+ finish: "The invoice or request is paid",
7366
+ variants: ["issuer_scope_kind", "pay_path"]
7367
+ },
7368
+ run_company: {
7369
+ title: "Run a company",
7370
+ finish: "A payroll run settles",
7371
+ variants: ["surface"]
7372
+ }
7373
+ };
7374
+ const TELEMETRY_JOURNEYS = {
7375
+ returning_user_login: {
7376
+ type: "funnel",
7377
+ steps: [
7378
+ "auth_otp_requested",
7379
+ "auth_otp_delivered",
7380
+ "auth_verified"
7381
+ ],
7382
+ drops_on: ["auth_otp_expired", "auth_failed"]
7383
+ },
7384
+ new_user_first_signin: {
7385
+ type: "funnel",
7386
+ steps: [
7387
+ "auth_otp_requested",
7388
+ "auth_otp_delivered",
7389
+ "auth_verified",
7390
+ "provisioning_safe_created",
7391
+ "provisioning_safe_confirmed"
7392
+ ],
7393
+ drops_on: ["auth_otp_expired", "auth_failed"]
7394
+ },
7395
+ sign_out_session_close: {
7396
+ type: "point_event",
7397
+ point_event: "auth_signed_out"
7398
+ },
7399
+ member_activation: {
7400
+ type: "funnel",
7401
+ steps: ["member_activation_started", "member_activation_ready"],
7402
+ drops_on: ["member_activation_failed"]
7403
+ },
7404
+ organization_creation_lifecycle: {
7405
+ type: "funnel",
7406
+ steps: ["organization_creation_started", "organization_creation_ready"],
7407
+ drops_on: ["organization_creation_failed"]
7408
+ },
7409
+ new_member_personal_dashboard: {
7410
+ type: "funnel",
7411
+ steps: [
7412
+ "auth_verified",
7413
+ "onboarding_intent_selected",
7414
+ "onboarding_profile_submitted",
7415
+ "member_activation_ready",
7416
+ "onboarding_dashboard_reached"
7417
+ ],
7418
+ step_filters: {
7419
+ onboarding_intent_selected: [{
7420
+ key: "intent",
7421
+ value: ["personal"],
7422
+ operator: "exact",
7423
+ type: "event"
7424
+ }, {
7425
+ key: "entry_point",
7426
+ value: ["signup"],
7427
+ operator: "exact",
7428
+ type: "event"
7429
+ }],
7430
+ onboarding_profile_submitted: [{
7431
+ key: "intent",
7432
+ value: ["personal"],
7433
+ operator: "exact",
7434
+ type: "event"
7435
+ }],
7436
+ onboarding_dashboard_reached: [{
7437
+ key: "intent",
7438
+ value: ["personal"],
7439
+ operator: "exact",
7440
+ type: "event"
7441
+ }]
7442
+ }
7443
+ },
7444
+ new_member_organization_dashboard: {
7445
+ type: "funnel",
7446
+ steps: [
7447
+ "auth_verified",
7448
+ "onboarding_intent_selected",
7449
+ "onboarding_profile_submitted",
7450
+ "onboarding_organization_submitted",
7451
+ "member_activation_started",
7452
+ "member_activation_ready",
7453
+ "organization_creation_started",
7454
+ "organization_creation_ready",
7455
+ "onboarding_dashboard_reached"
7456
+ ],
7457
+ step_filters: {
7458
+ onboarding_intent_selected: [{
7459
+ key: "intent",
7460
+ value: ["organization"],
7461
+ operator: "exact",
7462
+ type: "event"
7463
+ }, {
7464
+ key: "entry_point",
7465
+ value: ["signup"],
7466
+ operator: "exact",
7467
+ type: "event"
7468
+ }],
7469
+ onboarding_profile_submitted: [{
7470
+ key: "intent",
7471
+ value: ["organization"],
7472
+ operator: "exact",
7473
+ type: "event"
7474
+ }],
7475
+ onboarding_dashboard_reached: [{
7476
+ key: "intent",
7477
+ value: ["organization"],
7478
+ operator: "exact",
7479
+ type: "event"
7480
+ }]
7481
+ }
7482
+ },
7483
+ existing_member_organization_dashboard: {
7484
+ type: "funnel",
7485
+ steps: [
7486
+ "onboarding_intent_selected",
7487
+ "onboarding_organization_submitted",
7488
+ "organization_creation_started",
7489
+ "organization_creation_ready",
7490
+ "onboarding_dashboard_reached"
7491
+ ],
7492
+ step_filters: {
7493
+ onboarding_intent_selected: [{
7494
+ key: "intent",
7495
+ value: ["organization"],
7496
+ operator: "exact",
7497
+ type: "event"
7498
+ }, {
7499
+ key: "entry_point",
7500
+ value: ["dashboard"],
7501
+ operator: "exact",
7502
+ type: "event"
7503
+ }],
7504
+ onboarding_dashboard_reached: [{
7505
+ key: "intent",
7506
+ value: ["organization"],
7507
+ operator: "exact",
7508
+ type: "event"
7509
+ }]
7510
+ }
7511
+ },
7512
+ money_on_screen: {
7513
+ type: "point_event",
7514
+ point_event: "account_balance_read"
7515
+ },
7516
+ fund_account: {
7517
+ type: "point_event",
7518
+ point_event: "faucet_confirmed"
7519
+ },
7520
+ org_member_onboarding: {
7521
+ type: "funnel",
7522
+ steps: ["org_invite_sent", "org_invite_accepted"],
7523
+ drops_on: ["org_invite_expired"]
7524
+ },
7525
+ direct_payment: {
7526
+ type: "funnel",
7527
+ steps: ["payment_initiated", "payment_settled"],
7528
+ drops_on: ["payment_failed"]
7529
+ }
7530
+ };
7429
7531
  //#endregion
7430
7532
  //#region src/events/money.ts
7431
7533
  /**
@@ -7515,6 +7617,8 @@ const PaymentInitiatedProps = Schema.Struct({
7515
7617
  execution_id: OptionalString,
7516
7618
  payment_lifecycle_id: OptionalString,
7517
7619
  ...TelemetryEnvelopeProps,
7620
+ payer_kind: JourneyVariantProps.payer_kind,
7621
+ surface: JourneyVariantProps.surface,
7518
7622
  ...RecipientTelemetryProps,
7519
7623
  kind: Schema.String,
7520
7624
  payment_id: Schema.String
@@ -7530,6 +7634,8 @@ const PaymentLifecycleProps = {
7530
7634
  const PaymentSettledL2Props = Schema.Struct({
7531
7635
  ...PaymentLifecycleProps,
7532
7636
  ...TelemetryEnvelopeProps,
7637
+ payer_kind: JourneyVariantProps.payer_kind,
7638
+ surface: JourneyVariantProps.surface,
7533
7639
  ...RecipientTelemetryProps,
7534
7640
  kind: Schema.String,
7535
7641
  chain_id: Schema.Finite,
@@ -7737,6 +7843,7 @@ const OrganizationCreationStartedProps = Schema.Struct({
7737
7843
  });
7738
7844
  const OrganizationCreationReadyProps = Schema.Struct({
7739
7845
  ...TelemetryEnvelopeProps,
7846
+ surface: JourneyVariantProps.surface,
7740
7847
  $insert_id: Schema.String,
7741
7848
  organization_id: OrgIdTelemetrySchema,
7742
7849
  attempt_number: AttemptNumberSchema,
@@ -7761,45 +7868,6 @@ const OrganizationCreationFailedProps = Schema.Struct({
7761
7868
  ...ORGANIZATION_SETUP_REASONS
7762
7869
  ]))
7763
7870
  });
7764
- const OrgCreateStartedProps = Schema.Struct({
7765
- ...TelemetryEnvelopeProps,
7766
- org_id: OptionalOrgId,
7767
- email_domain: OptionalString,
7768
- template: OptionalString
7769
- });
7770
- const OrgSafeCreatedProps = Schema.Struct({
7771
- ...TelemetryEnvelopeProps,
7772
- org_id: OptionalOrgId,
7773
- chainId: OptionalChainId,
7774
- safe_address: OptionalAddress
7775
- });
7776
- const OrgSafeConfirmedProps = Schema.Struct({
7777
- ...TelemetryEnvelopeProps,
7778
- org_id: OptionalOrgId,
7779
- chainId: OptionalChainId,
7780
- safe_address: OptionalAddress,
7781
- durationMs: OptionalDurationMs
7782
- });
7783
- const OrgRolesSeededProps = Schema.Struct({
7784
- ...TelemetryEnvelopeProps,
7785
- org_id: OptionalOrgId,
7786
- chainId: OptionalChainId,
7787
- role: OptionalString,
7788
- txHash: OptionalTxHash
7789
- });
7790
- const OrgCreatedProps = Schema.Struct({
7791
- ...TelemetryEnvelopeProps,
7792
- org_id: OptionalOrgId,
7793
- chainId: OptionalChainId,
7794
- safe_address: OptionalAddress,
7795
- durationMs: OptionalDurationMs
7796
- });
7797
- const OrgCreateFailedProps = Schema.Struct({
7798
- ...TelemetryEnvelopeProps,
7799
- ...ChainCauseTelemetryProps,
7800
- org_id: OptionalOrgId,
7801
- reason: OptionalString
7802
- });
7803
7871
  const OrgInviteSentProps = Schema.Struct({
7804
7872
  ...TelemetryEnvelopeProps,
7805
7873
  org_id: OptionalOrgId,
@@ -7844,30 +7912,6 @@ const OrganizationCreationFailedTelemetryEventSchema = Schema.Struct({
7844
7912
  name: Schema.Literal("organization_creation_failed"),
7845
7913
  props: OrganizationCreationFailedProps
7846
7914
  });
7847
- const OrgCreateStartedTelemetryEventSchema = Schema.Struct({
7848
- name: Schema.Literal("org_create_started"),
7849
- props: OrgCreateStartedProps
7850
- });
7851
- const OrgSafeCreatedTelemetryEventSchema = Schema.Struct({
7852
- name: Schema.Literal("org_safe_created"),
7853
- props: OrgSafeCreatedProps
7854
- });
7855
- const OrgSafeConfirmedTelemetryEventSchema = Schema.Struct({
7856
- name: Schema.Literal("org_safe_confirmed"),
7857
- props: OrgSafeConfirmedProps
7858
- });
7859
- const OrgRolesSeededTelemetryEventSchema = Schema.Struct({
7860
- name: Schema.Literal("org_roles_seeded"),
7861
- props: OrgRolesSeededProps
7862
- });
7863
- const OrgCreatedTelemetryEventSchema = Schema.Struct({
7864
- name: Schema.Literal("org_created"),
7865
- props: OrgCreatedProps
7866
- });
7867
- const OrgCreateFailedTelemetryEventSchema = Schema.Struct({
7868
- name: Schema.Literal("org_create_failed"),
7869
- props: OrgCreateFailedProps
7870
- });
7871
7915
  const OrgInviteSentTelemetryEventSchema = Schema.Struct({
7872
7916
  name: Schema.Literal("org_invite_sent"),
7873
7917
  props: OrgInviteSentProps
@@ -8766,10 +8810,14 @@ const BootstrapFailedProps = Schema.Struct({
8766
8810
  });
8767
8811
  const MemberActivationStartedProps = Schema.Struct({
8768
8812
  ...TelemetryEnvelopeProps,
8813
+ entry_path: JourneyVariantProps.entry_path,
8814
+ surface: JourneyVariantProps.surface,
8769
8815
  $insert_id: Schema.String
8770
8816
  });
8771
8817
  const MemberActivationReadyProps = Schema.Struct({
8772
8818
  ...TelemetryEnvelopeProps,
8819
+ entry_path: JourneyVariantProps.entry_path,
8820
+ surface: JourneyVariantProps.surface,
8773
8821
  $insert_id: Schema.String,
8774
8822
  duration_ms: DurationMsSchema
8775
8823
  });
@@ -8905,12 +8953,6 @@ const TELEMETRY_EVENT_SCHEMAS = {
8905
8953
  bundler_error: BundlerErrorTelemetryEventSchema,
8906
8954
  receipt_pending: ReceiptPendingTelemetryEventSchema,
8907
8955
  operation_retried: OperationRetriedTelemetryEventSchema,
8908
- org_create_started: OrgCreateStartedTelemetryEventSchema,
8909
- org_safe_created: OrgSafeCreatedTelemetryEventSchema,
8910
- org_safe_confirmed: OrgSafeConfirmedTelemetryEventSchema,
8911
- org_roles_seeded: OrgRolesSeededTelemetryEventSchema,
8912
- org_created: OrgCreatedTelemetryEventSchema,
8913
- org_create_failed: OrgCreateFailedTelemetryEventSchema,
8914
8956
  org_invite_sent: OrgInviteSentTelemetryEventSchema,
8915
8957
  org_invite_accepted: OrgInviteAcceptedTelemetryEventSchema,
8916
8958
  org_invite_expired: OrgInviteExpiredTelemetryEventSchema,
@@ -8935,14 +8977,7 @@ const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS = [];
8935
8977
  * A domain node removes its entry when it adds the producer. The telemetry
8936
8978
  * gate rejects an entry that has a producer.
8937
8979
  */
8938
- const CONTRACT_FIRST_TELEMETRY_EVENTS = [
8939
- "org_create_started",
8940
- "org_safe_created",
8941
- "org_safe_confirmed",
8942
- "org_roles_seeded",
8943
- "org_created",
8944
- "org_create_failed"
8945
- ];
8980
+ const CONTRACT_FIRST_TELEMETRY_EVENTS = [];
8946
8981
  /**
8947
8982
  * Catalog events whose product mapper remains gated on the #1150 frontend
8948
8983
  * adoption. L1 S1 removes their retired SDK-flow producers without inventing
@@ -9523,4 +9558,4 @@ var InMemoryTelemetryBusAdapter = class extends EventOnlyPort {
9523
9558
  }
9524
9559
  };
9525
9560
  //#endregion
9526
- export { UiAccessStepCompletedTelemetryEventSchema as $, PII as $t, ProvisioningSafeConfirmedTelemetryEventSchema as A, BundlerErrorTelemetryEventSchema as At, AuthFailedTelemetryEventSchema as B, FaucetRequestedTelemetryEventSchema as Bt, MemberActivationFailedTelemetryEventSchema as C, OrgRolesSeededTelemetryEventSchema as Ct, OnboardingIntentSelectedTelemetryEventSchema as D, OrganizationCreationReadyTelemetryEventSchema as Dt, OnboardingDashboardReachedTelemetryEventSchema as E, OrganizationCreationFailedTelemetryEventSchema as Et, CliFirstUsedTelemetryEventSchema as F, AccountBalanceReadTelemetryEventSchema as Ft, AuthVerifiedTelemetryEventSchema as G, PaymentVerificationRetryTelemetryEventSchema as Gt, AuthOtpExpiredTelemetryEventSchema as H, PaymentInitiatedTelemetryEventSchema as Ht, CLI_CAPABILITIES as I, DepositInitiatedTelemetryEventSchema as It, NativeAuthorizationConnectedTelemetryEventSchema as J, ChainAttemptSchema as Jt, IdentityRefusedTelemetryEventSchema as K, QuickPayExternalAddressAcknowledgedTelemetryEventSchema as Kt, CLI_COMMAND_NAMES as L, DepositSettledTelemetryEventSchema as Lt, CliCommandCompletedTelemetryEventSchema as M, OperationRetriedTelemetryEventSchema as Mt, CliCommandStartedTelemetryEventSchema as N, ReceiptPendingTelemetryEventSchema as Nt, OnboardingOrganizationSubmittedTelemetryEventSchema as O, OrganizationCreationStartedTelemetryEventSchema as Ot, CliDiagnosticCompletedTelemetryEventSchema as P, AccountBalanceFailedTelemetryEventSchema as Pt, NativeAuthorizationStartedTelemetryEventSchema as Q, FailureModeSchema as Qt, CLI_INVOCATION_KINDS as R, FaucetConfirmedTelemetryEventSchema as Rt, BootstrapResolvedTelemetryEventSchema as S, OrgInviteSentTelemetryEventSchema as St, MemberActivationStartedTelemetryEventSchema as T, OrgSafeCreatedTelemetryEventSchema as Tt, AuthOtpRequestedTelemetryEventSchema as U, PaymentLifecycleTransitionTelemetryEventSchema as Ut, AuthOtpDeliveredTelemetryEventSchema as V, PaymentFailedTelemetryEventSchema as Vt, AuthSignedOutTelemetryEventSchema as W, PaymentSettledTelemetryEventSchema as Wt, NativeAuthorizationFailedTelemetryEventSchema as X, EXCEPTION_EVENT_NAME as Xt, NativeAuthorizationDeniedTelemetryEventSchema as Y, ChainUpstreamSchema as Yt, NativeAuthorizationReviewedTelemetryEventSchema as Z, EXPECTED_OUTCOME_EVENT_NAME as Zt, CONTRACT_FIRST_TELEMETRY_EVENTS as _, OrgCreateStartedTelemetryEventSchema as _t, initializeCapxulBrowserAnalytics as a, TELEMETRY_EVENT_NAMES as an, UiPayrollActionCompletedTelemetryEventSchema as at, TELEMETRY_EVENT_SCHEMAS as b, OrgInviteExpiredTelemetryEventSchema as bt, utilityAppAnalytics as c, normalizeCapxulOperation as cn, ActivityAnnotationSavedTelemetryEventSchema as ct, redactTelemetryEvent as d, redactSecrets as dn, MovementScanCheckpointTelemetryEventSchema as dt, ResponseHeadersSchema as en, InvoiceIssuedTelemetryEventSchema as et, redactTelemetryProps as f, redactUrlSecrets as fn, MovementScanIncidentTelemetryEventSchema as ft, BROWSER_GATED_TELEMETRY_EVENTS as g, OrgCreateFailedTelemetryEventSchema as gt, track as h, FAILURE_MODES as hn, ContactRelationshipChangedTelemetryEventSchema as ht, createPostHogBrowserPageviewTracker as i, TELEMETRY_JOURNEYS as in, UiInvoiceStepCompletedTelemetryEventSchema as it, ProvisioningSafeCreatedTelemetryEventSchema as j, ChainUpstreamFallbackTelemetryEventSchema as jt, OnboardingProfileSubmittedTelemetryEventSchema as k, UiContactActionCompletedTelemetryEventSchema as kt, sanitizePostHogBrowserEvent as l, ORGANIZATION_SETUP_REASONS as ln, UiActivityActionCompletedTelemetryEventSchema as lt, setTrackHandler as m, CAPXUL_ERROR_CODES as mn, PermissionMirrorVerificationTelemetryEventSchema as mt, RecordingTelemetryAdapter as n, TELEMETRY_PRODUCERS as nn, PayrollGroupChangedTelemetryEventSchema as nt, initializePostHogBrowserAnalytics as o, CAPXUL_OPERATIONS as on, UiReceiveStepCompletedTelemetryEventSchema as ot, getTrackHandler as p, isCredentialField as pn, MovementScanWindowTelemetryEventSchema as pt, NativeAuthorizationAcceptedTelemetryEventSchema as q, CAPXUL_ENVS as qt, createCapxulBeforeSend as r, stampTelemetryEnvelope as rn, PayrollRunTransitionedTelemetryEventSchema as rt, productAppAnalytics as s, isCapxulOperation as sn, UiTreasuryStepCompletedTelemetryEventSchema as st, InMemoryTelemetryBusAdapter as t, SYNCABLE_CAPXUL_ENVS as tn, InvoiceRequestTransitionedTelemetryEventSchema as tt, maskCapturedNetworkRequest as u, ORGANIZATION_SETUP_STATUSES as un, IndexerDriftCorrectedTelemetryEventSchema as ut, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS as v, OrgCreatedTelemetryEventSchema as vt, MemberActivationReadyTelemetryEventSchema as w, OrgSafeConfirmedTelemetryEventSchema as wt, BootstrapFailedTelemetryEventSchema as x, OrgInviteProgressedTelemetryEventSchema as xt, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS as y, OrgInviteAcceptedTelemetryEventSchema as yt, AccessRecoveryCompletedTelemetryEventSchema as z, FaucetFailedTelemetryEventSchema as zt };
9561
+ export { UiAccessStepCompletedTelemetryEventSchema as $, SYNCABLE_CAPXUL_ENVS as $t, ProvisioningSafeConfirmedTelemetryEventSchema as A, DepositInitiatedTelemetryEventSchema as At, AuthFailedTelemetryEventSchema as B, QuickPayExternalAddressAcknowledgedTelemetryEventSchema as Bt, MemberActivationFailedTelemetryEventSchema as C, UiContactActionCompletedTelemetryEventSchema as Ct, OnboardingIntentSelectedTelemetryEventSchema as D, ReceiptPendingTelemetryEventSchema as Dt, OnboardingDashboardReachedTelemetryEventSchema as E, OperationRetriedTelemetryEventSchema as Et, CliFirstUsedTelemetryEventSchema as F, PaymentFailedTelemetryEventSchema as Ft, AuthVerifiedTelemetryEventSchema as G, ChainUpstreamSchema as Gt, AuthOtpExpiredTelemetryEventSchema as H, TELEMETRY_JOURNEYS as Ht, CLI_CAPABILITIES as I, PaymentInitiatedTelemetryEventSchema as It, NativeAuthorizationConnectedTelemetryEventSchema as J, FailureModeSchema as Jt, IdentityRefusedTelemetryEventSchema as K, EXCEPTION_EVENT_NAME as Kt, CLI_COMMAND_NAMES as L, PaymentLifecycleTransitionTelemetryEventSchema as Lt, CliCommandCompletedTelemetryEventSchema as M, FaucetConfirmedTelemetryEventSchema as Mt, CliCommandStartedTelemetryEventSchema as N, FaucetFailedTelemetryEventSchema as Nt, OnboardingOrganizationSubmittedTelemetryEventSchema as O, AccountBalanceFailedTelemetryEventSchema as Ot, CliDiagnosticCompletedTelemetryEventSchema as P, FaucetRequestedTelemetryEventSchema as Pt, NativeAuthorizationStartedTelemetryEventSchema as Q, SDK_EXPECTED_OUTCOME_EVENT_NAME as Qt, CLI_INVOCATION_KINDS as R, PaymentSettledTelemetryEventSchema as Rt, BootstrapResolvedTelemetryEventSchema as S, OrganizationCreationStartedTelemetryEventSchema as St, MemberActivationStartedTelemetryEventSchema as T, ChainUpstreamFallbackTelemetryEventSchema as Tt, AuthOtpRequestedTelemetryEventSchema as U, CAPXUL_ENVS as Ut, AuthOtpDeliveredTelemetryEventSchema as V, JOURNEYS as Vt, AuthSignedOutTelemetryEventSchema as W, ChainAttemptSchema as Wt, NativeAuthorizationFailedTelemetryEventSchema as X, PII as Xt, NativeAuthorizationDeniedTelemetryEventSchema as Y, JourneyVariantProps as Yt, NativeAuthorizationReviewedTelemetryEventSchema as Z, ResponseHeadersSchema as Zt, CONTRACT_FIRST_TELEMETRY_EVENTS as _, OrgInviteExpiredTelemetryEventSchema as _t, initializeCapxulBrowserAnalytics as a, normalizeCapxulOperation as an, UiPayrollActionCompletedTelemetryEventSchema as at, TELEMETRY_EVENT_SCHEMAS as b, OrganizationCreationFailedTelemetryEventSchema as bt, utilityAppAnalytics as c, redactSecrets as cn, ActivityAnnotationSavedTelemetryEventSchema as ct, redactTelemetryEvent as d, CAPXUL_ERROR_CODES as dn, MovementScanCheckpointTelemetryEventSchema as dt, TELEMETRY_PRODUCERS as en, InvoiceIssuedTelemetryEventSchema as et, redactTelemetryProps as f, FAILURE_MODES as fn, MovementScanIncidentTelemetryEventSchema as ft, BROWSER_GATED_TELEMETRY_EVENTS as g, OrgInviteAcceptedTelemetryEventSchema as gt, track as h, ContactRelationshipChangedTelemetryEventSchema as ht, createPostHogBrowserPageviewTracker as i, isCapxulOperation as in, UiInvoiceStepCompletedTelemetryEventSchema as it, ProvisioningSafeCreatedTelemetryEventSchema as j, DepositSettledTelemetryEventSchema as jt, OnboardingProfileSubmittedTelemetryEventSchema as k, AccountBalanceReadTelemetryEventSchema as kt, sanitizePostHogBrowserEvent as l, redactUrlSecrets as ln, UiActivityActionCompletedTelemetryEventSchema as lt, setTrackHandler as m, PermissionMirrorVerificationTelemetryEventSchema as mt, RecordingTelemetryAdapter as n, TELEMETRY_EVENT_NAMES as nn, PayrollGroupChangedTelemetryEventSchema as nt, initializePostHogBrowserAnalytics as o, ORGANIZATION_SETUP_REASONS as on, UiReceiveStepCompletedTelemetryEventSchema as ot, getTrackHandler as p, MovementScanWindowTelemetryEventSchema as pt, NativeAuthorizationAcceptedTelemetryEventSchema as q, EXPECTED_OUTCOME_EVENT_NAME as qt, createCapxulBeforeSend as r, CAPXUL_OPERATIONS as rn, PayrollRunTransitionedTelemetryEventSchema as rt, productAppAnalytics as s, ORGANIZATION_SETUP_STATUSES as sn, UiTreasuryStepCompletedTelemetryEventSchema as st, InMemoryTelemetryBusAdapter as t, stampTelemetryEnvelope as tn, InvoiceRequestTransitionedTelemetryEventSchema as tt, maskCapturedNetworkRequest as u, isCredentialField as un, IndexerDriftCorrectedTelemetryEventSchema as ut, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS as v, OrgInviteProgressedTelemetryEventSchema as vt, MemberActivationReadyTelemetryEventSchema as w, BundlerErrorTelemetryEventSchema as wt, BootstrapFailedTelemetryEventSchema as x, OrganizationCreationReadyTelemetryEventSchema as xt, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS as y, OrgInviteSentTelemetryEventSchema as yt, AccessRecoveryCompletedTelemetryEventSchema as z, PaymentVerificationRetryTelemetryEventSchema as zt };