@stackone/olap 2.4.0 → 3.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/README.md CHANGED
@@ -86,6 +86,14 @@ the other way round. 1.x only ever reaches S3, so it cannot read what 2.x stores
86
86
  reaching a caller are `StorageError`s from `@stackone/storage`, with the SDK's error on `cause`,
87
87
  rather than raw AWS SDK errors.
88
88
 
89
+ ### Upgrading from 2.x
90
+
91
+ The advanced sink's `piiRedaction` is now an `AdvancedPiiScrubber`
92
+ (`{ warmupTier2(): Promise<void>; scrubObject<T>(value: T): Promise<T> }`), not `@stackone/redaction`'s
93
+ `PiiRedaction`: olap no longer imports PII detection, the host supplies the scrubber (ENG-3378). StackOne's is
94
+ `createAdvancedLogsScrubber()` from the private `@stackonehq/pii-redaction`. Its errors are logged by
95
+ name only, since a scrub error can quote the body.
96
+
89
97
  ## Platform logs
90
98
 
91
99
  Platform logs are the audit trail of operations on StackOne itself — creating an account, deleting
@@ -135,6 +143,19 @@ object, not a string. A JSON-encoded string does not parse under `JSONEachRow`
135
143
  rejected, the materialized view discards it, and nothing anywhere reports an error. Its shape varies
136
144
  per producer, so treat it as display detail rather than a contract; it is not filterable.
137
145
 
146
+ ## Filtering on whole credentials
147
+
148
+ `getLogs`, `getActionLogs`, `getUnifiedLogs` and the aggregation, dimensions and last-event reads
149
+ over the logs feed take `authPairs`, a list of `{ authType, authId }`. A row is admitted only when
150
+ its type and id match one pair together. Filtering `authType` and `authId` as two lists admits any
151
+ row whose type is in one and id in the other, and ids are only unique within a type (a session 300
152
+ and a key 300 are different credentials), so a list built from one caller's credentials can admit
153
+ someone else's.
154
+
155
+ Absent applies no filter. An empty list admits no row, unlike every other array filter, where empty
156
+ means unfiltered: a caller scoped to their own credentials who has none should see nothing. A row
157
+ with no credential is never admitted.
158
+
138
159
  ## Advanced log truncation
139
160
 
140
161
  Advanced logs hold the full request and response of a call. When one is too large to store, what the