@10x-media/analytics 1.0.0-beta.14 → 1.0.0-beta.16

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 (175) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +1 -1
  3. package/dist/adapters/ga4/ga4.d.ts +7 -0
  4. package/dist/adapters/ga4/ga4.js +17 -3
  5. package/dist/adapters/ga4/ga4.js.map +1 -1
  6. package/dist/adapters/plausible/plausible.d.ts +6 -0
  7. package/dist/adapters/plausible/plausible.js +6 -3
  8. package/dist/adapters/plausible/plausible.js.map +1 -1
  9. package/dist/adapters/posthog/cloud.js +20 -0
  10. package/dist/adapters/posthog/cloud.js.map +1 -0
  11. package/dist/adapters/posthog/credentials.js +20 -0
  12. package/dist/adapters/posthog/credentials.js.map +1 -0
  13. package/dist/adapters/posthog/posthog.d.ts +10 -3
  14. package/dist/adapters/posthog/posthog.js +100 -27
  15. package/dist/adapters/posthog/posthog.js.map +1 -1
  16. package/dist/adapters/posthog/projectCheck.js +56 -0
  17. package/dist/adapters/posthog/projectCheck.js.map +1 -0
  18. package/dist/adapters/umami/umami.d.ts +6 -0
  19. package/dist/adapters/umami/umami.js +3 -1
  20. package/dist/adapters/umami/umami.js.map +1 -1
  21. package/dist/capture/trackerConfig.js +29 -6
  22. package/dist/capture/trackerConfig.js.map +1 -1
  23. package/dist/capture/withoutConsent.js +91 -0
  24. package/dist/capture/withoutConsent.js.map +1 -0
  25. package/dist/core/capture.d.ts +41 -11
  26. package/dist/core/captureOptions.js +97 -8
  27. package/dist/core/captureOptions.js.map +1 -1
  28. package/dist/core/contract.d.ts +25 -0
  29. package/dist/core/contract.js.map +1 -1
  30. package/dist/core/options.d.ts +24 -2
  31. package/dist/core/options.js.map +1 -1
  32. package/dist/core/sourceOptions.js +2 -1
  33. package/dist/core/sourceOptions.js.map +1 -1
  34. package/dist/exports/adapters/contract.d.ts +3 -3
  35. package/dist/exports/adapters/ga4.d.ts +4 -4
  36. package/dist/exports/adapters/native.d.ts +5 -5
  37. package/dist/exports/adapters/plausible.d.ts +4 -4
  38. package/dist/exports/adapters/posthog.d.ts +4 -4
  39. package/dist/exports/adapters/umami.d.ts +4 -4
  40. package/dist/exports/next.d.ts +4 -4
  41. package/dist/exports/react.d.ts +3 -2
  42. package/dist/exports/site.d.ts +2 -2
  43. package/dist/exports/testing.d.ts +4 -4
  44. package/dist/exports/tracker.d.ts +3 -2
  45. package/dist/exports/types.d.ts +5 -5
  46. package/dist/index.d.ts +5 -5
  47. package/dist/index.js +2 -0
  48. package/dist/index.js.map +1 -1
  49. package/dist/native/collections/hits.js +1 -0
  50. package/dist/native/collections/hits.js.map +1 -1
  51. package/dist/native/engine/engine.js +5 -1
  52. package/dist/native/engine/engine.js.map +1 -1
  53. package/dist/native/engine/planner.js +2 -1
  54. package/dist/native/engine/planner.js.map +1 -1
  55. package/dist/native/engine/toHit.js +4 -2
  56. package/dist/native/engine/toHit.js.map +1 -1
  57. package/dist/native/ingest/endpoint.js +5 -2
  58. package/dist/native/ingest/endpoint.js.map +1 -1
  59. package/dist/native/ingest/normalizeEvent.d.ts +6 -1
  60. package/dist/native/ingest/normalizeEvent.js +17 -7
  61. package/dist/native/ingest/normalizeEvent.js.map +1 -1
  62. package/dist/native/ingest/serverTrack.js +2 -1
  63. package/dist/native/ingest/serverTrack.js.map +1 -1
  64. package/dist/native/ingest/validate.js +3 -0
  65. package/dist/native/ingest/validate.js.map +1 -1
  66. package/dist/native/nativeAdapter.d.ts +10 -1
  67. package/dist/native/nativeAdapter.js +11 -1
  68. package/dist/native/nativeAdapter.js.map +1 -1
  69. package/dist/native/store/aggregate.js +1 -1
  70. package/dist/native/store/aggregate.js.map +1 -1
  71. package/dist/native/store/hitRow.js +3 -0
  72. package/dist/native/store/hitRow.js.map +1 -1
  73. package/dist/native/store/hits.js +3 -1
  74. package/dist/native/store/hits.js.map +1 -1
  75. package/dist/native/store/mongo/aggregatePipelines.js +10 -2
  76. package/dist/native/store/mongo/aggregatePipelines.js.map +1 -1
  77. package/dist/native/store/mongo/pipelines.js +15 -5
  78. package/dist/native/store/mongo/pipelines.js.map +1 -1
  79. package/dist/native/store/parts.js +9 -3
  80. package/dist/native/store/parts.js.map +1 -1
  81. package/dist/native/store/rawRead.js +6 -3
  82. package/dist/native/store/rawRead.js.map +1 -1
  83. package/dist/native/store/sql/aggregateSql.js +6 -2
  84. package/dist/native/store/sql/aggregateSql.js.map +1 -1
  85. package/dist/native/store/sql/columns.js +1 -0
  86. package/dist/native/store/sql/columns.js.map +1 -1
  87. package/dist/native/store/sql/compile.js +19 -7
  88. package/dist/native/store/sql/compile.js.map +1 -1
  89. package/dist/native/store/types.d.ts +7 -1
  90. package/dist/native/store/types.js +10 -0
  91. package/dist/native/store/types.js.map +1 -0
  92. package/dist/plugin/createRuntime.js +10 -1
  93. package/dist/plugin/createRuntime.js.map +1 -1
  94. package/dist/plugin/runtime.js.map +1 -1
  95. package/dist/providers/collection.d.ts +2 -0
  96. package/dist/providers/collection.js +36 -9
  97. package/dist/providers/collection.js.map +1 -1
  98. package/dist/providers/factory.d.ts +9 -1
  99. package/dist/providers/factory.js +14 -5
  100. package/dist/providers/factory.js.map +1 -1
  101. package/dist/providers/hosts.js +14 -6
  102. package/dist/providers/hosts.js.map +1 -1
  103. package/dist/providers/registry.js +2 -1
  104. package/dist/providers/registry.js.map +1 -1
  105. package/dist/react/AnalyticsProvider.d.ts +6 -0
  106. package/dist/react/AnalyticsProvider.js.map +1 -1
  107. package/dist/react/useAnalytics.js +9 -5
  108. package/dist/react/useAnalytics.js.map +1 -1
  109. package/dist/site/AnalyticsScripts.d.ts +4 -3
  110. package/dist/site/AnalyticsScripts.js +18 -4
  111. package/dist/site/AnalyticsScripts.js.map +1 -1
  112. package/dist/surfacing/todaySplit.js +7 -1
  113. package/dist/surfacing/todaySplit.js.map +1 -1
  114. package/dist/tracker/config.d.ts +26 -1
  115. package/dist/tracker/config.js.map +1 -1
  116. package/dist/tracker/createTracker.d.ts +2 -1
  117. package/dist/tracker/createTracker.js +91 -59
  118. package/dist/tracker/createTracker.js.map +1 -1
  119. package/dist/tracker/gate.d.ts +8 -0
  120. package/dist/tracker/gate.js +61 -11
  121. package/dist/tracker/gate.js.map +1 -1
  122. package/dist/tracker/loadScript.js +2 -1
  123. package/dist/tracker/loadScript.js.map +1 -1
  124. package/dist/tracker/registry.js +14 -3
  125. package/dist/tracker/registry.js.map +1 -1
  126. package/dist/tracker/sinks/createSink.js +27 -8
  127. package/dist/tracker/sinks/createSink.js.map +1 -1
  128. package/dist/tracker/sinks/ga4.js +38 -6
  129. package/dist/tracker/sinks/ga4.js.map +1 -1
  130. package/dist/tracker/sinks/native.js +17 -3
  131. package/dist/tracker/sinks/native.js.map +1 -1
  132. package/dist/tracker/sinks/plausible.js +8 -2
  133. package/dist/tracker/sinks/plausible.js.map +1 -1
  134. package/dist/tracker/sinks/posthog.js +108 -16
  135. package/dist/tracker/sinks/posthog.js.map +1 -1
  136. package/dist/tracker/sinks/umami.js +2 -2
  137. package/dist/tracker/sinks/umami.js.map +1 -1
  138. package/dist/tracker/sinks/vendor.js +25 -11
  139. package/dist/tracker/sinks/vendor.js.map +1 -1
  140. package/dist/tracker/types.d.ts +10 -3
  141. package/dist/translations/ar.js +10 -0
  142. package/dist/translations/ar.js.map +1 -1
  143. package/dist/translations/de.js +10 -0
  144. package/dist/translations/de.js.map +1 -1
  145. package/dist/translations/en.js +10 -0
  146. package/dist/translations/en.js.map +1 -1
  147. package/dist/translations/es.js +10 -0
  148. package/dist/translations/es.js.map +1 -1
  149. package/dist/translations/fr.js +10 -0
  150. package/dist/translations/fr.js.map +1 -1
  151. package/dist/translations/id.js +10 -0
  152. package/dist/translations/id.js.map +1 -1
  153. package/dist/translations/keys.d.ts +10 -0
  154. package/dist/translations/keys.js +11 -1
  155. package/dist/translations/keys.js.map +1 -1
  156. package/dist/translations/ko.js +10 -0
  157. package/dist/translations/ko.js.map +1 -1
  158. package/dist/translations/pt.js +10 -0
  159. package/dist/translations/pt.js.map +1 -1
  160. package/dist/translations/ru.js +10 -0
  161. package/dist/translations/ru.js.map +1 -1
  162. package/dist/translations/uk.js +10 -0
  163. package/dist/translations/uk.js.map +1 -1
  164. package/dist/translations/zh.js +10 -0
  165. package/dist/translations/zh.js.map +1 -1
  166. package/dist/view/consentShare.js +15 -0
  167. package/dist/view/consentShare.js.map +1 -0
  168. package/dist/view/sections/OverviewCards.js +38 -28
  169. package/dist/view/sections/OverviewCards.js.map +1 -1
  170. package/dist/widgets/notices.js +6 -1
  171. package/dist/widgets/notices.js.map +1 -1
  172. package/dist/widgets/readMeta.d.ts +4 -0
  173. package/dist/widgets/readMeta.js +5 -0
  174. package/dist/widgets/readMeta.js.map +1 -1
  175. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"sourceOptions.js","names":[],"sources":["../../src/core/sourceOptions.ts"],"sourcesContent":["import {\n\tconnectionFieldAccess,\n\tPROVIDERS_SLUG,\n\ttype ProviderCollectionFieldOverrides,\n\tservedProviderTypes,\n} from '../providers/collection'\nimport { PROVIDER_IDS, type ProviderId } from '../providers/factory'\nimport { resolveHostPolicy } from '../providers/hosts'\nimport { resolveScopedCollection } from './collectionOption'\nimport { keysOf, optionalFunction, optionalList, optionsObject } from './optionChecks'\nimport type { ProvidersCollectionOptions, ProvidersOptions, ResolvedOptions } from './options'\nimport { isRecord, kindOf, listOf } from './values'\n\nconst PROVIDERS_KEYS = keysOf<ProvidersOptions>({ collection: true, resolve: true, hosts: true })\nconst PROVIDERS_COLLECTION_KEYS = keysOf<ProvidersCollectionOptions>({\n\tslug: true,\n\tscopeField: true,\n\tfields: true,\n\toverrides: true,\n\taccess: true,\n\tencryption: true,\n\tconnectionAccess: true,\n\tdefaultAccess: true,\n\ttypes: true,\n\tsourceAccess: true,\n})\nconst PROVIDER_FIELD_KEYS = keysOf<ProviderCollectionFieldOverrides>({\n\tname: true,\n\tprovider: true,\n\tenabled: true,\n\tisDefault: true,\n})\nconst ENCRYPTION_KEYS = keysOf<NonNullable<ProvidersCollectionOptions['encryption']>>({\n\tkeys: true,\n})\n\nconst isAdapterShaped = (value: unknown): value is { id: string } =>\n\tisRecord(value) &&\n\ttypeof value.id === 'string' &&\n\tvalue.id !== '' &&\n\ttypeof value.isConfigured === 'function' &&\n\ttypeof value.query === 'function' &&\n\tisRecord(value.capabilities)\n\n/** `adapters`: a list of adapters with an id each, no two sharing one. */\nexport const assertAdapters = (value: unknown): void => {\n\tconst ids = new Set<string>()\n\tfor (const [index, adapter] of optionalList(value, 'adapters', '[native()]').entries()) {\n\t\tif (!isAdapterShaped(adapter)) {\n\t\t\tthrow new Error(\n\t\t\t\t`analytics: adapters[${index}] must be an adapter such as native() or plausible({ siteId, apiKey }), got ${kindOf(adapter)}`\n\t\t\t)\n\t\t}\n\t\tif (ids.has(adapter.id)) {\n\t\t\tthrow new Error(\n\t\t\t\t`analytics: adapters lists two adapters with the id \"${adapter.id}\"; every source is read by its id, so give each its own`\n\t\t\t)\n\t\t}\n\t\tids.add(adapter.id)\n\t}\n}\n\n/** An option naming one of `adapters` by its id. */\nexport const assertNamesAdapter = (\n\tvalue: unknown,\n\tpath: string,\n\tadapters: readonly { id: string }[]\n): void => {\n\tif (value === undefined) {\n\t\treturn\n\t}\n\tif (typeof value !== 'string') {\n\t\tthrow new Error(\n\t\t\t`analytics: ${path} must be the id of an adapter in adapters, got ${kindOf(value)}`\n\t\t)\n\t}\n\tif (!adapters.some((adapter) => adapter.id === value)) {\n\t\tthrow new Error(\n\t\t\t`analytics: ${path} \"${value}\" names no adapter in adapters, whose ids are ${listOf(adapters.map((adapter) => `\"${adapter.id}\"`))}`\n\t\t)\n\t}\n}\n\n/** `providers.collection.encryption`: a dedicated key ring, or nothing. */\nconst assertEncryption = (value: unknown): void => {\n\tif (value === undefined) {\n\t\treturn\n\t}\n\tconst { keys } = optionsObject(value, {\n\t\tpath: 'providers.collection.encryption',\n\t\tknown: ENCRYPTION_KEYS,\n\t\texample: 'an object such as { keys }',\n\t})\n\tif (\n\t\tkeys !== undefined &&\n\t\t(!isRecord(keys) || typeof keys.active !== 'string' || !isRecord(keys.keys))\n\t) {\n\t\tthrow new Error(\n\t\t\t`analytics: providers.collection.encryption.keys must be a key set such as { active: 'k1', keys: { k1: process.env.PROVIDER_KEY } }, got ${kindOf(keys)}`\n\t\t)\n\t}\n}\n\n/** A `native` document lends the config native(), so the type is served only beside one. */\nconst availableTypes = (adapters: readonly { id: string }[]): ProviderId[] =>\n\tPROVIDER_IDS.filter((type) => type !== 'native' || adapters.some((a) => a.id === 'native'))\n\n/** `providers.collection` turned on, with what only that collection takes. */\nconst resolveProvidersCollection = (\n\toption: ProvidersOptions['collection'],\n\tavailable: readonly ProviderId[]\n): ResolvedOptions['providers']['collection'] => {\n\tconst collection = resolveScopedCollection(option, {\n\t\tpath: 'providers.collection',\n\t\tfallback: PROVIDERS_SLUG,\n\t\tknown: PROVIDERS_COLLECTION_KEYS,\n\t\tfieldKeys: PROVIDER_FIELD_KEYS,\n\t\texampleSlug: 'providers',\n\t})\n\tif (option === undefined || typeof option === 'boolean') {\n\t\treturn { ...collection, types: available }\n\t}\n\tassertEncryption(option.encryption)\n\tconst connectionAccess = connectionFieldAccess(\n\t\t'providers.collection.connectionAccess',\n\t\toption.connectionAccess\n\t)\n\tconst defaultAccess = connectionFieldAccess(\n\t\t'providers.collection.defaultAccess',\n\t\toption.defaultAccess\n\t)\n\tconst sourceAccess = optionalFunction(option.sourceAccess, 'providers.collection.sourceAccess')\n\treturn {\n\t\t...collection,\n\t\ttypes: servedProviderTypes('providers.collection.types', option.types, available),\n\t\t...(option.encryption ? { encryption: option.encryption } : {}),\n\t\t...(connectionAccess ? { connectionAccess } : {}),\n\t\t...(defaultAccess ? { defaultAccess } : {}),\n\t\t...(sourceAccess ? { sourceAccess } : {}),\n\t}\n}\n\n/** `providers`: the collection or `resolve` (never both), and the hosts either may reach. */\nexport const resolveProviders = (\n\toption: ProvidersOptions | undefined,\n\tadapters: readonly { id: string }[]\n): ResolvedOptions['providers'] => {\n\tif (option !== undefined) {\n\t\toptionsObject(option, {\n\t\t\tpath: 'providers',\n\t\t\tknown: PROVIDERS_KEYS,\n\t\t\texample: 'an object such as { collection: true }',\n\t\t})\n\t}\n\tconst resolve = optionalFunction(option?.resolve, 'providers.resolve')\n\tconst collection = resolveProvidersCollection(option?.collection, availableTypes(adapters))\n\tif (resolve && collection.enabled) {\n\t\tthrow new Error(\n\t\t\t\"analytics: providers.resolve and providers.collection cannot both be set. resolve replaces the collection lookup, so the adapters it returns would be filtered by provider document ids no reader holds, and the collection's sourceAccess and connectionAccess would do nothing. Keep one of them.\"\n\t\t)\n\t}\n\tif (option?.hosts !== undefined && !collection.enabled && !resolve) {\n\t\tthrow new Error(\n\t\t\t'analytics: providers.hosts only applies to provider documents, so it needs providers.collection or providers.resolve. Set one of them, or remove it.'\n\t\t)\n\t}\n\treturn {\n\t\tcollection,\n\t\t...(resolve ? { resolve } : {}),\n\t\thosts: resolveHostPolicy(option?.hosts),\n\t}\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"sourceOptions.js","names":[],"sources":["../../src/core/sourceOptions.ts"],"sourcesContent":["import {\n\tconnectionFieldAccess,\n\tPROVIDERS_SLUG,\n\ttype ProviderCollectionFieldOverrides,\n\tservedProviderTypes,\n} from '../providers/collection'\nimport { PROVIDER_IDS, type ProviderId } from '../providers/factory'\nimport { resolveHostPolicy } from '../providers/hosts'\nimport { resolveScopedCollection } from './collectionOption'\nimport { keysOf, optionalFunction, optionalList, optionsObject } from './optionChecks'\nimport type { ProvidersCollectionOptions, ProvidersOptions, ResolvedOptions } from './options'\nimport { isRecord, kindOf, listOf } from './values'\n\nconst PROVIDERS_KEYS = keysOf<ProvidersOptions>({ collection: true, resolve: true, hosts: true })\nconst PROVIDERS_COLLECTION_KEYS = keysOf<ProvidersCollectionOptions>({\n\tslug: true,\n\tscopeField: true,\n\tfields: true,\n\toverrides: true,\n\taccess: true,\n\tencryption: true,\n\tconnectionAccess: true,\n\tdefaultAccess: true,\n\ttypes: true,\n\tsourceAccess: true,\n})\nconst PROVIDER_FIELD_KEYS = keysOf<ProviderCollectionFieldOverrides>({\n\tname: true,\n\tprovider: true,\n\tenabled: true,\n\tisDefault: true,\n\twithoutConsent: true,\n})\nconst ENCRYPTION_KEYS = keysOf<NonNullable<ProvidersCollectionOptions['encryption']>>({\n\tkeys: true,\n})\n\nconst isAdapterShaped = (value: unknown): value is { id: string } =>\n\tisRecord(value) &&\n\ttypeof value.id === 'string' &&\n\tvalue.id !== '' &&\n\ttypeof value.isConfigured === 'function' &&\n\ttypeof value.query === 'function' &&\n\tisRecord(value.capabilities)\n\n/** `adapters`: a list of adapters with an id each, no two sharing one. */\nexport const assertAdapters = (value: unknown): void => {\n\tconst ids = new Set<string>()\n\tfor (const [index, adapter] of optionalList(value, 'adapters', '[native()]').entries()) {\n\t\tif (!isAdapterShaped(adapter)) {\n\t\t\tthrow new Error(\n\t\t\t\t`analytics: adapters[${index}] must be an adapter such as native() or plausible({ siteId, apiKey }), got ${kindOf(adapter)}`\n\t\t\t)\n\t\t}\n\t\tif (ids.has(adapter.id)) {\n\t\t\tthrow new Error(\n\t\t\t\t`analytics: adapters lists two adapters with the id \"${adapter.id}\"; every source is read by its id, so give each its own`\n\t\t\t)\n\t\t}\n\t\tids.add(adapter.id)\n\t}\n}\n\n/** An option naming one of `adapters` by its id. */\nexport const assertNamesAdapter = (\n\tvalue: unknown,\n\tpath: string,\n\tadapters: readonly { id: string }[]\n): void => {\n\tif (value === undefined) {\n\t\treturn\n\t}\n\tif (typeof value !== 'string') {\n\t\tthrow new Error(\n\t\t\t`analytics: ${path} must be the id of an adapter in adapters, got ${kindOf(value)}`\n\t\t)\n\t}\n\tif (!adapters.some((adapter) => adapter.id === value)) {\n\t\tthrow new Error(\n\t\t\t`analytics: ${path} \"${value}\" names no adapter in adapters, whose ids are ${listOf(adapters.map((adapter) => `\"${adapter.id}\"`))}`\n\t\t)\n\t}\n}\n\n/** `providers.collection.encryption`: a dedicated key ring, or nothing. */\nconst assertEncryption = (value: unknown): void => {\n\tif (value === undefined) {\n\t\treturn\n\t}\n\tconst { keys } = optionsObject(value, {\n\t\tpath: 'providers.collection.encryption',\n\t\tknown: ENCRYPTION_KEYS,\n\t\texample: 'an object such as { keys }',\n\t})\n\tif (\n\t\tkeys !== undefined &&\n\t\t(!isRecord(keys) || typeof keys.active !== 'string' || !isRecord(keys.keys))\n\t) {\n\t\tthrow new Error(\n\t\t\t`analytics: providers.collection.encryption.keys must be a key set such as { active: 'k1', keys: { k1: process.env.PROVIDER_KEY } }, got ${kindOf(keys)}`\n\t\t)\n\t}\n}\n\n/** A `native` document lends the config native(), so the type is served only beside one. */\nconst availableTypes = (adapters: readonly { id: string }[]): ProviderId[] =>\n\tPROVIDER_IDS.filter((type) => type !== 'native' || adapters.some((a) => a.id === 'native'))\n\n/** `providers.collection` turned on, with what only that collection takes. */\nconst resolveProvidersCollection = (\n\toption: ProvidersOptions['collection'],\n\tavailable: readonly ProviderId[]\n): ResolvedOptions['providers']['collection'] => {\n\tconst collection = resolveScopedCollection(option, {\n\t\tpath: 'providers.collection',\n\t\tfallback: PROVIDERS_SLUG,\n\t\tknown: PROVIDERS_COLLECTION_KEYS,\n\t\tfieldKeys: PROVIDER_FIELD_KEYS,\n\t\texampleSlug: 'providers',\n\t})\n\tif (option === undefined || typeof option === 'boolean') {\n\t\treturn { ...collection, types: available }\n\t}\n\tassertEncryption(option.encryption)\n\tconst connectionAccess = connectionFieldAccess(\n\t\t'providers.collection.connectionAccess',\n\t\toption.connectionAccess\n\t)\n\tconst defaultAccess = connectionFieldAccess(\n\t\t'providers.collection.defaultAccess',\n\t\toption.defaultAccess\n\t)\n\tconst sourceAccess = optionalFunction(option.sourceAccess, 'providers.collection.sourceAccess')\n\treturn {\n\t\t...collection,\n\t\ttypes: servedProviderTypes('providers.collection.types', option.types, available),\n\t\t...(option.encryption ? { encryption: option.encryption } : {}),\n\t\t...(connectionAccess ? { connectionAccess } : {}),\n\t\t...(defaultAccess ? { defaultAccess } : {}),\n\t\t...(sourceAccess ? { sourceAccess } : {}),\n\t}\n}\n\n/** `providers`: the collection or `resolve` (never both), and the hosts either may reach. */\nexport const resolveProviders = (\n\toption: ProvidersOptions | undefined,\n\tadapters: readonly { id: string }[]\n): ResolvedOptions['providers'] => {\n\tif (option !== undefined) {\n\t\toptionsObject(option, {\n\t\t\tpath: 'providers',\n\t\t\tknown: PROVIDERS_KEYS,\n\t\t\texample: 'an object such as { collection: true }',\n\t\t})\n\t}\n\tconst resolve = optionalFunction(option?.resolve, 'providers.resolve')\n\tconst collection = resolveProvidersCollection(option?.collection, availableTypes(adapters))\n\tif (resolve && collection.enabled) {\n\t\tthrow new Error(\n\t\t\t\"analytics: providers.resolve and providers.collection cannot both be set. resolve replaces the collection lookup, so the adapters it returns would be filtered by provider document ids no reader holds, and the collection's sourceAccess and connectionAccess would do nothing. Keep one of them.\"\n\t\t)\n\t}\n\tif (option?.hosts !== undefined && !collection.enabled && !resolve) {\n\t\tthrow new Error(\n\t\t\t'analytics: providers.hosts only applies to provider documents, so it needs providers.collection or providers.resolve. Set one of them, or remove it.'\n\t\t)\n\t}\n\treturn {\n\t\tcollection,\n\t\t...(resolve ? { resolve } : {}),\n\t\thosts: resolveHostPolicy(option?.hosts),\n\t}\n}\n"],"mappings":"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"}
@@ -1,14 +1,14 @@
1
1
  import { CurrencyConverter } from "../../goals/currency.js";
2
- import { CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, SnippetScript, TrackerGoal, TrackerSlotConfig } from "../../tracker/config.js";
2
+ import { CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, SlotMode, SlotWithoutConsent, SnippetScript, TrackerGoal, TrackerSlotConfig, WithoutConsentLevel } from "../../tracker/config.js";
3
3
  import { Goal } from "../../goals/types.js";
4
4
  import { BrowserAmounts, OrderSignatureMode } from "../../goals/match.js";
5
5
  import { TrustedPlatform } from "../../net/platform.js";
6
6
  import { RouteBase, RoutePaths } from "../../plugin/routes.js";
7
7
  import { FetchInit, FetchLike } from "../../core/fetch.js";
8
- import { CaptureSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind } from "../../core/capture.js";
8
+ import { CaptureSupport, CookielessSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind, SnippetArgs, SnippetMode } from "../../core/capture.js";
9
9
  import { AdapterJobs, AnalyticsTaskName, ScheduledTask, TASK_NAMES } from "../../core/jobs.js";
10
10
  import { AnalyticsSdks, Ga4Client, Ga4ClientOptions, Ga4ReportResponse, Ga4ReportRow, Ga4Sdk, MaxmindReader, MaxmindSdk } from "../../core/sdks.js";
11
- import { HitType } from "../../native/store/types.js";
11
+ import { HitMode, HitType } from "../../native/store/types.js";
12
12
  import { RawEventInput } from "../../native/ingest/normalizeEvent.js";
13
13
  import { IngestHostnameResolver, ServerEventInput, ServerTrack, ServerTrackIdentity, ServerTrackOptions } from "../../core/serverEvent.js";
14
14
  import { AdapterContext, AdapterLabelArgs, AdapterRegisterContext, AdapterSchemaContext, AnalyticsAdapter, AnalyticsCapabilities, AnalyticsFilter, AnalyticsQuery, AnalyticsResult, AnalyticsRow, DIMENSION_KEYS, DateRange, DimensionKey, FILTER_OPERATORS, FilterOperator, FilterOperatorMap, Granularity, MetricKey, MetricReach, MetricSemantics, MetricValue, MetricValues, RateLimitDescriptor, SourceErrorKind, VisitorCounting } from "../../core/contract.js";
@@ -1,18 +1,18 @@
1
1
  import { ga4EventName } from "../../adapters/ga4/eventName.js";
2
2
  import { CurrencyConverter } from "../../goals/currency.js";
3
- import { CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, SnippetScript, TrackerGoal, TrackerSlotConfig } from "../../tracker/config.js";
3
+ import { CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, SlotMode, SlotWithoutConsent, SnippetScript, TrackerGoal, TrackerSlotConfig, WithoutConsentLevel } from "../../tracker/config.js";
4
4
  import { Goal } from "../../goals/types.js";
5
5
  import { BrowserAmounts, OrderSignatureMode } from "../../goals/match.js";
6
6
  import { TrustedPlatform } from "../../net/platform.js";
7
7
  import { RouteBase, RoutePaths } from "../../plugin/routes.js";
8
8
  import { FetchInit, FetchLike } from "../../core/fetch.js";
9
- import { CaptureSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind } from "../../core/capture.js";
9
+ import { CaptureSupport, CookielessSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind, SnippetArgs, SnippetMode } from "../../core/capture.js";
10
10
  import { AdapterJobs, AnalyticsTaskName, ScheduledTask, TASK_NAMES } from "../../core/jobs.js";
11
11
  import { AnalyticsSdks, Ga4Client, Ga4ClientOptions, Ga4ReportResponse, Ga4ReportRow, Ga4Sdk, MaxmindReader, MaxmindSdk } from "../../core/sdks.js";
12
- import { HitType } from "../../native/store/types.js";
12
+ import { HitMode, HitType } from "../../native/store/types.js";
13
13
  import { RawEventInput } from "../../native/ingest/normalizeEvent.js";
14
14
  import { IngestHostnameResolver, ServerEventInput, ServerTrack, ServerTrackIdentity, ServerTrackOptions } from "../../core/serverEvent.js";
15
15
  import { AdapterContext, AdapterLabelArgs, AdapterRegisterContext, AdapterSchemaContext, AnalyticsAdapter, AnalyticsCapabilities, AnalyticsFilter, AnalyticsQuery, AnalyticsResult, AnalyticsRow, DIMENSION_KEYS, DateRange, DimensionKey, FILTER_OPERATORS, FilterOperator, FilterOperatorMap, Granularity, MetricKey, MetricReach, MetricSemantics, MetricValue, MetricValues, RateLimitDescriptor, SourceErrorKind, VisitorCounting } from "../../core/contract.js";
16
16
  import { AdapterLabelOption } from "../../core/sourceLabel.js";
17
17
  import { Ga4Config, ga4 } from "../../adapters/ga4/ga4.js";
18
- export { type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BrowserAmounts, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4Config, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalMatch, type Granularity, type HitType, type IngestHostnameResolver, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RouteBase, type RoutePaths, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SnippetScript, type SourceErrorKind, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type VisitorCounting, ga4, ga4EventName };
18
+ export { type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BrowserAmounts, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type ConsentPhase, type CookielessSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4Config, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalMatch, type Granularity, type HeldSlotMode, type HitMode, type HitType, type IngestHostnameResolver, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RouteBase, type RoutePaths, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SlotMode, type SlotWithoutConsent, type SnippetArgs, type SnippetMode, type SnippetScript, type SourceErrorKind, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type VisitorCounting, type WithoutConsentLevel, ga4, ga4EventName };
@@ -1,18 +1,18 @@
1
1
  import { CurrencyConverter } from "../../goals/currency.js";
2
- import { CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, SnippetScript, TrackerGoal, TrackerSlotConfig } from "../../tracker/config.js";
2
+ import { CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, SlotMode, SlotWithoutConsent, SnippetScript, TrackerGoal, TrackerSlotConfig, WithoutConsentLevel } from "../../tracker/config.js";
3
3
  import { Goal } from "../../goals/types.js";
4
4
  import { BrowserAmounts, OrderSignatureMode } from "../../goals/match.js";
5
5
  import { TrustedPlatform } from "../../net/platform.js";
6
6
  import { RouteBase, RoutePaths } from "../../plugin/routes.js";
7
7
  import { FetchInit, FetchLike } from "../../core/fetch.js";
8
- import { CaptureSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind } from "../../core/capture.js";
8
+ import { CaptureSupport, CookielessSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind, SnippetArgs, SnippetMode } from "../../core/capture.js";
9
9
  import { AnalyticsCollectionOptions, CollectionOverrides } from "../../core/collectionOption.js";
10
10
  import { AdapterJobs, AnalyticsTaskName, ScheduledTask, TASK_NAMES } from "../../core/jobs.js";
11
11
  import { AnalyticsSdks, Ga4Client, Ga4ClientOptions, Ga4ReportResponse, Ga4ReportRow, Ga4Sdk, MaxmindReader, MaxmindSdk } from "../../core/sdks.js";
12
12
  import { Geo, GeoResolver, GeoResolverOptions } from "../../native/geo/geoResolver.js";
13
13
  import { SESSION_DIMENSIONS, SessionDimension } from "../../native/store/rawRead.js";
14
14
  import { CapKey, CapsOption, CardinalityCaps } from "../../native/store/caps.js";
15
- import { HitType } from "../../native/store/types.js";
15
+ import { HitMode, HitType } from "../../native/store/types.js";
16
16
  import { ItemSignatureMode } from "../../native/ingest/itemSignature.js";
17
17
  import { RawEventInput } from "../../native/ingest/normalizeEvent.js";
18
18
  import { IngestHostnameResolver, ServerEventInput, ServerTrack, ServerTrackIdentity, ServerTrackOptions } from "../../core/serverEvent.js";
@@ -24,6 +24,6 @@ import { WriteBufferLimits, WriteBufferOption } from "../../native/engine/writeB
24
24
  import { BotFilter, isBot } from "../../native/ingest/bots.js";
25
25
  import { EventHostnameResolver, HostnameOption } from "../../native/ingest/resolveHostname.js";
26
26
  import { SqliteThread } from "../../native/store/sql/sqliteThread.js";
27
- import { NativeAdapter, NativeCollections, NativeOptions, NativeRetention, NativeSqlite, NativeToday, native } from "../../native/nativeAdapter.js";
27
+ import { NativeAdapter, NativeCollections, NativeOptions, NativeRetention, NativeSqlite, NativeToday, NativeWithoutConsent, native } from "../../native/nativeAdapter.js";
28
28
  import { MAINTAIN_TASK_SLUG, MaintainTaskInput } from "../../native/tasks/maintainTask.js";
29
- export { AGGREGATES_SLUG, type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsCollectionOptions, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BotFilter, type BrowserAmounts, type CapKey, type CapsOption, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type CardinalityCaps, type CollectionOverrides, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type EventHostnameResolver, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Geo, type GeoResolver, type GeoResolverOptions, type Goal, type GoalMatch, type Granularity, HITS_SLUG, type HitType, type HostnameOption, type IngestHostnameResolver, type ItemSignatureMode, MAINTAIN_TASK_SLUG, type MaintainTaskInput, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type NativeAdapter, type NativeCollections, type NativeOptions, type NativeRetention, type NativeSqlite, type NativeToday, type OrderSignatureMode, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RebuildDaysInput, type RebuildDaysReport, type RouteBase, type RoutePaths, SESSION_DIMENSIONS, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SessionDimension, type SnippetScript, type SourceErrorKind, type SqliteThread, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type VisitorCounting, type WriteBufferLimits, type WriteBufferOption, isBot, native };
29
+ export { AGGREGATES_SLUG, type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsCollectionOptions, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BotFilter, type BrowserAmounts, type CapKey, type CapsOption, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type CardinalityCaps, type CollectionOverrides, type ConsentPhase, type CookielessSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type EventHostnameResolver, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Geo, type GeoResolver, type GeoResolverOptions, type Goal, type GoalMatch, type Granularity, HITS_SLUG, type HeldSlotMode, type HitMode, type HitType, type HostnameOption, type IngestHostnameResolver, type ItemSignatureMode, MAINTAIN_TASK_SLUG, type MaintainTaskInput, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type NativeAdapter, type NativeCollections, type NativeOptions, type NativeRetention, type NativeSqlite, type NativeToday, type NativeWithoutConsent, type OrderSignatureMode, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RebuildDaysInput, type RebuildDaysReport, type RouteBase, type RoutePaths, SESSION_DIMENSIONS, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SessionDimension, type SlotMode, type SlotWithoutConsent, type SnippetArgs, type SnippetMode, type SnippetScript, type SourceErrorKind, type SqliteThread, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type VisitorCounting, type WithoutConsentLevel, type WriteBufferLimits, type WriteBufferOption, isBot, native };
@@ -1,17 +1,17 @@
1
1
  import { CurrencyConverter } from "../../goals/currency.js";
2
- import { CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, SnippetScript, TrackerGoal, TrackerSlotConfig } from "../../tracker/config.js";
2
+ import { CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, SlotMode, SlotWithoutConsent, SnippetScript, TrackerGoal, TrackerSlotConfig, WithoutConsentLevel } from "../../tracker/config.js";
3
3
  import { Goal } from "../../goals/types.js";
4
4
  import { BrowserAmounts, OrderSignatureMode } from "../../goals/match.js";
5
5
  import { TrustedPlatform } from "../../net/platform.js";
6
6
  import { RouteBase, RoutePaths } from "../../plugin/routes.js";
7
7
  import { FetchInit, FetchLike } from "../../core/fetch.js";
8
- import { CaptureSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind } from "../../core/capture.js";
8
+ import { CaptureSupport, CookielessSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind, SnippetArgs, SnippetMode } from "../../core/capture.js";
9
9
  import { AdapterJobs, AnalyticsTaskName, ScheduledTask, TASK_NAMES } from "../../core/jobs.js";
10
10
  import { AnalyticsSdks, Ga4Client, Ga4ClientOptions, Ga4ReportResponse, Ga4ReportRow, Ga4Sdk, MaxmindReader, MaxmindSdk } from "../../core/sdks.js";
11
- import { HitType } from "../../native/store/types.js";
11
+ import { HitMode, HitType } from "../../native/store/types.js";
12
12
  import { RawEventInput } from "../../native/ingest/normalizeEvent.js";
13
13
  import { IngestHostnameResolver, ServerEventInput, ServerTrack, ServerTrackIdentity, ServerTrackOptions } from "../../core/serverEvent.js";
14
14
  import { AdapterContext, AdapterLabelArgs, AdapterRegisterContext, AdapterSchemaContext, AnalyticsAdapter, AnalyticsCapabilities, AnalyticsFilter, AnalyticsQuery, AnalyticsResult, AnalyticsRow, DIMENSION_KEYS, DateRange, DimensionKey, FILTER_OPERATORS, FilterOperator, FilterOperatorMap, Granularity, MetricKey, MetricReach, MetricSemantics, MetricValue, MetricValues, RateLimitDescriptor, SourceErrorKind, VisitorCounting } from "../../core/contract.js";
15
15
  import { AdapterLabelOption } from "../../core/sourceLabel.js";
16
16
  import { PlausibleConfig, plausible } from "../../adapters/plausible/plausible.js";
17
- export { type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BrowserAmounts, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalMatch, type Granularity, type HitType, type IngestHostnameResolver, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type PlausibleConfig, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RouteBase, type RoutePaths, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SnippetScript, type SourceErrorKind, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type VisitorCounting, plausible };
17
+ export { type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BrowserAmounts, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type ConsentPhase, type CookielessSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalMatch, type Granularity, type HeldSlotMode, type HitMode, type HitType, type IngestHostnameResolver, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type PlausibleConfig, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RouteBase, type RoutePaths, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SlotMode, type SlotWithoutConsent, type SnippetArgs, type SnippetMode, type SnippetScript, type SourceErrorKind, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type VisitorCounting, type WithoutConsentLevel, plausible };
@@ -1,17 +1,17 @@
1
1
  import { CurrencyConverter } from "../../goals/currency.js";
2
- import { CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, SnippetScript, TrackerGoal, TrackerSlotConfig } from "../../tracker/config.js";
2
+ import { CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, SlotMode, SlotWithoutConsent, SnippetScript, TrackerGoal, TrackerSlotConfig, WithoutConsentLevel } from "../../tracker/config.js";
3
3
  import { Goal } from "../../goals/types.js";
4
4
  import { BrowserAmounts, OrderSignatureMode } from "../../goals/match.js";
5
5
  import { TrustedPlatform } from "../../net/platform.js";
6
6
  import { RouteBase, RoutePaths } from "../../plugin/routes.js";
7
7
  import { FetchInit, FetchLike } from "../../core/fetch.js";
8
- import { CaptureSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind } from "../../core/capture.js";
8
+ import { CaptureSupport, CookielessSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind, SnippetArgs, SnippetMode } from "../../core/capture.js";
9
9
  import { AdapterJobs, AnalyticsTaskName, ScheduledTask, TASK_NAMES } from "../../core/jobs.js";
10
10
  import { AnalyticsSdks, Ga4Client, Ga4ClientOptions, Ga4ReportResponse, Ga4ReportRow, Ga4Sdk, MaxmindReader, MaxmindSdk } from "../../core/sdks.js";
11
- import { HitType } from "../../native/store/types.js";
11
+ import { HitMode, HitType } from "../../native/store/types.js";
12
12
  import { RawEventInput } from "../../native/ingest/normalizeEvent.js";
13
13
  import { IngestHostnameResolver, ServerEventInput, ServerTrack, ServerTrackIdentity, ServerTrackOptions } from "../../core/serverEvent.js";
14
14
  import { AdapterContext, AdapterLabelArgs, AdapterRegisterContext, AdapterSchemaContext, AnalyticsAdapter, AnalyticsCapabilities, AnalyticsFilter, AnalyticsQuery, AnalyticsResult, AnalyticsRow, DIMENSION_KEYS, DateRange, DimensionKey, FILTER_OPERATORS, FilterOperator, FilterOperatorMap, Granularity, MetricKey, MetricReach, MetricSemantics, MetricValue, MetricValues, RateLimitDescriptor, SourceErrorKind, VisitorCounting } from "../../core/contract.js";
15
15
  import { AdapterLabelOption } from "../../core/sourceLabel.js";
16
16
  import { PosthogConfig, posthog } from "../../adapters/posthog/posthog.js";
17
- export { type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BrowserAmounts, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalMatch, type Granularity, type HitType, type IngestHostnameResolver, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type PosthogConfig, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RouteBase, type RoutePaths, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SnippetScript, type SourceErrorKind, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type VisitorCounting, posthog };
17
+ export { type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BrowserAmounts, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type ConsentPhase, type CookielessSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalMatch, type Granularity, type HeldSlotMode, type HitMode, type HitType, type IngestHostnameResolver, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type PosthogConfig, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RouteBase, type RoutePaths, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SlotMode, type SlotWithoutConsent, type SnippetArgs, type SnippetMode, type SnippetScript, type SourceErrorKind, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type VisitorCounting, type WithoutConsentLevel, posthog };
@@ -1,17 +1,17 @@
1
1
  import { CurrencyConverter } from "../../goals/currency.js";
2
- import { CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, SnippetScript, TrackerGoal, TrackerSlotConfig } from "../../tracker/config.js";
2
+ import { CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, SlotMode, SlotWithoutConsent, SnippetScript, TrackerGoal, TrackerSlotConfig, WithoutConsentLevel } from "../../tracker/config.js";
3
3
  import { Goal } from "../../goals/types.js";
4
4
  import { BrowserAmounts, OrderSignatureMode } from "../../goals/match.js";
5
5
  import { TrustedPlatform } from "../../net/platform.js";
6
6
  import { RouteBase, RoutePaths } from "../../plugin/routes.js";
7
7
  import { FetchInit, FetchLike } from "../../core/fetch.js";
8
- import { CaptureSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind } from "../../core/capture.js";
8
+ import { CaptureSupport, CookielessSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind, SnippetArgs, SnippetMode } from "../../core/capture.js";
9
9
  import { AdapterJobs, AnalyticsTaskName, ScheduledTask, TASK_NAMES } from "../../core/jobs.js";
10
10
  import { AnalyticsSdks, Ga4Client, Ga4ClientOptions, Ga4ReportResponse, Ga4ReportRow, Ga4Sdk, MaxmindReader, MaxmindSdk } from "../../core/sdks.js";
11
- import { HitType } from "../../native/store/types.js";
11
+ import { HitMode, HitType } from "../../native/store/types.js";
12
12
  import { RawEventInput } from "../../native/ingest/normalizeEvent.js";
13
13
  import { IngestHostnameResolver, ServerEventInput, ServerTrack, ServerTrackIdentity, ServerTrackOptions } from "../../core/serverEvent.js";
14
14
  import { AdapterContext, AdapterLabelArgs, AdapterRegisterContext, AdapterSchemaContext, AnalyticsAdapter, AnalyticsCapabilities, AnalyticsFilter, AnalyticsQuery, AnalyticsResult, AnalyticsRow, DIMENSION_KEYS, DateRange, DimensionKey, FILTER_OPERATORS, FilterOperator, FilterOperatorMap, Granularity, MetricKey, MetricReach, MetricSemantics, MetricValue, MetricValues, RateLimitDescriptor, SourceErrorKind, VisitorCounting } from "../../core/contract.js";
15
15
  import { AdapterLabelOption } from "../../core/sourceLabel.js";
16
16
  import { UmamiConfig, umami } from "../../adapters/umami/umami.js";
17
- export { type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BrowserAmounts, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalMatch, type Granularity, type HitType, type IngestHostnameResolver, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RouteBase, type RoutePaths, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SnippetScript, type SourceErrorKind, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type UmamiConfig, type VisitorCounting, umami };
17
+ export { type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BrowserAmounts, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type ConsentPhase, type CookielessSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalMatch, type Granularity, type HeldSlotMode, type HitMode, type HitType, type IngestHostnameResolver, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RouteBase, type RoutePaths, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SlotMode, type SlotWithoutConsent, type SnippetArgs, type SnippetMode, type SnippetScript, type SourceErrorKind, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type UmamiConfig, type VisitorCounting, type WithoutConsentLevel, umami };
@@ -1,14 +1,14 @@
1
1
  import { CurrencyConverter } from "../goals/currency.js";
2
- import { CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, SnippetScript, TrackerGoal, TrackerSlotConfig } from "../tracker/config.js";
2
+ import { CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, SlotMode, SlotWithoutConsent, SnippetScript, TrackerGoal, TrackerSlotConfig, WithoutConsentLevel } from "../tracker/config.js";
3
3
  import { Goal } from "../goals/types.js";
4
4
  import { BrowserAmounts, OrderSignatureMode } from "../goals/match.js";
5
5
  import { TrustedPlatform } from "../net/platform.js";
6
6
  import { RouteBase, RoutePaths } from "../plugin/routes.js";
7
7
  import { FetchInit, FetchLike } from "../core/fetch.js";
8
- import { CaptureSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind } from "../core/capture.js";
8
+ import { CaptureSupport, CookielessSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind, SnippetArgs, SnippetMode } from "../core/capture.js";
9
9
  import { AdapterJobs, AnalyticsTaskName, ScheduledTask, TASK_NAMES } from "../core/jobs.js";
10
10
  import { AnalyticsSdks, Ga4Client, Ga4ClientOptions, Ga4ReportResponse, Ga4ReportRow, Ga4Sdk, MaxmindReader, MaxmindSdk } from "../core/sdks.js";
11
- import { HitType } from "../native/store/types.js";
11
+ import { HitMode, HitType } from "../native/store/types.js";
12
12
  import { RawEventInput } from "../native/ingest/normalizeEvent.js";
13
13
  import { IngestHostnameResolver, ServerEventInput, ServerTrack, ServerTrackIdentity, ServerTrackOptions } from "../core/serverEvent.js";
14
14
  import { AdapterContext, AdapterLabelArgs, AdapterRegisterContext, AdapterSchemaContext, AnalyticsAdapter, AnalyticsCapabilities, AnalyticsFilter, AnalyticsQuery, AnalyticsResult, AnalyticsRow, DIMENSION_KEYS, DateRange, DimensionKey, FILTER_OPERATORS, FilterOperator, FilterOperatorMap, Granularity, MetricKey, MetricReach, MetricSemantics, MetricValue, MetricValues, RateLimitDescriptor, SourceErrorKind, VisitorCounting } from "../core/contract.js";
@@ -18,4 +18,4 @@ import { CaptureRouteOptions, captureRoute } from "../next/captureRoute.js";
18
18
  import { IngestRouteOptions } from "../native/ingest/route.js";
19
19
  import { ingestPreflight, ingestRoute } from "../next/ingestRoute.js";
20
20
  import { PosthogProxyRegion, PosthogProxyRewrite, PosthogProxyRewritesOptions, posthogProxyRewrites } from "../next/posthogProxyRewrites.js";
21
- export { type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BrowserAmounts, type CaptureClientKind, type CaptureRewrite, type CaptureRewriteMount, type CaptureRouteOptions, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalMatch, type Granularity, type HitType, type IngestHostnameResolver, type IngestRouteOptions, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type PosthogProxyRegion, type PosthogProxyRewrite, type PosthogProxyRewritesOptions, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RouteBase, type RoutePaths, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SnippetScript, type SourceErrorKind, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type VisitorCounting, captureRewrites, captureRoute, ingestPreflight, ingestRoute, posthogProxyRewrites };
21
+ export { type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BrowserAmounts, type CaptureClientKind, type CaptureRewrite, type CaptureRewriteMount, type CaptureRouteOptions, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type ConsentPhase, type CookielessSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalMatch, type Granularity, type HeldSlotMode, type HitMode, type HitType, type IngestHostnameResolver, type IngestRouteOptions, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type PosthogProxyRegion, type PosthogProxyRewrite, type PosthogProxyRewritesOptions, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RouteBase, type RoutePaths, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SlotMode, type SlotWithoutConsent, type SnippetArgs, type SnippetMode, type SnippetScript, type SourceErrorKind, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type VisitorCounting, type WithoutConsentLevel, captureRewrites, captureRoute, ingestPreflight, ingestRoute, posthogProxyRewrites };
@@ -1,5 +1,6 @@
1
- import { AdminDigest, CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, ResolvedAutoCapture, ResolvedItemCapture, RevenueItem, SnippetScript, TrackerConfig, TrackerExclusion, TrackerGoal, TrackerSkip, TrackerSlotConfig } from "../tracker/config.js";
1
+ import { AdminDigest, CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, ResolvedAutoCapture, ResolvedItemCapture, RevenueItem, SlotMode, SlotWithoutConsent, SnippetScript, TrackerConfig, TrackerExclusion, TrackerGoal, TrackerSkip, TrackerSlotConfig } from "../tracker/config.js";
2
2
  import { GateState, GateStatus, ItemOptions, LoadScript, PurchaseInput, RefundInput, TrackGoalOptions, Tracker } from "../tracker/types.js";
3
+ import { ModeSnapshot } from "../tracker/gate.js";
3
4
  import { AnalyticsApi, AnalyticsCommands, AnalyticsProvider, AnalyticsProviderProps } from "../react/AnalyticsProvider.js";
4
5
  import { useAnalytics } from "../react/useAnalytics.js";
5
- export { type AdminDigest, type AnalyticsApi, type AnalyticsCommands, AnalyticsProvider, type AnalyticsProviderProps, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type GateState, type GateStatus, type GoalMatch, type ItemOptions, type LoadScript, type PurchaseInput, type RefundInput, type ResolvedAutoCapture, type ResolvedItemCapture, type RevenueItem, type SnippetScript, type TrackGoalOptions, type Tracker, type TrackerConfig, type TrackerExclusion, type TrackerGoal, type TrackerSkip, type TrackerSlotConfig, useAnalytics };
6
+ export { type AdminDigest, type AnalyticsApi, type AnalyticsCommands, AnalyticsProvider, type AnalyticsProviderProps, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type ConsentPhase, type GateState, type GateStatus, type GoalMatch, type HeldSlotMode, type ItemOptions, type LoadScript, type ModeSnapshot, type PurchaseInput, type RefundInput, type ResolvedAutoCapture, type ResolvedItemCapture, type RevenueItem, type SlotMode, type SlotWithoutConsent, type SnippetScript, type TrackGoalOptions, type Tracker, type TrackerConfig, type TrackerExclusion, type TrackerGoal, type TrackerSkip, type TrackerSlotConfig, useAnalytics };
@@ -1,5 +1,5 @@
1
- import { AdminDigest, CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, ResolvedAutoCapture, ResolvedItemCapture, SnippetScript, TrackerConfig, TrackerExclusion, TrackerGoal, TrackerSkip, TrackerSlotConfig } from "../tracker/config.js";
1
+ import { AdminDigest, CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, ResolvedAutoCapture, ResolvedItemCapture, SlotMode, SlotWithoutConsent, SnippetScript, TrackerConfig, TrackerExclusion, TrackerGoal, TrackerSkip, TrackerSlotConfig } from "../tracker/config.js";
2
2
  import { GateState, GateStatus } from "../tracker/types.js";
3
3
  import { AnalyticsScripts, AnalyticsScriptsProps } from "../site/AnalyticsScripts.js";
4
4
  import { getTrackerConfig } from "../site/getTrackerConfig.js";
5
- export { type AdminDigest, AnalyticsScripts, type AnalyticsScriptsProps, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type GateState, type GateStatus, type GoalMatch, type ResolvedAutoCapture, type ResolvedItemCapture, type SnippetScript, type TrackerConfig, type TrackerExclusion, type TrackerGoal, type TrackerSkip, type TrackerSlotConfig, getTrackerConfig };
5
+ export { type AdminDigest, AnalyticsScripts, type AnalyticsScriptsProps, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type ConsentPhase, type GateState, type GateStatus, type GoalMatch, type HeldSlotMode, type ResolvedAutoCapture, type ResolvedItemCapture, type SlotMode, type SlotWithoutConsent, type SnippetScript, type TrackerConfig, type TrackerExclusion, type TrackerGoal, type TrackerSkip, type TrackerSlotConfig, getTrackerConfig };
@@ -1,18 +1,18 @@
1
1
  import { CurrencyConverter } from "../goals/currency.js";
2
- import { CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, SnippetScript, TrackerGoal, TrackerSlotConfig } from "../tracker/config.js";
2
+ import { CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, SlotMode, SlotWithoutConsent, SnippetScript, TrackerGoal, TrackerSlotConfig, WithoutConsentLevel } from "../tracker/config.js";
3
3
  import { Goal } from "../goals/types.js";
4
4
  import { BrowserAmounts, OrderSignatureMode } from "../goals/match.js";
5
5
  import { TrustedPlatform } from "../net/platform.js";
6
6
  import { RouteBase, RoutePaths } from "../plugin/routes.js";
7
7
  import { FetchInit, FetchLike } from "../core/fetch.js";
8
- import { CaptureSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind } from "../core/capture.js";
8
+ import { CaptureSupport, CookielessSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind, SnippetArgs, SnippetMode } from "../core/capture.js";
9
9
  import { AdapterJobs, AnalyticsTaskName, ScheduledTask, TASK_NAMES } from "../core/jobs.js";
10
10
  import { AnalyticsSdks, Ga4Client, Ga4ClientOptions, Ga4ReportResponse, Ga4ReportRow, Ga4Sdk, MaxmindReader, MaxmindSdk } from "../core/sdks.js";
11
- import { HitType } from "../native/store/types.js";
11
+ import { HitMode, HitType } from "../native/store/types.js";
12
12
  import { RawEventInput } from "../native/ingest/normalizeEvent.js";
13
13
  import { IngestHostnameResolver, ServerEventInput, ServerTrack, ServerTrackIdentity, ServerTrackOptions } from "../core/serverEvent.js";
14
14
  import { AdapterContext, AdapterLabelArgs, AdapterRegisterContext, AdapterSchemaContext, AnalyticsAdapter, AnalyticsCapabilities, AnalyticsFilter, AnalyticsQuery, AnalyticsResult, AnalyticsRow, DIMENSION_KEYS, DateRange, DimensionKey, FILTER_OPERATORS, FilterOperator, FilterOperatorMap, Granularity, MetricKey, MetricReach, MetricSemantics, MetricValue, MetricValues, RateLimitDescriptor, SourceErrorKind, VisitorCounting } from "../core/contract.js";
15
15
  import { AdapterLabelOption } from "../core/sourceLabel.js";
16
16
  import { MemoryAnalyticsAdapter, MemoryEvent, memoryAdapter } from "../testing/memoryAdapter.js";
17
17
  import { settleAnalytics } from "../testing/settle.js";
18
- export { type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BrowserAmounts, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalMatch, type Granularity, type HitType, type IngestHostnameResolver, type MaxmindReader, type MaxmindSdk, type MemoryAnalyticsAdapter, type MemoryEvent, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RouteBase, type RoutePaths, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SnippetScript, type SourceErrorKind, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type VisitorCounting, memoryAdapter, settleAnalytics };
18
+ export { type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AnalyticsAdapter, type AnalyticsCapabilities, type AnalyticsFilter, type AnalyticsQuery, type AnalyticsResult, type AnalyticsRow, type AnalyticsSdks, type AnalyticsTaskName, type BrowserAmounts, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type CaptureSupport, type ConsentPhase, type CookielessSupport, type CurrencyConverter, type DIMENSION_KEYS, type DateRange, type DimensionKey, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FilterOperator, type FilterOperatorMap, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalMatch, type Granularity, type HeldSlotMode, type HitMode, type HitType, type IngestHostnameResolver, type MaxmindReader, type MaxmindSdk, type MemoryAnalyticsAdapter, type MemoryEvent, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type RateLimitDescriptor, type RawEventInput, type RouteBase, type RoutePaths, type ScheduledTask, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SlotMode, type SlotWithoutConsent, type SnippetArgs, type SnippetMode, type SnippetScript, type SourceErrorKind, type TASK_NAMES, type TrackerGoal, type TrackerSlotConfig, type TrustedPlatform, type VisitorCounting, type WithoutConsentLevel, memoryAdapter, settleAnalytics };
@@ -1,6 +1,7 @@
1
- import { AdminDigest, CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, ResolvedAutoCapture, ResolvedItemCapture, RevenueItem, SnippetScript, TrackerConfig, TrackerExclusion, TrackerGoal, TrackerSkip, TrackerSlotConfig } from "../tracker/config.js";
1
+ import { AdminDigest, CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, ResolvedAutoCapture, ResolvedItemCapture, RevenueItem, SlotMode, SlotWithoutConsent, SnippetScript, TrackerConfig, TrackerExclusion, TrackerGoal, TrackerSkip, TrackerSlotConfig } from "../tracker/config.js";
2
2
  import { GateState, GateStatus, ItemOptions, LoadScript, PurchaseInput, RefundInput, TrackGoalOptions, Tracker, TrackerOptions, TrackerWindow } from "../tracker/types.js";
3
+ import { ModeSnapshot } from "../tracker/gate.js";
3
4
  import { createTracker } from "../tracker/createTracker.js";
4
5
  import { DEFAULT_EXCLUSION_PARAM, EXCLUSION_STORAGE_KEY } from "../tracker/exclusion.js";
5
6
  import { DEFAULT_TRACKER_ENDPOINT, InitTrackerArgs, initTracker } from "../tracker/initTracker.js";
6
- export { type AdminDigest, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, DEFAULT_EXCLUSION_PARAM, DEFAULT_TRACKER_ENDPOINT, EXCLUSION_STORAGE_KEY, type GateState, type GateStatus, type GoalMatch, type InitTrackerArgs, type ItemOptions, type LoadScript, type PurchaseInput, type RefundInput, type ResolvedAutoCapture, type ResolvedItemCapture, type RevenueItem, type SnippetScript, type TrackGoalOptions, type Tracker, type TrackerConfig, type TrackerExclusion, type TrackerGoal, type TrackerOptions, type TrackerSkip, type TrackerSlotConfig, type TrackerWindow, createTracker, initTracker };
7
+ export { type AdminDigest, type CaptureClientKind, type CaptureSlot, type CaptureSnippet, type ConsentPhase, DEFAULT_EXCLUSION_PARAM, DEFAULT_TRACKER_ENDPOINT, EXCLUSION_STORAGE_KEY, type GateState, type GateStatus, type GoalMatch, type HeldSlotMode, type InitTrackerArgs, type ItemOptions, type LoadScript, type ModeSnapshot, type PurchaseInput, type RefundInput, type ResolvedAutoCapture, type ResolvedItemCapture, type RevenueItem, type SlotMode, type SlotWithoutConsent, type SnippetScript, type TrackGoalOptions, type Tracker, type TrackerConfig, type TrackerExclusion, type TrackerGoal, type TrackerOptions, type TrackerSkip, type TrackerSlotConfig, type TrackerWindow, createTracker, initTracker };
@@ -1,15 +1,15 @@
1
1
  import { CurrencyConverter } from "../goals/currency.js";
2
- import { AdminDigest, CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, ResolvedAutoCapture, ResolvedItemCapture, SnippetScript, TrackerConfig, TrackerExclusion, TrackerGoal, TrackerSkip, TrackerSlotConfig } from "../tracker/config.js";
2
+ import { AdminDigest, CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, ResolvedAutoCapture, ResolvedItemCapture, SlotMode, SlotWithoutConsent, SnippetScript, TrackerConfig, TrackerExclusion, TrackerGoal, TrackerSkip, TrackerSlotConfig, WithoutConsentLevel } from "../tracker/config.js";
3
3
  import { Goal } from "../goals/types.js";
4
4
  import { BrowserAmounts, OrderSignatureMode } from "../goals/match.js";
5
5
  import { TrustedPlatform } from "../net/platform.js";
6
6
  import { RouteBase, RoutePaths } from "../plugin/routes.js";
7
7
  import { FetchInit, FetchLike } from "../core/fetch.js";
8
- import { CaptureSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind } from "../core/capture.js";
8
+ import { CaptureSupport, CookielessSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind, SnippetArgs, SnippetMode } from "../core/capture.js";
9
9
  import { AnalyticsCollectionOptions, CollectionOverrides } from "../core/collectionOption.js";
10
10
  import { AdapterJobs, AnalyticsJobsOptions, AnalyticsTaskName, AnalyticsTaskOptions, ScheduledTask, TASK_NAMES } from "../core/jobs.js";
11
11
  import { AnalyticsSdks, Ga4Client, Ga4ClientOptions, Ga4ReportResponse, Ga4ReportRow, Ga4Sdk, MaxmindReader, MaxmindSdk } from "../core/sdks.js";
12
- import { HitType } from "../native/store/types.js";
12
+ import { HitMode, HitType } from "../native/store/types.js";
13
13
  import { GOAL_ACTION_TYPE } from "../goals/constants.js";
14
14
  import { RawEventInput } from "../native/ingest/normalizeEvent.js";
15
15
  import { IngestHostnameResolver, ServerEventInput, ServerTrack, ServerTrackIdentity, ServerTrackOptions } from "../core/serverEvent.js";
@@ -33,7 +33,7 @@ import { TIMEFRAME_PRESETS, TimeframePreset } from "../timeframe/presets.js";
33
33
  import { CacheEntry, CacheSetOptions, CacheStore, ReadRecipe, RecipeWindow } from "../surfacing/cacheStore.js";
34
34
  import { CustomWidgetDef } from "../widgets/customWidget.js";
35
35
  import { BUILT_IN_WIDGET_SLUGS, BuiltInWidgetSlug } from "../core/widgetSlugs.js";
36
- import { AnalyticsAccessOptions, AnalyticsCacheCollectionOptions, AnalyticsCacheOptions, AnalyticsCaptureOptions, AnalyticsComponent, AnalyticsConcurrencyOptions, AnalyticsCountryFlags, AnalyticsCrossScopeOptions, AnalyticsExclusionOptions, AnalyticsGoalsCollectionOptions, AnalyticsGoalsOptions, AnalyticsHooksOptions, AnalyticsPluginOptions, AnalyticsReadAccess, AnalyticsRevenueOptions, AnalyticsRoutesOptions, AnalyticsScopeOptions, AnalyticsSyncCollectionOptions, AnalyticsSyncOptions, AnalyticsViewAccess, AnalyticsViewOptions, AnalyticsWarmOptions, AnalyticsWidgetOverride, AnalyticsWidgetOverrides, AnalyticsWidgetsOptions, AutoCaptureOptions, CaptureGate, CaptureGateArgs, CaptureSlotOption, CrossScopeAccess, CurrencyResolver, ExclusionSitesResolver, ItemCaptureOptions, ProviderHostsOptions, ProvidersCollectionOptions, ProvidersOptions, ProvidersResolve, ProvidersResolveArgs, ScopeCallSite, ScopeLabelResolver, ScopeListResolver, ScopeMemberAccess, ScopeResolver, TimezoneResolver } from "../core/options.js";
36
+ import { AnalyticsAccessOptions, AnalyticsCacheCollectionOptions, AnalyticsCacheOptions, AnalyticsCaptureOptions, AnalyticsComponent, AnalyticsConcurrencyOptions, AnalyticsCountryFlags, AnalyticsCrossScopeOptions, AnalyticsExclusionOptions, AnalyticsGoalsCollectionOptions, AnalyticsGoalsOptions, AnalyticsHooksOptions, AnalyticsPluginOptions, AnalyticsReadAccess, AnalyticsRevenueOptions, AnalyticsRoutesOptions, AnalyticsScopeOptions, AnalyticsSyncCollectionOptions, AnalyticsSyncOptions, AnalyticsViewAccess, AnalyticsViewOptions, AnalyticsWarmOptions, AnalyticsWidgetOverride, AnalyticsWidgetOverrides, AnalyticsWidgetsOptions, AutoCaptureOptions, CaptureGate, CaptureGateArgs, CaptureSlotOption, CrossScopeAccess, CurrencyResolver, ExclusionSitesResolver, ItemCaptureOptions, ProviderHostsOptions, ProvidersCollectionOptions, ProvidersOptions, ProvidersResolve, ProvidersResolveArgs, ScopeCallSite, ScopeLabelResolver, ScopeListResolver, ScopeMemberAccess, ScopeResolver, TimezoneResolver, WithoutConsentArgs, WithoutConsentFunction, WithoutConsentOption } from "../core/options.js";
37
37
  import { SourcesNotice } from "../plugin/readContextForRequest.js";
38
38
  import { SourcesResponse, WireSource } from "../fields/config/fetchSources.js";
39
39
  import { FetchQueryInit, QueryRequest, RefreshRequest, RefreshResponse } from "../query/fetchQuery.js";
@@ -47,4 +47,4 @@ import { GoalActionDefinition, GoalActionRunArgs, TrackGoalActionOptions } from
47
47
  import { TRAFFIC_CHANNELS, TrafficChannel } from "../native/ingest/source.js";
48
48
  import { ParseResult, ParsedQuery } from "../query/parse.js";
49
49
  import { ExclusionResponse, ExclusionSite } from "../view/exclusionLink.js";
50
- export { ANALYTICS_ERROR_CODES, AdapterContext, type AdapterJobs, AdapterLabelArgs, type AdapterLabelOption, AdapterRegisterContext, AdapterSchemaContext, type AdminDigest, type AfterReadAnswer, type AfterReadArgs, type AfterReadHook, type AnalyticsAccessOptions, AnalyticsAdapter, AnalyticsAdapterFactory, type AnalyticsBinding, type AnalyticsCacheCollectionOptions, type AnalyticsCacheOptions, AnalyticsCapabilities, type AnalyticsCaptureOptions, type AnalyticsCollectionOptions, type AnalyticsComponent, type AnalyticsConcurrencyOptions, type AnalyticsCountryFlags, type AnalyticsCrossScopeOptions, type AnalyticsError, type AnalyticsErrorCode, type AnalyticsExclusionOptions, type AnalyticsFieldsOptions, AnalyticsFilter, type AnalyticsGoalsCollectionOptions, type AnalyticsGoalsOptions, type AnalyticsHooksOptions, type AnalyticsJobsOptions, type AnalyticsMetricLabel, type AnalyticsMetricLabels, type AnalyticsPluginOptions, AnalyticsQuery, type AnalyticsReadAccess, AnalyticsResult, type AnalyticsRevenueOptions, type AnalyticsRoutesOptions, AnalyticsRow, type AnalyticsScopeOptions, type AnalyticsSdks, type AnalyticsSourceOptions, type AnalyticsStatBaseOptions, type AnalyticsStatOptions, type AnalyticsStatRowOptions, type AnalyticsSyncCollectionOptions, type AnalyticsSyncOptions, type AnalyticsTabOptions, type AnalyticsTaskName, type AnalyticsTaskOptions, type AnalyticsViewAccess, type AnalyticsViewClientProps, type AnalyticsViewOptions, type AnalyticsWarmOptions, type AnalyticsWidgetOverride, type AnalyticsWidgetOverrides, type AnalyticsWidgetsOptions, type AutoCaptureOptions, BUILT_IN_WIDGET_SLUGS, type BindingContext, type BindingDoc, type BrowserAmounts, type BuiltInWidgetSlug, type CacheEntry, type CacheSetOptions, type CacheStore, type CapabilityRequirement, type CaptureClientKind, type CaptureGate, type CaptureGateArgs, type CaptureSlot, type CaptureSlotOption, type CaptureSnippet, CaptureSupport, type CollectionFieldOverride, type CollectionOverrides, type ConnectionAccess, type ConnectionFieldAccess, type CountryFlagProps, type CountryFlags, type CrossScopeAccess, type CurrencyConverter, type CurrencyResolver, type CustomWidgetDef, DIMENSION_KEYS, DateRange, type DefaultSourceFunction, type DefaultSourceRule, DimensionKey, type ExclusionResponse, type ExclusionSite, type ExclusionSitesResolver, FILTER_OPERATORS, type FetchInit, type FetchLike, type FetchQueryInit, FilterOperator, FilterOperatorMap, type FilterPair, GOAL_ACTION_TYPE, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalActionDefinition, type GoalActionRunArgs, type GoalCollectionFieldOverrides, type GoalFieldOptions, type GoalFieldOverride, type GoalMatch, Granularity, type HitType, type HostCountryFlag, type HostPattern, type HostnameResolver, type IngestHostnameResolver, type ItemCaptureOptions, type ItemLabels, type MaxmindReader, type MaxmindSdk, MetricKey, MetricReach, MetricSemantics, MetricValue, MetricValues, type OrderSignatureMode, type OwnSource, PLATFORM_SCOPE, type ParseResult, type ParsedQuery, type PathResolver, type PluralCategory, type PluralName, type PluralVariant, type ProviderCollectionFieldOverrides, type ProviderFieldOverride, type ProviderHostPolicy, type ProviderHostsOptions, type ProviderId, type ProvidersCollectionOptions, type ProvidersOptions, type ProvidersResolve, type ProvidersResolveArgs, ProxyDescriptor, ProxyRoute, ProxyRouteKind, type QueryError, type QueryErrorCode, type QueryErrorResponse, type QueryRequest, type QueryResponse, type QuerySourceRef, RateLimitDescriptor, type RawEventInput, type ReadOrigin, type ReadRecipe, type RecipeWindow, type RefreshRequest, type RefreshResponse, type ReportMode, type ReportOption, type ResolvedAutoCapture, type ResolvedItemCapture, type RouteBase, type RoutePaths, type ScheduledTask, type ScopeCallSite, type ScopeLabelResolver, type ScopeListResolver, type ScopeMemberAccess, type ScopeResolver, type SerializedAnalyticsQuery, type SerializedCapabilities, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SingularKey, type SnippetScript, SourceErrorKind, type SourcePolicy, type SourcePolicyFunction, type SourceRef, type SourcesNotice, type SourcesResponse, type TASK_NAMES, TIMEFRAME_PRESETS, TRAFFIC_CHANNELS, type TimeframePreset, type TimezoneResolver, type TrackGoalActionOptions, type TrackerConfig, type TrackerExclusion, type TrackerGoal, type TrackerSkip, type TrackerSlotConfig, type TrafficChannel, type TranslationKey, type TranslationsOption, type TrustedPlatform, type ViewEndpoints, type ViewGoal, type ViewScopes, VisitorCounting, type WidgetView, type WidgetViewProps, type WireSource, keys, pluralKeys, readErrorCode };
50
+ export { ANALYTICS_ERROR_CODES, AdapterContext, type AdapterJobs, AdapterLabelArgs, type AdapterLabelOption, AdapterRegisterContext, AdapterSchemaContext, type AdminDigest, type AfterReadAnswer, type AfterReadArgs, type AfterReadHook, type AnalyticsAccessOptions, AnalyticsAdapter, AnalyticsAdapterFactory, type AnalyticsBinding, type AnalyticsCacheCollectionOptions, type AnalyticsCacheOptions, AnalyticsCapabilities, type AnalyticsCaptureOptions, type AnalyticsCollectionOptions, type AnalyticsComponent, type AnalyticsConcurrencyOptions, type AnalyticsCountryFlags, type AnalyticsCrossScopeOptions, type AnalyticsError, type AnalyticsErrorCode, type AnalyticsExclusionOptions, type AnalyticsFieldsOptions, AnalyticsFilter, type AnalyticsGoalsCollectionOptions, type AnalyticsGoalsOptions, type AnalyticsHooksOptions, type AnalyticsJobsOptions, type AnalyticsMetricLabel, type AnalyticsMetricLabels, type AnalyticsPluginOptions, AnalyticsQuery, type AnalyticsReadAccess, AnalyticsResult, type AnalyticsRevenueOptions, type AnalyticsRoutesOptions, AnalyticsRow, type AnalyticsScopeOptions, type AnalyticsSdks, type AnalyticsSourceOptions, type AnalyticsStatBaseOptions, type AnalyticsStatOptions, type AnalyticsStatRowOptions, type AnalyticsSyncCollectionOptions, type AnalyticsSyncOptions, type AnalyticsTabOptions, type AnalyticsTaskName, type AnalyticsTaskOptions, type AnalyticsViewAccess, type AnalyticsViewClientProps, type AnalyticsViewOptions, type AnalyticsWarmOptions, type AnalyticsWidgetOverride, type AnalyticsWidgetOverrides, type AnalyticsWidgetsOptions, type AutoCaptureOptions, BUILT_IN_WIDGET_SLUGS, type BindingContext, type BindingDoc, type BrowserAmounts, type BuiltInWidgetSlug, type CacheEntry, type CacheSetOptions, type CacheStore, type CapabilityRequirement, type CaptureClientKind, type CaptureGate, type CaptureGateArgs, type CaptureSlot, type CaptureSlotOption, type CaptureSnippet, CaptureSupport, type CollectionFieldOverride, type CollectionOverrides, type ConnectionAccess, type ConnectionFieldAccess, type ConsentPhase, CookielessSupport, type CountryFlagProps, type CountryFlags, type CrossScopeAccess, type CurrencyConverter, type CurrencyResolver, type CustomWidgetDef, DIMENSION_KEYS, DateRange, type DefaultSourceFunction, type DefaultSourceRule, DimensionKey, type ExclusionResponse, type ExclusionSite, type ExclusionSitesResolver, FILTER_OPERATORS, type FetchInit, type FetchLike, type FetchQueryInit, FilterOperator, FilterOperatorMap, type FilterPair, GOAL_ACTION_TYPE, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type Goal, type GoalActionDefinition, type GoalActionRunArgs, type GoalCollectionFieldOverrides, type GoalFieldOptions, type GoalFieldOverride, type GoalMatch, Granularity, type HeldSlotMode, type HitMode, type HitType, type HostCountryFlag, type HostPattern, type HostnameResolver, type IngestHostnameResolver, type ItemCaptureOptions, type ItemLabels, type MaxmindReader, type MaxmindSdk, MetricKey, MetricReach, MetricSemantics, MetricValue, MetricValues, type OrderSignatureMode, type OwnSource, PLATFORM_SCOPE, type ParseResult, type ParsedQuery, type PathResolver, type PluralCategory, type PluralName, type PluralVariant, type ProviderCollectionFieldOverrides, type ProviderFieldOverride, type ProviderHostPolicy, type ProviderHostsOptions, type ProviderId, type ProvidersCollectionOptions, type ProvidersOptions, type ProvidersResolve, type ProvidersResolveArgs, ProxyDescriptor, ProxyRoute, ProxyRouteKind, type QueryError, type QueryErrorCode, type QueryErrorResponse, type QueryRequest, type QueryResponse, type QuerySourceRef, RateLimitDescriptor, type RawEventInput, type ReadOrigin, type ReadRecipe, type RecipeWindow, type RefreshRequest, type RefreshResponse, type ReportMode, type ReportOption, type ResolvedAutoCapture, type ResolvedItemCapture, type RouteBase, type RoutePaths, type ScheduledTask, type ScopeCallSite, type ScopeLabelResolver, type ScopeListResolver, type ScopeMemberAccess, type ScopeResolver, type SerializedAnalyticsQuery, type SerializedCapabilities, type ServerEventInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SingularKey, type SlotMode, type SlotWithoutConsent, SnippetArgs, SnippetMode, type SnippetScript, SourceErrorKind, type SourcePolicy, type SourcePolicyFunction, type SourceRef, type SourcesNotice, type SourcesResponse, type TASK_NAMES, TIMEFRAME_PRESETS, TRAFFIC_CHANNELS, type TimeframePreset, type TimezoneResolver, type TrackGoalActionOptions, type TrackerConfig, type TrackerExclusion, type TrackerGoal, type TrackerSkip, type TrackerSlotConfig, type TrafficChannel, type TranslationKey, type TranslationsOption, type TrustedPlatform, type ViewEndpoints, type ViewGoal, type ViewScopes, VisitorCounting, type WidgetView, type WidgetViewProps, type WireSource, type WithoutConsentArgs, type WithoutConsentFunction, type WithoutConsentLevel, type WithoutConsentOption, keys, pluralKeys, readErrorCode };
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { CurrencyConverter } from "./goals/currency.js";
2
- import { CaptureClientKind, CaptureSlot, CaptureSnippet, GoalMatch, RevenueItem, SnippetScript, TrackerGoal, TrackerSlotConfig } from "./tracker/config.js";
2
+ import { CaptureClientKind, CaptureSlot, CaptureSnippet, ConsentPhase, GoalMatch, HeldSlotMode, RevenueItem, SlotMode, SlotWithoutConsent, SnippetScript, TrackerGoal, TrackerSlotConfig, WithoutConsentLevel } from "./tracker/config.js";
3
3
  import { Goal } from "./goals/types.js";
4
4
  import { BrowserAmounts, OrderSignatureMode } from "./goals/match.js";
5
5
  import { TrustedPlatform } from "./net/platform.js";
6
6
  import { DEFAULT_ROUTE_BASE, RouteBase, RoutePaths, RoutesConfigSource, analyticsRoutes, routePaths } from "./plugin/routes.js";
7
7
  import { FetchInit, FetchLike } from "./core/fetch.js";
8
- import { CaptureSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind } from "./core/capture.js";
8
+ import { CaptureSupport, CookielessSupport, ProxyDescriptor, ProxyRoute, ProxyRouteKind, SnippetArgs, SnippetMode } from "./core/capture.js";
9
9
  import { AnalyticsCollectionOptions, CollectionOverrides } from "./core/collectionOption.js";
10
10
  import { AdapterJobs, AnalyticsJobsOptions, AnalyticsTaskName, AnalyticsTaskOptions, ScheduledTask, TASK_NAMES } from "./core/jobs.js";
11
11
  import { AnalyticsSdks, Ga4Client, Ga4ClientOptions, Ga4ReportResponse, Ga4ReportRow, Ga4Sdk, MaxmindReader, MaxmindSdk } from "./core/sdks.js";
12
- import { HitType } from "./native/store/types.js";
12
+ import { HitMode, HitType } from "./native/store/types.js";
13
13
  import { CURRENCY_ATTRIBUTE, EVENT_ATTRIBUTE, EVENT_PROP_PREFIX, GOAL_ACTION_TYPE, GOAL_ATTRIBUTE, ITEM_ATTRIBUTE, ITEM_CLICK_EVENT, ITEM_NAME_ATTRIBUTE, MAX_ITEMS_PER_BEACON, PURCHASE_GOAL_SLUG, VALUE_ATTRIBUTE } from "./goals/constants.js";
14
14
  import { AnalyticsAttributes } from "./exports/attributes.js";
15
15
  import { ItemSignatureMode, itemAttributesFor, signItemRef } from "./native/ingest/itemSignature.js";
@@ -38,7 +38,7 @@ import { TIMEFRAME_PRESETS, TimeframePreset } from "./timeframe/presets.js";
38
38
  import { CacheEntry, CacheSetOptions, CacheStore, ReadRecipe, RecipeWindow } from "./surfacing/cacheStore.js";
39
39
  import { CustomWidgetDef } from "./widgets/customWidget.js";
40
40
  import { BUILT_IN_WIDGET_SLUGS, BuiltInWidgetSlug } from "./core/widgetSlugs.js";
41
- import { AnalyticsAccessOptions, AnalyticsCacheCollectionOptions, AnalyticsCacheOptions, AnalyticsCaptureOptions, AnalyticsComponent, AnalyticsConcurrencyOptions, AnalyticsCountryFlags, AnalyticsCrossScopeOptions, AnalyticsExclusionOptions, AnalyticsGoalsCollectionOptions, AnalyticsGoalsOptions, AnalyticsHooksOptions, AnalyticsPluginOptions, AnalyticsReadAccess, AnalyticsRevenueOptions, AnalyticsRoutesOptions, AnalyticsScopeOptions, AnalyticsSyncCollectionOptions, AnalyticsSyncOptions, AnalyticsViewAccess, AnalyticsViewOptions, AnalyticsWarmOptions, AnalyticsWidgetOverride, AnalyticsWidgetOverrides, AnalyticsWidgetsOptions, AutoCaptureOptions, CaptureGate, CaptureGateArgs, CaptureSlotOption, CrossScopeAccess, CurrencyResolver, ExclusionSitesResolver, ItemCaptureOptions, ProviderHostsOptions, ProvidersCollectionOptions, ProvidersOptions, ProvidersResolve, ProvidersResolveArgs, ScopeCallSite, ScopeLabelResolver, ScopeListResolver, ScopeMemberAccess, ScopeResolver, TimezoneResolver } from "./core/options.js";
41
+ import { AnalyticsAccessOptions, AnalyticsCacheCollectionOptions, AnalyticsCacheOptions, AnalyticsCaptureOptions, AnalyticsComponent, AnalyticsConcurrencyOptions, AnalyticsCountryFlags, AnalyticsCrossScopeOptions, AnalyticsExclusionOptions, AnalyticsGoalsCollectionOptions, AnalyticsGoalsOptions, AnalyticsHooksOptions, AnalyticsPluginOptions, AnalyticsReadAccess, AnalyticsRevenueOptions, AnalyticsRoutesOptions, AnalyticsScopeOptions, AnalyticsSyncCollectionOptions, AnalyticsSyncOptions, AnalyticsViewAccess, AnalyticsViewOptions, AnalyticsWarmOptions, AnalyticsWidgetOverride, AnalyticsWidgetOverrides, AnalyticsWidgetsOptions, AutoCaptureOptions, CaptureGate, CaptureGateArgs, CaptureSlotOption, CrossScopeAccess, CurrencyResolver, ExclusionSitesResolver, ItemCaptureOptions, ProviderHostsOptions, ProvidersCollectionOptions, ProvidersOptions, ProvidersResolve, ProvidersResolveArgs, ScopeCallSite, ScopeLabelResolver, ScopeListResolver, ScopeMemberAccess, ScopeResolver, TimezoneResolver, WithoutConsentArgs, WithoutConsentFunction, WithoutConsentOption } from "./core/options.js";
42
42
  import { GoalSource } from "./goals/resolver.js";
43
43
  import { GoalsResponse, WireGoal } from "./goals/fetchGoals.js";
44
44
  import { ReadNotices } from "./widgets/readMeta.js";
@@ -80,5 +80,5 @@ declare module 'payload' {
80
80
  }
81
81
  declare const analytics: (options: AnalyticsPluginOptions) => import("payload").Plugin;
82
82
  //#endregion
83
- export { ANALYTICS_ERROR_CODES, type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AfterReadAnswer, type AfterReadArgs, type AfterReadHook, type AnalyticsAccessOptions, type AnalyticsAdapter, type AnalyticsAttributes, type AnalyticsBinding, type AnalyticsCacheCollectionOptions, type AnalyticsCacheOptions, type AnalyticsCapabilities, type AnalyticsCaptureOptions, type AnalyticsCollectionOptions, type AnalyticsComponent, type AnalyticsConcurrencyOptions, type AnalyticsCountryFlags, type AnalyticsCrossScopeOptions, type AnalyticsDefaultLayoutOptions, type AnalyticsError, type AnalyticsErrorCode, type AnalyticsExclusionOptions, type AnalyticsFieldsOptions, type AnalyticsFilter, type AnalyticsGoalsCollectionOptions, type AnalyticsGoalsOptions, type AnalyticsHooksOptions, type AnalyticsJobsOptions, type AnalyticsLinkFieldsOptions, type AnalyticsMetricLabel, type AnalyticsMetricLabels, type AnalyticsPluginOptions, type AnalyticsQuery, type AnalyticsReadAccess, type AnalyticsResult, type AnalyticsRevenueOptions, type AnalyticsRoutesOptions, type AnalyticsRow, type AnalyticsScopeOptions, type AnalyticsSdks, type AnalyticsSourceOptions, type AnalyticsStatBaseOptions, type AnalyticsStatOptions, type AnalyticsStatRowOptions, type AnalyticsSyncCollectionOptions, type AnalyticsSyncOptions, type AnalyticsTabOptions, type AnalyticsTaskName, type AnalyticsTaskOptions, AnalyticsTrackError, type AnalyticsViewAccess, type AnalyticsViewOptions, type AnalyticsWarmOptions, type AnalyticsWidgetOverride, type AnalyticsWidgetOverrides, type AnalyticsWidgetsOptions, type AutoCaptureOptions, BUILT_IN_WIDGET_SLUGS, type BindingContext, type BindingDoc, type BreakdownRow, type BrowserAmounts, type BuildSecretField, type BuiltInWidgetSlug, CACHE_SLUG, CONNECTION_PATHS, CURRENCY_ATTRIBUTE, type CacheEntry, type CacheSetOptions, type CacheStore, type CapabilityRequirement, type CaptureClientKind, type CaptureGate, type CaptureGateArgs, type CaptureSlot, type CaptureSlotOption, type CaptureSnippet, type CaptureSupport, type CollectionFieldOverride, type CollectionOverrides, type ConnectionAccess, type ConnectionFieldAccess, type CrossScopeAccess, type CurrencyConverter, type CurrencyResolver, type CustomWidgetDef, DEFAULT_ROUTE_BASE, type DIMENSION_KEYS, type DateRange, type DefaultSourceFunction, type DefaultSourceRule, type DimensionKey, EVENT_ATTRIBUTE, EVENT_PROP_PREFIX, type ExclusionSitesResolver, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FieldBreakdown, type FieldBreakdownRow, type FieldReadResult, type FieldReadStatus, type FilterOperator, type FilterOperatorMap, type FilterPair, GOALS_SLUG, GOAL_ACTION_TYPE, GOAL_ATTRIBUTE, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type GatedScope, type Goal, type GoalActionDefinition, type GoalActionRunArgs, type GoalCollectionFieldOverrides, type GoalFieldOptions, type GoalFieldOverride, type GoalMatch, type GoalRow, type GoalSource, type GoalsResponse, type Granularity, type GuardedFetch, type GuardedFetchOptions, type HitType, type HostPattern, type HostnameResolver, ITEM_ATTRIBUTE, ITEM_CLICK_EVENT, ITEM_NAME_ATTRIBUTE, type IngestHostnameResolver, type ItemCaptureOptions, type ItemLabels, type ItemSignatureMode, MAX_ITEMS_PER_BEACON, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type OwnSource, PLATFORM_SCOPE, PROVIDERS_SLUG, PROVIDER_IDS, PURCHASE_GOAL_SLUG, type PathResolver, type AnalyticsPluginOptions as PluginOptions, type PluralCategory, type PluralName, type PluralVariant, type ProviderCollectionFieldOverrides, type ProviderDoc, type ProviderFactoryContext, type ProviderFieldOverride, type ProviderFieldsOptions, type ProviderHostPolicy, type ProviderHostsOptions, ProviderHttpError, type ProviderId, type ProvidersCollectionOptions, type ProvidersOptions, type ProvidersResolve, type ProvidersResolveArgs, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type QueryError, type QueryErrorCode, type QueryErrorResponse, type QueryResponse, type QuerySourceRef, type RateLimitDescriptor, type RawEventInput, type ReadForFieldArgs, type ReadForWidgetArgs, type ReadForWidgetBreakdownArgs, type ReadForWidgetGoalsArgs, type ReadForWidgetRealtimeArgs, type ReadForWidgetSeriesArgs, type ReadNotices, type ReadOrigin, type ReadPrincipal, type ReadRecipe, type RealtimePoint, type RebuildDaysInput, type RebuildDaysReport, type RecipeWindow, type RefreshProvidersOptions, type ReportMode, type ReportOption, type RevenueItem, type RouteBase, type RoutePaths, type RoutesConfigSource, SECRET_PATHS, STATE_SLUG, SYNC_SLUG, SYSTEM, type ScheduledTask, type ScopeCallSite, type ScopeLabelResolver, type ScopeListResolver, type ScopeMemberAccess, type ScopeResolver, type SerializedAnalyticsQuery, type SerializedCapabilities, type SeriesGranularity, type SeriesPoint, type ServerEventInput, type PurchaseInput as ServerPurchaseInput, type RefundInput as ServerRefundInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SingularKey, type SnippetScript, type SourceErrorKind, type SourcePolicy, type SourcePolicyFunction, type SourceRef, type StoredSourceRead, type SubstitutedSource, type TASK_NAMES, TIMEFRAME_PRESETS, type TenantMembershipOptions, type TimeframePreset, type TimezoneResolver, type TrackGoalActionOptions, type TrackerGoal, type TrackerSlotConfig, type TranslationKey, type TranslationsOption, type TrustedPlatform, VALUE_ATTRIBUTE, type VisitorCounting, type WidgetBreakdownResult, type WidgetFilter, type WidgetGoalsResult, type WidgetReadResult, type WidgetReadStatus, type WidgetRealtimeResult, type WidgetRealtimeStatus, type WidgetSeriesResult, type WireGoal, adapterFromProviderDoc, analytics, analyticsDefaultLayout, analyticsDefaultWidgets, analyticsError, analyticsFields, analyticsLinkFields, analyticsProviderFields, analyticsRoutes, analyticsStat, analyticsStatRow, analyticsTab, analyticsTabsField, createGuardedFetch, goalField, goalSlug, isAdminUser, itemAttributesFor, keys, parseRetryAfter, pluralKeys, purchase, readErrorCode, readForField, readForWidget, readForWidgetBreakdown, readForWidgetGoals, readForWidgetRealtime, readForWidgetSeries, rebuildDays, refreshProviders, refund, resolveHostPolicy, routePaths, signItemRef, signOrderId, tenantMembership, trackGoalAction, trackServerEvent, widgetFilters };
83
+ export { ANALYTICS_ERROR_CODES, type AdapterContext, type AdapterJobs, type AdapterLabelArgs, type AdapterLabelOption, type AdapterRegisterContext, type AdapterSchemaContext, type AfterReadAnswer, type AfterReadArgs, type AfterReadHook, type AnalyticsAccessOptions, type AnalyticsAdapter, type AnalyticsAttributes, type AnalyticsBinding, type AnalyticsCacheCollectionOptions, type AnalyticsCacheOptions, type AnalyticsCapabilities, type AnalyticsCaptureOptions, type AnalyticsCollectionOptions, type AnalyticsComponent, type AnalyticsConcurrencyOptions, type AnalyticsCountryFlags, type AnalyticsCrossScopeOptions, type AnalyticsDefaultLayoutOptions, type AnalyticsError, type AnalyticsErrorCode, type AnalyticsExclusionOptions, type AnalyticsFieldsOptions, type AnalyticsFilter, type AnalyticsGoalsCollectionOptions, type AnalyticsGoalsOptions, type AnalyticsHooksOptions, type AnalyticsJobsOptions, type AnalyticsLinkFieldsOptions, type AnalyticsMetricLabel, type AnalyticsMetricLabels, type AnalyticsPluginOptions, type AnalyticsQuery, type AnalyticsReadAccess, type AnalyticsResult, type AnalyticsRevenueOptions, type AnalyticsRoutesOptions, type AnalyticsRow, type AnalyticsScopeOptions, type AnalyticsSdks, type AnalyticsSourceOptions, type AnalyticsStatBaseOptions, type AnalyticsStatOptions, type AnalyticsStatRowOptions, type AnalyticsSyncCollectionOptions, type AnalyticsSyncOptions, type AnalyticsTabOptions, type AnalyticsTaskName, type AnalyticsTaskOptions, AnalyticsTrackError, type AnalyticsViewAccess, type AnalyticsViewOptions, type AnalyticsWarmOptions, type AnalyticsWidgetOverride, type AnalyticsWidgetOverrides, type AnalyticsWidgetsOptions, type AutoCaptureOptions, BUILT_IN_WIDGET_SLUGS, type BindingContext, type BindingDoc, type BreakdownRow, type BrowserAmounts, type BuildSecretField, type BuiltInWidgetSlug, CACHE_SLUG, CONNECTION_PATHS, CURRENCY_ATTRIBUTE, type CacheEntry, type CacheSetOptions, type CacheStore, type CapabilityRequirement, type CaptureClientKind, type CaptureGate, type CaptureGateArgs, type CaptureSlot, type CaptureSlotOption, type CaptureSnippet, type CaptureSupport, type CollectionFieldOverride, type CollectionOverrides, type ConnectionAccess, type ConnectionFieldAccess, type ConsentPhase, type CookielessSupport, type CrossScopeAccess, type CurrencyConverter, type CurrencyResolver, type CustomWidgetDef, DEFAULT_ROUTE_BASE, type DIMENSION_KEYS, type DateRange, type DefaultSourceFunction, type DefaultSourceRule, type DimensionKey, EVENT_ATTRIBUTE, EVENT_PROP_PREFIX, type ExclusionSitesResolver, type FILTER_OPERATORS, type FetchInit, type FetchLike, type FieldBreakdown, type FieldBreakdownRow, type FieldReadResult, type FieldReadStatus, type FilterOperator, type FilterOperatorMap, type FilterPair, GOALS_SLUG, GOAL_ACTION_TYPE, GOAL_ATTRIBUTE, type Ga4Client, type Ga4ClientOptions, type Ga4ReportResponse, type Ga4ReportRow, type Ga4Sdk, type GatedScope, type Goal, type GoalActionDefinition, type GoalActionRunArgs, type GoalCollectionFieldOverrides, type GoalFieldOptions, type GoalFieldOverride, type GoalMatch, type GoalRow, type GoalSource, type GoalsResponse, type Granularity, type GuardedFetch, type GuardedFetchOptions, type HeldSlotMode, type HitMode, type HitType, type HostPattern, type HostnameResolver, ITEM_ATTRIBUTE, ITEM_CLICK_EVENT, ITEM_NAME_ATTRIBUTE, type IngestHostnameResolver, type ItemCaptureOptions, type ItemLabels, type ItemSignatureMode, MAX_ITEMS_PER_BEACON, type MaxmindReader, type MaxmindSdk, type MetricKey, type MetricReach, type MetricSemantics, type MetricValue, type MetricValues, type OrderSignatureMode, type OwnSource, PLATFORM_SCOPE, PROVIDERS_SLUG, PROVIDER_IDS, PURCHASE_GOAL_SLUG, type PathResolver, type AnalyticsPluginOptions as PluginOptions, type PluralCategory, type PluralName, type PluralVariant, type ProviderCollectionFieldOverrides, type ProviderDoc, type ProviderFactoryContext, type ProviderFieldOverride, type ProviderFieldsOptions, type ProviderHostPolicy, type ProviderHostsOptions, ProviderHttpError, type ProviderId, type ProvidersCollectionOptions, type ProvidersOptions, type ProvidersResolve, type ProvidersResolveArgs, type ProxyDescriptor, type ProxyRoute, type ProxyRouteKind, type QueryError, type QueryErrorCode, type QueryErrorResponse, type QueryResponse, type QuerySourceRef, type RateLimitDescriptor, type RawEventInput, type ReadForFieldArgs, type ReadForWidgetArgs, type ReadForWidgetBreakdownArgs, type ReadForWidgetGoalsArgs, type ReadForWidgetRealtimeArgs, type ReadForWidgetSeriesArgs, type ReadNotices, type ReadOrigin, type ReadPrincipal, type ReadRecipe, type RealtimePoint, type RebuildDaysInput, type RebuildDaysReport, type RecipeWindow, type RefreshProvidersOptions, type ReportMode, type ReportOption, type RevenueItem, type RouteBase, type RoutePaths, type RoutesConfigSource, SECRET_PATHS, STATE_SLUG, SYNC_SLUG, SYSTEM, type ScheduledTask, type ScopeCallSite, type ScopeLabelResolver, type ScopeListResolver, type ScopeMemberAccess, type ScopeResolver, type SerializedAnalyticsQuery, type SerializedCapabilities, type SeriesGranularity, type SeriesPoint, type ServerEventInput, type PurchaseInput as ServerPurchaseInput, type RefundInput as ServerRefundInput, type ServerTrack, type ServerTrackIdentity, type ServerTrackOptions, type SingularKey, type SlotMode, type SlotWithoutConsent, type SnippetArgs, type SnippetMode, type SnippetScript, type SourceErrorKind, type SourcePolicy, type SourcePolicyFunction, type SourceRef, type StoredSourceRead, type SubstitutedSource, type TASK_NAMES, TIMEFRAME_PRESETS, type TenantMembershipOptions, type TimeframePreset, type TimezoneResolver, type TrackGoalActionOptions, type TrackerGoal, type TrackerSlotConfig, type TranslationKey, type TranslationsOption, type TrustedPlatform, VALUE_ATTRIBUTE, type VisitorCounting, type WidgetBreakdownResult, type WidgetFilter, type WidgetGoalsResult, type WidgetReadResult, type WidgetReadStatus, type WidgetRealtimeResult, type WidgetRealtimeStatus, type WidgetSeriesResult, type WireGoal, type WithoutConsentArgs, type WithoutConsentFunction, type WithoutConsentLevel, type WithoutConsentOption, adapterFromProviderDoc, analytics, analyticsDefaultLayout, analyticsDefaultWidgets, analyticsError, analyticsFields, analyticsLinkFields, analyticsProviderFields, analyticsRoutes, analyticsStat, analyticsStatRow, analyticsTab, analyticsTabsField, createGuardedFetch, goalField, goalSlug, isAdminUser, itemAttributesFor, keys, parseRetryAfter, pluralKeys, purchase, readErrorCode, readForField, readForWidget, readForWidgetBreakdown, readForWidgetGoals, readForWidgetRealtime, readForWidgetSeries, rebuildDays, refreshProviders, refund, resolveHostPolicy, routePaths, signItemRef, signOrderId, tenantMembership, trackGoalAction, trackServerEvent, widgetFilters };
84
84
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ import { resolveHostPolicy } from "./providers/hosts.js";
26
26
  import { PROVIDER_IDS, adapterFromProviderDoc } from "./providers/factory.js";
27
27
  import { CONNECTION_PATHS, SECRET_PATHS } from "./providers/secrets.js";
28
28
  import { PROVIDERS_SLUG, analyticsProviderFields } from "./providers/collection.js";
29
+ import { adapterCountsWithoutConsent } from "./core/captureOptions.js";
29
30
  import { applyConfigRevenueVisibility } from "./goals/moneyFields.js";
30
31
  import { GOALS_SLUG } from "./goals/collection.js";
31
32
  import { resolveOptions } from "./core/options.js";
@@ -191,6 +192,7 @@ const analytics = definePlugin({
191
192
  trustedProxyHops: resolved.trustedProxyHops,
192
193
  trustedPlatform: resolved.trustedPlatform,
193
194
  allowedOrigins: resolved.capture.allowedOrigins,
195
+ adapterCountsWithoutConsent: adapterCountsWithoutConsent(resolved, adapter),
194
196
  ...itemCollections.size > 0 ? { items: {
195
197
  collections: itemCollections,
196
198
  pages: resolved.capture.autoCapture.items.pages