@elevasis/sdk 0.8.15 → 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 +2 -208
- package/dist/types/worker/adapters/index.d.ts +0 -2
- package/dist/worker/index.js +13 -36
- 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
|
@@ -5406,41 +5406,6 @@ interface DeleteCampaignResult {
|
|
|
5406
5406
|
campaign_id: string;
|
|
5407
5407
|
}
|
|
5408
5408
|
|
|
5409
|
-
/**
|
|
5410
|
-
* Shared Mailso param/result types (browser-safe)
|
|
5411
|
-
*
|
|
5412
|
-
* These types define the public interface for Mails.so operations -- used by both
|
|
5413
|
-
* the server-side adapter and the SDK typed wrappers. They contain zero Node.js
|
|
5414
|
-
* dependencies and are safe to import in any environment.
|
|
5415
|
-
*
|
|
5416
|
-
* Server-internal types (API response shapes, credentials) remain in
|
|
5417
|
-
* server/adapters/mailso/fetch/utils/types.ts
|
|
5418
|
-
*/
|
|
5419
|
-
/**
|
|
5420
|
-
* Verify email parameters
|
|
5421
|
-
*/
|
|
5422
|
-
interface MailsoVerifyEmailParams {
|
|
5423
|
-
email: string;
|
|
5424
|
-
}
|
|
5425
|
-
/**
|
|
5426
|
-
* Verify email result (normalized, camelCase)
|
|
5427
|
-
*/
|
|
5428
|
-
interface MailsoVerifyEmailResult {
|
|
5429
|
-
email: string;
|
|
5430
|
-
result: 'deliverable' | 'undeliverable' | 'risky' | 'unknown';
|
|
5431
|
-
score: number;
|
|
5432
|
-
reason: string;
|
|
5433
|
-
isValidFormat: boolean;
|
|
5434
|
-
isValidDomain: boolean;
|
|
5435
|
-
isValidMx: boolean;
|
|
5436
|
-
isNotBlocklisted: boolean;
|
|
5437
|
-
isNotCatchAll: boolean;
|
|
5438
|
-
isNotGeneric: boolean;
|
|
5439
|
-
isFree: boolean;
|
|
5440
|
-
domain: string | null;
|
|
5441
|
-
mxRecord: string | null;
|
|
5442
|
-
}
|
|
5443
|
-
|
|
5444
5409
|
/**
|
|
5445
5410
|
* Shared MillionVerifier param/result types (browser-safe)
|
|
5446
5411
|
*
|
|
@@ -5605,137 +5570,6 @@ interface EmailVerifierResult {
|
|
|
5605
5570
|
[key: string]: unknown;
|
|
5606
5571
|
}
|
|
5607
5572
|
|
|
5608
|
-
/**
|
|
5609
|
-
* Shared Notion param/result types (browser-safe)
|
|
5610
|
-
*
|
|
5611
|
-
* These types define the public interface for Notion operations -- used by both
|
|
5612
|
-
* the server-side adapter and the SDK typed wrappers. They contain zero Node.js
|
|
5613
|
-
* dependencies and are safe to import in any environment.
|
|
5614
|
-
*
|
|
5615
|
-
* Server-internal types (API response shapes, credentials) remain in
|
|
5616
|
-
* server/adapters/notion/notion-page-adapter.ts
|
|
5617
|
-
*/
|
|
5618
|
-
/**
|
|
5619
|
-
* Page with recursive children (for listAllPages)
|
|
5620
|
-
*/
|
|
5621
|
-
interface PageWithChildren {
|
|
5622
|
-
id: string;
|
|
5623
|
-
title: string;
|
|
5624
|
-
children?: PageWithChildren[];
|
|
5625
|
-
}
|
|
5626
|
-
/**
|
|
5627
|
-
* List all pages result
|
|
5628
|
-
*/
|
|
5629
|
-
interface ListAllPagesResult {
|
|
5630
|
-
pages: PageWithChildren[];
|
|
5631
|
-
}
|
|
5632
|
-
/**
|
|
5633
|
-
* Read page parameters
|
|
5634
|
-
*/
|
|
5635
|
-
interface ReadPageParams {
|
|
5636
|
-
pageId: string;
|
|
5637
|
-
}
|
|
5638
|
-
/**
|
|
5639
|
-
* Read page result
|
|
5640
|
-
*/
|
|
5641
|
-
interface ReadPageResult {
|
|
5642
|
-
id: string;
|
|
5643
|
-
title: string;
|
|
5644
|
-
content: string;
|
|
5645
|
-
}
|
|
5646
|
-
/**
|
|
5647
|
-
* Create page parameters
|
|
5648
|
-
*/
|
|
5649
|
-
interface CreatePageParams {
|
|
5650
|
-
title: string;
|
|
5651
|
-
content: string;
|
|
5652
|
-
parentId: string;
|
|
5653
|
-
}
|
|
5654
|
-
/**
|
|
5655
|
-
* Create page result
|
|
5656
|
-
*/
|
|
5657
|
-
interface CreatePageResult {
|
|
5658
|
-
id: string;
|
|
5659
|
-
url: string;
|
|
5660
|
-
}
|
|
5661
|
-
/**
|
|
5662
|
-
* Update page title parameters
|
|
5663
|
-
*/
|
|
5664
|
-
interface UpdatePageTitleParams {
|
|
5665
|
-
pageId: string;
|
|
5666
|
-
title: string;
|
|
5667
|
-
}
|
|
5668
|
-
/**
|
|
5669
|
-
* Update page title result
|
|
5670
|
-
*/
|
|
5671
|
-
interface UpdatePageTitleResult {
|
|
5672
|
-
id: string;
|
|
5673
|
-
url: string;
|
|
5674
|
-
}
|
|
5675
|
-
/**
|
|
5676
|
-
* Append blocks parameters
|
|
5677
|
-
*/
|
|
5678
|
-
interface AppendBlocksParams {
|
|
5679
|
-
pageId: string;
|
|
5680
|
-
content: string;
|
|
5681
|
-
}
|
|
5682
|
-
/**
|
|
5683
|
-
* Append blocks result
|
|
5684
|
-
*/
|
|
5685
|
-
interface AppendBlocksResult {
|
|
5686
|
-
pageId: string;
|
|
5687
|
-
blocksAdded: number;
|
|
5688
|
-
url: string;
|
|
5689
|
-
}
|
|
5690
|
-
/**
|
|
5691
|
-
* Update blocks parameters (batch)
|
|
5692
|
-
*/
|
|
5693
|
-
interface UpdateBlocksParams {
|
|
5694
|
-
pageId: string;
|
|
5695
|
-
blocks: Record<string, string>;
|
|
5696
|
-
}
|
|
5697
|
-
/**
|
|
5698
|
-
* Update blocks result
|
|
5699
|
-
*/
|
|
5700
|
-
interface UpdateBlocksResult {
|
|
5701
|
-
updatedCount: number;
|
|
5702
|
-
failedCount: number;
|
|
5703
|
-
errors?: Array<{
|
|
5704
|
-
blockId: string;
|
|
5705
|
-
error: string;
|
|
5706
|
-
}>;
|
|
5707
|
-
}
|
|
5708
|
-
/**
|
|
5709
|
-
* Delete page parameters
|
|
5710
|
-
*/
|
|
5711
|
-
interface DeletePageParams {
|
|
5712
|
-
pageId: string;
|
|
5713
|
-
}
|
|
5714
|
-
/**
|
|
5715
|
-
* Delete page result
|
|
5716
|
-
*/
|
|
5717
|
-
interface DeletePageResult {
|
|
5718
|
-
id: string;
|
|
5719
|
-
archived: boolean;
|
|
5720
|
-
}
|
|
5721
|
-
/**
|
|
5722
|
-
* Delete blocks parameters
|
|
5723
|
-
*/
|
|
5724
|
-
interface DeleteBlocksParams {
|
|
5725
|
-
blockIds: string[];
|
|
5726
|
-
}
|
|
5727
|
-
/**
|
|
5728
|
-
* Delete blocks result
|
|
5729
|
-
*/
|
|
5730
|
-
interface DeleteBlocksResult {
|
|
5731
|
-
deletedCount: number;
|
|
5732
|
-
failedCount: number;
|
|
5733
|
-
errors?: Array<{
|
|
5734
|
-
blockId: string;
|
|
5735
|
-
error: string;
|
|
5736
|
-
}>;
|
|
5737
|
-
}
|
|
5738
|
-
|
|
5739
5573
|
/**
|
|
5740
5574
|
* Shared Resend param/result types (browser-safe)
|
|
5741
5575
|
*
|
|
@@ -6225,40 +6059,6 @@ type StripeToolMap = {
|
|
|
6225
6059
|
result: CreateCheckoutSessionResult;
|
|
6226
6060
|
};
|
|
6227
6061
|
};
|
|
6228
|
-
type NotionToolMap = {
|
|
6229
|
-
listAllPages: {
|
|
6230
|
-
params: Record<string, never>;
|
|
6231
|
-
result: ListAllPagesResult;
|
|
6232
|
-
};
|
|
6233
|
-
readPage: {
|
|
6234
|
-
params: ReadPageParams;
|
|
6235
|
-
result: ReadPageResult;
|
|
6236
|
-
};
|
|
6237
|
-
createPage: {
|
|
6238
|
-
params: CreatePageParams;
|
|
6239
|
-
result: CreatePageResult;
|
|
6240
|
-
};
|
|
6241
|
-
updatePageTitle: {
|
|
6242
|
-
params: UpdatePageTitleParams;
|
|
6243
|
-
result: UpdatePageTitleResult;
|
|
6244
|
-
};
|
|
6245
|
-
appendBlocks: {
|
|
6246
|
-
params: AppendBlocksParams;
|
|
6247
|
-
result: AppendBlocksResult;
|
|
6248
|
-
};
|
|
6249
|
-
updateBlocks: {
|
|
6250
|
-
params: UpdateBlocksParams;
|
|
6251
|
-
result: UpdateBlocksResult;
|
|
6252
|
-
};
|
|
6253
|
-
deletePage: {
|
|
6254
|
-
params: DeletePageParams;
|
|
6255
|
-
result: DeletePageResult;
|
|
6256
|
-
};
|
|
6257
|
-
deleteBlocks: {
|
|
6258
|
-
params: DeleteBlocksParams;
|
|
6259
|
-
result: DeleteBlocksResult;
|
|
6260
|
-
};
|
|
6261
|
-
};
|
|
6262
6062
|
type GoogleSheetsToolMap = {
|
|
6263
6063
|
readSheet: {
|
|
6264
6064
|
params: ReadSheetParams;
|
|
@@ -6453,12 +6253,6 @@ type InstantlyToolMap = {
|
|
|
6453
6253
|
result: DeleteCampaignResult;
|
|
6454
6254
|
};
|
|
6455
6255
|
};
|
|
6456
|
-
type MailsoToolMap = {
|
|
6457
|
-
verifyEmail: {
|
|
6458
|
-
params: MailsoVerifyEmailParams;
|
|
6459
|
-
result: MailsoVerifyEmailResult;
|
|
6460
|
-
};
|
|
6461
|
-
};
|
|
6462
6256
|
type AnymailfinderToolMap = {
|
|
6463
6257
|
findCompanyEmail: {
|
|
6464
6258
|
params: FindCompanyEmailParams;
|
|
@@ -7128,7 +6922,7 @@ type ToolingErrorType = 'service_unavailable' | 'permission_denied' | 'adapter_n
|
|
|
7128
6922
|
* Note: Concrete adapter implementations are deferred until needed.
|
|
7129
6923
|
* This type provides compile-time safety and auto-completion for tool definitions.
|
|
7130
6924
|
*/
|
|
7131
|
-
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';
|
|
7132
6926
|
|
|
7133
6927
|
/**
|
|
7134
6928
|
* Resource Registry type definitions
|
|
@@ -7561,4 +7355,4 @@ declare class ToolingError extends ExecutionError {
|
|
|
7561
7355
|
}
|
|
7562
7356
|
|
|
7563
7357
|
export { ExecutionError, RegistryValidationError, ResourceRegistry, StepType, ToolingError };
|
|
7564
|
-
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,11 +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 { createMailsoAdapter } from './mailso.js';
|
|
16
15
|
export { createMillionVerifierAdapter } from './millionverifier.js';
|
|
17
16
|
export { createAnymailfinderAdapter } from './anymailfinder.js';
|
|
18
17
|
export { createTombaAdapter } from './tomba.js';
|
|
19
|
-
export { createNotionAdapter } from './notion.js';
|
|
20
18
|
export { createResendAdapter } from './resend.js';
|
|
21
19
|
export { createSignatureApiAdapter } from './signature-api.js';
|
|
22
20
|
export { createStripeAdapter } from './stripe.js';
|
package/dist/worker/index.js
CHANGED
|
@@ -4859,74 +4859,51 @@ function createInstantlyAdapter(credential) {
|
|
|
4859
4859
|
return createAdapter("instantly", METHODS6, credential);
|
|
4860
4860
|
}
|
|
4861
4861
|
|
|
4862
|
-
// src/worker/adapters/mailso.ts
|
|
4863
|
-
var METHODS7 = [
|
|
4864
|
-
"verifyEmail"
|
|
4865
|
-
];
|
|
4866
|
-
function createMailsoAdapter(credential) {
|
|
4867
|
-
return createAdapter("mailso", METHODS7, credential);
|
|
4868
|
-
}
|
|
4869
|
-
|
|
4870
4862
|
// src/worker/adapters/millionverifier.ts
|
|
4871
|
-
var
|
|
4863
|
+
var METHODS7 = ["verifyEmail", "checkCredits"];
|
|
4872
4864
|
function createMillionVerifierAdapter(credential) {
|
|
4873
|
-
return createAdapter("millionverifier",
|
|
4865
|
+
return createAdapter("millionverifier", METHODS7, credential);
|
|
4874
4866
|
}
|
|
4875
4867
|
|
|
4876
4868
|
// src/worker/adapters/anymailfinder.ts
|
|
4877
|
-
var
|
|
4869
|
+
var METHODS8 = [
|
|
4878
4870
|
"findCompanyEmail",
|
|
4879
4871
|
"findPersonEmail",
|
|
4880
4872
|
"findDecisionMakerEmail",
|
|
4881
4873
|
"verifyEmail"
|
|
4882
4874
|
];
|
|
4883
4875
|
function createAnymailfinderAdapter(credential) {
|
|
4884
|
-
return createAdapter("anymailfinder",
|
|
4876
|
+
return createAdapter("anymailfinder", METHODS8, credential);
|
|
4885
4877
|
}
|
|
4886
4878
|
|
|
4887
4879
|
// src/worker/adapters/tomba.ts
|
|
4888
|
-
var
|
|
4880
|
+
var METHODS9 = ["emailFinder", "domainSearch", "emailVerifier"];
|
|
4889
4881
|
function createTombaAdapter(credential) {
|
|
4890
|
-
return createAdapter("tomba",
|
|
4891
|
-
}
|
|
4892
|
-
|
|
4893
|
-
// src/worker/adapters/notion.ts
|
|
4894
|
-
var METHODS11 = [
|
|
4895
|
-
"listAllPages",
|
|
4896
|
-
"readPage",
|
|
4897
|
-
"createPage",
|
|
4898
|
-
"updatePageTitle",
|
|
4899
|
-
"appendBlocks",
|
|
4900
|
-
"updateBlocks",
|
|
4901
|
-
"deletePage",
|
|
4902
|
-
"deleteBlocks"
|
|
4903
|
-
];
|
|
4904
|
-
function createNotionAdapter(credential) {
|
|
4905
|
-
return createAdapter("notion", METHODS11, credential);
|
|
4882
|
+
return createAdapter("tomba", METHODS9, credential);
|
|
4906
4883
|
}
|
|
4907
4884
|
|
|
4908
4885
|
// src/worker/adapters/resend.ts
|
|
4909
|
-
var
|
|
4886
|
+
var METHODS10 = [
|
|
4910
4887
|
"sendEmail",
|
|
4911
4888
|
"getEmail"
|
|
4912
4889
|
];
|
|
4913
4890
|
function createResendAdapter(credential) {
|
|
4914
|
-
return createAdapter("resend",
|
|
4891
|
+
return createAdapter("resend", METHODS10, credential);
|
|
4915
4892
|
}
|
|
4916
4893
|
|
|
4917
4894
|
// src/worker/adapters/signature-api.ts
|
|
4918
|
-
var
|
|
4895
|
+
var METHODS11 = [
|
|
4919
4896
|
"createEnvelope",
|
|
4920
4897
|
"voidEnvelope",
|
|
4921
4898
|
"downloadDocument",
|
|
4922
4899
|
"getEnvelope"
|
|
4923
4900
|
];
|
|
4924
4901
|
function createSignatureApiAdapter(credential) {
|
|
4925
|
-
return createAdapter("signature-api",
|
|
4902
|
+
return createAdapter("signature-api", METHODS11, credential);
|
|
4926
4903
|
}
|
|
4927
4904
|
|
|
4928
4905
|
// src/worker/adapters/stripe.ts
|
|
4929
|
-
var
|
|
4906
|
+
var METHODS12 = [
|
|
4930
4907
|
"createPaymentLink",
|
|
4931
4908
|
"getPaymentLink",
|
|
4932
4909
|
"updatePaymentLink",
|
|
@@ -4935,7 +4912,7 @@ var METHODS14 = [
|
|
|
4935
4912
|
"createCheckoutSession"
|
|
4936
4913
|
];
|
|
4937
4914
|
function createStripeAdapter(credential) {
|
|
4938
|
-
return createAdapter("stripe",
|
|
4915
|
+
return createAdapter("stripe", METHODS12, credential);
|
|
4939
4916
|
}
|
|
4940
4917
|
|
|
4941
4918
|
// src/worker/adapters/scheduler.ts
|
|
@@ -5396,4 +5373,4 @@ function startWorker(org) {
|
|
|
5396
5373
|
});
|
|
5397
5374
|
}
|
|
5398
5375
|
|
|
5399
|
-
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>;
|