@cowliss/sdk 0.14.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -40,7 +40,7 @@ export type CowOptions = {
40
40
  * two clients) and this default stays out of the way.
41
41
  */
42
42
  sourceId?: string;
43
- /** API origin, no trailing slash. Defaults to local dev. */
43
+ /** API origin, no trailing slash. Defaults to `https://api.cowliss.com`. */
44
44
  baseUrl?: string;
45
45
  /** Retries after the initial attempt on network errors / 5xx. Default 2. */
46
46
  maxRetries?: number;
package/dist/index.js CHANGED
@@ -51,7 +51,7 @@ export class Cow {
51
51
  constructor(options) {
52
52
  this.#apiKey = options.apiKey;
53
53
  this.#sourceId = options.sourceId;
54
- this.#baseUrl = options.baseUrl ?? "http://localhost:3400";
54
+ this.#baseUrl = options.baseUrl ?? "https://api.cowliss.com";
55
55
  this.#maxRetries = options.maxRetries ?? 2;
56
56
  this.#timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
57
57
  this.#batchTimeoutMs = options.batchTimeoutMs ?? DEFAULT_BATCH_TIMEOUT_MS;
package/dist/types.d.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * typecheck here rather than at a customer's call site.
14
14
  */
15
15
  /** The API's error-code enum, as the SDK surfaces it on `CowError.code`. */
16
- export type ErrorCode = "malformed_request" | "invalid_key" | "forbidden" | "not_found" | "conflict" | "payload_too_large" | "validation_failed" | "trait_validation_failed" | "event_denied" | "trait_denied" | "over_quota" | "rate_limited" | "dependency_unavailable" | "internal" | "journey_fuel_exceeded" | "journey_timeout" | "journey_memory_exceeded" | "journey_error" | "journey_output_invalid" | "journey_nondeterministic" | "push_invalid" | "version_not_ready" | "artifact_too_large";
16
+ export type ErrorCode = "malformed_request" | "invalid_key" | "forbidden" | "not_found" | "conflict" | "payload_too_large" | "validation_failed" | "trait_validation_failed" | "event_denied" | "trait_denied" | "over_quota" | "rate_limited" | "dependency_unavailable" | "internal" | "journey_fuel_exceeded" | "journey_timeout" | "journey_memory_exceeded" | "journey_error" | "journey_output_invalid" | "journey_nondeterministic" | "push_invalid" | "version_not_ready" | "version_outdated" | "source_inactive" | "artifact_too_large";
17
17
  export type IdentifierKind = "anonymousId" | "userId" | "clerkId" | "email";
18
18
  /**
19
19
  * The named identifiers a call carries, at least one. Cowliss generates the
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.0";
1
+ export declare const SDK_VERSION = "0.15.1";
@@ -1,2 +1,2 @@
1
1
  // Generated by scripts/version.ts from package.json. Do not edit.
2
- export const SDK_VERSION = "0.14.0";
2
+ export const SDK_VERSION = "0.15.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cowliss/sdk",
3
- "version": "0.14.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {