@redthreadlabs/tracelog-schema 0.4.0 → 0.5.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.
Files changed (2) hide show
  1. package/dist/wire.d.ts +7 -6
  2. package/package.json +1 -1
package/dist/wire.d.ts CHANGED
@@ -16,12 +16,6 @@ export type JsonValue = string | number | boolean | null | JsonValue[] | {
16
16
  export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
17
17
  export interface RecordBatch {
18
18
  user_id?: string;
19
- /**
20
- * Opaque, consumer-defined identifier for the device or installation — an
21
- * app's own id, a hardware id, whatever the consumer chooses. The framework
22
- * treats it as an opaque string and never interprets it.
23
- */
24
- device_id?: string;
25
19
  /**
26
20
  * Id for this SDK lifetime (one app launch / process run), generated by the
27
21
  * SDK. The join key between records and the once-per-lifetime `metadata`
@@ -167,6 +161,13 @@ export interface RecordOrigin {
167
161
  };
168
162
  /** Client-flavored: the device the app runs on. */
169
163
  device?: {
164
+ /**
165
+ * Opaque, consumer-defined identifier for the device or installation — an
166
+ * app's own id, a hardware id, whatever the consumer chooses. The framework
167
+ * treats it as an opaque string and never interprets it. Stable across this
168
+ * device's launches, so records join to it through the origin (lifetime_id).
169
+ */
170
+ id?: string;
170
171
  model?: string;
171
172
  brand?: string;
172
173
  type?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redthreadlabs/tracelog-schema",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Shared contract for the tracelog suite: record kinds, S3 key layout, metadata sidecar, and the /logs wire format",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",