@elevasis/sdk 0.8.13 → 0.8.15
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.8.
|
|
43886
|
+
version: "0.8.15",
|
|
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;
|
|
@@ -1860,9 +1863,10 @@ type Database = {
|
|
|
1860
1863
|
comments_count: number;
|
|
1861
1864
|
created_at: string;
|
|
1862
1865
|
discovered_at: string;
|
|
1863
|
-
draft_response: string | null;
|
|
1864
1866
|
engagement_count: number;
|
|
1867
|
+
final_response: string | null;
|
|
1865
1868
|
id: string;
|
|
1869
|
+
initial_draft: string | null;
|
|
1866
1870
|
matched_keywords: string[];
|
|
1867
1871
|
matched_query: string | null;
|
|
1868
1872
|
metadata: Json;
|
|
@@ -1874,6 +1878,7 @@ type Database = {
|
|
|
1874
1878
|
posted_at: string;
|
|
1875
1879
|
relevance_score: number;
|
|
1876
1880
|
responded_at: string | null;
|
|
1881
|
+
reviewed_at: string | null;
|
|
1877
1882
|
skip_reason: string | null;
|
|
1878
1883
|
source_category: string | null;
|
|
1879
1884
|
status: string;
|
|
@@ -1885,9 +1890,10 @@ type Database = {
|
|
|
1885
1890
|
comments_count?: number;
|
|
1886
1891
|
created_at?: string;
|
|
1887
1892
|
discovered_at?: string;
|
|
1888
|
-
draft_response?: string | null;
|
|
1889
1893
|
engagement_count?: number;
|
|
1894
|
+
final_response?: string | null;
|
|
1890
1895
|
id?: string;
|
|
1896
|
+
initial_draft?: string | null;
|
|
1891
1897
|
matched_keywords?: string[];
|
|
1892
1898
|
matched_query?: string | null;
|
|
1893
1899
|
metadata?: Json;
|
|
@@ -1899,6 +1905,7 @@ type Database = {
|
|
|
1899
1905
|
posted_at: string;
|
|
1900
1906
|
relevance_score?: number;
|
|
1901
1907
|
responded_at?: string | null;
|
|
1908
|
+
reviewed_at?: string | null;
|
|
1902
1909
|
skip_reason?: string | null;
|
|
1903
1910
|
source_category?: string | null;
|
|
1904
1911
|
status?: string;
|
|
@@ -1910,9 +1917,10 @@ type Database = {
|
|
|
1910
1917
|
comments_count?: number;
|
|
1911
1918
|
created_at?: string;
|
|
1912
1919
|
discovered_at?: string;
|
|
1913
|
-
draft_response?: string | null;
|
|
1914
1920
|
engagement_count?: number;
|
|
1921
|
+
final_response?: string | null;
|
|
1915
1922
|
id?: string;
|
|
1923
|
+
initial_draft?: string | null;
|
|
1916
1924
|
matched_keywords?: string[];
|
|
1917
1925
|
matched_query?: string | null;
|
|
1918
1926
|
metadata?: Json;
|
|
@@ -1924,6 +1932,7 @@ type Database = {
|
|
|
1924
1932
|
posted_at?: string;
|
|
1925
1933
|
relevance_score?: number;
|
|
1926
1934
|
responded_at?: string | null;
|
|
1935
|
+
reviewed_at?: string | null;
|
|
1927
1936
|
skip_reason?: string | null;
|
|
1928
1937
|
source_category?: string | null;
|
|
1929
1938
|
status?: string;
|
|
@@ -3160,6 +3169,56 @@ type Database = {
|
|
|
3160
3169
|
}
|
|
3161
3170
|
];
|
|
3162
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
|
+
};
|
|
3163
3222
|
};
|
|
3164
3223
|
Views: {
|
|
3165
3224
|
[_ in never]: never;
|
|
@@ -3834,6 +3893,7 @@ interface AcqCompany {
|
|
|
3834
3893
|
source: string | null;
|
|
3835
3894
|
batchId: string | null;
|
|
3836
3895
|
status: 'active' | 'invalid';
|
|
3896
|
+
verticalResearch: string | null;
|
|
3837
3897
|
createdAt: Date;
|
|
3838
3898
|
updatedAt: Date;
|
|
3839
3899
|
}
|
|
@@ -3907,6 +3967,7 @@ interface CreateCompanyParams {
|
|
|
3907
3967
|
category?: string;
|
|
3908
3968
|
source?: string;
|
|
3909
3969
|
batchId?: string;
|
|
3970
|
+
verticalResearch?: string;
|
|
3910
3971
|
}
|
|
3911
3972
|
interface UpdateCompanyParams {
|
|
3912
3973
|
name?: string;
|
|
@@ -3926,6 +3987,7 @@ interface UpdateCompanyParams {
|
|
|
3926
3987
|
attioCompanyId?: string | null;
|
|
3927
3988
|
batchId?: string;
|
|
3928
3989
|
status?: 'active' | 'invalid';
|
|
3990
|
+
verticalResearch?: string | null;
|
|
3929
3991
|
}
|
|
3930
3992
|
type UpsertCompanyParams = CreateCompanyParams;
|
|
3931
3993
|
interface CompanyFilters {
|
|
@@ -3934,6 +3996,8 @@ interface CompanyFilters {
|
|
|
3934
3996
|
segment?: string;
|
|
3935
3997
|
category?: string;
|
|
3936
3998
|
pipelineStatus?: Record<string, unknown>;
|
|
3999
|
+
/** Exclude companies whose pipeline_status contains this value (PostgREST NOT contains) */
|
|
4000
|
+
pipelineStatusNot?: Record<string, unknown>;
|
|
3937
4001
|
batchId?: string;
|
|
3938
4002
|
status?: 'active' | 'invalid';
|
|
3939
4003
|
includeAll?: boolean;
|
|
@@ -4070,7 +4134,8 @@ interface UpsertSocialPostParams {
|
|
|
4070
4134
|
relevanceScore?: number;
|
|
4071
4135
|
matchedKeywords?: string[];
|
|
4072
4136
|
matchedQuery?: string | null;
|
|
4073
|
-
|
|
4137
|
+
initialDraft?: string | null;
|
|
4138
|
+
finalResponse?: string | null;
|
|
4074
4139
|
sourceCategory?: string | null;
|
|
4075
4140
|
}
|
|
4076
4141
|
interface UpsertSocialPostsResult {
|
|
@@ -5376,6 +5441,51 @@ interface MailsoVerifyEmailResult {
|
|
|
5376
5441
|
mxRecord: string | null;
|
|
5377
5442
|
}
|
|
5378
5443
|
|
|
5444
|
+
/**
|
|
5445
|
+
* Shared MillionVerifier param/result types (browser-safe)
|
|
5446
|
+
*
|
|
5447
|
+
* These types define the public interface for MillionVerifier operations -- used by both
|
|
5448
|
+
* the server-side adapter and the SDK typed wrappers. They contain zero Node.js
|
|
5449
|
+
* dependencies and are safe to import in any environment.
|
|
5450
|
+
*/
|
|
5451
|
+
/**
|
|
5452
|
+
* Verify email parameters
|
|
5453
|
+
*/
|
|
5454
|
+
interface MillionVerifierVerifyEmailParams {
|
|
5455
|
+
email: string;
|
|
5456
|
+
}
|
|
5457
|
+
/**
|
|
5458
|
+
* Verify email result (normalized, camelCase)
|
|
5459
|
+
*/
|
|
5460
|
+
interface MillionVerifierVerifyEmailResult {
|
|
5461
|
+
email: string;
|
|
5462
|
+
quality: '' | 'good' | 'bad' | 'risky';
|
|
5463
|
+
result: 'ok' | 'catch_all' | 'unknown' | 'error' | 'disposable' | 'invalid';
|
|
5464
|
+
resultCode: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5465
|
+
subresult: string;
|
|
5466
|
+
free: boolean;
|
|
5467
|
+
role: boolean;
|
|
5468
|
+
didYouMean: string;
|
|
5469
|
+
credits: number;
|
|
5470
|
+
executionTime: number;
|
|
5471
|
+
error: string;
|
|
5472
|
+
liveMode: boolean;
|
|
5473
|
+
}
|
|
5474
|
+
/**
|
|
5475
|
+
* Check credits parameters (no inputs required)
|
|
5476
|
+
*/
|
|
5477
|
+
interface MillionVerifierCheckCreditsParams {
|
|
5478
|
+
}
|
|
5479
|
+
/**
|
|
5480
|
+
* Check credits result
|
|
5481
|
+
*/
|
|
5482
|
+
interface MillionVerifierCheckCreditsResult {
|
|
5483
|
+
credits: number;
|
|
5484
|
+
bulkCredits: number;
|
|
5485
|
+
renewingCredits: number;
|
|
5486
|
+
plan: number;
|
|
5487
|
+
}
|
|
5488
|
+
|
|
5379
5489
|
interface FindCompanyEmailParams {
|
|
5380
5490
|
domain: string;
|
|
5381
5491
|
company_name?: string;
|
|
@@ -6381,6 +6491,16 @@ type TombaToolMap = {
|
|
|
6381
6491
|
result: EmailVerifierResult;
|
|
6382
6492
|
};
|
|
6383
6493
|
};
|
|
6494
|
+
type MillionVerifierToolMap = {
|
|
6495
|
+
verifyEmail: {
|
|
6496
|
+
params: MillionVerifierVerifyEmailParams;
|
|
6497
|
+
result: MillionVerifierVerifyEmailResult;
|
|
6498
|
+
};
|
|
6499
|
+
checkCredits: {
|
|
6500
|
+
params: MillionVerifierCheckCreditsParams;
|
|
6501
|
+
result: MillionVerifierCheckCreditsResult;
|
|
6502
|
+
};
|
|
6503
|
+
};
|
|
6384
6504
|
type LeadToolMap = {
|
|
6385
6505
|
listLists: {
|
|
6386
6506
|
params: Record<string, never>;
|
|
@@ -7008,7 +7128,7 @@ type ToolingErrorType = 'service_unavailable' | 'permission_denied' | 'adapter_n
|
|
|
7008
7128
|
* Note: Concrete adapter implementations are deferred until needed.
|
|
7009
7129
|
* This type provides compile-time safety and auto-completion for tool definitions.
|
|
7010
7130
|
*/
|
|
7011
|
-
type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'notion' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'mailso' | 'anymailfinder' | 'tomba';
|
|
7131
|
+
type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'notion' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'mailso' | 'anymailfinder' | 'tomba' | 'millionverifier';
|
|
7012
7132
|
|
|
7013
7133
|
/**
|
|
7014
7134
|
* Resource Registry type definitions
|
|
@@ -7088,7 +7208,7 @@ interface ResourceList {
|
|
|
7088
7208
|
environment?: 'dev' | 'prod';
|
|
7089
7209
|
}
|
|
7090
7210
|
/** Webhook provider identifiers */
|
|
7091
|
-
type WebhookProviderType = 'cal-com' | '
|
|
7211
|
+
type WebhookProviderType = 'cal-com' | 'stripe' | 'signature-api' | 'instantly' | 'apify';
|
|
7092
7212
|
/** Webhook trigger configuration */
|
|
7093
7213
|
interface WebhookTriggerConfig {
|
|
7094
7214
|
/** Provider identifier */
|
|
@@ -7441,4 +7561,4 @@ declare class ToolingError extends ExecutionError {
|
|
|
7441
7561
|
}
|
|
7442
7562
|
|
|
7443
7563
|
export { ExecutionError, RegistryValidationError, ResourceRegistry, StepType, ToolingError };
|
|
7444
|
-
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, AppendBlocksParams, AppendBlocksResult, 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, CreatePageParams, CreatePageResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, DeleteBlocksParams, DeleteBlocksResult, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeletePageParams, DeletePageResult, 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, ListAllPagesResult, ListAttributesParams, ListAttributesResult, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, MailsoToolMap, MailsoVerifyEmailParams, MailsoVerifyEmailResult, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, NotionToolMap, OrganizationResources, PageWithChildren, PaginatedResult, PaginationParams, PdfToolMap, QueryRecordsParams, QueryRecordsResult, ReadPageParams, ReadPageResult, 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, UpdateBlocksParams, UpdateBlocksResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePageTitleParams, UpdatePageTitleResult, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowDefinition, WorkflowStep, WriteSheetParams, WriteSheetResult };
|
|
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, AppendBlocksParams, AppendBlocksResult, 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, CreatePageParams, CreatePageResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, DeleteBlocksParams, DeleteBlocksResult, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeletePageParams, DeletePageResult, 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, ListAllPagesResult, ListAttributesParams, ListAttributesResult, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, MailsoToolMap, MailsoVerifyEmailParams, MailsoVerifyEmailResult, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, NotionToolMap, OrganizationResources, PageWithChildren, PaginatedResult, PaginationParams, PdfToolMap, QueryRecordsParams, QueryRecordsResult, ReadPageParams, ReadPageResult, 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, UpdateBlocksParams, UpdateBlocksResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePageTitleParams, UpdatePageTitleResult, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowDefinition, WorkflowStep, WriteSheetParams, WriteSheetResult };
|
|
@@ -13,6 +13,7 @@ export { createGmailAdapter } from './gmail.js';
|
|
|
13
13
|
export { createGoogleSheetsAdapter } from './google-sheets.js';
|
|
14
14
|
export { createInstantlyAdapter } from './instantly.js';
|
|
15
15
|
export { createMailsoAdapter } from './mailso.js';
|
|
16
|
+
export { createMillionVerifierAdapter } from './millionverifier.js';
|
|
16
17
|
export { createAnymailfinderAdapter } from './anymailfinder.js';
|
|
17
18
|
export { createTombaAdapter } from './tomba.js';
|
|
18
19
|
export { createNotionAdapter } from './notion.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
|
@@ -4867,25 +4867,31 @@ function createMailsoAdapter(credential) {
|
|
|
4867
4867
|
return createAdapter("mailso", METHODS7, credential);
|
|
4868
4868
|
}
|
|
4869
4869
|
|
|
4870
|
+
// src/worker/adapters/millionverifier.ts
|
|
4871
|
+
var METHODS8 = ["verifyEmail", "checkCredits"];
|
|
4872
|
+
function createMillionVerifierAdapter(credential) {
|
|
4873
|
+
return createAdapter("millionverifier", METHODS8, credential);
|
|
4874
|
+
}
|
|
4875
|
+
|
|
4870
4876
|
// src/worker/adapters/anymailfinder.ts
|
|
4871
|
-
var
|
|
4877
|
+
var METHODS9 = [
|
|
4872
4878
|
"findCompanyEmail",
|
|
4873
4879
|
"findPersonEmail",
|
|
4874
4880
|
"findDecisionMakerEmail",
|
|
4875
4881
|
"verifyEmail"
|
|
4876
4882
|
];
|
|
4877
4883
|
function createAnymailfinderAdapter(credential) {
|
|
4878
|
-
return createAdapter("anymailfinder",
|
|
4884
|
+
return createAdapter("anymailfinder", METHODS9, credential);
|
|
4879
4885
|
}
|
|
4880
4886
|
|
|
4881
4887
|
// src/worker/adapters/tomba.ts
|
|
4882
|
-
var
|
|
4888
|
+
var METHODS10 = ["emailFinder", "domainSearch", "emailVerifier"];
|
|
4883
4889
|
function createTombaAdapter(credential) {
|
|
4884
|
-
return createAdapter("tomba",
|
|
4890
|
+
return createAdapter("tomba", METHODS10, credential);
|
|
4885
4891
|
}
|
|
4886
4892
|
|
|
4887
4893
|
// src/worker/adapters/notion.ts
|
|
4888
|
-
var
|
|
4894
|
+
var METHODS11 = [
|
|
4889
4895
|
"listAllPages",
|
|
4890
4896
|
"readPage",
|
|
4891
4897
|
"createPage",
|
|
@@ -4896,31 +4902,31 @@ var METHODS10 = [
|
|
|
4896
4902
|
"deleteBlocks"
|
|
4897
4903
|
];
|
|
4898
4904
|
function createNotionAdapter(credential) {
|
|
4899
|
-
return createAdapter("notion",
|
|
4905
|
+
return createAdapter("notion", METHODS11, credential);
|
|
4900
4906
|
}
|
|
4901
4907
|
|
|
4902
4908
|
// src/worker/adapters/resend.ts
|
|
4903
|
-
var
|
|
4909
|
+
var METHODS12 = [
|
|
4904
4910
|
"sendEmail",
|
|
4905
4911
|
"getEmail"
|
|
4906
4912
|
];
|
|
4907
4913
|
function createResendAdapter(credential) {
|
|
4908
|
-
return createAdapter("resend",
|
|
4914
|
+
return createAdapter("resend", METHODS12, credential);
|
|
4909
4915
|
}
|
|
4910
4916
|
|
|
4911
4917
|
// src/worker/adapters/signature-api.ts
|
|
4912
|
-
var
|
|
4918
|
+
var METHODS13 = [
|
|
4913
4919
|
"createEnvelope",
|
|
4914
4920
|
"voidEnvelope",
|
|
4915
4921
|
"downloadDocument",
|
|
4916
4922
|
"getEnvelope"
|
|
4917
4923
|
];
|
|
4918
4924
|
function createSignatureApiAdapter(credential) {
|
|
4919
|
-
return createAdapter("signature-api",
|
|
4925
|
+
return createAdapter("signature-api", METHODS13, credential);
|
|
4920
4926
|
}
|
|
4921
4927
|
|
|
4922
4928
|
// src/worker/adapters/stripe.ts
|
|
4923
|
-
var
|
|
4929
|
+
var METHODS14 = [
|
|
4924
4930
|
"createPaymentLink",
|
|
4925
4931
|
"getPaymentLink",
|
|
4926
4932
|
"updatePaymentLink",
|
|
@@ -4929,7 +4935,7 @@ var METHODS13 = [
|
|
|
4929
4935
|
"createCheckoutSession"
|
|
4930
4936
|
];
|
|
4931
4937
|
function createStripeAdapter(credential) {
|
|
4932
|
-
return createAdapter("stripe",
|
|
4938
|
+
return createAdapter("stripe", METHODS14, credential);
|
|
4933
4939
|
}
|
|
4934
4940
|
|
|
4935
4941
|
// src/worker/adapters/scheduler.ts
|
|
@@ -5060,6 +5066,24 @@ function captureConsole(executionId, logs) {
|
|
|
5060
5066
|
postLog
|
|
5061
5067
|
};
|
|
5062
5068
|
}
|
|
5069
|
+
var LOG_STRING_TRUNCATE_LIMIT = 200;
|
|
5070
|
+
function truncateForLogging(value) {
|
|
5071
|
+
if (value === null || value === void 0) return value;
|
|
5072
|
+
if (typeof value === "string") {
|
|
5073
|
+
return value.length > LOG_STRING_TRUNCATE_LIMIT ? value.slice(0, LOG_STRING_TRUNCATE_LIMIT) + `\u2026 [${value.length} chars]` : value;
|
|
5074
|
+
}
|
|
5075
|
+
if (Array.isArray(value)) {
|
|
5076
|
+
return value.map(truncateForLogging);
|
|
5077
|
+
}
|
|
5078
|
+
if (typeof value === "object") {
|
|
5079
|
+
const result = {};
|
|
5080
|
+
for (const [k, v] of Object.entries(value)) {
|
|
5081
|
+
result[k] = truncateForLogging(v);
|
|
5082
|
+
}
|
|
5083
|
+
return result;
|
|
5084
|
+
}
|
|
5085
|
+
return value;
|
|
5086
|
+
}
|
|
5063
5087
|
function resolveNext(next, data) {
|
|
5064
5088
|
if (next === null) return null;
|
|
5065
5089
|
if (next.type === "linear") return next.target;
|
|
@@ -5102,7 +5126,7 @@ async function executeWorkflow(workflow, input, context) {
|
|
|
5102
5126
|
contextType: "step-started",
|
|
5103
5127
|
stepId: step.id,
|
|
5104
5128
|
stepStatus: "started",
|
|
5105
|
-
input: stepInput,
|
|
5129
|
+
input: truncateForLogging(stepInput),
|
|
5106
5130
|
startTime: stepStartTime
|
|
5107
5131
|
});
|
|
5108
5132
|
try {
|
|
@@ -5131,7 +5155,7 @@ async function executeWorkflow(workflow, input, context) {
|
|
|
5131
5155
|
contextType: "step-completed",
|
|
5132
5156
|
stepId: step.id,
|
|
5133
5157
|
stepStatus: "completed",
|
|
5134
|
-
output: currentData,
|
|
5158
|
+
output: truncateForLogging(currentData),
|
|
5135
5159
|
duration: stepEndTime - stepStartTime,
|
|
5136
5160
|
isTerminal: nextStepId === null,
|
|
5137
5161
|
startTime: stepStartTime,
|
|
@@ -5372,4 +5396,4 @@ function startWorker(org) {
|
|
|
5372
5396
|
});
|
|
5373
5397
|
}
|
|
5374
5398
|
|
|
5375
|
-
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 };
|
|
5399
|
+
export { PlatformToolError, acqDb, approval, createAdapter, createAnymailfinderAdapter, createApifyAdapter, createAttioAdapter, createDropboxAdapter, createGmailAdapter, createGoogleSheetsAdapter, createInstantlyAdapter, createMailsoAdapter, createMillionVerifierAdapter, createNotionAdapter, createResendAdapter, createSignatureApiAdapter, createStripeAdapter, createTombaAdapter, email, execution, llm, notifications, pdf, platform, scheduler, startWorker, storage };
|