@capxul/observability 4.20.0-beta.27 → 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.
- package/dist/engineering.mjs +1 -1
- package/dist/index.d.mts +401 -378
- package/dist/index.mjs +2 -2
- package/dist/{src-BBVEFkzq.mjs → src-G-sneDMr.mjs} +284 -267
- package/package.json +3 -3
|
@@ -2887,6 +2887,15 @@ const probes = {
|
|
|
2887
2887
|
})
|
|
2888
2888
|
};
|
|
2889
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
|
|
2890
2899
|
//#region ../protocol/src/permissions/permission-schema.ts
|
|
2891
2900
|
/**
|
|
2892
2901
|
* One stored `setAllowance` call inside a command's expected authority set.
|
|
@@ -2925,12 +2934,19 @@ const BudgetScopeSchema = Schema.Struct({
|
|
|
2925
2934
|
})]),
|
|
2926
2935
|
actions: Schema.NonEmptyArray(Schema.Literals(["pay", "commitments"]))
|
|
2927
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);
|
|
2928
2943
|
/** The accepted product policy stored with one Permission revision. */
|
|
2929
2944
|
const CurrentPolicySchema = Schema.Union([Schema.Struct({
|
|
2930
2945
|
type: Schema.Literal("budget"),
|
|
2931
2946
|
asset: AssetIdSchema,
|
|
2932
2947
|
limit: Schema.NullOr(Schema.String),
|
|
2933
|
-
scope: BudgetScopeSchema
|
|
2948
|
+
scope: BudgetScopeSchema,
|
|
2949
|
+
refill: Schema.optional(BudgetRefillSchema)
|
|
2934
2950
|
}), Schema.Struct({ type: Schema.Literal("managePeople") })]);
|
|
2935
2951
|
const BudgetIntentSchema = CurrentPolicySchema.pipe(Schema.refine((value) => {
|
|
2936
2952
|
if (value.type !== "budget") return false;
|
|
@@ -2995,7 +3011,8 @@ const ResolvedPermissionBudgetPolicySchema = Schema.Struct({
|
|
|
2995
3011
|
"send",
|
|
2996
3012
|
"sendBatch",
|
|
2997
3013
|
"createCommitment"
|
|
2998
|
-
]))
|
|
3014
|
+
])),
|
|
3015
|
+
refill: Schema.optional(BudgetRefillSchema)
|
|
2999
3016
|
});
|
|
3000
3017
|
const PermissionRecipientBindingSchema = Schema.Struct({
|
|
3001
3018
|
accountId: AccountIdSchema$1,
|
|
@@ -3007,14 +3024,16 @@ const StoredPermissionIntentSchema = Schema.Union([Schema.Struct({
|
|
|
3007
3024
|
type: Schema.Literal("budget"),
|
|
3008
3025
|
asset: AssetIdSchema,
|
|
3009
3026
|
limit: Schema.NullOr(AssetAmountSchema),
|
|
3010
|
-
scope: Schema.optional(BudgetScopeSchema)
|
|
3027
|
+
scope: Schema.optional(BudgetScopeSchema),
|
|
3028
|
+
refill: Schema.optional(BudgetRefillSchema)
|
|
3011
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") })]);
|
|
3012
3030
|
/** Writes state every granted right and use a finite positive AssetAmount cap. */
|
|
3013
3031
|
const PermissionIntentSchema = Schema.Union([Schema.Struct({
|
|
3014
3032
|
type: Schema.Literal("budget"),
|
|
3015
3033
|
asset: AssetIdSchema,
|
|
3016
3034
|
limit: AssetAmountSchema,
|
|
3017
|
-
scope: BudgetScopeSchema
|
|
3035
|
+
scope: BudgetScopeSchema,
|
|
3036
|
+
refill: Schema.optional(BudgetRefillSchema)
|
|
3018
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") })]);
|
|
3019
3038
|
//#endregion
|
|
3020
3039
|
//#region ../protocol/src/permissions/replacement-schema.ts
|
|
@@ -3216,7 +3235,7 @@ const InviteGrantsSchema = Schema.Array(Schema.Union([
|
|
|
3216
3235
|
Schema.Struct({
|
|
3217
3236
|
type: Schema.Literal("new_budget"),
|
|
3218
3237
|
label: Schema.String.pipe(Schema.refine((value) => value.trim().length >= 1 && value.trim().length <= 128)),
|
|
3219
|
-
intent: BudgetIntentSchema
|
|
3238
|
+
intent: BudgetIntentSchema.pipe(Schema.refine((intent) => intent.refill !== "monthly", { message: "An invitation's new Budget cannot refill; change it once granted" }))
|
|
3220
3239
|
})
|
|
3221
3240
|
])).pipe(Schema.refine((grants) => {
|
|
3222
3241
|
if (grants.length < 1 || grants.length > 16) return false;
|
|
@@ -6412,7 +6431,9 @@ const PEOPLE_OPERATIONS = {
|
|
|
6412
6431
|
emitSafeConfirmed: "accounts.safes.emitSafeConfirmed",
|
|
6413
6432
|
readSafe: "accounts.safes.readSafe",
|
|
6414
6433
|
recordDeployment: "accounts.safes.recordDeployment"
|
|
6415
|
-
}
|
|
6434
|
+
},
|
|
6435
|
+
/** The home's requests to pay and Payments to retry, read in one query. */
|
|
6436
|
+
summaries: { loadNeedsYou: "accounts.summaries.loadNeedsYou" }
|
|
6416
6437
|
},
|
|
6417
6438
|
/** The host observer's names for `client.approvals.*`. */
|
|
6418
6439
|
approvals: {
|
|
@@ -6671,7 +6692,9 @@ emitSaved: "activity.annotations.emitSaved" },
|
|
|
6671
6692
|
pay: "organizationPayments.pay",
|
|
6672
6693
|
payBatch: "organizationPayments.payBatch",
|
|
6673
6694
|
prepareExecution: "organizationPayments.prepareExecution",
|
|
6674
|
-
retry: "organizationPayments.retry"
|
|
6695
|
+
retry: "organizationPayments.retry",
|
|
6696
|
+
cancel: "organizationPayments.cancel",
|
|
6697
|
+
redirect: "organizationPayments.redirect"
|
|
6675
6698
|
},
|
|
6676
6699
|
/**
|
|
6677
6700
|
* Payments' internal functions and the client's own method names; its public
|
|
@@ -6693,7 +6716,9 @@ emitSaved: "activity.annotations.emitSaved" },
|
|
|
6693
6716
|
loadContext: "payments.commands.loadContext",
|
|
6694
6717
|
loadExecutionContext: "payments.commands.loadExecutionContext",
|
|
6695
6718
|
/** The capped Budget a prepared Organization command spends from, before its allowance is read on chain. */
|
|
6696
|
-
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"
|
|
6697
6722
|
},
|
|
6698
6723
|
lifecycles: { prepareIntent: "payments.lifecycles.prepareIntent" },
|
|
6699
6724
|
/** The stored UserOperation of every money command: Payment, Permission and configuration. */
|
|
@@ -7031,12 +7056,6 @@ const TELEMETRY_EVENT_NAMES = [
|
|
|
7031
7056
|
"faucet_requested",
|
|
7032
7057
|
"faucet_confirmed",
|
|
7033
7058
|
"faucet_failed",
|
|
7034
|
-
"org_create_started",
|
|
7035
|
-
"org_safe_created",
|
|
7036
|
-
"org_safe_confirmed",
|
|
7037
|
-
"org_roles_seeded",
|
|
7038
|
-
"org_created",
|
|
7039
|
-
"org_create_failed",
|
|
7040
7059
|
"org_invite_sent",
|
|
7041
7060
|
"org_invite_accepted",
|
|
7042
7061
|
"org_invite_expired",
|
|
@@ -7074,181 +7093,6 @@ const TELEMETRY_EVENT_NAMES = [
|
|
|
7074
7093
|
"cli_command_completed"
|
|
7075
7094
|
];
|
|
7076
7095
|
//#endregion
|
|
7077
|
-
//#region src/catalog/journeys.ts
|
|
7078
|
-
const TELEMETRY_JOURNEYS = {
|
|
7079
|
-
returning_user_login: {
|
|
7080
|
-
type: "funnel",
|
|
7081
|
-
steps: [
|
|
7082
|
-
"auth_otp_requested",
|
|
7083
|
-
"auth_otp_delivered",
|
|
7084
|
-
"auth_verified"
|
|
7085
|
-
],
|
|
7086
|
-
drops_on: ["auth_otp_expired", "auth_failed"]
|
|
7087
|
-
},
|
|
7088
|
-
new_user_first_signin: {
|
|
7089
|
-
type: "funnel",
|
|
7090
|
-
steps: [
|
|
7091
|
-
"auth_otp_requested",
|
|
7092
|
-
"auth_otp_delivered",
|
|
7093
|
-
"auth_verified",
|
|
7094
|
-
"provisioning_safe_created",
|
|
7095
|
-
"provisioning_safe_confirmed"
|
|
7096
|
-
],
|
|
7097
|
-
drops_on: ["auth_otp_expired", "auth_failed"]
|
|
7098
|
-
},
|
|
7099
|
-
sign_out_session_close: {
|
|
7100
|
-
type: "point_event",
|
|
7101
|
-
point_event: "auth_signed_out"
|
|
7102
|
-
},
|
|
7103
|
-
member_activation: {
|
|
7104
|
-
type: "funnel",
|
|
7105
|
-
steps: ["member_activation_started", "member_activation_ready"],
|
|
7106
|
-
drops_on: ["member_activation_failed"]
|
|
7107
|
-
},
|
|
7108
|
-
organization_creation_lifecycle: {
|
|
7109
|
-
type: "funnel",
|
|
7110
|
-
steps: ["organization_creation_started", "organization_creation_ready"],
|
|
7111
|
-
drops_on: ["organization_creation_failed"]
|
|
7112
|
-
},
|
|
7113
|
-
new_member_personal_dashboard: {
|
|
7114
|
-
type: "funnel",
|
|
7115
|
-
steps: [
|
|
7116
|
-
"auth_verified",
|
|
7117
|
-
"onboarding_intent_selected",
|
|
7118
|
-
"onboarding_profile_submitted",
|
|
7119
|
-
"member_activation_ready",
|
|
7120
|
-
"onboarding_dashboard_reached"
|
|
7121
|
-
],
|
|
7122
|
-
step_filters: {
|
|
7123
|
-
onboarding_intent_selected: [{
|
|
7124
|
-
key: "intent",
|
|
7125
|
-
value: ["personal"],
|
|
7126
|
-
operator: "exact",
|
|
7127
|
-
type: "event"
|
|
7128
|
-
}, {
|
|
7129
|
-
key: "entry_point",
|
|
7130
|
-
value: ["signup"],
|
|
7131
|
-
operator: "exact",
|
|
7132
|
-
type: "event"
|
|
7133
|
-
}],
|
|
7134
|
-
onboarding_profile_submitted: [{
|
|
7135
|
-
key: "intent",
|
|
7136
|
-
value: ["personal"],
|
|
7137
|
-
operator: "exact",
|
|
7138
|
-
type: "event"
|
|
7139
|
-
}],
|
|
7140
|
-
onboarding_dashboard_reached: [{
|
|
7141
|
-
key: "intent",
|
|
7142
|
-
value: ["personal"],
|
|
7143
|
-
operator: "exact",
|
|
7144
|
-
type: "event"
|
|
7145
|
-
}]
|
|
7146
|
-
}
|
|
7147
|
-
},
|
|
7148
|
-
new_member_organization_dashboard: {
|
|
7149
|
-
type: "funnel",
|
|
7150
|
-
steps: [
|
|
7151
|
-
"auth_verified",
|
|
7152
|
-
"onboarding_intent_selected",
|
|
7153
|
-
"onboarding_profile_submitted",
|
|
7154
|
-
"onboarding_organization_submitted",
|
|
7155
|
-
"member_activation_started",
|
|
7156
|
-
"member_activation_ready",
|
|
7157
|
-
"organization_creation_started",
|
|
7158
|
-
"organization_creation_ready",
|
|
7159
|
-
"onboarding_dashboard_reached"
|
|
7160
|
-
],
|
|
7161
|
-
step_filters: {
|
|
7162
|
-
onboarding_intent_selected: [{
|
|
7163
|
-
key: "intent",
|
|
7164
|
-
value: ["organization"],
|
|
7165
|
-
operator: "exact",
|
|
7166
|
-
type: "event"
|
|
7167
|
-
}, {
|
|
7168
|
-
key: "entry_point",
|
|
7169
|
-
value: ["signup"],
|
|
7170
|
-
operator: "exact",
|
|
7171
|
-
type: "event"
|
|
7172
|
-
}],
|
|
7173
|
-
onboarding_profile_submitted: [{
|
|
7174
|
-
key: "intent",
|
|
7175
|
-
value: ["organization"],
|
|
7176
|
-
operator: "exact",
|
|
7177
|
-
type: "event"
|
|
7178
|
-
}],
|
|
7179
|
-
onboarding_dashboard_reached: [{
|
|
7180
|
-
key: "intent",
|
|
7181
|
-
value: ["organization"],
|
|
7182
|
-
operator: "exact",
|
|
7183
|
-
type: "event"
|
|
7184
|
-
}]
|
|
7185
|
-
}
|
|
7186
|
-
},
|
|
7187
|
-
existing_member_organization_dashboard: {
|
|
7188
|
-
type: "funnel",
|
|
7189
|
-
steps: [
|
|
7190
|
-
"onboarding_intent_selected",
|
|
7191
|
-
"onboarding_organization_submitted",
|
|
7192
|
-
"organization_creation_started",
|
|
7193
|
-
"organization_creation_ready",
|
|
7194
|
-
"onboarding_dashboard_reached"
|
|
7195
|
-
],
|
|
7196
|
-
step_filters: {
|
|
7197
|
-
onboarding_intent_selected: [{
|
|
7198
|
-
key: "intent",
|
|
7199
|
-
value: ["organization"],
|
|
7200
|
-
operator: "exact",
|
|
7201
|
-
type: "event"
|
|
7202
|
-
}, {
|
|
7203
|
-
key: "entry_point",
|
|
7204
|
-
value: ["dashboard"],
|
|
7205
|
-
operator: "exact",
|
|
7206
|
-
type: "event"
|
|
7207
|
-
}],
|
|
7208
|
-
onboarding_dashboard_reached: [{
|
|
7209
|
-
key: "intent",
|
|
7210
|
-
value: ["organization"],
|
|
7211
|
-
operator: "exact",
|
|
7212
|
-
type: "event"
|
|
7213
|
-
}]
|
|
7214
|
-
}
|
|
7215
|
-
},
|
|
7216
|
-
money_on_screen: {
|
|
7217
|
-
type: "point_event",
|
|
7218
|
-
point_event: "account_balance_read"
|
|
7219
|
-
},
|
|
7220
|
-
fund_account: {
|
|
7221
|
-
type: "funnel",
|
|
7222
|
-
steps: ["faucet_requested", "faucet_confirmed"],
|
|
7223
|
-
drops_on: ["faucet_failed"]
|
|
7224
|
-
},
|
|
7225
|
-
org_creation: {
|
|
7226
|
-
type: "funnel",
|
|
7227
|
-
steps: [
|
|
7228
|
-
"org_create_started",
|
|
7229
|
-
"org_safe_created",
|
|
7230
|
-
"org_safe_confirmed",
|
|
7231
|
-
"org_roles_seeded",
|
|
7232
|
-
"org_created"
|
|
7233
|
-
],
|
|
7234
|
-
drops_on: ["org_create_failed"]
|
|
7235
|
-
},
|
|
7236
|
-
org_member_onboarding: {
|
|
7237
|
-
type: "funnel",
|
|
7238
|
-
steps: ["org_invite_sent", "org_invite_accepted"],
|
|
7239
|
-
drops_on: ["org_invite_expired"]
|
|
7240
|
-
},
|
|
7241
|
-
direct_payment: {
|
|
7242
|
-
type: "funnel",
|
|
7243
|
-
steps: ["payment_initiated", "payment_settled"],
|
|
7244
|
-
drops_on: ["payment_failed"]
|
|
7245
|
-
},
|
|
7246
|
-
deposit: {
|
|
7247
|
-
type: "funnel",
|
|
7248
|
-
steps: ["deposit_initiated", "deposit_settled"]
|
|
7249
|
-
}
|
|
7250
|
-
};
|
|
7251
|
-
//#endregion
|
|
7252
7096
|
//#region src/catalog/values.ts
|
|
7253
7097
|
const OptionalString = Schema.optional(Schema.String);
|
|
7254
7098
|
const AddressSchema = Schema.String.pipe(Schema.decodeTo(Schema.String, {
|
|
@@ -7317,6 +7161,13 @@ const EXCEPTION_EVENT_NAME = "$exception";
|
|
|
7317
7161
|
* and classes only, not this evidence.
|
|
7318
7162
|
*/
|
|
7319
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";
|
|
7320
7171
|
const PII = Schema.String.pipe(Schema.brand("PII"));
|
|
7321
7172
|
/**
|
|
7322
7173
|
* Environment discriminator (ADR-0020 A1 amendment, 2026-08-07). PostHog
|
|
@@ -7444,6 +7295,239 @@ const UiStepProps = {
|
|
|
7444
7295
|
organization_id: OptionalOrgId,
|
|
7445
7296
|
reason_code: OptionalReasonCode
|
|
7446
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
|
+
};
|
|
7447
7531
|
//#endregion
|
|
7448
7532
|
//#region src/events/money.ts
|
|
7449
7533
|
/**
|
|
@@ -7533,6 +7617,8 @@ const PaymentInitiatedProps = Schema.Struct({
|
|
|
7533
7617
|
execution_id: OptionalString,
|
|
7534
7618
|
payment_lifecycle_id: OptionalString,
|
|
7535
7619
|
...TelemetryEnvelopeProps,
|
|
7620
|
+
payer_kind: JourneyVariantProps.payer_kind,
|
|
7621
|
+
surface: JourneyVariantProps.surface,
|
|
7536
7622
|
...RecipientTelemetryProps,
|
|
7537
7623
|
kind: Schema.String,
|
|
7538
7624
|
payment_id: Schema.String
|
|
@@ -7548,6 +7634,8 @@ const PaymentLifecycleProps = {
|
|
|
7548
7634
|
const PaymentSettledL2Props = Schema.Struct({
|
|
7549
7635
|
...PaymentLifecycleProps,
|
|
7550
7636
|
...TelemetryEnvelopeProps,
|
|
7637
|
+
payer_kind: JourneyVariantProps.payer_kind,
|
|
7638
|
+
surface: JourneyVariantProps.surface,
|
|
7551
7639
|
...RecipientTelemetryProps,
|
|
7552
7640
|
kind: Schema.String,
|
|
7553
7641
|
chain_id: Schema.Finite,
|
|
@@ -7755,6 +7843,7 @@ const OrganizationCreationStartedProps = Schema.Struct({
|
|
|
7755
7843
|
});
|
|
7756
7844
|
const OrganizationCreationReadyProps = Schema.Struct({
|
|
7757
7845
|
...TelemetryEnvelopeProps,
|
|
7846
|
+
surface: JourneyVariantProps.surface,
|
|
7758
7847
|
$insert_id: Schema.String,
|
|
7759
7848
|
organization_id: OrgIdTelemetrySchema,
|
|
7760
7849
|
attempt_number: AttemptNumberSchema,
|
|
@@ -7779,45 +7868,6 @@ const OrganizationCreationFailedProps = Schema.Struct({
|
|
|
7779
7868
|
...ORGANIZATION_SETUP_REASONS
|
|
7780
7869
|
]))
|
|
7781
7870
|
});
|
|
7782
|
-
const OrgCreateStartedProps = Schema.Struct({
|
|
7783
|
-
...TelemetryEnvelopeProps,
|
|
7784
|
-
org_id: OptionalOrgId,
|
|
7785
|
-
email_domain: OptionalString,
|
|
7786
|
-
template: OptionalString
|
|
7787
|
-
});
|
|
7788
|
-
const OrgSafeCreatedProps = Schema.Struct({
|
|
7789
|
-
...TelemetryEnvelopeProps,
|
|
7790
|
-
org_id: OptionalOrgId,
|
|
7791
|
-
chainId: OptionalChainId,
|
|
7792
|
-
safe_address: OptionalAddress
|
|
7793
|
-
});
|
|
7794
|
-
const OrgSafeConfirmedProps = Schema.Struct({
|
|
7795
|
-
...TelemetryEnvelopeProps,
|
|
7796
|
-
org_id: OptionalOrgId,
|
|
7797
|
-
chainId: OptionalChainId,
|
|
7798
|
-
safe_address: OptionalAddress,
|
|
7799
|
-
durationMs: OptionalDurationMs
|
|
7800
|
-
});
|
|
7801
|
-
const OrgRolesSeededProps = Schema.Struct({
|
|
7802
|
-
...TelemetryEnvelopeProps,
|
|
7803
|
-
org_id: OptionalOrgId,
|
|
7804
|
-
chainId: OptionalChainId,
|
|
7805
|
-
role: OptionalString,
|
|
7806
|
-
txHash: OptionalTxHash
|
|
7807
|
-
});
|
|
7808
|
-
const OrgCreatedProps = Schema.Struct({
|
|
7809
|
-
...TelemetryEnvelopeProps,
|
|
7810
|
-
org_id: OptionalOrgId,
|
|
7811
|
-
chainId: OptionalChainId,
|
|
7812
|
-
safe_address: OptionalAddress,
|
|
7813
|
-
durationMs: OptionalDurationMs
|
|
7814
|
-
});
|
|
7815
|
-
const OrgCreateFailedProps = Schema.Struct({
|
|
7816
|
-
...TelemetryEnvelopeProps,
|
|
7817
|
-
...ChainCauseTelemetryProps,
|
|
7818
|
-
org_id: OptionalOrgId,
|
|
7819
|
-
reason: OptionalString
|
|
7820
|
-
});
|
|
7821
7871
|
const OrgInviteSentProps = Schema.Struct({
|
|
7822
7872
|
...TelemetryEnvelopeProps,
|
|
7823
7873
|
org_id: OptionalOrgId,
|
|
@@ -7862,30 +7912,6 @@ const OrganizationCreationFailedTelemetryEventSchema = Schema.Struct({
|
|
|
7862
7912
|
name: Schema.Literal("organization_creation_failed"),
|
|
7863
7913
|
props: OrganizationCreationFailedProps
|
|
7864
7914
|
});
|
|
7865
|
-
const OrgCreateStartedTelemetryEventSchema = Schema.Struct({
|
|
7866
|
-
name: Schema.Literal("org_create_started"),
|
|
7867
|
-
props: OrgCreateStartedProps
|
|
7868
|
-
});
|
|
7869
|
-
const OrgSafeCreatedTelemetryEventSchema = Schema.Struct({
|
|
7870
|
-
name: Schema.Literal("org_safe_created"),
|
|
7871
|
-
props: OrgSafeCreatedProps
|
|
7872
|
-
});
|
|
7873
|
-
const OrgSafeConfirmedTelemetryEventSchema = Schema.Struct({
|
|
7874
|
-
name: Schema.Literal("org_safe_confirmed"),
|
|
7875
|
-
props: OrgSafeConfirmedProps
|
|
7876
|
-
});
|
|
7877
|
-
const OrgRolesSeededTelemetryEventSchema = Schema.Struct({
|
|
7878
|
-
name: Schema.Literal("org_roles_seeded"),
|
|
7879
|
-
props: OrgRolesSeededProps
|
|
7880
|
-
});
|
|
7881
|
-
const OrgCreatedTelemetryEventSchema = Schema.Struct({
|
|
7882
|
-
name: Schema.Literal("org_created"),
|
|
7883
|
-
props: OrgCreatedProps
|
|
7884
|
-
});
|
|
7885
|
-
const OrgCreateFailedTelemetryEventSchema = Schema.Struct({
|
|
7886
|
-
name: Schema.Literal("org_create_failed"),
|
|
7887
|
-
props: OrgCreateFailedProps
|
|
7888
|
-
});
|
|
7889
7915
|
const OrgInviteSentTelemetryEventSchema = Schema.Struct({
|
|
7890
7916
|
name: Schema.Literal("org_invite_sent"),
|
|
7891
7917
|
props: OrgInviteSentProps
|
|
@@ -8784,10 +8810,14 @@ const BootstrapFailedProps = Schema.Struct({
|
|
|
8784
8810
|
});
|
|
8785
8811
|
const MemberActivationStartedProps = Schema.Struct({
|
|
8786
8812
|
...TelemetryEnvelopeProps,
|
|
8813
|
+
entry_path: JourneyVariantProps.entry_path,
|
|
8814
|
+
surface: JourneyVariantProps.surface,
|
|
8787
8815
|
$insert_id: Schema.String
|
|
8788
8816
|
});
|
|
8789
8817
|
const MemberActivationReadyProps = Schema.Struct({
|
|
8790
8818
|
...TelemetryEnvelopeProps,
|
|
8819
|
+
entry_path: JourneyVariantProps.entry_path,
|
|
8820
|
+
surface: JourneyVariantProps.surface,
|
|
8791
8821
|
$insert_id: Schema.String,
|
|
8792
8822
|
duration_ms: DurationMsSchema
|
|
8793
8823
|
});
|
|
@@ -8923,12 +8953,6 @@ const TELEMETRY_EVENT_SCHEMAS = {
|
|
|
8923
8953
|
bundler_error: BundlerErrorTelemetryEventSchema,
|
|
8924
8954
|
receipt_pending: ReceiptPendingTelemetryEventSchema,
|
|
8925
8955
|
operation_retried: OperationRetriedTelemetryEventSchema,
|
|
8926
|
-
org_create_started: OrgCreateStartedTelemetryEventSchema,
|
|
8927
|
-
org_safe_created: OrgSafeCreatedTelemetryEventSchema,
|
|
8928
|
-
org_safe_confirmed: OrgSafeConfirmedTelemetryEventSchema,
|
|
8929
|
-
org_roles_seeded: OrgRolesSeededTelemetryEventSchema,
|
|
8930
|
-
org_created: OrgCreatedTelemetryEventSchema,
|
|
8931
|
-
org_create_failed: OrgCreateFailedTelemetryEventSchema,
|
|
8932
8956
|
org_invite_sent: OrgInviteSentTelemetryEventSchema,
|
|
8933
8957
|
org_invite_accepted: OrgInviteAcceptedTelemetryEventSchema,
|
|
8934
8958
|
org_invite_expired: OrgInviteExpiredTelemetryEventSchema,
|
|
@@ -8953,14 +8977,7 @@ const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS = [];
|
|
|
8953
8977
|
* A domain node removes its entry when it adds the producer. The telemetry
|
|
8954
8978
|
* gate rejects an entry that has a producer.
|
|
8955
8979
|
*/
|
|
8956
|
-
const CONTRACT_FIRST_TELEMETRY_EVENTS = [
|
|
8957
|
-
"org_create_started",
|
|
8958
|
-
"org_safe_created",
|
|
8959
|
-
"org_safe_confirmed",
|
|
8960
|
-
"org_roles_seeded",
|
|
8961
|
-
"org_created",
|
|
8962
|
-
"org_create_failed"
|
|
8963
|
-
];
|
|
8980
|
+
const CONTRACT_FIRST_TELEMETRY_EVENTS = [];
|
|
8964
8981
|
/**
|
|
8965
8982
|
* Catalog events whose product mapper remains gated on the #1150 frontend
|
|
8966
8983
|
* adoption. L1 S1 removes their retired SDK-flow producers without inventing
|
|
@@ -9541,4 +9558,4 @@ var InMemoryTelemetryBusAdapter = class extends EventOnlyPort {
|
|
|
9541
9558
|
}
|
|
9542
9559
|
};
|
|
9543
9560
|
//#endregion
|
|
9544
|
-
export { UiAccessStepCompletedTelemetryEventSchema as $,
|
|
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 };
|