@graph8/sdk 0.5.1 → 0.5.3

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 CHANGED
@@ -133,10 +133,13 @@ interface ResearchReport {
133
133
  * GET /api/v1/research-reports
134
134
  */
135
135
  declare const createStudioClient: (apiKey: string, apiUrl?: string) => {
136
- /** Org-level Studio documents (brand_brief, value_props, messaging_house, etc.). */
136
+ /** Org-level Studio documents (brand_brief, value_props, messaging_house, etc.).
137
+ * `include_content` defaults to true server-side, so each document includes
138
+ * its `content` body unless you explicitly pass `include_content: false`. */
137
139
  globalContext(params?: {
138
140
  category?: string;
139
141
  limit?: number;
142
+ include_content?: boolean;
140
143
  }): Promise<{
141
144
  data: GlobalContextDocument[];
142
145
  }>;
@@ -2218,6 +2221,8 @@ interface SequenceListParams {
2218
2221
  limit?: number;
2219
2222
  /** Filter by sequence status (e.g. "live", "draft", "paused"). */
2220
2223
  status?: string;
2224
+ /** Filter by sequence kind ("cold_outbound" or "nurture"). Omit to list all kinds. */
2225
+ sequence_kind?: SequenceKind;
2221
2226
  }
2222
2227
  interface SequenceDetail {
2223
2228
  id: string;
@@ -2231,6 +2236,10 @@ interface SequenceDetail {
2231
2236
  wait_for_new_contacts: boolean;
2232
2237
  paused_at: string | null;
2233
2238
  resumed_at: string | null;
2239
+ /** Sequence kind. Immutable after creation. "cold_outbound" (default) or "nurture". */
2240
+ sequence_kind?: string | null;
2241
+ /** Pinned mailbox for nurture sequences; null for cold_outbound. Immutable. */
2242
+ pinned_mailbox_id?: number | null;
2234
2243
  created_at: string | null;
2235
2244
  updated_at: string | null;
2236
2245
  }
@@ -2275,6 +2284,13 @@ interface SequenceChannelConfig {
2275
2284
  channel_type: string;
2276
2285
  channel_data?: Record<string, unknown>;
2277
2286
  }
2287
+ /**
2288
+ * Sequence kind. A "nurture" is an ordinary sequence with `sequence_kind:
2289
+ * "nurture"` — same step types as cold outreach, but pinned to a single mailbox
2290
+ * with a higher daily email cap. There is no separate nurture client; create one
2291
+ * via `sequences.create({ sequence_kind: "nurture", pinned_mailbox_id })`.
2292
+ */
2293
+ type SequenceKind = "cold_outbound" | "nurture";
2278
2294
  interface SequenceCreateParams {
2279
2295
  name: string;
2280
2296
  user_email: string;
@@ -2286,6 +2302,18 @@ interface SequenceCreateParams {
2286
2302
  steps?: SequenceStepConfig[];
2287
2303
  channels?: SequenceChannelConfig[];
2288
2304
  campaign_id?: string;
2305
+ /**
2306
+ * Sequence kind. Defaults to "cold_outbound" server-side. Immutable after
2307
+ * creation. "nurture" requires `pinned_mailbox_id` and is gated by the
2308
+ * ENABLE_NURTURE feature flag.
2309
+ */
2310
+ sequence_kind?: SequenceKind;
2311
+ /**
2312
+ * Mailbox to pin for a nurture sequence. Required when
2313
+ * `sequence_kind: "nurture"`; all email channels must use this mailbox.
2314
+ * Ignored for cold_outbound sequences.
2315
+ */
2316
+ pinned_mailbox_id?: number;
2289
2317
  }
2290
2318
  interface SequenceCreateResult {
2291
2319
  id: string;
@@ -3369,6 +3397,7 @@ declare class G8 {
3369
3397
  globalContext(params?: {
3370
3398
  category?: string;
3371
3399
  limit?: number;
3400
+ include_content?: boolean;
3372
3401
  }): Promise<{
3373
3402
  data: GlobalContextDocument[];
3374
3403
  }>;
@@ -3420,4 +3449,4 @@ declare class G8 {
3420
3449
  /** Singleton g8 client instance. */
3421
3450
  declare const g8: G8;
3422
3451
 
3423
- export { type AddToSequenceConfig, type AnalyticsOverview, type Booking, type BookingRequest, type CalendarConfig, type CallAnalysis, type CallGradingResult, type Campaign, type CampaignCreateConfig, type CampaignStats, type ChatConfig, type Company, type CompanyColumn, type CompanyColumnCreateParams, type CompanyContact, type CompanyEnrichment, type CompanyListParams, type CompanyUpdateParams, type Contact, type ContactColumn, type ContactColumnCreateParams, type ContactCreateParams, type ContactDeal, type ContactList, type ContactListParams, type ContactUpdateParams, type CopilotConfig, type CreatedField, type Deal, type DealCreateParams, type DealListParams, type DealUpdateParams, type DialerAgentSummary, type DialerAgentsListParams, type DialerAgentsListResult, type DialerNumberInfo, type DialerNumbersListResult, type DialerReportFilters, type DialerReportMetric, type DialerSessionCreateParams, type DialerSessionCreateResult, type DialerSessionResumeResult, type DialerSessionStatus, type DialerSessionStatusUpdateResult, type DialerSessionSummary, type DialerSessionsListParams, type DialerSessionsListResult, type DialerStatsParams, type DialerStatsResult, type EmailVerification, type EnrichLookupResult, type EvidenceKey, type Field, type FieldCreateParams, type FieldDeleteParams, type G8Config, type G8PrivacyConfig, type GlobalContextDocument, type ICP, type IdentifyProperties, type InboxAssignResult, type InboxAssignee, type InboxChannel, type InboxContact, type InboxDraft, type InboxListParams, type InboxMessage, type InboxSendParams, type InboxSendResult, type InboxTag, type InboxTagResult, type InboxThread, type Integration, type IntelligenceData, type IntentCompany, type IntentContact, type IntentKeyword, type IntentPage, type IntentSignals, type IntentStats, type IntentVisitor, type LandingPage, type ListContact, type MeetingAnalysis, type MeetingAttendee, type MeetingDetail, type MeetingListParams, type MeetingSummary, type MeetingTranscriptLine, type MissedCallback, type MissedCallbacksResult, type NodeTypeSchema, type Note, type PaginationMeta$1 as PaginationMeta, type PersonEnrichment, type Persona, type Pipeline, type PipelineStage, type PipelineSuggestion, type QuotableProduct, type QuoteCreateParams, type QuoteDetail, type QuoteLineItem, type QuoteListParams, type QuoteSendParams, type QuoteSettings, type QuoteStatus, type QuoteSummary, type QuoteUpdateParams, type ResearchReport, type SearchFilter, type SearchResults, type Sequence, type SequenceActionResult, type SequenceAnalytics, type SequenceChannelConfig, type SequenceContactItem, type SequenceContactsParams, type SequenceCreateParams, type SequenceCreateResult, type SequenceDetail, type SequenceListItem, type SequenceListParams, type SequencePreview, type SequencePreviewChannel, type SequencePreviewStep, type SequenceStepConfig, type SequenceStepInputType, type SequenceStepType, type SequenceStepUpdateParams, type SequenceUpdateParams, type SetFieldValueParams, type Skill, type SkillCreateAPIParams, type SkillCreateLLMParams, type SkillInputField, type SkillListParams, type SkillTemplate, type SkillType, type SkillUpdateAPIParams, type SkillUpdateLLMParams, type StageCreateParams, type StagePipeline, type StagePipelineCreateParams, type StagePipelineStage, type StagePipelineUpdateParams, type StageUpdateParams, type Task, type TaskCreateParams, type TaskListParams, type TaskUpdateParams, type TimeSlot, type TrackProperties, type VisitorCompany, type VisitorScore, type VoicePagination, type VoiceSession, type WebhookEvent, type Workflow, type WorkflowConfig, type WorkflowConnection, type WorkflowCreateParams, type WorkflowExecution, type WorkflowListParams, type WorkflowNode, type WorkflowUpdateParams, g8 };
3452
+ export { type AddToSequenceConfig, type AnalyticsOverview, type Booking, type BookingRequest, type CalendarConfig, type CallAnalysis, type CallGradingResult, type Campaign, type CampaignCreateConfig, type CampaignStats, type ChatConfig, type Company, type CompanyColumn, type CompanyColumnCreateParams, type CompanyContact, type CompanyEnrichment, type CompanyListParams, type CompanyUpdateParams, type Contact, type ContactColumn, type ContactColumnCreateParams, type ContactCreateParams, type ContactDeal, type ContactList, type ContactListParams, type ContactUpdateParams, type CopilotConfig, type CreatedField, type Deal, type DealCreateParams, type DealListParams, type DealUpdateParams, type DialerAgentSummary, type DialerAgentsListParams, type DialerAgentsListResult, type DialerNumberInfo, type DialerNumbersListResult, type DialerReportFilters, type DialerReportMetric, type DialerSessionCreateParams, type DialerSessionCreateResult, type DialerSessionResumeResult, type DialerSessionStatus, type DialerSessionStatusUpdateResult, type DialerSessionSummary, type DialerSessionsListParams, type DialerSessionsListResult, type DialerStatsParams, type DialerStatsResult, type EmailVerification, type EnrichLookupResult, type EvidenceKey, type Field, type FieldCreateParams, type FieldDeleteParams, type G8Config, type G8PrivacyConfig, type GlobalContextDocument, type ICP, type IdentifyProperties, type InboxAssignResult, type InboxAssignee, type InboxChannel, type InboxContact, type InboxDraft, type InboxListParams, type InboxMessage, type InboxSendParams, type InboxSendResult, type InboxTag, type InboxTagResult, type InboxThread, type Integration, type IntelligenceData, type IntentCompany, type IntentContact, type IntentKeyword, type IntentPage, type IntentSignals, type IntentStats, type IntentVisitor, type LandingPage, type ListContact, type MeetingAnalysis, type MeetingAttendee, type MeetingDetail, type MeetingListParams, type MeetingSummary, type MeetingTranscriptLine, type MissedCallback, type MissedCallbacksResult, type NodeTypeSchema, type Note, type PaginationMeta$1 as PaginationMeta, type PersonEnrichment, type Persona, type Pipeline, type PipelineStage, type PipelineSuggestion, type QuotableProduct, type QuoteCreateParams, type QuoteDetail, type QuoteLineItem, type QuoteListParams, type QuoteSendParams, type QuoteSettings, type QuoteStatus, type QuoteSummary, type QuoteUpdateParams, type ResearchReport, type SearchFilter, type SearchResults, type Sequence, type SequenceActionResult, type SequenceAnalytics, type SequenceChannelConfig, type SequenceContactItem, type SequenceContactsParams, type SequenceCreateParams, type SequenceCreateResult, type SequenceDetail, type SequenceKind, type SequenceListItem, type SequenceListParams, type SequencePreview, type SequencePreviewChannel, type SequencePreviewStep, type SequenceStepConfig, type SequenceStepInputType, type SequenceStepType, type SequenceStepUpdateParams, type SequenceUpdateParams, type SetFieldValueParams, type Skill, type SkillCreateAPIParams, type SkillCreateLLMParams, type SkillInputField, type SkillListParams, type SkillTemplate, type SkillType, type SkillUpdateAPIParams, type SkillUpdateLLMParams, type StageCreateParams, type StagePipeline, type StagePipelineCreateParams, type StagePipelineStage, type StagePipelineUpdateParams, type StageUpdateParams, type Task, type TaskCreateParams, type TaskListParams, type TaskUpdateParams, type TimeSlot, type TrackProperties, type VisitorCompany, type VisitorScore, type VoicePagination, type VoiceSession, type WebhookEvent, type Workflow, type WorkflowConfig, type WorkflowConnection, type WorkflowCreateParams, type WorkflowExecution, type WorkflowListParams, type WorkflowNode, type WorkflowUpdateParams, g8 };
package/dist/index.d.ts CHANGED
@@ -133,10 +133,13 @@ interface ResearchReport {
133
133
  * GET /api/v1/research-reports
134
134
  */
135
135
  declare const createStudioClient: (apiKey: string, apiUrl?: string) => {
136
- /** Org-level Studio documents (brand_brief, value_props, messaging_house, etc.). */
136
+ /** Org-level Studio documents (brand_brief, value_props, messaging_house, etc.).
137
+ * `include_content` defaults to true server-side, so each document includes
138
+ * its `content` body unless you explicitly pass `include_content: false`. */
137
139
  globalContext(params?: {
138
140
  category?: string;
139
141
  limit?: number;
142
+ include_content?: boolean;
140
143
  }): Promise<{
141
144
  data: GlobalContextDocument[];
142
145
  }>;
@@ -2218,6 +2221,8 @@ interface SequenceListParams {
2218
2221
  limit?: number;
2219
2222
  /** Filter by sequence status (e.g. "live", "draft", "paused"). */
2220
2223
  status?: string;
2224
+ /** Filter by sequence kind ("cold_outbound" or "nurture"). Omit to list all kinds. */
2225
+ sequence_kind?: SequenceKind;
2221
2226
  }
2222
2227
  interface SequenceDetail {
2223
2228
  id: string;
@@ -2231,6 +2236,10 @@ interface SequenceDetail {
2231
2236
  wait_for_new_contacts: boolean;
2232
2237
  paused_at: string | null;
2233
2238
  resumed_at: string | null;
2239
+ /** Sequence kind. Immutable after creation. "cold_outbound" (default) or "nurture". */
2240
+ sequence_kind?: string | null;
2241
+ /** Pinned mailbox for nurture sequences; null for cold_outbound. Immutable. */
2242
+ pinned_mailbox_id?: number | null;
2234
2243
  created_at: string | null;
2235
2244
  updated_at: string | null;
2236
2245
  }
@@ -2275,6 +2284,13 @@ interface SequenceChannelConfig {
2275
2284
  channel_type: string;
2276
2285
  channel_data?: Record<string, unknown>;
2277
2286
  }
2287
+ /**
2288
+ * Sequence kind. A "nurture" is an ordinary sequence with `sequence_kind:
2289
+ * "nurture"` — same step types as cold outreach, but pinned to a single mailbox
2290
+ * with a higher daily email cap. There is no separate nurture client; create one
2291
+ * via `sequences.create({ sequence_kind: "nurture", pinned_mailbox_id })`.
2292
+ */
2293
+ type SequenceKind = "cold_outbound" | "nurture";
2278
2294
  interface SequenceCreateParams {
2279
2295
  name: string;
2280
2296
  user_email: string;
@@ -2286,6 +2302,18 @@ interface SequenceCreateParams {
2286
2302
  steps?: SequenceStepConfig[];
2287
2303
  channels?: SequenceChannelConfig[];
2288
2304
  campaign_id?: string;
2305
+ /**
2306
+ * Sequence kind. Defaults to "cold_outbound" server-side. Immutable after
2307
+ * creation. "nurture" requires `pinned_mailbox_id` and is gated by the
2308
+ * ENABLE_NURTURE feature flag.
2309
+ */
2310
+ sequence_kind?: SequenceKind;
2311
+ /**
2312
+ * Mailbox to pin for a nurture sequence. Required when
2313
+ * `sequence_kind: "nurture"`; all email channels must use this mailbox.
2314
+ * Ignored for cold_outbound sequences.
2315
+ */
2316
+ pinned_mailbox_id?: number;
2289
2317
  }
2290
2318
  interface SequenceCreateResult {
2291
2319
  id: string;
@@ -3369,6 +3397,7 @@ declare class G8 {
3369
3397
  globalContext(params?: {
3370
3398
  category?: string;
3371
3399
  limit?: number;
3400
+ include_content?: boolean;
3372
3401
  }): Promise<{
3373
3402
  data: GlobalContextDocument[];
3374
3403
  }>;
@@ -3420,4 +3449,4 @@ declare class G8 {
3420
3449
  /** Singleton g8 client instance. */
3421
3450
  declare const g8: G8;
3422
3451
 
3423
- export { type AddToSequenceConfig, type AnalyticsOverview, type Booking, type BookingRequest, type CalendarConfig, type CallAnalysis, type CallGradingResult, type Campaign, type CampaignCreateConfig, type CampaignStats, type ChatConfig, type Company, type CompanyColumn, type CompanyColumnCreateParams, type CompanyContact, type CompanyEnrichment, type CompanyListParams, type CompanyUpdateParams, type Contact, type ContactColumn, type ContactColumnCreateParams, type ContactCreateParams, type ContactDeal, type ContactList, type ContactListParams, type ContactUpdateParams, type CopilotConfig, type CreatedField, type Deal, type DealCreateParams, type DealListParams, type DealUpdateParams, type DialerAgentSummary, type DialerAgentsListParams, type DialerAgentsListResult, type DialerNumberInfo, type DialerNumbersListResult, type DialerReportFilters, type DialerReportMetric, type DialerSessionCreateParams, type DialerSessionCreateResult, type DialerSessionResumeResult, type DialerSessionStatus, type DialerSessionStatusUpdateResult, type DialerSessionSummary, type DialerSessionsListParams, type DialerSessionsListResult, type DialerStatsParams, type DialerStatsResult, type EmailVerification, type EnrichLookupResult, type EvidenceKey, type Field, type FieldCreateParams, type FieldDeleteParams, type G8Config, type G8PrivacyConfig, type GlobalContextDocument, type ICP, type IdentifyProperties, type InboxAssignResult, type InboxAssignee, type InboxChannel, type InboxContact, type InboxDraft, type InboxListParams, type InboxMessage, type InboxSendParams, type InboxSendResult, type InboxTag, type InboxTagResult, type InboxThread, type Integration, type IntelligenceData, type IntentCompany, type IntentContact, type IntentKeyword, type IntentPage, type IntentSignals, type IntentStats, type IntentVisitor, type LandingPage, type ListContact, type MeetingAnalysis, type MeetingAttendee, type MeetingDetail, type MeetingListParams, type MeetingSummary, type MeetingTranscriptLine, type MissedCallback, type MissedCallbacksResult, type NodeTypeSchema, type Note, type PaginationMeta$1 as PaginationMeta, type PersonEnrichment, type Persona, type Pipeline, type PipelineStage, type PipelineSuggestion, type QuotableProduct, type QuoteCreateParams, type QuoteDetail, type QuoteLineItem, type QuoteListParams, type QuoteSendParams, type QuoteSettings, type QuoteStatus, type QuoteSummary, type QuoteUpdateParams, type ResearchReport, type SearchFilter, type SearchResults, type Sequence, type SequenceActionResult, type SequenceAnalytics, type SequenceChannelConfig, type SequenceContactItem, type SequenceContactsParams, type SequenceCreateParams, type SequenceCreateResult, type SequenceDetail, type SequenceListItem, type SequenceListParams, type SequencePreview, type SequencePreviewChannel, type SequencePreviewStep, type SequenceStepConfig, type SequenceStepInputType, type SequenceStepType, type SequenceStepUpdateParams, type SequenceUpdateParams, type SetFieldValueParams, type Skill, type SkillCreateAPIParams, type SkillCreateLLMParams, type SkillInputField, type SkillListParams, type SkillTemplate, type SkillType, type SkillUpdateAPIParams, type SkillUpdateLLMParams, type StageCreateParams, type StagePipeline, type StagePipelineCreateParams, type StagePipelineStage, type StagePipelineUpdateParams, type StageUpdateParams, type Task, type TaskCreateParams, type TaskListParams, type TaskUpdateParams, type TimeSlot, type TrackProperties, type VisitorCompany, type VisitorScore, type VoicePagination, type VoiceSession, type WebhookEvent, type Workflow, type WorkflowConfig, type WorkflowConnection, type WorkflowCreateParams, type WorkflowExecution, type WorkflowListParams, type WorkflowNode, type WorkflowUpdateParams, g8 };
3452
+ export { type AddToSequenceConfig, type AnalyticsOverview, type Booking, type BookingRequest, type CalendarConfig, type CallAnalysis, type CallGradingResult, type Campaign, type CampaignCreateConfig, type CampaignStats, type ChatConfig, type Company, type CompanyColumn, type CompanyColumnCreateParams, type CompanyContact, type CompanyEnrichment, type CompanyListParams, type CompanyUpdateParams, type Contact, type ContactColumn, type ContactColumnCreateParams, type ContactCreateParams, type ContactDeal, type ContactList, type ContactListParams, type ContactUpdateParams, type CopilotConfig, type CreatedField, type Deal, type DealCreateParams, type DealListParams, type DealUpdateParams, type DialerAgentSummary, type DialerAgentsListParams, type DialerAgentsListResult, type DialerNumberInfo, type DialerNumbersListResult, type DialerReportFilters, type DialerReportMetric, type DialerSessionCreateParams, type DialerSessionCreateResult, type DialerSessionResumeResult, type DialerSessionStatus, type DialerSessionStatusUpdateResult, type DialerSessionSummary, type DialerSessionsListParams, type DialerSessionsListResult, type DialerStatsParams, type DialerStatsResult, type EmailVerification, type EnrichLookupResult, type EvidenceKey, type Field, type FieldCreateParams, type FieldDeleteParams, type G8Config, type G8PrivacyConfig, type GlobalContextDocument, type ICP, type IdentifyProperties, type InboxAssignResult, type InboxAssignee, type InboxChannel, type InboxContact, type InboxDraft, type InboxListParams, type InboxMessage, type InboxSendParams, type InboxSendResult, type InboxTag, type InboxTagResult, type InboxThread, type Integration, type IntelligenceData, type IntentCompany, type IntentContact, type IntentKeyword, type IntentPage, type IntentSignals, type IntentStats, type IntentVisitor, type LandingPage, type ListContact, type MeetingAnalysis, type MeetingAttendee, type MeetingDetail, type MeetingListParams, type MeetingSummary, type MeetingTranscriptLine, type MissedCallback, type MissedCallbacksResult, type NodeTypeSchema, type Note, type PaginationMeta$1 as PaginationMeta, type PersonEnrichment, type Persona, type Pipeline, type PipelineStage, type PipelineSuggestion, type QuotableProduct, type QuoteCreateParams, type QuoteDetail, type QuoteLineItem, type QuoteListParams, type QuoteSendParams, type QuoteSettings, type QuoteStatus, type QuoteSummary, type QuoteUpdateParams, type ResearchReport, type SearchFilter, type SearchResults, type Sequence, type SequenceActionResult, type SequenceAnalytics, type SequenceChannelConfig, type SequenceContactItem, type SequenceContactsParams, type SequenceCreateParams, type SequenceCreateResult, type SequenceDetail, type SequenceKind, type SequenceListItem, type SequenceListParams, type SequencePreview, type SequencePreviewChannel, type SequencePreviewStep, type SequenceStepConfig, type SequenceStepInputType, type SequenceStepType, type SequenceStepUpdateParams, type SequenceUpdateParams, type SetFieldValueParams, type Skill, type SkillCreateAPIParams, type SkillCreateLLMParams, type SkillInputField, type SkillListParams, type SkillTemplate, type SkillType, type SkillUpdateAPIParams, type SkillUpdateLLMParams, type StageCreateParams, type StagePipeline, type StagePipelineCreateParams, type StagePipelineStage, type StagePipelineUpdateParams, type StageUpdateParams, type Task, type TaskCreateParams, type TaskListParams, type TaskUpdateParams, type TimeSlot, type TrackProperties, type VisitorCompany, type VisitorScore, type VoicePagination, type VoiceSession, type WebhookEvent, type Workflow, type WorkflowConfig, type WorkflowConnection, type WorkflowCreateParams, type WorkflowExecution, type WorkflowListParams, type WorkflowNode, type WorkflowUpdateParams, g8 };
package/dist/index.js CHANGED
@@ -1991,7 +1991,9 @@ var createStudioClient = (apiKey, apiUrl) => {
1991
1991
  return resp.json();
1992
1992
  };
1993
1993
  return {
1994
- /** Org-level Studio documents (brand_brief, value_props, messaging_house, etc.). */
1994
+ /** Org-level Studio documents (brand_brief, value_props, messaging_house, etc.).
1995
+ * `include_content` defaults to true server-side, so each document includes
1996
+ * its `content` body unless you explicitly pass `include_content: false`. */
1995
1997
  async globalContext(params = {}) {
1996
1998
  return get("/global-context/documents", params);
1997
1999
  },