@reopt-ai/data-contract 0.3.0 → 0.6.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 (84) hide show
  1. package/README.md +11 -4
  2. package/dist/{chunk-2LJ7JLDX.js → chunk-33BCA2LH.js} +8 -16
  3. package/dist/chunk-33BCA2LH.js.map +1 -0
  4. package/dist/chunk-3EEANNYN.cjs +62 -0
  5. package/dist/chunk-3EEANNYN.cjs.map +1 -0
  6. package/dist/{chunk-3A7WZ7L6.js → chunk-5BRCHDS3.js} +26 -7
  7. package/dist/chunk-5BRCHDS3.js.map +1 -0
  8. package/dist/chunk-6ZJOC4NJ.js +111 -0
  9. package/dist/chunk-6ZJOC4NJ.js.map +1 -0
  10. package/dist/chunk-FP2X3PRK.js +62 -0
  11. package/dist/chunk-FP2X3PRK.js.map +1 -0
  12. package/dist/{chunk-I2T4HRBM.cjs → chunk-FUGY5ANJ.cjs} +131 -19
  13. package/dist/chunk-FUGY5ANJ.cjs.map +1 -0
  14. package/dist/chunk-IXPP5K4I.js +19 -0
  15. package/dist/chunk-IXPP5K4I.js.map +1 -0
  16. package/dist/{chunk-J4VD3TLV.js → chunk-IY4MXH35.js} +30 -4
  17. package/dist/chunk-IY4MXH35.js.map +1 -0
  18. package/dist/chunk-JHHCT3GA.cjs +19 -0
  19. package/dist/chunk-JHHCT3GA.cjs.map +1 -0
  20. package/dist/chunk-KRJPEMFD.cjs +111 -0
  21. package/dist/chunk-KRJPEMFD.cjs.map +1 -0
  22. package/dist/{chunk-55IWO4S3.js → chunk-L3WJGIKD.js} +123 -11
  23. package/dist/chunk-L3WJGIKD.js.map +1 -0
  24. package/dist/{chunk-ATPS4UV6.cjs → chunk-LA5F5KR6.cjs} +33 -7
  25. package/dist/chunk-LA5F5KR6.cjs.map +1 -0
  26. package/dist/{chunk-RDPPPFGO.cjs → chunk-OGL3P7IH.cjs} +30 -11
  27. package/dist/chunk-OGL3P7IH.cjs.map +1 -0
  28. package/dist/{chunk-KXEQGD3E.cjs → chunk-YSAEOYPD.cjs} +9 -17
  29. package/dist/chunk-YSAEOYPD.cjs.map +1 -0
  30. package/dist/client.cjs +87 -43
  31. package/dist/client.cjs.map +1 -1
  32. package/dist/client.d.cts +8 -2
  33. package/dist/client.d.ts +8 -2
  34. package/dist/client.js +50 -6
  35. package/dist/client.js.map +1 -1
  36. package/dist/control.cjs +15 -4
  37. package/dist/control.cjs.map +1 -1
  38. package/dist/control.d.cts +43 -1
  39. package/dist/control.d.ts +43 -1
  40. package/dist/control.js +16 -5
  41. package/dist/events.cjs +17 -0
  42. package/dist/events.cjs.map +1 -0
  43. package/dist/events.d.cts +59 -0
  44. package/dist/events.d.ts +59 -0
  45. package/dist/events.js +17 -0
  46. package/dist/events.js.map +1 -0
  47. package/dist/identity.cjs +47 -0
  48. package/dist/identity.cjs.map +1 -0
  49. package/dist/identity.d.cts +90 -0
  50. package/dist/identity.d.ts +90 -0
  51. package/dist/identity.js +47 -0
  52. package/dist/identity.js.map +1 -0
  53. package/dist/index.cjs +4 -2
  54. package/dist/index.cjs.map +1 -1
  55. package/dist/index.d.cts +7 -17
  56. package/dist/index.d.ts +7 -17
  57. package/dist/index.js +7 -5
  58. package/dist/ingest.cjs +16 -2
  59. package/dist/ingest.cjs.map +1 -1
  60. package/dist/ingest.d.cts +6 -3
  61. package/dist/ingest.d.ts +6 -3
  62. package/dist/ingest.js +16 -2
  63. package/dist/query.cjs +28 -3
  64. package/dist/query.cjs.map +1 -1
  65. package/dist/query.d.cts +299 -18
  66. package/dist/query.d.ts +299 -18
  67. package/dist/query.js +29 -4
  68. package/dist/report.cjs +85 -0
  69. package/dist/report.cjs.map +1 -0
  70. package/dist/report.d.cts +167 -0
  71. package/dist/report.d.ts +167 -0
  72. package/dist/report.js +85 -0
  73. package/dist/report.js.map +1 -0
  74. package/dist/version-CC4_BBvq.d.cts +26 -0
  75. package/dist/version-CC4_BBvq.d.ts +26 -0
  76. package/package.json +18 -2
  77. package/dist/chunk-2LJ7JLDX.js.map +0 -1
  78. package/dist/chunk-3A7WZ7L6.js.map +0 -1
  79. package/dist/chunk-55IWO4S3.js.map +0 -1
  80. package/dist/chunk-ATPS4UV6.cjs.map +0 -1
  81. package/dist/chunk-I2T4HRBM.cjs.map +0 -1
  82. package/dist/chunk-J4VD3TLV.js.map +0 -1
  83. package/dist/chunk-KXEQGD3E.cjs.map +0 -1
  84. package/dist/chunk-RDPPPFGO.cjs.map +0 -1
@@ -0,0 +1,90 @@
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-CC4_BBvq.cjs';
2
+
3
+ /**
4
+ * Request header carrying the browser's current session id. The browser SDK
5
+ * adds it to same-origin requests so a server-side `track()` can land in the
6
+ * session the user is actually in; the server SDK forwards it to ingest.
7
+ *
8
+ * Ingest treats it as a *hint*, never as authority — a browser can put any
9
+ * value here.
10
+ */
11
+ declare const SESSION_ID_HEADER = "reopt-session-id";
12
+ /** Every request header the identity protocol may carry, for CORS allow-lists. */
13
+ declare const IDENTITY_REQUEST_HEADERS: readonly ["reopt-device-id", "reopt-session-id"];
14
+ /**
15
+ * 400 days — the longest lifetime Chrome will honour. Anything longer is
16
+ * silently clamped to this, so asking for more only hides the real expiry.
17
+ */
18
+ declare const COOKIE_MAX_AGE_SECONDS: number;
19
+ /** Consent category whose refusal means "send nothing at all". */
20
+ declare const OPT_OUT_CONSENT_CATEGORY = "analytics";
21
+ /** `reopt_<writeKey>_device` — device id plus session/profile hints. */
22
+ declare function deviceCookieName(writeKey: string): string;
23
+ /** `reopt_<writeKey>_consent` — per-category consent decisions. */
24
+ declare function consentCookieName(writeKey: string): string;
25
+ /** Everything the device cookie may carry. Only `deviceId` is required. */
26
+ interface DeviceCookieState {
27
+ deviceId: string;
28
+ /** Current session, if the browser has one. */
29
+ sessionId?: string;
30
+ /** Last identified profile. A hint for the server SDK, never trusted by ingest. */
31
+ profileId?: string;
32
+ }
33
+ /** Per-category consent. `false` withdraws, `true` grants, absent = undecided. */
34
+ type ConsentCookieState = Record<string, boolean>;
35
+ /**
36
+ * What the server hands the browser SDK so the first render already agrees
37
+ * with the server about who the visitor is. Plain JSON — it crosses the
38
+ * RSC → client component boundary as a prop.
39
+ */
40
+ interface ReoptBootstrap {
41
+ /** From the device cookie (seeded by the proxy on first visit). */
42
+ deviceId: string;
43
+ /** Session hint, or `null` when the browser has not started one. */
44
+ sessionId: string | null;
45
+ /** Result of the server's `getProfileId` resolver, or `null`. */
46
+ profileId: string | null;
47
+ consent: ConsentCookieState;
48
+ /** Server clock at render time, so a skewed device clock can be corrected. */
49
+ serverTimeMs: number;
50
+ }
51
+ /**
52
+ * Ids are opaque, but a cookie is attacker-controlled input (a sibling
53
+ * subdomain can set one). The value ends up in an HTTP header, and
54
+ * `Headers.set` throws on anything outside ISO-8859-1 — so a single odd
55
+ * cookie would break every `fetch` the tracing patch touches. Only the URL
56
+ * "unreserved" set is accepted; every id this SDK mints is a UUID.
57
+ */
58
+ declare const IDENTITY_ID_PATTERN: RegExp;
59
+ declare function isValidIdentityId(value: unknown): value is string;
60
+ /**
61
+ * Reads a device cookie value. Accepts the JSON envelope written by
62
+ * `serializeDeviceCookie` and, for cookies seeded before the envelope existed,
63
+ * a bare device id. Returns `null` for anything else — a malformed cookie is
64
+ * treated as absent, never as an error, so a corrupted value cannot take the
65
+ * page down.
66
+ */
67
+ declare function parseDeviceCookie(raw: string | null | undefined): DeviceCookieState | null;
68
+ /**
69
+ * Cookie values may not contain `;`, `,` or whitespace, and JSON contains
70
+ * quotes and commas. The envelope is therefore URI-encoded; `parseDeviceCookie`
71
+ * reverses it. Optional fields are omitted rather than written as `null` so
72
+ * the cookie stays as small as the state it carries.
73
+ */
74
+ declare function serializeDeviceCookie(state: DeviceCookieState): string;
75
+ /**
76
+ * Reads a consent cookie. Only boolean entries survive; anything else in the
77
+ * object is dropped rather than failing the whole cookie, because one odd key
78
+ * must not erase a user's recorded opt-out.
79
+ */
80
+ declare function parseConsentCookie(raw: string | null | undefined): ConsentCookieState | null;
81
+ declare function serializeConsentCookie(state: ConsentCookieState): string;
82
+ /**
83
+ * "Opted out" means the visitor refused the `analytics` category. An absent
84
+ * cookie or an undecided category is *not* an opt-out — it is the default
85
+ * state of every first visit, and treating it as refusal would make consent
86
+ * banners mandatory for every integration.
87
+ */
88
+ declare function isOptedOut(consent: ConsentCookieState | null | undefined): boolean;
89
+
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 };
@@ -0,0 +1,90 @@
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-CC4_BBvq.js';
2
+
3
+ /**
4
+ * Request header carrying the browser's current session id. The browser SDK
5
+ * adds it to same-origin requests so a server-side `track()` can land in the
6
+ * session the user is actually in; the server SDK forwards it to ingest.
7
+ *
8
+ * Ingest treats it as a *hint*, never as authority — a browser can put any
9
+ * value here.
10
+ */
11
+ declare const SESSION_ID_HEADER = "reopt-session-id";
12
+ /** Every request header the identity protocol may carry, for CORS allow-lists. */
13
+ declare const IDENTITY_REQUEST_HEADERS: readonly ["reopt-device-id", "reopt-session-id"];
14
+ /**
15
+ * 400 days — the longest lifetime Chrome will honour. Anything longer is
16
+ * silently clamped to this, so asking for more only hides the real expiry.
17
+ */
18
+ declare const COOKIE_MAX_AGE_SECONDS: number;
19
+ /** Consent category whose refusal means "send nothing at all". */
20
+ declare const OPT_OUT_CONSENT_CATEGORY = "analytics";
21
+ /** `reopt_<writeKey>_device` — device id plus session/profile hints. */
22
+ declare function deviceCookieName(writeKey: string): string;
23
+ /** `reopt_<writeKey>_consent` — per-category consent decisions. */
24
+ declare function consentCookieName(writeKey: string): string;
25
+ /** Everything the device cookie may carry. Only `deviceId` is required. */
26
+ interface DeviceCookieState {
27
+ deviceId: string;
28
+ /** Current session, if the browser has one. */
29
+ sessionId?: string;
30
+ /** Last identified profile. A hint for the server SDK, never trusted by ingest. */
31
+ profileId?: string;
32
+ }
33
+ /** Per-category consent. `false` withdraws, `true` grants, absent = undecided. */
34
+ type ConsentCookieState = Record<string, boolean>;
35
+ /**
36
+ * What the server hands the browser SDK so the first render already agrees
37
+ * with the server about who the visitor is. Plain JSON — it crosses the
38
+ * RSC → client component boundary as a prop.
39
+ */
40
+ interface ReoptBootstrap {
41
+ /** From the device cookie (seeded by the proxy on first visit). */
42
+ deviceId: string;
43
+ /** Session hint, or `null` when the browser has not started one. */
44
+ sessionId: string | null;
45
+ /** Result of the server's `getProfileId` resolver, or `null`. */
46
+ profileId: string | null;
47
+ consent: ConsentCookieState;
48
+ /** Server clock at render time, so a skewed device clock can be corrected. */
49
+ serverTimeMs: number;
50
+ }
51
+ /**
52
+ * Ids are opaque, but a cookie is attacker-controlled input (a sibling
53
+ * subdomain can set one). The value ends up in an HTTP header, and
54
+ * `Headers.set` throws on anything outside ISO-8859-1 — so a single odd
55
+ * cookie would break every `fetch` the tracing patch touches. Only the URL
56
+ * "unreserved" set is accepted; every id this SDK mints is a UUID.
57
+ */
58
+ declare const IDENTITY_ID_PATTERN: RegExp;
59
+ declare function isValidIdentityId(value: unknown): value is string;
60
+ /**
61
+ * Reads a device cookie value. Accepts the JSON envelope written by
62
+ * `serializeDeviceCookie` and, for cookies seeded before the envelope existed,
63
+ * a bare device id. Returns `null` for anything else — a malformed cookie is
64
+ * treated as absent, never as an error, so a corrupted value cannot take the
65
+ * page down.
66
+ */
67
+ declare function parseDeviceCookie(raw: string | null | undefined): DeviceCookieState | null;
68
+ /**
69
+ * Cookie values may not contain `;`, `,` or whitespace, and JSON contains
70
+ * quotes and commas. The envelope is therefore URI-encoded; `parseDeviceCookie`
71
+ * reverses it. Optional fields are omitted rather than written as `null` so
72
+ * the cookie stays as small as the state it carries.
73
+ */
74
+ declare function serializeDeviceCookie(state: DeviceCookieState): string;
75
+ /**
76
+ * Reads a consent cookie. Only boolean entries survive; anything else in the
77
+ * object is dropped rather than failing the whole cookie, because one odd key
78
+ * must not erase a user's recorded opt-out.
79
+ */
80
+ declare function parseConsentCookie(raw: string | null | undefined): ConsentCookieState | null;
81
+ declare function serializeConsentCookie(state: ConsentCookieState): string;
82
+ /**
83
+ * "Opted out" means the visitor refused the `analytics` category. An absent
84
+ * cookie or an undecided category is *not* an opt-out — it is the default
85
+ * state of every first visit, and treating it as refusal would make consent
86
+ * banners mandatory for every integration.
87
+ */
88
+ declare function isOptedOut(consent: ConsentCookieState | null | undefined): boolean;
89
+
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 };
@@ -0,0 +1,47 @@
1
+ import {
2
+ COOKIE_MAX_AGE_SECONDS,
3
+ IDENTITY_ID_PATTERN,
4
+ IDENTITY_REQUEST_HEADERS,
5
+ OPT_OUT_CONSENT_CATEGORY,
6
+ SESSION_ID_HEADER,
7
+ consentCookieName,
8
+ deviceCookieName,
9
+ isOptedOut,
10
+ isValidIdentityId,
11
+ parseConsentCookie,
12
+ parseDeviceCookie,
13
+ serializeConsentCookie,
14
+ serializeDeviceCookie
15
+ } from "./chunk-6ZJOC4NJ.js";
16
+ import {
17
+ CLIENT_ID_HEADER,
18
+ CLIENT_SECRET_HEADER,
19
+ CONTRACT_VERSION,
20
+ CONTRACT_VERSION_HEADER,
21
+ DEVICE_ID_HEADER,
22
+ REQUEST_ID_HEADER,
23
+ WRITE_KEY_HEADER
24
+ } from "./chunk-IXPP5K4I.js";
25
+ export {
26
+ CLIENT_ID_HEADER,
27
+ CLIENT_SECRET_HEADER,
28
+ CONTRACT_VERSION,
29
+ CONTRACT_VERSION_HEADER,
30
+ COOKIE_MAX_AGE_SECONDS,
31
+ DEVICE_ID_HEADER,
32
+ IDENTITY_ID_PATTERN,
33
+ IDENTITY_REQUEST_HEADERS,
34
+ OPT_OUT_CONSENT_CATEGORY,
35
+ REQUEST_ID_HEADER,
36
+ SESSION_ID_HEADER,
37
+ WRITE_KEY_HEADER,
38
+ consentCookieName,
39
+ deviceCookieName,
40
+ isOptedOut,
41
+ isValidIdentityId,
42
+ parseConsentCookie,
43
+ parseDeviceCookie,
44
+ serializeConsentCookie,
45
+ serializeDeviceCookie
46
+ };
47
+ //# sourceMappingURL=identity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/index.cjs CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
 
4
4
 
5
+ var _chunkYSAEOYPDcjs = require('./chunk-YSAEOYPD.cjs');
5
6
 
6
7
 
7
8
 
@@ -9,8 +10,8 @@
9
10
 
10
11
 
11
12
 
12
- var _chunkKXEQGD3Ecjs = require('./chunk-KXEQGD3E.cjs');
13
13
 
14
+ var _chunkJHHCT3GAcjs = require('./chunk-JHHCT3GA.cjs');
14
15
 
15
16
 
16
17
 
@@ -21,5 +22,6 @@ var _chunkKXEQGD3Ecjs = require('./chunk-KXEQGD3E.cjs');
21
22
 
22
23
 
23
24
 
24
- exports.CLIENT_ID_HEADER = _chunkKXEQGD3Ecjs.CLIENT_ID_HEADER; exports.CLIENT_SECRET_HEADER = _chunkKXEQGD3Ecjs.CLIENT_SECRET_HEADER; exports.CONTRACT_VERSION = _chunkKXEQGD3Ecjs.CONTRACT_VERSION; exports.CONTRACT_VERSION_HEADER = _chunkKXEQGD3Ecjs.CONTRACT_VERSION_HEADER; exports.DEVICE_ID_HEADER = _chunkKXEQGD3Ecjs.DEVICE_ID_HEADER; exports.DataApiError = _chunkKXEQGD3Ecjs.DataApiError; exports.REQUEST_ID_HEADER = _chunkKXEQGD3Ecjs.REQUEST_ID_HEADER; exports.WRITE_KEY_HEADER = _chunkKXEQGD3Ecjs.WRITE_KEY_HEADER; exports.zDate = _chunkKXEQGD3Ecjs.zDate; exports.zInstant = _chunkKXEQGD3Ecjs.zInstant;
25
+
26
+ exports.CLIENT_ID_HEADER = _chunkJHHCT3GAcjs.CLIENT_ID_HEADER; exports.CLIENT_SECRET_HEADER = _chunkJHHCT3GAcjs.CLIENT_SECRET_HEADER; exports.CONTRACT_VERSION = _chunkJHHCT3GAcjs.CONTRACT_VERSION; exports.CONTRACT_VERSION_HEADER = _chunkJHHCT3GAcjs.CONTRACT_VERSION_HEADER; exports.DEVICE_ID_HEADER = _chunkJHHCT3GAcjs.DEVICE_ID_HEADER; exports.DataApiError = _chunkYSAEOYPDcjs.DataApiError; exports.REQUEST_ID_HEADER = _chunkJHHCT3GAcjs.REQUEST_ID_HEADER; exports.WRITE_KEY_HEADER = _chunkJHHCT3GAcjs.WRITE_KEY_HEADER; exports.zDate = _chunkYSAEOYPDcjs.zDate; exports.zInstant = _chunkYSAEOYPDcjs.zInstant;
25
27
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,+lBAAC","file":"/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/index.cjs"}
1
+ {"version":3,"sources":["/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;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;AACF,+lBAAC","file":"/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/index.cjs"}
package/dist/index.d.cts CHANGED
@@ -1,4 +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-CC4_BBvq.cjs';
2
3
 
3
4
  /**
4
5
  * `@reopt-ai/data-contract` — the wire contract between reopt-data and its
@@ -10,28 +11,17 @@ import { z } from 'zod';
10
11
  * `@reopt-ai/data-contract/query` POST /api/v1/query/* request + response schemas
11
12
  * `@reopt-ai/data-contract/control` provisioning request + response schemas
12
13
  * `@reopt-ai/data-contract/client` createDataClient() — typed fetch over all
14
+ * `@reopt-ai/data-contract/events` event names + property keys (no zod)
15
+ * `@reopt-ai/data-contract/identity` cookie/header names and encodings shared by
16
+ * the SDKs, the Next.js proxy and ingest
13
17
  *
14
18
  * Only `/client` touches `fetch`; everything else is pure zod. The single
15
19
  * runtime dependency is zod, deliberately — consumers bundle this.
16
20
  */
17
21
 
18
22
  /**
19
- * Contract version. Bumped on any breaking change to a schema in this package.
20
- * The server echoes the version it was built against in `x-reopt-contract-version`;
21
- * `createDataClient` surfaces a mismatch rather than guessing.
22
- */
23
- declare const CONTRACT_VERSION = "0.3.0";
24
- /** Response header carrying the server's contract version. */
25
- declare const CONTRACT_VERSION_HEADER = "x-reopt-contract-version";
26
- /** Request header names shared by the ingest and query planes. */
27
- declare const CLIENT_ID_HEADER = "reopt-client-id";
28
- declare const CLIENT_SECRET_HEADER = "reopt-client-secret";
29
- declare const WRITE_KEY_HEADER = "reopt-write-key";
30
- declare const DEVICE_ID_HEADER = "reopt-device-id";
31
- declare const REQUEST_ID_HEADER = "x-request-id";
32
- /**
33
- * A UTC calendar date. Windows are inclusive on both ends and are widened
34
- * server-side to `startDate T00:00:00Z` .. `endDate T23:59:59Z`.
23
+ * A real calendar date. The query's resolved IANA zone decides which instants
24
+ * its inclusive day covers.
35
25
  */
36
26
  declare const zDate: z.ZodString;
37
27
  /** ISO-8601 instant, as produced by `Date#toISOString()`. */
@@ -92,4 +82,4 @@ declare class DataApiError extends Error {
92
82
  static is(value: unknown): value is DataApiError;
93
83
  }
94
84
 
95
- export { CLIENT_ID_HEADER, CLIENT_SECRET_HEADER, CONTRACT_VERSION, CONTRACT_VERSION_HEADER, type ClientCredentials, DEVICE_ID_HEADER, DataApiError, type OptionalClientCredentials, REQUEST_ID_HEADER, WRITE_KEY_HEADER, zDate, zInstant };
85
+ export { type ClientCredentials, DataApiError, type OptionalClientCredentials, zDate, zInstant };
package/dist/index.d.ts CHANGED
@@ -1,4 +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-CC4_BBvq.js';
2
3
 
3
4
  /**
4
5
  * `@reopt-ai/data-contract` — the wire contract between reopt-data and its
@@ -10,28 +11,17 @@ import { z } from 'zod';
10
11
  * `@reopt-ai/data-contract/query` POST /api/v1/query/* request + response schemas
11
12
  * `@reopt-ai/data-contract/control` provisioning request + response schemas
12
13
  * `@reopt-ai/data-contract/client` createDataClient() — typed fetch over all
14
+ * `@reopt-ai/data-contract/events` event names + property keys (no zod)
15
+ * `@reopt-ai/data-contract/identity` cookie/header names and encodings shared by
16
+ * the SDKs, the Next.js proxy and ingest
13
17
  *
14
18
  * Only `/client` touches `fetch`; everything else is pure zod. The single
15
19
  * runtime dependency is zod, deliberately — consumers bundle this.
16
20
  */
17
21
 
18
22
  /**
19
- * Contract version. Bumped on any breaking change to a schema in this package.
20
- * The server echoes the version it was built against in `x-reopt-contract-version`;
21
- * `createDataClient` surfaces a mismatch rather than guessing.
22
- */
23
- declare const CONTRACT_VERSION = "0.3.0";
24
- /** Response header carrying the server's contract version. */
25
- declare const CONTRACT_VERSION_HEADER = "x-reopt-contract-version";
26
- /** Request header names shared by the ingest and query planes. */
27
- declare const CLIENT_ID_HEADER = "reopt-client-id";
28
- declare const CLIENT_SECRET_HEADER = "reopt-client-secret";
29
- declare const WRITE_KEY_HEADER = "reopt-write-key";
30
- declare const DEVICE_ID_HEADER = "reopt-device-id";
31
- declare const REQUEST_ID_HEADER = "x-request-id";
32
- /**
33
- * A UTC calendar date. Windows are inclusive on both ends and are widened
34
- * server-side to `startDate T00:00:00Z` .. `endDate T23:59:59Z`.
23
+ * A real calendar date. The query's resolved IANA zone decides which instants
24
+ * its inclusive day covers.
35
25
  */
36
26
  declare const zDate: z.ZodString;
37
27
  /** ISO-8601 instant, as produced by `Date#toISOString()`. */
@@ -92,4 +82,4 @@ declare class DataApiError extends Error {
92
82
  static is(value: unknown): value is DataApiError;
93
83
  }
94
84
 
95
- export { CLIENT_ID_HEADER, CLIENT_SECRET_HEADER, CONTRACT_VERSION, CONTRACT_VERSION_HEADER, type ClientCredentials, DEVICE_ID_HEADER, DataApiError, type OptionalClientCredentials, REQUEST_ID_HEADER, WRITE_KEY_HEADER, zDate, zInstant };
85
+ export { type ClientCredentials, DataApiError, type OptionalClientCredentials, zDate, zInstant };
package/dist/index.js CHANGED
@@ -1,15 +1,17 @@
1
+ import {
2
+ DataApiError,
3
+ zDate,
4
+ zInstant
5
+ } from "./chunk-33BCA2LH.js";
1
6
  import {
2
7
  CLIENT_ID_HEADER,
3
8
  CLIENT_SECRET_HEADER,
4
9
  CONTRACT_VERSION,
5
10
  CONTRACT_VERSION_HEADER,
6
11
  DEVICE_ID_HEADER,
7
- DataApiError,
8
12
  REQUEST_ID_HEADER,
9
- WRITE_KEY_HEADER,
10
- zDate,
11
- zInstant
12
- } from "./chunk-2LJ7JLDX.js";
13
+ WRITE_KEY_HEADER
14
+ } from "./chunk-IXPP5K4I.js";
13
15
  export {
14
16
  CLIENT_ID_HEADER,
15
17
  CLIENT_SECRET_HEADER,
package/dist/ingest.cjs CHANGED
@@ -17,14 +17,17 @@
17
17
 
18
18
 
19
19
 
20
+ var _chunkOGL3P7IHcjs = require('./chunk-OGL3P7IH.cjs');
21
+ require('./chunk-KRJPEMFD.cjs');
22
+ require('./chunk-JHHCT3GA.cjs');
20
23
 
21
- var _chunkRDPPPFGOcjs = require('./chunk-RDPPPFGO.cjs');
22
24
 
23
25
 
24
26
 
25
27
 
26
28
 
27
29
 
30
+ var _chunk3EEANNYNcjs = require('./chunk-3EEANNYN.cjs');
28
31
 
29
32
 
30
33
 
@@ -39,5 +42,16 @@ var _chunkRDPPPFGOcjs = require('./chunk-RDPPPFGO.cjs');
39
42
 
40
43
 
41
44
 
42
- exports.INGEST_ERROR_CODES = _chunkRDPPPFGOcjs.INGEST_ERROR_CODES; exports.INGEST_MODES = _chunkRDPPPFGOcjs.INGEST_MODES; exports.INGEST_REJECTION_REASONS = _chunkRDPPPFGOcjs.INGEST_REJECTION_REASONS; exports.MAX_TRACK_PAYLOAD_BYTES = _chunkRDPPPFGOcjs.MAX_TRACK_PAYLOAD_BYTES; exports.RESERVED_EVENT_NAMES = _chunkRDPPPFGOcjs.RESERVED_EVENT_NAMES; exports.reconcileIngestResponse = _chunkRDPPPFGOcjs.reconcileIngestResponse; exports.zDecrementPayload = _chunkRDPPPFGOcjs.zDecrementPayload; exports.zIdentifyPayload = _chunkRDPPPFGOcjs.zIdentifyPayload; exports.zIncrementPayload = _chunkRDPPPFGOcjs.zIncrementPayload; exports.zIngestAcceptedResponse = _chunkRDPPPFGOcjs.zIngestAcceptedResponse; exports.zIngestError = _chunkRDPPPFGOcjs.zIngestError; exports.zIngestErrorCode = _chunkRDPPPFGOcjs.zIngestErrorCode; exports.zIngestMode = _chunkRDPPPFGOcjs.zIngestMode; exports.zIngestOkResponse = _chunkRDPPPFGOcjs.zIngestOkResponse; exports.zIngestRejection = _chunkRDPPPFGOcjs.zIngestRejection; exports.zIngestRejectionReason = _chunkRDPPPFGOcjs.zIngestRejectionReason; exports.zIngestResponse = _chunkRDPPPFGOcjs.zIngestResponse; exports.zTrackHandlerPayload = _chunkRDPPPFGOcjs.zTrackHandlerPayload; exports.zTrackPayload = _chunkRDPPPFGOcjs.zTrackPayload;
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+ 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 = _chunkOGL3P7IHcjs.INGEST_ERROR_CODES; exports.INGEST_MODES = _chunkOGL3P7IHcjs.INGEST_MODES; exports.INGEST_REJECTION_REASONS = _chunkOGL3P7IHcjs.INGEST_REJECTION_REASONS; exports.MAX_TRACK_PAYLOAD_BYTES = _chunkOGL3P7IHcjs.MAX_TRACK_PAYLOAD_BYTES; exports.RESERVED_EVENT_NAMES = _chunk3EEANNYNcjs.RESERVED_EVENT_NAMES; exports.SCROLL_DEPTH_BUCKETS = _chunk3EEANNYNcjs.SCROLL_DEPTH_BUCKETS; exports.reconcileIngestResponse = _chunkOGL3P7IHcjs.reconcileIngestResponse; exports.scrollDepthBucket = _chunk3EEANNYNcjs.scrollDepthBucket; exports.zDecrementPayload = _chunkOGL3P7IHcjs.zDecrementPayload; exports.zIdentifyPayload = _chunkOGL3P7IHcjs.zIdentifyPayload; exports.zIncrementPayload = _chunkOGL3P7IHcjs.zIncrementPayload; exports.zIngestAcceptedResponse = _chunkOGL3P7IHcjs.zIngestAcceptedResponse; exports.zIngestError = _chunkOGL3P7IHcjs.zIngestError; exports.zIngestErrorCode = _chunkOGL3P7IHcjs.zIngestErrorCode; exports.zIngestMode = _chunkOGL3P7IHcjs.zIngestMode; exports.zIngestOkResponse = _chunkOGL3P7IHcjs.zIngestOkResponse; exports.zIngestRejection = _chunkOGL3P7IHcjs.zIngestRejection; exports.zIngestRejectionReason = _chunkOGL3P7IHcjs.zIngestRejectionReason; exports.zIngestResponse = _chunkOGL3P7IHcjs.zIngestResponse; exports.zTrackHandlerPayload = _chunkOGL3P7IHcjs.zTrackHandlerPayload; exports.zTrackPayload = _chunkOGL3P7IHcjs.zTrackPayload;
43
57
  //# sourceMappingURL=ingest.cjs.map
@@ -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;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0uCAAC","file":"/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/ingest.cjs"}
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,qkDAAC","file":"/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/ingest.cjs"}
package/dist/ingest.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ export { AUTO_EVENT_NAMES, AUTO_EVENT_PROPERTIES, AUTO_EVENT_ROLLUP_KEYS, AutoEventName, RESERVED_EVENT_NAMES, SCROLL_DEPTH_BUCKETS, ScrollDepthBucket, scrollDepthBucket } from './events.cjs';
2
3
 
3
4
  /**
4
5
  * `POST /api/track` — the ingest contract.
@@ -12,8 +13,6 @@ import { z } from 'zod';
12
13
  * now a deprecated re-export of this module.
13
14
  */
14
15
 
15
- /** Event names the pipeline reserves for its own session bookkeeping. */
16
- declare const RESERVED_EVENT_NAMES: readonly ["session_start", "session_end", "screen_view"];
17
16
  /** Hard cap enforced by the route before the body is even parsed. */
18
17
  declare const MAX_TRACK_PAYLOAD_BYTES = 512000;
19
18
  declare const zTrackPayload: z.ZodObject<{
@@ -42,6 +41,7 @@ declare const zDecrementPayload: z.ZodObject<{
42
41
  declare const zTrackHandlerPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
43
42
  eventId: z.ZodUUID;
44
43
  timestamp: z.ZodNumber;
44
+ deviceId: z.ZodOptional<z.ZodString>;
45
45
  type: z.ZodLiteral<"track">;
46
46
  payload: z.ZodObject<{
47
47
  name: z.ZodString;
@@ -51,6 +51,7 @@ declare const zTrackHandlerPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
51
51
  }, z.core.$strip>, z.ZodObject<{
52
52
  eventId: z.ZodUUID;
53
53
  timestamp: z.ZodNumber;
54
+ deviceId: z.ZodOptional<z.ZodString>;
54
55
  type: z.ZodLiteral<"identify">;
55
56
  payload: z.ZodObject<{
56
57
  profileId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
@@ -63,6 +64,7 @@ declare const zTrackHandlerPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
63
64
  }, z.core.$strip>, z.ZodObject<{
64
65
  eventId: z.ZodUUID;
65
66
  timestamp: z.ZodNumber;
67
+ deviceId: z.ZodOptional<z.ZodString>;
66
68
  type: z.ZodLiteral<"increment">;
67
69
  payload: z.ZodObject<{
68
70
  profileId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
@@ -72,6 +74,7 @@ declare const zTrackHandlerPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
72
74
  }, z.core.$strip>, z.ZodObject<{
73
75
  eventId: z.ZodUUID;
74
76
  timestamp: z.ZodNumber;
77
+ deviceId: z.ZodOptional<z.ZodString>;
75
78
  type: z.ZodLiteral<"decrement">;
76
79
  payload: z.ZodObject<{
77
80
  profileId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
@@ -269,4 +272,4 @@ declare const zIngestError: z.ZodObject<{
269
272
  }, z.core.$strip>;
270
273
  type IngestError = z.infer<typeof zIngestError>;
271
274
 
272
- 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, RESERVED_EVENT_NAMES, reconcileIngestResponse, zDecrementPayload, zIdentifyPayload, zIncrementPayload, zIngestAcceptedResponse, zIngestError, zIngestErrorCode, zIngestMode, zIngestOkResponse, zIngestRejection, zIngestRejectionReason, zIngestResponse, zTrackHandlerPayload, zTrackPayload };
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 };
package/dist/ingest.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ export { AUTO_EVENT_NAMES, AUTO_EVENT_PROPERTIES, AUTO_EVENT_ROLLUP_KEYS, AutoEventName, RESERVED_EVENT_NAMES, SCROLL_DEPTH_BUCKETS, ScrollDepthBucket, scrollDepthBucket } from './events.js';
2
3
 
3
4
  /**
4
5
  * `POST /api/track` — the ingest contract.
@@ -12,8 +13,6 @@ import { z } from 'zod';
12
13
  * now a deprecated re-export of this module.
13
14
  */
14
15
 
15
- /** Event names the pipeline reserves for its own session bookkeeping. */
16
- declare const RESERVED_EVENT_NAMES: readonly ["session_start", "session_end", "screen_view"];
17
16
  /** Hard cap enforced by the route before the body is even parsed. */
18
17
  declare const MAX_TRACK_PAYLOAD_BYTES = 512000;
19
18
  declare const zTrackPayload: z.ZodObject<{
@@ -42,6 +41,7 @@ declare const zDecrementPayload: z.ZodObject<{
42
41
  declare const zTrackHandlerPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
43
42
  eventId: z.ZodUUID;
44
43
  timestamp: z.ZodNumber;
44
+ deviceId: z.ZodOptional<z.ZodString>;
45
45
  type: z.ZodLiteral<"track">;
46
46
  payload: z.ZodObject<{
47
47
  name: z.ZodString;
@@ -51,6 +51,7 @@ declare const zTrackHandlerPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
51
51
  }, z.core.$strip>, z.ZodObject<{
52
52
  eventId: z.ZodUUID;
53
53
  timestamp: z.ZodNumber;
54
+ deviceId: z.ZodOptional<z.ZodString>;
54
55
  type: z.ZodLiteral<"identify">;
55
56
  payload: z.ZodObject<{
56
57
  profileId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
@@ -63,6 +64,7 @@ declare const zTrackHandlerPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
63
64
  }, z.core.$strip>, z.ZodObject<{
64
65
  eventId: z.ZodUUID;
65
66
  timestamp: z.ZodNumber;
67
+ deviceId: z.ZodOptional<z.ZodString>;
66
68
  type: z.ZodLiteral<"increment">;
67
69
  payload: z.ZodObject<{
68
70
  profileId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
@@ -72,6 +74,7 @@ declare const zTrackHandlerPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
72
74
  }, z.core.$strip>, z.ZodObject<{
73
75
  eventId: z.ZodUUID;
74
76
  timestamp: z.ZodNumber;
77
+ deviceId: z.ZodOptional<z.ZodString>;
75
78
  type: z.ZodLiteral<"decrement">;
76
79
  payload: z.ZodObject<{
77
80
  profileId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
@@ -269,4 +272,4 @@ declare const zIngestError: z.ZodObject<{
269
272
  }, z.core.$strip>;
270
273
  type IngestError = z.infer<typeof zIngestError>;
271
274
 
272
- 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, RESERVED_EVENT_NAMES, reconcileIngestResponse, zDecrementPayload, zIdentifyPayload, zIncrementPayload, zIngestAcceptedResponse, zIngestError, zIngestErrorCode, zIngestMode, zIngestOkResponse, zIngestRejection, zIngestRejectionReason, zIngestResponse, zTrackHandlerPayload, zTrackPayload };
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 };
package/dist/ingest.js CHANGED
@@ -3,7 +3,6 @@ import {
3
3
  INGEST_MODES,
4
4
  INGEST_REJECTION_REASONS,
5
5
  MAX_TRACK_PAYLOAD_BYTES,
6
- RESERVED_EVENT_NAMES,
7
6
  reconcileIngestResponse,
8
7
  zDecrementPayload,
9
8
  zIdentifyPayload,
@@ -18,14 +17,29 @@ import {
18
17
  zIngestResponse,
19
18
  zTrackHandlerPayload,
20
19
  zTrackPayload
21
- } from "./chunk-3A7WZ7L6.js";
20
+ } from "./chunk-5BRCHDS3.js";
21
+ import "./chunk-6ZJOC4NJ.js";
22
+ import "./chunk-IXPP5K4I.js";
23
+ import {
24
+ AUTO_EVENT_NAMES,
25
+ AUTO_EVENT_PROPERTIES,
26
+ AUTO_EVENT_ROLLUP_KEYS,
27
+ RESERVED_EVENT_NAMES,
28
+ SCROLL_DEPTH_BUCKETS,
29
+ scrollDepthBucket
30
+ } from "./chunk-FP2X3PRK.js";
22
31
  export {
32
+ AUTO_EVENT_NAMES,
33
+ AUTO_EVENT_PROPERTIES,
34
+ AUTO_EVENT_ROLLUP_KEYS,
23
35
  INGEST_ERROR_CODES,
24
36
  INGEST_MODES,
25
37
  INGEST_REJECTION_REASONS,
26
38
  MAX_TRACK_PAYLOAD_BYTES,
27
39
  RESERVED_EVENT_NAMES,
40
+ SCROLL_DEPTH_BUCKETS,
28
41
  reconcileIngestResponse,
42
+ scrollDepthBucket,
29
43
  zDecrementPayload,
30
44
  zIdentifyPayload,
31
45
  zIncrementPayload,
package/dist/query.cjs CHANGED
@@ -24,11 +24,9 @@
24
24
 
25
25
 
26
26
 
27
- var _chunkI2T4HRBMcjs = require('./chunk-I2T4HRBM.cjs');
28
27
 
29
28
 
30
29
 
31
- var _chunkKXEQGD3Ecjs = require('./chunk-KXEQGD3E.cjs');
32
30
 
33
31
 
34
32
 
@@ -38,9 +36,12 @@ var _chunkKXEQGD3Ecjs = require('./chunk-KXEQGD3E.cjs');
38
36
 
39
37
 
40
38
 
39
+ var _chunkFUGY5ANJcjs = require('./chunk-FUGY5ANJ.cjs');
41
40
 
42
41
 
43
42
 
43
+ var _chunkYSAEOYPDcjs = require('./chunk-YSAEOYPD.cjs');
44
+ require('./chunk-JHHCT3GA.cjs');
44
45
 
45
46
 
46
47
 
@@ -57,5 +58,29 @@ var _chunkKXEQGD3Ecjs = require('./chunk-KXEQGD3E.cjs');
57
58
 
58
59
 
59
60
 
60
- exports.QUERY_API_PATHS = _chunkI2T4HRBMcjs.QUERY_API_PATHS; exports.QUERY_ERROR_CODES = _chunkI2T4HRBMcjs.QUERY_ERROR_CODES; exports.isValidTimeZone = _chunkI2T4HRBMcjs.isValidTimeZone; exports.zBucketStart = _chunkI2T4HRBMcjs.zBucketStart; exports.zChannelFilter = _chunkI2T4HRBMcjs.zChannelFilter; exports.zDate = _chunkKXEQGD3Ecjs.zDate; exports.zEventsTimeseriesData = _chunkI2T4HRBMcjs.zEventsTimeseriesData; exports.zEventsTimeseriesInput = _chunkI2T4HRBMcjs.zEventsTimeseriesInput; exports.zEventsTimeseriesResponse = _chunkI2T4HRBMcjs.zEventsTimeseriesResponse; exports.zFunnelData = _chunkI2T4HRBMcjs.zFunnelData; exports.zFunnelInput = _chunkI2T4HRBMcjs.zFunnelInput; exports.zFunnelResponse = _chunkI2T4HRBMcjs.zFunnelResponse; exports.zFunnelStep = _chunkI2T4HRBMcjs.zFunnelStep; exports.zGranularity = _chunkI2T4HRBMcjs.zGranularity; exports.zInstant = _chunkKXEQGD3Ecjs.zInstant; exports.zQueryEnvelope = _chunkI2T4HRBMcjs.zQueryEnvelope; exports.zQueryError = _chunkI2T4HRBMcjs.zQueryError; exports.zQueryErrorCode = _chunkI2T4HRBMcjs.zQueryErrorCode; exports.zQueryMeta = _chunkI2T4HRBMcjs.zQueryMeta; exports.zRetentionCell = _chunkI2T4HRBMcjs.zRetentionCell; exports.zRetentionData = _chunkI2T4HRBMcjs.zRetentionData; exports.zRetentionInput = _chunkI2T4HRBMcjs.zRetentionInput; exports.zRetentionInterval = _chunkI2T4HRBMcjs.zRetentionInterval; exports.zRetentionResponse = _chunkI2T4HRBMcjs.zRetentionResponse; exports.zTimeseriesBreakdown = _chunkI2T4HRBMcjs.zTimeseriesBreakdown; exports.zTimeseriesPoint = _chunkI2T4HRBMcjs.zTimeseriesPoint; exports.zTimezone = _chunkI2T4HRBMcjs.zTimezone;
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+ exports.QUERY_API_PATHS = _chunkFUGY5ANJcjs.QUERY_API_PATHS; exports.QUERY_ERROR_CODES = _chunkFUGY5ANJcjs.QUERY_ERROR_CODES; exports.isValidTimeZone = _chunkFUGY5ANJcjs.isValidTimeZone; exports.zBucketStart = _chunkFUGY5ANJcjs.zBucketStart; exports.zChannelFilter = _chunkFUGY5ANJcjs.zChannelFilter; exports.zDate = _chunkYSAEOYPDcjs.zDate; exports.zEventPropertyFilter = _chunkFUGY5ANJcjs.zEventPropertyFilter; exports.zEventsTimeseriesData = _chunkFUGY5ANJcjs.zEventsTimeseriesData; exports.zEventsTimeseriesInput = _chunkFUGY5ANJcjs.zEventsTimeseriesInput; exports.zEventsTimeseriesResponse = _chunkFUGY5ANJcjs.zEventsTimeseriesResponse; exports.zFunnelData = _chunkFUGY5ANJcjs.zFunnelData; exports.zFunnelInput = _chunkFUGY5ANJcjs.zFunnelInput; exports.zFunnelResponse = _chunkFUGY5ANJcjs.zFunnelResponse; exports.zFunnelStep = _chunkFUGY5ANJcjs.zFunnelStep; exports.zGranularity = _chunkFUGY5ANJcjs.zGranularity; exports.zInstant = _chunkYSAEOYPDcjs.zInstant; exports.zQueryEnvelope = _chunkFUGY5ANJcjs.zQueryEnvelope; exports.zQueryError = _chunkFUGY5ANJcjs.zQueryError; exports.zQueryErrorCode = _chunkFUGY5ANJcjs.zQueryErrorCode; exports.zQueryMeta = _chunkFUGY5ANJcjs.zQueryMeta; exports.zQuerySource = _chunkFUGY5ANJcjs.zQuerySource; exports.zRetentionCell = _chunkFUGY5ANJcjs.zRetentionCell; exports.zRetentionData = _chunkFUGY5ANJcjs.zRetentionData; exports.zRetentionInput = _chunkFUGY5ANJcjs.zRetentionInput; exports.zRetentionInterval = _chunkFUGY5ANJcjs.zRetentionInterval; exports.zRetentionResponse = _chunkFUGY5ANJcjs.zRetentionResponse; exports.zTimeseriesBreakdown = _chunkFUGY5ANJcjs.zTimeseriesBreakdown; exports.zTimeseriesPoint = _chunkFUGY5ANJcjs.zTimeseriesPoint; exports.zTimezone = _chunkFUGY5ANJcjs.zTimezone; exports.zTrafficDimension = _chunkFUGY5ANJcjs.zTrafficDimension; exports.zTrafficOverviewData = _chunkFUGY5ANJcjs.zTrafficOverviewData; exports.zTrafficOverviewInput = _chunkFUGY5ANJcjs.zTrafficOverviewInput; exports.zTrafficOverviewResponse = _chunkFUGY5ANJcjs.zTrafficOverviewResponse; exports.zTrafficSeriesPoint = _chunkFUGY5ANJcjs.zTrafficSeriesPoint; exports.zTrafficSourceRow = _chunkFUGY5ANJcjs.zTrafficSourceRow; exports.zTrafficSourcesData = _chunkFUGY5ANJcjs.zTrafficSourcesData; exports.zTrafficSourcesInput = _chunkFUGY5ANJcjs.zTrafficSourcesInput; exports.zTrafficSourcesResponse = _chunkFUGY5ANJcjs.zTrafficSourcesResponse; exports.zTrafficTotals = _chunkFUGY5ANJcjs.zTrafficTotals;
61
86
  //# sourceMappingURL=query.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/query.cjs"],"names":[],"mappings":"AAAA;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,wDAA6B;AAC7B;AACE;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;AACA;AACA;AACF,8kDAAC","file":"/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/query.cjs"}
1
+ {"version":3,"sources":["/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/query.cjs"],"names":[],"mappings":"AAAA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B,gCAA6B;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,s4EAAC","file":"/Users/eric/reopt-ai/reopt-data/packages/data-contract/dist/query.cjs"}