@meshconnect/uwc-types 0.16.1-snapshot.c7e65ce → 0.16.1-snapshot.fe29903

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -12,5 +12,4 @@ export * from './signature';
12
12
  export * from './transactions';
13
13
  export * from './errors';
14
14
  export * from './solana-message';
15
- export * from './observability';
16
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
package/dist/index.js CHANGED
@@ -12,5 +12,4 @@ export * from './signature';
12
12
  export * from './transactions';
13
13
  export * from './errors';
14
14
  export * from './solana-message';
15
- export * from './observability';
16
15
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshconnect/uwc-types",
3
- "version": "0.16.1-snapshot.c7e65ce",
3
+ "version": "0.16.1-snapshot.fe29903",
4
4
  "description": "TypeScript types for Universal Wallet Connector",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -12,4 +12,3 @@ export * from './signature'
12
12
  export * from './transactions'
13
13
  export * from './errors'
14
14
  export * from './solana-message'
15
- export * from './observability'
@@ -1,47 +0,0 @@
1
- /**
2
- * Vendor-agnostic observability primitives for the Universal Wallet Connector.
3
- *
4
- * These are leaf types — no dependency on the core event bus — so any package
5
- * (including consumers below UWC in the dep graph, e.g. link-v2) can import them
6
- * without pulling in `@meshconnect/uwc-core`. The richer `UWCTelemetryEvent` /
7
- * `UWCObserver` shapes live in `@meshconnect/uwc-core` because they reference the
8
- * core event names.
9
- *
10
- * UWC ships NO third-party telemetry SDK. The consumer implements the sinks and
11
- * wires them to whatever backend they run (Datadog, Amplitude, Segment, …).
12
- */
13
- export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
14
- /**
15
- * Pluggable logger. The default implementation (`createLogger`) is console-backed
16
- * and level-gated; inject your own to redirect UWC's internal logging into your
17
- * stack. Kept to the four standard levels so a consumer's existing logger usually
18
- * satisfies it without an adapter.
19
- */
20
- export interface Logger {
21
- debug(message: string, ...args: unknown[]): void;
22
- info(message: string, ...args: unknown[]): void;
23
- warn(message: string, ...args: unknown[]): void;
24
- error(message: string, ...args: unknown[]): void;
25
- }
26
- /**
27
- * Canonical wallet-handoff flow taxonomy.
28
- *
29
- * UWC is the single owner of this union so the two consumer layers (link-v2 and
30
- * v3) don't drift. The string values are deliberately frozen to match link-v2's
31
- * historical `wallet_flow_type` wire values so existing RUM / Segment facets keep
32
- * matching after a consumer switches to importing this type — this is a
33
- * lift-and-canonicalize, not a rename.
34
- *
35
- * Note: UWC's own `deriveWalletFlowType` only produces the extension / WC / TON /
36
- * in-wallet / unknown values. The `dapp_*` members are part of the frozen wire
37
- * taxonomy but are set only by a consumer with richer context — forward-compat,
38
- * not dead code.
39
- */
40
- export type WalletFlowType = 'browser_extension_flow' | 'wallet_connect_deep_link_flow' | 'wallet_connect_qr_flow' | 'dapp_deep_link_flow' | 'dapp_qr_flow' | 'ton_connect_qr_flow' | 'ton_connect_deep_link_flow' | 'in_wallet_browser_flow' | 'unknown';
41
- /**
42
- * Coarse runtime surface. Intentionally a small enum — never a raw user-agent
43
- * string, which is PII and high-cardinality. Used to decide whether mobile-only
44
- * heuristics (e.g. focus bracketing) apply to a handoff.
45
- */
46
- export type Platform = 'mobile' | 'desktop' | 'webview' | 'unknown';
47
- //# sourceMappingURL=observability.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"observability.d.ts","sourceRoot":"","sources":["../src/observability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;AAE1D;;;;;GAKG;AACH,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IAChD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IAC/C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IAC/C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;CACjD;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,cAAc,GACtB,wBAAwB,GACxB,+BAA+B,GAC/B,wBAAwB,GACxB,qBAAqB,GACrB,cAAc,GACd,qBAAqB,GACrB,4BAA4B,GAC5B,wBAAwB,GACxB,SAAS,CAAA;AAEb;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Vendor-agnostic observability primitives for the Universal Wallet Connector.
3
- *
4
- * These are leaf types — no dependency on the core event bus — so any package
5
- * (including consumers below UWC in the dep graph, e.g. link-v2) can import them
6
- * without pulling in `@meshconnect/uwc-core`. The richer `UWCTelemetryEvent` /
7
- * `UWCObserver` shapes live in `@meshconnect/uwc-core` because they reference the
8
- * core event names.
9
- *
10
- * UWC ships NO third-party telemetry SDK. The consumer implements the sinks and
11
- * wires them to whatever backend they run (Datadog, Amplitude, Segment, …).
12
- */
13
- export {};
14
- //# sourceMappingURL=observability.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"observability.js","sourceRoot":"","sources":["../src/observability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
@@ -1,59 +0,0 @@
1
- /**
2
- * Vendor-agnostic observability primitives for the Universal Wallet Connector.
3
- *
4
- * These are leaf types — no dependency on the core event bus — so any package
5
- * (including consumers below UWC in the dep graph, e.g. link-v2) can import them
6
- * without pulling in `@meshconnect/uwc-core`. The richer `UWCTelemetryEvent` /
7
- * `UWCObserver` shapes live in `@meshconnect/uwc-core` because they reference the
8
- * core event names.
9
- *
10
- * UWC ships NO third-party telemetry SDK. The consumer implements the sinks and
11
- * wires them to whatever backend they run (Datadog, Amplitude, Segment, …).
12
- */
13
-
14
- export type LogLevel = 'debug' | 'info' | 'warn' | 'error'
15
-
16
- /**
17
- * Pluggable logger. The default implementation (`createLogger`) is console-backed
18
- * and level-gated; inject your own to redirect UWC's internal logging into your
19
- * stack. Kept to the four standard levels so a consumer's existing logger usually
20
- * satisfies it without an adapter.
21
- */
22
- export interface Logger {
23
- debug(message: string, ...args: unknown[]): void
24
- info(message: string, ...args: unknown[]): void
25
- warn(message: string, ...args: unknown[]): void
26
- error(message: string, ...args: unknown[]): void
27
- }
28
-
29
- /**
30
- * Canonical wallet-handoff flow taxonomy.
31
- *
32
- * UWC is the single owner of this union so the two consumer layers (link-v2 and
33
- * v3) don't drift. The string values are deliberately frozen to match link-v2's
34
- * historical `wallet_flow_type` wire values so existing RUM / Segment facets keep
35
- * matching after a consumer switches to importing this type — this is a
36
- * lift-and-canonicalize, not a rename.
37
- *
38
- * Note: UWC's own `deriveWalletFlowType` only produces the extension / WC / TON /
39
- * in-wallet / unknown values. The `dapp_*` members are part of the frozen wire
40
- * taxonomy but are set only by a consumer with richer context — forward-compat,
41
- * not dead code.
42
- */
43
- export type WalletFlowType =
44
- | 'browser_extension_flow'
45
- | 'wallet_connect_deep_link_flow'
46
- | 'wallet_connect_qr_flow'
47
- | 'dapp_deep_link_flow'
48
- | 'dapp_qr_flow'
49
- | 'ton_connect_qr_flow'
50
- | 'ton_connect_deep_link_flow'
51
- | 'in_wallet_browser_flow'
52
- | 'unknown'
53
-
54
- /**
55
- * Coarse runtime surface. Intentionally a small enum — never a raw user-agent
56
- * string, which is PII and high-cardinality. Used to decide whether mobile-only
57
- * heuristics (e.g. focus bracketing) apply to a handoff.
58
- */
59
- export type Platform = 'mobile' | 'desktop' | 'webview' | 'unknown'