@capxul/sdk 4.0.1 → 4.1.0
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/{create-capxul-client-5Bk0PS0R.mjs → create-capxul-client-rpLwGwD-.mjs} +145 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.mjs +1 -1
- package/dist/{observation-DtzTdv20.d.mts → observation-Bcmb-GIA.d.mts} +1 -1
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.mjs +1 -1
- package/package.json +3 -3
|
@@ -440,12 +440,14 @@ const CAPXUL_OPERATIONS = {
|
|
|
440
440
|
},
|
|
441
441
|
activity: {
|
|
442
442
|
annotate: "activity.annotate",
|
|
443
|
+
emitAnnotationSaved: "activity.emitAnnotationSaved",
|
|
443
444
|
get: "activity.get",
|
|
444
445
|
list: "activity.list",
|
|
445
446
|
summary: "activity.summary"
|
|
446
447
|
},
|
|
447
448
|
addressBook: {
|
|
448
449
|
add: "addressBook.add",
|
|
450
|
+
emitRelationshipChanged: "addressBook.emitRelationshipChanged",
|
|
449
451
|
get: "addressBook.get",
|
|
450
452
|
hide: "addressBook.hide",
|
|
451
453
|
label: "addressBook.label",
|
|
@@ -1542,6 +1544,148 @@ Schema.Struct({
|
|
|
1542
1544
|
name: Schema.Literal("movement_scan_incident"),
|
|
1543
1545
|
props: MovementScanIncidentProps
|
|
1544
1546
|
});
|
|
1547
|
+
const ActivityReferenceProps = {
|
|
1548
|
+
reference_kind: Schema.Literals(["payment", "movement"]),
|
|
1549
|
+
reference_id: Schema.String
|
|
1550
|
+
};
|
|
1551
|
+
const ActivityFilterProps = {
|
|
1552
|
+
filter_kind: Schema.optional(Schema.Literals([
|
|
1553
|
+
"all",
|
|
1554
|
+
"payment",
|
|
1555
|
+
"movement"
|
|
1556
|
+
])),
|
|
1557
|
+
filter_direction: Schema.optional(Schema.Literals([
|
|
1558
|
+
"all",
|
|
1559
|
+
"in",
|
|
1560
|
+
"out",
|
|
1561
|
+
"self"
|
|
1562
|
+
])),
|
|
1563
|
+
filter_status: Schema.optional(Schema.Array(Schema.Literals([
|
|
1564
|
+
"pending",
|
|
1565
|
+
"settling",
|
|
1566
|
+
"pending_claim",
|
|
1567
|
+
"scheduled",
|
|
1568
|
+
"streaming",
|
|
1569
|
+
"settled",
|
|
1570
|
+
"cancelled",
|
|
1571
|
+
"failed"
|
|
1572
|
+
])))
|
|
1573
|
+
};
|
|
1574
|
+
const ActivityActionProps = {
|
|
1575
|
+
...TelemetryEnvelopeProps,
|
|
1576
|
+
scope_kind: Schema.Literals(["account", "organization"]),
|
|
1577
|
+
reason_code: Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES))
|
|
1578
|
+
};
|
|
1579
|
+
Schema.Struct({
|
|
1580
|
+
name: Schema.Literal("contact_relationship_changed"),
|
|
1581
|
+
props: Schema.Struct({
|
|
1582
|
+
...TelemetryEnvelopeProps,
|
|
1583
|
+
change: Schema.Literals([
|
|
1584
|
+
"added",
|
|
1585
|
+
"renamed",
|
|
1586
|
+
"hidden",
|
|
1587
|
+
"restored"
|
|
1588
|
+
]),
|
|
1589
|
+
scope_kind: Schema.Literals(["account", "organization"]),
|
|
1590
|
+
scope_id: Schema.String,
|
|
1591
|
+
owner_party_id: Schema.String,
|
|
1592
|
+
party_id: Schema.String,
|
|
1593
|
+
hidden: Schema.Boolean,
|
|
1594
|
+
occurred_at: Schema.Number,
|
|
1595
|
+
operation: Schema.Literals([
|
|
1596
|
+
CAPXUL_OPERATIONS.addressBook.add,
|
|
1597
|
+
CAPXUL_OPERATIONS.addressBook.label,
|
|
1598
|
+
CAPXUL_OPERATIONS.addressBook.hide,
|
|
1599
|
+
CAPXUL_OPERATIONS.addressBook.unhide
|
|
1600
|
+
])
|
|
1601
|
+
})
|
|
1602
|
+
});
|
|
1603
|
+
const ContactActionProps = {
|
|
1604
|
+
...TelemetryEnvelopeProps,
|
|
1605
|
+
scope_kind: Schema.Literals(["account", "organization"]),
|
|
1606
|
+
party_id: OptionalString,
|
|
1607
|
+
reason_code: Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES))
|
|
1608
|
+
};
|
|
1609
|
+
Schema.Struct({
|
|
1610
|
+
name: Schema.Literal("ui_contact_action_completed"),
|
|
1611
|
+
props: Schema.Union([
|
|
1612
|
+
Schema.Struct({
|
|
1613
|
+
...ContactActionProps,
|
|
1614
|
+
action: Schema.Literal("add"),
|
|
1615
|
+
outcome: Schema.Literals(["opened", "cancelled"])
|
|
1616
|
+
}),
|
|
1617
|
+
Schema.Struct({
|
|
1618
|
+
...ContactActionProps,
|
|
1619
|
+
action: Schema.Literal("refusal"),
|
|
1620
|
+
outcome: Schema.Literal("displayed")
|
|
1621
|
+
}),
|
|
1622
|
+
Schema.Struct({
|
|
1623
|
+
...ContactActionProps,
|
|
1624
|
+
action: Schema.Literal("retry"),
|
|
1625
|
+
outcome: Schema.Literal("requested")
|
|
1626
|
+
})
|
|
1627
|
+
])
|
|
1628
|
+
});
|
|
1629
|
+
Schema.Struct({
|
|
1630
|
+
name: Schema.Literal("activity_annotation_saved"),
|
|
1631
|
+
props: Schema.Struct({
|
|
1632
|
+
...TelemetryEnvelopeProps,
|
|
1633
|
+
...ActivityReferenceProps,
|
|
1634
|
+
scope_kind: Schema.Literals(["account", "organization"]),
|
|
1635
|
+
scope_id: Schema.String,
|
|
1636
|
+
occurred_at: Schema.Number
|
|
1637
|
+
})
|
|
1638
|
+
});
|
|
1639
|
+
Schema.Struct({
|
|
1640
|
+
name: Schema.Literal("ui_activity_action_completed"),
|
|
1641
|
+
props: Schema.Union([
|
|
1642
|
+
Schema.Struct({
|
|
1643
|
+
...ActivityActionProps,
|
|
1644
|
+
...ActivityFilterProps,
|
|
1645
|
+
action: Schema.Literal("filter"),
|
|
1646
|
+
outcome: Schema.Literal("committed")
|
|
1647
|
+
}),
|
|
1648
|
+
Schema.Struct({
|
|
1649
|
+
...ActivityActionProps,
|
|
1650
|
+
action: Schema.Literal("refusal"),
|
|
1651
|
+
outcome: Schema.Literal("displayed")
|
|
1652
|
+
}),
|
|
1653
|
+
Schema.Struct({
|
|
1654
|
+
...ActivityActionProps,
|
|
1655
|
+
action: Schema.Literal("retry"),
|
|
1656
|
+
outcome: Schema.Literal("requested")
|
|
1657
|
+
}),
|
|
1658
|
+
Schema.Struct({
|
|
1659
|
+
...ActivityActionProps,
|
|
1660
|
+
...ActivityReferenceProps,
|
|
1661
|
+
action: Schema.Literal("detail"),
|
|
1662
|
+
outcome: Schema.Literals(["opened", "failed"])
|
|
1663
|
+
}),
|
|
1664
|
+
Schema.Struct({
|
|
1665
|
+
...ActivityActionProps,
|
|
1666
|
+
...ActivityReferenceProps,
|
|
1667
|
+
action: Schema.Literal("receipt"),
|
|
1668
|
+
outcome: Schema.Literals([
|
|
1669
|
+
"document_rendered",
|
|
1670
|
+
"explorer_opened",
|
|
1671
|
+
"popup_blocked",
|
|
1672
|
+
"failed"
|
|
1673
|
+
])
|
|
1674
|
+
}),
|
|
1675
|
+
Schema.Struct({
|
|
1676
|
+
...ActivityActionProps,
|
|
1677
|
+
...ActivityFilterProps,
|
|
1678
|
+
action: Schema.Literal("export"),
|
|
1679
|
+
outcome: Schema.Literals([
|
|
1680
|
+
"completed",
|
|
1681
|
+
"partial",
|
|
1682
|
+
"failed"
|
|
1683
|
+
]),
|
|
1684
|
+
row_count: Schema.optional(Schema.Number),
|
|
1685
|
+
truncated: Schema.optional(Schema.Boolean)
|
|
1686
|
+
})
|
|
1687
|
+
])
|
|
1688
|
+
});
|
|
1545
1689
|
function redactTelemetryEvent(event, options = {}) {
|
|
1546
1690
|
const props = redactTelemetryProps(event.name, event.props, options);
|
|
1547
1691
|
return props === void 0 ? { name: event.name } : {
|
|
@@ -5043,7 +5187,7 @@ const moneyExecutionContract = {
|
|
|
5043
5187
|
};
|
|
5044
5188
|
//#endregion
|
|
5045
5189
|
//#region package.json
|
|
5046
|
-
var version = "4.0
|
|
5190
|
+
var version = "4.1.0";
|
|
5047
5191
|
//#endregion
|
|
5048
5192
|
//#region src/telemetry/exception-projection.ts
|
|
5049
5193
|
/** Fixed fallback for failures that have no safe message. */
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as EVM_ADDRESS_RE, Ct as RevertSummary, E as Address, G as OrgId, I as CountryCode, J as PayrollGroupId, K as PartyId, M as AuthUserId, P as BudgetId, St as FailureMode, T as AccountId, U as Handle, W as Money, Y as PayrollRunId, _t as isCapxulError, a as SignerStatusStore, bt as ChainUpstream, c as AccountProviderSource, ct as toHandle, d as eip1193AccountProvider, dt as CAPXUL_ERROR_CODES, et as RoleKey, f as localPrivateKeyAccountProvider, ft as CapxulError, g as SmartAccount, h as Session, ht as Errors, i as SignerStatus, j as AuthSession, l as AccountRequirement, lt as toPartyId, m as Profile, mt as CapxulErrorDetails, n as CapxulSigner, o as injectedWalletSigner, ot as toAddress, p as CapxulResult, pt as CapxulErrorCode, r as Eip1193RequestProvider, rt as TesterKind, s as AccountProvider, st as toCountryCode, t as CapxulDigestSigner, u as Eip1193Provider, ut as CAPXUL_PAYMENTS_V2_ADDRESS, vt as CHAIN_UPSTREAMS, w as Account, xt as FAILURE_MODES, yt as ChainCause } from "./signer-C0hZ6Kiy.mjs";
|
|
2
|
-
import { $ as OrganizationPaymentsMethods, $n as TelemetryPort, $t as DestinationListInput, A as OrgView, An as TargetsMethods, At as AddressBookMethods, B as PayrollGroupInput, Bn as OrgSetupStep, Bt as ActivityListParams, C as DetectPendingOrgInvitationsResult, Cn as PaymentType, Ct as ActorRelationshipMethods, D as OrgMethods, Dn as Ref, Dt as AddressBookAddInput, E as MemberView, En as RecipientResolution, Et as ActorRequestsMethods, F as RoleSpendCap, Fn as CompleteProfileInput, Ft as ActivityAnnotationInput, G as PayrollRun, Gn as InboxStatus, Gt as ActivitySummary, H as PayrollGroupsMethods, Hn as CurrentHoldings, Ht as ActivityPage, I as RoleView, In as IdentityMethods, It as ActivityDetail, J as PayrollRuns, Jn as PaymentStatus$1, Jt as ActorReference, K as PayrollRunItemInput, Kn as PAYMENT_DIRECTIONS, Kt as ActivitySummaryParams, L as AuthorizeRunInput, Ln as SmartAccountMethods, Lt as ActivityFilter, M as OrganizationAuditLogItem, Mn as AccountLifecycle, Mt as InboxItem, N as ResendInviteTokenInput, Nn as AccountSetupStep, Nt as InboxMethods, O as OrgScopedMethods, On as ResolvedTarget, Ot as AddressBookEntry, P as RoleDefinition, Pn as isSettingUpLifecycle, Pt as ActivityAnnotation, Q as OrganizationPaymentItemInput, Qt as DestinationKind, R as PayrollEngagementTerms, Rn as AuthMethods, Rt as ActivityItem, S as CreateOrgInput, Sn as PaymentTiming, St as ActorProfileMethods, T as MemberStatus, Tn as PaymentsPayInput, Tt as ActorRequestIssueInput, U as PayrollMethods, Un as Permission, Ut as ActivityRange, V as PayrollGroupMember, Vn as ActorRef, Vt as ActivityMethods, W as PayrollOptions, Wn as SubmittedPermissionExecution, Wt as ActivityReference, X as OrganizationPaymentBatchInput, Xt as Destination, Y as PayrollTermsUnit, Yn as RequestStatus, Yt as DepositInstructions, Z as OrganizationPaymentInput, Zt as DestinationAddInput, _ as SystemMethods, _n as PaymentDocumentRender, _t as PersonOnboarding, a as SdkFailureObservation, an as MeMethods, ar as StateLabel, at as PermissionReplaceInput, b as CurrentUserContext, bn as PaymentMoney, bt as AccountMethods, c as PostHogObservabilityOptions, cn as OfframpMethods, cr as isRestoring, ct as Budget, d as CreateCapxulClientInput, dn as OfframpStatus, dt as OrgMeOptions, en as DestinationPayload, er as Destination$1, et as PermissionAssignInput, f as IdentityProfileDetails, fn as Payment, ft as AccountsMethods, g as Holding, gn as PaymentDocumentRef, gt as OrganizationOnboardingInput, h as HoldingsMethods, hn as PaymentDocumentKind, ht as OrganizationOnboarding, i as ObservationDelivery, in as FinancialOpsMethods, ir as Readiness, it as PermissionOptions, j as OrganizationAccount, jn as fingerprintPaymentIntent, jt as InboxApproveInput, k as OrgTemplate, kn as TargetReference, kt as AddressBookLabelInput, l as postHogObservability, ln as OfframpQuote, lr as IdentityTransition, lt as OrgMe, m as IdentityRuntimeSendResult, mn as PaymentDirection, mt as OnboardingMethods, n as ObservationAdapter, nn as DestinationRemoveInput, nr as IdentityState, nt as PermissionCreateInput, o as HostObservability, on as MeProfile, or as destination, ot as PermissionRevokeInput, p as IdentityRuntime, pn as PaymentActivityEvidence, pt as CompletedPersonProfile, q as PayrollRunStatus, qn as PAYMENT_STATUSES, qt as ActivitySummaryTotal, r as ObservationContext, rn as DestinationsMethods, rr as OrgLane, rt as PermissionMethods, s as PostHogObservabilityClient, sn as MovementActivityEvidence, sr as isClaimed, st as PermissionReadResult, t as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, tn as DestinationRail, tr as IdentityEvent, tt as PermissionChangeInput, u as CapxulClient, un as OfframpQuoteInput, ur as InvocationControls, ut as OrgMeMethod, v as SystemHealth, vn as PaymentDocumentVerification, vt as PersonOnboardingInput, w as InviteMemberInput, wn as PaymentsMethods, wt as ActorRequest, x as CurrentUserMethods, xn as PaymentStatus, xt as ActorProfile, y as MediaMethods, yn as PaymentDocumentsMethods, yt as ReadyAccountLifecycle, z as PayrollGroup, zn as OrgLifecycle, zt as ActivityKind } from "./observation-
|
|
2
|
+
import { $ as OrganizationPaymentsMethods, $n as TelemetryPort, $t as DestinationListInput, A as OrgView, An as TargetsMethods, At as AddressBookMethods, B as PayrollGroupInput, Bn as OrgSetupStep, Bt as ActivityListParams, C as DetectPendingOrgInvitationsResult, Cn as PaymentType, Ct as ActorRelationshipMethods, D as OrgMethods, Dn as Ref, Dt as AddressBookAddInput, E as MemberView, En as RecipientResolution, Et as ActorRequestsMethods, F as RoleSpendCap, Fn as CompleteProfileInput, Ft as ActivityAnnotationInput, G as PayrollRun, Gn as InboxStatus, Gt as ActivitySummary, H as PayrollGroupsMethods, Hn as CurrentHoldings, Ht as ActivityPage, I as RoleView, In as IdentityMethods, It as ActivityDetail, J as PayrollRuns, Jn as PaymentStatus$1, Jt as ActorReference, K as PayrollRunItemInput, Kn as PAYMENT_DIRECTIONS, Kt as ActivitySummaryParams, L as AuthorizeRunInput, Ln as SmartAccountMethods, Lt as ActivityFilter, M as OrganizationAuditLogItem, Mn as AccountLifecycle, Mt as InboxItem, N as ResendInviteTokenInput, Nn as AccountSetupStep, Nt as InboxMethods, O as OrgScopedMethods, On as ResolvedTarget, Ot as AddressBookEntry, P as RoleDefinition, Pn as isSettingUpLifecycle, Pt as ActivityAnnotation, Q as OrganizationPaymentItemInput, Qt as DestinationKind, R as PayrollEngagementTerms, Rn as AuthMethods, Rt as ActivityItem, S as CreateOrgInput, Sn as PaymentTiming, St as ActorProfileMethods, T as MemberStatus, Tn as PaymentsPayInput, Tt as ActorRequestIssueInput, U as PayrollMethods, Un as Permission, Ut as ActivityRange, V as PayrollGroupMember, Vn as ActorRef, Vt as ActivityMethods, W as PayrollOptions, Wn as SubmittedPermissionExecution, Wt as ActivityReference, X as OrganizationPaymentBatchInput, Xt as Destination, Y as PayrollTermsUnit, Yn as RequestStatus, Yt as DepositInstructions, Z as OrganizationPaymentInput, Zt as DestinationAddInput, _ as SystemMethods, _n as PaymentDocumentRender, _t as PersonOnboarding, a as SdkFailureObservation, an as MeMethods, ar as StateLabel, at as PermissionReplaceInput, b as CurrentUserContext, bn as PaymentMoney, bt as AccountMethods, c as PostHogObservabilityOptions, cn as OfframpMethods, cr as isRestoring, ct as Budget, d as CreateCapxulClientInput, dn as OfframpStatus, dt as OrgMeOptions, en as DestinationPayload, er as Destination$1, et as PermissionAssignInput, f as IdentityProfileDetails, fn as Payment, ft as AccountsMethods, g as Holding, gn as PaymentDocumentRef, gt as OrganizationOnboardingInput, h as HoldingsMethods, hn as PaymentDocumentKind, ht as OrganizationOnboarding, i as ObservationDelivery, in as FinancialOpsMethods, ir as Readiness, it as PermissionOptions, j as OrganizationAccount, jn as fingerprintPaymentIntent, jt as InboxApproveInput, k as OrgTemplate, kn as TargetReference, kt as AddressBookLabelInput, l as postHogObservability, ln as OfframpQuote, lr as IdentityTransition, lt as OrgMe, m as IdentityRuntimeSendResult, mn as PaymentDirection, mt as OnboardingMethods, n as ObservationAdapter, nn as DestinationRemoveInput, nr as IdentityState, nt as PermissionCreateInput, o as HostObservability, on as MeProfile, or as destination, ot as PermissionRevokeInput, p as IdentityRuntime, pn as PaymentActivityEvidence, pt as CompletedPersonProfile, q as PayrollRunStatus, qn as PAYMENT_STATUSES, qt as ActivitySummaryTotal, r as ObservationContext, rn as DestinationsMethods, rr as OrgLane, rt as PermissionMethods, s as PostHogObservabilityClient, sn as MovementActivityEvidence, sr as isClaimed, st as PermissionReadResult, t as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, tn as DestinationRail, tr as IdentityEvent, tt as PermissionChangeInput, u as CapxulClient, un as OfframpQuoteInput, ur as InvocationControls, ut as OrgMeMethod, v as SystemHealth, vn as PaymentDocumentVerification, vt as PersonOnboardingInput, w as InviteMemberInput, wn as PaymentsMethods, wt as ActorRequest, x as CurrentUserMethods, xn as PaymentStatus, xt as ActorProfile, y as MediaMethods, yn as PaymentDocumentsMethods, yt as ReadyAccountLifecycle, z as PayrollGroup, zn as OrgLifecycle, zt as ActivityKind } from "./observation-Bcmb-GIA.mjs";
|
|
3
3
|
import "./OAuthBearerAuthClient-D-DLYlKj.mjs";
|
|
4
4
|
import { Context, Effect, Layer } from "effect";
|
|
5
5
|
import { Hex } from "viem";
|
|
@@ -47,12 +47,14 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
47
47
|
};
|
|
48
48
|
readonly activity: {
|
|
49
49
|
readonly annotate: "activity.annotate";
|
|
50
|
+
readonly emitAnnotationSaved: "activity.emitAnnotationSaved";
|
|
50
51
|
readonly get: "activity.get";
|
|
51
52
|
readonly list: "activity.list";
|
|
52
53
|
readonly summary: "activity.summary";
|
|
53
54
|
};
|
|
54
55
|
readonly addressBook: {
|
|
55
56
|
readonly add: "addressBook.add";
|
|
57
|
+
readonly emitRelationshipChanged: "addressBook.emitRelationshipChanged";
|
|
56
58
|
readonly get: "addressBook.get";
|
|
57
59
|
readonly hide: "addressBook.hide";
|
|
58
60
|
readonly label: "addressBook.label";
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as stampTelemetryEnvelope, A as safeExceptionLabel, B as resolveFailureMode, C as observeFailedResult, D as normalizeExceptionErrorKind, E as SDK_VERSION$1, F as causeChain, G as sanitizeObservationContext, H as readInvocationObservation, I as injectedWalletSigner, J as CAPXUL_FUNCTIONS, K as PAYMENT_DIRECTIONS, L as isSignerNotReadySignal, M as fromWei, N as isSettingUpLifecycle, O as normalizeExceptionOperation, P as formatTraceparent, Q as redactTelemetryProps, R as openfortSignerNotReadyCode, S as observationContextProps, T as EXCEPTION_MESSAGE, U as OBSERVATION_CONTEXT_HEADER, V as copyInvocationObservation, W as encodeObservationContextHeader, X as EngineeringTelemetryBootstrapPolicy, Y as BootstrapEnvelope, _ as fingerprintPaymentIntent, a as AccountReadPortTag, at as isRestoring, b as failureDetail, c as retryIdempotentRead, d as IdentityPortTag, et as CAPXUL_OPERATIONS, f as identityErrorFromCapxul, g as bootstrapErrorFromCapxul, h as BootstrapPortTag, i as smartAccountErrorFromCapxul, it as isClaimed, j as version, k as projectSdkException, l as PRODUCT_INVOCATION, m as convexCallErrorFromCapxul, n as detectAuthCacheAdapter, nt as normalizeCapxulOperation, o as accountReadErrorFromCapxul, p as ConvexCallPortTag, q as PAYMENT_STATUSES, r as SmartAccountPortTag, rt as destination, s as TelemetryPortTag, t as assembleCapxulClient, tt as isCapxulOperation, u as wireChainId, v as toWei, w as postHogFailureObservation, x as failureEvidenceProps, y as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, z as signerFailure } from "./create-capxul-client-
|
|
1
|
+
import { $ as stampTelemetryEnvelope, A as safeExceptionLabel, B as resolveFailureMode, C as observeFailedResult, D as normalizeExceptionErrorKind, E as SDK_VERSION$1, F as causeChain, G as sanitizeObservationContext, H as readInvocationObservation, I as injectedWalletSigner, J as CAPXUL_FUNCTIONS, K as PAYMENT_DIRECTIONS, L as isSignerNotReadySignal, M as fromWei, N as isSettingUpLifecycle, O as normalizeExceptionOperation, P as formatTraceparent, Q as redactTelemetryProps, R as openfortSignerNotReadyCode, S as observationContextProps, T as EXCEPTION_MESSAGE, U as OBSERVATION_CONTEXT_HEADER, V as copyInvocationObservation, W as encodeObservationContextHeader, X as EngineeringTelemetryBootstrapPolicy, Y as BootstrapEnvelope, _ as fingerprintPaymentIntent, a as AccountReadPortTag, at as isRestoring, b as failureDetail, c as retryIdempotentRead, d as IdentityPortTag, et as CAPXUL_OPERATIONS, f as identityErrorFromCapxul, g as bootstrapErrorFromCapxul, h as BootstrapPortTag, i as smartAccountErrorFromCapxul, it as isClaimed, j as version, k as projectSdkException, l as PRODUCT_INVOCATION, m as convexCallErrorFromCapxul, n as detectAuthCacheAdapter, nt as normalizeCapxulOperation, o as accountReadErrorFromCapxul, p as ConvexCallPortTag, q as PAYMENT_STATUSES, r as SmartAccountPortTag, rt as destination, s as TelemetryPortTag, t as assembleCapxulClient, tt as isCapxulOperation, u as wireChainId, v as toWei, w as postHogFailureObservation, x as failureEvidenceProps, y as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, z as signerFailure } from "./create-capxul-client-rpLwGwD-.mjs";
|
|
2
2
|
import { $ as CapxulError, A as toAuthUserId, B as toJwtToken, D as toAddress, E as toAccountId, F as toDurationMs, H as toOrgId, I as toEmail, J as toSessionToken, K as toPublishableKey, L as toEpochMs, M as toChainId, N as toCountryCode, O as toAllowedOrigin, P as toCurrencyCode, Q as CAPXUL_ERROR_CODES, R as toEpochSeconds, T as currencySymbolFor, U as toPartyId, V as toKycTier, X as HANDLE_RE, Y as toTesterKind, Z as decodeConvexError, d as AuthClientError, f as AuthClientPortTag, g as BASE_SEPOLIA_CHAIN_ID, h as normalizeBindingEmail, it as FAILURE_MODES, l as ClockPortTag, m as CAPXUL_PAYMENTS_V2_ADDRESS, nt as isCapxulError, q as toRoleKey, rt as CHAIN_UPSTREAMS, s as AuthCachePortTag, tt as Errors, u as authClientPortFromPromiseAdapter, x as EVM_ADDRESS_RE, z as toHandle } from "./clock-C2AUlq1V.mjs";
|
|
3
3
|
import { n as SystemClockLayer } from "./OAuthBearerAuthClient-BHvDR8_0.mjs";
|
|
4
4
|
import { Cause, Context, Data, Duration, Effect, Exit, Layer, Result, Schedule, SchemaIssue, SchemaParser, Scope, Tracer } from "effect";
|
|
@@ -279,7 +279,7 @@ interface TelemetryPort {
|
|
|
279
279
|
}
|
|
280
280
|
//#endregion
|
|
281
281
|
//#region ../observability/src/index.d.ts
|
|
282
|
-
declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "auth_signed_out", "onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "provisioning_safe_created", "provisioning_safe_confirmed", "bootstrap_resolved", "bootstrap_failed", "member_activation_started", "member_activation_ready", "member_activation_failed", "organization_creation_started", "organization_creation_ready", "organization_creation_failed", "chain_upstream_fallback", "bundler_error", "receipt_pending", "operation_retried", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_failed", "org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created", "org_create_failed", "org_invite_sent", "org_invite_accepted", "org_invite_expired", "payment_initiated", "payment_settled", "payment_failed", "payment_verification_retry", "payment_lifecycle_transition", "quick_pay_external_address_acknowledged", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident"];
|
|
282
|
+
declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "auth_signed_out", "onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "provisioning_safe_created", "provisioning_safe_confirmed", "bootstrap_resolved", "bootstrap_failed", "member_activation_started", "member_activation_ready", "member_activation_failed", "organization_creation_started", "organization_creation_ready", "organization_creation_failed", "chain_upstream_fallback", "bundler_error", "receipt_pending", "operation_retried", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_failed", "org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created", "org_create_failed", "org_invite_sent", "org_invite_accepted", "org_invite_expired", "payment_initiated", "payment_settled", "payment_failed", "payment_verification_retry", "payment_lifecycle_transition", "quick_pay_external_address_acknowledged", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident", "activity_annotation_saved", "ui_activity_action_completed", "contact_relationship_changed", "ui_contact_action_completed"];
|
|
283
283
|
type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
|
|
284
284
|
type TelemetryProps = Record<string, unknown>;
|
|
285
285
|
type TelemetryEvent = {
|
package/dist/testing/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qn as TelemetryIdentifyInput, Xn as TelemetryEvent, Zn as TelemetryGroupInput, lr as IdentityTransition, n as ObservationAdapter, u as CapxulClient } from "../observation-
|
|
1
|
+
import { Qn as TelemetryIdentifyInput, Xn as TelemetryEvent, Zn as TelemetryGroupInput, lr as IdentityTransition, n as ObservationAdapter, u as CapxulClient } from "../observation-Bcmb-GIA.mjs";
|
|
2
2
|
import { Effect, Layer } from "effect";
|
|
3
3
|
//#region src/testing/telemetry/RecordingTelemetryAdapter.d.ts
|
|
4
4
|
type RecordingTelemetryOperation = {
|
package/dist/testing/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as fromWei, Z as redactTelemetryEvent, f as identityErrorFromCapxul, g as bootstrapErrorFromCapxul, i as smartAccountErrorFromCapxul, m as convexCallErrorFromCapxul, o as accountReadErrorFromCapxul, t as assembleCapxulClient, u as wireChainId, v as toWei } from "../create-capxul-client-
|
|
1
|
+
import { M as fromWei, Z as redactTelemetryEvent, f as identityErrorFromCapxul, g as bootstrapErrorFromCapxul, i as smartAccountErrorFromCapxul, m as convexCallErrorFromCapxul, o as accountReadErrorFromCapxul, t as assembleCapxulClient, u as wireChainId, v as toWei } from "../create-capxul-client-rpLwGwD-.mjs";
|
|
2
2
|
import { $ as CapxulError, A as toAuthUserId, B as toJwtToken, D as toAddress, E as toAccountId, F as toDurationMs, I as toEmail, J as toSessionToken, K as toPublishableKey, L as toEpochMs, M as toChainId, N as toCountryCode, O as toAllowedOrigin, R as toEpochSeconds, V as toKycTier, _ as deriveCapxulSafeAddress, k as toAppId, n as InMemoryAuthCacheAdapter, t as readClockNow, tt as Errors, u as authClientPortFromPromiseAdapter, v as validateHandle, z as toHandle } from "../clock-C2AUlq1V.mjs";
|
|
3
3
|
import { Effect, Result, Semaphore } from "effect";
|
|
4
4
|
import { keccak256 } from "viem";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/sdk",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/Xelmar-tech/infrastructure.git",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@capxul/errors": "0.3.0",
|
|
52
52
|
"@capxul/typescript-config": "0.0.0",
|
|
53
53
|
"@capxul/wire": "0.7.0",
|
|
54
|
-
"@capxul/
|
|
55
|
-
"@capxul/
|
|
54
|
+
"@capxul/observability": "4.1.0",
|
|
55
|
+
"@capxul/types": "0.3.0"
|
|
56
56
|
},
|
|
57
57
|
"_permissionlessPinReason": "permissionless.toSafeSmartAccount is pinned to 0.3.4 for live Safe deployment E2E. Counterfactual address fixtures captured 2026-05-17 in packages/backend/convex/_shared/__tests__/counterfactual.test.ts and packages/config/tests/safe.test.ts must be re-verified before upgrading.",
|
|
58
58
|
"scripts": {
|