@zuplo/cli 7.15.28 → 7.15.32
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 +0 -11
- package/dist/cli.js +0 -2
- package/dist/cli.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@posthog/core/dist/gzip.d.ts +2 -0
- package/node_modules/@posthog/core/dist/gzip.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/gzip.js +17 -1
- package/node_modules/@posthog/core/dist/gzip.mjs +15 -2
- package/node_modules/@posthog/core/package.json +2 -2
- package/node_modules/@posthog/core/src/gzip.ts +21 -4
- package/node_modules/@posthog/types/dist/posthog-config.d.ts +82 -0
- package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
- package/node_modules/@posthog/types/package.json +1 -1
- package/node_modules/@posthog/types/src/posthog-config.ts +84 -0
- package/node_modules/@zuplo/core/customer.cli.minified.js +296 -296
- package/node_modules/@zuplo/core/index.minified.js +305 -305
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/package.json +11 -11
- package/dist/cmds/proxies/create.d.ts +0 -9
- package/dist/cmds/proxies/create.d.ts.map +0 -1
- package/dist/cmds/proxies/create.js +0 -66
- package/dist/cmds/proxies/create.js.map +0 -1
- package/dist/cmds/proxies/delete.d.ts +0 -9
- package/dist/cmds/proxies/delete.d.ts.map +0 -1
- package/dist/cmds/proxies/delete.js +0 -56
- package/dist/cmds/proxies/delete.js.map +0 -1
- package/dist/cmds/proxies/describe.d.ts +0 -9
- package/dist/cmds/proxies/describe.d.ts.map +0 -1
- package/dist/cmds/proxies/describe.js +0 -56
- package/dist/cmds/proxies/describe.js.map +0 -1
- package/dist/cmds/proxies/index.d.ts +0 -10
- package/dist/cmds/proxies/index.d.ts.map +0 -1
- package/dist/cmds/proxies/index.js +0 -15
- package/dist/cmds/proxies/index.js.map +0 -1
- package/dist/cmds/proxies/update.d.ts +0 -9
- package/dist/cmds/proxies/update.d.ts.map +0 -1
- package/dist/cmds/proxies/update.js +0 -66
- package/dist/cmds/proxies/update.js.map +0 -1
- package/dist/common/middleware/validate-fleet.d.ts +0 -4
- package/dist/common/middleware/validate-fleet.d.ts.map +0 -1
- package/dist/common/middleware/validate-fleet.js +0 -53
- package/dist/common/middleware/validate-fleet.js.map +0 -1
- package/dist/proxies/create/handler.d.ts +0 -8
- package/dist/proxies/create/handler.d.ts.map +0 -1
- package/dist/proxies/create/handler.js +0 -26
- package/dist/proxies/create/handler.js.map +0 -1
- package/dist/proxies/delete/handler.d.ts +0 -9
- package/dist/proxies/delete/handler.d.ts.map +0 -1
- package/dist/proxies/delete/handler.js +0 -13
- package/dist/proxies/delete/handler.js.map +0 -1
- package/dist/proxies/describe/handler.d.ts +0 -7
- package/dist/proxies/describe/handler.d.ts.map +0 -1
- package/dist/proxies/describe/handler.js +0 -12
- package/dist/proxies/describe/handler.js.map +0 -1
- package/dist/proxies/models.d.ts +0 -4
- package/dist/proxies/models.d.ts.map +0 -1
- package/dist/proxies/models.js +0 -2
- package/dist/proxies/models.js.map +0 -1
- package/dist/proxies/update/handler.d.ts +0 -8
- package/dist/proxies/update/handler.d.ts.map +0 -1
- package/dist/proxies/update/handler.js +0 -26
- package/dist/proxies/update/handler.js.map +0 -1
|
@@ -239,6 +239,8 @@ export interface PerformanceCaptureConfig {
|
|
|
239
239
|
* When `cookieless_mode` is active, there is no client-side SessionIdManager; vitals are still
|
|
240
240
|
* captured. Nested `$web_vitals_*_event` payloads omit `$session_id` / `$window_id`; PostHog ingestion assigns
|
|
241
241
|
* `$session_id` server-side for cookieless traffic when project cookieless settings are enabled (same as other events).
|
|
242
|
+
*
|
|
243
|
+
* A boolean here overrides the project setting. When unset, the project setting applies.
|
|
242
244
|
*/
|
|
243
245
|
web_vitals?: boolean
|
|
244
246
|
|
|
@@ -707,6 +709,29 @@ export interface SessionRecordingOptions {
|
|
|
707
709
|
*/
|
|
708
710
|
maskInputFn?: ((text: string, element?: HTMLElement) => string) | null
|
|
709
711
|
|
|
712
|
+
/**
|
|
713
|
+
* Opt in to explicit select selection masking, overriding the select category setting.
|
|
714
|
+
* Masked selects use `maskInputFn` for replacement text but omit selection identity metadata.
|
|
715
|
+
* Returning original text from `maskInputFn` still records that text, even when this
|
|
716
|
+
* policy returns 'masked'. The callback is responsible for sanitizing its output.
|
|
717
|
+
* Unmasked selects retain their choices, including duplicate-valued options.
|
|
718
|
+
* Masked native `<selectedcontent>` clones are omitted. Static option labels remain visible.
|
|
719
|
+
* Pointer events are not covered: clicks on options in listbox-style selects (`multiple`,
|
|
720
|
+
* `size` > 1 or a customizable picker) still record the clicked option and position.
|
|
721
|
+
* Block selects whose choices must stay private, for example with `ph-no-capture`.
|
|
722
|
+
* Omit this option to preserve legacy `maskInputFn` behavior.
|
|
723
|
+
* Use a pure policy. It is evaluated for input events, select subtree mutations
|
|
724
|
+
* and snapshots; changes to external state take effect at the next such capture.
|
|
725
|
+
* Keep the callback reference stable. Replacing it restarts recording and discards
|
|
726
|
+
* queued old-policy data; changing its return value does not require a restart.
|
|
727
|
+
* Pending buffers are not carried across page loads with this option, because
|
|
728
|
+
* callback compatibility cannot be verified across pages.
|
|
729
|
+
* Invalid return values and exceptions resolve to masked. Recording does not start
|
|
730
|
+
* if the loaded recorder or driver does not support this option. Policy transitions
|
|
731
|
+
* also require a matching replay player.
|
|
732
|
+
*/
|
|
733
|
+
selectMaskingFn?: (element: HTMLSelectElement) => 'masked' | 'unmasked'
|
|
734
|
+
|
|
710
735
|
/**
|
|
711
736
|
* Derived from `rrweb.record` options. Masks every string-valued source DOM attribute,
|
|
712
737
|
* including rendering attributes such as `class`, `id`, `style`, `src`, `href`, and
|
|
@@ -1202,6 +1227,8 @@ export interface LogsConfig extends LogCaptureOptions {
|
|
|
1202
1227
|
* Review console output before enabling, as messages can include sensitive values
|
|
1203
1228
|
* written by your code or by third-party libraries.
|
|
1204
1229
|
*
|
|
1230
|
+
* The project setting can also turn this on. Console logs are captured when either one enables them.
|
|
1231
|
+
*
|
|
1205
1232
|
* @default undefined
|
|
1206
1233
|
*/
|
|
1207
1234
|
captureConsoleLogs?: boolean
|
|
@@ -1476,6 +1503,8 @@ export interface PostHogConfig {
|
|
|
1476
1503
|
* This setting does not affect capturing pageview events (see `capture_pageview`).
|
|
1477
1504
|
*
|
|
1478
1505
|
* by default autocapture is ignored on elements that match a `ph-no-capture` css class on the element or a parent
|
|
1506
|
+
*
|
|
1507
|
+
* The project setting can also turn autocapture off. Events are autocaptured only when both allow it.
|
|
1479
1508
|
* @default true
|
|
1480
1509
|
*/
|
|
1481
1510
|
autocapture: boolean | AutocaptureConfig
|
|
@@ -1508,6 +1537,16 @@ export interface PostHogConfig {
|
|
|
1508
1537
|
/**
|
|
1509
1538
|
* Determines how PostHog stores information about the user. See [persistence](https://posthog.com/docs/libraries/js#persistence) for details.
|
|
1510
1539
|
*
|
|
1540
|
+
* PostHog stores the distinct ID, session ID, device ID, feature flags, super properties, and some config in the browser.
|
|
1541
|
+
*
|
|
1542
|
+
* - `'localStorage+cookie'` stores essential state, such as the distinct ID, device ID and session ID, in a cookie, and other data in `localStorage`. `cookie_persisted_properties` adds custom properties to the cookie.
|
|
1543
|
+
* - `'cookie'` stores everything in a cookie. Cookies hold about 4KB, so many feature flags can cause `431 Request Header Fields Too Large` errors.
|
|
1544
|
+
* - `'localStorage'` stores everything in `localStorage`.
|
|
1545
|
+
* - `'sessionStorage'` stores everything in `sessionStorage`.
|
|
1546
|
+
* - `'memory'` stores everything in page memory, so it lasts for one pageview.
|
|
1547
|
+
*
|
|
1548
|
+
* Call `set_config` to change the mode after `init`, for example when a user accepts cookies.
|
|
1549
|
+
*
|
|
1511
1550
|
* @default 'localStorage+cookie'
|
|
1512
1551
|
*/
|
|
1513
1552
|
persistence: 'localStorage' | 'cookie' | 'memory' | 'localStorage+cookie' | 'sessionStorage'
|
|
@@ -1527,6 +1566,8 @@ export interface PostHogConfig {
|
|
|
1527
1566
|
* when using 'localStorage+cookie' persistence mode. This allows these properties to be shared
|
|
1528
1567
|
* across subdomains when cross_subdomain_cookie is enabled.
|
|
1529
1568
|
*
|
|
1569
|
+
* Cookies hold about 4KB, so large values can cause `431 Request Header Fields Too Large` errors.
|
|
1570
|
+
*
|
|
1530
1571
|
* @default []
|
|
1531
1572
|
*/
|
|
1532
1573
|
cookie_persisted_properties?: readonly string[]
|
|
@@ -1653,6 +1694,7 @@ export interface PostHogConfig {
|
|
|
1653
1694
|
|
|
1654
1695
|
/**
|
|
1655
1696
|
* Determines whether PostHog should disable session recording.
|
|
1697
|
+
* Recording starts only when this option and the project setting both allow it.
|
|
1656
1698
|
*
|
|
1657
1699
|
* @default false
|
|
1658
1700
|
*/
|
|
@@ -1838,6 +1880,37 @@ export interface PostHogConfig {
|
|
|
1838
1880
|
*/
|
|
1839
1881
|
strict_script_versioning: boolean | 'fallback'
|
|
1840
1882
|
|
|
1883
|
+
/**
|
|
1884
|
+
* Requires Subresource Integrity (SRI) for every extension script the SDK loads, such as
|
|
1885
|
+
* recorder.js, surveys.js or web-vitals.js.
|
|
1886
|
+
*
|
|
1887
|
+
* When enabled, each extension loads only from the exact-version path
|
|
1888
|
+
* `/static/<sdk version>/<name>.js` with `integrity` and `crossOrigin = 'anonymous'` set,
|
|
1889
|
+
* using the SHA-384 hashes built into this SDK bundle. A missing hash, an integrity failure
|
|
1890
|
+
* or a `prepare_external_dependency_script` hook that changes `integrity` or `crossOrigin`
|
|
1891
|
+
* disables only that feature. The SDK never retries through the mutable legacy path,
|
|
1892
|
+
* whatever {@link strict_script_versioning} says. The asset host, or a reverse proxy in
|
|
1893
|
+
* front of it, must serve the scripts with CORS headers (`Access-Control-Allow-Origin`).
|
|
1894
|
+
*
|
|
1895
|
+
* This mode also disables site apps, overriding {@link opt_in_site_apps}, including site app
|
|
1896
|
+
* code preloaded by the token-specific `/array/<token>/array.js`. It refuses the toolbar and the
|
|
1897
|
+
* executable `/array/<token>/config.js` remote config, which is then fetched as JSON.
|
|
1898
|
+
*
|
|
1899
|
+
* The guarantee covers the extension scripts this SDK instance inserts, anchored in the SDK
|
|
1900
|
+
* code you already trust: an npm build, or an `array.js` you pin yourself. Because the
|
|
1901
|
+
* extension hashes are part of `array.js`, pinning it with `data-core-integrity` on an
|
|
1902
|
+
* exact-version `loader.js` that itself has an `integrity` attribute pins every extension too.
|
|
1903
|
+
* The token-specific `/array/<token>/array.js` changes with project configuration, so it cannot be
|
|
1904
|
+
* pinned: use `/static/<sdk version>/array.js`, the loader or npm instead. The guarantee does not
|
|
1905
|
+
* cover an unpinned initial loader, third-party widgets such as Intercom or Crisp, or a malicious
|
|
1906
|
+
* release with valid hashes.
|
|
1907
|
+
* Extensions share page globals, so if another PostHog instance or any other code on the page
|
|
1908
|
+
* already ran unverified extension code, this instance reuses it and the guarantee does not hold.
|
|
1909
|
+
*
|
|
1910
|
+
* @default false
|
|
1911
|
+
*/
|
|
1912
|
+
require_subresource_integrity?: boolean
|
|
1913
|
+
|
|
1841
1914
|
/**
|
|
1842
1915
|
* Optional host override for static assets loaded by PostHog, such as
|
|
1843
1916
|
* recorder.js, surveys.js, or toolbar.js. Only applies to /static/* asset
|
|
@@ -2048,8 +2121,17 @@ export interface PostHogConfig {
|
|
|
2048
2121
|
* for cookie changes before captures and persistence writes so already-open sibling
|
|
2049
2122
|
* subdomains adopt identity changes made by `identify()` or `reset()`.
|
|
2050
2123
|
*
|
|
2124
|
+
* Synchronization happens on the tab's next PostHog activity, not immediately.
|
|
2125
|
+
* A persistence write can adopt an identity without immediately reloading feature flags.
|
|
2126
|
+
* When the SDK next processes that identity, such as before a capture, it clears
|
|
2127
|
+
* identity-bound flag state and starts a reload. `onFeatureFlags` runs after that reload.
|
|
2128
|
+
* If the session ID changes, `onSessionId` runs when the tab next checks its session.
|
|
2129
|
+
* A synchronized `reset()` also clears event and session properties of the previous identity.
|
|
2130
|
+
*
|
|
2051
2131
|
* When `defaults` is `'2026-08-29'` or later, this defaults to `true`.
|
|
2052
2132
|
*
|
|
2133
|
+
* Requires `posthog-js` 1.418.0 or later.
|
|
2134
|
+
*
|
|
2053
2135
|
* @default false
|
|
2054
2136
|
*/
|
|
2055
2137
|
cookieWinsOnConflict: boolean
|
|
@@ -2449,6 +2531,7 @@ export interface PostHogConfig {
|
|
|
2449
2531
|
|
|
2450
2532
|
/**
|
|
2451
2533
|
* Determines whether to capture heatmaps.
|
|
2534
|
+
* When set, this overrides the project setting. When unset, the project setting applies.
|
|
2452
2535
|
*
|
|
2453
2536
|
* @see {HeatmapConfig}
|
|
2454
2537
|
* @default undefined
|
|
@@ -2481,6 +2564,7 @@ export interface PostHogConfig {
|
|
|
2481
2564
|
|
|
2482
2565
|
/**
|
|
2483
2566
|
* Determines whether to capture exceptions.
|
|
2567
|
+
* When set, this overrides the project setting. When unset, the project setting applies.
|
|
2484
2568
|
*
|
|
2485
2569
|
* @see {ExceptionAutoCaptureConfig}
|
|
2486
2570
|
* @default undefined
|