cf-service-sdk 0.0.48 → 0.0.49

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.
@@ -93,34 +93,6 @@ export type Scalars = {
93
93
  output: any;
94
94
  };
95
95
  };
96
- /** Response type for AI agent chat. */
97
- export type AiAgentChatResponse = {
98
- __typename?: 'AIAgentChatResponse';
99
- conversationId?: Maybe<Scalars['String']['output']>;
100
- error?: Maybe<Scalars['String']['output']>;
101
- requiresExecution?: Maybe<Scalars['Boolean']['output']>;
102
- response?: Maybe<Scalars['String']['output']>;
103
- success?: Maybe<Scalars['Boolean']['output']>;
104
- toolCalls?: Maybe<Array<Maybe<ToolCallType>>>;
105
- toolResults?: Maybe<Array<Maybe<ToolResultType>>>;
106
- };
107
- /** Response type for continuing after tool execution. */
108
- export type AiAgentContinueResponse = {
109
- __typename?: 'AIAgentContinueResponse';
110
- error?: Maybe<Scalars['String']['output']>;
111
- requiresExecution?: Maybe<Scalars['Boolean']['output']>;
112
- response?: Maybe<Scalars['String']['output']>;
113
- success?: Maybe<Scalars['Boolean']['output']>;
114
- toolCalls?: Maybe<Array<Maybe<ToolCallType>>>;
115
- toolResults?: Maybe<Array<Maybe<ToolResultType>>>;
116
- };
117
- /** Response type for tool execution. */
118
- export type AiAgentExecuteResponse = {
119
- __typename?: 'AIAgentExecuteResponse';
120
- error?: Maybe<Scalars['String']['output']>;
121
- results?: Maybe<Array<Maybe<ToolResultType>>>;
122
- success?: Maybe<Scalars['Boolean']['output']>;
123
- };
124
96
  /** AcceptInvitation - Accept an invitation to join an account */
125
97
  export type AcceptInvitation = {
126
98
  __typename?: 'AcceptInvitation';
@@ -179,15 +151,6 @@ export type AddSegmentToCampaign = {
179
151
  success?: Maybe<Scalars['Boolean']['output']>;
180
152
  };
181
153
  /** An enumeration. */
182
- export declare enum AgentConversationMessageRoleChoices {
183
- /** Assistant */
184
- Assistant = "ASSISTANT",
185
- /** System */
186
- System = "SYSTEM",
187
- /** User */
188
- User = "USER"
189
- }
190
- /** An enumeration. */
191
154
  export declare enum AppAccountInvitationStatusChoices {
192
155
  /** Accepted */
193
156
  Accepted = "ACCEPTED",
@@ -597,10 +560,16 @@ export type CampaignContactItemType = {
597
560
  __typename?: 'CampaignContactItemType';
598
561
  /** City of the contact */
599
562
  companyCity?: Maybe<Scalars['String']['output']>;
563
+ /** Company ID of the contact */
564
+ companyId?: Maybe<Scalars['ID']['output']>;
600
565
  /** Company name of the contact */
601
566
  companyName?: Maybe<Scalars['String']['output']>;
602
567
  /** State of the contact */
603
568
  companyState?: Maybe<Scalars['String']['output']>;
569
+ /** ID of the contact */
570
+ contactId?: Maybe<Scalars['ID']['output']>;
571
+ /** ID of the custom contact */
572
+ customContactId?: Maybe<Scalars['ID']['output']>;
604
573
  /** Email of the contact */
605
574
  email?: Maybe<Scalars['String']['output']>;
606
575
  /** First name of the contact */
@@ -609,6 +578,8 @@ export type CampaignContactItemType = {
609
578
  lastName?: Maybe<Scalars['String']['output']>;
610
579
  /** Phone of the contact */
611
580
  phone?: Maybe<Scalars['String']['output']>;
581
+ /** Title of the contact */
582
+ title?: Maybe<Scalars['String']['output']>;
612
583
  };
613
584
  /** Statistics for a contact within a specific campaign */
614
585
  export type CampaignContactStatsType = {
@@ -993,6 +964,8 @@ export type CompanyObject = {
993
964
  isCustomer: Scalars['Boolean']['output'];
994
965
  isProspect?: Maybe<Scalars['Boolean']['output']>;
995
966
  keywords?: Maybe<Scalars['String']['output']>;
967
+ /** Most recent contact date across all contacts and company notes */
968
+ lastContactedAt?: Maybe<Scalars['DateTime']['output']>;
996
969
  linkedinUrl?: Maybe<Scalars['String']['output']>;
997
970
  location?: Maybe<Scalars['String']['output']>;
998
971
  /** List of all company locations */
@@ -1187,36 +1160,6 @@ export type ContactStatsType = {
1187
1160
  /** Total number of emails replied to */
1188
1161
  totalReplied?: Maybe<Scalars['Int']['output']>;
1189
1162
  };
1190
- /** Type for conversation history list. */
1191
- export type ConversationHistoryType = {
1192
- __typename?: 'ConversationHistoryType';
1193
- conversations?: Maybe<Array<Maybe<ConversationType>>>;
1194
- totalCount?: Maybe<Scalars['Int']['output']>;
1195
- };
1196
- /** GraphQL type for ConversationMessage model. */
1197
- export type ConversationMessageType = Node & {
1198
- __typename?: 'ConversationMessageType';
1199
- content: Scalars['JSONString']['output'];
1200
- conversation?: Maybe<ConversationType>;
1201
- createdAt: Scalars['DateTime']['output'];
1202
- /** The ID of the object */
1203
- id: Scalars['ID']['output'];
1204
- role: AgentConversationMessageRoleChoices;
1205
- /** Tool calls made by the assistant */
1206
- toolCalls?: Maybe<Scalars['JSONString']['output']>;
1207
- /** Results from tool executions */
1208
- toolResults?: Maybe<Scalars['JSONString']['output']>;
1209
- };
1210
- /** GraphQL type for Conversation model. */
1211
- export type ConversationType = Node & {
1212
- __typename?: 'ConversationType';
1213
- createdAt: Scalars['DateTime']['output'];
1214
- /** The ID of the object */
1215
- id: Scalars['ID']['output'];
1216
- messages?: Maybe<Array<Maybe<ConversationMessageType>>>;
1217
- updatedAt: Scalars['DateTime']['output'];
1218
- user?: Maybe<UserType>;
1219
- };
1220
1163
  export type CreateCallCampaign = {
1221
1164
  __typename?: 'CreateCallCampaign';
1222
1165
  callCampaign?: Maybe<CallCampaignObject>;
@@ -1302,7 +1245,7 @@ export type CustomContactInput = {
1302
1245
  companyCity?: InputMaybe<Scalars['String']['input']>;
1303
1246
  companyName?: InputMaybe<Scalars['String']['input']>;
1304
1247
  companyState?: InputMaybe<Scalars['String']['input']>;
1305
- email: Scalars['String']['input'];
1248
+ email?: InputMaybe<Scalars['String']['input']>;
1306
1249
  firstName?: InputMaybe<Scalars['String']['input']>;
1307
1250
  id?: InputMaybe<Scalars['ID']['input']>;
1308
1251
  lastName?: InputMaybe<Scalars['String']['input']>;
@@ -1349,12 +1292,6 @@ export type DeleteContact = {
1349
1292
  __typename?: 'DeleteContact';
1350
1293
  success?: Maybe<Scalars['Boolean']['output']>;
1351
1294
  };
1352
- /** Mutation for deleting a conversation. */
1353
- export type DeleteConversation = {
1354
- __typename?: 'DeleteConversation';
1355
- message?: Maybe<Scalars['String']['output']>;
1356
- success?: Maybe<Scalars['Boolean']['output']>;
1357
- };
1358
1295
  /** DeleteEmailTemplate - Delete an email template (only if owned by user's account) */
1359
1296
  export type DeleteEmailTemplate = {
1360
1297
  __typename?: 'DeleteEmailTemplate';
@@ -1618,12 +1555,6 @@ export type Mutation = {
1618
1555
  addContactsToSegment?: Maybe<AddContactsToSegment>;
1619
1556
  addSegmentToCallCampaign?: Maybe<AddSegmentToCallCampaign>;
1620
1557
  addSegmentToCampaign?: Maybe<AddSegmentToCampaign>;
1621
- /** Mutation for chatting with the AI agent. */
1622
- aiAgentChat?: Maybe<AiAgentChatResponse>;
1623
- /** Mutation for continuing conversation after tool execution. */
1624
- aiAgentContinue?: Maybe<AiAgentContinueResponse>;
1625
- /** Mutation for executing tool calls. */
1626
- aiAgentExecute?: Maybe<AiAgentExecuteResponse>;
1627
1558
  cancelCampaign?: Maybe<CancelCampaign>;
1628
1559
  /** CancelInvitation - Cancel a pending invitation (admin only) */
1629
1560
  cancelInvitation?: Maybe<CancelInvitation>;
@@ -1650,8 +1581,6 @@ export type Mutation = {
1650
1581
  deleteCompany?: Maybe<DeleteCompany>;
1651
1582
  deleteCompanyNote?: Maybe<DeleteCompanyNote>;
1652
1583
  deleteContact?: Maybe<DeleteContact>;
1653
- /** Mutation for deleting a conversation. */
1654
- deleteConversation?: Maybe<DeleteConversation>;
1655
1584
  /** DeleteEmailTemplate - Delete an email template (only if owned by user's account) */
1656
1585
  deleteEmailTemplate?: Maybe<DeleteEmailTemplate>;
1657
1586
  /** Delete a notification */
@@ -1750,22 +1679,6 @@ export type MutationAddSegmentToCampaignArgs = {
1750
1679
  segmentId: Scalars['ID']['input'];
1751
1680
  };
1752
1681
  /** Mutations */
1753
- export type MutationAiAgentChatArgs = {
1754
- conversationId?: InputMaybe<Scalars['String']['input']>;
1755
- enableTools?: InputMaybe<Scalars['Boolean']['input']>;
1756
- message: Scalars['String']['input'];
1757
- };
1758
- /** Mutations */
1759
- export type MutationAiAgentContinueArgs = {
1760
- conversationId: Scalars['String']['input'];
1761
- toolResults: Array<InputMaybe<Scalars['JSONString']['input']>>;
1762
- };
1763
- /** Mutations */
1764
- export type MutationAiAgentExecuteArgs = {
1765
- conversationId: Scalars['String']['input'];
1766
- toolCalls: Array<InputMaybe<Scalars['JSONString']['input']>>;
1767
- };
1768
- /** Mutations */
1769
1682
  export type MutationCancelCampaignArgs = {
1770
1683
  id: Scalars['ID']['input'];
1771
1684
  };
@@ -1842,10 +1755,6 @@ export type MutationDeleteContactArgs = {
1842
1755
  id?: InputMaybe<Scalars['ID']['input']>;
1843
1756
  };
1844
1757
  /** Mutations */
1845
- export type MutationDeleteConversationArgs = {
1846
- conversationId: Scalars['String']['input'];
1847
- };
1848
- /** Mutations */
1849
1758
  export type MutationDeleteEmailTemplateArgs = {
1850
1759
  uuid: Scalars['UUID']['input'];
1851
1760
  };
@@ -1915,7 +1824,7 @@ export type MutationRejectInvitationArgs = {
1915
1824
  export type MutationRemoveContactsFromCampaignArgs = {
1916
1825
  campaignId: Scalars['ID']['input'];
1917
1826
  contactIds?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
1918
- emailAddresses?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
1827
+ customContactIds?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
1919
1828
  };
1920
1829
  /** Mutations */
1921
1830
  export type MutationRemoveContactsFromSegmentArgs = {
@@ -2046,11 +1955,6 @@ export type MyInvitationsType = {
2046
1955
  status: Scalars['String']['output'];
2047
1956
  token: Scalars['String']['output'];
2048
1957
  };
2049
- /** An object with an ID */
2050
- export type Node = {
2051
- /** The ID of the object */
2052
- id: Scalars['ID']['output'];
2053
- };
2054
1958
  /** GraphQL type for Notification model */
2055
1959
  export type NotificationType = {
2056
1960
  __typename?: 'NotificationType';
@@ -2265,8 +2169,6 @@ export type Query = {
2265
2169
  contacts?: Maybe<Array<Maybe<ContactObject>>>;
2266
2170
  /** Get paginated list of contacts in a segment */
2267
2171
  contactsInSegment?: Maybe<PaginatedContactList>;
2268
- conversation?: Maybe<ConversationType>;
2269
- conversationHistory?: Maybe<ConversationHistoryType>;
2270
2172
  currentAccount?: Maybe<AccountType>;
2271
2173
  /** Get dashboard statistics across different features */
2272
2174
  dashboardStats?: Maybe<DashboardStatsType>;
@@ -2348,6 +2250,8 @@ export type QueryCampaignAnalyticsArgs = {
2348
2250
  /** Query */
2349
2251
  export type QueryCampaignContactsArgs = {
2350
2252
  campaignUuid: Scalars['ID']['input'];
2253
+ page?: InputMaybe<Scalars['Int']['input']>;
2254
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
2351
2255
  };
2352
2256
  /** Query */
2353
2257
  export type QueryCampaignLogsArgs = {
@@ -2396,15 +2300,6 @@ export type QueryContactsInSegmentArgs = {
2396
2300
  segmentId: Scalars['ID']['input'];
2397
2301
  };
2398
2302
  /** Query */
2399
- export type QueryConversationArgs = {
2400
- conversationId: Scalars['String']['input'];
2401
- };
2402
- /** Query */
2403
- export type QueryConversationHistoryArgs = {
2404
- limit?: InputMaybe<Scalars['Int']['input']>;
2405
- offset?: InputMaybe<Scalars['Int']['input']>;
2406
- };
2407
- /** Query */
2408
2303
  export type QueryDashboardStatsArgs = {
2409
2304
  endDate?: InputMaybe<Scalars['DateTime']['input']>;
2410
2305
  startDate?: InputMaybe<Scalars['DateTime']['input']>;
@@ -2761,23 +2656,6 @@ export type TasksResponse = {
2761
2656
  pagination?: Maybe<PaginationInfo>;
2762
2657
  stats?: Maybe<TaskStatsObject>;
2763
2658
  };
2764
- /** Type for tool calls. */
2765
- export type ToolCallType = {
2766
- __typename?: 'ToolCallType';
2767
- id?: Maybe<Scalars['String']['output']>;
2768
- input?: Maybe<Scalars['JSONString']['output']>;
2769
- name?: Maybe<Scalars['String']['output']>;
2770
- type?: Maybe<Scalars['String']['output']>;
2771
- };
2772
- /** Type for tool execution results. */
2773
- export type ToolResultType = {
2774
- __typename?: 'ToolResultType';
2775
- error?: Maybe<Scalars['String']['output']>;
2776
- result?: Maybe<Scalars['JSONString']['output']>;
2777
- success?: Maybe<Scalars['Boolean']['output']>;
2778
- toolUseId?: Maybe<Scalars['String']['output']>;
2779
- type?: Maybe<Scalars['String']['output']>;
2780
- };
2781
2659
  export type UsStateData = {
2782
2660
  __typename?: 'USStateData';
2783
2661
  /** State abbreviation */
@@ -3183,86 +3061,6 @@ export type AddSegmentToCampaignMutation = {
3183
3061
  } | null;
3184
3062
  } | null;
3185
3063
  };
3186
- export type AiAgentChatMutationVariables = Exact<{
3187
- conversationId?: InputMaybe<Scalars['String']['input']>;
3188
- enableTools?: InputMaybe<Scalars['Boolean']['input']>;
3189
- message: Scalars['String']['input'];
3190
- }>;
3191
- export type AiAgentChatMutation = {
3192
- __typename?: 'Mutation';
3193
- aiAgentChat?: {
3194
- __typename?: 'AIAgentChatResponse';
3195
- success?: boolean | null;
3196
- conversationId?: string | null;
3197
- response?: string | null;
3198
- requiresExecution?: boolean | null;
3199
- error?: string | null;
3200
- toolCalls?: Array<{
3201
- __typename?: 'ToolCallType';
3202
- type?: string | null;
3203
- id?: string | null;
3204
- name?: string | null;
3205
- input?: any | null;
3206
- } | null> | null;
3207
- toolResults?: Array<{
3208
- __typename?: 'ToolResultType';
3209
- toolUseId?: string | null;
3210
- type?: string | null;
3211
- success?: boolean | null;
3212
- result?: any | null;
3213
- error?: string | null;
3214
- } | null> | null;
3215
- } | null;
3216
- };
3217
- export type AiAgentContinueMutationVariables = Exact<{
3218
- conversationId: Scalars['String']['input'];
3219
- toolResults: Array<InputMaybe<Scalars['JSONString']['input']>> | InputMaybe<Scalars['JSONString']['input']>;
3220
- }>;
3221
- export type AiAgentContinueMutation = {
3222
- __typename?: 'Mutation';
3223
- aiAgentContinue?: {
3224
- __typename?: 'AIAgentContinueResponse';
3225
- success?: boolean | null;
3226
- response?: string | null;
3227
- requiresExecution?: boolean | null;
3228
- error?: string | null;
3229
- toolCalls?: Array<{
3230
- __typename?: 'ToolCallType';
3231
- type?: string | null;
3232
- id?: string | null;
3233
- name?: string | null;
3234
- input?: any | null;
3235
- } | null> | null;
3236
- toolResults?: Array<{
3237
- __typename?: 'ToolResultType';
3238
- toolUseId?: string | null;
3239
- type?: string | null;
3240
- success?: boolean | null;
3241
- result?: any | null;
3242
- error?: string | null;
3243
- } | null> | null;
3244
- } | null;
3245
- };
3246
- export type AiAgentExecuteMutationVariables = Exact<{
3247
- conversationId: Scalars['String']['input'];
3248
- toolCalls: Array<InputMaybe<Scalars['JSONString']['input']>> | InputMaybe<Scalars['JSONString']['input']>;
3249
- }>;
3250
- export type AiAgentExecuteMutation = {
3251
- __typename?: 'Mutation';
3252
- aiAgentExecute?: {
3253
- __typename?: 'AIAgentExecuteResponse';
3254
- success?: boolean | null;
3255
- error?: string | null;
3256
- results?: Array<{
3257
- __typename?: 'ToolResultType';
3258
- toolUseId?: string | null;
3259
- type?: string | null;
3260
- success?: boolean | null;
3261
- result?: any | null;
3262
- error?: string | null;
3263
- } | null> | null;
3264
- } | null;
3265
- };
3266
3064
  export type CancelCampaignMutationVariables = Exact<{
3267
3065
  id: Scalars['ID']['input'];
3268
3066
  }>;
@@ -3759,6 +3557,7 @@ export type CreateCompanyMutation = {
3759
3557
  ownedByUser?: boolean | null;
3760
3558
  isProspect?: boolean | null;
3761
3559
  purchaseMetalConfidence?: number | null;
3560
+ lastContactedAt?: any | null;
3762
3561
  tags?: Array<{
3763
3562
  __typename?: 'TagObject';
3764
3563
  id?: string | null;
@@ -5062,17 +4861,6 @@ export type DeleteContactMutation = {
5062
4861
  success?: boolean | null;
5063
4862
  } | null;
5064
4863
  };
5065
- export type DeleteConversationMutationVariables = Exact<{
5066
- conversationId: Scalars['String']['input'];
5067
- }>;
5068
- export type DeleteConversationMutation = {
5069
- __typename?: 'Mutation';
5070
- deleteConversation?: {
5071
- __typename?: 'DeleteConversation';
5072
- success?: boolean | null;
5073
- message?: string | null;
5074
- } | null;
5075
- };
5076
4864
  export type DeleteEmailTemplateMutationVariables = Exact<{
5077
4865
  uuid: Scalars['UUID']['input'];
5078
4866
  }>;
@@ -5404,7 +5192,7 @@ export type RejectInvitationMutation = {
5404
5192
  export type RemoveContactsFromCampaignMutationVariables = Exact<{
5405
5193
  campaignId: Scalars['ID']['input'];
5406
5194
  contactIds?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>> | InputMaybe<Scalars['ID']['input']>>;
5407
- emailAddresses?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
5195
+ customContactIds?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>> | InputMaybe<Scalars['ID']['input']>>;
5408
5196
  }>;
5409
5197
  export type RemoveContactsFromCampaignMutation = {
5410
5198
  __typename?: 'Mutation';
@@ -6348,6 +6136,7 @@ export type UpdateCompanyMutation = {
6348
6136
  ownedByUser?: boolean | null;
6349
6137
  isProspect?: boolean | null;
6350
6138
  purchaseMetalConfidence?: number | null;
6139
+ lastContactedAt?: any | null;
6351
6140
  tags?: Array<{
6352
6141
  __typename?: 'TagObject';
6353
6142
  id?: string | null;
@@ -8473,6 +8262,8 @@ export type CampaignAnalyticsQuery = {
8473
8262
  };
8474
8263
  export type CampaignContactsQueryVariables = Exact<{
8475
8264
  campaignUuid: Scalars['ID']['input'];
8265
+ page?: InputMaybe<Scalars['Int']['input']>;
8266
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
8476
8267
  }>;
8477
8268
  export type CampaignContactsQuery = {
8478
8269
  __typename?: 'Query';
@@ -8484,10 +8275,14 @@ export type CampaignContactsQuery = {
8484
8275
  firstName?: string | null;
8485
8276
  lastName?: string | null;
8486
8277
  email?: string | null;
8278
+ title?: string | null;
8279
+ companyId?: string | null;
8487
8280
  companyName?: string | null;
8488
8281
  companyCity?: string | null;
8489
8282
  companyState?: string | null;
8490
8283
  phone?: string | null;
8284
+ contactId?: string | null;
8285
+ customContactId?: string | null;
8491
8286
  } | null> | null;
8492
8287
  pagination?: {
8493
8288
  __typename?: 'PaginationInfo';
@@ -8866,6 +8661,7 @@ export type CompaniesQuery = {
8866
8661
  ownedByUser?: boolean | null;
8867
8662
  isProspect?: boolean | null;
8868
8663
  purchaseMetalConfidence?: number | null;
8664
+ lastContactedAt?: any | null;
8869
8665
  tags?: Array<{
8870
8666
  __typename?: 'TagObject';
8871
8667
  id?: string | null;
@@ -9443,6 +9239,7 @@ export type CompanyQuery = {
9443
9239
  ownedByUser?: boolean | null;
9444
9240
  isProspect?: boolean | null;
9445
9241
  purchaseMetalConfidence?: number | null;
9242
+ lastContactedAt?: any | null;
9446
9243
  tags?: Array<{
9447
9244
  __typename?: 'TagObject';
9448
9245
  id?: string | null;
@@ -10898,69 +10695,6 @@ export type ContactsInSegmentQuery = {
10898
10695
  } | null;
10899
10696
  } | null;
10900
10697
  };
10901
- export type ConversationQueryVariables = Exact<{
10902
- conversationId: Scalars['String']['input'];
10903
- }>;
10904
- export type ConversationQuery = {
10905
- __typename?: 'Query';
10906
- conversation?: {
10907
- __typename?: 'ConversationType';
10908
- id: string;
10909
- createdAt: any;
10910
- updatedAt: any;
10911
- user?: {
10912
- __typename?: 'UserType';
10913
- id?: string | null;
10914
- email?: string | null;
10915
- firstName?: string | null;
10916
- lastName?: string | null;
10917
- picture?: string | null;
10918
- } | null;
10919
- messages?: Array<{
10920
- __typename?: 'ConversationMessageType';
10921
- id: string;
10922
- role: AgentConversationMessageRoleChoices;
10923
- content: any;
10924
- toolCalls?: any | null;
10925
- toolResults?: any | null;
10926
- createdAt: any;
10927
- } | null> | null;
10928
- } | null;
10929
- };
10930
- export type ConversationHistoryQueryVariables = Exact<{
10931
- limit?: InputMaybe<Scalars['Int']['input']>;
10932
- offset?: InputMaybe<Scalars['Int']['input']>;
10933
- }>;
10934
- export type ConversationHistoryQuery = {
10935
- __typename?: 'Query';
10936
- conversationHistory?: {
10937
- __typename?: 'ConversationHistoryType';
10938
- totalCount?: number | null;
10939
- conversations?: Array<{
10940
- __typename?: 'ConversationType';
10941
- id: string;
10942
- createdAt: any;
10943
- updatedAt: any;
10944
- user?: {
10945
- __typename?: 'UserType';
10946
- id?: string | null;
10947
- email?: string | null;
10948
- firstName?: string | null;
10949
- lastName?: string | null;
10950
- picture?: string | null;
10951
- } | null;
10952
- messages?: Array<{
10953
- __typename?: 'ConversationMessageType';
10954
- id: string;
10955
- role: AgentConversationMessageRoleChoices;
10956
- content: any;
10957
- toolCalls?: any | null;
10958
- toolResults?: any | null;
10959
- createdAt: any;
10960
- } | null> | null;
10961
- } | null> | null;
10962
- } | null;
10963
- };
10964
10698
  export type CurrentAccountQueryVariables = Exact<{
10965
10699
  [key: string]: never;
10966
10700
  }>;
@@ -11355,6 +11089,7 @@ export type RecentHistoryQuery = {
11355
11089
  ownedByUser?: boolean | null;
11356
11090
  isProspect?: boolean | null;
11357
11091
  purchaseMetalConfidence?: number | null;
11092
+ lastContactedAt?: any | null;
11358
11093
  tags?: Array<{
11359
11094
  __typename?: 'TagObject';
11360
11095
  id?: string | null;
@@ -12506,89 +12241,6 @@ export declare function useAddSegmentToCampaignMutation(baseOptions?: Apollo.Mut
12506
12241
  export type AddSegmentToCampaignMutationHookResult = ReturnType<typeof useAddSegmentToCampaignMutation>;
12507
12242
  export type AddSegmentToCampaignMutationResult = Apollo.MutationResult<AddSegmentToCampaignMutation>;
12508
12243
  export type AddSegmentToCampaignMutationOptions = Apollo.BaseMutationOptions<AddSegmentToCampaignMutation, AddSegmentToCampaignMutationVariables>;
12509
- export declare const AiAgentChatDocument: Apollo.DocumentNode;
12510
- export type AiAgentChatMutationFn = Apollo.MutationFunction<AiAgentChatMutation, AiAgentChatMutationVariables>;
12511
- /**
12512
- * __useAiAgentChatMutation__
12513
- *
12514
- * To run a mutation, you first call `useAiAgentChatMutation` within a React component and pass it any options that fit your needs.
12515
- * When your component renders, `useAiAgentChatMutation` returns a tuple that includes:
12516
- * - A mutate function that you can call at any time to execute the mutation
12517
- * - An object with fields that represent the current status of the mutation's execution
12518
- *
12519
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
12520
- *
12521
- * @example
12522
- * const [aiAgentChatMutation, { data, loading, error }] = useAiAgentChatMutation({
12523
- * variables: {
12524
- * conversationId: // value for 'conversationId'
12525
- * enableTools: // value for 'enableTools'
12526
- * message: // value for 'message'
12527
- * },
12528
- * });
12529
- */
12530
- export declare function useAiAgentChatMutation(baseOptions?: Apollo.MutationHookOptions<AiAgentChatMutation, AiAgentChatMutationVariables>): Apollo.MutationTuple<AiAgentChatMutation, Exact<{
12531
- conversationId?: InputMaybe<Scalars["String"]["input"]>;
12532
- enableTools?: InputMaybe<Scalars["Boolean"]["input"]>;
12533
- message: Scalars["String"]["input"];
12534
- }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
12535
- export type AiAgentChatMutationHookResult = ReturnType<typeof useAiAgentChatMutation>;
12536
- export type AiAgentChatMutationResult = Apollo.MutationResult<AiAgentChatMutation>;
12537
- export type AiAgentChatMutationOptions = Apollo.BaseMutationOptions<AiAgentChatMutation, AiAgentChatMutationVariables>;
12538
- export declare const AiAgentContinueDocument: Apollo.DocumentNode;
12539
- export type AiAgentContinueMutationFn = Apollo.MutationFunction<AiAgentContinueMutation, AiAgentContinueMutationVariables>;
12540
- /**
12541
- * __useAiAgentContinueMutation__
12542
- *
12543
- * To run a mutation, you first call `useAiAgentContinueMutation` within a React component and pass it any options that fit your needs.
12544
- * When your component renders, `useAiAgentContinueMutation` returns a tuple that includes:
12545
- * - A mutate function that you can call at any time to execute the mutation
12546
- * - An object with fields that represent the current status of the mutation's execution
12547
- *
12548
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
12549
- *
12550
- * @example
12551
- * const [aiAgentContinueMutation, { data, loading, error }] = useAiAgentContinueMutation({
12552
- * variables: {
12553
- * conversationId: // value for 'conversationId'
12554
- * toolResults: // value for 'toolResults'
12555
- * },
12556
- * });
12557
- */
12558
- export declare function useAiAgentContinueMutation(baseOptions?: Apollo.MutationHookOptions<AiAgentContinueMutation, AiAgentContinueMutationVariables>): Apollo.MutationTuple<AiAgentContinueMutation, Exact<{
12559
- conversationId: Scalars["String"]["input"];
12560
- toolResults: Array<InputMaybe<Scalars["JSONString"]["input"]>> | InputMaybe<Scalars["JSONString"]["input"]>;
12561
- }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
12562
- export type AiAgentContinueMutationHookResult = ReturnType<typeof useAiAgentContinueMutation>;
12563
- export type AiAgentContinueMutationResult = Apollo.MutationResult<AiAgentContinueMutation>;
12564
- export type AiAgentContinueMutationOptions = Apollo.BaseMutationOptions<AiAgentContinueMutation, AiAgentContinueMutationVariables>;
12565
- export declare const AiAgentExecuteDocument: Apollo.DocumentNode;
12566
- export type AiAgentExecuteMutationFn = Apollo.MutationFunction<AiAgentExecuteMutation, AiAgentExecuteMutationVariables>;
12567
- /**
12568
- * __useAiAgentExecuteMutation__
12569
- *
12570
- * To run a mutation, you first call `useAiAgentExecuteMutation` within a React component and pass it any options that fit your needs.
12571
- * When your component renders, `useAiAgentExecuteMutation` returns a tuple that includes:
12572
- * - A mutate function that you can call at any time to execute the mutation
12573
- * - An object with fields that represent the current status of the mutation's execution
12574
- *
12575
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
12576
- *
12577
- * @example
12578
- * const [aiAgentExecuteMutation, { data, loading, error }] = useAiAgentExecuteMutation({
12579
- * variables: {
12580
- * conversationId: // value for 'conversationId'
12581
- * toolCalls: // value for 'toolCalls'
12582
- * },
12583
- * });
12584
- */
12585
- export declare function useAiAgentExecuteMutation(baseOptions?: Apollo.MutationHookOptions<AiAgentExecuteMutation, AiAgentExecuteMutationVariables>): Apollo.MutationTuple<AiAgentExecuteMutation, Exact<{
12586
- conversationId: Scalars["String"]["input"];
12587
- toolCalls: Array<InputMaybe<Scalars["JSONString"]["input"]>> | InputMaybe<Scalars["JSONString"]["input"]>;
12588
- }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
12589
- export type AiAgentExecuteMutationHookResult = ReturnType<typeof useAiAgentExecuteMutation>;
12590
- export type AiAgentExecuteMutationResult = Apollo.MutationResult<AiAgentExecuteMutation>;
12591
- export type AiAgentExecuteMutationOptions = Apollo.BaseMutationOptions<AiAgentExecuteMutation, AiAgentExecuteMutationVariables>;
12592
12244
  export declare const CancelCampaignDocument: Apollo.DocumentNode;
12593
12245
  export type CancelCampaignMutationFn = Apollo.MutationFunction<CancelCampaignMutation, CancelCampaignMutationVariables>;
12594
12246
  /**
@@ -13088,31 +12740,6 @@ export declare function useDeleteContactMutation(baseOptions?: Apollo.MutationHo
13088
12740
  export type DeleteContactMutationHookResult = ReturnType<typeof useDeleteContactMutation>;
13089
12741
  export type DeleteContactMutationResult = Apollo.MutationResult<DeleteContactMutation>;
13090
12742
  export type DeleteContactMutationOptions = Apollo.BaseMutationOptions<DeleteContactMutation, DeleteContactMutationVariables>;
13091
- export declare const DeleteConversationDocument: Apollo.DocumentNode;
13092
- export type DeleteConversationMutationFn = Apollo.MutationFunction<DeleteConversationMutation, DeleteConversationMutationVariables>;
13093
- /**
13094
- * __useDeleteConversationMutation__
13095
- *
13096
- * To run a mutation, you first call `useDeleteConversationMutation` within a React component and pass it any options that fit your needs.
13097
- * When your component renders, `useDeleteConversationMutation` returns a tuple that includes:
13098
- * - A mutate function that you can call at any time to execute the mutation
13099
- * - An object with fields that represent the current status of the mutation's execution
13100
- *
13101
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
13102
- *
13103
- * @example
13104
- * const [deleteConversationMutation, { data, loading, error }] = useDeleteConversationMutation({
13105
- * variables: {
13106
- * conversationId: // value for 'conversationId'
13107
- * },
13108
- * });
13109
- */
13110
- export declare function useDeleteConversationMutation(baseOptions?: Apollo.MutationHookOptions<DeleteConversationMutation, DeleteConversationMutationVariables>): Apollo.MutationTuple<DeleteConversationMutation, Exact<{
13111
- conversationId: Scalars["String"]["input"];
13112
- }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
13113
- export type DeleteConversationMutationHookResult = ReturnType<typeof useDeleteConversationMutation>;
13114
- export type DeleteConversationMutationResult = Apollo.MutationResult<DeleteConversationMutation>;
13115
- export type DeleteConversationMutationOptions = Apollo.BaseMutationOptions<DeleteConversationMutation, DeleteConversationMutationVariables>;
13116
12743
  export declare const DeleteEmailTemplateDocument: Apollo.DocumentNode;
13117
12744
  export type DeleteEmailTemplateMutationFn = Apollo.MutationFunction<DeleteEmailTemplateMutation, DeleteEmailTemplateMutationVariables>;
13118
12745
  /**
@@ -13565,14 +13192,14 @@ export type RemoveContactsFromCampaignMutationFn = Apollo.MutationFunction<Remov
13565
13192
  * variables: {
13566
13193
  * campaignId: // value for 'campaignId'
13567
13194
  * contactIds: // value for 'contactIds'
13568
- * emailAddresses: // value for 'emailAddresses'
13195
+ * customContactIds: // value for 'customContactIds'
13569
13196
  * },
13570
13197
  * });
13571
13198
  */
13572
13199
  export declare function useRemoveContactsFromCampaignMutation(baseOptions?: Apollo.MutationHookOptions<RemoveContactsFromCampaignMutation, RemoveContactsFromCampaignMutationVariables>): Apollo.MutationTuple<RemoveContactsFromCampaignMutation, Exact<{
13573
13200
  campaignId: Scalars["ID"]["input"];
13574
13201
  contactIds?: InputMaybe<Array<InputMaybe<Scalars["ID"]["input"]>> | InputMaybe<Scalars["ID"]["input"]>>;
13575
- emailAddresses?: InputMaybe<Array<InputMaybe<Scalars["String"]["input"]>> | InputMaybe<Scalars["String"]["input"]>>;
13202
+ customContactIds?: InputMaybe<Array<InputMaybe<Scalars["ID"]["input"]>> | InputMaybe<Scalars["ID"]["input"]>>;
13576
13203
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
13577
13204
  export type RemoveContactsFromCampaignMutationHookResult = ReturnType<typeof useRemoveContactsFromCampaignMutation>;
13578
13205
  export type RemoveContactsFromCampaignMutationResult = Apollo.MutationResult<RemoveContactsFromCampaignMutation>;
@@ -14619,6 +14246,8 @@ export declare const CampaignContactsDocument: Apollo.DocumentNode;
14619
14246
  * const { data, loading, error } = useCampaignContactsQuery({
14620
14247
  * variables: {
14621
14248
  * campaignUuid: // value for 'campaignUuid'
14249
+ * page: // value for 'page'
14250
+ * pageSize: // value for 'pageSize'
14622
14251
  * },
14623
14252
  * });
14624
14253
  */
@@ -14629,12 +14258,18 @@ export declare function useCampaignContactsQuery(baseOptions: Apollo.QueryHookOp
14629
14258
  skip: boolean;
14630
14259
  })): Apollo.QueryResult<CampaignContactsQuery, Exact<{
14631
14260
  campaignUuid: Scalars["ID"]["input"];
14261
+ page?: InputMaybe<Scalars["Int"]["input"]>;
14262
+ pageSize?: InputMaybe<Scalars["Int"]["input"]>;
14632
14263
  }>>;
14633
14264
  export declare function useCampaignContactsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CampaignContactsQuery, CampaignContactsQueryVariables>): Apollo.LazyQueryResultTuple<CampaignContactsQuery, Exact<{
14634
14265
  campaignUuid: Scalars["ID"]["input"];
14266
+ page?: InputMaybe<Scalars["Int"]["input"]>;
14267
+ pageSize?: InputMaybe<Scalars["Int"]["input"]>;
14635
14268
  }>>;
14636
14269
  export declare function useCampaignContactsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<CampaignContactsQuery, CampaignContactsQueryVariables>): Apollo.UseSuspenseQueryResult<CampaignContactsQuery | undefined, Exact<{
14637
14270
  campaignUuid: Scalars["ID"]["input"];
14271
+ page?: InputMaybe<Scalars["Int"]["input"]>;
14272
+ pageSize?: InputMaybe<Scalars["Int"]["input"]>;
14638
14273
  }>>;
14639
14274
  export type CampaignContactsQueryHookResult = ReturnType<typeof useCampaignContactsQuery>;
14640
14275
  export type CampaignContactsLazyQueryHookResult = ReturnType<typeof useCampaignContactsLazyQuery>;
@@ -14999,75 +14634,6 @@ export type ContactsInSegmentQueryHookResult = ReturnType<typeof useContactsInSe
14999
14634
  export type ContactsInSegmentLazyQueryHookResult = ReturnType<typeof useContactsInSegmentLazyQuery>;
15000
14635
  export type ContactsInSegmentSuspenseQueryHookResult = ReturnType<typeof useContactsInSegmentSuspenseQuery>;
15001
14636
  export type ContactsInSegmentQueryResult = Apollo.QueryResult<ContactsInSegmentQuery, ContactsInSegmentQueryVariables>;
15002
- export declare const ConversationDocument: Apollo.DocumentNode;
15003
- /**
15004
- * __useConversationQuery__
15005
- *
15006
- * To run a query within a React component, call `useConversationQuery` and pass it any options that fit your needs.
15007
- * When your component renders, `useConversationQuery` returns an object from Apollo Client that contains loading, error, and data properties
15008
- * you can use to render your UI.
15009
- *
15010
- * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
15011
- *
15012
- * @example
15013
- * const { data, loading, error } = useConversationQuery({
15014
- * variables: {
15015
- * conversationId: // value for 'conversationId'
15016
- * },
15017
- * });
15018
- */
15019
- export declare function useConversationQuery(baseOptions: Apollo.QueryHookOptions<ConversationQuery, ConversationQueryVariables> & ({
15020
- variables: ConversationQueryVariables;
15021
- skip?: boolean;
15022
- } | {
15023
- skip: boolean;
15024
- })): Apollo.QueryResult<ConversationQuery, Exact<{
15025
- conversationId: Scalars["String"]["input"];
15026
- }>>;
15027
- export declare function useConversationLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConversationQuery, ConversationQueryVariables>): Apollo.LazyQueryResultTuple<ConversationQuery, Exact<{
15028
- conversationId: Scalars["String"]["input"];
15029
- }>>;
15030
- export declare function useConversationSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ConversationQuery, ConversationQueryVariables>): Apollo.UseSuspenseQueryResult<ConversationQuery | undefined, Exact<{
15031
- conversationId: Scalars["String"]["input"];
15032
- }>>;
15033
- export type ConversationQueryHookResult = ReturnType<typeof useConversationQuery>;
15034
- export type ConversationLazyQueryHookResult = ReturnType<typeof useConversationLazyQuery>;
15035
- export type ConversationSuspenseQueryHookResult = ReturnType<typeof useConversationSuspenseQuery>;
15036
- export type ConversationQueryResult = Apollo.QueryResult<ConversationQuery, ConversationQueryVariables>;
15037
- export declare const ConversationHistoryDocument: Apollo.DocumentNode;
15038
- /**
15039
- * __useConversationHistoryQuery__
15040
- *
15041
- * To run a query within a React component, call `useConversationHistoryQuery` and pass it any options that fit your needs.
15042
- * When your component renders, `useConversationHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties
15043
- * you can use to render your UI.
15044
- *
15045
- * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
15046
- *
15047
- * @example
15048
- * const { data, loading, error } = useConversationHistoryQuery({
15049
- * variables: {
15050
- * limit: // value for 'limit'
15051
- * offset: // value for 'offset'
15052
- * },
15053
- * });
15054
- */
15055
- export declare function useConversationHistoryQuery(baseOptions?: Apollo.QueryHookOptions<ConversationHistoryQuery, ConversationHistoryQueryVariables>): Apollo.QueryResult<ConversationHistoryQuery, Exact<{
15056
- limit?: InputMaybe<Scalars["Int"]["input"]>;
15057
- offset?: InputMaybe<Scalars["Int"]["input"]>;
15058
- }>>;
15059
- export declare function useConversationHistoryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConversationHistoryQuery, ConversationHistoryQueryVariables>): Apollo.LazyQueryResultTuple<ConversationHistoryQuery, Exact<{
15060
- limit?: InputMaybe<Scalars["Int"]["input"]>;
15061
- offset?: InputMaybe<Scalars["Int"]["input"]>;
15062
- }>>;
15063
- export declare function useConversationHistorySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ConversationHistoryQuery, ConversationHistoryQueryVariables>): Apollo.UseSuspenseQueryResult<ConversationHistoryQuery | undefined, Exact<{
15064
- limit?: InputMaybe<Scalars["Int"]["input"]>;
15065
- offset?: InputMaybe<Scalars["Int"]["input"]>;
15066
- }>>;
15067
- export type ConversationHistoryQueryHookResult = ReturnType<typeof useConversationHistoryQuery>;
15068
- export type ConversationHistoryLazyQueryHookResult = ReturnType<typeof useConversationHistoryLazyQuery>;
15069
- export type ConversationHistorySuspenseQueryHookResult = ReturnType<typeof useConversationHistorySuspenseQuery>;
15070
- export type ConversationHistoryQueryResult = Apollo.QueryResult<ConversationHistoryQuery, ConversationHistoryQueryVariables>;
15071
14637
  export declare const CurrentAccountDocument: Apollo.DocumentNode;
15072
14638
  /**
15073
14639
  * __useCurrentAccountQuery__