@stack0/sdk 0.5.9 → 0.5.12
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/crawl/index.d.mts +206 -0
- package/dist/crawl/index.d.ts +206 -0
- package/dist/crawl/index.js +179 -0
- package/dist/crawl/index.js.map +1 -0
- package/dist/crawl/index.mjs +176 -0
- package/dist/crawl/index.mjs.map +1 -0
- package/dist/documents/index.d.mts +84 -0
- package/dist/documents/index.d.ts +84 -0
- package/dist/documents/index.js +144 -0
- package/dist/documents/index.js.map +1 -0
- package/dist/documents/index.mjs +142 -0
- package/dist/documents/index.mjs.map +1 -0
- package/dist/index.d.mts +213 -6
- package/dist/index.d.ts +213 -6
- package/dist/index.js +431 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +426 -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/dist/map/index.d.mts +93 -0
- package/dist/map/index.d.ts +93 -0
- package/dist/map/index.js +151 -0
- package/dist/map/index.js.map +1 -0
- package/dist/map/index.mjs +148 -0
- package/dist/map/index.mjs.map +1 -0
- package/package.json +20 -2
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';
|
|
@@ -7,6 +7,12 @@ export { BatchScreenshotJob, Clip, CreateBatchScreenshotsRequest, CreateScreensh
|
|
|
7
7
|
import { Extraction } from './extraction/index.js';
|
|
8
8
|
export { BatchExtractionJob, CreateBatchExtractionsRequest, CreateExtractionRequest, CreateExtractionResponse, CreateExtractionScheduleRequest, DailyUsageItem, ExtractionBatchJobsResponse, ExtractionMode, ExtractionResult, ExtractionSchedule, ExtractionSchedulesResponse, ExtractionStatus, ExtractionUsage, GetDailyUsageResponse, GetExtractionRequest, GetUsageRequest, ListExtractionsRequest, ListExtractionsResponse, PageMetadata, UpdateExtractionScheduleRequest } from './extraction/index.js';
|
|
9
9
|
import { Webdata } from './webdata/index.js';
|
|
10
|
+
import { Crawl as Crawl$ } from './crawl/index.js';
|
|
11
|
+
export { CancelCrawlRequest, CrawlPage, CrawlStatus, CreateCrawlRequest, CreateCrawlResponse, GetCrawlRequest, ListCrawlPagesRequest, ListCrawlPagesResponse, ListCrawlsRequest, ListCrawlsResponse, ProxyType, ScrapeAction, ScrapeActionType, ScrapeFormat, ScrapeOptions } from './crawl/index.js';
|
|
12
|
+
import { Map as Map$ } from './map/index.js';
|
|
13
|
+
export { CreateMapRequest, CreateMapResponse, GetMapRequest, ListMapsRequest, ListMapsResponse, MapStatus, WebdataMap } from './map/index.js';
|
|
14
|
+
import { Documents } from './documents/index.js';
|
|
15
|
+
export { CreateDocumentRequest, CreateDocumentResponse, DocumentStatus, GetDocumentRequest, ListDocumentsRequest, ListDocumentsResponse, WebdataDocument } from './documents/index.js';
|
|
10
16
|
import { H as HttpClient, a as HttpClientConfig } from './http-client-Cgie_Rv6.js';
|
|
11
17
|
import { E as Environment$1 } from './shared-types-CjKSP5Xc.js';
|
|
12
18
|
export { B as BatchJobStatus, C as CreateBatchResponse, e as CreateScheduleResponse, G as GetBatchJobRequest, c as GetScheduleRequest, L as ListBatchJobsRequest, d as ListSchedulesRequest, P as PaginatedRequest, a as PaginatedResponse, b as ScheduleFrequency, S as Stack0Error } from './shared-types-CjKSP5Xc.js';
|
|
@@ -27,7 +33,7 @@ interface ListOptions {
|
|
|
27
33
|
sortOrder?: "asc" | "desc";
|
|
28
34
|
filters?: Record<string, unknown>;
|
|
29
35
|
}
|
|
30
|
-
type ConnectorCategory = "crm" | "storage" | "communication" | "productivity";
|
|
36
|
+
type ConnectorCategory = "crm" | "storage" | "communication" | "productivity" | "calendar" | "email";
|
|
31
37
|
interface Connector {
|
|
32
38
|
id: string;
|
|
33
39
|
slug: string;
|
|
@@ -43,7 +49,7 @@ interface Connection {
|
|
|
43
49
|
connectorId: string;
|
|
44
50
|
connectorSlug: string;
|
|
45
51
|
name?: string;
|
|
46
|
-
status: "pending" | "connected" | "error" | "disconnected";
|
|
52
|
+
status: "pending" | "connected" | "error" | "disconnected" | "expired";
|
|
47
53
|
externalAccountId?: string;
|
|
48
54
|
externalAccountName?: string;
|
|
49
55
|
lastSyncedAt?: Date;
|
|
@@ -342,6 +348,129 @@ interface CreateTableRowInput {
|
|
|
342
348
|
cells: Record<string, unknown>;
|
|
343
349
|
}
|
|
344
350
|
type UpdateTableRowInput = CreateTableRowInput;
|
|
351
|
+
interface CalendarAttendee {
|
|
352
|
+
email: string;
|
|
353
|
+
name?: string;
|
|
354
|
+
status?: "accepted" | "declined" | "tentative" | "needsAction";
|
|
355
|
+
organizer?: boolean;
|
|
356
|
+
}
|
|
357
|
+
interface Calendar {
|
|
358
|
+
id: string;
|
|
359
|
+
name: string;
|
|
360
|
+
description?: string;
|
|
361
|
+
isPrimary?: boolean;
|
|
362
|
+
timeZone?: string;
|
|
363
|
+
createdAt?: Date;
|
|
364
|
+
updatedAt?: Date;
|
|
365
|
+
remoteData?: unknown;
|
|
366
|
+
}
|
|
367
|
+
interface CalendarEvent {
|
|
368
|
+
id: string;
|
|
369
|
+
title: string;
|
|
370
|
+
description?: string;
|
|
371
|
+
startTime: Date;
|
|
372
|
+
endTime: Date;
|
|
373
|
+
isAllDay?: boolean;
|
|
374
|
+
location?: string;
|
|
375
|
+
attendees?: CalendarAttendee[];
|
|
376
|
+
organizer?: CalendarAttendee;
|
|
377
|
+
status?: "confirmed" | "tentative" | "cancelled";
|
|
378
|
+
webUrl?: string;
|
|
379
|
+
calendarId?: string;
|
|
380
|
+
recurrence?: string[];
|
|
381
|
+
createdAt?: Date;
|
|
382
|
+
updatedAt?: Date;
|
|
383
|
+
remoteData?: unknown;
|
|
384
|
+
}
|
|
385
|
+
interface CreateCalendarEventInput {
|
|
386
|
+
title: string;
|
|
387
|
+
description?: string;
|
|
388
|
+
startTime: Date;
|
|
389
|
+
endTime: Date;
|
|
390
|
+
isAllDay?: boolean;
|
|
391
|
+
location?: string;
|
|
392
|
+
attendees?: {
|
|
393
|
+
email: string;
|
|
394
|
+
name?: string;
|
|
395
|
+
}[];
|
|
396
|
+
recurrence?: string[];
|
|
397
|
+
}
|
|
398
|
+
type UpdateCalendarEventInput = Partial<CreateCalendarEventInput>;
|
|
399
|
+
interface ListEventsOptions extends ListOptions {
|
|
400
|
+
timeMin?: Date;
|
|
401
|
+
timeMax?: Date;
|
|
402
|
+
query?: string;
|
|
403
|
+
}
|
|
404
|
+
interface EmailAttachment {
|
|
405
|
+
id?: string;
|
|
406
|
+
filename: string;
|
|
407
|
+
mimeType: string;
|
|
408
|
+
size?: number;
|
|
409
|
+
}
|
|
410
|
+
interface EmailMessage {
|
|
411
|
+
id: string;
|
|
412
|
+
threadId?: string;
|
|
413
|
+
subject?: string;
|
|
414
|
+
from?: string;
|
|
415
|
+
to?: string[];
|
|
416
|
+
cc?: string[];
|
|
417
|
+
bcc?: string[];
|
|
418
|
+
body?: string;
|
|
419
|
+
bodyHtml?: string;
|
|
420
|
+
snippet?: string;
|
|
421
|
+
labels?: string[];
|
|
422
|
+
attachments?: EmailAttachment[];
|
|
423
|
+
isRead?: boolean;
|
|
424
|
+
isStarred?: boolean;
|
|
425
|
+
date?: Date;
|
|
426
|
+
createdAt?: Date;
|
|
427
|
+
updatedAt?: Date;
|
|
428
|
+
remoteData?: unknown;
|
|
429
|
+
}
|
|
430
|
+
interface EmailThread {
|
|
431
|
+
id: string;
|
|
432
|
+
subject?: string;
|
|
433
|
+
snippet?: string;
|
|
434
|
+
messageCount?: number;
|
|
435
|
+
messages?: EmailMessage[];
|
|
436
|
+
lastMessageDate?: Date;
|
|
437
|
+
createdAt?: Date;
|
|
438
|
+
updatedAt?: Date;
|
|
439
|
+
remoteData?: unknown;
|
|
440
|
+
}
|
|
441
|
+
interface EmailLabel {
|
|
442
|
+
id: string;
|
|
443
|
+
name: string;
|
|
444
|
+
type?: "system" | "user";
|
|
445
|
+
messagesTotal?: number;
|
|
446
|
+
messagesUnread?: number;
|
|
447
|
+
}
|
|
448
|
+
interface SendEmailInput {
|
|
449
|
+
to: string[];
|
|
450
|
+
cc?: string[];
|
|
451
|
+
bcc?: string[];
|
|
452
|
+
subject: string;
|
|
453
|
+
body: string;
|
|
454
|
+
bodyHtml?: string;
|
|
455
|
+
replyToMessageId?: string;
|
|
456
|
+
}
|
|
457
|
+
interface ListEmailMessagesOptions extends ListOptions {
|
|
458
|
+
query?: string;
|
|
459
|
+
labelIds?: string[];
|
|
460
|
+
}
|
|
461
|
+
interface CreateConnectionSessionRequest {
|
|
462
|
+
endUserId: string;
|
|
463
|
+
connectorSlug: string;
|
|
464
|
+
redirectUrl: string;
|
|
465
|
+
projectId?: string;
|
|
466
|
+
environment?: IntegrationEnvironment;
|
|
467
|
+
name?: string;
|
|
468
|
+
}
|
|
469
|
+
interface CreateConnectionSessionResponse {
|
|
470
|
+
authUrl: string;
|
|
471
|
+
sessionId: string;
|
|
472
|
+
state: string;
|
|
473
|
+
}
|
|
345
474
|
interface PassthroughRequest {
|
|
346
475
|
connectionId: string;
|
|
347
476
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -357,6 +486,7 @@ interface InitiateOAuthRequest {
|
|
|
357
486
|
environment?: IntegrationEnvironment;
|
|
358
487
|
name?: string;
|
|
359
488
|
redirectUrl: string;
|
|
489
|
+
endUserId?: string;
|
|
360
490
|
}
|
|
361
491
|
interface InitiateOAuthResponse {
|
|
362
492
|
authUrl: string;
|
|
@@ -467,6 +597,7 @@ interface ListConnectionsRequest {
|
|
|
467
597
|
environment?: IntegrationEnvironment;
|
|
468
598
|
connectorSlug?: string;
|
|
469
599
|
status?: Connection["status"];
|
|
600
|
+
endUserId?: string;
|
|
470
601
|
limit?: number;
|
|
471
602
|
}
|
|
472
603
|
interface ListConnectionsResponse {
|
|
@@ -564,6 +695,34 @@ declare class Productivity {
|
|
|
564
695
|
success: boolean;
|
|
565
696
|
}>;
|
|
566
697
|
}
|
|
698
|
+
/**
|
|
699
|
+
* Calendar operations client
|
|
700
|
+
*/
|
|
701
|
+
declare class CalendarClient {
|
|
702
|
+
private http;
|
|
703
|
+
constructor(http: HttpClient);
|
|
704
|
+
listCalendars(connectionId: string, options?: ListOptions): Promise<PaginatedResult<Calendar>>;
|
|
705
|
+
listEvents(connectionId: string, calendarId: string, options?: ListEventsOptions): Promise<PaginatedResult<CalendarEvent>>;
|
|
706
|
+
getEvent(connectionId: string, calendarId: string, eventId: string): Promise<CalendarEvent>;
|
|
707
|
+
createEvent(connectionId: string, calendarId: string, data: CreateCalendarEventInput): Promise<CalendarEvent>;
|
|
708
|
+
updateEvent(connectionId: string, calendarId: string, eventId: string, data: UpdateCalendarEventInput): Promise<CalendarEvent>;
|
|
709
|
+
deleteEvent(connectionId: string, calendarId: string, eventId: string): Promise<{
|
|
710
|
+
success: boolean;
|
|
711
|
+
}>;
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Mail (Email) operations client
|
|
715
|
+
*/
|
|
716
|
+
declare class Mail {
|
|
717
|
+
private http;
|
|
718
|
+
constructor(http: HttpClient);
|
|
719
|
+
listMessages(connectionId: string, options?: ListEmailMessagesOptions): Promise<PaginatedResult<EmailMessage>>;
|
|
720
|
+
getMessage(connectionId: string, messageId: string): Promise<EmailMessage>;
|
|
721
|
+
sendMessage(connectionId: string, data: SendEmailInput): Promise<EmailMessage>;
|
|
722
|
+
listThreads(connectionId: string, options?: ListEmailMessagesOptions): Promise<PaginatedResult<EmailThread>>;
|
|
723
|
+
getThread(connectionId: string, threadId: string): Promise<EmailThread>;
|
|
724
|
+
listLabels(connectionId: string): Promise<EmailLabel[]>;
|
|
725
|
+
}
|
|
567
726
|
/**
|
|
568
727
|
* Stack0 Integrations SDK Client
|
|
569
728
|
*
|
|
@@ -606,6 +765,8 @@ declare class Integrations {
|
|
|
606
765
|
storage: Storage;
|
|
607
766
|
communication: Communication;
|
|
608
767
|
productivity: Productivity;
|
|
768
|
+
calendar: CalendarClient;
|
|
769
|
+
mail: Mail;
|
|
609
770
|
constructor(config: HttpClientConfig);
|
|
610
771
|
/**
|
|
611
772
|
* List all available connectors
|
|
@@ -645,6 +806,20 @@ declare class Integrations {
|
|
|
645
806
|
* ```
|
|
646
807
|
*/
|
|
647
808
|
initiateOAuth(request: InitiateOAuthRequest): Promise<InitiateOAuthResponse>;
|
|
809
|
+
/**
|
|
810
|
+
* Create a connection session for an end user
|
|
811
|
+
*
|
|
812
|
+
* @example
|
|
813
|
+
* ```typescript
|
|
814
|
+
* const { authUrl, sessionId } = await integrations.createConnectionSession({
|
|
815
|
+
* endUserId: 'user_123',
|
|
816
|
+
* connectorSlug: 'google-calendar',
|
|
817
|
+
* redirectUrl: 'https://yourapp.com/oauth/callback',
|
|
818
|
+
* });
|
|
819
|
+
* // Redirect user to authUrl
|
|
820
|
+
* ```
|
|
821
|
+
*/
|
|
822
|
+
createConnectionSession(request: CreateConnectionSessionRequest): Promise<CreateConnectionSessionResponse>;
|
|
648
823
|
/**
|
|
649
824
|
* Complete OAuth flow with callback data
|
|
650
825
|
*
|
|
@@ -2476,6 +2651,26 @@ declare class Memory {
|
|
|
2476
2651
|
* ```
|
|
2477
2652
|
*/
|
|
2478
2653
|
|
|
2654
|
+
interface Project {
|
|
2655
|
+
id: string;
|
|
2656
|
+
name: string;
|
|
2657
|
+
slug: string;
|
|
2658
|
+
description?: string | null;
|
|
2659
|
+
iconUrl?: string | null;
|
|
2660
|
+
organizationId: string;
|
|
2661
|
+
createdAt: Date | string;
|
|
2662
|
+
updatedAt?: Date | string | null;
|
|
2663
|
+
}
|
|
2664
|
+
interface CreateProjectRequest {
|
|
2665
|
+
name: string;
|
|
2666
|
+
description?: string;
|
|
2667
|
+
}
|
|
2668
|
+
interface UpdateProjectRequest {
|
|
2669
|
+
id: string;
|
|
2670
|
+
name?: string;
|
|
2671
|
+
description?: string;
|
|
2672
|
+
iconUrl?: string | null;
|
|
2673
|
+
}
|
|
2479
2674
|
interface Stack0Config extends HttpClientConfig {
|
|
2480
2675
|
apiKey: string;
|
|
2481
2676
|
baseUrl?: string;
|
|
@@ -2490,10 +2685,14 @@ interface Stack0Config extends HttpClientConfig {
|
|
|
2490
2685
|
* Provides access to all Stack0 services
|
|
2491
2686
|
*/
|
|
2492
2687
|
declare class Stack0 {
|
|
2493
|
-
|
|
2688
|
+
private http;
|
|
2689
|
+
mail: Mail$1;
|
|
2494
2690
|
cdn: CDN;
|
|
2495
2691
|
screenshots: Screenshots;
|
|
2496
2692
|
extraction: Extraction;
|
|
2693
|
+
crawl: Crawl$;
|
|
2694
|
+
map: Map$;
|
|
2695
|
+
documents: Documents;
|
|
2497
2696
|
integrations: Integrations;
|
|
2498
2697
|
marketing: Marketing;
|
|
2499
2698
|
workflows: Workflows;
|
|
@@ -2503,6 +2702,14 @@ declare class Stack0 {
|
|
|
2503
2702
|
*/
|
|
2504
2703
|
webdata: Webdata;
|
|
2505
2704
|
constructor(config: Stack0Config);
|
|
2705
|
+
listProjects(): Promise<Project[]>;
|
|
2706
|
+
getProject(id: string): Promise<Project>;
|
|
2707
|
+
getProjectBySlug(slug: string): Promise<Project>;
|
|
2708
|
+
createProject(request: CreateProjectRequest): Promise<Project>;
|
|
2709
|
+
updateProject(request: UpdateProjectRequest): Promise<Project>;
|
|
2710
|
+
deleteProject(id: string): Promise<{
|
|
2711
|
+
success: boolean;
|
|
2712
|
+
}>;
|
|
2506
2713
|
}
|
|
2507
2714
|
|
|
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 };
|
|
2715
|
+
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, Crawl$ as Crawl, Crawl$, type CreateAgentRequest, type CreateAssetJobRequest, type CreateCalendarEventInput, type CreateCollectionRequest, type CreateCompanyInput, type CreateConnectionSessionRequest, type CreateConnectionSessionResponse, type CreateContactInput, type CreateContentRequest, type CreateDealInput, type CreateProjectRequest, type CreateScriptRequest, type CreateScriptVersionRequest, type CreateWorkflowRequest, type CreateWorkflowResponse, type CurrentUsageResponse, type Deal, type DeleteManyRequest, type DeleteScriptResponse, type DeleteWorkflowRequest, type DiscoverTrendsRequest, type DiscoverTrendsResponse, type DismissOpportunityRequest, Documents, 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, Map$ as Map, Map$, 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 Project, 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 UpdateProjectRequest, 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 };
|