@atcn/sdk 1.5.0 → 1.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/dist/client.d.ts CHANGED
@@ -9,7 +9,7 @@ export declare class AtcnApiError extends Error {
9
9
  constructor(status: number, code: string, message: string, reason: string | undefined, retryable: boolean, correlationId: string | undefined, details: unknown);
10
10
  }
11
11
  /** Must equal this package's version in package.json (checked by a test). */
12
- export declare const SDK_VERSION = "1.5.0";
12
+ export declare const SDK_VERSION = "1.5.1";
13
13
  /** Names the SDK and its version on every request, so the API operator can count SDK versions in use. Nothing else is sent. */
14
14
  export declare const SDK_HEADER = "atcn-sdk";
15
15
  export interface ClientOptions {
package/dist/client.js CHANGED
@@ -16,7 +16,7 @@ export class AtcnApiError extends Error {
16
16
  }
17
17
  }
18
18
  /** Must equal this package's version in package.json (checked by a test). */
19
- export const SDK_VERSION = "1.5.0";
19
+ export const SDK_VERSION = "1.5.1";
20
20
  /** Names the SDK and its version on every request, so the API operator can count SDK versions in use. Nothing else is sent. */
21
21
  export const SDK_HEADER = "atcn-sdk";
22
22
  /** Thin HTTP client for the ATCN API. Every mutating call carries an Idempotency-Key. */
@@ -9,8 +9,10 @@ type Opts = {
9
9
  /**
10
10
  * How the hosted importer reads a CSV export: key_columns is a comma-separated list of columns that identify a row,
11
11
  * map names the export's column for an import field, and minor_digits is the decimal places of amount_major (default 2).
12
+ * preset reads a LiteLLM, OpenRouter or Stripe export (CSV, JSON or JSONL) without a column map.
12
13
  */
13
14
  type CsvImportOptions = {
15
+ preset?: "litellm" | "openrouter" | "stripe";
14
16
  kind?: "charge" | "invoice" | "estimate" | "hold";
15
17
  source?: string;
16
18
  key_columns?: string;
@@ -73,6 +75,7 @@ export declare class SubledgerClient {
73
75
  imported: number;
74
76
  deduplicated: number;
75
77
  rejected: number;
78
+ skipped?: number;
76
79
  rows: Json[];
77
80
  }>;
78
81
  listFinancialEvents(query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atcn/sdk",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "TypeScript SDK for ATCN, a cost record for AI agent jobs that anyone can verify: record tasks and charges, sign events, verify closures offline",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -36,10 +36,10 @@
36
36
  "build": "tsc -p tsconfig.build.json"
37
37
  },
38
38
  "dependencies": {
39
- "@atcn/core": "1.5.0",
40
- "@atcn/schema": "1.5.0",
41
- "@atcn/subledger": "1.5.0",
42
- "@atcn/usage": "1.5.0",
39
+ "@atcn/core": "1.5.1",
40
+ "@atcn/schema": "1.5.1",
41
+ "@atcn/subledger": "1.5.1",
42
+ "@atcn/usage": "1.5.1",
43
43
  "zod": "^4.1.0"
44
44
  }
45
45
  }