domani 1.0.2 → 1.0.4

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.js CHANGED
@@ -72,6 +72,10 @@ class Domani {
72
72
  throw new DomaniError(res.status, data);
73
73
  return data;
74
74
  }
75
+ /** Accept an access or ownership offer (POST /api/workspaces/access/offers/accept) */
76
+ acceptWorkspaceAccessOffer(body) {
77
+ return this.request("POST", `/api/workspaces/access/offers/accept`, { body });
78
+ }
75
79
  /** Accept a workspace invitation (POST /api/workspaces/invitations/accept) */
76
80
  acceptWorkspaceInvitation(body) {
77
81
  return this.request("POST", `/api/workspaces/invitations/accept`, { body });
@@ -180,6 +184,10 @@ class Domani {
180
184
  createDeal(body) {
181
185
  return this.request("POST", `/api/deals`, { body });
182
186
  }
187
+ /** Analyze a domain and persist an evidence-backed brief (POST /api/domain-briefs) */
188
+ createDomainBrief(body) {
189
+ return this.request("POST", `/api/domain-briefs`, { body });
190
+ }
183
191
  /** List a domain for sale (PUT /api/domains/{domain}/for-sale) */
184
192
  createListing(domain, body) {
185
193
  return this.request("PUT", `/api/domains/${enc(domain)}/for-sale`, { body });
@@ -208,6 +216,10 @@ class Domani {
208
216
  createWorkspace(body) {
209
217
  return this.request("POST", `/api/workspaces`, { body });
210
218
  }
219
+ /** Offer mailbox access or workspace ownership (POST /api/workspaces/{id}/access/offers) */
220
+ createWorkspaceAccessOffer(id, body) {
221
+ return this.request("POST", `/api/workspaces/${enc(id)}/access/offers`, { body });
222
+ }
211
223
  /** Start Mailzero workspace checkout (POST /api/workspaces/{id}/billing/checkout) */
212
224
  createWorkspaceCheckout(id, body) {
213
225
  return this.request("POST", `/api/workspaces/${enc(id)}/billing/checkout`, { body });
@@ -252,6 +264,10 @@ class Domani {
252
264
  getAccount() {
253
265
  return this.request("GET", `/api/me`, undefined);
254
266
  }
267
+ /** Get truthful activation state and recommended next actions (GET /api/me/activation) */
268
+ getActivation() {
269
+ return this.request("GET", `/api/me/activation`, undefined);
270
+ }
255
271
  /** Get EPP auth code (GET /api/domains/{domain}/auth-code) */
256
272
  getAuthCode(domain) {
257
273
  return this.request("GET", `/api/domains/${enc(domain)}/auth-code`, undefined);
@@ -272,6 +288,10 @@ class Domani {
272
288
  getContact() {
273
289
  return this.request("GET", `/api/me/contact`, undefined);
274
290
  }
291
+ /** Get active viewers, composers, and the compose lease (GET /api/email/collaboration/coordination) */
292
+ getConversationCoordination(query) {
293
+ return this.request("GET", `/api/email/collaboration/coordination`, { query });
294
+ }
275
295
  /** Get deal detail with timeline (GET /api/deals/{id}) */
276
296
  getDeal(id) {
277
297
  return this.request("GET", `/api/deals/${enc(id)}`, undefined);
@@ -288,6 +308,10 @@ class Domani {
288
308
  getDnssecRecords(domain) {
289
309
  return this.request("GET", `/api/domains/${enc(domain)}/dnssec`, undefined);
290
310
  }
311
+ /** Get a previously generated domain brief (GET /api/domain-briefs/{id}) */
312
+ getDomainBrief(id) {
313
+ return this.request("GET", `/api/domain-briefs/${enc(id)}`, undefined);
314
+ }
291
315
  /** Check email DNS status (GET /api/domains/{domain}/email/status) */
292
316
  getDomainEmailStatus(domain) {
293
317
  return this.request("GET", `/api/domains/${enc(domain)}/email/status`, undefined);
@@ -348,6 +372,10 @@ class Domani {
348
372
  getPayoutStatus() {
349
373
  return this.request("GET", `/api/billing/connect`, undefined);
350
374
  }
375
+ /** Get a public domain profile (GET /api/domains/{domain}/profile) */
376
+ getPublicDomainProfile(domain) {
377
+ return this.request("GET", `/api/domains/${enc(domain)}/profile`, undefined);
378
+ }
351
379
  /** Get referral earnings and history (GET /api/referrals) */
352
380
  getReferrals() {
353
381
  return this.request("GET", `/api/referrals`, undefined);
@@ -372,6 +400,14 @@ class Domani {
372
400
  getWorkspace(id) {
373
401
  return this.request("GET", `/api/workspaces/${enc(id)}`, undefined);
374
402
  }
403
+ /** Get the canonical workspace access graph (GET /api/workspaces/{id}/access) */
404
+ getWorkspaceAccess(id) {
405
+ return this.request("GET", `/api/workspaces/${enc(id)}/access`, undefined);
406
+ }
407
+ /** Heartbeat viewing or composing presence (PUT /api/email/collaboration/coordination) */
408
+ heartbeatConversationPresence(body) {
409
+ return this.request("PUT", `/api/email/collaboration/coordination`, { body });
410
+ }
375
411
  /** Import an external domain (POST /api/domains/import) */
376
412
  importDomain(body) {
377
413
  return this.request("POST", `/api/domains/import`, { body });
@@ -408,7 +444,7 @@ class Domani {
408
444
  listConversationNotes(id) {
409
445
  return this.request("GET", `/api/email/collaboration/${enc(id)}/notes`, undefined);
410
446
  }
411
- /** List shared inbox conversation state (GET /api/email/collaboration) */
447
+ /** List persisted shared inbox state (GET /api/email/collaboration) */
412
448
  listConversationStates(query) {
413
449
  return this.request("GET", `/api/email/collaboration`, { query });
414
450
  }
@@ -440,6 +476,10 @@ class Domani {
440
476
  listMailboxAliases(address) {
441
477
  return this.request("GET", `/api/emails/${enc(address)}/aliases`, undefined);
442
478
  }
479
+ /** Incrementally synchronize one mailbox (GET /api/email/changes) */
480
+ listMailboxChanges(query) {
481
+ return this.request("GET", `/api/email/changes`, { query });
482
+ }
443
483
  /** List app passwords (hosted) (GET /api/emails/{address}/credentials) */
444
484
  listMailboxCredentials(address) {
445
485
  return this.request("GET", `/api/emails/${enc(address)}/credentials`, undefined);
@@ -456,6 +496,10 @@ class Domani {
456
496
  listMailRules(address) {
457
497
  return this.request("GET", `/api/emails/${enc(address)}/rules`, undefined);
458
498
  }
499
+ /** List actionable mailbox conversations (GET /api/email/work-queue) */
500
+ listMailWorkQueue(query) {
501
+ return this.request("GET", `/api/email/work-queue`, { query });
502
+ }
459
503
  /** List your negotiations (GET /api/negotiations) */
460
504
  listNegotiations(query) {
461
505
  return this.request("GET", `/api/negotiations`, { query });
@@ -524,10 +568,18 @@ class Domani {
524
568
  provisionAgent(body) {
525
569
  return this.request("POST", `/api/agents/provision`, { body });
526
570
  }
571
+ /** Refresh a domain brief from live sources (POST /api/domain-briefs/{id}/refresh) */
572
+ refreshDomainBrief(id) {
573
+ return this.request("POST", `/api/domain-briefs/${enc(id)}/refresh`, undefined);
574
+ }
527
575
  /** Create a new account (POST /api/auth/register) */
528
576
  registerUser(body) {
529
577
  return this.request("POST", `/api/auth/register`, { body });
530
578
  }
579
+ /** Release this client's presence and compose lease (DELETE /api/email/collaboration/coordination) */
580
+ releaseConversationPresence(body) {
581
+ return this.request("DELETE", `/api/email/collaboration/coordination`, { body });
582
+ }
531
583
  /** Release an agent identity (DELETE /api/agents/identity/{slug}) */
532
584
  releaseIdentity(slug) {
533
585
  return this.request("DELETE", `/api/agents/identity/${enc(slug)}`, undefined);
@@ -568,6 +620,10 @@ class Domani {
568
620
  renewDomain(domain, body) {
569
621
  return this.request("POST", `/api/domains/${enc(domain)}/renew`, { body });
570
622
  }
623
+ /** Replay a webhook delivery (POST /api/webhooks/{id}/deliveries/{deliveryId}/replay) */
624
+ replayWebhookDelivery(id, deliveryId, body) {
625
+ return this.request("POST", `/api/webhooks/${enc(id)}/deliveries/${enc(deliveryId)}/replay`, { body });
626
+ }
571
627
  /** Reply to a message (POST /api/emails/{address}/messages/{id}/reply) */
572
628
  replyToMessageByAddress(address, id, body) {
573
629
  return this.request("POST", `/api/emails/${enc(address)}/messages/${enc(id)}/reply`, { body });
@@ -576,6 +632,10 @@ class Domani {
576
632
  requestWorkspaceOwnershipTransfer(id, body) {
577
633
  return this.request("POST", `/api/workspaces/${enc(id)}/ownership-transfer`, { body });
578
634
  }
635
+ /** Research or refresh a public domain profile (POST /api/domains/{domain}/profile) */
636
+ researchPublicDomainProfile(domain, query) {
637
+ return this.request("POST", `/api/domains/${enc(domain)}/profile`, { query });
638
+ }
579
639
  /** Resend contact email verification (POST /api/me/resend-verification) */
580
640
  resendEmailVerification(body) {
581
641
  return this.request("POST", `/api/me/resend-verification`, { body });
@@ -600,6 +660,10 @@ class Domani {
600
660
  revokeToken(id) {
601
661
  return this.request("DELETE", `/api/tokens/${enc(id)}`, undefined);
602
662
  }
663
+ /** Revoke an access grant and its credentials (DELETE /api/workspaces/{id}/access/grants/{grantId}) */
664
+ revokeWorkspaceAccess(id, grantId, body) {
665
+ return this.request("DELETE", `/api/workspaces/${enc(id)}/access/grants/${enc(grantId)}`, { body });
666
+ }
603
667
  /** Revoke a pending invitation (DELETE /api/workspaces/{id}/invitations/{invitationId}) */
604
668
  revokeWorkspaceInvitation(id, invitationId) {
605
669
  return this.request("DELETE", `/api/workspaces/${enc(id)}/invitations/${enc(invitationId)}`, undefined);
@@ -660,6 +724,10 @@ class Domani {
660
724
  setupDomainEmail(domain, body) {
661
725
  return this.request("POST", `/api/domains/${enc(domain)}/email/setup`, { body });
662
726
  }
727
+ /** Plan or apply one access grant (PUT /api/workspaces/{id}/access) */
728
+ setWorkspaceAccess(id, body) {
729
+ return this.request("PUT", `/api/workspaces/${enc(id)}/access`, { body });
730
+ }
663
731
  /** Capture a DNS snapshot (POST /api/domains/{domain}/dns/snapshot) */
664
732
  snapshotDns(domain, body) {
665
733
  return this.request("POST", `/api/domains/${enc(domain)}/dns/snapshot`, { body });
@@ -672,6 +740,14 @@ class Domani {
672
740
  suggestDomains(query) {
673
741
  return this.request("GET", `/api/domains/suggest`, { query });
674
742
  }
743
+ /** Create or replace a flat access group (PUT /api/workspaces/{id}/access/groups) */
744
+ syncAccessGroup(id, body) {
745
+ return this.request("PUT", `/api/workspaces/${enc(id)}/access/groups`, { body });
746
+ }
747
+ /** Create or replace an explicit mailbox collection (PUT /api/workspaces/{id}/access/collections) */
748
+ syncMailboxCollection(id, body) {
749
+ return this.request("PUT", `/api/workspaces/${enc(id)}/access/collections`, { body });
750
+ }
675
751
  /** Test mailbox webhook (POST /api/emails/{address}/webhook/test) */
676
752
  testMailboxWebhook(address) {
677
753
  return this.request("POST", `/api/emails/${enc(address)}/webhook/test`, undefined);
@@ -684,6 +760,10 @@ class Domani {
684
760
  updateAccount(body) {
685
761
  return this.request("PUT", `/api/me`, { body });
686
762
  }
763
+ /** Dismiss or restore first-run guidance (PUT /api/me/activation) */
764
+ updateActivationPreference(body) {
765
+ return this.request("PUT", `/api/me/activation`, { body });
766
+ }
687
767
  /** Assign or update a shared inbox conversation (PATCH /api/email/collaboration) */
688
768
  updateConversationState(body) {
689
769
  return this.request("PATCH", `/api/email/collaboration`, { body });
package/package.json CHANGED
@@ -1,23 +1,13 @@
1
1
  {
2
2
  "name": "domani",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Official TypeScript SDK for the domani API - domains, email, and identity for AI agents.",
5
- "main": "./src/index.ts",
6
- "types": "./src/index.ts",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
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
- }
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
21
11
  }
22
12
  },
23
13
  "files": [
@@ -26,7 +16,9 @@
26
16
  "scripts": {
27
17
  "build": "tsc -p tsconfig.json",
28
18
  "check": "tsc --noEmit",
19
+ "prepare": "npm run build",
29
20
  "test": "vitest run",
21
+ "test:package": "npm run build && node scripts/package-smoke.mjs",
30
22
  "prepublishOnly": "npm run build"
31
23
  },
32
24
  "devDependencies": {