@cross-deck/react-native 1.0.0 → 1.5.1

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.
@@ -0,0 +1,493 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "generatedAt": "2026-05-27T10:40:46.099Z",
4
+ "sdk": "@cross-deck/react-native",
5
+ "sdkVersion": "1.5.1",
6
+ "bundledIn": "@cross-deck/react-native@1.5.1",
7
+ "count": 8,
8
+ "contracts": [
9
+ {
10
+ "id": "contract-failed-payload-schema-lock",
11
+ "pillar": "diagnostics",
12
+ "status": "enforced",
13
+ "claim": "The `crossdeck.contract_failed` event payload contains ONLY the named diagnostic fields and never any end-user personal data. The wire shape is fixed — adding a new field requires (1) a pull request that updates this contract's `allowedFields` set, (2) a Privacy Policy §6 amendment, and (3) the Customer Disclosure Template / SDK Data Collection Reference §B updates. Per-SDK assertion tests enforce the field set on every release. The `verification_phase` field is a categorical bucket — values are restricted to `boot` (the SDK self-test ran on Crossdeck.start) or `hot_path` (a verifier observed a real customer-triggered operation). The categorical nature is what preserves the diagnostic-only-not-personal classification. This is the structural guarantee that backs the independent-controller lawful basis in the Privacy Policy: the payload remains diagnostic-only, not personal, so the legitimate-interest analysis stays valid as the SDK evolves.",
14
+ "appliesTo": [
15
+ "web",
16
+ "node",
17
+ "swift",
18
+ "android",
19
+ "react-native"
20
+ ],
21
+ "allowedFields": {
22
+ "required": [
23
+ "contract_id",
24
+ "sdk_version",
25
+ "sdk_platform",
26
+ "failure_reason",
27
+ "run_context",
28
+ "run_id"
29
+ ],
30
+ "optional": [
31
+ "test_file",
32
+ "test_name",
33
+ "device_class",
34
+ "verification_phase"
35
+ ],
36
+ "forbidden": [
37
+ "anonymousId",
38
+ "developerUserId",
39
+ "crossdeckCustomerId",
40
+ "email",
41
+ "ip",
42
+ "user_agent",
43
+ "message",
44
+ "stack",
45
+ "stack_trace",
46
+ "frames",
47
+ "exception_message",
48
+ "url",
49
+ "path",
50
+ "screen",
51
+ "title",
52
+ "label",
53
+ "text",
54
+ "ariaLabel",
55
+ "accessibilityLabel",
56
+ "contentDescription",
57
+ "session_id",
58
+ "sessionId"
59
+ ]
60
+ },
61
+ "transport": "Telemetry is single-fire to the Crossdeck reliability endpoint only — NOT the customer's appId. The customer's track() pipeline never carries `crossdeck.*` events; the customer's dashboard never shows individual contract failures. Operational telemetry flows one-way to the Crossdeck operations team for SDK reliability purposes (legitimate interest, independent-controller flow per Privacy Policy §6). The reliability endpoint is hardcoded at SDK build time; the publishable key for the reliability project is embedded as a constant and rejects writes that don't match the schema.",
62
+ "codeRef": [
63
+ "sdks/web/src/crossdeck.ts",
64
+ "sdks/node/src/crossdeck-server.ts",
65
+ "sdks/swift/Sources/Crossdeck/Crossdeck.swift",
66
+ "sdks/swift/Sources/Crossdeck/_DiagnosticTelemetry.swift",
67
+ "sdks/android/crossdeck/src/main/kotlin/com/crossdeck/Crossdeck.kt",
68
+ "sdks/android/crossdeck/src/main/kotlin/com/crossdeck/_DiagnosticTelemetry.kt",
69
+ "sdks/react-native/src/crossdeck.ts",
70
+ "backend/src/api/v1-sdk-diagnostic.ts",
71
+ "sdks/web/src/_diagnostic-telemetry.ts",
72
+ "sdks/node/src/_diagnostic-telemetry.ts",
73
+ "sdks/react-native/src/_diagnostic-telemetry.ts"
74
+ ],
75
+ "testRef": [
76
+ {
77
+ "file": "sdks/web/tests/contract-failed-schema-lock.test.ts",
78
+ "name": "reportContractFailure payload conforms to schema-lock"
79
+ },
80
+ {
81
+ "file": "sdks/node/tests/contract-failed-schema-lock.test.ts",
82
+ "name": "reportContractFailure payload conforms to schema-lock"
83
+ },
84
+ {
85
+ "file": "sdks/swift/Tests/CrossdeckTests/ContractFailedSchemaLockTests.swift",
86
+ "name": "test_reportContractFailure_payloadFieldsAreInAllowList"
87
+ },
88
+ {
89
+ "file": "sdks/swift/Tests/CrossdeckTests/ContractFailedSchemaLockTests.swift",
90
+ "name": "test_reportContractFailure_doesNotEnterCustomerTrackPipeline"
91
+ },
92
+ {
93
+ "file": "sdks/android/crossdeck/src/test/kotlin/com/crossdeck/ContractFailedSchemaLockTest.kt",
94
+ "name": "reportContractFailure payload conforms to schema-lock"
95
+ },
96
+ {
97
+ "file": "sdks/android/crossdeck/src/test/kotlin/com/crossdeck/ContractFailedSchemaLockTest.kt",
98
+ "name": "reportContractFailure does not enter customer track pipeline"
99
+ },
100
+ {
101
+ "file": "sdks/react-native/tests/contract-failed-schema-lock.test.ts",
102
+ "name": "reportContractFailure payload conforms to schema-lock"
103
+ },
104
+ {
105
+ "file": "backend/tests/unit/v1-sdk-diagnostic.test.ts",
106
+ "name": "forbidden fields are enumerated in the schema-lock contract"
107
+ },
108
+ {
109
+ "file": "backend/tests/unit/v1-sdk-diagnostic.test.ts",
110
+ "name": "required fields are enumerated in the schema-lock contract"
111
+ },
112
+ {
113
+ "file": "backend/tests/unit/v1-sdk-diagnostic.test.ts",
114
+ "name": "regression guard: never returns a raw IP"
115
+ },
116
+ {
117
+ "file": "backend/tests/unit/v1-sdk-diagnostic.test.ts",
118
+ "name": "verification_phase is in the optional field set"
119
+ }
120
+ ],
121
+ "registeredAt": "2026-05-27",
122
+ "firstRegisteredIn": "Diagnostic telemetry single-fire + schema-lock — independent-controller flow",
123
+ "privacyReferences": [
124
+ "legal/privacy/index.html#sdk-diagnostic",
125
+ "legal/customer-disclosure/index.html#flow-b",
126
+ "legal/security/index.html#diagnostic",
127
+ "legal/sdk-data/index.html#b-diagnostic"
128
+ ],
129
+ "bundledIn": "@cross-deck/react-native@1.5.1"
130
+ },
131
+ {
132
+ "id": "error-envelope-shape",
133
+ "pillar": "errors",
134
+ "status": "enforced",
135
+ "claim": "Every v1 REST endpoint returns errors in a Stripe-shape envelope: `{ error: { type, code, message, request_id } }` where `type` is one of authentication_error / permission_error / invalid_request_error / rate_limit_error / internal_error (the wire vocabulary in backend/src/api/v1-errors.ts ApiErrorType). HTTP status parity: invalid_request_error → 400, authentication_error → 401, permission_error → 403, rate_limit_error → 429, internal_error → 500. SDK-side clients parse this shape via `crossdeckErrorFromResponse` (Web/Node/RN) / `crossdeckErrorFrom(response:)` (Swift) / `crossdeckErrorFromResponse` (Android) and surface the request_id verbatim so support traces are end-to-end joinable. Firebase callable endpoints (managed-keys / dashboard auth) use the Firebase HttpsError envelope instead — this contract applies to REST /v1/* only.",
136
+ "appliesTo": [
137
+ "web",
138
+ "node",
139
+ "react-native",
140
+ "swift",
141
+ "android",
142
+ "backend"
143
+ ],
144
+ "codeRef": [
145
+ "backend/src/api/v1-errors.ts",
146
+ "sdks/web/src/errors.ts",
147
+ "sdks/node/src/errors.ts",
148
+ "sdks/react-native/src/errors.ts",
149
+ "sdks/swift/Sources/Crossdeck/Errors.swift",
150
+ "sdks/android/crossdeck/src/main/kotlin/com/crossdeck/Errors.kt"
151
+ ],
152
+ "testRef": [
153
+ {
154
+ "file": "sdks/swift/Tests/CrossdeckTests/ErrorsTests.swift",
155
+ "name": "test_errorEnvelope_fallsBackOnGarbageBody"
156
+ },
157
+ {
158
+ "file": "sdks/swift/Tests/CrossdeckTests/ErrorsTests.swift",
159
+ "name": "test_errorEnvelope_reads_XRequestId_fallback"
160
+ },
161
+ {
162
+ "file": "sdks/android/crossdeck/src/test/kotlin/com/crossdeck/ErrorTypeWireVocabTest.kt",
163
+ "name": "backend 500 response parses to INTERNAL_ERROR"
164
+ }
165
+ ],
166
+ "registeredAt": "2026-05-26",
167
+ "firstRegisteredIn": "bank-grade reconciliation v1.4.0 — phase 8 (codifies existing contract)",
168
+ "bundledIn": "@cross-deck/react-native@1.5.1"
169
+ },
170
+ {
171
+ "id": "flush-interval-parity",
172
+ "pillar": "analytics",
173
+ "status": "enforced",
174
+ "claim": "Every Crossdeck SDK defaults its event-queue flush interval to 2000ms — the Stripe-adjacent industry norm. Pre-v1.4.0 the defaults disagreed (Web/Node 1500ms; RN/Swift/Android 5000ms), so cross-platform funnels saw events landing at different cadences. Per-instance override stays — call sites can still tune it freely.",
175
+ "appliesTo": [
176
+ "web",
177
+ "node",
178
+ "react-native",
179
+ "swift",
180
+ "android"
181
+ ],
182
+ "codeRef": [
183
+ "sdks/web/src/crossdeck.ts",
184
+ "sdks/node/src/crossdeck-server.ts",
185
+ "sdks/react-native/src/crossdeck.ts",
186
+ "sdks/swift/Sources/Crossdeck/EventQueue.swift",
187
+ "sdks/android/crossdeck/src/main/kotlin/com/crossdeck/EventQueue.kt"
188
+ ],
189
+ "testRef": [
190
+ {
191
+ "file": "sdks/swift/Sources/Crossdeck/EventQueue.swift",
192
+ "name": "flushIntervalMs: Int = 2_000"
193
+ },
194
+ {
195
+ "file": "sdks/android/crossdeck/src/main/kotlin/com/crossdeck/EventQueue.kt",
196
+ "name": "flushIntervalMs: Long = 2_000L"
197
+ },
198
+ {
199
+ "file": "sdks/web/src/crossdeck.ts",
200
+ "name": "options.eventFlushIntervalMs ?? 2000"
201
+ },
202
+ {
203
+ "file": "sdks/node/src/crossdeck-server.ts",
204
+ "name": "options.eventFlushIntervalMs ?? 2000"
205
+ },
206
+ {
207
+ "file": "sdks/react-native/src/crossdeck.ts",
208
+ "name": "options.eventFlushIntervalMs ?? 2000"
209
+ }
210
+ ],
211
+ "registeredAt": "2026-05-26",
212
+ "firstRegisteredIn": "bank-grade reconciliation v1.4.0 — phase 3.3",
213
+ "bundledIn": "@cross-deck/react-native@1.5.1"
214
+ },
215
+ {
216
+ "id": "idempotency-key-deterministic",
217
+ "pillar": "revenue",
218
+ "status": "enforced",
219
+ "claim": "syncPurchases() on every SDK derives a deterministic Idempotency-Key from the request body (UUID-shaped SHA-256 of `crossdeck:purchases/sync:<rail>:<jws|token>`). Same input -> same key. Backend short-circuits same-key-same-body retries by returning the cached response (status + body) with `idempotent_replay: true` flag in the body AND `Idempotent-Replayed: true` response header. Same-key-different-body returns 400 `idempotency_key_in_use`. 24-hour TTL matches Stripe. Cache only stores 2xx responses — 4xx/5xx pass through so callers can fix bugs and retry. Helper returns nil/throws on missing identifier (no silent random fallback). Cross-SDK parity is CI-pinned: deriveForPurchase('apple', 'eyJ.jws.sig') MUST equal 'a66b1640-efaf-bb4d-1261-6650033bf111' on every SDK.",
220
+ "appliesTo": [
221
+ "web",
222
+ "node",
223
+ "react-native",
224
+ "swift",
225
+ "android",
226
+ "backend"
227
+ ],
228
+ "codeRef": [
229
+ "sdks/web/src/idempotency-key.ts",
230
+ "sdks/web/src/crossdeck.ts",
231
+ "sdks/react-native/src/idempotency-key.ts",
232
+ "sdks/react-native/src/crossdeck.ts",
233
+ "sdks/node/src/idempotency-key.ts",
234
+ "sdks/node/src/crossdeck-server.ts",
235
+ "sdks/swift/Sources/Crossdeck/IdempotencyKey.swift",
236
+ "sdks/swift/Sources/Crossdeck/Crossdeck.swift",
237
+ "sdks/android/crossdeck/src/main/kotlin/com/crossdeck/IdempotencyKey.kt",
238
+ "sdks/android/crossdeck/src/main/kotlin/com/crossdeck/Crossdeck.kt",
239
+ "backend/src/lib/idempotency-response-cache.ts",
240
+ "backend/src/api/v1-purchases.ts"
241
+ ],
242
+ "testRef": [
243
+ {
244
+ "file": "sdks/web/tests/idempotency-key.test.ts",
245
+ "name": "cross-SDK oracle — apple JWS pins canonical vector"
246
+ },
247
+ {
248
+ "file": "sdks/web/tests/idempotency-key.test.ts",
249
+ "name": "is deterministic: same body twice -> identical key"
250
+ },
251
+ {
252
+ "file": "sdks/web/tests/idempotency-key.test.ts",
253
+ "name": "same identifier under different rails -> different keys"
254
+ },
255
+ {
256
+ "file": "sdks/web/tests/idempotency-key.test.ts",
257
+ "name": "never silently falls back to a random key on missing identifier"
258
+ },
259
+ {
260
+ "file": "sdks/react-native/tests/idempotency-key.test.ts",
261
+ "name": "is deterministic"
262
+ },
263
+ {
264
+ "file": "sdks/react-native/tests/idempotency-key.test.ts",
265
+ "name": "cross-SDK oracle — apple JWS pins canonical vector"
266
+ },
267
+ {
268
+ "file": "sdks/node/tests/idempotency-key.test.ts",
269
+ "name": "is deterministic"
270
+ },
271
+ {
272
+ "file": "sdks/node/tests/idempotency-key.test.ts",
273
+ "name": "rail namespacing prevents cross-rail collisions"
274
+ },
275
+ {
276
+ "file": "sdks/node/tests/idempotency-key.test.ts",
277
+ "name": "apple JWS produces the canonical pinned UUID across all 5 SDKs"
278
+ },
279
+ {
280
+ "file": "backend/tests/unit/idempotency-response-cache.test.ts",
281
+ "name": "is deterministic for the same input"
282
+ },
283
+ {
284
+ "file": "backend/tests/unit/idempotency-response-cache.test.ts",
285
+ "name": "injects idempotent_replay: true into a JSON object body"
286
+ },
287
+ {
288
+ "file": "backend/tests/unit/idempotency-response-cache.test.ts",
289
+ "name": "matches Stripe's 24-hour idempotency window"
290
+ },
291
+ {
292
+ "file": "sdks/swift/Tests/CrossdeckTests/IdempotencyKeyTests.swift",
293
+ "name": "test_crossSdkOracle_appleJWS"
294
+ },
295
+ {
296
+ "file": "sdks/swift/Tests/CrossdeckTests/IdempotencyKeyTests.swift",
297
+ "name": "test_railNamespacing_preventsCrossRailCollisions"
298
+ },
299
+ {
300
+ "file": "sdks/swift/Tests/CrossdeckTests/IdempotencyKeyTests.swift",
301
+ "name": "test_missingIdentifier_returnsNil"
302
+ },
303
+ {
304
+ "file": "sdks/android/crossdeck/src/test/kotlin/com/crossdeck/IdempotencyKeyTest.kt",
305
+ "name": "cross-SDK oracle for apple JWS"
306
+ },
307
+ {
308
+ "file": "sdks/android/crossdeck/src/test/kotlin/com/crossdeck/IdempotencyKeyTest.kt",
309
+ "name": "rail namespacing prevents cross-rail collisions"
310
+ },
311
+ {
312
+ "file": "sdks/android/crossdeck/src/test/kotlin/com/crossdeck/IdempotencyKeyTest.kt",
313
+ "name": "missing identifier returns null - never silent random fallback"
314
+ }
315
+ ],
316
+ "registeredAt": "2026-05-26",
317
+ "firstRegisteredIn": "bank-grade reconciliation v1.4.0 — phase 2.2.a + 2.2.b + 2.2.c",
318
+ "bundledIn": "@cross-deck/react-native@1.5.1"
319
+ },
320
+ {
321
+ "id": "init-reentry-drains-prior-queue",
322
+ "pillar": "lifecycle",
323
+ "status": "enforced",
324
+ "claim": "Web + RN init() re-entry drains the prior EventQueue's pending setTimeout BEFORE replacing this.state. Pre-v1.4.0 the teardown handled autoTracker/webVitals/errors/unloadFlush but NOT events, so the prior queue's timer would fire AFTER the state swap — sending old-init events against new-init http + identity references (cross-identity leak during HMR / config swap / multi-tenant SDK shells). The teardown CANNOT call persistent.clear() — the durable queue belongs to the SDK lifetime, not the init() lifetime, and a survived crash mid-flush re-hydrates on the next init.",
325
+ "appliesTo": [
326
+ "web",
327
+ "react-native"
328
+ ],
329
+ "codeRef": [
330
+ "sdks/web/src/crossdeck.ts",
331
+ "sdks/react-native/src/crossdeck.ts"
332
+ ],
333
+ "testRef": [
334
+ {
335
+ "file": "sdks/web/tests/init-reentry.test.ts",
336
+ "name": "re-init drains the prior queue's pending timer before swapping state"
337
+ },
338
+ {
339
+ "file": "sdks/web/tests/init-reentry.test.ts",
340
+ "name": "re-init does NOT wipe the durable event store"
341
+ }
342
+ ],
343
+ "registeredAt": "2026-05-26",
344
+ "firstRegisteredIn": "bank-grade reconciliation v1.4.0 — phase 5.5",
345
+ "bundledIn": "@cross-deck/react-native@1.5.1"
346
+ },
347
+ {
348
+ "id": "per-user-cache-isolation",
349
+ "pillar": "entitlements",
350
+ "status": "enforced",
351
+ "claim": "Every identify(userId) switches the entitlement cache to a physically separate per-user storage slot — `crossdeck:entitlements:<sha256(userId)>` — and unconditionally wipes the in-memory snapshot. A user-switch on a shared device CANNOT cross-read a prior user's cached entitlements, even if the in-memory clear is somehow skipped, because the storage keys are physically separate. reset() wipes every per-user slot via the persisted index.",
352
+ "appliesTo": [
353
+ "web",
354
+ "react-native",
355
+ "swift",
356
+ "android"
357
+ ],
358
+ "codeRef": [
359
+ "sdks/web/src/entitlement-cache.ts",
360
+ "sdks/web/src/hash.ts",
361
+ "sdks/web/src/crossdeck.ts",
362
+ "sdks/react-native/src/entitlement-cache.ts",
363
+ "sdks/react-native/src/hash.ts",
364
+ "sdks/react-native/src/crossdeck.ts",
365
+ "sdks/swift/Sources/Crossdeck/EntitlementCache.swift",
366
+ "sdks/swift/Sources/Crossdeck/IdempotencyKey.swift",
367
+ "sdks/swift/Sources/Crossdeck/Crossdeck.swift",
368
+ "sdks/android/crossdeck/src/main/kotlin/com/crossdeck/EntitlementCache.kt",
369
+ "sdks/android/crossdeck/src/main/kotlin/com/crossdeck/IdempotencyKey.kt",
370
+ "sdks/android/crossdeck/src/main/kotlin/com/crossdeck/Crossdeck.kt"
371
+ ],
372
+ "testRef": [
373
+ {
374
+ "file": "sdks/web/tests/entitlement-cache-isolation.test.ts",
375
+ "name": "identify(B) makes A's entitlements unreachable from in-memory"
376
+ },
377
+ {
378
+ "file": "sdks/web/tests/entitlement-cache-isolation.test.ts",
379
+ "name": "clearAll() removes every per-user storage key plus the index"
380
+ },
381
+ {
382
+ "file": "sdks/web/tests/entitlement-cache-isolation.test.ts",
383
+ "name": "a second cache instance reading A's storage suffix CANNOT see B's data"
384
+ },
385
+ {
386
+ "file": "sdks/react-native/tests/entitlement-cache-isolation.test.ts",
387
+ "name": "identify(B) makes A's entitlements unreachable from in-memory"
388
+ },
389
+ {
390
+ "file": "sdks/react-native/tests/entitlement-cache-isolation.test.ts",
391
+ "name": "removes every per-user storage key plus the index"
392
+ },
393
+ {
394
+ "file": "sdks/swift/Tests/CrossdeckTests/EntitlementCacheIsolationTests.swift",
395
+ "name": "test_identifyB_makesAEntitlementsUnreachable"
396
+ },
397
+ {
398
+ "file": "sdks/swift/Tests/CrossdeckTests/EntitlementCacheIsolationTests.swift",
399
+ "name": "test_identifiedWritesLandUnderPerUserSha256Key"
400
+ },
401
+ {
402
+ "file": "sdks/swift/Tests/CrossdeckTests/EntitlementCacheIsolationTests.swift",
403
+ "name": "test_clearAll_removesEveryPerUserStorageKeyPlusIndex"
404
+ },
405
+ {
406
+ "file": "sdks/android/crossdeck/src/test/kotlin/com/crossdeck/EntitlementCacheIsolationTest.kt",
407
+ "name": "identified writes land under per-user sha256 key"
408
+ },
409
+ {
410
+ "file": "sdks/android/crossdeck/src/test/kotlin/com/crossdeck/EntitlementCacheIsolationTest.kt",
411
+ "name": "identify B makes A entitlements unreachable from in-memory"
412
+ },
413
+ {
414
+ "file": "sdks/android/crossdeck/src/test/kotlin/com/crossdeck/EntitlementCacheIsolationTest.kt",
415
+ "name": "clearAll removes every per-user storage key plus the index"
416
+ },
417
+ {
418
+ "file": "sdks/android/crossdeck/src/test/kotlin/com/crossdeck/EntitlementCacheIsolationTest.kt",
419
+ "name": "a fresh cache bound to A's key CANNOT read B's blob"
420
+ }
421
+ ],
422
+ "registeredAt": "2026-05-26",
423
+ "firstRegisteredIn": "bank-grade reconciliation v1.4.0 — phase 1.3 (web/RN) + dogfood-gap fix (swift + android)",
424
+ "bundledIn": "@cross-deck/react-native@1.5.1"
425
+ },
426
+ {
427
+ "id": "rn-session-id-enrichment",
428
+ "pillar": "analytics",
429
+ "status": "enforced",
430
+ "claim": "RN SDK's track() pipeline attaches a `sessionId` property to every event when the host has called `setSessionId(...)` — parity with the web SDK's session-anchored funnel queries. Pre-v1.4.0 the enrichment merged device + super + groups + caller but never carried sessionId, so cross-platform funnels on session anchors returned zero RN rows. The host owns session lifecycle (AppState + nav library); the SDK exposes setSessionId() / setSessionId(null) for the host to drive. Caller-supplied sessionId in properties still wins on conflict (matches the Phase 3.2 caller > super > device precedence chain).",
431
+ "appliesTo": [
432
+ "react-native"
433
+ ],
434
+ "codeRef": [
435
+ "sdks/react-native/src/crossdeck.ts"
436
+ ],
437
+ "testRef": [
438
+ {
439
+ "file": "sdks/react-native/tests/session-id-enrichment.test.ts",
440
+ "name": "track() events carry sessionId after setSessionId() is called"
441
+ },
442
+ {
443
+ "file": "sdks/react-native/tests/session-id-enrichment.test.ts",
444
+ "name": "track() events do NOT carry sessionId before setSessionId() is called"
445
+ },
446
+ {
447
+ "file": "sdks/react-native/tests/session-id-enrichment.test.ts",
448
+ "name": "setSessionId(null) clears the active session"
449
+ },
450
+ {
451
+ "file": "sdks/react-native/tests/session-id-enrichment.test.ts",
452
+ "name": "caller-supplied sessionId property overrides setSessionId() value (Phase 3.2 precedence)"
453
+ }
454
+ ],
455
+ "registeredAt": "2026-05-26",
456
+ "firstRegisteredIn": "bank-grade reconciliation v1.4.0 — phase 3.4",
457
+ "bundledIn": "@cross-deck/react-native@1.5.1"
458
+ },
459
+ {
460
+ "id": "sync-purchases-funnel-parity",
461
+ "pillar": "analytics",
462
+ "status": "enforced",
463
+ "claim": "Manual syncPurchases() emits a `purchase.completed` analytics event on success across ALL SDKs (Web / Node / RN / Swift / Android). Pre-v1.4.0 only Swift/Android auto-track emitted it — Web/Node/RN manual calls + Swift/Android manual calls fired ZERO analytics. Schema mirrors the auto-track event name + rail/productId/subscriptionId so cross-platform funnels reconcile on every payment path. When the backend short-circuits via the v1.4.0 idempotency cache, the event also carries `idempotent_replay: true`.",
464
+ "appliesTo": [
465
+ "web",
466
+ "node",
467
+ "react-native",
468
+ "swift",
469
+ "android"
470
+ ],
471
+ "codeRef": [
472
+ "sdks/web/src/crossdeck.ts",
473
+ "sdks/node/src/crossdeck-server.ts",
474
+ "sdks/react-native/src/crossdeck.ts",
475
+ "sdks/swift/Sources/Crossdeck/Crossdeck.swift",
476
+ "sdks/android/crossdeck/src/main/kotlin/com/crossdeck/Crossdeck.kt"
477
+ ],
478
+ "testRef": [
479
+ {
480
+ "file": "sdks/web/tests/sync-purchases-funnel.test.ts",
481
+ "name": "emits purchase.completed after a successful sync"
482
+ },
483
+ {
484
+ "file": "sdks/web/tests/sync-purchases-funnel.test.ts",
485
+ "name": "carries idempotent_replay=true when backend replied from cache"
486
+ }
487
+ ],
488
+ "registeredAt": "2026-05-26",
489
+ "firstRegisteredIn": "bank-grade reconciliation v1.4.0 — phase 3.5",
490
+ "bundledIn": "@cross-deck/react-native@1.5.1"
491
+ }
492
+ ]
493
+ }