@stack0/sdk 0.5.9 → 0.5.11
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/index.d.mts +175 -6
- package/dist/index.d.ts +175 -6
- package/dist/index.js +170 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +170 -1
- package/dist/index.mjs.map +1 -1
- package/dist/mail/index.d.mts +147 -1
- package/dist/mail/index.d.ts +147 -1
- package/dist/mail/index.js +67 -0
- package/dist/mail/index.js.map +1 -1
- package/dist/mail/index.mjs +67 -1
- package/dist/mail/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Mail } from './mail/index.mjs';
|
|
2
|
-
export { AddContactToSequenceRequest, AddContactsToAudienceRequest, AddContactsToAudienceResponse, AddDomainRequest, AddDomainResponse, ArchiveSequenceResponse, Attachment, Audience, AudienceContact, Audiences, BatchTrackEventsRequest, BatchTrackEventsResponse, Campaign, CampaignStatsResponse, CampaignStatus, Campaigns, CancelCampaignResponse, CancelEmailResponse, ConnectionType, ContactStatus, Contacts, CreateAudienceRequest, CreateCampaignRequest, CreateConnectionRequest, CreateContactRequest, CreateEventRequest, CreateNodeRequest, CreateSequenceRequest, CreateTemplateRequest, DeleteAudienceResponse, DeleteCampaignResponse, DeleteConnectionResponse, DeleteContactResponse, DeleteDomainResponse, DeleteEventResponse, DeleteNodeResponse, DeleteSequenceResponse, DeleteTemplateResponse, DnsRecord, Domain, DomainStatus, Domains, Email, EmailAddress, EmailAnalyticsResponse, EmailRecipient, EmailStatus, EventAnalyticsResponse, EventOccurrence, EventPropertiesSchema, EventProperty, Events, GetDnsRecordsResponse, GetEmailResponse, HourlyAnalyticsDataPoint, HourlyAnalyticsResponse, ImportContactsRequest, ImportContactsResponse, ListAudienceContactsRequest, ListAudienceContactsResponse, ListAudiencesRequest, ListAudiencesResponse, ListCampaignsRequest, ListCampaignsResponse, ListContactsRequest, ListContactsResponse, ListDomainsRequest, ListDomainsResponse, ListEmailsRequest, ListEmailsResponse, ListEventOccurrencesRequest, ListEventOccurrencesResponse, ListEventsRequest, ListEventsResponse, ListSendersRequest, ListSendersResponse, ListSequenceEntriesRequest, ListSequenceEntriesResponse, ListSequencesRequest, ListSequencesResponse, ListTemplatesRequest, ListTemplatesResponse, MailContact, MailEvent, PauseCampaignResponse, PauseSequenceResponse, PreviewTemplateRequest, PreviewTemplateResponse, PublishSequenceResponse, RemoveContactFromSequenceRequest, RemoveContactFromSequenceResponse, RemoveContactsFromAudienceRequest, RemoveContactsFromAudienceResponse, ResendEmailResponse, ResumeSequenceResponse, SendBatchEmailRequest, SendBatchEmailResponse, SendBroadcastEmailRequest, SendBroadcastEmailResponse, SendCampaignRequest, SendCampaignResponse, SendEmailRequest, SendEmailResponse, Sender, Sequence, SequenceAnalyticsResponse, SequenceConnection, SequenceEntry, SequenceEntryStatus, SequenceNode, SequenceNodeType, SequenceStatus, SequenceTriggerFrequency, SequenceTriggerType, SequenceWithNodes, Sequences, SetDefaultDomainResponse, SetNodeBranchRequest, SetNodeEmailRequest, SetNodeExperimentRequest, SetNodeFilterRequest, SetNodeTimerRequest, Template, Templates, TimeSeriesAnalyticsRequest, TimeSeriesAnalyticsResponse, TimeSeriesDataPoint, TrackEventRequest, TrackEventResponse, UpdateAudienceRequest, UpdateCampaignRequest, UpdateContactRequest, UpdateEventRequest, UpdateNodePositionRequest, UpdateNodeRequest, UpdateSequenceRequest, UpdateTemplateRequest, VerifyDomainResponse } from './mail/index.mjs';
|
|
1
|
+
import { Mail as Mail$1 } from './mail/index.mjs';
|
|
2
|
+
export { AddContactToSequenceRequest, AddContactsToAudienceRequest, AddContactsToAudienceResponse, AddDomainRequest, AddDomainResponse, ArchiveSequenceResponse, Attachment, Audience, AudienceContact, Audiences, BatchTrackEventsRequest, BatchTrackEventsResponse, Campaign, CampaignStatsResponse, CampaignStatus, Campaigns, CancelCampaignResponse, CancelEmailResponse, ConnectionType, ContactStatus, Contacts, CreateAudienceRequest, CreateCampaignRequest, CreateConnectionRequest, CreateContactRequest, CreateEventRequest, CreateMailboxRequest, CreateNodeRequest, CreateSequenceRequest, CreateTemplateRequest, DeleteAudienceResponse, DeleteCampaignResponse, DeleteConnectionResponse, DeleteContactResponse, DeleteDomainResponse, DeleteEventResponse, DeleteNodeResponse, DeleteSequenceResponse, DeleteTemplateResponse, DnsRecord, Domain, DomainStatus, Domains, Email, EmailAddress, EmailAnalyticsResponse, EmailRecipient, EmailStatus, EventAnalyticsResponse, EventOccurrence, EventPropertiesSchema, EventProperty, Events, GetDnsRecordsResponse, GetEmailResponse, HourlyAnalyticsDataPoint, HourlyAnalyticsResponse, ImportContactsRequest, ImportContactsResponse, InboundAttachment, InboundEmailAddress, InboundMessage, InboundWebhookPayload, ListAudienceContactsRequest, ListAudienceContactsResponse, ListAudiencesRequest, ListAudiencesResponse, ListCampaignsRequest, ListCampaignsResponse, ListContactsRequest, ListContactsResponse, ListDomainsRequest, ListDomainsResponse, ListEmailsRequest, ListEmailsResponse, ListEventOccurrencesRequest, ListEventOccurrencesResponse, ListEventsRequest, ListEventsResponse, ListInboundMessagesRequest, ListInboundMessagesResponse, ListMailboxesRequest, ListMailboxesResponse, ListSendersRequest, ListSendersResponse, ListSequenceEntriesRequest, ListSequenceEntriesResponse, ListSequencesRequest, ListSequencesResponse, ListTemplatesRequest, ListTemplatesResponse, MailContact, MailEvent, Mailbox, Mailboxes, PauseCampaignResponse, PauseSequenceResponse, PreviewTemplateRequest, PreviewTemplateResponse, PublishSequenceResponse, RemoveContactFromSequenceRequest, RemoveContactFromSequenceResponse, RemoveContactsFromAudienceRequest, RemoveContactsFromAudienceResponse, ResendEmailResponse, ResumeSequenceResponse, SendBatchEmailRequest, SendBatchEmailResponse, SendBroadcastEmailRequest, SendBroadcastEmailResponse, SendCampaignRequest, SendCampaignResponse, SendEmailRequest, SendEmailResponse, Sender, Sequence, SequenceAnalyticsResponse, SequenceConnection, SequenceEntry, SequenceEntryStatus, SequenceNode, SequenceNodeType, SequenceStatus, SequenceTriggerFrequency, SequenceTriggerType, SequenceWithNodes, Sequences, SetDefaultDomainResponse, SetNodeBranchRequest, SetNodeEmailRequest, SetNodeExperimentRequest, SetNodeFilterRequest, SetNodeTimerRequest, Template, Templates, TimeSeriesAnalyticsRequest, TimeSeriesAnalyticsResponse, TimeSeriesDataPoint, TrackEventRequest, TrackEventResponse, UpdateAudienceRequest, UpdateCampaignRequest, UpdateContactRequest, UpdateEventRequest, UpdateMailboxRequest, UpdateNodePositionRequest, UpdateNodeRequest, UpdateSequenceRequest, UpdateTemplateRequest, VerifyDomainResponse } from './mail/index.mjs';
|
|
3
3
|
import { CDN } from './cdn/index.mjs';
|
|
4
4
|
export { Asset, AssetStatus, AssetType, AudioTrackInput, BundleDownloadUrlRequest, BundleDownloadUrlResponse, BundleStatus, CancelImportResponse, CancelMergeJobRequest, CdnEnvironment, CdnStorageBreakdownItem, CdnStorageBreakdownRequest, CdnStorageBreakdownResponse, CdnUsageDataPoint, CdnUsageHistoryRequest, CdnUsageHistoryResponse, CdnUsageRequest, CdnUsageResponse, ConfirmUploadRequest, ConfirmUploadResponse, CreateBundleRequest, CreateBundleResponse, CreateFolderRequest, CreateImportRequest, CreateImportResponse, CreateMergeJobRequest, DeleteAssetRequest, DeleteAssetsRequest, DeleteAssetsResponse, DownloadBundle, ExtractAudioRequest, ExtractAudioResponse, Folder, FolderListItem, FolderTreeNode, GenerateGifRequest, GetAssetRequest, GetFolderByPathRequest, GetFolderRequest, GetFolderTreeRequest, GetMergeJobRequest, GifStatus, ImageWatermarkConfig, ImageWatermarkPosition, ImageWatermarkSizingMode, ImportAuthType, ImportError, ImportFile, ImportFileStatus, ImportJob, ImportJobStatus, ImportJobSummary, ImportPathMode, ListAssetsRequest, ListAssetsResponse, ListBundlesRequest, ListBundlesResponse, ListFoldersRequest, ListFoldersResponse, ListGifsRequest, ListImportFilesRequest, ListImportFilesResponse, ListImportsRequest, ListImportsResponse, ListJobsRequest, ListJobsResponse, ListMergeJobsRequest, ListMergeJobsResponse, ListPrivateFilesRequest, ListPrivateFilesResponse, ListThumbnailsRequest, ListThumbnailsResponse, MergeInputItem, MergeJob, MergeJobWithOutput, MergeOutputConfig, MergeOutputFormat, MergeQuality, MergeStatus, MoveAssetsRequest, MoveAssetsResponse, MoveFolderRequest, MoveFolderResponse, MovePrivateFilesRequest, MovePrivateFilesResponse, PrivateDownloadUrlRequest, PrivateDownloadUrlResponse, PrivateFile, PrivateFileStatus, PrivateUploadUrlRequest, PrivateUploadUrlResponse, RegenerateThumbnailRequest, RegenerateThumbnailResponse, RetryImportResponse, StreamingUrls, TextOverlay, TextOverlayShadow, TextOverlayStroke, ThumbnailRequest, ThumbnailResponse, TranscodeJob, TranscodeVideoRequest, TranscodingStatus, TransformOptions, TrimOptions, UpdateAssetRequest, UpdateFolderRequest, UpdatePrivateFileRequest, UploadFromUrlRequest, UploadUrlRequest, UploadUrlResponse, VideoCodec, VideoGif, VideoOutputFormat, VideoQuality, VideoThumbnail, VideoVariant, WatermarkOptions } from './cdn/index.mjs';
|
|
5
5
|
import { Screenshots } from './screenshots/index.mjs';
|
|
@@ -27,7 +27,7 @@ interface ListOptions {
|
|
|
27
27
|
sortOrder?: "asc" | "desc";
|
|
28
28
|
filters?: Record<string, unknown>;
|
|
29
29
|
}
|
|
30
|
-
type ConnectorCategory = "crm" | "storage" | "communication" | "productivity";
|
|
30
|
+
type ConnectorCategory = "crm" | "storage" | "communication" | "productivity" | "calendar" | "email";
|
|
31
31
|
interface Connector {
|
|
32
32
|
id: string;
|
|
33
33
|
slug: string;
|
|
@@ -43,7 +43,7 @@ interface Connection {
|
|
|
43
43
|
connectorId: string;
|
|
44
44
|
connectorSlug: string;
|
|
45
45
|
name?: string;
|
|
46
|
-
status: "pending" | "connected" | "error" | "disconnected";
|
|
46
|
+
status: "pending" | "connected" | "error" | "disconnected" | "expired";
|
|
47
47
|
externalAccountId?: string;
|
|
48
48
|
externalAccountName?: string;
|
|
49
49
|
lastSyncedAt?: Date;
|
|
@@ -342,6 +342,129 @@ interface CreateTableRowInput {
|
|
|
342
342
|
cells: Record<string, unknown>;
|
|
343
343
|
}
|
|
344
344
|
type UpdateTableRowInput = CreateTableRowInput;
|
|
345
|
+
interface CalendarAttendee {
|
|
346
|
+
email: string;
|
|
347
|
+
name?: string;
|
|
348
|
+
status?: "accepted" | "declined" | "tentative" | "needsAction";
|
|
349
|
+
organizer?: boolean;
|
|
350
|
+
}
|
|
351
|
+
interface Calendar {
|
|
352
|
+
id: string;
|
|
353
|
+
name: string;
|
|
354
|
+
description?: string;
|
|
355
|
+
isPrimary?: boolean;
|
|
356
|
+
timeZone?: string;
|
|
357
|
+
createdAt?: Date;
|
|
358
|
+
updatedAt?: Date;
|
|
359
|
+
remoteData?: unknown;
|
|
360
|
+
}
|
|
361
|
+
interface CalendarEvent {
|
|
362
|
+
id: string;
|
|
363
|
+
title: string;
|
|
364
|
+
description?: string;
|
|
365
|
+
startTime: Date;
|
|
366
|
+
endTime: Date;
|
|
367
|
+
isAllDay?: boolean;
|
|
368
|
+
location?: string;
|
|
369
|
+
attendees?: CalendarAttendee[];
|
|
370
|
+
organizer?: CalendarAttendee;
|
|
371
|
+
status?: "confirmed" | "tentative" | "cancelled";
|
|
372
|
+
webUrl?: string;
|
|
373
|
+
calendarId?: string;
|
|
374
|
+
recurrence?: string[];
|
|
375
|
+
createdAt?: Date;
|
|
376
|
+
updatedAt?: Date;
|
|
377
|
+
remoteData?: unknown;
|
|
378
|
+
}
|
|
379
|
+
interface CreateCalendarEventInput {
|
|
380
|
+
title: string;
|
|
381
|
+
description?: string;
|
|
382
|
+
startTime: Date;
|
|
383
|
+
endTime: Date;
|
|
384
|
+
isAllDay?: boolean;
|
|
385
|
+
location?: string;
|
|
386
|
+
attendees?: {
|
|
387
|
+
email: string;
|
|
388
|
+
name?: string;
|
|
389
|
+
}[];
|
|
390
|
+
recurrence?: string[];
|
|
391
|
+
}
|
|
392
|
+
type UpdateCalendarEventInput = Partial<CreateCalendarEventInput>;
|
|
393
|
+
interface ListEventsOptions extends ListOptions {
|
|
394
|
+
timeMin?: Date;
|
|
395
|
+
timeMax?: Date;
|
|
396
|
+
query?: string;
|
|
397
|
+
}
|
|
398
|
+
interface EmailAttachment {
|
|
399
|
+
id?: string;
|
|
400
|
+
filename: string;
|
|
401
|
+
mimeType: string;
|
|
402
|
+
size?: number;
|
|
403
|
+
}
|
|
404
|
+
interface EmailMessage {
|
|
405
|
+
id: string;
|
|
406
|
+
threadId?: string;
|
|
407
|
+
subject?: string;
|
|
408
|
+
from?: string;
|
|
409
|
+
to?: string[];
|
|
410
|
+
cc?: string[];
|
|
411
|
+
bcc?: string[];
|
|
412
|
+
body?: string;
|
|
413
|
+
bodyHtml?: string;
|
|
414
|
+
snippet?: string;
|
|
415
|
+
labels?: string[];
|
|
416
|
+
attachments?: EmailAttachment[];
|
|
417
|
+
isRead?: boolean;
|
|
418
|
+
isStarred?: boolean;
|
|
419
|
+
date?: Date;
|
|
420
|
+
createdAt?: Date;
|
|
421
|
+
updatedAt?: Date;
|
|
422
|
+
remoteData?: unknown;
|
|
423
|
+
}
|
|
424
|
+
interface EmailThread {
|
|
425
|
+
id: string;
|
|
426
|
+
subject?: string;
|
|
427
|
+
snippet?: string;
|
|
428
|
+
messageCount?: number;
|
|
429
|
+
messages?: EmailMessage[];
|
|
430
|
+
lastMessageDate?: Date;
|
|
431
|
+
createdAt?: Date;
|
|
432
|
+
updatedAt?: Date;
|
|
433
|
+
remoteData?: unknown;
|
|
434
|
+
}
|
|
435
|
+
interface EmailLabel {
|
|
436
|
+
id: string;
|
|
437
|
+
name: string;
|
|
438
|
+
type?: "system" | "user";
|
|
439
|
+
messagesTotal?: number;
|
|
440
|
+
messagesUnread?: number;
|
|
441
|
+
}
|
|
442
|
+
interface SendEmailInput {
|
|
443
|
+
to: string[];
|
|
444
|
+
cc?: string[];
|
|
445
|
+
bcc?: string[];
|
|
446
|
+
subject: string;
|
|
447
|
+
body: string;
|
|
448
|
+
bodyHtml?: string;
|
|
449
|
+
replyToMessageId?: string;
|
|
450
|
+
}
|
|
451
|
+
interface ListEmailMessagesOptions extends ListOptions {
|
|
452
|
+
query?: string;
|
|
453
|
+
labelIds?: string[];
|
|
454
|
+
}
|
|
455
|
+
interface CreateConnectionSessionRequest {
|
|
456
|
+
endUserId: string;
|
|
457
|
+
connectorSlug: string;
|
|
458
|
+
redirectUrl: string;
|
|
459
|
+
projectId?: string;
|
|
460
|
+
environment?: IntegrationEnvironment;
|
|
461
|
+
name?: string;
|
|
462
|
+
}
|
|
463
|
+
interface CreateConnectionSessionResponse {
|
|
464
|
+
authUrl: string;
|
|
465
|
+
sessionId: string;
|
|
466
|
+
state: string;
|
|
467
|
+
}
|
|
345
468
|
interface PassthroughRequest {
|
|
346
469
|
connectionId: string;
|
|
347
470
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -357,6 +480,7 @@ interface InitiateOAuthRequest {
|
|
|
357
480
|
environment?: IntegrationEnvironment;
|
|
358
481
|
name?: string;
|
|
359
482
|
redirectUrl: string;
|
|
483
|
+
endUserId?: string;
|
|
360
484
|
}
|
|
361
485
|
interface InitiateOAuthResponse {
|
|
362
486
|
authUrl: string;
|
|
@@ -467,6 +591,7 @@ interface ListConnectionsRequest {
|
|
|
467
591
|
environment?: IntegrationEnvironment;
|
|
468
592
|
connectorSlug?: string;
|
|
469
593
|
status?: Connection["status"];
|
|
594
|
+
endUserId?: string;
|
|
470
595
|
limit?: number;
|
|
471
596
|
}
|
|
472
597
|
interface ListConnectionsResponse {
|
|
@@ -564,6 +689,34 @@ declare class Productivity {
|
|
|
564
689
|
success: boolean;
|
|
565
690
|
}>;
|
|
566
691
|
}
|
|
692
|
+
/**
|
|
693
|
+
* Calendar operations client
|
|
694
|
+
*/
|
|
695
|
+
declare class CalendarClient {
|
|
696
|
+
private http;
|
|
697
|
+
constructor(http: HttpClient);
|
|
698
|
+
listCalendars(connectionId: string, options?: ListOptions): Promise<PaginatedResult<Calendar>>;
|
|
699
|
+
listEvents(connectionId: string, calendarId: string, options?: ListEventsOptions): Promise<PaginatedResult<CalendarEvent>>;
|
|
700
|
+
getEvent(connectionId: string, calendarId: string, eventId: string): Promise<CalendarEvent>;
|
|
701
|
+
createEvent(connectionId: string, calendarId: string, data: CreateCalendarEventInput): Promise<CalendarEvent>;
|
|
702
|
+
updateEvent(connectionId: string, calendarId: string, eventId: string, data: UpdateCalendarEventInput): Promise<CalendarEvent>;
|
|
703
|
+
deleteEvent(connectionId: string, calendarId: string, eventId: string): Promise<{
|
|
704
|
+
success: boolean;
|
|
705
|
+
}>;
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Mail (Email) operations client
|
|
709
|
+
*/
|
|
710
|
+
declare class Mail {
|
|
711
|
+
private http;
|
|
712
|
+
constructor(http: HttpClient);
|
|
713
|
+
listMessages(connectionId: string, options?: ListEmailMessagesOptions): Promise<PaginatedResult<EmailMessage>>;
|
|
714
|
+
getMessage(connectionId: string, messageId: string): Promise<EmailMessage>;
|
|
715
|
+
sendMessage(connectionId: string, data: SendEmailInput): Promise<EmailMessage>;
|
|
716
|
+
listThreads(connectionId: string, options?: ListEmailMessagesOptions): Promise<PaginatedResult<EmailThread>>;
|
|
717
|
+
getThread(connectionId: string, threadId: string): Promise<EmailThread>;
|
|
718
|
+
listLabels(connectionId: string): Promise<EmailLabel[]>;
|
|
719
|
+
}
|
|
567
720
|
/**
|
|
568
721
|
* Stack0 Integrations SDK Client
|
|
569
722
|
*
|
|
@@ -606,6 +759,8 @@ declare class Integrations {
|
|
|
606
759
|
storage: Storage;
|
|
607
760
|
communication: Communication;
|
|
608
761
|
productivity: Productivity;
|
|
762
|
+
calendar: CalendarClient;
|
|
763
|
+
mail: Mail;
|
|
609
764
|
constructor(config: HttpClientConfig);
|
|
610
765
|
/**
|
|
611
766
|
* List all available connectors
|
|
@@ -645,6 +800,20 @@ declare class Integrations {
|
|
|
645
800
|
* ```
|
|
646
801
|
*/
|
|
647
802
|
initiateOAuth(request: InitiateOAuthRequest): Promise<InitiateOAuthResponse>;
|
|
803
|
+
/**
|
|
804
|
+
* Create a connection session for an end user
|
|
805
|
+
*
|
|
806
|
+
* @example
|
|
807
|
+
* ```typescript
|
|
808
|
+
* const { authUrl, sessionId } = await integrations.createConnectionSession({
|
|
809
|
+
* endUserId: 'user_123',
|
|
810
|
+
* connectorSlug: 'google-calendar',
|
|
811
|
+
* redirectUrl: 'https://yourapp.com/oauth/callback',
|
|
812
|
+
* });
|
|
813
|
+
* // Redirect user to authUrl
|
|
814
|
+
* ```
|
|
815
|
+
*/
|
|
816
|
+
createConnectionSession(request: CreateConnectionSessionRequest): Promise<CreateConnectionSessionResponse>;
|
|
648
817
|
/**
|
|
649
818
|
* Complete OAuth flow with callback data
|
|
650
819
|
*
|
|
@@ -2490,7 +2659,7 @@ interface Stack0Config extends HttpClientConfig {
|
|
|
2490
2659
|
* Provides access to all Stack0 services
|
|
2491
2660
|
*/
|
|
2492
2661
|
declare class Stack0 {
|
|
2493
|
-
mail: Mail;
|
|
2662
|
+
mail: Mail$1;
|
|
2494
2663
|
cdn: CDN;
|
|
2495
2664
|
screenshots: Screenshots;
|
|
2496
2665
|
extraction: Extraction;
|
|
@@ -2505,4 +2674,4 @@ declare class Stack0 {
|
|
|
2505
2674
|
constructor(config: Stack0Config);
|
|
2506
2675
|
}
|
|
2507
2676
|
|
|
2508
|
-
export { type Agent, type AgentSettings, type AnalyticsOverviewRequest, type AnalyticsOverviewResponse, type ApprovalStatus, type ApproveContentRequest, type AssetJob, type AssetJobStatus, type AssetJobType, CDN, type CalendarEntry, type CancelAssetJobResponse, type CancelCalendarEntryResponse, type CancelRunRequest, type Channel, type CollectionResponse, type CollectionStats, type CommunicationUser, type CompactRequest, type CompactionJob, type Company, type Connection, type Connector, type ConnectorCategory, type Contact, type Content, type ContentPerformanceItem, type ContentPerformanceRequest, type ContentPerformanceResponse, type ContentStatus, type ContentType, type CreateAgentRequest, type CreateAssetJobRequest, type CreateCollectionRequest, type CreateCompanyInput, type CreateContactInput, type CreateContentRequest, type CreateDealInput, type CreateScriptRequest, type CreateScriptVersionRequest, type CreateWorkflowRequest, type CreateWorkflowResponse, type CurrentUsageResponse, type Deal, type DeleteManyRequest, type DeleteScriptResponse, type DeleteWorkflowRequest, type DiscoverTrendsRequest, type DiscoverTrendsResponse, type DismissOpportunityRequest, type Entity, type EntityRelation, type EntityType, type Environment, Extraction, type GenerateOpportunitiesRequest, type GenerateOpportunitiesResponse, type GetCurrentUsageRequest, type GetEntityParams, type GetRunRequest, type GetSettingsRequest, type GetTotalUsageRequest, type GetUsageHistoryRequest, type GetWorkflowRequest, type Address as IntegrationAddress, type ColumnType as IntegrationColumnType, type CreateDocumentInput as IntegrationCreateDocumentInput, type CreateFolderInput as IntegrationCreateFolderInput, type CreateTableRowInput as IntegrationCreateTableRowInput, type Document as IntegrationDocument, type IntegrationEmailAddress, type File as IntegrationFile, type FilePermission as IntegrationFilePermission, type IntegrationFolder, type MessageAttachment as IntegrationMessageAttachment, type MessageReaction as IntegrationMessageReaction, type PhoneNumber as IntegrationPhoneNumber, type SelectOption as IntegrationSelectOption, type Table as IntegrationTable, type TableColumn as IntegrationTableColumn, type TableRow as IntegrationTableRow, type UpdateDocumentInput as IntegrationUpdateDocumentInput, type UpdateTableRowInput as IntegrationUpdateTableRowInput, Integrations, type ListOptions as IntegrationsListOptions, type PaginatedResult as IntegrationsPaginatedResult, type ListAgentsParams, type ListAssetJobsRequest, type ListAssetJobsResponse, type ListCalendarEntriesRequest, type ListCalendarEntriesResponse, type ListContentRequest, type ListContentResponse, type ListEntitiesParams, type ListEntitiesResult, type ListMemoriesParams, type ListOpportunitiesRequest, type ListOpportunitiesResponse, type ListRunsRequest, type ListRunsResponse, type ListScriptsRequest, type ListScriptsResponse, type ListTrendsRequest, type ListTrendsResponse, type ListWorkflowsRequest, type ListWorkflowsResponse, Mail, type MarkPublishedRequest, Marketing, type MarketingEnvironment, type MarketingSettings, type MarketingUsage, Memory, MemoryAgents, MemoryCollections, MemoryEntities, type MemoryResponse, type MemoryType, type Message, type Opportunity, type OpportunityConversionRequest, type OpportunityConversionResponse, type PassthroughRequest, type Provider, type RecallRequest, type RecallResult, type RecordUsageRequest, type RejectContentRequest, type ResponseFormat, type RetryAssetJobResponse, type RetryConfig, type RunStatus, type RunWorkflowRequest, type RunWorkflowResponse, type ScheduleContentRequest, Screenshots, type Script, type ScriptSlide, type SearchRequest, type SearchResult, type SendMessageInput, Stack0, type Stack0Config, type StepConfig, type StepDefinition, type StepRunStatus, type StepState, type StepType, type StoreBatchRequest, type StoreMemoryRequest, type TotalUsageResponse, type Trend, type TrendAnalyticsRequest, type TrendAnalyticsResponse, type TrendStatus, type UpdateAgentRequest, type UpdateAssetJobStatusRequest, type UpdateCalendarEntryRequest, type UpdateCollectionRequest, type UpdateCompanyInput, type UpdateContactInput, type UpdateContentRequest, type UpdateDealInput, type UpdateMemoryRequest, type UpdateScriptRequest, type UpdateSettingsRequest, type UpdateSettingsResponse, type UpdateTrendStatusRequest, type UpdateTrendStatusResponse, type UpdateWorkflowRequest, type UploadFileInput, type UsageHistoryResponse, type VariableDefinition, Webdata, type WebhookConfig, type Workflow, type WorkflowRun, Workflows, Stack0 as default };
|
|
2677
|
+
export { type Agent, type AgentSettings, type AnalyticsOverviewRequest, type AnalyticsOverviewResponse, type ApprovalStatus, type ApproveContentRequest, type AssetJob, type AssetJobStatus, type AssetJobType, CDN, type Calendar, type CalendarAttendee, type CalendarEntry, type CalendarEvent, type CancelAssetJobResponse, type CancelCalendarEntryResponse, type CancelRunRequest, type Channel, type CollectionResponse, type CollectionStats, type CommunicationUser, type CompactRequest, type CompactionJob, type Company, type Connection, type Connector, type ConnectorCategory, type Contact, type Content, type ContentPerformanceItem, type ContentPerformanceRequest, type ContentPerformanceResponse, type ContentStatus, type ContentType, type CreateAgentRequest, type CreateAssetJobRequest, type CreateCalendarEventInput, type CreateCollectionRequest, type CreateCompanyInput, type CreateConnectionSessionRequest, type CreateConnectionSessionResponse, type CreateContactInput, type CreateContentRequest, type CreateDealInput, type CreateScriptRequest, type CreateScriptVersionRequest, type CreateWorkflowRequest, type CreateWorkflowResponse, type CurrentUsageResponse, type Deal, type DeleteManyRequest, type DeleteScriptResponse, type DeleteWorkflowRequest, type DiscoverTrendsRequest, type DiscoverTrendsResponse, type DismissOpportunityRequest, type EmailAttachment, type EmailLabel, type EmailMessage, type EmailThread, type Entity, type EntityRelation, type EntityType, type Environment, Extraction, type GenerateOpportunitiesRequest, type GenerateOpportunitiesResponse, type GetCurrentUsageRequest, type GetEntityParams, type GetRunRequest, type GetSettingsRequest, type GetTotalUsageRequest, type GetUsageHistoryRequest, type GetWorkflowRequest, type Address as IntegrationAddress, type ColumnType as IntegrationColumnType, type CreateDocumentInput as IntegrationCreateDocumentInput, type CreateFolderInput as IntegrationCreateFolderInput, type CreateTableRowInput as IntegrationCreateTableRowInput, type Document as IntegrationDocument, type IntegrationEmailAddress, type File as IntegrationFile, type FilePermission as IntegrationFilePermission, type IntegrationFolder, type MessageAttachment as IntegrationMessageAttachment, type MessageReaction as IntegrationMessageReaction, type PhoneNumber as IntegrationPhoneNumber, type SelectOption as IntegrationSelectOption, type SendEmailInput as IntegrationSendEmailInput, type Table as IntegrationTable, type TableColumn as IntegrationTableColumn, type TableRow as IntegrationTableRow, type UpdateDocumentInput as IntegrationUpdateDocumentInput, type UpdateTableRowInput as IntegrationUpdateTableRowInput, Integrations, type ListOptions as IntegrationsListOptions, type PaginatedResult as IntegrationsPaginatedResult, type ListAgentsParams, type ListAssetJobsRequest, type ListAssetJobsResponse, type ListCalendarEntriesRequest, type ListCalendarEntriesResponse, type ListContentRequest, type ListContentResponse, type ListEmailMessagesOptions, type ListEntitiesParams, type ListEntitiesResult, type ListEventsOptions, type ListMemoriesParams, type ListOpportunitiesRequest, type ListOpportunitiesResponse, type ListRunsRequest, type ListRunsResponse, type ListScriptsRequest, type ListScriptsResponse, type ListTrendsRequest, type ListTrendsResponse, type ListWorkflowsRequest, type ListWorkflowsResponse, Mail$1 as Mail, type MarkPublishedRequest, Marketing, type MarketingEnvironment, type MarketingSettings, type MarketingUsage, Memory, MemoryAgents, MemoryCollections, MemoryEntities, type MemoryResponse, type MemoryType, type Message, type Opportunity, type OpportunityConversionRequest, type OpportunityConversionResponse, type PassthroughRequest, type Provider, type RecallRequest, type RecallResult, type RecordUsageRequest, type RejectContentRequest, type ResponseFormat, type RetryAssetJobResponse, type RetryConfig, type RunStatus, type RunWorkflowRequest, type RunWorkflowResponse, type ScheduleContentRequest, Screenshots, type Script, type ScriptSlide, type SearchRequest, type SearchResult, type SendMessageInput, Stack0, type Stack0Config, type StepConfig, type StepDefinition, type StepRunStatus, type StepState, type StepType, type StoreBatchRequest, type StoreMemoryRequest, type TotalUsageResponse, type Trend, type TrendAnalyticsRequest, type TrendAnalyticsResponse, type TrendStatus, type UpdateAgentRequest, type UpdateAssetJobStatusRequest, type UpdateCalendarEntryRequest, type UpdateCalendarEventInput, type UpdateCollectionRequest, type UpdateCompanyInput, type UpdateContactInput, type UpdateContentRequest, type UpdateDealInput, type UpdateMemoryRequest, type UpdateScriptRequest, type UpdateSettingsRequest, type UpdateSettingsResponse, type UpdateTrendStatusRequest, type UpdateTrendStatusResponse, type UpdateWorkflowRequest, type UploadFileInput, type UsageHistoryResponse, type VariableDefinition, Webdata, type WebhookConfig, type Workflow, type WorkflowRun, Workflows, Stack0 as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Mail } from './mail/index.js';
|
|
2
|
-
export { AddContactToSequenceRequest, AddContactsToAudienceRequest, AddContactsToAudienceResponse, AddDomainRequest, AddDomainResponse, ArchiveSequenceResponse, Attachment, Audience, AudienceContact, Audiences, BatchTrackEventsRequest, BatchTrackEventsResponse, Campaign, CampaignStatsResponse, CampaignStatus, Campaigns, CancelCampaignResponse, CancelEmailResponse, ConnectionType, ContactStatus, Contacts, CreateAudienceRequest, CreateCampaignRequest, CreateConnectionRequest, CreateContactRequest, CreateEventRequest, CreateNodeRequest, CreateSequenceRequest, CreateTemplateRequest, DeleteAudienceResponse, DeleteCampaignResponse, DeleteConnectionResponse, DeleteContactResponse, DeleteDomainResponse, DeleteEventResponse, DeleteNodeResponse, DeleteSequenceResponse, DeleteTemplateResponse, DnsRecord, Domain, DomainStatus, Domains, Email, EmailAddress, EmailAnalyticsResponse, EmailRecipient, EmailStatus, EventAnalyticsResponse, EventOccurrence, EventPropertiesSchema, EventProperty, Events, GetDnsRecordsResponse, GetEmailResponse, HourlyAnalyticsDataPoint, HourlyAnalyticsResponse, ImportContactsRequest, ImportContactsResponse, ListAudienceContactsRequest, ListAudienceContactsResponse, ListAudiencesRequest, ListAudiencesResponse, ListCampaignsRequest, ListCampaignsResponse, ListContactsRequest, ListContactsResponse, ListDomainsRequest, ListDomainsResponse, ListEmailsRequest, ListEmailsResponse, ListEventOccurrencesRequest, ListEventOccurrencesResponse, ListEventsRequest, ListEventsResponse, ListSendersRequest, ListSendersResponse, ListSequenceEntriesRequest, ListSequenceEntriesResponse, ListSequencesRequest, ListSequencesResponse, ListTemplatesRequest, ListTemplatesResponse, MailContact, MailEvent, PauseCampaignResponse, PauseSequenceResponse, PreviewTemplateRequest, PreviewTemplateResponse, PublishSequenceResponse, RemoveContactFromSequenceRequest, RemoveContactFromSequenceResponse, RemoveContactsFromAudienceRequest, RemoveContactsFromAudienceResponse, ResendEmailResponse, ResumeSequenceResponse, SendBatchEmailRequest, SendBatchEmailResponse, SendBroadcastEmailRequest, SendBroadcastEmailResponse, SendCampaignRequest, SendCampaignResponse, SendEmailRequest, SendEmailResponse, Sender, Sequence, SequenceAnalyticsResponse, SequenceConnection, SequenceEntry, SequenceEntryStatus, SequenceNode, SequenceNodeType, SequenceStatus, SequenceTriggerFrequency, SequenceTriggerType, SequenceWithNodes, Sequences, SetDefaultDomainResponse, SetNodeBranchRequest, SetNodeEmailRequest, SetNodeExperimentRequest, SetNodeFilterRequest, SetNodeTimerRequest, Template, Templates, TimeSeriesAnalyticsRequest, TimeSeriesAnalyticsResponse, TimeSeriesDataPoint, TrackEventRequest, TrackEventResponse, UpdateAudienceRequest, UpdateCampaignRequest, UpdateContactRequest, UpdateEventRequest, UpdateNodePositionRequest, UpdateNodeRequest, UpdateSequenceRequest, UpdateTemplateRequest, VerifyDomainResponse } from './mail/index.js';
|
|
1
|
+
import { Mail as Mail$1 } from './mail/index.js';
|
|
2
|
+
export { AddContactToSequenceRequest, AddContactsToAudienceRequest, AddContactsToAudienceResponse, AddDomainRequest, AddDomainResponse, ArchiveSequenceResponse, Attachment, Audience, AudienceContact, Audiences, BatchTrackEventsRequest, BatchTrackEventsResponse, Campaign, CampaignStatsResponse, CampaignStatus, Campaigns, CancelCampaignResponse, CancelEmailResponse, ConnectionType, ContactStatus, Contacts, CreateAudienceRequest, CreateCampaignRequest, CreateConnectionRequest, CreateContactRequest, CreateEventRequest, CreateMailboxRequest, CreateNodeRequest, CreateSequenceRequest, CreateTemplateRequest, DeleteAudienceResponse, DeleteCampaignResponse, DeleteConnectionResponse, DeleteContactResponse, DeleteDomainResponse, DeleteEventResponse, DeleteNodeResponse, DeleteSequenceResponse, DeleteTemplateResponse, DnsRecord, Domain, DomainStatus, Domains, Email, EmailAddress, EmailAnalyticsResponse, EmailRecipient, EmailStatus, EventAnalyticsResponse, EventOccurrence, EventPropertiesSchema, EventProperty, Events, GetDnsRecordsResponse, GetEmailResponse, HourlyAnalyticsDataPoint, HourlyAnalyticsResponse, ImportContactsRequest, ImportContactsResponse, InboundAttachment, InboundEmailAddress, InboundMessage, InboundWebhookPayload, ListAudienceContactsRequest, ListAudienceContactsResponse, ListAudiencesRequest, ListAudiencesResponse, ListCampaignsRequest, ListCampaignsResponse, ListContactsRequest, ListContactsResponse, ListDomainsRequest, ListDomainsResponse, ListEmailsRequest, ListEmailsResponse, ListEventOccurrencesRequest, ListEventOccurrencesResponse, ListEventsRequest, ListEventsResponse, ListInboundMessagesRequest, ListInboundMessagesResponse, ListMailboxesRequest, ListMailboxesResponse, ListSendersRequest, ListSendersResponse, ListSequenceEntriesRequest, ListSequenceEntriesResponse, ListSequencesRequest, ListSequencesResponse, ListTemplatesRequest, ListTemplatesResponse, MailContact, MailEvent, Mailbox, Mailboxes, PauseCampaignResponse, PauseSequenceResponse, PreviewTemplateRequest, PreviewTemplateResponse, PublishSequenceResponse, RemoveContactFromSequenceRequest, RemoveContactFromSequenceResponse, RemoveContactsFromAudienceRequest, RemoveContactsFromAudienceResponse, ResendEmailResponse, ResumeSequenceResponse, SendBatchEmailRequest, SendBatchEmailResponse, SendBroadcastEmailRequest, SendBroadcastEmailResponse, SendCampaignRequest, SendCampaignResponse, SendEmailRequest, SendEmailResponse, Sender, Sequence, SequenceAnalyticsResponse, SequenceConnection, SequenceEntry, SequenceEntryStatus, SequenceNode, SequenceNodeType, SequenceStatus, SequenceTriggerFrequency, SequenceTriggerType, SequenceWithNodes, Sequences, SetDefaultDomainResponse, SetNodeBranchRequest, SetNodeEmailRequest, SetNodeExperimentRequest, SetNodeFilterRequest, SetNodeTimerRequest, Template, Templates, TimeSeriesAnalyticsRequest, TimeSeriesAnalyticsResponse, TimeSeriesDataPoint, TrackEventRequest, TrackEventResponse, UpdateAudienceRequest, UpdateCampaignRequest, UpdateContactRequest, UpdateEventRequest, UpdateMailboxRequest, UpdateNodePositionRequest, UpdateNodeRequest, UpdateSequenceRequest, UpdateTemplateRequest, VerifyDomainResponse } from './mail/index.js';
|
|
3
3
|
import { CDN } from './cdn/index.js';
|
|
4
4
|
export { Asset, AssetStatus, AssetType, AudioTrackInput, BundleDownloadUrlRequest, BundleDownloadUrlResponse, BundleStatus, CancelImportResponse, CancelMergeJobRequest, CdnEnvironment, CdnStorageBreakdownItem, CdnStorageBreakdownRequest, CdnStorageBreakdownResponse, CdnUsageDataPoint, CdnUsageHistoryRequest, CdnUsageHistoryResponse, CdnUsageRequest, CdnUsageResponse, ConfirmUploadRequest, ConfirmUploadResponse, CreateBundleRequest, CreateBundleResponse, CreateFolderRequest, CreateImportRequest, CreateImportResponse, CreateMergeJobRequest, DeleteAssetRequest, DeleteAssetsRequest, DeleteAssetsResponse, DownloadBundle, ExtractAudioRequest, ExtractAudioResponse, Folder, FolderListItem, FolderTreeNode, GenerateGifRequest, GetAssetRequest, GetFolderByPathRequest, GetFolderRequest, GetFolderTreeRequest, GetMergeJobRequest, GifStatus, ImageWatermarkConfig, ImageWatermarkPosition, ImageWatermarkSizingMode, ImportAuthType, ImportError, ImportFile, ImportFileStatus, ImportJob, ImportJobStatus, ImportJobSummary, ImportPathMode, ListAssetsRequest, ListAssetsResponse, ListBundlesRequest, ListBundlesResponse, ListFoldersRequest, ListFoldersResponse, ListGifsRequest, ListImportFilesRequest, ListImportFilesResponse, ListImportsRequest, ListImportsResponse, ListJobsRequest, ListJobsResponse, ListMergeJobsRequest, ListMergeJobsResponse, ListPrivateFilesRequest, ListPrivateFilesResponse, ListThumbnailsRequest, ListThumbnailsResponse, MergeInputItem, MergeJob, MergeJobWithOutput, MergeOutputConfig, MergeOutputFormat, MergeQuality, MergeStatus, MoveAssetsRequest, MoveAssetsResponse, MoveFolderRequest, MoveFolderResponse, MovePrivateFilesRequest, MovePrivateFilesResponse, PrivateDownloadUrlRequest, PrivateDownloadUrlResponse, PrivateFile, PrivateFileStatus, PrivateUploadUrlRequest, PrivateUploadUrlResponse, RegenerateThumbnailRequest, RegenerateThumbnailResponse, RetryImportResponse, StreamingUrls, TextOverlay, TextOverlayShadow, TextOverlayStroke, ThumbnailRequest, ThumbnailResponse, TranscodeJob, TranscodeVideoRequest, TranscodingStatus, TransformOptions, TrimOptions, UpdateAssetRequest, UpdateFolderRequest, UpdatePrivateFileRequest, UploadFromUrlRequest, UploadUrlRequest, UploadUrlResponse, VideoCodec, VideoGif, VideoOutputFormat, VideoQuality, VideoThumbnail, VideoVariant, WatermarkOptions } from './cdn/index.js';
|
|
5
5
|
import { Screenshots } from './screenshots/index.js';
|
|
@@ -27,7 +27,7 @@ interface ListOptions {
|
|
|
27
27
|
sortOrder?: "asc" | "desc";
|
|
28
28
|
filters?: Record<string, unknown>;
|
|
29
29
|
}
|
|
30
|
-
type ConnectorCategory = "crm" | "storage" | "communication" | "productivity";
|
|
30
|
+
type ConnectorCategory = "crm" | "storage" | "communication" | "productivity" | "calendar" | "email";
|
|
31
31
|
interface Connector {
|
|
32
32
|
id: string;
|
|
33
33
|
slug: string;
|
|
@@ -43,7 +43,7 @@ interface Connection {
|
|
|
43
43
|
connectorId: string;
|
|
44
44
|
connectorSlug: string;
|
|
45
45
|
name?: string;
|
|
46
|
-
status: "pending" | "connected" | "error" | "disconnected";
|
|
46
|
+
status: "pending" | "connected" | "error" | "disconnected" | "expired";
|
|
47
47
|
externalAccountId?: string;
|
|
48
48
|
externalAccountName?: string;
|
|
49
49
|
lastSyncedAt?: Date;
|
|
@@ -342,6 +342,129 @@ interface CreateTableRowInput {
|
|
|
342
342
|
cells: Record<string, unknown>;
|
|
343
343
|
}
|
|
344
344
|
type UpdateTableRowInput = CreateTableRowInput;
|
|
345
|
+
interface CalendarAttendee {
|
|
346
|
+
email: string;
|
|
347
|
+
name?: string;
|
|
348
|
+
status?: "accepted" | "declined" | "tentative" | "needsAction";
|
|
349
|
+
organizer?: boolean;
|
|
350
|
+
}
|
|
351
|
+
interface Calendar {
|
|
352
|
+
id: string;
|
|
353
|
+
name: string;
|
|
354
|
+
description?: string;
|
|
355
|
+
isPrimary?: boolean;
|
|
356
|
+
timeZone?: string;
|
|
357
|
+
createdAt?: Date;
|
|
358
|
+
updatedAt?: Date;
|
|
359
|
+
remoteData?: unknown;
|
|
360
|
+
}
|
|
361
|
+
interface CalendarEvent {
|
|
362
|
+
id: string;
|
|
363
|
+
title: string;
|
|
364
|
+
description?: string;
|
|
365
|
+
startTime: Date;
|
|
366
|
+
endTime: Date;
|
|
367
|
+
isAllDay?: boolean;
|
|
368
|
+
location?: string;
|
|
369
|
+
attendees?: CalendarAttendee[];
|
|
370
|
+
organizer?: CalendarAttendee;
|
|
371
|
+
status?: "confirmed" | "tentative" | "cancelled";
|
|
372
|
+
webUrl?: string;
|
|
373
|
+
calendarId?: string;
|
|
374
|
+
recurrence?: string[];
|
|
375
|
+
createdAt?: Date;
|
|
376
|
+
updatedAt?: Date;
|
|
377
|
+
remoteData?: unknown;
|
|
378
|
+
}
|
|
379
|
+
interface CreateCalendarEventInput {
|
|
380
|
+
title: string;
|
|
381
|
+
description?: string;
|
|
382
|
+
startTime: Date;
|
|
383
|
+
endTime: Date;
|
|
384
|
+
isAllDay?: boolean;
|
|
385
|
+
location?: string;
|
|
386
|
+
attendees?: {
|
|
387
|
+
email: string;
|
|
388
|
+
name?: string;
|
|
389
|
+
}[];
|
|
390
|
+
recurrence?: string[];
|
|
391
|
+
}
|
|
392
|
+
type UpdateCalendarEventInput = Partial<CreateCalendarEventInput>;
|
|
393
|
+
interface ListEventsOptions extends ListOptions {
|
|
394
|
+
timeMin?: Date;
|
|
395
|
+
timeMax?: Date;
|
|
396
|
+
query?: string;
|
|
397
|
+
}
|
|
398
|
+
interface EmailAttachment {
|
|
399
|
+
id?: string;
|
|
400
|
+
filename: string;
|
|
401
|
+
mimeType: string;
|
|
402
|
+
size?: number;
|
|
403
|
+
}
|
|
404
|
+
interface EmailMessage {
|
|
405
|
+
id: string;
|
|
406
|
+
threadId?: string;
|
|
407
|
+
subject?: string;
|
|
408
|
+
from?: string;
|
|
409
|
+
to?: string[];
|
|
410
|
+
cc?: string[];
|
|
411
|
+
bcc?: string[];
|
|
412
|
+
body?: string;
|
|
413
|
+
bodyHtml?: string;
|
|
414
|
+
snippet?: string;
|
|
415
|
+
labels?: string[];
|
|
416
|
+
attachments?: EmailAttachment[];
|
|
417
|
+
isRead?: boolean;
|
|
418
|
+
isStarred?: boolean;
|
|
419
|
+
date?: Date;
|
|
420
|
+
createdAt?: Date;
|
|
421
|
+
updatedAt?: Date;
|
|
422
|
+
remoteData?: unknown;
|
|
423
|
+
}
|
|
424
|
+
interface EmailThread {
|
|
425
|
+
id: string;
|
|
426
|
+
subject?: string;
|
|
427
|
+
snippet?: string;
|
|
428
|
+
messageCount?: number;
|
|
429
|
+
messages?: EmailMessage[];
|
|
430
|
+
lastMessageDate?: Date;
|
|
431
|
+
createdAt?: Date;
|
|
432
|
+
updatedAt?: Date;
|
|
433
|
+
remoteData?: unknown;
|
|
434
|
+
}
|
|
435
|
+
interface EmailLabel {
|
|
436
|
+
id: string;
|
|
437
|
+
name: string;
|
|
438
|
+
type?: "system" | "user";
|
|
439
|
+
messagesTotal?: number;
|
|
440
|
+
messagesUnread?: number;
|
|
441
|
+
}
|
|
442
|
+
interface SendEmailInput {
|
|
443
|
+
to: string[];
|
|
444
|
+
cc?: string[];
|
|
445
|
+
bcc?: string[];
|
|
446
|
+
subject: string;
|
|
447
|
+
body: string;
|
|
448
|
+
bodyHtml?: string;
|
|
449
|
+
replyToMessageId?: string;
|
|
450
|
+
}
|
|
451
|
+
interface ListEmailMessagesOptions extends ListOptions {
|
|
452
|
+
query?: string;
|
|
453
|
+
labelIds?: string[];
|
|
454
|
+
}
|
|
455
|
+
interface CreateConnectionSessionRequest {
|
|
456
|
+
endUserId: string;
|
|
457
|
+
connectorSlug: string;
|
|
458
|
+
redirectUrl: string;
|
|
459
|
+
projectId?: string;
|
|
460
|
+
environment?: IntegrationEnvironment;
|
|
461
|
+
name?: string;
|
|
462
|
+
}
|
|
463
|
+
interface CreateConnectionSessionResponse {
|
|
464
|
+
authUrl: string;
|
|
465
|
+
sessionId: string;
|
|
466
|
+
state: string;
|
|
467
|
+
}
|
|
345
468
|
interface PassthroughRequest {
|
|
346
469
|
connectionId: string;
|
|
347
470
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -357,6 +480,7 @@ interface InitiateOAuthRequest {
|
|
|
357
480
|
environment?: IntegrationEnvironment;
|
|
358
481
|
name?: string;
|
|
359
482
|
redirectUrl: string;
|
|
483
|
+
endUserId?: string;
|
|
360
484
|
}
|
|
361
485
|
interface InitiateOAuthResponse {
|
|
362
486
|
authUrl: string;
|
|
@@ -467,6 +591,7 @@ interface ListConnectionsRequest {
|
|
|
467
591
|
environment?: IntegrationEnvironment;
|
|
468
592
|
connectorSlug?: string;
|
|
469
593
|
status?: Connection["status"];
|
|
594
|
+
endUserId?: string;
|
|
470
595
|
limit?: number;
|
|
471
596
|
}
|
|
472
597
|
interface ListConnectionsResponse {
|
|
@@ -564,6 +689,34 @@ declare class Productivity {
|
|
|
564
689
|
success: boolean;
|
|
565
690
|
}>;
|
|
566
691
|
}
|
|
692
|
+
/**
|
|
693
|
+
* Calendar operations client
|
|
694
|
+
*/
|
|
695
|
+
declare class CalendarClient {
|
|
696
|
+
private http;
|
|
697
|
+
constructor(http: HttpClient);
|
|
698
|
+
listCalendars(connectionId: string, options?: ListOptions): Promise<PaginatedResult<Calendar>>;
|
|
699
|
+
listEvents(connectionId: string, calendarId: string, options?: ListEventsOptions): Promise<PaginatedResult<CalendarEvent>>;
|
|
700
|
+
getEvent(connectionId: string, calendarId: string, eventId: string): Promise<CalendarEvent>;
|
|
701
|
+
createEvent(connectionId: string, calendarId: string, data: CreateCalendarEventInput): Promise<CalendarEvent>;
|
|
702
|
+
updateEvent(connectionId: string, calendarId: string, eventId: string, data: UpdateCalendarEventInput): Promise<CalendarEvent>;
|
|
703
|
+
deleteEvent(connectionId: string, calendarId: string, eventId: string): Promise<{
|
|
704
|
+
success: boolean;
|
|
705
|
+
}>;
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Mail (Email) operations client
|
|
709
|
+
*/
|
|
710
|
+
declare class Mail {
|
|
711
|
+
private http;
|
|
712
|
+
constructor(http: HttpClient);
|
|
713
|
+
listMessages(connectionId: string, options?: ListEmailMessagesOptions): Promise<PaginatedResult<EmailMessage>>;
|
|
714
|
+
getMessage(connectionId: string, messageId: string): Promise<EmailMessage>;
|
|
715
|
+
sendMessage(connectionId: string, data: SendEmailInput): Promise<EmailMessage>;
|
|
716
|
+
listThreads(connectionId: string, options?: ListEmailMessagesOptions): Promise<PaginatedResult<EmailThread>>;
|
|
717
|
+
getThread(connectionId: string, threadId: string): Promise<EmailThread>;
|
|
718
|
+
listLabels(connectionId: string): Promise<EmailLabel[]>;
|
|
719
|
+
}
|
|
567
720
|
/**
|
|
568
721
|
* Stack0 Integrations SDK Client
|
|
569
722
|
*
|
|
@@ -606,6 +759,8 @@ declare class Integrations {
|
|
|
606
759
|
storage: Storage;
|
|
607
760
|
communication: Communication;
|
|
608
761
|
productivity: Productivity;
|
|
762
|
+
calendar: CalendarClient;
|
|
763
|
+
mail: Mail;
|
|
609
764
|
constructor(config: HttpClientConfig);
|
|
610
765
|
/**
|
|
611
766
|
* List all available connectors
|
|
@@ -645,6 +800,20 @@ declare class Integrations {
|
|
|
645
800
|
* ```
|
|
646
801
|
*/
|
|
647
802
|
initiateOAuth(request: InitiateOAuthRequest): Promise<InitiateOAuthResponse>;
|
|
803
|
+
/**
|
|
804
|
+
* Create a connection session for an end user
|
|
805
|
+
*
|
|
806
|
+
* @example
|
|
807
|
+
* ```typescript
|
|
808
|
+
* const { authUrl, sessionId } = await integrations.createConnectionSession({
|
|
809
|
+
* endUserId: 'user_123',
|
|
810
|
+
* connectorSlug: 'google-calendar',
|
|
811
|
+
* redirectUrl: 'https://yourapp.com/oauth/callback',
|
|
812
|
+
* });
|
|
813
|
+
* // Redirect user to authUrl
|
|
814
|
+
* ```
|
|
815
|
+
*/
|
|
816
|
+
createConnectionSession(request: CreateConnectionSessionRequest): Promise<CreateConnectionSessionResponse>;
|
|
648
817
|
/**
|
|
649
818
|
* Complete OAuth flow with callback data
|
|
650
819
|
*
|
|
@@ -2490,7 +2659,7 @@ interface Stack0Config extends HttpClientConfig {
|
|
|
2490
2659
|
* Provides access to all Stack0 services
|
|
2491
2660
|
*/
|
|
2492
2661
|
declare class Stack0 {
|
|
2493
|
-
mail: Mail;
|
|
2662
|
+
mail: Mail$1;
|
|
2494
2663
|
cdn: CDN;
|
|
2495
2664
|
screenshots: Screenshots;
|
|
2496
2665
|
extraction: Extraction;
|
|
@@ -2505,4 +2674,4 @@ declare class Stack0 {
|
|
|
2505
2674
|
constructor(config: Stack0Config);
|
|
2506
2675
|
}
|
|
2507
2676
|
|
|
2508
|
-
export { type Agent, type AgentSettings, type AnalyticsOverviewRequest, type AnalyticsOverviewResponse, type ApprovalStatus, type ApproveContentRequest, type AssetJob, type AssetJobStatus, type AssetJobType, CDN, type CalendarEntry, type CancelAssetJobResponse, type CancelCalendarEntryResponse, type CancelRunRequest, type Channel, type CollectionResponse, type CollectionStats, type CommunicationUser, type CompactRequest, type CompactionJob, type Company, type Connection, type Connector, type ConnectorCategory, type Contact, type Content, type ContentPerformanceItem, type ContentPerformanceRequest, type ContentPerformanceResponse, type ContentStatus, type ContentType, type CreateAgentRequest, type CreateAssetJobRequest, type CreateCollectionRequest, type CreateCompanyInput, type CreateContactInput, type CreateContentRequest, type CreateDealInput, type CreateScriptRequest, type CreateScriptVersionRequest, type CreateWorkflowRequest, type CreateWorkflowResponse, type CurrentUsageResponse, type Deal, type DeleteManyRequest, type DeleteScriptResponse, type DeleteWorkflowRequest, type DiscoverTrendsRequest, type DiscoverTrendsResponse, type DismissOpportunityRequest, type Entity, type EntityRelation, type EntityType, type Environment, Extraction, type GenerateOpportunitiesRequest, type GenerateOpportunitiesResponse, type GetCurrentUsageRequest, type GetEntityParams, type GetRunRequest, type GetSettingsRequest, type GetTotalUsageRequest, type GetUsageHistoryRequest, type GetWorkflowRequest, type Address as IntegrationAddress, type ColumnType as IntegrationColumnType, type CreateDocumentInput as IntegrationCreateDocumentInput, type CreateFolderInput as IntegrationCreateFolderInput, type CreateTableRowInput as IntegrationCreateTableRowInput, type Document as IntegrationDocument, type IntegrationEmailAddress, type File as IntegrationFile, type FilePermission as IntegrationFilePermission, type IntegrationFolder, type MessageAttachment as IntegrationMessageAttachment, type MessageReaction as IntegrationMessageReaction, type PhoneNumber as IntegrationPhoneNumber, type SelectOption as IntegrationSelectOption, type Table as IntegrationTable, type TableColumn as IntegrationTableColumn, type TableRow as IntegrationTableRow, type UpdateDocumentInput as IntegrationUpdateDocumentInput, type UpdateTableRowInput as IntegrationUpdateTableRowInput, Integrations, type ListOptions as IntegrationsListOptions, type PaginatedResult as IntegrationsPaginatedResult, type ListAgentsParams, type ListAssetJobsRequest, type ListAssetJobsResponse, type ListCalendarEntriesRequest, type ListCalendarEntriesResponse, type ListContentRequest, type ListContentResponse, type ListEntitiesParams, type ListEntitiesResult, type ListMemoriesParams, type ListOpportunitiesRequest, type ListOpportunitiesResponse, type ListRunsRequest, type ListRunsResponse, type ListScriptsRequest, type ListScriptsResponse, type ListTrendsRequest, type ListTrendsResponse, type ListWorkflowsRequest, type ListWorkflowsResponse, Mail, type MarkPublishedRequest, Marketing, type MarketingEnvironment, type MarketingSettings, type MarketingUsage, Memory, MemoryAgents, MemoryCollections, MemoryEntities, type MemoryResponse, type MemoryType, type Message, type Opportunity, type OpportunityConversionRequest, type OpportunityConversionResponse, type PassthroughRequest, type Provider, type RecallRequest, type RecallResult, type RecordUsageRequest, type RejectContentRequest, type ResponseFormat, type RetryAssetJobResponse, type RetryConfig, type RunStatus, type RunWorkflowRequest, type RunWorkflowResponse, type ScheduleContentRequest, Screenshots, type Script, type ScriptSlide, type SearchRequest, type SearchResult, type SendMessageInput, Stack0, type Stack0Config, type StepConfig, type StepDefinition, type StepRunStatus, type StepState, type StepType, type StoreBatchRequest, type StoreMemoryRequest, type TotalUsageResponse, type Trend, type TrendAnalyticsRequest, type TrendAnalyticsResponse, type TrendStatus, type UpdateAgentRequest, type UpdateAssetJobStatusRequest, type UpdateCalendarEntryRequest, type UpdateCollectionRequest, type UpdateCompanyInput, type UpdateContactInput, type UpdateContentRequest, type UpdateDealInput, type UpdateMemoryRequest, type UpdateScriptRequest, type UpdateSettingsRequest, type UpdateSettingsResponse, type UpdateTrendStatusRequest, type UpdateTrendStatusResponse, type UpdateWorkflowRequest, type UploadFileInput, type UsageHistoryResponse, type VariableDefinition, Webdata, type WebhookConfig, type Workflow, type WorkflowRun, Workflows, Stack0 as default };
|
|
2677
|
+
export { type Agent, type AgentSettings, type AnalyticsOverviewRequest, type AnalyticsOverviewResponse, type ApprovalStatus, type ApproveContentRequest, type AssetJob, type AssetJobStatus, type AssetJobType, CDN, type Calendar, type CalendarAttendee, type CalendarEntry, type CalendarEvent, type CancelAssetJobResponse, type CancelCalendarEntryResponse, type CancelRunRequest, type Channel, type CollectionResponse, type CollectionStats, type CommunicationUser, type CompactRequest, type CompactionJob, type Company, type Connection, type Connector, type ConnectorCategory, type Contact, type Content, type ContentPerformanceItem, type ContentPerformanceRequest, type ContentPerformanceResponse, type ContentStatus, type ContentType, type CreateAgentRequest, type CreateAssetJobRequest, type CreateCalendarEventInput, type CreateCollectionRequest, type CreateCompanyInput, type CreateConnectionSessionRequest, type CreateConnectionSessionResponse, type CreateContactInput, type CreateContentRequest, type CreateDealInput, type CreateScriptRequest, type CreateScriptVersionRequest, type CreateWorkflowRequest, type CreateWorkflowResponse, type CurrentUsageResponse, type Deal, type DeleteManyRequest, type DeleteScriptResponse, type DeleteWorkflowRequest, type DiscoverTrendsRequest, type DiscoverTrendsResponse, type DismissOpportunityRequest, type EmailAttachment, type EmailLabel, type EmailMessage, type EmailThread, type Entity, type EntityRelation, type EntityType, type Environment, Extraction, type GenerateOpportunitiesRequest, type GenerateOpportunitiesResponse, type GetCurrentUsageRequest, type GetEntityParams, type GetRunRequest, type GetSettingsRequest, type GetTotalUsageRequest, type GetUsageHistoryRequest, type GetWorkflowRequest, type Address as IntegrationAddress, type ColumnType as IntegrationColumnType, type CreateDocumentInput as IntegrationCreateDocumentInput, type CreateFolderInput as IntegrationCreateFolderInput, type CreateTableRowInput as IntegrationCreateTableRowInput, type Document as IntegrationDocument, type IntegrationEmailAddress, type File as IntegrationFile, type FilePermission as IntegrationFilePermission, type IntegrationFolder, type MessageAttachment as IntegrationMessageAttachment, type MessageReaction as IntegrationMessageReaction, type PhoneNumber as IntegrationPhoneNumber, type SelectOption as IntegrationSelectOption, type SendEmailInput as IntegrationSendEmailInput, type Table as IntegrationTable, type TableColumn as IntegrationTableColumn, type TableRow as IntegrationTableRow, type UpdateDocumentInput as IntegrationUpdateDocumentInput, type UpdateTableRowInput as IntegrationUpdateTableRowInput, Integrations, type ListOptions as IntegrationsListOptions, type PaginatedResult as IntegrationsPaginatedResult, type ListAgentsParams, type ListAssetJobsRequest, type ListAssetJobsResponse, type ListCalendarEntriesRequest, type ListCalendarEntriesResponse, type ListContentRequest, type ListContentResponse, type ListEmailMessagesOptions, type ListEntitiesParams, type ListEntitiesResult, type ListEventsOptions, type ListMemoriesParams, type ListOpportunitiesRequest, type ListOpportunitiesResponse, type ListRunsRequest, type ListRunsResponse, type ListScriptsRequest, type ListScriptsResponse, type ListTrendsRequest, type ListTrendsResponse, type ListWorkflowsRequest, type ListWorkflowsResponse, Mail$1 as Mail, type MarkPublishedRequest, Marketing, type MarketingEnvironment, type MarketingSettings, type MarketingUsage, Memory, MemoryAgents, MemoryCollections, MemoryEntities, type MemoryResponse, type MemoryType, type Message, type Opportunity, type OpportunityConversionRequest, type OpportunityConversionResponse, type PassthroughRequest, type Provider, type RecallRequest, type RecallResult, type RecordUsageRequest, type RejectContentRequest, type ResponseFormat, type RetryAssetJobResponse, type RetryConfig, type RunStatus, type RunWorkflowRequest, type RunWorkflowResponse, type ScheduleContentRequest, Screenshots, type Script, type ScriptSlide, type SearchRequest, type SearchResult, type SendMessageInput, Stack0, type Stack0Config, type StepConfig, type StepDefinition, type StepRunStatus, type StepState, type StepType, type StoreBatchRequest, type StoreMemoryRequest, type TotalUsageResponse, type Trend, type TrendAnalyticsRequest, type TrendAnalyticsResponse, type TrendStatus, type UpdateAgentRequest, type UpdateAssetJobStatusRequest, type UpdateCalendarEntryRequest, type UpdateCalendarEventInput, type UpdateCollectionRequest, type UpdateCompanyInput, type UpdateContactInput, type UpdateContentRequest, type UpdateDealInput, type UpdateMemoryRequest, type UpdateScriptRequest, type UpdateSettingsRequest, type UpdateSettingsResponse, type UpdateTrendStatusRequest, type UpdateTrendStatusResponse, type UpdateWorkflowRequest, type UploadFileInput, type UsageHistoryResponse, type VariableDefinition, Webdata, type WebhookConfig, type Workflow, type WorkflowRun, Workflows, Stack0 as default };
|