domani 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -3
  2. package/package.json +2 -4
package/dist/index.js CHANGED
@@ -1,8 +1,11 @@
1
+ "use strict";
1
2
  /* eslint-disable */
2
3
  // AUTO-GENERATED from the domani OpenAPI spec by scripts/generate-sdk.ts.
3
4
  // Do not edit by hand - re-run `npx tsx scripts/generate-sdk.ts`.
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Domani = exports.DomaniError = void 0;
4
7
  /** Structured API error - mirrors the `apiError()` shape returned by the API. */
5
- export class DomaniError extends Error {
8
+ class DomaniError extends Error {
6
9
  status;
7
10
  code;
8
11
  hint;
@@ -16,9 +19,10 @@ export class DomaniError extends Error {
16
19
  this.documentation_url = body?.documentation_url;
17
20
  }
18
21
  }
22
+ exports.DomaniError = DomaniError;
19
23
  const enc = encodeURIComponent;
20
24
  // ─── Client ─────────────────────────────────────────
21
- export class Domani {
25
+ class Domani {
22
26
  apiKey;
23
27
  baseUrl;
24
28
  fetchImpl;
@@ -577,4 +581,5 @@ export class Domani {
577
581
  return this.request("POST", `/api/billing/connect/payout`, undefined);
578
582
  }
579
583
  }
580
- export default Domani;
584
+ exports.Domani = Domani;
585
+ exports.default = Domani;
package/package.json CHANGED
@@ -1,15 +1,13 @@
1
1
  {
2
2
  "name": "domani",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Official TypeScript SDK for the domani API - domains, email, and identity for AI agents.",
5
- "type": "module",
6
5
  "main": "./dist/index.js",
7
- "module": "./dist/index.js",
8
6
  "types": "./dist/index.d.ts",
9
7
  "exports": {
10
8
  ".": {
11
9
  "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js"
10
+ "default": "./dist/index.js"
13
11
  }
14
12
  },
15
13
  "files": [