@elevasis/sdk 0.7.6 → 0.7.8

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/cli.cjs CHANGED
@@ -43883,7 +43883,7 @@ function wrapAction(commandName, fn) {
43883
43883
  // package.json
43884
43884
  var package_default = {
43885
43885
  name: "@elevasis/sdk",
43886
- version: "0.7.6",
43886
+ version: "0.7.8",
43887
43887
  description: "SDK for building Elevasis organization resources",
43888
43888
  type: "module",
43889
43889
  bin: {
@@ -46967,7 +46967,7 @@ Prefer typed adapters over raw \`platform.call()\`.
46967
46967
  ### Singleton adapters (no credential needed)
46968
46968
 
46969
46969
  \`\`\`typescript
46970
- import { scheduler, storage, llm, notifications, lead, pdf, approval, execution, email } from '@elevasis/sdk/worker'
46970
+ import { scheduler, storage, llm, notifications, acqDb, pdf, approval, execution, email } from '@elevasis/sdk/worker'
46971
46971
  \`\`\`
46972
46972
 
46973
46973
  ### Factory adapters (credential-bound)
package/dist/templates.js CHANGED
@@ -1608,7 +1608,7 @@ Prefer typed adapters over raw \`platform.call()\`.
1608
1608
  ### Singleton adapters (no credential needed)
1609
1609
 
1610
1610
  \`\`\`typescript
1611
- import { scheduler, storage, llm, notifications, lead, pdf, approval, execution, email } from '@elevasis/sdk/worker'
1611
+ import { scheduler, storage, llm, notifications, acqDb, pdf, approval, execution, email } from '@elevasis/sdk/worker'
1612
1612
  \`\`\`
1613
1613
 
1614
1614
  ### Factory adapters (credential-bound)
@@ -23,7 +23,7 @@ export { scheduler } from './scheduler.js';
23
23
  export { llm } from './llm.js';
24
24
  export { storage } from './storage.js';
25
25
  export { notifications, type NotificationInput } from './notification.js';
26
- export { lead } from './lead.js';
26
+ export { acqDb } from './lead.js';
27
27
  export { pdf } from './pdf.js';
28
28
  export { approval } from './approval.js';
29
29
  export { execution } from './execution.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Lead Platform Tool Adapter
2
+ * AcqDb Platform Tool Adapter
3
3
  *
4
4
  * Typed wrapper over platform.call() for acquisition lead management.
5
5
  * Singleton export -- no credential needed (platform tool).
@@ -10,19 +10,19 @@
10
10
  import { type TypedAdapter } from './create-adapter.js';
11
11
  import type { LeadToolMap } from '../../types/index.js';
12
12
  /**
13
- * Typed lead adapter for acquisition data management.
13
+ * Typed acqDb adapter for acquisition data management.
14
14
  *
15
15
  * @example
16
16
  * ```ts
17
- * import { lead } from '@elevasis/sdk/worker'
17
+ * import { acqDb } from '@elevasis/sdk/worker'
18
18
  *
19
- * const deal = await lead.getDealByEmail({ email: 'jane@acme.com' })
19
+ * const deal = await acqDb.getDealByEmail({ email: 'jane@acme.com' })
20
20
  * if (!deal) {
21
- * const newDeal = await lead.upsertDeal({
21
+ * const newDeal = await acqDb.upsertDeal({
22
22
  * attioDealId: 'deal-123',
23
23
  * contactEmail: 'jane@acme.com',
24
24
  * })
25
25
  * }
26
26
  * ```
27
27
  */
28
- export declare const lead: TypedAdapter<LeadToolMap>;
28
+ export declare const acqDb: TypedAdapter<LeadToolMap>;
@@ -4966,7 +4966,7 @@ var storage = createAdapter("storage", [
4966
4966
  var notifications = createAdapter("notification", ["create"]);
4967
4967
 
4968
4968
  // src/worker/adapters/lead.ts
4969
- var lead = createAdapter("lead", [
4969
+ var acqDb = createAdapter("acqDb", [
4970
4970
  // List operations
4971
4971
  "listLists",
4972
4972
  "createList",
@@ -5377,4 +5377,4 @@ function startWorker(org) {
5377
5377
  });
5378
5378
  }
5379
5379
 
5380
- export { PlatformToolError, approval, createAdapter, createAnymailfinderAdapter, createApifyAdapter, createAttioAdapter, createDropboxAdapter, createGmailAdapter, createGoogleSheetsAdapter, createInstantlyAdapter, createMailsoAdapter, createNotionAdapter, createResendAdapter, createSignatureApiAdapter, createStripeAdapter, createTombaAdapter, email, execution, lead, llm, notifications, pdf, platform, scheduler, startWorker, storage };
5380
+ export { PlatformToolError, acqDb, approval, createAdapter, createAnymailfinderAdapter, createApifyAdapter, createAttioAdapter, createDropboxAdapter, createGmailAdapter, createGoogleSheetsAdapter, createInstantlyAdapter, createMailsoAdapter, createNotionAdapter, createResendAdapter, createSignatureApiAdapter, createStripeAdapter, createTombaAdapter, email, execution, llm, notifications, pdf, platform, scheduler, startWorker, storage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/sdk",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "description": "SDK for building Elevasis organization resources",
5
5
  "type": "module",
6
6
  "bin": {
@@ -52,7 +52,7 @@ All adapters are imported from `@elevasis/sdk/worker` -- the same subpath as `pl
52
52
 
53
53
  | Import | Methods |
54
54
  | --------------- | ------- |
55
- | `lead` | 35 |
55
+ | `acqDb` | 35 |
56
56
  | `scheduler` | 9 |
57
57
  | `storage` | 5 |
58
58
  | `pdf` | 2 |
@@ -77,7 +77,7 @@ import {
77
77
  createApifyAdapter, createGmailAdapter, createMailsoAdapter,
78
78
  createTombaAdapter,
79
79
  // Platform adapters
80
- lead, scheduler, storage, pdf, approval, notifications, llm, execution, email,
80
+ acqDb, scheduler, storage, pdf, approval, notifications, llm, execution, email,
81
81
  // Generic factory
82
82
  createAdapter,
83
83
  } from '@elevasis/sdk/worker'
@@ -601,12 +601,12 @@ const { category, confidence, summary } = response.output
601
601
 
602
602
  ---
603
603
 
604
- ## Lead Adapter
604
+ ## AcqDb Adapter
605
605
 
606
- Singleton -- 35 methods for acquisition lead management (lists, companies, contacts, deals, deal-sync). `organizationId` is injected server-side -- never pass it.
606
+ Singleton -- 35 methods for acquisition database management (lists, companies, contacts, deals, deal-sync). `organizationId` is injected server-side -- never pass it.
607
607
 
608
608
  ```typescript
609
- import { lead } from '@elevasis/sdk/worker'
609
+ import { acqDb } from '@elevasis/sdk/worker'
610
610
  ```
611
611
 
612
612
  ### Methods
@@ -674,16 +674,16 @@ import { lead } from '@elevasis/sdk/worker'
674
674
  ### Example
675
675
 
676
676
  ```typescript
677
- const deal = await lead.getDealByEmail({ email: 'jane@acme.com' })
677
+ const deal = await acqDb.getDealByEmail({ email: 'jane@acme.com' })
678
678
  if (!deal) {
679
- await lead.upsertDeal({
679
+ await acqDb.upsertDeal({
680
680
  attioDealId: 'deal-123',
681
681
  contactEmail: 'jane@acme.com',
682
682
  })
683
683
  }
684
684
 
685
685
  // Bulk import contacts
686
- await lead.bulkImportContacts({
686
+ await acqDb.bulkImportContacts({
687
687
  listId: 'list-abc',
688
688
  contacts: [
689
689
  { email: 'a@example.com', firstName: 'Alice' },
@@ -30,7 +30,7 @@ const result = await llm.generate({ messages: [...] })
30
30
  import { platform } from '@elevasis/sdk/worker'
31
31
 
32
32
  const result = await platform.call({
33
- tool: 'lead', // tool name
33
+ tool: 'acqDb', // tool name
34
34
  method: 'upsertDeal', // method exposed by that tool
35
35
  params: { ... }, // method-specific parameters
36
36
  })
@@ -137,7 +137,7 @@ Nine built-in platform services are available without a `credential` field. All
137
137
 
138
138
  | Tool Key | Methods | Purpose |
139
139
  | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
140
- | `lead` | 35 methods (CRUD + sync) | Lead management -- `lead` singleton adapter |
140
+ | `acqDb` | 35 methods (CRUD + sync) | Acquisition database -- `acqDb` singleton adapter |
141
141
  | `email` | `send` | Send platform email to org members -- `email` singleton adapter |
142
142
  | `storage` | `upload`, `download`, `createSignedUrl`, `delete`, `list` | File storage -- `storage` singleton adapter |
143
143
  | `pdf` | `render`, `renderToBuffer` | PDF rendering -- `pdf` singleton adapter |