domani 1.0.1 → 1.0.2

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 (3) hide show
  1. package/dist/index.d.ts +648 -19
  2. package/dist/index.js +184 -4
  3. package/package.json +19 -6
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /* eslint-disable */
3
- // AUTO-GENERATED from the domani OpenAPI spec by scripts/generate-sdk.ts.
4
- // Do not edit by hand - re-run `npx tsx scripts/generate-sdk.ts`.
3
+ // AUTO-GENERATED from the domani OpenAPI spec by apps/web/scripts/generate-sdk.ts.
4
+ // Do not edit by hand - re-run `pnpm --filter @domani/web exec tsx scripts/generate-sdk.ts`.
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Domani = exports.DomaniError = void 0;
7
7
  /** Structured API error - mirrors the `apiError()` shape returned by the API. */
@@ -31,7 +31,7 @@ class Domani {
31
31
  throw new Error("Domani: apiKey is required");
32
32
  this.apiKey = opts.apiKey;
33
33
  this.baseUrl = (opts.baseUrl || "https://domani.run").replace(/\/$/, "");
34
- this.fetchImpl = opts.fetch || globalThis.fetch;
34
+ this.fetchImpl = opts.fetch || globalThis.fetch?.bind(globalThis);
35
35
  if (!this.fetchImpl)
36
36
  throw new Error("Domani: no fetch implementation available (pass opts.fetch on older runtimes)");
37
37
  }
@@ -72,14 +72,42 @@ class Domani {
72
72
  throw new DomaniError(res.status, data);
73
73
  return data;
74
74
  }
75
+ /** Accept a workspace invitation (POST /api/workspaces/invitations/accept) */
76
+ acceptWorkspaceInvitation(body) {
77
+ return this.request("POST", `/api/workspaces/invitations/accept`, { body });
78
+ }
79
+ /** Accept workspace ownership (POST /api/workspaces/ownership-transfers/accept) */
80
+ acceptWorkspaceOwnershipTransfer(body) {
81
+ return this.request("POST", `/api/workspaces/ownership-transfers/accept`, { body });
82
+ }
83
+ /** Add a private conversation note (POST /api/email/collaboration/{id}/notes) */
84
+ addConversationNote(id, body) {
85
+ return this.request("POST", `/api/email/collaboration/${enc(id)}/notes`, { body });
86
+ }
87
+ /** Publish a DNSSEC DS record (enable DNSSEC) (POST /api/domains/{domain}/dnssec) */
88
+ addDnssecRecord(domain, body) {
89
+ return this.request("POST", `/api/domains/${enc(domain)}/dnssec`, { body });
90
+ }
75
91
  /** Add a mailbox alias (POST /api/emails/{address}/aliases) */
76
92
  addMailboxAlias(address, body) {
77
93
  return this.request("POST", `/api/emails/${enc(address)}/aliases`, { body });
78
94
  }
95
+ /** Add an inbound mail rule (POST /api/emails/{address}/rules) */
96
+ addMailRule(address, body) {
97
+ return this.request("POST", `/api/emails/${enc(address)}/rules`, { body });
98
+ }
79
99
  /** Add a suppression (POST /api/suppressions) */
80
100
  addSuppression(body) {
81
101
  return this.request("POST", `/api/suppressions`, { body });
82
102
  }
103
+ /** Adopt an owned mailbox into a workspace (POST /api/workspaces/{id}/mailboxes) */
104
+ attachWorkspaceMailbox(id, body) {
105
+ return this.request("POST", `/api/workspaces/${enc(id)}/mailboxes`, { body });
106
+ }
107
+ /** Buy an aftermarket domain (POST /api/domains/{domain}/buy-aftermarket) */
108
+ buyAftermarket(domain, body) {
109
+ return this.request("POST", `/api/domains/${enc(domain)}/buy-aftermarket`, { body });
110
+ }
83
111
  /** Purchase one or more domains (POST /api/domains/buy) */
84
112
  buyDomain(body) {
85
113
  return this.request("POST", `/api/domains/buy`, { body });
@@ -100,10 +128,18 @@ class Domani {
100
128
  cancelNegotiation(id) {
101
129
  return this.request("DELETE", `/api/negotiations/${enc(id)}`, undefined);
102
130
  }
131
+ /** Cancel a Mailzero workspace subscription (POST /api/workspaces/{id}/billing/cancel) */
132
+ cancelWorkspaceSubscription(id) {
133
+ return this.request("POST", `/api/workspaces/${enc(id)}/billing/cancel`, undefined);
134
+ }
103
135
  /** Check email DNS health (MX, SPF, DMARC, DKIM) (GET /api/domains/{domain}/email/check) */
104
136
  checkEmail(domain) {
105
137
  return this.request("GET", `/api/domains/${enc(domain)}/email/check`, undefined);
106
138
  }
139
+ /** Preflight an outbound email (POST /api/emails/{address}/deliverability-check) */
140
+ checkEmailDeliverabilityByAddress(address, body) {
141
+ return this.request("POST", `/api/emails/${enc(address)}/deliverability-check`, { body });
142
+ }
107
143
  /** Pre-check transfer eligibility (GET /api/domains/transfer-check) */
108
144
  checkTransferEligibility(query) {
109
145
  return this.request("GET", `/api/domains/transfer-check`, { query });
@@ -112,6 +148,10 @@ class Domani {
112
148
  checkTransferStatus(domain) {
113
149
  return this.request("GET", `/api/domains/${enc(domain)}/transfer-status`, undefined);
114
150
  }
151
+ /** Claim a free agent identity (<handle>.domani.run) (POST /api/agents/identity) */
152
+ claimIdentity(body) {
153
+ return this.request("POST", `/api/agents/identity`, { body });
154
+ }
115
155
  /** Clear domain catch-all (DELETE /api/domains/{domain}/email/catch-all) */
116
156
  clearCatchAll(domain) {
117
157
  return this.request("DELETE", `/api/domains/${enc(domain)}/email/catch-all`, undefined);
@@ -120,6 +160,10 @@ class Domani {
120
160
  clearDomainRedirect(domain) {
121
161
  return this.request("DELETE", `/api/domains/${enc(domain)}/redirect`, undefined);
122
162
  }
163
+ /** Clone another domain's DNS onto this one (POST /api/domains/{domain}/dns/clone) */
164
+ cloneDns(domain, body) {
165
+ return this.request("POST", `/api/domains/${enc(domain)}/dns/clone`, { body });
166
+ }
123
167
  /** Connect a domain to a hosting or email provider (POST /api/domains/{domain}/connect) */
124
168
  connectDomain(domain, body) {
125
169
  return this.request("POST", `/api/domains/${enc(domain)}/connect`, { body });
@@ -148,6 +192,10 @@ class Domani {
148
192
  createMailboxByAddress(body) {
149
193
  return this.request("POST", `/api/emails`, { body });
150
194
  }
195
+ /** Create an app password (hosted) (POST /api/emails/{address}/credentials) */
196
+ createMailboxCredential(address, body) {
197
+ return this.request("POST", `/api/emails/${enc(address)}/credentials`, { body });
198
+ }
151
199
  /** Create a new API token (POST /api/tokens) */
152
200
  createToken(body) {
153
201
  return this.request("POST", `/api/tokens`, { body });
@@ -156,10 +204,22 @@ class Domani {
156
204
  createWebhook(body) {
157
205
  return this.request("POST", `/api/webhooks`, { body });
158
206
  }
159
- /** Delete account and all associated data (DELETE /api/me) */
207
+ /** Create a workspace (POST /api/workspaces) */
208
+ createWorkspace(body) {
209
+ return this.request("POST", `/api/workspaces`, { body });
210
+ }
211
+ /** Start Mailzero workspace checkout (POST /api/workspaces/{id}/billing/checkout) */
212
+ createWorkspaceCheckout(id, body) {
213
+ return this.request("POST", `/api/workspaces/${enc(id)}/billing/checkout`, { body });
214
+ }
215
+ /** Delete account (blocked while domains are held) (DELETE /api/me) */
160
216
  deleteAccount() {
161
217
  return this.request("DELETE", `/api/me`, undefined);
162
218
  }
219
+ /** Remove a DNSSEC DS record (disable DNSSEC) (DELETE /api/domains/{domain}/dnssec) */
220
+ deleteDnssecRecord(domain, query) {
221
+ return this.request("DELETE", `/api/domains/${enc(domain)}/dnssec`, { query });
222
+ }
163
223
  /** Delete a mailbox (DELETE /api/emails/{address}) */
164
224
  deleteMailboxByAddress(address, body) {
165
225
  return this.request("DELETE", `/api/emails/${enc(address)}`, { body });
@@ -224,6 +284,10 @@ class Domani {
224
284
  getDnsRecords(domain) {
225
285
  return this.request("GET", `/api/domains/${enc(domain)}/dns`, undefined);
226
286
  }
287
+ /** List DNSSEC DS records for a domain you own (GET /api/domains/{domain}/dnssec) */
288
+ getDnssecRecords(domain) {
289
+ return this.request("GET", `/api/domains/${enc(domain)}/dnssec`, undefined);
290
+ }
227
291
  /** Check email DNS status (GET /api/domains/{domain}/email/status) */
228
292
  getDomainEmailStatus(domain) {
229
293
  return this.request("GET", `/api/domains/${enc(domain)}/email/status`, undefined);
@@ -240,6 +304,10 @@ class Domani {
240
304
  getDomainStatus(domain) {
241
305
  return this.request("GET", `/api/domains/${enc(domain)}/status`, undefined);
242
306
  }
307
+ /** Get owner-scoped email deliverability health (GET /api/domains/{domain}/email/deliverability) */
308
+ getEmailDeliverability(domain) {
309
+ return this.request("GET", `/api/domains/${enc(domain)}/email/deliverability`, undefined);
310
+ }
243
311
  /** Get mailbox avatar info (GET /api/emails/{address}/avatar) */
244
312
  getMailboxAvatarByAddress(address) {
245
313
  return this.request("GET", `/api/emails/${enc(address)}/avatar`, undefined);
@@ -248,6 +316,10 @@ class Domani {
248
316
  getMailboxByAddress(address) {
249
317
  return this.request("GET", `/api/emails/${enc(address)}`, undefined);
250
318
  }
319
+ /** Get mail client settings (hosted) (GET /api/emails/{address}/client-settings) */
320
+ getMailboxClientSettings(address) {
321
+ return this.request("GET", `/api/emails/${enc(address)}/client-settings`, undefined);
322
+ }
251
323
  /** Get mailbox webhook config (GET /api/emails/{address}/webhook) */
252
324
  getMailboxWebhook(address) {
253
325
  return this.request("GET", `/api/emails/${enc(address)}/webhook`, undefined);
@@ -296,10 +368,26 @@ class Domani {
296
368
  getWebhookDeliveries(id, query) {
297
369
  return this.request("GET", `/api/webhooks/${enc(id)}/deliveries`, { query });
298
370
  }
371
+ /** Get workspace members and mailboxes (GET /api/workspaces/{id}) */
372
+ getWorkspace(id) {
373
+ return this.request("GET", `/api/workspaces/${enc(id)}`, undefined);
374
+ }
299
375
  /** Import an external domain (POST /api/domains/import) */
300
376
  importDomain(body) {
301
377
  return this.request("POST", `/api/domains/import`, { body });
302
378
  }
379
+ /** Invite a workspace member (POST /api/workspaces/{id}/invitations) */
380
+ inviteWorkspaceMember(id, body) {
381
+ return this.request("POST", `/api/workspaces/${enc(id)}/invitations`, { body });
382
+ }
383
+ /** Leave a workspace (DELETE /api/workspaces/{id}/members/me) */
384
+ leaveWorkspace(id) {
385
+ return this.request("DELETE", `/api/workspaces/${enc(id)}/members/me`, undefined);
386
+ }
387
+ /** List security audit events (GET /api/audit) */
388
+ listAuditEvents(query) {
389
+ return this.request("GET", `/api/audit`, { query });
390
+ }
303
391
  /** List your backorders (GET /api/backorders) */
304
392
  listBackorders(query) {
305
393
  return this.request("GET", `/api/backorders`, { query });
@@ -312,6 +400,18 @@ class Domani {
312
400
  listConnectProviders(domain) {
313
401
  return this.request("GET", `/api/domains/${enc(domain)}/connect`, undefined);
314
402
  }
403
+ /** List attributed conversation activity (GET /api/email/collaboration/{id}/activity) */
404
+ listConversationActivity(id) {
405
+ return this.request("GET", `/api/email/collaboration/${enc(id)}/activity`, undefined);
406
+ }
407
+ /** List private conversation notes (GET /api/email/collaboration/{id}/notes) */
408
+ listConversationNotes(id) {
409
+ return this.request("GET", `/api/email/collaboration/${enc(id)}/notes`, undefined);
410
+ }
411
+ /** List shared inbox conversation state (GET /api/email/collaboration) */
412
+ listConversationStates(query) {
413
+ return this.request("GET", `/api/email/collaboration`, { query });
414
+ }
315
415
  /** List your deals (GET /api/deals) */
316
416
  listDeals(query) {
317
417
  return this.request("GET", `/api/deals`, { query });
@@ -320,10 +420,18 @@ class Domani {
320
420
  listDomains() {
321
421
  return this.request("GET", `/api/domains`, undefined);
322
422
  }
423
+ /** List email folders and counts (GET /api/emails/{address}/folders) */
424
+ listEmailFoldersByAddress(address) {
425
+ return this.request("GET", `/api/emails/${enc(address)}/folders`, undefined);
426
+ }
323
427
  /** List emails (GET /api/emails/{address}/messages) */
324
428
  listEmailMessagesByAddress(address, query) {
325
429
  return this.request("GET", `/api/emails/${enc(address)}/messages`, { query });
326
430
  }
431
+ /** List your agent identities (GET /api/agents/identity) */
432
+ listIdentities() {
433
+ return this.request("GET", `/api/agents/identity`, undefined);
434
+ }
327
435
  /** List payment invoices (GET /api/billing/invoices) */
328
436
  listInvoices(query) {
329
437
  return this.request("GET", `/api/billing/invoices`, { query });
@@ -332,6 +440,10 @@ class Domani {
332
440
  listMailboxAliases(address) {
333
441
  return this.request("GET", `/api/emails/${enc(address)}/aliases`, undefined);
334
442
  }
443
+ /** List app passwords (hosted) (GET /api/emails/{address}/credentials) */
444
+ listMailboxCredentials(address) {
445
+ return this.request("GET", `/api/emails/${enc(address)}/credentials`, undefined);
446
+ }
335
447
  /** List all mailboxes (GET /api/email) */
336
448
  listMailboxes(query) {
337
449
  return this.request("GET", `/api/email`, { query });
@@ -340,6 +452,10 @@ class Domani {
340
452
  listMailboxesByAddress(query) {
341
453
  return this.request("GET", `/api/emails`, { query });
342
454
  }
455
+ /** List inbound mail rules (GET /api/emails/{address}/rules) */
456
+ listMailRules(address) {
457
+ return this.request("GET", `/api/emails/${enc(address)}/rules`, undefined);
458
+ }
343
459
  /** List your negotiations (GET /api/negotiations) */
344
460
  listNegotiations(query) {
345
461
  return this.request("GET", `/api/negotiations`, { query });
@@ -372,6 +488,10 @@ class Domani {
372
488
  listWebhooks() {
373
489
  return this.request("GET", `/api/webhooks`, undefined);
374
490
  }
491
+ /** List accessible workspaces (GET /api/workspaces) */
492
+ listWorkspaces() {
493
+ return this.request("GET", `/api/workspaces`, undefined);
494
+ }
375
495
  /** Send a magic link sign-in email (POST /api/auth/login) */
376
496
  loginUser(body) {
377
497
  return this.request("POST", `/api/auth/login`, { body });
@@ -392,6 +512,10 @@ class Domani {
392
512
  markNotificationRead(id, body) {
393
513
  return this.request("PATCH", `/api/notifications/${enc(id)}`, { body });
394
514
  }
515
+ /** Plan how to adopt an existing domain (GET /api/domains/adoption-plan) */
516
+ planDomainAdoption(query) {
517
+ return this.request("GET", `/api/domains/adoption-plan`, { query });
518
+ }
395
519
  /** Provide EPP/auth code (seller) (PATCH /api/deals/{id}) */
396
520
  provideEppCode(id, body) {
397
521
  return this.request("PATCH", `/api/deals/${enc(id)}`, { body });
@@ -404,6 +528,10 @@ class Domani {
404
528
  registerUser(body) {
405
529
  return this.request("POST", `/api/auth/register`, { body });
406
530
  }
531
+ /** Release an agent identity (DELETE /api/agents/identity/{slug}) */
532
+ releaseIdentity(slug) {
533
+ return this.request("DELETE", `/api/agents/identity/${enc(slug)}`, undefined);
534
+ }
407
535
  /** Remove saved payment method (DELETE /api/billing/card) */
408
536
  removeCard() {
409
537
  return this.request("DELETE", `/api/billing/card`, undefined);
@@ -416,14 +544,26 @@ class Domani {
416
544
  removeMailboxAlias(address, alias) {
417
545
  return this.request("DELETE", `/api/emails/${enc(address)}/aliases/${enc(alias)}`, undefined);
418
546
  }
547
+ /** Remove a member mailbox permission (DELETE /api/workspaces/{id}/mailboxes/{mailboxId}/grants) */
548
+ removeMailboxGrant(id, mailboxId, body) {
549
+ return this.request("DELETE", `/api/workspaces/${enc(id)}/mailboxes/${enc(mailboxId)}/grants`, { body });
550
+ }
419
551
  /** Remove mailbox webhook (DELETE /api/emails/{address}/webhook) */
420
552
  removeMailboxWebhook(address) {
421
553
  return this.request("DELETE", `/api/emails/${enc(address)}/webhook`, undefined);
422
554
  }
555
+ /** Remove an inbound mail rule (DELETE /api/emails/{address}/rules/{ruleId}) */
556
+ removeMailRule(address, ruleId) {
557
+ return this.request("DELETE", `/api/emails/${enc(address)}/rules/${enc(ruleId)}`, undefined);
558
+ }
423
559
  /** Remove a suppression (DELETE /api/suppressions/{address}) */
424
560
  removeSuppression(address) {
425
561
  return this.request("DELETE", `/api/suppressions/${enc(address)}`, undefined);
426
562
  }
563
+ /** Remove a workspace member (DELETE /api/workspaces/{id}/members/{membershipId}) */
564
+ removeWorkspaceMember(id, membershipId) {
565
+ return this.request("DELETE", `/api/workspaces/${enc(id)}/members/${enc(membershipId)}`, undefined);
566
+ }
427
567
  /** Renew a domain (POST /api/domains/{domain}/renew) */
428
568
  renewDomain(domain, body) {
429
569
  return this.request("POST", `/api/domains/${enc(domain)}/renew`, { body });
@@ -432,6 +572,10 @@ class Domani {
432
572
  replyToMessageByAddress(address, id, body) {
433
573
  return this.request("POST", `/api/emails/${enc(address)}/messages/${enc(id)}/reply`, { body });
434
574
  }
575
+ /** Request a workspace ownership transfer (POST /api/workspaces/{id}/ownership-transfer) */
576
+ requestWorkspaceOwnershipTransfer(id, body) {
577
+ return this.request("POST", `/api/workspaces/${enc(id)}/ownership-transfer`, { body });
578
+ }
435
579
  /** Resend contact email verification (POST /api/me/resend-verification) */
436
580
  resendEmailVerification(body) {
437
581
  return this.request("POST", `/api/me/resend-verification`, { body });
@@ -448,10 +592,22 @@ class Domani {
448
592
  restoreDns(domain, body) {
449
593
  return this.request("POST", `/api/domains/${enc(domain)}/dns/restore`, { body });
450
594
  }
595
+ /** Revoke an app password (hosted) (DELETE /api/emails/{address}/credentials/{id}) */
596
+ revokeMailboxCredential(address, id) {
597
+ return this.request("DELETE", `/api/emails/${enc(address)}/credentials/${enc(id)}`, undefined);
598
+ }
451
599
  /** Revoke an API token (DELETE /api/tokens/{id}) */
452
600
  revokeToken(id) {
453
601
  return this.request("DELETE", `/api/tokens/${enc(id)}`, undefined);
454
602
  }
603
+ /** Revoke a pending invitation (DELETE /api/workspaces/{id}/invitations/{invitationId}) */
604
+ revokeWorkspaceInvitation(id, invitationId) {
605
+ return this.request("DELETE", `/api/workspaces/${enc(id)}/invitations/${enc(invitationId)}`, undefined);
606
+ }
607
+ /** Revoke a pending ownership transfer (DELETE /api/workspaces/{id}/ownership-transfer/{transferId}) */
608
+ revokeWorkspaceOwnershipTransfer(id, transferId) {
609
+ return this.request("DELETE", `/api/workspaces/${enc(id)}/ownership-transfer/${enc(transferId)}`, undefined);
610
+ }
455
611
  /** Rotate webhook signing secret (POST /api/emails/{address}/webhook/rotate) */
456
612
  rotateMailboxWebhookSecret(address) {
457
613
  return this.request("POST", `/api/emails/${enc(address)}/webhook/rotate`, undefined);
@@ -484,6 +640,10 @@ class Domani {
484
640
  setDomainRedirect(domain, body) {
485
641
  return this.request("PUT", `/api/domains/${enc(domain)}/redirect`, { body });
486
642
  }
643
+ /** Set a member mailbox permission (PUT /api/workspaces/{id}/mailboxes/{mailboxId}/grants) */
644
+ setMailboxGrant(id, mailboxId, body) {
645
+ return this.request("PUT", `/api/workspaces/${enc(id)}/mailboxes/${enc(mailboxId)}/grants`, { body });
646
+ }
487
647
  /** Set mailbox webhook (PUT /api/emails/{address}/webhook) */
488
648
  setMailboxWebhook(address, body) {
489
649
  return this.request("PUT", `/api/emails/${enc(address)}/webhook`, { body });
@@ -524,10 +684,22 @@ class Domani {
524
684
  updateAccount(body) {
525
685
  return this.request("PUT", `/api/me`, { body });
526
686
  }
687
+ /** Assign or update a shared inbox conversation (PATCH /api/email/collaboration) */
688
+ updateConversationState(body) {
689
+ return this.request("PATCH", `/api/email/collaboration`, { body });
690
+ }
527
691
  /** Update domain settings (PUT /api/domains/{domain}/settings) */
528
692
  updateDomainSettings(domain, body) {
529
693
  return this.request("PUT", `/api/domains/${enc(domain)}/settings`, { body });
530
694
  }
695
+ /** Apply a lifecycle action to messages (POST /api/emails/{address}/messages/actions) */
696
+ updateEmailMessagesByAddress(address, body) {
697
+ return this.request("POST", `/api/emails/${enc(address)}/messages/actions`, { body });
698
+ }
699
+ /** Update an agent identity (PATCH /api/agents/identity/{slug}) */
700
+ updateIdentity(slug, body) {
701
+ return this.request("PATCH", `/api/agents/identity/${enc(slug)}`, { body });
702
+ }
531
703
  /** Update a domain listing (PATCH /api/domains/{domain}/for-sale) */
532
704
  updateListing(domain, body) {
533
705
  return this.request("PATCH", `/api/domains/${enc(domain)}/for-sale`, { body });
@@ -548,6 +720,14 @@ class Domani {
548
720
  updateWebhook(id, body) {
549
721
  return this.request("PATCH", `/api/webhooks/${enc(id)}`, { body });
550
722
  }
723
+ /** Rename a workspace (PATCH /api/workspaces/{id}) */
724
+ updateWorkspace(id, body) {
725
+ return this.request("PATCH", `/api/workspaces/${enc(id)}`, { body });
726
+ }
727
+ /** Change a member role (PATCH /api/workspaces/{id}/members/{membershipId}) */
728
+ updateWorkspaceMember(id, membershipId, body) {
729
+ return this.request("PATCH", `/api/workspaces/${enc(id)}/members/${enc(membershipId)}`, { body });
730
+ }
551
731
  /** Verify that a provider connection is working (POST /api/domains/{domain}/verify) */
552
732
  verifyConnection(domain, body) {
553
733
  return this.request("POST", `/api/domains/${enc(domain)}/verify`, { body });
package/package.json CHANGED
@@ -1,13 +1,23 @@
1
1
  {
2
2
  "name": "domani",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Official TypeScript SDK for the domani API - domains, email, and identity for AI agents.",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
5
+ "main": "./src/index.ts",
6
+ "types": "./src/index.ts",
7
7
  "exports": {
8
8
  ".": {
9
- "types": "./dist/index.d.ts",
10
- "default": "./dist/index.js"
9
+ "types": "./src/index.ts",
10
+ "default": "./src/index.ts"
11
+ }
12
+ },
13
+ "publishConfig": {
14
+ "main": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
20
+ }
11
21
  }
12
22
  },
13
23
  "files": [
@@ -15,10 +25,13 @@
15
25
  ],
16
26
  "scripts": {
17
27
  "build": "tsc -p tsconfig.json",
28
+ "check": "tsc --noEmit",
29
+ "test": "vitest run",
18
30
  "prepublishOnly": "npm run build"
19
31
  },
20
32
  "devDependencies": {
21
- "typescript": "^5.9.0"
33
+ "typescript": "^5.9.0",
34
+ "vitest": "^4.0.18"
22
35
  },
23
36
  "keywords": [
24
37
  "domani",