@abto-app/event 0.4.1 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
package/dist/client.js
CHANGED
|
@@ -14,7 +14,7 @@ import { Transport } from './transport.js';
|
|
|
14
14
|
import { ABTO_SCHEMA_VERSION as SCHEMA_VERSION } from './types.js';
|
|
15
15
|
import { ABTO_AI_INTERACTION_TYPES, isAIInteractionType } from './system-events.generated.js';
|
|
16
16
|
import { newUuidV7 } from './uuid.js';
|
|
17
|
-
const SDK_VERSION = '0.
|
|
17
|
+
const SDK_VERSION = '0.5.1';
|
|
18
18
|
function requireProjectKey(value) {
|
|
19
19
|
if (typeof value !== 'string' || value.trim() === '') {
|
|
20
20
|
throw new Error(ABTO_ERR_PROJECT_KEY_REQUIRED);
|
|
@@ -3,6 +3,8 @@ export declare const ABTO_COLLECT_EVENTS_PATH: "/v1/collect/events";
|
|
|
3
3
|
export declare const ABTO_HEADER_DEVICE_ID: "x-abto-device-id";
|
|
4
4
|
export declare const ABTO_ERR_PROJECT_KEY_REQUIRED: "[abto] projectKey is required. Check your init config.";
|
|
5
5
|
export declare const ABTO_ERR_API_HOST_INVALID_PREFIX: "[abto] apiHost is not a valid http(s) URL: ";
|
|
6
|
+
export declare const ABTO_CONFORMANCE_SCENARIOS: readonly ["identity.anonymous_persists", "identity.session_rotates", "identity.uuidv7", "identity.identify_and_reset", "config.project_key_required", "config.endpoint_must_be_url", "config.endpoint_requires_https", "config.batch_size_range", "event.name_length_limit", "event.reserved_name_rejected", "event.metric_non_finite_omitted", "event.metric_precision_enforced", "event.metric_scale_limit", "privacy.prompt_and_response_text_not_sent", "transport.request_id_header_case_insensitive", "transport.retry_marked_events_only", "transport.attempt_budget_stops_retry", "transport.response_body_cap", "transport.buffer_cap"];
|
|
7
|
+
export declare const ABTO_CONFORMANCE_EXEMPTIONS: readonly ["transport.response_body_cap", "transport.attempt_budget_stops_retry", "config.batch_size_range", "config.endpoint_requires_https"];
|
|
6
8
|
export declare const ABTO_MAX_BUFFERED_EVENTS: 1000;
|
|
7
9
|
export declare const ABTO_MAX_RETRY_DELAY_MS: 120000;
|
|
8
10
|
export declare const ABTO_RETRY_JITTER_RATIO: 0.5;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery-policy.generated.d.ts","sourceRoot":"","sources":["../src/delivery-policy.generated.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,EAAG,sBAA+B,CAAC;AACrE,eAAO,MAAM,wBAAwB,EAAG,oBAA6B,CAAC;AACtE,eAAO,MAAM,qBAAqB,EAAG,kBAA2B,CAAC;AACjE,eAAO,MAAM,6BAA6B,EAAG,wDAAiE,CAAC;AAC/G,eAAO,MAAM,gCAAgC,EAAG,6CAAsD,CAAC;AACvG,eAAO,MAAM,wBAAwB,EAAG,IAAa,CAAC;AACtD,eAAO,MAAM,uBAAuB,EAAG,MAAe,CAAC;AACvD,eAAO,MAAM,uBAAuB,EAAG,GAAY,CAAC;AACpD,eAAO,MAAM,qBAAqB,EAAG,EAAW,CAAC;AACjD,eAAO,MAAM,+BAA+B,EAAG,EAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"delivery-policy.generated.d.ts","sourceRoot":"","sources":["../src/delivery-policy.generated.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,EAAG,sBAA+B,CAAC;AACrE,eAAO,MAAM,wBAAwB,EAAG,oBAA6B,CAAC;AACtE,eAAO,MAAM,qBAAqB,EAAG,kBAA2B,CAAC;AACjE,eAAO,MAAM,6BAA6B,EAAG,wDAAiE,CAAC;AAC/G,eAAO,MAAM,gCAAgC,EAAG,6CAAsD,CAAC;AACvG,eAAO,MAAM,0BAA0B,knBAAmnB,CAAC;AAC3pB,eAAO,MAAM,2BAA2B,+IAAgJ,CAAC;AACzL,eAAO,MAAM,wBAAwB,EAAG,IAAa,CAAC;AACtD,eAAO,MAAM,uBAAuB,EAAG,MAAe,CAAC;AACvD,eAAO,MAAM,uBAAuB,EAAG,GAAY,CAAC;AACpD,eAAO,MAAM,qBAAqB,EAAG,EAAW,CAAC;AACjD,eAAO,MAAM,+BAA+B,EAAG,EAAW,CAAC"}
|
|
@@ -4,6 +4,8 @@ export const ABTO_COLLECT_EVENTS_PATH = "/v1/collect/events";
|
|
|
4
4
|
export const ABTO_HEADER_DEVICE_ID = "x-abto-device-id";
|
|
5
5
|
export const ABTO_ERR_PROJECT_KEY_REQUIRED = "[abto] projectKey is required. Check your init config.";
|
|
6
6
|
export const ABTO_ERR_API_HOST_INVALID_PREFIX = "[abto] apiHost is not a valid http(s) URL: ";
|
|
7
|
+
export const ABTO_CONFORMANCE_SCENARIOS = ['identity.anonymous_persists', 'identity.session_rotates', 'identity.uuidv7', 'identity.identify_and_reset', 'config.project_key_required', 'config.endpoint_must_be_url', 'config.endpoint_requires_https', 'config.batch_size_range', 'event.name_length_limit', 'event.reserved_name_rejected', 'event.metric_non_finite_omitted', 'event.metric_precision_enforced', 'event.metric_scale_limit', 'privacy.prompt_and_response_text_not_sent', 'transport.request_id_header_case_insensitive', 'transport.retry_marked_events_only', 'transport.attempt_budget_stops_retry', 'transport.response_body_cap', 'transport.buffer_cap'];
|
|
8
|
+
export const ABTO_CONFORMANCE_EXEMPTIONS = ['transport.response_body_cap', 'transport.attempt_budget_stops_retry', 'config.batch_size_range', 'config.endpoint_requires_https'];
|
|
7
9
|
export const ABTO_MAX_BUFFERED_EVENTS = 1000;
|
|
8
10
|
export const ABTO_MAX_RETRY_DELAY_MS = 120000;
|
|
9
11
|
export const ABTO_RETRY_JITTER_RATIO = 0.5;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery-policy.generated.js","sourceRoot":"","sources":["../src/delivery-policy.generated.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,MAAM,CAAC,MAAM,qBAAqB,GAAG,sBAA+B,CAAC;AACrE,MAAM,CAAC,MAAM,wBAAwB,GAA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AAC;AACzL,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAa,CAAC;AACtD,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAe,CAAC;AACvD,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAY,CAAC;AACpD,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAW,CAAC;AACjD,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAW,CAAC"}
|
package/package.json
CHANGED