@elevasis/sdk 0.8.14 → 0.8.16
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 +1 -1
- package/dist/index.d.ts +100 -193
- package/dist/types/worker/adapters/index.d.ts +1 -2
- package/dist/types/worker/adapters/millionverifier.d.ts +14 -0
- package/dist/worker/index.js +31 -30
- package/package.json +1 -1
- package/reference/_navigation.md +1 -1
- package/reference/platform-tools/adapters-integration.mdx +3 -44
- package/dist/types/worker/adapters/mailso.d.ts +0 -14
- package/dist/types/worker/adapters/notion.d.ts +0 -14
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.8.
|
|
43886
|
+
version: "0.8.16",
|
|
43887
43887
|
description: "SDK for building Elevasis organization resources",
|
|
43888
43888
|
type: "module",
|
|
43889
43889
|
bin: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1177,6 +1177,7 @@ type Database = {
|
|
|
1177
1177
|
attio_company_id: string | null;
|
|
1178
1178
|
batch_id: string | null;
|
|
1179
1179
|
category: string | null;
|
|
1180
|
+
category_pain: string | null;
|
|
1180
1181
|
created_at: string;
|
|
1181
1182
|
domain: string | null;
|
|
1182
1183
|
enrichment_data: Json | null;
|
|
@@ -1200,6 +1201,7 @@ type Database = {
|
|
|
1200
1201
|
attio_company_id?: string | null;
|
|
1201
1202
|
batch_id?: string | null;
|
|
1202
1203
|
category?: string | null;
|
|
1204
|
+
category_pain?: string | null;
|
|
1203
1205
|
created_at?: string;
|
|
1204
1206
|
domain?: string | null;
|
|
1205
1207
|
enrichment_data?: Json | null;
|
|
@@ -1223,6 +1225,7 @@ type Database = {
|
|
|
1223
1225
|
attio_company_id?: string | null;
|
|
1224
1226
|
batch_id?: string | null;
|
|
1225
1227
|
category?: string | null;
|
|
1228
|
+
category_pain?: string | null;
|
|
1226
1229
|
created_at?: string;
|
|
1227
1230
|
domain?: string | null;
|
|
1228
1231
|
enrichment_data?: Json | null;
|
|
@@ -3166,6 +3169,56 @@ type Database = {
|
|
|
3166
3169
|
}
|
|
3167
3170
|
];
|
|
3168
3171
|
};
|
|
3172
|
+
webhook_endpoints: {
|
|
3173
|
+
Row: {
|
|
3174
|
+
created_at: string;
|
|
3175
|
+
description: string | null;
|
|
3176
|
+
id: string;
|
|
3177
|
+
key: string;
|
|
3178
|
+
last_triggered_at: string | null;
|
|
3179
|
+
name: string;
|
|
3180
|
+
organization_id: string;
|
|
3181
|
+
request_count: number;
|
|
3182
|
+
resource_id: string;
|
|
3183
|
+
status: string;
|
|
3184
|
+
updated_at: string;
|
|
3185
|
+
};
|
|
3186
|
+
Insert: {
|
|
3187
|
+
created_at?: string;
|
|
3188
|
+
description?: string | null;
|
|
3189
|
+
id?: string;
|
|
3190
|
+
key: string;
|
|
3191
|
+
last_triggered_at?: string | null;
|
|
3192
|
+
name: string;
|
|
3193
|
+
organization_id: string;
|
|
3194
|
+
request_count?: number;
|
|
3195
|
+
resource_id: string;
|
|
3196
|
+
status?: string;
|
|
3197
|
+
updated_at?: string;
|
|
3198
|
+
};
|
|
3199
|
+
Update: {
|
|
3200
|
+
created_at?: string;
|
|
3201
|
+
description?: string | null;
|
|
3202
|
+
id?: string;
|
|
3203
|
+
key?: string;
|
|
3204
|
+
last_triggered_at?: string | null;
|
|
3205
|
+
name?: string;
|
|
3206
|
+
organization_id?: string;
|
|
3207
|
+
request_count?: number;
|
|
3208
|
+
resource_id?: string;
|
|
3209
|
+
status?: string;
|
|
3210
|
+
updated_at?: string;
|
|
3211
|
+
};
|
|
3212
|
+
Relationships: [
|
|
3213
|
+
{
|
|
3214
|
+
foreignKeyName: "webhook_endpoints_organization_id_fkey";
|
|
3215
|
+
columns: ["organization_id"];
|
|
3216
|
+
isOneToOne: false;
|
|
3217
|
+
referencedRelation: "organizations";
|
|
3218
|
+
referencedColumns: ["id"];
|
|
3219
|
+
}
|
|
3220
|
+
];
|
|
3221
|
+
};
|
|
3169
3222
|
};
|
|
3170
3223
|
Views: {
|
|
3171
3224
|
[_ in never]: never;
|
|
@@ -3840,6 +3893,7 @@ interface AcqCompany {
|
|
|
3840
3893
|
source: string | null;
|
|
3841
3894
|
batchId: string | null;
|
|
3842
3895
|
status: 'active' | 'invalid';
|
|
3896
|
+
verticalResearch: string | null;
|
|
3843
3897
|
createdAt: Date;
|
|
3844
3898
|
updatedAt: Date;
|
|
3845
3899
|
}
|
|
@@ -3913,6 +3967,7 @@ interface CreateCompanyParams {
|
|
|
3913
3967
|
category?: string;
|
|
3914
3968
|
source?: string;
|
|
3915
3969
|
batchId?: string;
|
|
3970
|
+
verticalResearch?: string;
|
|
3916
3971
|
}
|
|
3917
3972
|
interface UpdateCompanyParams {
|
|
3918
3973
|
name?: string;
|
|
@@ -3932,6 +3987,7 @@ interface UpdateCompanyParams {
|
|
|
3932
3987
|
attioCompanyId?: string | null;
|
|
3933
3988
|
batchId?: string;
|
|
3934
3989
|
status?: 'active' | 'invalid';
|
|
3990
|
+
verticalResearch?: string | null;
|
|
3935
3991
|
}
|
|
3936
3992
|
type UpsertCompanyParams = CreateCompanyParams;
|
|
3937
3993
|
interface CompanyFilters {
|
|
@@ -3940,6 +3996,8 @@ interface CompanyFilters {
|
|
|
3940
3996
|
segment?: string;
|
|
3941
3997
|
category?: string;
|
|
3942
3998
|
pipelineStatus?: Record<string, unknown>;
|
|
3999
|
+
/** Exclude companies whose pipeline_status contains this value (PostgREST NOT contains) */
|
|
4000
|
+
pipelineStatusNot?: Record<string, unknown>;
|
|
3943
4001
|
batchId?: string;
|
|
3944
4002
|
status?: 'active' | 'invalid';
|
|
3945
4003
|
includeAll?: boolean;
|
|
@@ -5349,38 +5407,48 @@ interface DeleteCampaignResult {
|
|
|
5349
5407
|
}
|
|
5350
5408
|
|
|
5351
5409
|
/**
|
|
5352
|
-
* Shared
|
|
5410
|
+
* Shared MillionVerifier param/result types (browser-safe)
|
|
5353
5411
|
*
|
|
5354
|
-
* These types define the public interface for
|
|
5412
|
+
* These types define the public interface for MillionVerifier operations -- used by both
|
|
5355
5413
|
* the server-side adapter and the SDK typed wrappers. They contain zero Node.js
|
|
5356
5414
|
* dependencies and are safe to import in any environment.
|
|
5357
|
-
*
|
|
5358
|
-
* Server-internal types (API response shapes, credentials) remain in
|
|
5359
|
-
* server/adapters/mailso/fetch/utils/types.ts
|
|
5360
5415
|
*/
|
|
5361
5416
|
/**
|
|
5362
5417
|
* Verify email parameters
|
|
5363
5418
|
*/
|
|
5364
|
-
interface
|
|
5419
|
+
interface MillionVerifierVerifyEmailParams {
|
|
5365
5420
|
email: string;
|
|
5366
5421
|
}
|
|
5367
5422
|
/**
|
|
5368
5423
|
* Verify email result (normalized, camelCase)
|
|
5369
5424
|
*/
|
|
5370
|
-
interface
|
|
5425
|
+
interface MillionVerifierVerifyEmailResult {
|
|
5371
5426
|
email: string;
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5427
|
+
quality: '' | 'good' | 'bad' | 'risky';
|
|
5428
|
+
result: 'ok' | 'catch_all' | 'unknown' | 'error' | 'disposable' | 'invalid';
|
|
5429
|
+
resultCode: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5430
|
+
subresult: string;
|
|
5431
|
+
free: boolean;
|
|
5432
|
+
role: boolean;
|
|
5433
|
+
didYouMean: string;
|
|
5434
|
+
credits: number;
|
|
5435
|
+
executionTime: number;
|
|
5436
|
+
error: string;
|
|
5437
|
+
liveMode: boolean;
|
|
5438
|
+
}
|
|
5439
|
+
/**
|
|
5440
|
+
* Check credits parameters (no inputs required)
|
|
5441
|
+
*/
|
|
5442
|
+
interface MillionVerifierCheckCreditsParams {
|
|
5443
|
+
}
|
|
5444
|
+
/**
|
|
5445
|
+
* Check credits result
|
|
5446
|
+
*/
|
|
5447
|
+
interface MillionVerifierCheckCreditsResult {
|
|
5448
|
+
credits: number;
|
|
5449
|
+
bulkCredits: number;
|
|
5450
|
+
renewingCredits: number;
|
|
5451
|
+
plan: number;
|
|
5384
5452
|
}
|
|
5385
5453
|
|
|
5386
5454
|
interface FindCompanyEmailParams {
|
|
@@ -5502,137 +5570,6 @@ interface EmailVerifierResult {
|
|
|
5502
5570
|
[key: string]: unknown;
|
|
5503
5571
|
}
|
|
5504
5572
|
|
|
5505
|
-
/**
|
|
5506
|
-
* Shared Notion param/result types (browser-safe)
|
|
5507
|
-
*
|
|
5508
|
-
* These types define the public interface for Notion operations -- used by both
|
|
5509
|
-
* the server-side adapter and the SDK typed wrappers. They contain zero Node.js
|
|
5510
|
-
* dependencies and are safe to import in any environment.
|
|
5511
|
-
*
|
|
5512
|
-
* Server-internal types (API response shapes, credentials) remain in
|
|
5513
|
-
* server/adapters/notion/notion-page-adapter.ts
|
|
5514
|
-
*/
|
|
5515
|
-
/**
|
|
5516
|
-
* Page with recursive children (for listAllPages)
|
|
5517
|
-
*/
|
|
5518
|
-
interface PageWithChildren {
|
|
5519
|
-
id: string;
|
|
5520
|
-
title: string;
|
|
5521
|
-
children?: PageWithChildren[];
|
|
5522
|
-
}
|
|
5523
|
-
/**
|
|
5524
|
-
* List all pages result
|
|
5525
|
-
*/
|
|
5526
|
-
interface ListAllPagesResult {
|
|
5527
|
-
pages: PageWithChildren[];
|
|
5528
|
-
}
|
|
5529
|
-
/**
|
|
5530
|
-
* Read page parameters
|
|
5531
|
-
*/
|
|
5532
|
-
interface ReadPageParams {
|
|
5533
|
-
pageId: string;
|
|
5534
|
-
}
|
|
5535
|
-
/**
|
|
5536
|
-
* Read page result
|
|
5537
|
-
*/
|
|
5538
|
-
interface ReadPageResult {
|
|
5539
|
-
id: string;
|
|
5540
|
-
title: string;
|
|
5541
|
-
content: string;
|
|
5542
|
-
}
|
|
5543
|
-
/**
|
|
5544
|
-
* Create page parameters
|
|
5545
|
-
*/
|
|
5546
|
-
interface CreatePageParams {
|
|
5547
|
-
title: string;
|
|
5548
|
-
content: string;
|
|
5549
|
-
parentId: string;
|
|
5550
|
-
}
|
|
5551
|
-
/**
|
|
5552
|
-
* Create page result
|
|
5553
|
-
*/
|
|
5554
|
-
interface CreatePageResult {
|
|
5555
|
-
id: string;
|
|
5556
|
-
url: string;
|
|
5557
|
-
}
|
|
5558
|
-
/**
|
|
5559
|
-
* Update page title parameters
|
|
5560
|
-
*/
|
|
5561
|
-
interface UpdatePageTitleParams {
|
|
5562
|
-
pageId: string;
|
|
5563
|
-
title: string;
|
|
5564
|
-
}
|
|
5565
|
-
/**
|
|
5566
|
-
* Update page title result
|
|
5567
|
-
*/
|
|
5568
|
-
interface UpdatePageTitleResult {
|
|
5569
|
-
id: string;
|
|
5570
|
-
url: string;
|
|
5571
|
-
}
|
|
5572
|
-
/**
|
|
5573
|
-
* Append blocks parameters
|
|
5574
|
-
*/
|
|
5575
|
-
interface AppendBlocksParams {
|
|
5576
|
-
pageId: string;
|
|
5577
|
-
content: string;
|
|
5578
|
-
}
|
|
5579
|
-
/**
|
|
5580
|
-
* Append blocks result
|
|
5581
|
-
*/
|
|
5582
|
-
interface AppendBlocksResult {
|
|
5583
|
-
pageId: string;
|
|
5584
|
-
blocksAdded: number;
|
|
5585
|
-
url: string;
|
|
5586
|
-
}
|
|
5587
|
-
/**
|
|
5588
|
-
* Update blocks parameters (batch)
|
|
5589
|
-
*/
|
|
5590
|
-
interface UpdateBlocksParams {
|
|
5591
|
-
pageId: string;
|
|
5592
|
-
blocks: Record<string, string>;
|
|
5593
|
-
}
|
|
5594
|
-
/**
|
|
5595
|
-
* Update blocks result
|
|
5596
|
-
*/
|
|
5597
|
-
interface UpdateBlocksResult {
|
|
5598
|
-
updatedCount: number;
|
|
5599
|
-
failedCount: number;
|
|
5600
|
-
errors?: Array<{
|
|
5601
|
-
blockId: string;
|
|
5602
|
-
error: string;
|
|
5603
|
-
}>;
|
|
5604
|
-
}
|
|
5605
|
-
/**
|
|
5606
|
-
* Delete page parameters
|
|
5607
|
-
*/
|
|
5608
|
-
interface DeletePageParams {
|
|
5609
|
-
pageId: string;
|
|
5610
|
-
}
|
|
5611
|
-
/**
|
|
5612
|
-
* Delete page result
|
|
5613
|
-
*/
|
|
5614
|
-
interface DeletePageResult {
|
|
5615
|
-
id: string;
|
|
5616
|
-
archived: boolean;
|
|
5617
|
-
}
|
|
5618
|
-
/**
|
|
5619
|
-
* Delete blocks parameters
|
|
5620
|
-
*/
|
|
5621
|
-
interface DeleteBlocksParams {
|
|
5622
|
-
blockIds: string[];
|
|
5623
|
-
}
|
|
5624
|
-
/**
|
|
5625
|
-
* Delete blocks result
|
|
5626
|
-
*/
|
|
5627
|
-
interface DeleteBlocksResult {
|
|
5628
|
-
deletedCount: number;
|
|
5629
|
-
failedCount: number;
|
|
5630
|
-
errors?: Array<{
|
|
5631
|
-
blockId: string;
|
|
5632
|
-
error: string;
|
|
5633
|
-
}>;
|
|
5634
|
-
}
|
|
5635
|
-
|
|
5636
5573
|
/**
|
|
5637
5574
|
* Shared Resend param/result types (browser-safe)
|
|
5638
5575
|
*
|
|
@@ -6122,40 +6059,6 @@ type StripeToolMap = {
|
|
|
6122
6059
|
result: CreateCheckoutSessionResult;
|
|
6123
6060
|
};
|
|
6124
6061
|
};
|
|
6125
|
-
type NotionToolMap = {
|
|
6126
|
-
listAllPages: {
|
|
6127
|
-
params: Record<string, never>;
|
|
6128
|
-
result: ListAllPagesResult;
|
|
6129
|
-
};
|
|
6130
|
-
readPage: {
|
|
6131
|
-
params: ReadPageParams;
|
|
6132
|
-
result: ReadPageResult;
|
|
6133
|
-
};
|
|
6134
|
-
createPage: {
|
|
6135
|
-
params: CreatePageParams;
|
|
6136
|
-
result: CreatePageResult;
|
|
6137
|
-
};
|
|
6138
|
-
updatePageTitle: {
|
|
6139
|
-
params: UpdatePageTitleParams;
|
|
6140
|
-
result: UpdatePageTitleResult;
|
|
6141
|
-
};
|
|
6142
|
-
appendBlocks: {
|
|
6143
|
-
params: AppendBlocksParams;
|
|
6144
|
-
result: AppendBlocksResult;
|
|
6145
|
-
};
|
|
6146
|
-
updateBlocks: {
|
|
6147
|
-
params: UpdateBlocksParams;
|
|
6148
|
-
result: UpdateBlocksResult;
|
|
6149
|
-
};
|
|
6150
|
-
deletePage: {
|
|
6151
|
-
params: DeletePageParams;
|
|
6152
|
-
result: DeletePageResult;
|
|
6153
|
-
};
|
|
6154
|
-
deleteBlocks: {
|
|
6155
|
-
params: DeleteBlocksParams;
|
|
6156
|
-
result: DeleteBlocksResult;
|
|
6157
|
-
};
|
|
6158
|
-
};
|
|
6159
6062
|
type GoogleSheetsToolMap = {
|
|
6160
6063
|
readSheet: {
|
|
6161
6064
|
params: ReadSheetParams;
|
|
@@ -6350,12 +6253,6 @@ type InstantlyToolMap = {
|
|
|
6350
6253
|
result: DeleteCampaignResult;
|
|
6351
6254
|
};
|
|
6352
6255
|
};
|
|
6353
|
-
type MailsoToolMap = {
|
|
6354
|
-
verifyEmail: {
|
|
6355
|
-
params: MailsoVerifyEmailParams;
|
|
6356
|
-
result: MailsoVerifyEmailResult;
|
|
6357
|
-
};
|
|
6358
|
-
};
|
|
6359
6256
|
type AnymailfinderToolMap = {
|
|
6360
6257
|
findCompanyEmail: {
|
|
6361
6258
|
params: FindCompanyEmailParams;
|
|
@@ -6388,6 +6285,16 @@ type TombaToolMap = {
|
|
|
6388
6285
|
result: EmailVerifierResult;
|
|
6389
6286
|
};
|
|
6390
6287
|
};
|
|
6288
|
+
type MillionVerifierToolMap = {
|
|
6289
|
+
verifyEmail: {
|
|
6290
|
+
params: MillionVerifierVerifyEmailParams;
|
|
6291
|
+
result: MillionVerifierVerifyEmailResult;
|
|
6292
|
+
};
|
|
6293
|
+
checkCredits: {
|
|
6294
|
+
params: MillionVerifierCheckCreditsParams;
|
|
6295
|
+
result: MillionVerifierCheckCreditsResult;
|
|
6296
|
+
};
|
|
6297
|
+
};
|
|
6391
6298
|
type LeadToolMap = {
|
|
6392
6299
|
listLists: {
|
|
6393
6300
|
params: Record<string, never>;
|
|
@@ -7015,7 +6922,7 @@ type ToolingErrorType = 'service_unavailable' | 'permission_denied' | 'adapter_n
|
|
|
7015
6922
|
* Note: Concrete adapter implementations are deferred until needed.
|
|
7016
6923
|
* This type provides compile-time safety and auto-completion for tool definitions.
|
|
7017
6924
|
*/
|
|
7018
|
-
type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | '
|
|
6925
|
+
type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'anymailfinder' | 'tomba' | 'millionverifier';
|
|
7019
6926
|
|
|
7020
6927
|
/**
|
|
7021
6928
|
* Resource Registry type definitions
|
|
@@ -7095,7 +7002,7 @@ interface ResourceList {
|
|
|
7095
7002
|
environment?: 'dev' | 'prod';
|
|
7096
7003
|
}
|
|
7097
7004
|
/** Webhook provider identifiers */
|
|
7098
|
-
type WebhookProviderType = 'cal-com' | '
|
|
7005
|
+
type WebhookProviderType = 'cal-com' | 'stripe' | 'signature-api' | 'instantly' | 'apify';
|
|
7099
7006
|
/** Webhook trigger configuration */
|
|
7100
7007
|
interface WebhookTriggerConfig {
|
|
7101
7008
|
/** Provider identifier */
|
|
@@ -7448,4 +7355,4 @@ declare class ToolingError extends ExecutionError {
|
|
|
7448
7355
|
}
|
|
7449
7356
|
|
|
7450
7357
|
export { ExecutionError, RegistryValidationError, ResourceRegistry, StepType, ToolingError };
|
|
7451
|
-
export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqList, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig,
|
|
7358
|
+
export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqList, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, CompanyFilters, ConditionalNext, ContactFilters, Contract, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DomainDefinition, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetDailyCampaignAnalyticsParams, GetDailyCampaignAnalyticsResult, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, OrganizationResources, PaginatedResult, PaginationParams, PdfToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResourceDefinition, ResourceDomain, ResourceMetricsConfig, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, SyncDealStageParams, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowDefinition, WorkflowStep, WriteSheetParams, WriteSheetResult };
|
|
@@ -12,10 +12,9 @@ export { createDropboxAdapter } from './dropbox.js';
|
|
|
12
12
|
export { createGmailAdapter } from './gmail.js';
|
|
13
13
|
export { createGoogleSheetsAdapter } from './google-sheets.js';
|
|
14
14
|
export { createInstantlyAdapter } from './instantly.js';
|
|
15
|
-
export {
|
|
15
|
+
export { createMillionVerifierAdapter } from './millionverifier.js';
|
|
16
16
|
export { createAnymailfinderAdapter } from './anymailfinder.js';
|
|
17
17
|
export { createTombaAdapter } from './tomba.js';
|
|
18
|
-
export { createNotionAdapter } from './notion.js';
|
|
19
18
|
export { createResendAdapter } from './resend.js';
|
|
20
19
|
export { createSignatureApiAdapter } from './signature-api.js';
|
|
21
20
|
export { createStripeAdapter } from './stripe.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MillionVerifier Integration Adapter
|
|
3
|
+
*
|
|
4
|
+
* Typed wrapper over platform.call() for MillionVerifier email verification operations.
|
|
5
|
+
* Uses factory pattern -- credential is bound once at construction time.
|
|
6
|
+
*/
|
|
7
|
+
import type { MillionVerifierToolMap } from '../../types/index.js';
|
|
8
|
+
/**
|
|
9
|
+
* Create a typed MillionVerifier adapter bound to a specific credential.
|
|
10
|
+
*
|
|
11
|
+
* @param credential - Credential name as configured in the command center
|
|
12
|
+
* @returns Object with 2 typed methods for MillionVerifier email verification operations
|
|
13
|
+
*/
|
|
14
|
+
export declare function createMillionVerifierAdapter(credential: string): import("./create-adapter.js").TypedAdapter<MillionVerifierToolMap>;
|
package/dist/worker/index.js
CHANGED
|
@@ -4859,12 +4859,10 @@ function createInstantlyAdapter(credential) {
|
|
|
4859
4859
|
return createAdapter("instantly", METHODS6, credential);
|
|
4860
4860
|
}
|
|
4861
4861
|
|
|
4862
|
-
// src/worker/adapters/
|
|
4863
|
-
var METHODS7 = [
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
function createMailsoAdapter(credential) {
|
|
4867
|
-
return createAdapter("mailso", METHODS7, credential);
|
|
4862
|
+
// src/worker/adapters/millionverifier.ts
|
|
4863
|
+
var METHODS7 = ["verifyEmail", "checkCredits"];
|
|
4864
|
+
function createMillionVerifierAdapter(credential) {
|
|
4865
|
+
return createAdapter("millionverifier", METHODS7, credential);
|
|
4868
4866
|
}
|
|
4869
4867
|
|
|
4870
4868
|
// src/worker/adapters/anymailfinder.ts
|
|
@@ -4884,43 +4882,28 @@ function createTombaAdapter(credential) {
|
|
|
4884
4882
|
return createAdapter("tomba", METHODS9, credential);
|
|
4885
4883
|
}
|
|
4886
4884
|
|
|
4887
|
-
// src/worker/adapters/notion.ts
|
|
4888
|
-
var METHODS10 = [
|
|
4889
|
-
"listAllPages",
|
|
4890
|
-
"readPage",
|
|
4891
|
-
"createPage",
|
|
4892
|
-
"updatePageTitle",
|
|
4893
|
-
"appendBlocks",
|
|
4894
|
-
"updateBlocks",
|
|
4895
|
-
"deletePage",
|
|
4896
|
-
"deleteBlocks"
|
|
4897
|
-
];
|
|
4898
|
-
function createNotionAdapter(credential) {
|
|
4899
|
-
return createAdapter("notion", METHODS10, credential);
|
|
4900
|
-
}
|
|
4901
|
-
|
|
4902
4885
|
// src/worker/adapters/resend.ts
|
|
4903
|
-
var
|
|
4886
|
+
var METHODS10 = [
|
|
4904
4887
|
"sendEmail",
|
|
4905
4888
|
"getEmail"
|
|
4906
4889
|
];
|
|
4907
4890
|
function createResendAdapter(credential) {
|
|
4908
|
-
return createAdapter("resend",
|
|
4891
|
+
return createAdapter("resend", METHODS10, credential);
|
|
4909
4892
|
}
|
|
4910
4893
|
|
|
4911
4894
|
// src/worker/adapters/signature-api.ts
|
|
4912
|
-
var
|
|
4895
|
+
var METHODS11 = [
|
|
4913
4896
|
"createEnvelope",
|
|
4914
4897
|
"voidEnvelope",
|
|
4915
4898
|
"downloadDocument",
|
|
4916
4899
|
"getEnvelope"
|
|
4917
4900
|
];
|
|
4918
4901
|
function createSignatureApiAdapter(credential) {
|
|
4919
|
-
return createAdapter("signature-api",
|
|
4902
|
+
return createAdapter("signature-api", METHODS11, credential);
|
|
4920
4903
|
}
|
|
4921
4904
|
|
|
4922
4905
|
// src/worker/adapters/stripe.ts
|
|
4923
|
-
var
|
|
4906
|
+
var METHODS12 = [
|
|
4924
4907
|
"createPaymentLink",
|
|
4925
4908
|
"getPaymentLink",
|
|
4926
4909
|
"updatePaymentLink",
|
|
@@ -4929,7 +4912,7 @@ var METHODS13 = [
|
|
|
4929
4912
|
"createCheckoutSession"
|
|
4930
4913
|
];
|
|
4931
4914
|
function createStripeAdapter(credential) {
|
|
4932
|
-
return createAdapter("stripe",
|
|
4915
|
+
return createAdapter("stripe", METHODS12, credential);
|
|
4933
4916
|
}
|
|
4934
4917
|
|
|
4935
4918
|
// src/worker/adapters/scheduler.ts
|
|
@@ -5060,6 +5043,24 @@ function captureConsole(executionId, logs) {
|
|
|
5060
5043
|
postLog
|
|
5061
5044
|
};
|
|
5062
5045
|
}
|
|
5046
|
+
var LOG_STRING_TRUNCATE_LIMIT = 200;
|
|
5047
|
+
function truncateForLogging(value) {
|
|
5048
|
+
if (value === null || value === void 0) return value;
|
|
5049
|
+
if (typeof value === "string") {
|
|
5050
|
+
return value.length > LOG_STRING_TRUNCATE_LIMIT ? value.slice(0, LOG_STRING_TRUNCATE_LIMIT) + `\u2026 [${value.length} chars]` : value;
|
|
5051
|
+
}
|
|
5052
|
+
if (Array.isArray(value)) {
|
|
5053
|
+
return value.map(truncateForLogging);
|
|
5054
|
+
}
|
|
5055
|
+
if (typeof value === "object") {
|
|
5056
|
+
const result = {};
|
|
5057
|
+
for (const [k, v] of Object.entries(value)) {
|
|
5058
|
+
result[k] = truncateForLogging(v);
|
|
5059
|
+
}
|
|
5060
|
+
return result;
|
|
5061
|
+
}
|
|
5062
|
+
return value;
|
|
5063
|
+
}
|
|
5063
5064
|
function resolveNext(next, data) {
|
|
5064
5065
|
if (next === null) return null;
|
|
5065
5066
|
if (next.type === "linear") return next.target;
|
|
@@ -5102,7 +5103,7 @@ async function executeWorkflow(workflow, input, context) {
|
|
|
5102
5103
|
contextType: "step-started",
|
|
5103
5104
|
stepId: step.id,
|
|
5104
5105
|
stepStatus: "started",
|
|
5105
|
-
input: stepInput,
|
|
5106
|
+
input: truncateForLogging(stepInput),
|
|
5106
5107
|
startTime: stepStartTime
|
|
5107
5108
|
});
|
|
5108
5109
|
try {
|
|
@@ -5131,7 +5132,7 @@ async function executeWorkflow(workflow, input, context) {
|
|
|
5131
5132
|
contextType: "step-completed",
|
|
5132
5133
|
stepId: step.id,
|
|
5133
5134
|
stepStatus: "completed",
|
|
5134
|
-
output: currentData,
|
|
5135
|
+
output: truncateForLogging(currentData),
|
|
5135
5136
|
duration: stepEndTime - stepStartTime,
|
|
5136
5137
|
isTerminal: nextStepId === null,
|
|
5137
5138
|
startTime: stepStartTime,
|
|
@@ -5372,4 +5373,4 @@ function startWorker(org) {
|
|
|
5372
5373
|
});
|
|
5373
5374
|
}
|
|
5374
5375
|
|
|
5375
|
-
export { PlatformToolError, acqDb, approval, createAdapter, createAnymailfinderAdapter, createApifyAdapter, createAttioAdapter, createDropboxAdapter, createGmailAdapter, createGoogleSheetsAdapter, createInstantlyAdapter,
|
|
5376
|
+
export { PlatformToolError, acqDb, approval, createAdapter, createAnymailfinderAdapter, createApifyAdapter, createAttioAdapter, createDropboxAdapter, createGmailAdapter, createGoogleSheetsAdapter, createInstantlyAdapter, createMillionVerifierAdapter, createResendAdapter, createSignatureApiAdapter, createStripeAdapter, createTombaAdapter, email, execution, llm, notifications, pdf, platform, scheduler, startWorker, storage };
|
package/package.json
CHANGED
package/reference/_navigation.md
CHANGED
|
@@ -39,7 +39,7 @@ All paths are relative to `node_modules/@elevasis/sdk/reference/`.
|
|
|
39
39
|
|
|
40
40
|
| Resource | Location | Description | When to Load |
|
|
41
41
|
| --- | --- | --- | --- |
|
|
42
|
-
| Integration Adapters | `platform-tools/adapters-integration.mdx` | Type-safe wrappers for third-party integrations -- Attio, Stripe,
|
|
42
|
+
| Integration Adapters | `platform-tools/adapters-integration.mdx` | Type-safe wrappers for third-party integrations -- Attio, Stripe, Google Sheets, Instantly, SignatureAPI, Resend, Dropbox, Apify, Gmail, and Tomba -- with full autocomplete and compile-time checking | Using typed adapters for integration tools, or needs to know what integration adapter methods are available |
|
|
43
43
|
| Platform Adapters | `platform-tools/adapters-platform.mdx` | Type-safe singleton adapters for built-in platform services -- scheduler, storage, LLM, PDF, approval, notifications, acqDb, execution, and email -- no credentials required | Using platform service adapters (scheduler, storage, llm, pdf, approval, acqDb, notifications, execution, email) |
|
|
44
44
|
| Platform Tools | `platform-tools/index.mdx` | Access 70+ tools across integration adapters and platform services from your SDK workflows -- typed adapters, credential security model, and working code examples | Connecting to external services |
|
|
45
45
|
| Adapter Type Safety | `platform-tools/type-safety.mdx` | SDK worker adapter type safety patterns - required fields, discriminated unions, and intentionally loose types | (not specified) |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Integration Adapters
|
|
3
|
-
description: Type-safe wrappers for third-party integrations -- Attio, Stripe,
|
|
3
|
+
description: Type-safe wrappers for third-party integrations -- Attio, Stripe, Google Sheets, Instantly, SignatureAPI, Resend, Dropbox, Apify, Gmail, and Tomba -- with full autocomplete and compile-time checking
|
|
4
4
|
loadWhen: "Using typed adapters for integration tools, or needs to know what integration adapter methods are available"
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,10 +10,10 @@ All integration adapters are imported from `@elevasis/sdk/worker`. For platform
|
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
import {
|
|
13
|
-
createAttioAdapter, createStripeAdapter,
|
|
13
|
+
createAttioAdapter, createStripeAdapter,
|
|
14
14
|
createGoogleSheetsAdapter, createInstantlyAdapter,
|
|
15
15
|
createSignatureApiAdapter, createResendAdapter, createDropboxAdapter,
|
|
16
|
-
createApifyAdapter, createGmailAdapter,
|
|
16
|
+
createApifyAdapter, createGmailAdapter,
|
|
17
17
|
createTombaAdapter,
|
|
18
18
|
} from '@elevasis/sdk/worker'
|
|
19
19
|
```
|
|
@@ -26,7 +26,6 @@ import {
|
|
|
26
26
|
| --------------------------------- | ------- | ------------------- |
|
|
27
27
|
| `createAttioAdapter(cred)` | 12 | CRM |
|
|
28
28
|
| `createGoogleSheetsAdapter(cred)` | 13 | Spreadsheets |
|
|
29
|
-
| `createNotionAdapter(cred)` | 8 | Knowledge Base |
|
|
30
29
|
| `createStripeAdapter(cred)` | 6 | Payments |
|
|
31
30
|
| `createInstantlyAdapter(cred)` | 5 | Email Campaigns |
|
|
32
31
|
| `createSignatureApiAdapter(cred)` | 4 | eSignature |
|
|
@@ -35,7 +34,6 @@ import {
|
|
|
35
34
|
| `createDropboxAdapter(cred)` | 2 | File Storage |
|
|
36
35
|
| `createApifyAdapter(cred)` | 1 | Web Scraping |
|
|
37
36
|
| `createGmailAdapter(cred)` | 1 | Email (Gmail) |
|
|
38
|
-
| `createMailsoAdapter(cred)` | 1 | Email Verification |
|
|
39
37
|
|
|
40
38
|
Multiple adapters with different credentials work simultaneously:
|
|
41
39
|
|
|
@@ -135,29 +133,6 @@ const sheets = createGoogleSheetsAdapter('my-google-credential')
|
|
|
135
133
|
|
|
136
134
|
---
|
|
137
135
|
|
|
138
|
-
## Notion Adapter
|
|
139
|
-
|
|
140
|
-
Factory pattern -- 8 methods for page and block operations.
|
|
141
|
-
|
|
142
|
-
```typescript
|
|
143
|
-
const notion = createNotionAdapter('my-notion-credential')
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### Methods
|
|
147
|
-
|
|
148
|
-
| Method | Params | Returns |
|
|
149
|
-
| ----------------- | ----------------------- | ----------------------- |
|
|
150
|
-
| `listAllPages` | none | `ListAllPagesResult` |
|
|
151
|
-
| `readPage` | `ReadPageParams` | `ReadPageResult` |
|
|
152
|
-
| `createPage` | `CreatePageParams` | `CreatePageResult` |
|
|
153
|
-
| `updatePageTitle` | `UpdatePageTitleParams` | `UpdatePageTitleResult` |
|
|
154
|
-
| `appendBlocks` | `AppendBlocksParams` | `AppendBlocksResult` |
|
|
155
|
-
| `updateBlocks` | `UpdateBlocksParams` | `UpdateBlocksResult` |
|
|
156
|
-
| `deletePage` | `DeletePageParams` | `DeletePageResult` |
|
|
157
|
-
| `deleteBlocks` | `DeleteBlocksParams` | `DeleteBlocksResult` |
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
136
|
## Stripe Adapter
|
|
162
137
|
|
|
163
138
|
Factory pattern -- 6 methods for payment links and checkout sessions.
|
|
@@ -321,22 +296,6 @@ const gmail = createGmailAdapter('my-gmail-credential')
|
|
|
321
296
|
|
|
322
297
|
---
|
|
323
298
|
|
|
324
|
-
## Mailso Adapter
|
|
325
|
-
|
|
326
|
-
Factory pattern -- 1 method for email verification.
|
|
327
|
-
|
|
328
|
-
```typescript
|
|
329
|
-
const mailso = createMailsoAdapter('my-mailso-credential')
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
### Methods
|
|
333
|
-
|
|
334
|
-
| Method | Params | Returns |
|
|
335
|
-
| ------------- | ------------------------- | ------------------------- |
|
|
336
|
-
| `verifyEmail` | `MailsoVerifyEmailParams` | `MailsoVerifyEmailResult` |
|
|
337
|
-
|
|
338
|
-
---
|
|
339
|
-
|
|
340
299
|
For platform service adapters (scheduler, storage, llm, pdf, approval, acqDb, notifications, execution, email), see [Platform Adapters](adapters-platform.mdx).
|
|
341
300
|
|
|
342
301
|
**Last Updated:** 2026-03-05
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mailso Integration Adapter
|
|
3
|
-
*
|
|
4
|
-
* Typed wrapper over platform.call() for Mails.so email verification operations.
|
|
5
|
-
* Uses factory pattern -- credential is bound once at construction time.
|
|
6
|
-
*/
|
|
7
|
-
import type { MailsoToolMap } from '../../types/index.js';
|
|
8
|
-
/**
|
|
9
|
-
* Create a typed Mailso adapter bound to a specific credential.
|
|
10
|
-
*
|
|
11
|
-
* @param credential - Credential name as configured in the command center
|
|
12
|
-
* @returns Object with 1 typed method for Mails.so email verification
|
|
13
|
-
*/
|
|
14
|
-
export declare function createMailsoAdapter(credential: string): import("./create-adapter.js").TypedAdapter<MailsoToolMap>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Notion Integration Adapter
|
|
3
|
-
*
|
|
4
|
-
* Typed wrapper over platform.call() for Notion page operations.
|
|
5
|
-
* Uses factory pattern -- credential is bound once at construction time.
|
|
6
|
-
*/
|
|
7
|
-
import type { NotionToolMap } from '../../types/index.js';
|
|
8
|
-
/**
|
|
9
|
-
* Create a typed Notion adapter bound to a specific credential.
|
|
10
|
-
*
|
|
11
|
-
* @param credential - Credential name as configured in the command center
|
|
12
|
-
* @returns Object with 8 typed methods for Notion page operations
|
|
13
|
-
*/
|
|
14
|
-
export declare function createNotionAdapter(credential: string): import("./create-adapter.js").TypedAdapter<NotionToolMap>;
|