@reopt-ai/data-contract 0.6.0 → 0.6.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.
- package/dist/{chunk-5BRCHDS3.js → chunk-EZ2TA4S6.js} +11 -4
- package/dist/chunk-EZ2TA4S6.js.map +1 -0
- package/dist/{chunk-6ZJOC4NJ.js → chunk-GCQZNME3.js} +45 -3
- package/dist/{chunk-6ZJOC4NJ.js.map → chunk-GCQZNME3.js.map} +1 -1
- package/dist/{chunk-IXPP5K4I.js → chunk-HLQAZ6JW.js} +2 -2
- package/dist/{chunk-IXPP5K4I.js.map → chunk-HLQAZ6JW.js.map} +1 -1
- package/dist/{chunk-JHHCT3GA.cjs → chunk-JB4MJQX7.cjs} +2 -2
- package/dist/{chunk-JHHCT3GA.cjs.map → chunk-JB4MJQX7.cjs.map} +1 -1
- package/dist/{chunk-KRJPEMFD.cjs → chunk-PHPTCLRU.cjs} +46 -4
- package/dist/chunk-PHPTCLRU.cjs.map +1 -0
- package/dist/{chunk-OGL3P7IH.cjs → chunk-VGB2VJO4.cjs} +13 -6
- package/dist/chunk-VGB2VJO4.cjs.map +1 -0
- package/dist/client.cjs +11 -11
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +3 -3
- package/dist/control.cjs +1 -1
- package/dist/control.js +1 -1
- package/dist/identity.cjs +13 -3
- package/dist/identity.cjs.map +1 -1
- package/dist/identity.d.cts +31 -2
- package/dist/identity.d.ts +31 -2
- package/dist/identity.js +14 -4
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/ingest.cjs +6 -4
- package/dist/ingest.cjs.map +1 -1
- package/dist/ingest.d.cts +28 -1
- package/dist/ingest.d.ts +28 -1
- package/dist/ingest.js +5 -3
- package/dist/query.cjs +1 -1
- package/dist/query.d.cts +9 -9
- package/dist/query.d.ts +9 -9
- package/dist/query.js +1 -1
- package/dist/{version-CC4_BBvq.d.cts → version-BzeRTpta.d.cts} +1 -1
- package/dist/{version-CC4_BBvq.d.ts → version-BzeRTpta.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-5BRCHDS3.js.map +0 -1
- package/dist/chunk-KRJPEMFD.cjs.map +0 -1
- package/dist/chunk-OGL3P7IH.cjs.map +0 -1
package/dist/identity.cjs
CHANGED
|
@@ -12,21 +12,21 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var _chunkKRJPEMFDcjs = require('./chunk-KRJPEMFD.cjs');
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
|
|
20
19
|
|
|
20
|
+
var _chunkPHPTCLRUcjs = require('./chunk-PHPTCLRU.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var _chunkJHHCT3GAcjs = require('./chunk-JHHCT3GA.cjs');
|
|
25
24
|
|
|
26
25
|
|
|
27
26
|
|
|
28
27
|
|
|
29
28
|
|
|
29
|
+
var _chunkJB4MJQX7cjs = require('./chunk-JB4MJQX7.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -43,5 +43,15 @@ var _chunkJHHCT3GAcjs = require('./chunk-JHHCT3GA.cjs');
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
exports.CLIENT_ID_HEADER = _chunkJB4MJQX7cjs.CLIENT_ID_HEADER; exports.CLIENT_SECRET_HEADER = _chunkJB4MJQX7cjs.CLIENT_SECRET_HEADER; exports.CONTRACT_VERSION = _chunkJB4MJQX7cjs.CONTRACT_VERSION; exports.CONTRACT_VERSION_HEADER = _chunkJB4MJQX7cjs.CONTRACT_VERSION_HEADER; exports.COOKIE_MAX_AGE_SECONDS = _chunkPHPTCLRUcjs.COOKIE_MAX_AGE_SECONDS; exports.DEVICE_ID_HEADER = _chunkJB4MJQX7cjs.DEVICE_ID_HEADER; exports.IDENTITY_ID_PATTERN = _chunkPHPTCLRUcjs.IDENTITY_ID_PATTERN; exports.IDENTITY_REQUEST_HEADERS = _chunkPHPTCLRUcjs.IDENTITY_REQUEST_HEADERS; exports.OPT_OUT_CONSENT_CATEGORY = _chunkPHPTCLRUcjs.OPT_OUT_CONSENT_CATEGORY; exports.REQUEST_ID_HEADER = _chunkJB4MJQX7cjs.REQUEST_ID_HEADER; exports.SESSION_HEADER_SEPARATOR = _chunkPHPTCLRUcjs.SESSION_HEADER_SEPARATOR; exports.SESSION_ID_HEADER = _chunkPHPTCLRUcjs.SESSION_ID_HEADER; exports.WRITE_KEY_HEADER = _chunkJB4MJQX7cjs.WRITE_KEY_HEADER; exports.consentCookieName = _chunkPHPTCLRUcjs.consentCookieName; exports.deviceCookieName = _chunkPHPTCLRUcjs.deviceCookieName; exports.formatSessionHeader = _chunkPHPTCLRUcjs.formatSessionHeader; exports.isOptedOut = _chunkPHPTCLRUcjs.isOptedOut; exports.isValidIdentityId = _chunkPHPTCLRUcjs.isValidIdentityId; exports.parseConsentCookie = _chunkPHPTCLRUcjs.parseConsentCookie; exports.parseDeviceCookie = _chunkPHPTCLRUcjs.parseDeviceCookie; exports.parseSessionHeader = _chunkPHPTCLRUcjs.parseSessionHeader; exports.serializeConsentCookie = _chunkPHPTCLRUcjs.serializeConsentCookie; exports.serializeDeviceCookie = _chunkPHPTCLRUcjs.serializeDeviceCookie; exports.signSessionToken = _chunkPHPTCLRUcjs.signSessionToken; exports.verifySessionToken = _chunkPHPTCLRUcjs.verifySessionToken;
|
|
47
57
|
//# sourceMappingURL=identity.cjs.map
|
package/dist/identity.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/identity.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/identity.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,oqDAAC","file":"/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/identity.cjs"}
|
package/dist/identity.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CLIENT_ID_HEADER, a as CLIENT_SECRET_HEADER, b as CONTRACT_VERSION, c as CONTRACT_VERSION_HEADER, D as DEVICE_ID_HEADER, R as REQUEST_ID_HEADER, W as WRITE_KEY_HEADER } from './version-
|
|
1
|
+
export { C as CLIENT_ID_HEADER, a as CLIENT_SECRET_HEADER, b as CONTRACT_VERSION, c as CONTRACT_VERSION_HEADER, D as DEVICE_ID_HEADER, R as REQUEST_ID_HEADER, W as WRITE_KEY_HEADER } from './version-BzeRTpta.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Request header carrying the browser's current session id. The browser SDK
|
|
@@ -86,5 +86,34 @@ declare function serializeConsentCookie(state: ConsentCookieState): string;
|
|
|
86
86
|
* banners mandatory for every integration.
|
|
87
87
|
*/
|
|
88
88
|
declare function isOptedOut(consent: ConsentCookieState | null | undefined): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Sessions are assigned by ingest, not by the browser. To let a later request
|
|
91
|
+
* — from the same browser, or from a server acting for it — join that session
|
|
92
|
+
* with authority, ingest hands the browser its session id together with an
|
|
93
|
+
* HMAC over it, and the browser sends both back as `reopt-session-id`. An
|
|
94
|
+
* unsigned or wrongly signed value is a hint at most: ingest falls back to
|
|
95
|
+
* deciding the session from the device, exactly as if the header were absent.
|
|
96
|
+
*
|
|
97
|
+
* The token is `base64url(HMAC-SHA256(secret, sessionId))`. The secret is
|
|
98
|
+
* per project and never leaves the server. WebCrypto only, so this runs in
|
|
99
|
+
* browsers, edge runtimes and Node alike.
|
|
100
|
+
*/
|
|
101
|
+
declare const SESSION_HEADER_SEPARATOR = ".";
|
|
102
|
+
interface SessionCredential {
|
|
103
|
+
id: string;
|
|
104
|
+
token: string;
|
|
105
|
+
}
|
|
106
|
+
/** `<id>.<token>` — what travels in `reopt-session-id`. */
|
|
107
|
+
declare function formatSessionHeader(credential: SessionCredential): string;
|
|
108
|
+
/** Splits a `reopt-session-id` value. `null` unless both parts are well-formed. */
|
|
109
|
+
declare function parseSessionHeader(value: string | null | undefined): SessionCredential | null;
|
|
110
|
+
/** Issues the token for `sessionId`. Server-side only — needs the project secret. */
|
|
111
|
+
declare function signSessionToken(secret: string, sessionId: string): Promise<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Constant-time check of a presented token. Recomputes and compares the
|
|
114
|
+
* digests byte by byte rather than using `subtle.verify` with a decoded
|
|
115
|
+
* token, so a malformed token can never throw its way past the check.
|
|
116
|
+
*/
|
|
117
|
+
declare function verifySessionToken(secret: string, credential: SessionCredential): Promise<boolean>;
|
|
89
118
|
|
|
90
|
-
export { COOKIE_MAX_AGE_SECONDS, type ConsentCookieState, type DeviceCookieState, IDENTITY_ID_PATTERN, IDENTITY_REQUEST_HEADERS, OPT_OUT_CONSENT_CATEGORY, type ReoptBootstrap, SESSION_ID_HEADER, consentCookieName, deviceCookieName, isOptedOut, isValidIdentityId, parseConsentCookie, parseDeviceCookie, serializeConsentCookie, serializeDeviceCookie };
|
|
119
|
+
export { COOKIE_MAX_AGE_SECONDS, type ConsentCookieState, type DeviceCookieState, IDENTITY_ID_PATTERN, IDENTITY_REQUEST_HEADERS, OPT_OUT_CONSENT_CATEGORY, type ReoptBootstrap, SESSION_HEADER_SEPARATOR, SESSION_ID_HEADER, type SessionCredential, consentCookieName, deviceCookieName, formatSessionHeader, isOptedOut, isValidIdentityId, parseConsentCookie, parseDeviceCookie, parseSessionHeader, serializeConsentCookie, serializeDeviceCookie, signSessionToken, verifySessionToken };
|
package/dist/identity.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CLIENT_ID_HEADER, a as CLIENT_SECRET_HEADER, b as CONTRACT_VERSION, c as CONTRACT_VERSION_HEADER, D as DEVICE_ID_HEADER, R as REQUEST_ID_HEADER, W as WRITE_KEY_HEADER } from './version-
|
|
1
|
+
export { C as CLIENT_ID_HEADER, a as CLIENT_SECRET_HEADER, b as CONTRACT_VERSION, c as CONTRACT_VERSION_HEADER, D as DEVICE_ID_HEADER, R as REQUEST_ID_HEADER, W as WRITE_KEY_HEADER } from './version-BzeRTpta.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Request header carrying the browser's current session id. The browser SDK
|
|
@@ -86,5 +86,34 @@ declare function serializeConsentCookie(state: ConsentCookieState): string;
|
|
|
86
86
|
* banners mandatory for every integration.
|
|
87
87
|
*/
|
|
88
88
|
declare function isOptedOut(consent: ConsentCookieState | null | undefined): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Sessions are assigned by ingest, not by the browser. To let a later request
|
|
91
|
+
* — from the same browser, or from a server acting for it — join that session
|
|
92
|
+
* with authority, ingest hands the browser its session id together with an
|
|
93
|
+
* HMAC over it, and the browser sends both back as `reopt-session-id`. An
|
|
94
|
+
* unsigned or wrongly signed value is a hint at most: ingest falls back to
|
|
95
|
+
* deciding the session from the device, exactly as if the header were absent.
|
|
96
|
+
*
|
|
97
|
+
* The token is `base64url(HMAC-SHA256(secret, sessionId))`. The secret is
|
|
98
|
+
* per project and never leaves the server. WebCrypto only, so this runs in
|
|
99
|
+
* browsers, edge runtimes and Node alike.
|
|
100
|
+
*/
|
|
101
|
+
declare const SESSION_HEADER_SEPARATOR = ".";
|
|
102
|
+
interface SessionCredential {
|
|
103
|
+
id: string;
|
|
104
|
+
token: string;
|
|
105
|
+
}
|
|
106
|
+
/** `<id>.<token>` — what travels in `reopt-session-id`. */
|
|
107
|
+
declare function formatSessionHeader(credential: SessionCredential): string;
|
|
108
|
+
/** Splits a `reopt-session-id` value. `null` unless both parts are well-formed. */
|
|
109
|
+
declare function parseSessionHeader(value: string | null | undefined): SessionCredential | null;
|
|
110
|
+
/** Issues the token for `sessionId`. Server-side only — needs the project secret. */
|
|
111
|
+
declare function signSessionToken(secret: string, sessionId: string): Promise<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Constant-time check of a presented token. Recomputes and compares the
|
|
114
|
+
* digests byte by byte rather than using `subtle.verify` with a decoded
|
|
115
|
+
* token, so a malformed token can never throw its way past the check.
|
|
116
|
+
*/
|
|
117
|
+
declare function verifySessionToken(secret: string, credential: SessionCredential): Promise<boolean>;
|
|
89
118
|
|
|
90
|
-
export { COOKIE_MAX_AGE_SECONDS, type ConsentCookieState, type DeviceCookieState, IDENTITY_ID_PATTERN, IDENTITY_REQUEST_HEADERS, OPT_OUT_CONSENT_CATEGORY, type ReoptBootstrap, SESSION_ID_HEADER, consentCookieName, deviceCookieName, isOptedOut, isValidIdentityId, parseConsentCookie, parseDeviceCookie, serializeConsentCookie, serializeDeviceCookie };
|
|
119
|
+
export { COOKIE_MAX_AGE_SECONDS, type ConsentCookieState, type DeviceCookieState, IDENTITY_ID_PATTERN, IDENTITY_REQUEST_HEADERS, OPT_OUT_CONSENT_CATEGORY, type ReoptBootstrap, SESSION_HEADER_SEPARATOR, SESSION_ID_HEADER, type SessionCredential, consentCookieName, deviceCookieName, formatSessionHeader, isOptedOut, isValidIdentityId, parseConsentCookie, parseDeviceCookie, parseSessionHeader, serializeConsentCookie, serializeDeviceCookie, signSessionToken, verifySessionToken };
|
package/dist/identity.js
CHANGED
|
@@ -3,16 +3,21 @@ import {
|
|
|
3
3
|
IDENTITY_ID_PATTERN,
|
|
4
4
|
IDENTITY_REQUEST_HEADERS,
|
|
5
5
|
OPT_OUT_CONSENT_CATEGORY,
|
|
6
|
+
SESSION_HEADER_SEPARATOR,
|
|
6
7
|
SESSION_ID_HEADER,
|
|
7
8
|
consentCookieName,
|
|
8
9
|
deviceCookieName,
|
|
10
|
+
formatSessionHeader,
|
|
9
11
|
isOptedOut,
|
|
10
12
|
isValidIdentityId,
|
|
11
13
|
parseConsentCookie,
|
|
12
14
|
parseDeviceCookie,
|
|
15
|
+
parseSessionHeader,
|
|
13
16
|
serializeConsentCookie,
|
|
14
|
-
serializeDeviceCookie
|
|
15
|
-
|
|
17
|
+
serializeDeviceCookie,
|
|
18
|
+
signSessionToken,
|
|
19
|
+
verifySessionToken
|
|
20
|
+
} from "./chunk-GCQZNME3.js";
|
|
16
21
|
import {
|
|
17
22
|
CLIENT_ID_HEADER,
|
|
18
23
|
CLIENT_SECRET_HEADER,
|
|
@@ -21,7 +26,7 @@ import {
|
|
|
21
26
|
DEVICE_ID_HEADER,
|
|
22
27
|
REQUEST_ID_HEADER,
|
|
23
28
|
WRITE_KEY_HEADER
|
|
24
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HLQAZ6JW.js";
|
|
25
30
|
export {
|
|
26
31
|
CLIENT_ID_HEADER,
|
|
27
32
|
CLIENT_SECRET_HEADER,
|
|
@@ -33,15 +38,20 @@ export {
|
|
|
33
38
|
IDENTITY_REQUEST_HEADERS,
|
|
34
39
|
OPT_OUT_CONSENT_CATEGORY,
|
|
35
40
|
REQUEST_ID_HEADER,
|
|
41
|
+
SESSION_HEADER_SEPARATOR,
|
|
36
42
|
SESSION_ID_HEADER,
|
|
37
43
|
WRITE_KEY_HEADER,
|
|
38
44
|
consentCookieName,
|
|
39
45
|
deviceCookieName,
|
|
46
|
+
formatSessionHeader,
|
|
40
47
|
isOptedOut,
|
|
41
48
|
isValidIdentityId,
|
|
42
49
|
parseConsentCookie,
|
|
43
50
|
parseDeviceCookie,
|
|
51
|
+
parseSessionHeader,
|
|
44
52
|
serializeConsentCookie,
|
|
45
|
-
serializeDeviceCookie
|
|
53
|
+
serializeDeviceCookie,
|
|
54
|
+
signSessionToken,
|
|
55
|
+
verifySessionToken
|
|
46
56
|
};
|
|
47
57
|
//# sourceMappingURL=identity.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -11,7 +11,7 @@ var _chunkYSAEOYPDcjs = require('./chunk-YSAEOYPD.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkJB4MJQX7cjs = require('./chunk-JB4MJQX7.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -23,5 +23,5 @@ var _chunkJHHCT3GAcjs = require('./chunk-JHHCT3GA.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
exports.CLIENT_ID_HEADER =
|
|
26
|
+
exports.CLIENT_ID_HEADER = _chunkJB4MJQX7cjs.CLIENT_ID_HEADER; exports.CLIENT_SECRET_HEADER = _chunkJB4MJQX7cjs.CLIENT_SECRET_HEADER; exports.CONTRACT_VERSION = _chunkJB4MJQX7cjs.CONTRACT_VERSION; exports.CONTRACT_VERSION_HEADER = _chunkJB4MJQX7cjs.CONTRACT_VERSION_HEADER; exports.DEVICE_ID_HEADER = _chunkJB4MJQX7cjs.DEVICE_ID_HEADER; exports.DataApiError = _chunkYSAEOYPDcjs.DataApiError; exports.REQUEST_ID_HEADER = _chunkJB4MJQX7cjs.REQUEST_ID_HEADER; exports.WRITE_KEY_HEADER = _chunkJB4MJQX7cjs.WRITE_KEY_HEADER; exports.zDate = _chunkYSAEOYPDcjs.zDate; exports.zInstant = _chunkYSAEOYPDcjs.zInstant;
|
|
27
27
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export { C as CLIENT_ID_HEADER, a as CLIENT_SECRET_HEADER, b as CONTRACT_VERSION, c as CONTRACT_VERSION_HEADER, D as DEVICE_ID_HEADER, R as REQUEST_ID_HEADER, W as WRITE_KEY_HEADER } from './version-
|
|
2
|
+
export { C as CLIENT_ID_HEADER, a as CLIENT_SECRET_HEADER, b as CONTRACT_VERSION, c as CONTRACT_VERSION_HEADER, D as DEVICE_ID_HEADER, R as REQUEST_ID_HEADER, W as WRITE_KEY_HEADER } from './version-BzeRTpta.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `@reopt-ai/data-contract` — the wire contract between reopt-data and its
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export { C as CLIENT_ID_HEADER, a as CLIENT_SECRET_HEADER, b as CONTRACT_VERSION, c as CONTRACT_VERSION_HEADER, D as DEVICE_ID_HEADER, R as REQUEST_ID_HEADER, W as WRITE_KEY_HEADER } from './version-
|
|
2
|
+
export { C as CLIENT_ID_HEADER, a as CLIENT_SECRET_HEADER, b as CONTRACT_VERSION, c as CONTRACT_VERSION_HEADER, D as DEVICE_ID_HEADER, R as REQUEST_ID_HEADER, W as WRITE_KEY_HEADER } from './version-BzeRTpta.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `@reopt-ai/data-contract` — the wire contract between reopt-data and its
|
package/dist/index.js
CHANGED
package/dist/ingest.cjs
CHANGED
|
@@ -17,9 +17,10 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
20
|
+
|
|
21
|
+
var _chunkVGB2VJO4cjs = require('./chunk-VGB2VJO4.cjs');
|
|
22
|
+
require('./chunk-PHPTCLRU.cjs');
|
|
23
|
+
require('./chunk-JB4MJQX7.cjs');
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
|
|
@@ -53,5 +54,6 @@ var _chunk3EEANNYNcjs = require('./chunk-3EEANNYN.cjs');
|
|
|
53
54
|
|
|
54
55
|
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
|
|
58
|
+
exports.AUTO_EVENT_NAMES = _chunk3EEANNYNcjs.AUTO_EVENT_NAMES; exports.AUTO_EVENT_PROPERTIES = _chunk3EEANNYNcjs.AUTO_EVENT_PROPERTIES; exports.AUTO_EVENT_ROLLUP_KEYS = _chunk3EEANNYNcjs.AUTO_EVENT_ROLLUP_KEYS; exports.INGEST_ERROR_CODES = _chunkVGB2VJO4cjs.INGEST_ERROR_CODES; exports.INGEST_MODES = _chunkVGB2VJO4cjs.INGEST_MODES; exports.INGEST_REJECTION_REASONS = _chunkVGB2VJO4cjs.INGEST_REJECTION_REASONS; exports.MAX_TRACK_PAYLOAD_BYTES = _chunkVGB2VJO4cjs.MAX_TRACK_PAYLOAD_BYTES; exports.RESERVED_EVENT_NAMES = _chunk3EEANNYNcjs.RESERVED_EVENT_NAMES; exports.SCROLL_DEPTH_BUCKETS = _chunk3EEANNYNcjs.SCROLL_DEPTH_BUCKETS; exports.reconcileIngestResponse = _chunkVGB2VJO4cjs.reconcileIngestResponse; exports.scrollDepthBucket = _chunk3EEANNYNcjs.scrollDepthBucket; exports.zDecrementPayload = _chunkVGB2VJO4cjs.zDecrementPayload; exports.zIdentifyPayload = _chunkVGB2VJO4cjs.zIdentifyPayload; exports.zIncrementPayload = _chunkVGB2VJO4cjs.zIncrementPayload; exports.zIngestAcceptedResponse = _chunkVGB2VJO4cjs.zIngestAcceptedResponse; exports.zIngestError = _chunkVGB2VJO4cjs.zIngestError; exports.zIngestErrorCode = _chunkVGB2VJO4cjs.zIngestErrorCode; exports.zIngestMode = _chunkVGB2VJO4cjs.zIngestMode; exports.zIngestOkResponse = _chunkVGB2VJO4cjs.zIngestOkResponse; exports.zIngestRejection = _chunkVGB2VJO4cjs.zIngestRejection; exports.zIngestRejectionReason = _chunkVGB2VJO4cjs.zIngestRejectionReason; exports.zIngestResponse = _chunkVGB2VJO4cjs.zIngestResponse; exports.zSessionCredential = _chunkVGB2VJO4cjs.zSessionCredential; exports.zTrackHandlerPayload = _chunkVGB2VJO4cjs.zTrackHandlerPayload; exports.zTrackPayload = _chunkVGB2VJO4cjs.zTrackPayload;
|
|
57
59
|
//# sourceMappingURL=ingest.cjs.map
|
package/dist/ingest.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/ingest.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/ingest.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,woDAAC","file":"/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/ingest.cjs"}
|
package/dist/ingest.d.cts
CHANGED
|
@@ -127,9 +127,24 @@ declare const zIngestRejection: z.ZodObject<{
|
|
|
127
127
|
message: z.ZodOptional<z.ZodString>;
|
|
128
128
|
}, z.core.$strip>;
|
|
129
129
|
type IngestRejection = z.infer<typeof zIngestRejection>;
|
|
130
|
+
/**
|
|
131
|
+
* The session ingest filed this batch under, with the token that lets the
|
|
132
|
+
* browser (or a server acting for it) join the same session later with
|
|
133
|
+
* authority — see `signSessionToken` in `./identity`. Browser mode only;
|
|
134
|
+
* absent when the batch carried no sessionable event.
|
|
135
|
+
*/
|
|
136
|
+
declare const zSessionCredential: z.ZodObject<{
|
|
137
|
+
id: z.ZodString;
|
|
138
|
+
token: z.ZodString;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
type SessionCredential = z.infer<typeof zSessionCredential>;
|
|
130
141
|
/** 200 — accepted and handed to the materialize queue. */
|
|
131
142
|
declare const zIngestOkResponse: z.ZodObject<{
|
|
132
143
|
queued: z.ZodBoolean;
|
|
144
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
token: z.ZodString;
|
|
147
|
+
}, z.core.$strip>>;
|
|
133
148
|
accepted: z.ZodNumber;
|
|
134
149
|
duplicates: z.ZodNumber;
|
|
135
150
|
rejected: z.ZodArray<z.ZodObject<{
|
|
@@ -158,6 +173,10 @@ declare const zIngestOkResponse: z.ZodObject<{
|
|
|
158
173
|
declare const zIngestAcceptedResponse: z.ZodObject<{
|
|
159
174
|
backgroundQueued: z.ZodLiteral<false>;
|
|
160
175
|
replay: z.ZodLiteral<"unmaterialized-raw-events">;
|
|
176
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
id: z.ZodString;
|
|
178
|
+
token: z.ZodString;
|
|
179
|
+
}, z.core.$strip>>;
|
|
161
180
|
accepted: z.ZodNumber;
|
|
162
181
|
duplicates: z.ZodNumber;
|
|
163
182
|
rejected: z.ZodArray<z.ZodObject<{
|
|
@@ -179,6 +198,10 @@ declare const zIngestAcceptedResponse: z.ZodObject<{
|
|
|
179
198
|
}, z.core.$strip>;
|
|
180
199
|
declare const zIngestResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
181
200
|
queued: z.ZodBoolean;
|
|
201
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
token: z.ZodString;
|
|
204
|
+
}, z.core.$strip>>;
|
|
182
205
|
accepted: z.ZodNumber;
|
|
183
206
|
duplicates: z.ZodNumber;
|
|
184
207
|
rejected: z.ZodArray<z.ZodObject<{
|
|
@@ -200,6 +223,10 @@ declare const zIngestResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
200
223
|
}, z.core.$strip>, z.ZodObject<{
|
|
201
224
|
backgroundQueued: z.ZodLiteral<false>;
|
|
202
225
|
replay: z.ZodLiteral<"unmaterialized-raw-events">;
|
|
226
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
id: z.ZodString;
|
|
228
|
+
token: z.ZodString;
|
|
229
|
+
}, z.core.$strip>>;
|
|
203
230
|
accepted: z.ZodNumber;
|
|
204
231
|
duplicates: z.ZodNumber;
|
|
205
232
|
rejected: z.ZodArray<z.ZodObject<{
|
|
@@ -272,4 +299,4 @@ declare const zIngestError: z.ZodObject<{
|
|
|
272
299
|
}, z.core.$strip>;
|
|
273
300
|
type IngestError = z.infer<typeof zIngestError>;
|
|
274
301
|
|
|
275
|
-
export { type IDecrementPayload, type IIdentifyPayload, type IIncrementPayload, INGEST_ERROR_CODES, INGEST_MODES, INGEST_REJECTION_REASONS, type ITrackHandlerPayload, type ITrackPayload, type IngestAcceptedResponse, type IngestError, type IngestErrorCode, type IngestMode, type IngestOkResponse, type IngestRejection, type IngestRejectionReason, type IngestResponse, MAX_TRACK_PAYLOAD_BYTES, reconcileIngestResponse, zDecrementPayload, zIdentifyPayload, zIncrementPayload, zIngestAcceptedResponse, zIngestError, zIngestErrorCode, zIngestMode, zIngestOkResponse, zIngestRejection, zIngestRejectionReason, zIngestResponse, zTrackHandlerPayload, zTrackPayload };
|
|
302
|
+
export { type IDecrementPayload, type IIdentifyPayload, type IIncrementPayload, INGEST_ERROR_CODES, INGEST_MODES, INGEST_REJECTION_REASONS, type ITrackHandlerPayload, type ITrackPayload, type IngestAcceptedResponse, type IngestError, type IngestErrorCode, type IngestMode, type IngestOkResponse, type IngestRejection, type IngestRejectionReason, type IngestResponse, MAX_TRACK_PAYLOAD_BYTES, type SessionCredential, reconcileIngestResponse, zDecrementPayload, zIdentifyPayload, zIncrementPayload, zIngestAcceptedResponse, zIngestError, zIngestErrorCode, zIngestMode, zIngestOkResponse, zIngestRejection, zIngestRejectionReason, zIngestResponse, zSessionCredential, zTrackHandlerPayload, zTrackPayload };
|
package/dist/ingest.d.ts
CHANGED
|
@@ -127,9 +127,24 @@ declare const zIngestRejection: z.ZodObject<{
|
|
|
127
127
|
message: z.ZodOptional<z.ZodString>;
|
|
128
128
|
}, z.core.$strip>;
|
|
129
129
|
type IngestRejection = z.infer<typeof zIngestRejection>;
|
|
130
|
+
/**
|
|
131
|
+
* The session ingest filed this batch under, with the token that lets the
|
|
132
|
+
* browser (or a server acting for it) join the same session later with
|
|
133
|
+
* authority — see `signSessionToken` in `./identity`. Browser mode only;
|
|
134
|
+
* absent when the batch carried no sessionable event.
|
|
135
|
+
*/
|
|
136
|
+
declare const zSessionCredential: z.ZodObject<{
|
|
137
|
+
id: z.ZodString;
|
|
138
|
+
token: z.ZodString;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
type SessionCredential = z.infer<typeof zSessionCredential>;
|
|
130
141
|
/** 200 — accepted and handed to the materialize queue. */
|
|
131
142
|
declare const zIngestOkResponse: z.ZodObject<{
|
|
132
143
|
queued: z.ZodBoolean;
|
|
144
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
token: z.ZodString;
|
|
147
|
+
}, z.core.$strip>>;
|
|
133
148
|
accepted: z.ZodNumber;
|
|
134
149
|
duplicates: z.ZodNumber;
|
|
135
150
|
rejected: z.ZodArray<z.ZodObject<{
|
|
@@ -158,6 +173,10 @@ declare const zIngestOkResponse: z.ZodObject<{
|
|
|
158
173
|
declare const zIngestAcceptedResponse: z.ZodObject<{
|
|
159
174
|
backgroundQueued: z.ZodLiteral<false>;
|
|
160
175
|
replay: z.ZodLiteral<"unmaterialized-raw-events">;
|
|
176
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
id: z.ZodString;
|
|
178
|
+
token: z.ZodString;
|
|
179
|
+
}, z.core.$strip>>;
|
|
161
180
|
accepted: z.ZodNumber;
|
|
162
181
|
duplicates: z.ZodNumber;
|
|
163
182
|
rejected: z.ZodArray<z.ZodObject<{
|
|
@@ -179,6 +198,10 @@ declare const zIngestAcceptedResponse: z.ZodObject<{
|
|
|
179
198
|
}, z.core.$strip>;
|
|
180
199
|
declare const zIngestResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
181
200
|
queued: z.ZodBoolean;
|
|
201
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
token: z.ZodString;
|
|
204
|
+
}, z.core.$strip>>;
|
|
182
205
|
accepted: z.ZodNumber;
|
|
183
206
|
duplicates: z.ZodNumber;
|
|
184
207
|
rejected: z.ZodArray<z.ZodObject<{
|
|
@@ -200,6 +223,10 @@ declare const zIngestResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
200
223
|
}, z.core.$strip>, z.ZodObject<{
|
|
201
224
|
backgroundQueued: z.ZodLiteral<false>;
|
|
202
225
|
replay: z.ZodLiteral<"unmaterialized-raw-events">;
|
|
226
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
id: z.ZodString;
|
|
228
|
+
token: z.ZodString;
|
|
229
|
+
}, z.core.$strip>>;
|
|
203
230
|
accepted: z.ZodNumber;
|
|
204
231
|
duplicates: z.ZodNumber;
|
|
205
232
|
rejected: z.ZodArray<z.ZodObject<{
|
|
@@ -272,4 +299,4 @@ declare const zIngestError: z.ZodObject<{
|
|
|
272
299
|
}, z.core.$strip>;
|
|
273
300
|
type IngestError = z.infer<typeof zIngestError>;
|
|
274
301
|
|
|
275
|
-
export { type IDecrementPayload, type IIdentifyPayload, type IIncrementPayload, INGEST_ERROR_CODES, INGEST_MODES, INGEST_REJECTION_REASONS, type ITrackHandlerPayload, type ITrackPayload, type IngestAcceptedResponse, type IngestError, type IngestErrorCode, type IngestMode, type IngestOkResponse, type IngestRejection, type IngestRejectionReason, type IngestResponse, MAX_TRACK_PAYLOAD_BYTES, reconcileIngestResponse, zDecrementPayload, zIdentifyPayload, zIncrementPayload, zIngestAcceptedResponse, zIngestError, zIngestErrorCode, zIngestMode, zIngestOkResponse, zIngestRejection, zIngestRejectionReason, zIngestResponse, zTrackHandlerPayload, zTrackPayload };
|
|
302
|
+
export { type IDecrementPayload, type IIdentifyPayload, type IIncrementPayload, INGEST_ERROR_CODES, INGEST_MODES, INGEST_REJECTION_REASONS, type ITrackHandlerPayload, type ITrackPayload, type IngestAcceptedResponse, type IngestError, type IngestErrorCode, type IngestMode, type IngestOkResponse, type IngestRejection, type IngestRejectionReason, type IngestResponse, MAX_TRACK_PAYLOAD_BYTES, type SessionCredential, reconcileIngestResponse, zDecrementPayload, zIdentifyPayload, zIncrementPayload, zIngestAcceptedResponse, zIngestError, zIngestErrorCode, zIngestMode, zIngestOkResponse, zIngestRejection, zIngestRejectionReason, zIngestResponse, zSessionCredential, zTrackHandlerPayload, zTrackPayload };
|
package/dist/ingest.js
CHANGED
|
@@ -15,11 +15,12 @@ import {
|
|
|
15
15
|
zIngestRejection,
|
|
16
16
|
zIngestRejectionReason,
|
|
17
17
|
zIngestResponse,
|
|
18
|
+
zSessionCredential,
|
|
18
19
|
zTrackHandlerPayload,
|
|
19
20
|
zTrackPayload
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-EZ2TA4S6.js";
|
|
22
|
+
import "./chunk-GCQZNME3.js";
|
|
23
|
+
import "./chunk-HLQAZ6JW.js";
|
|
23
24
|
import {
|
|
24
25
|
AUTO_EVENT_NAMES,
|
|
25
26
|
AUTO_EVENT_PROPERTIES,
|
|
@@ -51,6 +52,7 @@ export {
|
|
|
51
52
|
zIngestRejection,
|
|
52
53
|
zIngestRejectionReason,
|
|
53
54
|
zIngestResponse,
|
|
55
|
+
zSessionCredential,
|
|
54
56
|
zTrackHandlerPayload,
|
|
55
57
|
zTrackPayload
|
|
56
58
|
};
|
package/dist/query.cjs
CHANGED
package/dist/query.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export { zDate, zInstant } from './index.cjs';
|
|
3
|
-
import './version-
|
|
3
|
+
import './version-BzeRTpta.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* `POST /api/v1/query/*` — the read contract.
|
|
@@ -56,8 +56,8 @@ type ChannelFilter = z.infer<typeof zChannelFilter>;
|
|
|
56
56
|
* response is an "aggregating" badge, not a refresh.
|
|
57
57
|
*/
|
|
58
58
|
declare const zQuerySource: z.ZodEnum<{
|
|
59
|
-
rollup: "rollup";
|
|
60
59
|
raw: "raw";
|
|
60
|
+
rollup: "rollup";
|
|
61
61
|
mixed: "mixed";
|
|
62
62
|
}>;
|
|
63
63
|
type QuerySource = z.infer<typeof zQuerySource>;
|
|
@@ -74,8 +74,8 @@ declare const zQueryMeta: z.ZodObject<{
|
|
|
74
74
|
cached: z.ZodBoolean;
|
|
75
75
|
timezone: z.ZodString;
|
|
76
76
|
source: z.ZodEnum<{
|
|
77
|
-
rollup: "rollup";
|
|
78
77
|
raw: "raw";
|
|
78
|
+
rollup: "rollup";
|
|
79
79
|
mixed: "mixed";
|
|
80
80
|
}>;
|
|
81
81
|
requestId: z.ZodString;
|
|
@@ -97,8 +97,8 @@ declare function zQueryEnvelope<T extends z.ZodTypeAny>(data: T): z.ZodObject<{
|
|
|
97
97
|
cached: z.ZodBoolean;
|
|
98
98
|
timezone: z.ZodString;
|
|
99
99
|
source: z.ZodEnum<{
|
|
100
|
-
rollup: "rollup";
|
|
101
100
|
raw: "raw";
|
|
101
|
+
rollup: "rollup";
|
|
102
102
|
mixed: "mixed";
|
|
103
103
|
}>;
|
|
104
104
|
requestId: z.ZodString;
|
|
@@ -222,8 +222,8 @@ declare const zEventsTimeseriesResponse: z.ZodObject<{
|
|
|
222
222
|
cached: z.ZodBoolean;
|
|
223
223
|
timezone: z.ZodString;
|
|
224
224
|
source: z.ZodEnum<{
|
|
225
|
-
rollup: "rollup";
|
|
226
225
|
raw: "raw";
|
|
226
|
+
rollup: "rollup";
|
|
227
227
|
mixed: "mixed";
|
|
228
228
|
}>;
|
|
229
229
|
requestId: z.ZodString;
|
|
@@ -295,8 +295,8 @@ declare const zFunnelResponse: z.ZodObject<{
|
|
|
295
295
|
cached: z.ZodBoolean;
|
|
296
296
|
timezone: z.ZodString;
|
|
297
297
|
source: z.ZodEnum<{
|
|
298
|
-
rollup: "rollup";
|
|
299
298
|
raw: "raw";
|
|
299
|
+
rollup: "rollup";
|
|
300
300
|
mixed: "mixed";
|
|
301
301
|
}>;
|
|
302
302
|
requestId: z.ZodString;
|
|
@@ -412,8 +412,8 @@ declare const zRetentionResponse: z.ZodObject<{
|
|
|
412
412
|
cached: z.ZodBoolean;
|
|
413
413
|
timezone: z.ZodString;
|
|
414
414
|
source: z.ZodEnum<{
|
|
415
|
-
rollup: "rollup";
|
|
416
415
|
raw: "raw";
|
|
416
|
+
rollup: "rollup";
|
|
417
417
|
mixed: "mixed";
|
|
418
418
|
}>;
|
|
419
419
|
requestId: z.ZodString;
|
|
@@ -518,8 +518,8 @@ declare const zTrafficOverviewResponse: z.ZodObject<{
|
|
|
518
518
|
cached: z.ZodBoolean;
|
|
519
519
|
timezone: z.ZodString;
|
|
520
520
|
source: z.ZodEnum<{
|
|
521
|
-
rollup: "rollup";
|
|
522
521
|
raw: "raw";
|
|
522
|
+
rollup: "rollup";
|
|
523
523
|
mixed: "mixed";
|
|
524
524
|
}>;
|
|
525
525
|
requestId: z.ZodString;
|
|
@@ -619,8 +619,8 @@ declare const zTrafficSourcesResponse: z.ZodObject<{
|
|
|
619
619
|
cached: z.ZodBoolean;
|
|
620
620
|
timezone: z.ZodString;
|
|
621
621
|
source: z.ZodEnum<{
|
|
622
|
-
rollup: "rollup";
|
|
623
622
|
raw: "raw";
|
|
623
|
+
rollup: "rollup";
|
|
624
624
|
mixed: "mixed";
|
|
625
625
|
}>;
|
|
626
626
|
requestId: z.ZodString;
|
package/dist/query.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export { zDate, zInstant } from './index.js';
|
|
3
|
-
import './version-
|
|
3
|
+
import './version-BzeRTpta.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* `POST /api/v1/query/*` — the read contract.
|
|
@@ -56,8 +56,8 @@ type ChannelFilter = z.infer<typeof zChannelFilter>;
|
|
|
56
56
|
* response is an "aggregating" badge, not a refresh.
|
|
57
57
|
*/
|
|
58
58
|
declare const zQuerySource: z.ZodEnum<{
|
|
59
|
-
rollup: "rollup";
|
|
60
59
|
raw: "raw";
|
|
60
|
+
rollup: "rollup";
|
|
61
61
|
mixed: "mixed";
|
|
62
62
|
}>;
|
|
63
63
|
type QuerySource = z.infer<typeof zQuerySource>;
|
|
@@ -74,8 +74,8 @@ declare const zQueryMeta: z.ZodObject<{
|
|
|
74
74
|
cached: z.ZodBoolean;
|
|
75
75
|
timezone: z.ZodString;
|
|
76
76
|
source: z.ZodEnum<{
|
|
77
|
-
rollup: "rollup";
|
|
78
77
|
raw: "raw";
|
|
78
|
+
rollup: "rollup";
|
|
79
79
|
mixed: "mixed";
|
|
80
80
|
}>;
|
|
81
81
|
requestId: z.ZodString;
|
|
@@ -97,8 +97,8 @@ declare function zQueryEnvelope<T extends z.ZodTypeAny>(data: T): z.ZodObject<{
|
|
|
97
97
|
cached: z.ZodBoolean;
|
|
98
98
|
timezone: z.ZodString;
|
|
99
99
|
source: z.ZodEnum<{
|
|
100
|
-
rollup: "rollup";
|
|
101
100
|
raw: "raw";
|
|
101
|
+
rollup: "rollup";
|
|
102
102
|
mixed: "mixed";
|
|
103
103
|
}>;
|
|
104
104
|
requestId: z.ZodString;
|
|
@@ -222,8 +222,8 @@ declare const zEventsTimeseriesResponse: z.ZodObject<{
|
|
|
222
222
|
cached: z.ZodBoolean;
|
|
223
223
|
timezone: z.ZodString;
|
|
224
224
|
source: z.ZodEnum<{
|
|
225
|
-
rollup: "rollup";
|
|
226
225
|
raw: "raw";
|
|
226
|
+
rollup: "rollup";
|
|
227
227
|
mixed: "mixed";
|
|
228
228
|
}>;
|
|
229
229
|
requestId: z.ZodString;
|
|
@@ -295,8 +295,8 @@ declare const zFunnelResponse: z.ZodObject<{
|
|
|
295
295
|
cached: z.ZodBoolean;
|
|
296
296
|
timezone: z.ZodString;
|
|
297
297
|
source: z.ZodEnum<{
|
|
298
|
-
rollup: "rollup";
|
|
299
298
|
raw: "raw";
|
|
299
|
+
rollup: "rollup";
|
|
300
300
|
mixed: "mixed";
|
|
301
301
|
}>;
|
|
302
302
|
requestId: z.ZodString;
|
|
@@ -412,8 +412,8 @@ declare const zRetentionResponse: z.ZodObject<{
|
|
|
412
412
|
cached: z.ZodBoolean;
|
|
413
413
|
timezone: z.ZodString;
|
|
414
414
|
source: z.ZodEnum<{
|
|
415
|
-
rollup: "rollup";
|
|
416
415
|
raw: "raw";
|
|
416
|
+
rollup: "rollup";
|
|
417
417
|
mixed: "mixed";
|
|
418
418
|
}>;
|
|
419
419
|
requestId: z.ZodString;
|
|
@@ -518,8 +518,8 @@ declare const zTrafficOverviewResponse: z.ZodObject<{
|
|
|
518
518
|
cached: z.ZodBoolean;
|
|
519
519
|
timezone: z.ZodString;
|
|
520
520
|
source: z.ZodEnum<{
|
|
521
|
-
rollup: "rollup";
|
|
522
521
|
raw: "raw";
|
|
522
|
+
rollup: "rollup";
|
|
523
523
|
mixed: "mixed";
|
|
524
524
|
}>;
|
|
525
525
|
requestId: z.ZodString;
|
|
@@ -619,8 +619,8 @@ declare const zTrafficSourcesResponse: z.ZodObject<{
|
|
|
619
619
|
cached: z.ZodBoolean;
|
|
620
620
|
timezone: z.ZodString;
|
|
621
621
|
source: z.ZodEnum<{
|
|
622
|
-
rollup: "rollup";
|
|
623
622
|
raw: "raw";
|
|
623
|
+
rollup: "rollup";
|
|
624
624
|
mixed: "mixed";
|
|
625
625
|
}>;
|
|
626
626
|
requestId: z.ZodString;
|
package/dist/query.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* every publish is a wire bump: consumers that check for exact equality —
|
|
14
14
|
* every SDK — must upgrade in lockstep with the server.
|
|
15
15
|
*/
|
|
16
|
-
declare const CONTRACT_VERSION = "0.6.
|
|
16
|
+
declare const CONTRACT_VERSION = "0.6.1";
|
|
17
17
|
/** Response header carrying the server's contract version. */
|
|
18
18
|
declare const CONTRACT_VERSION_HEADER = "x-reopt-contract-version";
|
|
19
19
|
/** Request header names shared by the ingest and query planes. */
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* every publish is a wire bump: consumers that check for exact equality —
|
|
14
14
|
* every SDK — must upgrade in lockstep with the server.
|
|
15
15
|
*/
|
|
16
|
-
declare const CONTRACT_VERSION = "0.6.
|
|
16
|
+
declare const CONTRACT_VERSION = "0.6.1";
|
|
17
17
|
/** Response header carrying the server's contract version. */
|
|
18
18
|
declare const CONTRACT_VERSION_HEADER = "x-reopt-contract-version";
|
|
19
19
|
/** Request header names shared by the ingest and query planes. */
|