@elevasis/sdk 0.7.12 → 0.8.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/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.
|
|
43886
|
+
version: "0.8.1",
|
|
43887
43887
|
description: "SDK for building Elevasis organization resources",
|
|
43888
43888
|
type: "module",
|
|
43889
43889
|
bin: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1570,6 +1570,8 @@ type Database = {
|
|
|
1570
1570
|
activities: {
|
|
1571
1571
|
Row: {
|
|
1572
1572
|
activity_type: string;
|
|
1573
|
+
actor_id: string | null;
|
|
1574
|
+
actor_type: string | null;
|
|
1573
1575
|
created_at: string;
|
|
1574
1576
|
description: string | null;
|
|
1575
1577
|
entity_id: string;
|
|
@@ -1584,6 +1586,8 @@ type Database = {
|
|
|
1584
1586
|
};
|
|
1585
1587
|
Insert: {
|
|
1586
1588
|
activity_type: string;
|
|
1589
|
+
actor_id?: string | null;
|
|
1590
|
+
actor_type?: string | null;
|
|
1587
1591
|
created_at?: string;
|
|
1588
1592
|
description?: string | null;
|
|
1589
1593
|
entity_id: string;
|
|
@@ -1598,6 +1602,8 @@ type Database = {
|
|
|
1598
1602
|
};
|
|
1599
1603
|
Update: {
|
|
1600
1604
|
activity_type?: string;
|
|
1605
|
+
actor_id?: string | null;
|
|
1606
|
+
actor_type?: string | null;
|
|
1601
1607
|
created_at?: string;
|
|
1602
1608
|
description?: string | null;
|
|
1603
1609
|
entity_id?: string;
|
|
@@ -3580,7 +3586,6 @@ interface ContactFilters {
|
|
|
3580
3586
|
openingLineIsNull?: boolean;
|
|
3581
3587
|
pipelineStatus?: Record<string, unknown>;
|
|
3582
3588
|
batchId?: string;
|
|
3583
|
-
excludeInvalidCompanies?: boolean;
|
|
3584
3589
|
contactStatus?: 'active' | 'invalid';
|
|
3585
3590
|
}
|
|
3586
3591
|
interface UpsertDealParams {
|
|
@@ -4905,7 +4910,7 @@ interface MailsoVerifyEmailResult {
|
|
|
4905
4910
|
}
|
|
4906
4911
|
|
|
4907
4912
|
interface FindCompanyEmailParams {
|
|
4908
|
-
domain
|
|
4913
|
+
domain: string;
|
|
4909
4914
|
company_name?: string;
|
|
4910
4915
|
email_type?: 'personal' | 'generic' | 'all';
|
|
4911
4916
|
}
|
|
@@ -4916,7 +4921,7 @@ interface FindCompanyEmailResult {
|
|
|
4916
4921
|
[key: string]: unknown;
|
|
4917
4922
|
}
|
|
4918
4923
|
interface FindPersonEmailParams {
|
|
4919
|
-
domain
|
|
4924
|
+
domain: string;
|
|
4920
4925
|
company_name?: string;
|
|
4921
4926
|
full_name?: string;
|
|
4922
4927
|
first_name?: string;
|
|
@@ -6007,6 +6012,14 @@ type LeadToolMap = {
|
|
|
6007
6012
|
params: Omit<BulkImportParams, 'organizationId'>;
|
|
6008
6013
|
result: BulkImportResult;
|
|
6009
6014
|
};
|
|
6015
|
+
deactivateContactsByCompany: {
|
|
6016
|
+
params: {
|
|
6017
|
+
companyId: string;
|
|
6018
|
+
};
|
|
6019
|
+
result: {
|
|
6020
|
+
deactivated: number;
|
|
6021
|
+
};
|
|
6022
|
+
};
|
|
6010
6023
|
upsertDeal: {
|
|
6011
6024
|
params: Omit<UpsertDealParams, 'organizationId'>;
|
|
6012
6025
|
result: AcqDeal;
|
|
@@ -6143,7 +6156,7 @@ type ApprovalToolMap = {
|
|
|
6143
6156
|
confirmationMessage?: string;
|
|
6144
6157
|
description?: string;
|
|
6145
6158
|
}>;
|
|
6146
|
-
context: unknown
|
|
6159
|
+
context: Record<string, unknown>;
|
|
6147
6160
|
description?: string;
|
|
6148
6161
|
priority?: number;
|
|
6149
6162
|
humanCheckpoint?: string;
|
|
@@ -6194,15 +6207,24 @@ type EmailToolMap = {
|
|
|
6194
6207
|
subject: string;
|
|
6195
6208
|
html?: string;
|
|
6196
6209
|
text?: string;
|
|
6197
|
-
userIds?: string[];
|
|
6198
|
-
targetRole?: string;
|
|
6199
|
-
targetAll?: boolean;
|
|
6200
6210
|
replyTo?: string;
|
|
6201
6211
|
tags?: Array<{
|
|
6202
6212
|
name: string;
|
|
6203
6213
|
value: string;
|
|
6204
6214
|
}>;
|
|
6205
|
-
}
|
|
6215
|
+
} & ({
|
|
6216
|
+
userIds: string[];
|
|
6217
|
+
targetRole?: never;
|
|
6218
|
+
targetAll?: never;
|
|
6219
|
+
} | {
|
|
6220
|
+
targetRole: string;
|
|
6221
|
+
userIds?: never;
|
|
6222
|
+
targetAll?: never;
|
|
6223
|
+
} | {
|
|
6224
|
+
targetAll: true;
|
|
6225
|
+
userIds?: never;
|
|
6226
|
+
targetRole?: never;
|
|
6227
|
+
});
|
|
6206
6228
|
result: {
|
|
6207
6229
|
sent: number;
|
|
6208
6230
|
failed: number;
|
|
@@ -6857,15 +6879,14 @@ declare class RegistryValidationError extends Error {
|
|
|
6857
6879
|
type LLMProvider = 'openai' | 'anthropic' | 'openrouter' | 'google';
|
|
6858
6880
|
/**
|
|
6859
6881
|
* SDK LLM generate params.
|
|
6860
|
-
* Extends LLMGenerateRequest with
|
|
6861
|
-
*
|
|
6862
|
-
* When omitted, the resource's default ModelConfig is used.
|
|
6882
|
+
* Extends LLMGenerateRequest with required provider/model for worker→platform dispatch.
|
|
6883
|
+
* Provider and model must always be specified explicitly — no implicit fallback.
|
|
6863
6884
|
*/
|
|
6864
6885
|
interface SDKLLMGenerateParams extends Omit<LLMGenerateRequest, 'signal' | 'responseSchema'> {
|
|
6865
|
-
/** LLM provider
|
|
6866
|
-
provider
|
|
6867
|
-
/** Model identifier — must be a supported LLMModel
|
|
6868
|
-
model
|
|
6886
|
+
/** LLM provider */
|
|
6887
|
+
provider: LLMProvider;
|
|
6888
|
+
/** Model identifier — must be a supported LLMModel */
|
|
6889
|
+
model: LLMModel;
|
|
6869
6890
|
/** JSON Schema for structured output (optional — omit for unstructured text) */
|
|
6870
6891
|
responseSchema?: unknown;
|
|
6871
6892
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Typed wrapper over platform.call() for acquisition lead management.
|
|
5
5
|
* Singleton export -- no credential needed (platform tool).
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* 37 methods covering lists, companies, contacts, deals, deal-sync, and enrichment operations.
|
|
8
8
|
* organizationId is injected server-side by the dispatcher -- never sent from the SDK.
|
|
9
9
|
*/
|
|
10
10
|
import { type TypedAdapter } from './create-adapter.js';
|
|
@@ -10,15 +10,14 @@ import type { LLMGenerateRequest, LLMGenerateResponse, LLMModel } from '../../ty
|
|
|
10
10
|
type LLMProvider = 'openai' | 'anthropic' | 'openrouter' | 'google';
|
|
11
11
|
/**
|
|
12
12
|
* SDK LLM generate params.
|
|
13
|
-
* Extends LLMGenerateRequest with
|
|
14
|
-
*
|
|
15
|
-
* When omitted, the resource's default ModelConfig is used.
|
|
13
|
+
* Extends LLMGenerateRequest with required provider/model for worker→platform dispatch.
|
|
14
|
+
* Provider and model must always be specified explicitly — no implicit fallback.
|
|
16
15
|
*/
|
|
17
16
|
export interface SDKLLMGenerateParams extends Omit<LLMGenerateRequest, 'signal' | 'responseSchema'> {
|
|
18
|
-
/** LLM provider
|
|
19
|
-
provider
|
|
20
|
-
/** Model identifier — must be a supported LLMModel
|
|
21
|
-
model
|
|
17
|
+
/** LLM provider */
|
|
18
|
+
provider: LLMProvider;
|
|
19
|
+
/** Model identifier — must be a supported LLMModel */
|
|
20
|
+
model: LLMModel;
|
|
22
21
|
/** JSON Schema for structured output (optional — omit for unstructured text) */
|
|
23
22
|
responseSchema?: unknown;
|
|
24
23
|
}
|
package/dist/worker/index.js
CHANGED