@sortlist/cli 0.30.0 → 0.31.0

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.
@@ -335,13 +335,10 @@ export type AgentPickedEvent = ConversationEventInterface & {
335
335
  turn: Scalars['Int']['output'];
336
336
  };
337
337
 
338
- /**
339
- * A persisted, user-facing task milestone the assistant worked on during a reply.
340
- * Reconstructs the live task list when a past conversation is reloaded.
341
- */
338
+ /** Federation reference to a AgentTask owned by another subgraph. */
342
339
  export type AgentTask = Node & {
343
340
  __typename?: 'AgentTask';
344
- /** GlobalID-encoded agent task id. */
341
+ /** GlobalID-encoded AgentTask id. */
345
342
  id: Scalars['ID']['output'];
346
343
  /** Final state of the step. */
347
344
  status: AgentTaskStatus;
@@ -467,7 +464,7 @@ export type BillingCreditEdge = Node & {
467
464
  node?: Maybe<BillingCredit>;
468
465
  };
469
466
 
470
- /** A customer in the billing subgraph. One per Company in Max. */
467
+ /** Federation reference to a BillingCustomer owned by another subgraph. */
471
468
  export type BillingCustomer = Node & {
472
469
  __typename?: 'BillingCustomer';
473
470
  /**
@@ -486,7 +483,7 @@ export type BillingCustomer = Node & {
486
483
  defaultPaymentMethod?: Maybe<BillingPaymentMethod>;
487
484
  /** Customer's billing email, mirrored from Stripe. May lag the Max user's email until the next customer.updated webhook. */
488
485
  email?: Maybe<Scalars['String']['output']>;
489
- /** Billing customer UUID. Stored on Max's `companies.billing_customer_id`. */
486
+ /** GlobalID-encoded BillingCustomer id. */
490
487
  id: Scalars['ID']['output'];
491
488
  /** Paginated invoices and credit notes for this customer, newest first. */
492
489
  invoices: BillingInvoiceConnection;
@@ -501,7 +498,7 @@ export type BillingCustomer = Node & {
501
498
  };
502
499
 
503
500
 
504
- /** A customer in the billing subgraph. One per Company in Max. */
501
+ /** Federation reference to a BillingCustomer owned by another subgraph. */
505
502
  export type BillingCustomerCreditsArgs = {
506
503
  after?: InputMaybe<Scalars['String']['input']>;
507
504
  before?: InputMaybe<Scalars['String']['input']>;
@@ -511,7 +508,7 @@ export type BillingCustomerCreditsArgs = {
511
508
  };
512
509
 
513
510
 
514
- /** A customer in the billing subgraph. One per Company in Max. */
511
+ /** Federation reference to a BillingCustomer owned by another subgraph. */
515
512
  export type BillingCustomerInvoicesArgs = {
516
513
  after?: InputMaybe<Scalars['String']['input']>;
517
514
  before?: InputMaybe<Scalars['String']['input']>;
@@ -790,7 +787,7 @@ export type ClearConversationInput = {
790
787
  conversationId: Scalars['ID']['input'];
791
788
  };
792
789
 
793
- /** A Max-tenant company that owns ICPs and leads. */
790
+ /** Federation reference to a Company owned by another subgraph. */
794
791
  export type Company = Node & TrackableInterface & {
795
792
  __typename?: 'Company';
796
793
  /** Activity history where this entity is the subject, most recent first. */
@@ -810,12 +807,16 @@ export type Company = Node & TrackableInterface & {
810
807
  createdAt: Scalars['ISO8601DateTime']['output'];
811
808
  /** Short description for the workspace profile. */
812
809
  description?: Maybe<Scalars['String']['output']>;
810
+ /** GlobalID-encoded Company id. */
813
811
  id: Scalars['ID']['output'];
814
812
  /** All Ideal Customer Profiles attached to this company. */
815
813
  idealCustomerProfiles: IdealCustomerProfileConnection;
816
814
  /** Connected third-party tools. User-scoped integrations are filtered to the calling user. */
817
815
  integrations: IntegrationConnection;
818
- /** Paginated list of leads owned by this company, most recently sourced first. */
816
+ /**
817
+ * Paginated list of leads owned by this company, most recently active first (a
818
+ * new acquisition bumps the lead back to the top).
819
+ */
819
820
  leads: LeadConnection;
820
821
  /** Free-form company location (e.g. "Paris, France"). */
821
822
  location?: Maybe<Scalars['String']['output']>;
@@ -880,7 +881,7 @@ export type Company = Node & TrackableInterface & {
880
881
  };
881
882
 
882
883
 
883
- /** A Max-tenant company that owns ICPs and leads. */
884
+ /** Federation reference to a Company owned by another subgraph. */
884
885
  export type CompanyActivitiesArgs = {
885
886
  after?: InputMaybe<Scalars['String']['input']>;
886
887
  before?: InputMaybe<Scalars['String']['input']>;
@@ -890,7 +891,7 @@ export type CompanyActivitiesArgs = {
890
891
  };
891
892
 
892
893
 
893
- /** A Max-tenant company that owns ICPs and leads. */
894
+ /** Federation reference to a Company owned by another subgraph. */
894
895
  export type CompanyAvailableActionsArgs = {
895
896
  after?: InputMaybe<Scalars['String']['input']>;
896
897
  before?: InputMaybe<Scalars['String']['input']>;
@@ -899,7 +900,7 @@ export type CompanyAvailableActionsArgs = {
899
900
  };
900
901
 
901
902
 
902
- /** A Max-tenant company that owns ICPs and leads. */
903
+ /** Federation reference to a Company owned by another subgraph. */
903
904
  export type CompanyIdealCustomerProfilesArgs = {
904
905
  after?: InputMaybe<Scalars['String']['input']>;
905
906
  before?: InputMaybe<Scalars['String']['input']>;
@@ -908,7 +909,7 @@ export type CompanyIdealCustomerProfilesArgs = {
908
909
  };
909
910
 
910
911
 
911
- /** A Max-tenant company that owns ICPs and leads. */
912
+ /** Federation reference to a Company owned by another subgraph. */
912
913
  export type CompanyIntegrationsArgs = {
913
914
  after?: InputMaybe<Scalars['String']['input']>;
914
915
  before?: InputMaybe<Scalars['String']['input']>;
@@ -917,7 +918,7 @@ export type CompanyIntegrationsArgs = {
917
918
  };
918
919
 
919
920
 
920
- /** A Max-tenant company that owns ICPs and leads. */
921
+ /** Federation reference to a Company owned by another subgraph. */
921
922
  export type CompanyLeadsArgs = {
922
923
  after?: InputMaybe<Scalars['String']['input']>;
923
924
  before?: InputMaybe<Scalars['String']['input']>;
@@ -926,7 +927,7 @@ export type CompanyLeadsArgs = {
926
927
  };
927
928
 
928
929
 
929
- /** A Max-tenant company that owns ICPs and leads. */
930
+ /** Federation reference to a Company owned by another subgraph. */
930
931
  export type CompanyMembersArgs = {
931
932
  after?: InputMaybe<Scalars['String']['input']>;
932
933
  before?: InputMaybe<Scalars['String']['input']>;
@@ -935,7 +936,7 @@ export type CompanyMembersArgs = {
935
936
  };
936
937
 
937
938
 
938
- /** A Max-tenant company that owns ICPs and leads. */
939
+ /** Federation reference to a Company owned by another subgraph. */
939
940
  export type CompanyMemoriesArgs = {
940
941
  after?: InputMaybe<Scalars['String']['input']>;
941
942
  before?: InputMaybe<Scalars['String']['input']>;
@@ -944,7 +945,7 @@ export type CompanyMemoriesArgs = {
944
945
  };
945
946
 
946
947
 
947
- /** A Max-tenant company that owns ICPs and leads. */
948
+ /** Federation reference to a Company owned by another subgraph. */
948
949
  export type CompanyOnboardingTasksArgs = {
949
950
  after?: InputMaybe<Scalars['String']['input']>;
950
951
  before?: InputMaybe<Scalars['String']['input']>;
@@ -953,7 +954,7 @@ export type CompanyOnboardingTasksArgs = {
953
954
  };
954
955
 
955
956
 
956
- /** A Max-tenant company that owns ICPs and leads. */
957
+ /** Federation reference to a Company owned by another subgraph. */
957
958
  export type CompanyOutboundCampaignsArgs = {
958
959
  after?: InputMaybe<Scalars['String']['input']>;
959
960
  before?: InputMaybe<Scalars['String']['input']>;
@@ -963,7 +964,7 @@ export type CompanyOutboundCampaignsArgs = {
963
964
  };
964
965
 
965
966
 
966
- /** A Max-tenant company that owns ICPs and leads. */
967
+ /** Federation reference to a Company owned by another subgraph. */
967
968
  export type CompanyPendingInvitationsArgs = {
968
969
  after?: InputMaybe<Scalars['String']['input']>;
969
970
  before?: InputMaybe<Scalars['String']['input']>;
@@ -972,7 +973,7 @@ export type CompanyPendingInvitationsArgs = {
972
973
  };
973
974
 
974
975
 
975
- /** A Max-tenant company that owns ICPs and leads. */
976
+ /** Federation reference to a Company owned by another subgraph. */
976
977
  export type CompanyRoutinesArgs = {
977
978
  after?: InputMaybe<Scalars['String']['input']>;
978
979
  before?: InputMaybe<Scalars['String']['input']>;
@@ -981,7 +982,7 @@ export type CompanyRoutinesArgs = {
981
982
  };
982
983
 
983
984
 
984
- /** A Max-tenant company that owns ICPs and leads. */
985
+ /** Federation reference to a Company owned by another subgraph. */
985
986
  export type CompanySlackChannelsArgs = {
986
987
  after?: InputMaybe<Scalars['String']['input']>;
987
988
  before?: InputMaybe<Scalars['String']['input']>;
@@ -991,7 +992,7 @@ export type CompanySlackChannelsArgs = {
991
992
  };
992
993
 
993
994
 
994
- /** A Max-tenant company that owns ICPs and leads. */
995
+ /** Federation reference to a Company owned by another subgraph. */
995
996
  export type CompanySuggestionsArgs = {
996
997
  after?: InputMaybe<Scalars['String']['input']>;
997
998
  before?: InputMaybe<Scalars['String']['input']>;
@@ -1000,7 +1001,7 @@ export type CompanySuggestionsArgs = {
1000
1001
  };
1001
1002
 
1002
1003
 
1003
- /** A Max-tenant company that owns ICPs and leads. */
1004
+ /** Federation reference to a Company owned by another subgraph. */
1004
1005
  export type CompanyToneOfVoicesArgs = {
1005
1006
  after?: InputMaybe<Scalars['String']['input']>;
1006
1007
  before?: InputMaybe<Scalars['String']['input']>;
@@ -1031,18 +1032,7 @@ export type CompanyEdge = Node & {
1031
1032
  node?: Maybe<Company>;
1032
1033
  };
1033
1034
 
1034
- /** Autogenerated return type of CompanyIdentifyResult. */
1035
- export type CompanyIdentifyResultPayload = {
1036
- __typename?: 'CompanyIdentifyResultPayload';
1037
- externalId: Scalars['ID']['output'];
1038
- organization?: Maybe<Organization>;
1039
- };
1040
-
1041
- /**
1042
- * A company-wide onboarding task. Auto-seeded on Company creation; auto-completed
1043
- * by side effects (saving the first ICP completes `draft_ideal_customer_profile`;
1044
- * starting a trial completes `activate_trial`).
1045
- */
1035
+ /** Federation reference to a CompanyOnboardingTask owned by another subgraph. */
1046
1036
  export type CompanyOnboardingTask = Node & {
1047
1037
  __typename?: 'CompanyOnboardingTask';
1048
1038
  /**
@@ -1054,6 +1044,7 @@ export type CompanyOnboardingTask = Node & {
1054
1044
  /** Timestamp when the task transitioned to done. */
1055
1045
  completedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;
1056
1046
  createdAt: Scalars['ISO8601DateTime']['output'];
1047
+ /** GlobalID-encoded CompanyOnboardingTask id. */
1057
1048
  id: Scalars['ID']['output'];
1058
1049
  /** Stable identifier for the task (`draft_ideal_customer_profile`, `activate_trial`). */
1059
1050
  key: Scalars['String']['output'];
@@ -1299,6 +1290,49 @@ export type ContactIdentifyResultPayload = {
1299
1290
  externalId: Scalars['ID']['output'];
1300
1291
  };
1301
1292
 
1293
+ /** OneOf input for searchContact — supply exactly one lookup mode. */
1294
+ export type ContactLookupInput = {
1295
+ /** Global ID of an existing contact whose email should be discovered. */
1296
+ contactId?: InputMaybe<Scalars['ID']['input']>;
1297
+ /** Contact's email address — globally unique within an organization. */
1298
+ emailAddress?: InputMaybe<Scalars['String']['input']>;
1299
+ /** Contact's LinkedIn profile URL — globally unique within an organization. */
1300
+ linkedinUrl?: InputMaybe<Scalars['String']['input']>;
1301
+ /** Name-based lookup: first name + last name + organization. */
1302
+ name?: InputMaybe<ContactNameInput>;
1303
+ };
1304
+
1305
+ /** Name-based lookup for searchContact — first name, last name, and organization. */
1306
+ export type ContactNameInput = {
1307
+ /** Contact's first name. */
1308
+ firstName: Scalars['String']['input'];
1309
+ /** Contact's last name. */
1310
+ lastName: Scalars['String']['input'];
1311
+ /** Global ID of the organization this contact belongs to. */
1312
+ organizationId: Scalars['ID']['input'];
1313
+ };
1314
+
1315
+ /** Autogenerated return type of ContactSearchResult. */
1316
+ export type ContactSearchResultPayload = {
1317
+ __typename?: 'ContactSearchResultPayload';
1318
+ /**
1319
+ * Matched contacts — both pre-existing database matches and newly-discovered,
1320
+ * newly-persisted third-party matches. Paginated; fetch further pages via the
1321
+ * `contacts` query using the same filter.
1322
+ */
1323
+ contacts: ContactConnection;
1324
+ externalId: Scalars['ID']['output'];
1325
+ };
1326
+
1327
+
1328
+ /** Autogenerated return type of ContactSearchResult. */
1329
+ export type ContactSearchResultPayloadContactsArgs = {
1330
+ after?: InputMaybe<Scalars['String']['input']>;
1331
+ before?: InputMaybe<Scalars['String']['input']>;
1332
+ first?: InputMaybe<Scalars['Int']['input']>;
1333
+ last?: InputMaybe<Scalars['Int']['input']>;
1334
+ };
1335
+
1302
1336
  /** Fields available for sorting contacts. */
1303
1337
  export type ContactSortField =
1304
1338
  /** Sort by merged confidence score, highest first by default. */
@@ -1341,16 +1375,12 @@ export type ContactValidationResultPayload = {
1341
1375
  organization?: Maybe<Organization>;
1342
1376
  };
1343
1377
 
1344
- /**
1345
- * A chat conversation between a user and the AI assistant. The id is minted by Max
1346
- * (one per owner row, e.g. memberships.conversation_id) and the row is lazily
1347
- * materialized on first interaction.
1348
- */
1378
+ /** Federation reference to a Conversation owned by another subgraph. */
1349
1379
  export type Conversation = Node & {
1350
1380
  __typename?: 'Conversation';
1351
1381
  /** When it was created. */
1352
1382
  createdAt: Scalars['ISO8601DateTime']['output'];
1353
- /** GlobalID-encoded conversation id (matches the value Max emits as the federation key). */
1383
+ /** GlobalID-encoded Conversation id. */
1354
1384
  id: Scalars['ID']['output'];
1355
1385
  /** Messages, oldest first. */
1356
1386
  messages: MessageConnection;
@@ -1365,11 +1395,7 @@ export type Conversation = Node & {
1365
1395
  };
1366
1396
 
1367
1397
 
1368
- /**
1369
- * A chat conversation between a user and the AI assistant. The id is minted by Max
1370
- * (one per owner row, e.g. memberships.conversation_id) and the row is lazily
1371
- * materialized on first interaction.
1372
- */
1398
+ /** Federation reference to a Conversation owned by another subgraph. */
1373
1399
  export type ConversationMessagesArgs = {
1374
1400
  after?: InputMaybe<Scalars['String']['input']>;
1375
1401
  before?: InputMaybe<Scalars['String']['input']>;
@@ -1393,6 +1419,24 @@ export type ConversationEventInterface = {
1393
1419
  */
1394
1420
  export type ConversationOwner = Membership;
1395
1421
 
1422
+ /** A geographic point serialized as a GeoJSON Point object (RFC 7946). */
1423
+ export type Coordinate = Node & {
1424
+ __typename?: 'Coordinate';
1425
+ /** Position in GeoJSON order: [longitude, latitude] (WGS 84). */
1426
+ coordinates: Array<Scalars['Float']['output']>;
1427
+ id: Scalars['ID']['output'];
1428
+ /** GeoJSON geometry type. Always "Point". */
1429
+ type: Scalars['String']['output'];
1430
+ };
1431
+
1432
+ /** A geographic coordinate used as a spatial query input. */
1433
+ export type CoordinateInput = {
1434
+ /** Latitude in decimal degrees (WGS 84). */
1435
+ lat: Scalars['Float']['input'];
1436
+ /** Longitude in decimal degrees (WGS 84). */
1437
+ lng: Scalars['Float']['input'];
1438
+ };
1439
+
1396
1440
  /** Autogenerated input type of CreateBillingCheckout */
1397
1441
  export type CreateBillingCheckoutInput = {
1398
1442
  /** A unique identifier for the client performing the mutation. */
@@ -2515,14 +2559,14 @@ export type EnsureBillingCustomerPayload = Node & {
2515
2559
  id: Scalars['ID']['output'];
2516
2560
  };
2517
2561
 
2518
- /** Federation reference to a Signals-owned Event. */
2562
+ /** Federation reference to a Event owned by another subgraph. */
2519
2563
  export type Event = Node & {
2520
2564
  __typename?: 'Event';
2521
2565
  /** Timestamp when the Event row was persisted. */
2522
2566
  createdAt: Scalars['ISO8601DateTime']['output'];
2523
2567
  /** Key used by the Definition's deduplication strategy. Null when the Definition does not deduplicate. */
2524
2568
  deduplicationKey?: Maybe<Scalars['String']['output']>;
2525
- /** GlobalID-encoded event id. */
2569
+ /** GlobalID-encoded Event id. */
2526
2570
  id: Scalars['ID']['output'];
2527
2571
  /** Timestamp at which the originating ingestion run observed this Event. */
2528
2572
  observedAt: Scalars['ISO8601DateTime']['output'];
@@ -2559,33 +2603,6 @@ export type EventEdge = Node & {
2559
2603
  node?: Maybe<Event>;
2560
2604
  };
2561
2605
 
2562
- /** Autogenerated input type of FindContactEmail */
2563
- export type FindContactEmailInput = {
2564
- /** A unique identifier for the client performing the mutation. */
2565
- clientMutationId?: InputMaybe<Scalars['String']['input']>;
2566
- /** The Atlas global ID of the contact to enrich. */
2567
- contactId: Scalars['ID']['input'];
2568
- /** Caller-supplied correlation key for the subscription. */
2569
- externalId: Scalars['String']['input'];
2570
- };
2571
-
2572
- /** Autogenerated return type of FindContactEmail. */
2573
- export type FindContactEmailPayload = Node & {
2574
- __typename?: 'FindContactEmailPayload';
2575
- /** A unique identifier for the client performing the mutation. */
2576
- clientMutationId?: Maybe<Scalars['String']['output']>;
2577
- id: Scalars['ID']['output'];
2578
- status: Scalars['String']['output'];
2579
- };
2580
-
2581
- /** Autogenerated return type of FindContactEmailResult. */
2582
- export type FindContactEmailResultPayload = {
2583
- __typename?: 'FindContactEmailResultPayload';
2584
- /** The contact with the found email, or null when no email was found. */
2585
- contact?: Maybe<Contact>;
2586
- externalId: Scalars['ID']['output'];
2587
- };
2588
-
2589
2606
  /** Filter on a numeric column with comparison operators. */
2590
2607
  export type FloatFilterInput = {
2591
2608
  /** Exact match. */
@@ -2631,7 +2648,7 @@ export type IdFilterInput = {
2631
2648
  notIn?: InputMaybe<Array<Scalars['ID']['input']>>;
2632
2649
  };
2633
2650
 
2634
- /** An Ideal Customer Profile that scopes lead qualification for a Company. */
2651
+ /** Federation reference to a IdealCustomerProfile owned by another subgraph. */
2635
2652
  export type IdealCustomerProfile = Node & {
2636
2653
  __typename?: 'IdealCustomerProfile';
2637
2654
  company: Company;
@@ -2642,6 +2659,7 @@ export type IdealCustomerProfile = Node & {
2642
2659
  competitors: CompetitorConnection;
2643
2660
  createdAt: Scalars['ISO8601DateTime']['output'];
2644
2661
  excludedCompanies: Array<Scalars['String']['output']>;
2662
+ /** GlobalID-encoded IdealCustomerProfile id. */
2645
2663
  id: Scalars['ID']['output'];
2646
2664
  mandatoryKeywords: Array<Scalars['String']['output']>;
2647
2665
  /** Short label distinguishing this ICP from others on the same company. */
@@ -2664,7 +2682,7 @@ export type IdealCustomerProfile = Node & {
2664
2682
  };
2665
2683
 
2666
2684
 
2667
- /** An Ideal Customer Profile that scopes lead qualification for a Company. */
2685
+ /** Federation reference to a IdealCustomerProfile owned by another subgraph. */
2668
2686
  export type IdealCustomerProfileCompanySizesArgs = {
2669
2687
  after?: InputMaybe<Scalars['String']['input']>;
2670
2688
  before?: InputMaybe<Scalars['String']['input']>;
@@ -2673,7 +2691,7 @@ export type IdealCustomerProfileCompanySizesArgs = {
2673
2691
  };
2674
2692
 
2675
2693
 
2676
- /** An Ideal Customer Profile that scopes lead qualification for a Company. */
2694
+ /** Federation reference to a IdealCustomerProfile owned by another subgraph. */
2677
2695
  export type IdealCustomerProfileCompetitorsArgs = {
2678
2696
  after?: InputMaybe<Scalars['String']['input']>;
2679
2697
  before?: InputMaybe<Scalars['String']['input']>;
@@ -2753,64 +2771,6 @@ export type IdentificationFilterInput = {
2753
2771
  valid?: InputMaybe<Scalars['Boolean']['input']>;
2754
2772
  };
2755
2773
 
2756
- /** Autogenerated input type of IdentifyCompany */
2757
- export type IdentifyCompanyInput = {
2758
- /** A unique identifier for the client performing the mutation. */
2759
- clientMutationId?: InputMaybe<Scalars['String']['input']>;
2760
- /** Visitor's ISO 3166-1 alpha-2 country code, used to boost matching accuracy. */
2761
- countryCode?: InputMaybe<Scalars['String']['input']>;
2762
- /** Caller-supplied correlation key; pass the same value to `companyIdentifyResult(externalId:)` to receive the result. */
2763
- externalId: Scalars['String']['input'];
2764
- /** The visitor's IPv4 or IPv6 address to identify. */
2765
- ip: Scalars['String']['input'];
2766
- /**
2767
- * Optional URL to receive the result via webhook. Callers consuming results via
2768
- * the federated `companyIdentifyResult` subscription can omit it. Requires the
2769
- * `atlas/source:write` scope.
2770
- */
2771
- webhookUrl?: InputMaybe<Scalars['String']['input']>;
2772
- };
2773
-
2774
- /** Autogenerated return type of IdentifyCompany. */
2775
- export type IdentifyCompanyPayload = Node & {
2776
- __typename?: 'IdentifyCompanyPayload';
2777
- /** A unique identifier for the client performing the mutation. */
2778
- clientMutationId?: Maybe<Scalars['String']['output']>;
2779
- id: Scalars['ID']['output'];
2780
- status: Scalars['String']['output'];
2781
- };
2782
-
2783
- /** Autogenerated input type of IdentifyContact */
2784
- export type IdentifyContactInput = {
2785
- /** A unique identifier for the client performing the mutation. */
2786
- clientMutationId?: InputMaybe<Scalars['String']['input']>;
2787
- /** Probe by contact email address. Globally unique within an organization. */
2788
- emailAddress?: InputMaybe<Scalars['String']['input']>;
2789
- /** Caller-supplied identifier used to key the federated identifyContact result subscription. */
2790
- externalId: Scalars['ID']['input'];
2791
- /** Probe by first name. Must be combined with last_name and organization_id. */
2792
- firstName?: InputMaybe<Scalars['String']['input']>;
2793
- /** Probe by last name. Must be combined with first_name and organization_id. */
2794
- lastName?: InputMaybe<Scalars['String']['input']>;
2795
- /** Probe by LinkedIn profile URL. Globally unique within an organization. */
2796
- linkedinUrl?: InputMaybe<Scalars['String']['input']>;
2797
- /**
2798
- * Narrows the search to a single organization. Required when only first_name +
2799
- * last_name are provided. Resolve via identifyCompany (or another organization query) first.
2800
- */
2801
- organizationId?: InputMaybe<Scalars['ID']['input']>;
2802
- };
2803
-
2804
- /** Autogenerated return type of IdentifyContact. */
2805
- export type IdentifyContactPayload = Node & {
2806
- __typename?: 'IdentifyContactPayload';
2807
- /** A unique identifier for the client performing the mutation. */
2808
- clientMutationId?: Maybe<Scalars['String']['output']>;
2809
- id: Scalars['ID']['output'];
2810
- /** One of: received. */
2811
- status: Scalars['String']['output'];
2812
- };
2813
-
2814
2774
  /** Autogenerated input type of ImpersonateUser */
2815
2775
  export type ImpersonateUserInput = {
2816
2776
  /** A unique identifier for the client performing the mutation. */
@@ -2855,7 +2815,7 @@ export type InitiateIntegrationOauthPayload = Node & {
2855
2815
  id: Scalars['ID']['output'];
2856
2816
  };
2857
2817
 
2858
- /** A per-company (or per-user) connection to a third-party tool. */
2818
+ /** Federation reference to a Integration owned by another subgraph. */
2859
2819
  export type Integration = Node & TrackableInterface & {
2860
2820
  __typename?: 'Integration';
2861
2821
  /**
@@ -2881,7 +2841,7 @@ export type Integration = Node & TrackableInterface & {
2881
2841
  expiresAt?: Maybe<Scalars['ISO8601DateTime']['output']>;
2882
2842
  /** Provider account / workspace id. */
2883
2843
  externalAccountId?: Maybe<Scalars['String']['output']>;
2884
- /** Global id of the integration. */
2844
+ /** GlobalID-encoded Integration id. */
2885
2845
  id: Scalars['ID']['output'];
2886
2846
  /** Mirrors `provider.kind`. */
2887
2847
  kind: IntegrationKindEnum;
@@ -2902,7 +2862,7 @@ export type Integration = Node & TrackableInterface & {
2902
2862
  };
2903
2863
 
2904
2864
 
2905
- /** A per-company (or per-user) connection to a third-party tool. */
2865
+ /** Federation reference to a Integration owned by another subgraph. */
2906
2866
  export type IntegrationActivitiesArgs = {
2907
2867
  after?: InputMaybe<Scalars['String']['input']>;
2908
2868
  before?: InputMaybe<Scalars['String']['input']>;
@@ -2989,7 +2949,7 @@ export type IntegrationScopeEnum =
2989
2949
  | 'COMPANY'
2990
2950
  | 'USER';
2991
2951
 
2992
- /** An outstanding or resolved invitation for someone to join a Max company. */
2952
+ /** Federation reference to a Invitation owned by another subgraph. */
2993
2953
  export type Invitation = Node & {
2994
2954
  __typename?: 'Invitation';
2995
2955
  /** Set when the invitation was accepted; null while pending. */
@@ -3004,7 +2964,7 @@ export type Invitation = Node & {
3004
2964
  email: Scalars['String']['output'];
3005
2965
  /** Time after which the invitation can no longer be accepted. */
3006
2966
  expiresAt: Scalars['ISO8601DateTime']['output'];
3007
- /** Stable invitation UUID. */
2967
+ /** GlobalID-encoded Invitation id. */
3008
2968
  id: Scalars['ID']['output'];
3009
2969
  /** User who issued the invitation. */
3010
2970
  invitedBy: User;
@@ -3058,28 +3018,39 @@ export type KickAgentInput = {
3058
3018
  conversationId: Scalars['ID']['input'];
3059
3019
  };
3060
3020
 
3061
- /** A Max lead — a Company-scoped pointer to an Atlas contact. */
3021
+ /** Federation reference to a Lead owned by another subgraph. */
3062
3022
  export type Lead = Node & TrackableInterface & {
3063
3023
  __typename?: 'Lead';
3024
+ /** Records of this lead being produced by a Sortlist service. */
3064
3025
  acquisitions: LeadAcquisitionConnection;
3065
3026
  /** Activity history where this entity is the subject, most recent first. */
3066
3027
  activities: ActivityConnection;
3067
3028
  /** Public URL for the lead's profile picture; null if unknown. */
3068
3029
  avatarUrl?: Maybe<Scalars['String']['output']>;
3030
+ /** Company that owns this lead. */
3069
3031
  company: Company;
3070
3032
  /** Federated reference to the Atlas-owned Contact backing this Lead. */
3071
3033
  contact: Contact;
3034
+ /** When the lead was first sourced. */
3072
3035
  createdAt: Scalars['ISO8601DateTime']['output'];
3036
+ /** GlobalID-encoded Lead id. */
3073
3037
  id: Scalars['ID']['output'];
3074
3038
  /** Campaign enrollments for this lead in the current Overloop account, newest first. */
3075
3039
  outboundCampaignEnrollments: OutboundCampaignEnrollmentConnection;
3076
3040
  /** ICP scores computed for this lead. */
3077
3041
  qualifications: LeadQualificationConnection;
3042
+ /**
3043
+ * Distinct routines that sourced or updated this lead, resolved through the runs
3044
+ * that produced its acquisitions, most recently sourcing first. Empty for leads
3045
+ * not produced by a routine.
3046
+ */
3047
+ routines: RoutineConnection;
3048
+ /** When the lead was last updated. */
3078
3049
  updatedAt: Scalars['ISO8601DateTime']['output'];
3079
3050
  };
3080
3051
 
3081
3052
 
3082
- /** A Max lead — a Company-scoped pointer to an Atlas contact. */
3053
+ /** Federation reference to a Lead owned by another subgraph. */
3083
3054
  export type LeadAcquisitionsArgs = {
3084
3055
  after?: InputMaybe<Scalars['String']['input']>;
3085
3056
  before?: InputMaybe<Scalars['String']['input']>;
@@ -3088,7 +3059,7 @@ export type LeadAcquisitionsArgs = {
3088
3059
  };
3089
3060
 
3090
3061
 
3091
- /** A Max lead — a Company-scoped pointer to an Atlas contact. */
3062
+ /** Federation reference to a Lead owned by another subgraph. */
3092
3063
  export type LeadActivitiesArgs = {
3093
3064
  after?: InputMaybe<Scalars['String']['input']>;
3094
3065
  before?: InputMaybe<Scalars['String']['input']>;
@@ -3098,7 +3069,7 @@ export type LeadActivitiesArgs = {
3098
3069
  };
3099
3070
 
3100
3071
 
3101
- /** A Max lead — a Company-scoped pointer to an Atlas contact. */
3072
+ /** Federation reference to a Lead owned by another subgraph. */
3102
3073
  export type LeadOutboundCampaignEnrollmentsArgs = {
3103
3074
  after?: InputMaybe<Scalars['String']['input']>;
3104
3075
  before?: InputMaybe<Scalars['String']['input']>;
@@ -3108,7 +3079,7 @@ export type LeadOutboundCampaignEnrollmentsArgs = {
3108
3079
  };
3109
3080
 
3110
3081
 
3111
- /** A Max lead — a Company-scoped pointer to an Atlas contact. */
3082
+ /** Federation reference to a Lead owned by another subgraph. */
3112
3083
  export type LeadQualificationsArgs = {
3113
3084
  after?: InputMaybe<Scalars['String']['input']>;
3114
3085
  before?: InputMaybe<Scalars['String']['input']>;
@@ -3116,7 +3087,16 @@ export type LeadQualificationsArgs = {
3116
3087
  last?: InputMaybe<Scalars['Int']['input']>;
3117
3088
  };
3118
3089
 
3119
- /** A record of a Lead being produced by a Sortlist service. */
3090
+
3091
+ /** Federation reference to a Lead owned by another subgraph. */
3092
+ export type LeadRoutinesArgs = {
3093
+ after?: InputMaybe<Scalars['String']['input']>;
3094
+ before?: InputMaybe<Scalars['String']['input']>;
3095
+ first?: InputMaybe<Scalars['Int']['input']>;
3096
+ last?: InputMaybe<Scalars['Int']['input']>;
3097
+ };
3098
+
3099
+ /** Federation reference to a LeadAcquisition owned by another subgraph. */
3120
3100
  export type LeadAcquisition = Node & {
3121
3101
  __typename?: 'LeadAcquisition';
3122
3102
  /**
@@ -3139,6 +3119,7 @@ export type LeadAcquisition = Node & {
3139
3119
  externalSourceId: Scalars['ID']['output'];
3140
3120
  /** Kind of upstream entity that produced the acquisition. Currently 'watcher' for signals leads; null otherwise. */
3141
3121
  externalSourceType?: Maybe<LeadAcquisitionExternalSourceTypeEnum>;
3122
+ /** GlobalID-encoded LeadAcquisition id. */
3142
3123
  id: Scalars['ID']['output'];
3143
3124
  /**
3144
3125
  * Deprecated alias of `externalSource`.
@@ -3204,10 +3185,11 @@ export type LeadEdge = Node & {
3204
3185
  node?: Maybe<Lead>;
3205
3186
  };
3206
3187
 
3207
- /** A score for a Lead against a specific Ideal Customer Profile. */
3188
+ /** Federation reference to a LeadQualification owned by another subgraph. */
3208
3189
  export type LeadQualification = Node & {
3209
3190
  __typename?: 'LeadQualification';
3210
3191
  createdAt: Scalars['ISO8601DateTime']['output'];
3192
+ /** GlobalID-encoded LeadQualification id. */
3211
3193
  id: Scalars['ID']['output'];
3212
3194
  idealCustomerProfile: IdealCustomerProfile;
3213
3195
  /** Match score between 0 and 1. */
@@ -3273,10 +3255,91 @@ export type LinkedinSendMessageStepConfig = {
3273
3255
  };
3274
3256
 
3275
3257
  /**
3276
- * A user's membership in a Max-tenant company. Owns exactly one Conversation; the
3277
- * conversation id is generated by the database at membership creation and surfaced
3278
- * as a federation reference resolved by the Chat subgraph.
3258
+ * An administrative geographic division (country, region, city, etc.) sourced from
3259
+ * Overture Maps, backed by PostGIS polygon boundaries.
3260
+ */
3261
+ export type Location = Node & {
3262
+ __typename?: 'Location';
3263
+ /** Numeric hierarchy depth. 0 = country, higher = more granular. */
3264
+ adminLevel: Scalars['Int']['output'];
3265
+ /** Center point of the division boundary as a GeoJSON Point. */
3266
+ centroid?: Maybe<Coordinate>;
3267
+ /** Child divisions in the hierarchy. */
3268
+ children: LocationConnection;
3269
+ /** ISO 3166-1 alpha-2 country code of the division. */
3270
+ countryCode?: Maybe<Scalars['String']['output']>;
3271
+ id: Scalars['ID']['output'];
3272
+ /** Primary English name of the division. */
3273
+ name: Scalars['String']['output'];
3274
+ /** Parent administrative division in the hierarchy. */
3275
+ parent?: Maybe<Location>;
3276
+ /** Administrative subdivision level. */
3277
+ subtype: LocationSubtype;
3278
+ };
3279
+
3280
+
3281
+ /**
3282
+ * An administrative geographic division (country, region, city, etc.) sourced from
3283
+ * Overture Maps, backed by PostGIS polygon boundaries.
3279
3284
  */
3285
+ export type LocationChildrenArgs = {
3286
+ after?: InputMaybe<Scalars['String']['input']>;
3287
+ before?: InputMaybe<Scalars['String']['input']>;
3288
+ deep?: InputMaybe<Scalars['Boolean']['input']>;
3289
+ first?: InputMaybe<Scalars['Int']['input']>;
3290
+ last?: InputMaybe<Scalars['Int']['input']>;
3291
+ subtype?: InputMaybe<LocationSubtypeFilterInput>;
3292
+ };
3293
+
3294
+ /** The connection type for Location. */
3295
+ export type LocationConnection = {
3296
+ __typename?: 'LocationConnection';
3297
+ /** A list of edges. */
3298
+ edges?: Maybe<Array<Maybe<LocationEdge>>>;
3299
+ /** A list of nodes. */
3300
+ nodes?: Maybe<Array<Maybe<Location>>>;
3301
+ /** Information to aid in pagination. */
3302
+ pageInfo: PageInfo;
3303
+ /** Total number of items across all pages. */
3304
+ totalCount: Scalars['Int']['output'];
3305
+ };
3306
+
3307
+ /** An edge in a connection. */
3308
+ export type LocationEdge = Node & {
3309
+ __typename?: 'LocationEdge';
3310
+ /** A cursor for use in pagination. */
3311
+ cursor: Scalars['String']['output'];
3312
+ id: Scalars['ID']['output'];
3313
+ /** The item at the end of the edge. */
3314
+ node?: Maybe<Location>;
3315
+ };
3316
+
3317
+ /** Administrative subdivision level of a geographic location. */
3318
+ export type LocationSubtype =
3319
+ /** Sovereign nation (admin_level 0). */
3320
+ | 'COUNTRY'
3321
+ /** County, department, or second-level subdivision (admin_level 3-4). */
3322
+ | 'COUNTY'
3323
+ /** City, town, or municipality (admin_level 5-8). */
3324
+ | 'LOCALITY'
3325
+ /** Neighborhood, district, or sub-municipal area (admin_level 9+). */
3326
+ | 'NEIGHBORHOOD'
3327
+ /** State, province, or first-level subdivision (admin_level 1-2). */
3328
+ | 'REGION';
3329
+
3330
+ /** Filter on location subtype with schema-validated enum values. */
3331
+ export type LocationSubtypeFilterInput = {
3332
+ /** Exact match. */
3333
+ eq?: InputMaybe<LocationSubtype>;
3334
+ /** Match any of these subdivision levels. */
3335
+ in?: InputMaybe<Array<LocationSubtype>>;
3336
+ /** Exclude exact match. */
3337
+ notEq?: InputMaybe<LocationSubtype>;
3338
+ /** Exclude any of these values. */
3339
+ notIn?: InputMaybe<Array<LocationSubtype>>;
3340
+ };
3341
+
3342
+ /** Federation reference to a Membership owned by another subgraph. */
3280
3343
  export type Membership = Node & {
3281
3344
  __typename?: 'Membership';
3282
3345
  /** Company this membership grants access to. */
@@ -3289,7 +3352,7 @@ export type Membership = Node & {
3289
3352
  conversation: Conversation;
3290
3353
  /** Membership creation time. */
3291
3354
  createdAt: Scalars['ISO8601DateTime']['output'];
3292
- /** Stable membership UUID. */
3355
+ /** GlobalID-encoded Membership id. */
3293
3356
  id: Scalars['ID']['output'];
3294
3357
  /**
3295
3358
  * Per-user onboarding tasks. Use alongside the company's onboardingTasks to
@@ -3303,11 +3366,7 @@ export type Membership = Node & {
3303
3366
  };
3304
3367
 
3305
3368
 
3306
- /**
3307
- * A user's membership in a Max-tenant company. Owns exactly one Conversation; the
3308
- * conversation id is generated by the database at membership creation and surfaced
3309
- * as a federation reference resolved by the Chat subgraph.
3310
- */
3369
+ /** Federation reference to a Membership owned by another subgraph. */
3311
3370
  export type MembershipOnboardingTasksArgs = {
3312
3371
  after?: InputMaybe<Scalars['String']['input']>;
3313
3372
  before?: InputMaybe<Scalars['String']['input']>;
@@ -3338,12 +3397,7 @@ export type MembershipEdge = Node & {
3338
3397
  node?: Maybe<Membership>;
3339
3398
  };
3340
3399
 
3341
- /**
3342
- * A per-user onboarding task. Auto-seeded on Membership creation; auto-completed
3343
- * when the matching Integration row is created (`connect_gmail`,
3344
- * `connect_linkedin`, `connect_hubspot`). Optional — can be dismissed via
3345
- * skipMembershipOnboardingTask.
3346
- */
3400
+ /** Federation reference to a MembershipOnboardingTask owned by another subgraph. */
3347
3401
  export type MembershipOnboardingTask = Node & {
3348
3402
  __typename?: 'MembershipOnboardingTask';
3349
3403
  /**
@@ -3354,6 +3408,7 @@ export type MembershipOnboardingTask = Node & {
3354
3408
  automated: Scalars['Boolean']['output'];
3355
3409
  completedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;
3356
3410
  createdAt: Scalars['ISO8601DateTime']['output'];
3411
+ /** GlobalID-encoded MembershipOnboardingTask id. */
3357
3412
  id: Scalars['ID']['output'];
3358
3413
  /** Stable identifier (e.g. `connect_gmail`). */
3359
3414
  key: Scalars['String']['output'];
@@ -3389,14 +3444,14 @@ export type MembershipOnboardingTaskEdge = Node & {
3389
3444
  node?: Maybe<MembershipOnboardingTask>;
3390
3445
  };
3391
3446
 
3392
- /** A fact Max has learned about a company. Created when the user accepts a memory suggestion; deletable by any company member. */
3447
+ /** Federation reference to a Memory owned by another subgraph. */
3393
3448
  export type Memory = Node & {
3394
3449
  __typename?: 'Memory';
3395
3450
  /** The fact as a plain sentence. */
3396
3451
  content: Scalars['String']['output'];
3397
3452
  /** When this memory was created. */
3398
3453
  createdAt: Scalars['ISO8601DateTime']['output'];
3399
- /** Global ID of this memory. */
3454
+ /** GlobalID-encoded Memory id. */
3400
3455
  id: Scalars['ID']['output'];
3401
3456
  /** Where this memory came from. */
3402
3457
  source: MemorySourceEnum;
@@ -3437,7 +3492,7 @@ export type MemorySourceEnum =
3437
3492
  /** Source "workspace_settings". */
3438
3493
  | 'WORKSPACE_SETTINGS';
3439
3494
 
3440
- /** A message in a conversation. */
3495
+ /** Federation reference to a Message owned by another subgraph. */
3441
3496
  export type Message = Node & {
3442
3497
  __typename?: 'Message';
3443
3498
  /**
@@ -3455,7 +3510,7 @@ export type Message = Node & {
3455
3510
  * other invisible nudges.
3456
3511
  */
3457
3512
  hidden: Scalars['Boolean']['output'];
3458
- /** GlobalID-encoded message id. */
3513
+ /** GlobalID-encoded Message id. */
3459
3514
  id: Scalars['ID']['output'];
3460
3515
  /** Input tokens used. */
3461
3516
  inputTokens?: Maybe<Scalars['Int']['output']>;
@@ -3470,7 +3525,7 @@ export type Message = Node & {
3470
3525
  };
3471
3526
 
3472
3527
 
3473
- /** A message in a conversation. */
3528
+ /** Federation reference to a Message owned by another subgraph. */
3474
3529
  export type MessageAgentTasksArgs = {
3475
3530
  after?: InputMaybe<Scalars['String']['input']>;
3476
3531
  before?: InputMaybe<Scalars['String']['input']>;
@@ -3479,7 +3534,7 @@ export type MessageAgentTasksArgs = {
3479
3534
  };
3480
3535
 
3481
3536
 
3482
- /** A message in a conversation. */
3537
+ /** Federation reference to a Message owned by another subgraph. */
3483
3538
  export type MessageToolCallsArgs = {
3484
3539
  after?: InputMaybe<Scalars['String']['input']>;
3485
3540
  before?: InputMaybe<Scalars['String']['input']>;
@@ -3701,7 +3756,7 @@ export type Mutation = {
3701
3756
  * Returns the merged Contact immediately.
3702
3757
  * Use when pushing enrichment data from a registered source.
3703
3758
  * To discover a contact from a known identifier (email, LinkedIn, name) without raw
3704
- * source data, use `identifyContact` instead.
3759
+ * source data, use `searchContact` instead.
3705
3760
  */
3706
3761
  enrichContact?: Maybe<Contact>;
3707
3762
  /**
@@ -3709,7 +3764,7 @@ export type Mutation = {
3709
3764
  * Returns the merged Identification immediately.
3710
3765
  * Use when a source (e.g. Snitcher) has already resolved an IP to a company domain
3711
3766
  * and you want to persist that result. To trigger async resolution from an IP address,
3712
- * use `identifyCompany` instead.
3767
+ * use `searchOrganization` with `ip:` instead.
3713
3768
  */
3714
3769
  enrichIdentification?: Maybe<Identification>;
3715
3770
  /**
@@ -3724,14 +3779,6 @@ export type Mutation = {
3724
3779
  enrollLeadToOutboundCampaign?: Maybe<EnrollLeadToOutboundCampaignPayload>;
3725
3780
  /** Ensures the company has a billing-subgraph customer. Idempotent — returns the company with billingCustomerId populated. */
3726
3781
  ensureBillingCustomer?: Maybe<EnsureBillingCustomerPayload>;
3727
- /**
3728
- * Asynchronously attempt to discover a contact's email address using Atlas enrichment strategies.
3729
- * Returns `{status: "received"}` immediately. The result (contact with email, or null if not found)
3730
- * arrives via the `findContactEmailResult(externalId:)` subscription.
3731
- * Use when you already have an Atlas Contact ID and need their email discovered.
3732
- * If you don't yet have a Contact ID, use `identifyContact` to find or create the contact first.
3733
- */
3734
- findContactEmail?: Maybe<FindContactEmailPayload>;
3735
3782
  /**
3736
3783
  * Generate (or retrieve the cached result of) a preview of a campaign step
3737
3784
  * message for an Atlas contact. Generation is asynchronous — the returned
@@ -3741,24 +3788,6 @@ export type Mutation = {
3741
3788
  * already-generated preview.
3742
3789
  */
3743
3790
  generateOutboundCampaignMessagePreview?: Maybe<GenerateOutboundCampaignMessagePreviewPayload>;
3744
- /**
3745
- * Asynchronously identify a company from a visitor IP address.
3746
- * Returns `{status: "received"}` immediately. The matched Organization arrives via
3747
- * the `companyIdentifyResult(externalId:)` subscription or the optional webhook.
3748
- * Use when you have a visitor IP and need to resolve the company behind it.
3749
- * To look up a company by domain directly, use `organization(domain:)` instead.
3750
- */
3751
- identifyCompany?: Maybe<IdentifyCompanyPayload>;
3752
- /**
3753
- * Asynchronously discover whether an Atlas Contact record exists for a person
3754
- * identified by email, LinkedIn URL, or full name scoped to an organization.
3755
- * Returns `{status: "received"}` immediately. The matched or created Contact
3756
- * arrives via the `contactIdentifyResult(externalId:)` subscription.
3757
- * Use when you need to find a contact from a known identifier.
3758
- * If you already have a Contact ID and only need their email address discovered,
3759
- * use `findContactEmail` instead.
3760
- */
3761
- identifyContact?: Maybe<IdentifyContactPayload>;
3762
3791
  /** Generate a delegation JWT to impersonate a user via Auth0 Custom Token Exchange. Requires admin scope (max/*:*). */
3763
3792
  impersonateUser?: Maybe<ImpersonateUserPayload>;
3764
3793
  /**
@@ -3782,8 +3811,6 @@ export type Mutation = {
3782
3811
  pauseOutboundCampaign?: Maybe<PauseOutboundCampaignPayload>;
3783
3812
  /** Pause a routine; the scheduler will skip it until resumed. */
3784
3813
  pauseRoutine?: Maybe<PauseRoutinePayload>;
3785
- /** Pause a Watcher so the scheduler stops triggering ingestion runs. */
3786
- pauseWatcher?: Maybe<PauseWatcherPayload>;
3787
3814
  /**
3788
3815
  * Charges the customer's default Stripe payment method for `quantity` credits
3789
3816
  * and returns the granted Invoice + new balance. Use after a default payment
@@ -3833,8 +3860,6 @@ export type Mutation = {
3833
3860
  respondToToolCall?: Maybe<RespondToToolCallPayload>;
3834
3861
  /** Resume a paused routine and recompute its next run. */
3835
3862
  resumeRoutine?: Maybe<ResumeRoutinePayload>;
3836
- /** Resume a paused Watcher so the scheduler picks it up again. */
3837
- resumeWatcher?: Maybe<ResumeWatcherPayload>;
3838
3863
  /**
3839
3864
  * Re-analyse the Gmail sent-email history and refresh a tone-of-voice profile.
3840
3865
  * Requires the requesting user to have an active Gmail integration.
@@ -3856,10 +3881,29 @@ export type Mutation = {
3856
3881
  /** Run a background job inline. Admin-only, intended for E2E test orchestration. */
3857
3882
  runSynchronousWorker?: Maybe<RunSynchronousWorkerPayload>;
3858
3883
  /**
3859
- * Asynchronously search for an organization by domain.
3860
- * Returns {status: "received"} immediately. The enriched Organization arrives via
3861
- * the `organizationSearchResult(externalId:)` subscription once Atlas has looked up
3862
- * or fetched the company data.
3884
+ * Asynchronously discover an Atlas Contact record.
3885
+ * Returns `{status: "received"}` immediately. The result arrives via
3886
+ * the `contactIdentifyResult(externalId:)` subscription.
3887
+ * Provide exactly one lookup mode via `lookup`:
3888
+ * `contactId`, `linkedinUrl`, `emailAddress`, or `name`.
3889
+ */
3890
+ searchContact?: Maybe<SearchContactPayload>;
3891
+ /**
3892
+ * Asynchronously searches for contacts matching `filter`/`organizationFilter`, the
3893
+ * same criteria accepted by the `contacts` query — but in addition to the local
3894
+ * database, this also searches Atlas's third-party sources (currently Coresignal)
3895
+ * and persists any new matches as Contact records.
3896
+ * Returns `{status: "received"}` immediately. The result arrives via the
3897
+ * `contactSearchResult(externalId:)` subscription, as a paginated connection —
3898
+ * further pages beyond the first are fetched via the `contacts` query using the
3899
+ * same filter.
3900
+ */
3901
+ searchContacts?: Maybe<SearchContactsPayload>;
3902
+ /**
3903
+ * Asynchronously search for an organization by domain or visitor IP.
3904
+ * Returns {status: "received"} immediately. The matched Organization arrives via
3905
+ * the `organizationSearchResult(externalId:)` subscription.
3906
+ * Provide exactly one lookup mode via `lookup`: either `domain` or `byIp`.
3863
3907
  */
3864
3908
  searchOrganization?: Maybe<SearchOrganizationPayload>;
3865
3909
  /**
@@ -4191,26 +4235,11 @@ export type MutationEnsureBillingCustomerArgs = {
4191
4235
  };
4192
4236
 
4193
4237
 
4194
- export type MutationFindContactEmailArgs = {
4195
- input: FindContactEmailInput;
4196
- };
4197
-
4198
-
4199
4238
  export type MutationGenerateOutboundCampaignMessagePreviewArgs = {
4200
4239
  input: GenerateOutboundCampaignMessagePreviewInput;
4201
4240
  };
4202
4241
 
4203
4242
 
4204
- export type MutationIdentifyCompanyArgs = {
4205
- input: IdentifyCompanyInput;
4206
- };
4207
-
4208
-
4209
- export type MutationIdentifyContactArgs = {
4210
- input: IdentifyContactInput;
4211
- };
4212
-
4213
-
4214
4243
  export type MutationImpersonateUserArgs = {
4215
4244
  input: ImpersonateUserInput;
4216
4245
  };
@@ -4241,11 +4270,6 @@ export type MutationPauseRoutineArgs = {
4241
4270
  };
4242
4271
 
4243
4272
 
4244
- export type MutationPauseWatcherArgs = {
4245
- input: PauseWatcherInput;
4246
- };
4247
-
4248
-
4249
4273
  export type MutationPurchaseCreditsArgs = {
4250
4274
  input: PurchaseCreditsInput;
4251
4275
  };
@@ -4306,11 +4330,6 @@ export type MutationResumeRoutineArgs = {
4306
4330
  };
4307
4331
 
4308
4332
 
4309
- export type MutationResumeWatcherArgs = {
4310
- input: ResumeWatcherInput;
4311
- };
4312
-
4313
-
4314
4333
  export type MutationRetrainToneOfVoiceArgs = {
4315
4334
  input: RetrainToneOfVoiceInput;
4316
4335
  };
@@ -4341,6 +4360,16 @@ export type MutationRunSynchronousWorkerArgs = {
4341
4360
  };
4342
4361
 
4343
4362
 
4363
+ export type MutationSearchContactArgs = {
4364
+ input: SearchContactInput;
4365
+ };
4366
+
4367
+
4368
+ export type MutationSearchContactsArgs = {
4369
+ input: SearchContactsInput;
4370
+ };
4371
+
4372
+
4344
4373
  export type MutationSearchOrganizationArgs = {
4345
4374
  input: SearchOrganizationInput;
4346
4375
  };
@@ -4641,6 +4670,14 @@ export type OrganizationAddressEdge = Node & {
4641
4670
  node?: Maybe<OrganizationAddress>;
4642
4671
  };
4643
4672
 
4673
+ /** Parameters for an organization search by visitor IP address. */
4674
+ export type OrganizationByIpInput = {
4675
+ /** Visitor's ISO 3166-1 alpha-2 country code — boosts matching accuracy. */
4676
+ countryCode?: InputMaybe<Scalars['String']['input']>;
4677
+ /** The visitor's IPv4 or IPv6 address to identify. */
4678
+ ip: Scalars['String']['input'];
4679
+ };
4680
+
4644
4681
  /** The connection type for Organization. */
4645
4682
  export type OrganizationConnection = {
4646
4683
  __typename?: 'OrganizationConnection';
@@ -4704,6 +4741,14 @@ export type OrganizationFilterInput = {
4704
4741
  valid?: InputMaybe<Scalars['Boolean']['input']>;
4705
4742
  };
4706
4743
 
4744
+ /** OneOf input for searchOrganization — supply exactly one lookup mode. */
4745
+ export type OrganizationLookupInput = {
4746
+ /** Look up by visitor IP address. */
4747
+ byIp?: InputMaybe<OrganizationByIpInput>;
4748
+ /** Look up by company's primary web domain (no scheme, no trailing slash). */
4749
+ domain?: InputMaybe<Scalars['String']['input']>;
4750
+ };
4751
+
4707
4752
  /** Autogenerated return type of OrganizationSearchResult. */
4708
4753
  export type OrganizationSearchResultPayload = {
4709
4754
  __typename?: 'OrganizationSearchResultPayload';
@@ -4732,7 +4777,7 @@ export type OrganizationSortInput = {
4732
4777
  query?: InputMaybe<Scalars['String']['input']>;
4733
4778
  };
4734
4779
 
4735
- /** Federation reference to an outreach-owned OutboundCampaign. */
4780
+ /** Federation reference to a OutboundCampaign owned by another subgraph. */
4736
4781
  export type OutboundCampaign = Node & {
4737
4782
  __typename?: 'OutboundCampaign';
4738
4783
  /** Auto-send follow-up messages without manual review. */
@@ -4745,7 +4790,7 @@ export type OutboundCampaign = Node & {
4745
4790
  creator?: Maybe<User>;
4746
4791
  /** Latest minute of the day (0-1439) messages may be sent. */
4747
4792
  endSendingMinutes: Scalars['Int']['output'];
4748
- /** GlobalID-encoded campaign id. */
4793
+ /** GlobalID-encoded OutboundCampaign id. */
4749
4794
  id: Scalars['ID']['output'];
4750
4795
  /** Name of the campaign. */
4751
4796
  name: Scalars['String']['output'];
@@ -4772,14 +4817,14 @@ export type OutboundCampaign = Node & {
4772
4817
  };
4773
4818
 
4774
4819
 
4775
- /** Federation reference to an outreach-owned OutboundCampaign. */
4820
+ /** Federation reference to a OutboundCampaign owned by another subgraph. */
4776
4821
  export type OutboundCampaignReportArgs = {
4777
4822
  endDate: Scalars['ISO8601Date']['input'];
4778
4823
  startDate: Scalars['ISO8601Date']['input'];
4779
4824
  };
4780
4825
 
4781
4826
 
4782
- /** Federation reference to an outreach-owned OutboundCampaign. */
4827
+ /** Federation reference to a OutboundCampaign owned by another subgraph. */
4783
4828
  export type OutboundCampaignStepsArgs = {
4784
4829
  after?: InputMaybe<Scalars['String']['input']>;
4785
4830
  before?: InputMaybe<Scalars['String']['input']>;
@@ -5349,22 +5394,6 @@ export type PauseRoutinePayload = Node & {
5349
5394
  routine: Routine;
5350
5395
  };
5351
5396
 
5352
- /** Autogenerated input type of PauseWatcher */
5353
- export type PauseWatcherInput = {
5354
- /** A unique identifier for the client performing the mutation. */
5355
- clientMutationId?: InputMaybe<Scalars['String']['input']>;
5356
- id: Scalars['ID']['input'];
5357
- };
5358
-
5359
- /** Autogenerated return type of PauseWatcher. */
5360
- export type PauseWatcherPayload = Node & {
5361
- __typename?: 'PauseWatcherPayload';
5362
- /** A unique identifier for the client performing the mutation. */
5363
- clientMutationId?: Maybe<Scalars['String']['output']>;
5364
- id: Scalars['ID']['output'];
5365
- watcher: Watcher;
5366
- };
5367
-
5368
5397
  /** Autogenerated return type of Ping. */
5369
5398
  export type PingPayload = {
5370
5399
  __typename?: 'PingPayload';
@@ -5459,6 +5488,8 @@ export type Query = {
5459
5488
  * avoid cross-joins. Maximum page size: 50.
5460
5489
  */
5461
5490
  contacts: ContactConnection;
5491
+ /** Returns all administrative divisions at every hierarchy level that contain the given coordinate. */
5492
+ containingDivisions: LocationConnection;
5462
5493
  /** Find a Definition by slug and version. */
5463
5494
  definition?: Maybe<Definition>;
5464
5495
  /** List of code-defined Definitions exposed by this subgraph. */
@@ -5505,6 +5536,8 @@ export type Query = {
5505
5536
  * client-side math. Unset arguments keep the current value.
5506
5537
  */
5507
5538
  previewBillingSubscriptionChange: BillingSubscriptionChangePreview;
5539
+ /** Fuzzy text search over location names and aliases. Returns ranked matches. */
5540
+ resolveLocations: LocationConnection;
5508
5541
  /** Look up a routine template by slug. */
5509
5542
  routineTemplate?: Maybe<RoutineTemplate>;
5510
5543
  /** All registered routine templates. */
@@ -5542,6 +5575,15 @@ export type QueryContactsArgs = {
5542
5575
  };
5543
5576
 
5544
5577
 
5578
+ export type QueryContainingDivisionsArgs = {
5579
+ after?: InputMaybe<Scalars['String']['input']>;
5580
+ before?: InputMaybe<Scalars['String']['input']>;
5581
+ coordinate: CoordinateInput;
5582
+ first?: InputMaybe<Scalars['Int']['input']>;
5583
+ last?: InputMaybe<Scalars['Int']['input']>;
5584
+ };
5585
+
5586
+
5545
5587
  export type QueryDefinitionArgs = {
5546
5588
  slug: Scalars['String']['input'];
5547
5589
  version: Scalars['Int']['input'];
@@ -5608,6 +5650,16 @@ export type QueryPreviewBillingSubscriptionChangeArgs = {
5608
5650
  };
5609
5651
 
5610
5652
 
5653
+ export type QueryResolveLocationsArgs = {
5654
+ after?: InputMaybe<Scalars['String']['input']>;
5655
+ before?: InputMaybe<Scalars['String']['input']>;
5656
+ first?: InputMaybe<Scalars['Int']['input']>;
5657
+ last?: InputMaybe<Scalars['Int']['input']>;
5658
+ query: Scalars['String']['input'];
5659
+ subtypes?: InputMaybe<LocationSubtypeFilterInput>;
5660
+ };
5661
+
5662
+
5611
5663
  export type QueryRoutineTemplateArgs = {
5612
5664
  slug: Scalars['String']['input'];
5613
5665
  };
@@ -5843,22 +5895,6 @@ export type ResumeRoutinePayload = Node & {
5843
5895
  routine: Routine;
5844
5896
  };
5845
5897
 
5846
- /** Autogenerated input type of ResumeWatcher */
5847
- export type ResumeWatcherInput = {
5848
- /** A unique identifier for the client performing the mutation. */
5849
- clientMutationId?: InputMaybe<Scalars['String']['input']>;
5850
- id: Scalars['ID']['input'];
5851
- };
5852
-
5853
- /** Autogenerated return type of ResumeWatcher. */
5854
- export type ResumeWatcherPayload = Node & {
5855
- __typename?: 'ResumeWatcherPayload';
5856
- /** A unique identifier for the client performing the mutation. */
5857
- clientMutationId?: Maybe<Scalars['String']['output']>;
5858
- id: Scalars['ID']['output'];
5859
- watcher: Watcher;
5860
- };
5861
-
5862
5898
  /** Autogenerated input type of RetrainToneOfVoice */
5863
5899
  export type RetrainToneOfVoiceInput = {
5864
5900
  /** A unique identifier for the client performing the mutation. */
@@ -5918,12 +5954,12 @@ export type RotateIntegrationCredentialPayload = Node & {
5918
5954
  integration: Integration;
5919
5955
  };
5920
5956
 
5921
- /** A named, ordered sequence of actions a Company can trigger or schedule. */
5922
- export type Routine = Node & {
5957
+ /** Federation reference to a Routine owned by another subgraph. */
5958
+ export type Routine = Node & TrackableInterface & {
5923
5959
  __typename?: 'Routine';
5924
5960
  /** Ordered actions, head first. */
5925
5961
  actions: RoutineActionConnection;
5926
- /** Activity events produced by this routine's runs, most recent first. */
5962
+ /** Activity history where this entity is the subject, most recent first. */
5927
5963
  activities: ActivityConnection;
5928
5964
  /** Set when the routine is archived. */
5929
5965
  archivedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;
@@ -5946,7 +5982,7 @@ export type Routine = Node & {
5946
5982
  * recent run processed zero leads; HEALTHY otherwise.
5947
5983
  */
5948
5984
  healthStatus: RoutineHealthStatus;
5949
- /** Routine UUID. */
5985
+ /** GlobalID-encoded Routine id. */
5950
5986
  id: Scalars['ID']['output'];
5951
5987
  /** Distinct leads sourced by this routine across its lifetime, newest first. A lead re-sourced by multiple runs appears once. */
5952
5988
  leads: LeadConnection;
@@ -5966,7 +6002,7 @@ export type Routine = Node & {
5966
6002
  };
5967
6003
 
5968
6004
 
5969
- /** A named, ordered sequence of actions a Company can trigger or schedule. */
6005
+ /** Federation reference to a Routine owned by another subgraph. */
5970
6006
  export type RoutineActionsArgs = {
5971
6007
  after?: InputMaybe<Scalars['String']['input']>;
5972
6008
  before?: InputMaybe<Scalars['String']['input']>;
@@ -5975,7 +6011,7 @@ export type RoutineActionsArgs = {
5975
6011
  };
5976
6012
 
5977
6013
 
5978
- /** A named, ordered sequence of actions a Company can trigger or schedule. */
6014
+ /** Federation reference to a Routine owned by another subgraph. */
5979
6015
  export type RoutineActivitiesArgs = {
5980
6016
  after?: InputMaybe<Scalars['String']['input']>;
5981
6017
  before?: InputMaybe<Scalars['String']['input']>;
@@ -5985,7 +6021,7 @@ export type RoutineActivitiesArgs = {
5985
6021
  };
5986
6022
 
5987
6023
 
5988
- /** A named, ordered sequence of actions a Company can trigger or schedule. */
6024
+ /** Federation reference to a Routine owned by another subgraph. */
5989
6025
  export type RoutineDeprecatedActionsArgs = {
5990
6026
  after?: InputMaybe<Scalars['String']['input']>;
5991
6027
  before?: InputMaybe<Scalars['String']['input']>;
@@ -5994,7 +6030,7 @@ export type RoutineDeprecatedActionsArgs = {
5994
6030
  };
5995
6031
 
5996
6032
 
5997
- /** A named, ordered sequence of actions a Company can trigger or schedule. */
6033
+ /** Federation reference to a Routine owned by another subgraph. */
5998
6034
  export type RoutineLeadsArgs = {
5999
6035
  after?: InputMaybe<Scalars['String']['input']>;
6000
6036
  before?: InputMaybe<Scalars['String']['input']>;
@@ -6003,7 +6039,7 @@ export type RoutineLeadsArgs = {
6003
6039
  };
6004
6040
 
6005
6041
 
6006
- /** A named, ordered sequence of actions a Company can trigger or schedule. */
6042
+ /** Federation reference to a Routine owned by another subgraph. */
6007
6043
  export type RoutineRunsArgs = {
6008
6044
  after?: InputMaybe<Scalars['String']['input']>;
6009
6045
  before?: InputMaybe<Scalars['String']['input']>;
@@ -6011,14 +6047,14 @@ export type RoutineRunsArgs = {
6011
6047
  last?: InputMaybe<Scalars['Int']['input']>;
6012
6048
  };
6013
6049
 
6014
- /** Routine-bound instance of an action definition with its own configuration. */
6050
+ /** Federation reference to a RoutineAction owned by another subgraph. */
6015
6051
  export type RoutineAction = Node & {
6016
6052
  __typename?: 'RoutineAction';
6017
6053
  /** Binding configuration. Internal signal keys are redacted. */
6018
6054
  configuration: Scalars['JSON']['output'];
6019
6055
  /** Currently registered definition. */
6020
6056
  definition?: Maybe<Action>;
6021
- /** RoutineAction UUID. */
6057
+ /** GlobalID-encoded RoutineAction id. */
6022
6058
  id: Scalars['ID']['output'];
6023
6059
  /** Optional name override. */
6024
6060
  label?: Maybe<Scalars['String']['output']>;
@@ -6071,11 +6107,12 @@ export type RoutineActionInput = {
6071
6107
  version?: InputMaybe<Scalars['Int']['input']>;
6072
6108
  };
6073
6109
 
6074
- /** Result of executing one RoutineAction for one subject or the whole cohort. */
6110
+ /** Federation reference to a RoutineActionRun owned by another subgraph. */
6075
6111
  export type RoutineActionRun = Node & {
6076
6112
  __typename?: 'RoutineActionRun';
6077
6113
  createdAt: Scalars['ISO8601DateTime']['output'];
6078
6114
  failedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;
6115
+ /** GlobalID-encoded RoutineActionRun id. */
6079
6116
  id: Scalars['ID']['output'];
6080
6117
  /** Result envelope. */
6081
6118
  result?: Maybe<Scalars['JSON']['output']>;
@@ -6155,7 +6192,7 @@ export type RoutineHealthStatus =
6155
6192
  /** The routine has run but its most recent run processed zero leads — possibly stuck or misconfigured. */
6156
6193
  | 'WARNING';
6157
6194
 
6158
- /** One execution of a routine over a frozen cohort. */
6195
+ /** Federation reference to a RoutineRun owned by another subgraph. */
6159
6196
  export type RoutineRun = AcquisitionerInterface & Node & TrackableInterface & {
6160
6197
  __typename?: 'RoutineRun';
6161
6198
  /** Per-action rows. */
@@ -6164,6 +6201,7 @@ export type RoutineRun = AcquisitionerInterface & Node & TrackableInterface & {
6164
6201
  activities: ActivityConnection;
6165
6202
  createdAt: Scalars['ISO8601DateTime']['output'];
6166
6203
  failedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;
6204
+ /** GlobalID-encoded RoutineRun id. */
6167
6205
  id: Scalars['ID']['output'];
6168
6206
  /** Human-readable display name — the owning routine's name. Satisfies AcquisitionerInterface. */
6169
6207
  name: Scalars['String']['output'];
@@ -6180,7 +6218,7 @@ export type RoutineRun = AcquisitionerInterface & Node & TrackableInterface & {
6180
6218
  };
6181
6219
 
6182
6220
 
6183
- /** One execution of a routine over a frozen cohort. */
6221
+ /** Federation reference to a RoutineRun owned by another subgraph. */
6184
6222
  export type RoutineRunActionRunsArgs = {
6185
6223
  after?: InputMaybe<Scalars['String']['input']>;
6186
6224
  before?: InputMaybe<Scalars['String']['input']>;
@@ -6189,7 +6227,7 @@ export type RoutineRunActionRunsArgs = {
6189
6227
  };
6190
6228
 
6191
6229
 
6192
- /** One execution of a routine over a frozen cohort. */
6230
+ /** Federation reference to a RoutineRun owned by another subgraph. */
6193
6231
  export type RoutineRunActivitiesArgs = {
6194
6232
  after?: InputMaybe<Scalars['String']['input']>;
6195
6233
  before?: InputMaybe<Scalars['String']['input']>;
@@ -6389,14 +6427,66 @@ export type RunSynchronousWorkerPayload = Node & {
6389
6427
  id: Scalars['ID']['output'];
6390
6428
  };
6391
6429
 
6430
+ /** Autogenerated input type of SearchContact */
6431
+ export type SearchContactInput = {
6432
+ /** A unique identifier for the client performing the mutation. */
6433
+ clientMutationId?: InputMaybe<Scalars['String']['input']>;
6434
+ /** Caller-supplied identifier used to key the `contactIdentifyResult` subscription. */
6435
+ externalId: Scalars['ID']['input'];
6436
+ /** Exactly one lookup mode must be provided. */
6437
+ lookup: ContactLookupInput;
6438
+ };
6439
+
6440
+ /** Autogenerated return type of SearchContact. */
6441
+ export type SearchContactPayload = Node & {
6442
+ __typename?: 'SearchContactPayload';
6443
+ /** A unique identifier for the client performing the mutation. */
6444
+ clientMutationId?: Maybe<Scalars['String']['output']>;
6445
+ id: Scalars['ID']['output'];
6446
+ /** One of: received. */
6447
+ status: Scalars['String']['output'];
6448
+ };
6449
+
6450
+ /** Autogenerated input type of SearchContacts */
6451
+ export type SearchContactsInput = {
6452
+ /** A unique identifier for the client performing the mutation. */
6453
+ clientMutationId?: InputMaybe<Scalars['String']['input']>;
6454
+ /** Caller-supplied identifier used to key the `contactSearchResult` subscription. */
6455
+ externalId: Scalars['ID']['input'];
6456
+ /** Filter criteria for contacts, applied to both the local database and, where translatable, the Coresignal search. */
6457
+ filter?: InputMaybe<ContactFilterInput>;
6458
+ /**
6459
+ * Filter criteria for the contacts' organizations, applied to both the local
6460
+ * database and, where translatable, the Coresignal search.
6461
+ */
6462
+ organizationFilter?: InputMaybe<OrganizationFilterInput>;
6463
+ /** Sort order applied to the database contacts result set. */
6464
+ sort?: InputMaybe<Array<ContactSortInput>>;
6465
+ };
6466
+
6467
+ /** Autogenerated return type of SearchContacts. */
6468
+ export type SearchContactsPayload = Node & {
6469
+ __typename?: 'SearchContactsPayload';
6470
+ /** A unique identifier for the client performing the mutation. */
6471
+ clientMutationId?: Maybe<Scalars['String']['output']>;
6472
+ id: Scalars['ID']['output'];
6473
+ /** One of: received. */
6474
+ status: Scalars['String']['output'];
6475
+ };
6476
+
6392
6477
  /** Autogenerated input type of SearchOrganization */
6393
6478
  export type SearchOrganizationInput = {
6394
6479
  /** A unique identifier for the client performing the mutation. */
6395
6480
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
6396
- /** The company's primary web domain (no scheme, no trailing slash). */
6397
- domain: Scalars['String']['input'];
6398
6481
  /** Caller-supplied correlation key; pass the same value to `organizationSearchResult(externalId:)` to receive the result. */
6399
6482
  externalId: Scalars['String']['input'];
6483
+ /** Lookup mode — provide exactly one of `domain` or `byIp`. */
6484
+ lookup: OrganizationLookupInput;
6485
+ /**
6486
+ * Optional URL to receive the result via webhook instead of the federated
6487
+ * subscription. Only used with `lookup.byIp`. Requires the `atlas/source:write` scope.
6488
+ */
6489
+ webhookUrl?: InputMaybe<Scalars['String']['input']>;
6400
6490
  };
6401
6491
 
6402
6492
  /** Autogenerated return type of SearchOrganization. */
@@ -6405,6 +6495,7 @@ export type SearchOrganizationPayload = Node & {
6405
6495
  /** A unique identifier for the client performing the mutation. */
6406
6496
  clientMutationId?: Maybe<Scalars['String']['output']>;
6407
6497
  id: Scalars['ID']['output'];
6498
+ /** One of: received. */
6408
6499
  status: Scalars['String']['output'];
6409
6500
  };
6410
6501
 
@@ -6626,24 +6717,26 @@ export type StringFilterInput = {
6626
6717
 
6627
6718
  export type Subscription = {
6628
6719
  __typename?: 'Subscription';
6629
- /**
6630
- * Delivers the result of an `identifyCompany` call, keyed by `externalId`.
6631
- * Subscribe before or immediately after calling `identifyCompany`, passing the
6632
- * same `externalId`. The payload contains the matched Organization, or null if
6633
- * no company could be identified.
6634
- */
6635
- companyIdentifyResult: CompanyIdentifyResultPayload;
6636
6720
  /**
6637
6721
  * Delivers the result of an `enrichContact` call when `externalId` was supplied,
6638
6722
  * keyed by that `externalId`. The payload contains the merged Contact after enrichment.
6639
6723
  */
6640
6724
  contactEnrichmentResult: ContactEnrichmentResultPayload;
6641
6725
  /**
6642
- * Delivers the result of an `identifyContact` call, keyed by `externalId`.
6643
- * Subscribe before or immediately after calling `identifyContact`, passing the
6644
- * same `externalId`. The payload contains the matched Contact, or null if not found.
6726
+ * Delivers the result of a `searchContact` call, keyed by `externalId`.
6727
+ * Subscribe before or immediately after calling `searchContact`, passing the
6728
+ * same `externalId`. The payload contains the matched Contact (or null if not found),
6729
+ * regardless of which probe mode was used.
6645
6730
  */
6646
6731
  contactIdentifyResult: ContactIdentifyResultPayload;
6732
+ /**
6733
+ * Delivers the result of a `searchContacts` call, keyed by `externalId`.
6734
+ * The payload contains the contacts matching the filter — both
6735
+ * pre-existing database matches and newly-discovered, newly-persisted
6736
+ * third-party (Coresignal) matches, since Coresignal-sourced contacts
6737
+ * are persisted before this query runs.
6738
+ */
6739
+ contactSearchResult: ContactSearchResultPayload;
6647
6740
  /**
6648
6741
  * Delivers the result of a `validateContact` call, keyed by `externalId`.
6649
6742
  * The payload contains the Contact and per-field coherence flags in `clues`.
@@ -6656,11 +6749,6 @@ export type Subscription = {
6656
6749
  * The payload contains the Organization and per-field coherence flags in `clues`.
6657
6750
  */
6658
6751
  domainValidationResult: DomainValidationResultPayload;
6659
- /**
6660
- * Delivers the result of a `findContactEmail` call, keyed by `externalId`.
6661
- * The payload contains the Contact with the discovered email, or null if no email was found.
6662
- */
6663
- findContactEmailResult: FindContactEmailResultPayload;
6664
6752
  /**
6665
6753
  * Fires when the authenticated user's company memberships change. Returns the
6666
6754
  * user so the client can query updated membership data.
@@ -6668,8 +6756,8 @@ export type Subscription = {
6668
6756
  membershipChanged: User;
6669
6757
  /**
6670
6758
  * Delivers the result of a `searchOrganization` call, keyed by `externalId`.
6671
- * The payload contains the Organization once Atlas has looked up or enriched it,
6672
- * or null if no data was found for the domain.
6759
+ * The payload contains the Organization once Atlas has looked up or enriched it
6760
+ * (whether by domain or IP), or null if no match was found.
6673
6761
  */
6674
6762
  organizationSearchResult: OrganizationSearchResultPayload;
6675
6763
  /** Spike subscription used to validate the callback transport end-to-end. */
@@ -6677,17 +6765,17 @@ export type Subscription = {
6677
6765
  };
6678
6766
 
6679
6767
 
6680
- export type SubscriptionCompanyIdentifyResultArgs = {
6768
+ export type SubscriptionContactEnrichmentResultArgs = {
6681
6769
  externalId: Scalars['ID']['input'];
6682
6770
  };
6683
6771
 
6684
6772
 
6685
- export type SubscriptionContactEnrichmentResultArgs = {
6773
+ export type SubscriptionContactIdentifyResultArgs = {
6686
6774
  externalId: Scalars['ID']['input'];
6687
6775
  };
6688
6776
 
6689
6777
 
6690
- export type SubscriptionContactIdentifyResultArgs = {
6778
+ export type SubscriptionContactSearchResultArgs = {
6691
6779
  externalId: Scalars['ID']['input'];
6692
6780
  };
6693
6781
 
@@ -6707,11 +6795,6 @@ export type SubscriptionDomainValidationResultArgs = {
6707
6795
  };
6708
6796
 
6709
6797
 
6710
- export type SubscriptionFindContactEmailResultArgs = {
6711
- externalId: Scalars['ID']['input'];
6712
- };
6713
-
6714
-
6715
6798
  export type SubscriptionOrganizationSearchResultArgs = {
6716
6799
  externalId: Scalars['ID']['input'];
6717
6800
  };
@@ -6721,11 +6804,7 @@ export type SubscriptionPingArgs = {
6721
6804
  externalId: Scalars['ID']['input'];
6722
6805
  };
6723
6806
 
6724
- /**
6725
- * A proactive proposal Max surfaces to a company (e.g. a fix for a failing
6726
- * routine). Mutable: it moves through a lifecycle as the user acts on it or the
6727
- * underlying problem is resolved.
6728
- */
6807
+ /** Federation reference to a Suggestion owned by another subgraph. */
6729
6808
  export type Suggestion = Node & {
6730
6809
  __typename?: 'Suggestion';
6731
6810
  /**
@@ -6745,6 +6824,7 @@ export type Suggestion = Node & {
6745
6824
  * (the user is routed to a manual call to action).
6746
6825
  */
6747
6826
  executionMode: Scalars['String']['output'];
6827
+ /** GlobalID-encoded Suggestion id. */
6748
6828
  id: Scalars['ID']['output'];
6749
6829
  /** Symbolic fix this suggestion proposes. The client maps it to copy and a call to action. */
6750
6830
  remediationKey: SuggestionRemediationKeyEnum;
@@ -6797,6 +6877,12 @@ export type SuggestionRemediationInput = {
6797
6877
  * `fix_slack_channel`.
6798
6878
  */
6799
6879
  channel?: InputMaybe<Scalars['String']['input']>;
6880
+ /**
6881
+ * French city names (e.g. `["Paris", "Lyon"]`) to write into the signal
6882
+ * watcher's configuration. Required when accepting an `activate_signal`
6883
+ * suggestion for the `gmb-listing` signal.
6884
+ */
6885
+ cities?: InputMaybe<Array<Scalars['String']['input']>>;
6800
6886
  };
6801
6887
 
6802
6888
  /** Symbolic fix a suggestion proposes. The client maps each value to user-facing copy and a call to action. */
@@ -6866,17 +6952,14 @@ export type TokenResponse = Node & {
6866
6952
  tokenType?: Maybe<Scalars['String']['output']>;
6867
6953
  };
6868
6954
 
6869
- /**
6870
- * A writing style profile Max learned from conversations or sent emails. The
6871
- * active profile is injected into Max's agents to shape copy.
6872
- */
6955
+ /** Federation reference to a ToneOfVoice owned by another subgraph. */
6873
6956
  export type ToneOfVoice = Node & {
6874
6957
  __typename?: 'ToneOfVoice';
6875
6958
  /** Rules about what Max should never write (banned phrases, patterns, tones). */
6876
6959
  dontWrite: Array<Scalars['String']['output']>;
6877
6960
  /** Number of sent emails this profile was trained on. Null for conversation-based profiles. */
6878
6961
  emailsAnalyzed?: Maybe<Scalars['Int']['output']>;
6879
- /** Global ID of this tone-of-voice profile. */
6962
+ /** GlobalID-encoded ToneOfVoice id. */
6880
6963
  id: Scalars['ID']['output'];
6881
6964
  /** Rules about what Max should preserve (positive style traits to keep). */
6882
6965
  keepRules: Array<Scalars['String']['output']>;
@@ -6933,11 +7016,12 @@ export type ToneOfVoiceStatusEnum =
6933
7016
  /** Status "draft". */
6934
7017
  | 'DRAFT';
6935
7018
 
6936
- /** A tool invocation made by the assistant. */
7019
+ /** Federation reference to a ToolCall owned by another subgraph. */
6937
7020
  export type ToolCall = Node & {
6938
7021
  __typename?: 'ToolCall';
6939
7022
  /** Arguments passed to the tool, as JSON. */
6940
7023
  arguments: Scalars['JSON']['output'];
7024
+ /** GlobalID-encoded ToolCall id. */
6941
7025
  id: Scalars['ID']['output'];
6942
7026
  /** Whether the client renders this tool call and, if so, whether it awaits user input. */
6943
7027
  kind: ToolKind;
@@ -7377,7 +7461,7 @@ export type UpdateUserLocalePayload = Node & {
7377
7461
  user: User;
7378
7462
  };
7379
7463
 
7380
- /** A Max-tenant user account, upserted from the calling JWT. */
7464
+ /** Federation reference to a User owned by another subgraph. */
7381
7465
  export type User = Node & {
7382
7466
  __typename?: 'User';
7383
7467
  /** Companies this user is a member of. */
@@ -7390,7 +7474,7 @@ export type User = Node & {
7390
7474
  email: Scalars['String']['output'];
7391
7475
  /** Given name, if present in the JWT. */
7392
7476
  firstName?: Maybe<Scalars['String']['output']>;
7393
- /** Stable Max user UUID. */
7477
+ /** GlobalID-encoded User id. */
7394
7478
  id: Scalars['ID']['output'];
7395
7479
  /**
7396
7480
  * The user's user-scoped integrations (connected mailboxes / LinkedIn). Only
@@ -7417,7 +7501,7 @@ export type User = Node & {
7417
7501
  };
7418
7502
 
7419
7503
 
7420
- /** A Max-tenant user account, upserted from the calling JWT. */
7504
+ /** Federation reference to a User owned by another subgraph. */
7421
7505
  export type UserCompaniesArgs = {
7422
7506
  after?: InputMaybe<Scalars['String']['input']>;
7423
7507
  before?: InputMaybe<Scalars['String']['input']>;
@@ -7426,13 +7510,13 @@ export type UserCompaniesArgs = {
7426
7510
  };
7427
7511
 
7428
7512
 
7429
- /** A Max-tenant user account, upserted from the calling JWT. */
7513
+ /** Federation reference to a User owned by another subgraph. */
7430
7514
  export type UserCompanyArgs = {
7431
7515
  idOrSlug: Scalars['String']['input'];
7432
7516
  };
7433
7517
 
7434
7518
 
7435
- /** A Max-tenant user account, upserted from the calling JWT. */
7519
+ /** Federation reference to a User owned by another subgraph. */
7436
7520
  export type UserIntegrationsArgs = {
7437
7521
  after?: InputMaybe<Scalars['String']['input']>;
7438
7522
  before?: InputMaybe<Scalars['String']['input']>;
@@ -7441,7 +7525,7 @@ export type UserIntegrationsArgs = {
7441
7525
  };
7442
7526
 
7443
7527
 
7444
- /** A Max-tenant user account, upserted from the calling JWT. */
7528
+ /** Federation reference to a User owned by another subgraph. */
7445
7529
  export type UserMembershipsArgs = {
7446
7530
  after?: InputMaybe<Scalars['String']['input']>;
7447
7531
  before?: InputMaybe<Scalars['String']['input']>;
@@ -7450,7 +7534,7 @@ export type UserMembershipsArgs = {
7450
7534
  };
7451
7535
 
7452
7536
 
7453
- /** A Max-tenant user account, upserted from the calling JWT. */
7537
+ /** Federation reference to a User owned by another subgraph. */
7454
7538
  export type UserOwnerArgs = {
7455
7539
  conversationId: Scalars['ID']['input'];
7456
7540
  };
@@ -7545,6 +7629,7 @@ export type ValidateContactPayload = Node & {
7545
7629
  /** A unique identifier for the client performing the mutation. */
7546
7630
  clientMutationId?: Maybe<Scalars['String']['output']>;
7547
7631
  id: Scalars['ID']['output'];
7632
+ /** One of: received. */
7548
7633
  status: Scalars['String']['output'];
7549
7634
  };
7550
7635
 
@@ -7572,6 +7657,7 @@ export type ValidateDomainPayload = Node & {
7572
7657
  /** A unique identifier for the client performing the mutation. */
7573
7658
  clientMutationId?: Maybe<Scalars['String']['output']>;
7574
7659
  id: Scalars['ID']['output'];
7660
+ /** One of: received. */
7575
7661
  status: Scalars['String']['output'];
7576
7662
  };
7577
7663
 
@@ -7599,7 +7685,7 @@ export type ValidationChecksInput = {
7599
7685
  phone?: InputMaybe<Scalars['String']['input']>;
7600
7686
  };
7601
7687
 
7602
- /** Federation reference to a Signals-owned Watcher. */
7688
+ /** Federation reference to a Watcher owned by another subgraph. */
7603
7689
  export type Watcher = AcquisitionerInterface & Node & {
7604
7690
  __typename?: 'Watcher';
7605
7691
  /** Timestamp at which the Watcher was permanently canceled, or null if active or paused. */
@@ -7612,7 +7698,7 @@ export type Watcher = AcquisitionerInterface & Node & {
7612
7698
  definition: Definition;
7613
7699
  /** Captured Events for this Watcher, newest first. */
7614
7700
  events: EventConnection;
7615
- /** GlobalID-encoded watcher id. */
7701
+ /** GlobalID-encoded Watcher id. */
7616
7702
  id: Scalars['ID']['output'];
7617
7703
  /**
7618
7704
  * User-supplied input that defines what to track (e.g. keywords, domain, post
@@ -7631,8 +7717,6 @@ export type Watcher = AcquisitionerInterface & Node & {
7631
7717
  installations: Array<Scalars['JSON']['output']>;
7632
7718
  /** Human-readable display name of the Watcher, derived from the signal Definition it tracks. */
7633
7719
  name: Scalars['String']['output'];
7634
- /** Timestamp at which the Watcher was paused, or null if active or canceled. */
7635
- pausedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;
7636
7720
  /** Timestamp of the most recent change to this Watcher. */
7637
7721
  updatedAt: Scalars['ISO8601DateTime']['output'];
7638
7722
  /** Delivery URLs registered on this watcher. Secrets are never exposed. */
@@ -7640,7 +7724,7 @@ export type Watcher = AcquisitionerInterface & Node & {
7640
7724
  };
7641
7725
 
7642
7726
 
7643
- /** Federation reference to a Signals-owned Watcher. */
7727
+ /** Federation reference to a Watcher owned by another subgraph. */
7644
7728
  export type WatcherEventsArgs = {
7645
7729
  after?: InputMaybe<Scalars['String']['input']>;
7646
7730
  before?: InputMaybe<Scalars['String']['input']>;
@@ -7759,6 +7843,7 @@ export type Join__Graph =
7759
7843
  | 'BILLING'
7760
7844
  | 'HERMES'
7761
7845
  | 'MAX'
7846
+ | 'MERCATOR'
7762
7847
  | 'OUTREACH'
7763
7848
  | 'SIGNALS';
7764
7849
 
@@ -7771,204 +7856,7 @@ export type Link__Purpose =
7771
7856
  export type MeQueryVariables = Exact<{ [key: string]: never; }>;
7772
7857
 
7773
7858
 
7774
- export type MeQuery = { __typename?: 'Query', me?: { __typename?: 'User', sub: string, email: string, firstName?: string | null, lastName?: string | null, companies: { __typename?: 'CompanyConnection', nodes?: Array<{ __typename?: 'Company', id: string, name: string, slug: string } | null> | null }, memberships: { __typename?: 'MembershipConnection', nodes?: Array<{ __typename?: 'Membership', conversation: { __typename?: 'Conversation', id: string }, company: { __typename?: 'Company', id: string } } | null> | null } } | null };
7775
-
7776
- export type ConversationQueryVariables = Exact<{
7777
- id: Scalars['ID']['input'];
7778
- }>;
7779
-
7780
-
7781
- export type ConversationQuery = { __typename?: 'Query', node?:
7782
- | { __typename?: 'AcceptInvitationPayload' }
7783
- | { __typename?: 'AcceptOnboardingInvitePayload' }
7784
- | { __typename?: 'AcceptSuggestionPayload' }
7785
- | { __typename?: 'AcknowledgeBillingStatePayload' }
7786
- | { __typename?: 'Action' }
7787
- | { __typename?: 'ActionEdge' }
7788
- | { __typename?: 'Activity' }
7789
- | { __typename?: 'ActivityEdge' }
7790
- | { __typename?: 'AgentTask' }
7791
- | { __typename?: 'AgentTaskEdge' }
7792
- | { __typename?: 'BillingCredit' }
7793
- | { __typename?: 'BillingCreditEdge' }
7794
- | { __typename?: 'BillingCustomer' }
7795
- | { __typename?: 'BillingDebit' }
7796
- | { __typename?: 'BillingInvoice' }
7797
- | { __typename?: 'BillingInvoiceEdge' }
7798
- | { __typename?: 'BillingPlanCatalogEntry' }
7799
- | { __typename?: 'BillingSubscription' }
7800
- | { __typename?: 'BillingSubscriptionChangePreview' }
7801
- | { __typename?: 'CancelBillingCustomerSubscriptionsPayload' }
7802
- | { __typename?: 'CancelConversationPayload' }
7803
- | { __typename?: 'ChangeBillingSubscriptionPayload' }
7804
- | { __typename?: 'Company' }
7805
- | { __typename?: 'CompanyEdge' }
7806
- | { __typename?: 'CompanyOnboardingTask' }
7807
- | { __typename?: 'CompanyOnboardingTaskEdge' }
7808
- | { __typename?: 'Competitor' }
7809
- | { __typename?: 'CompetitorEdge' }
7810
- | { __typename?: 'ConnectIntegrationPayload' }
7811
- | { __typename?: 'Contact' }
7812
- | { __typename?: 'Conversation', id: string, title?: string | null, status: string, modelId: string, createdAt: any, updatedAt: any, messages: { __typename?: 'MessageConnection', nodes?: Array<{ __typename?: 'Message', id: string, role: string, content?: string | null, modelId?: string | null, inputTokens?: number | null, outputTokens?: number | null, createdAt: any } | null> | null } }
7813
- | { __typename?: 'CreateBillingCheckoutPayload' }
7814
- | { __typename?: 'CreateBillingCheckoutSessionPayload' }
7815
- | { __typename?: 'CreateBillingCustomerPayload' }
7816
- | { __typename?: 'CreateBillingEmbeddedCheckoutSessionPayload' }
7817
- | { __typename?: 'CreateBillingOfferEmbeddedCheckoutSessionPayload' }
7818
- | { __typename?: 'CreateBillingOfferPayload' }
7819
- | { __typename?: 'CreateBillingPortalSessionPayload' }
7820
- | { __typename?: 'CreateCompanyPayload' }
7821
- | { __typename?: 'CreateCompetitorPayload' }
7822
- | { __typename?: 'CreateDifferentiatorPayload' }
7823
- | { __typename?: 'CreateIdealCustomerProfilePayload' }
7824
- | { __typename?: 'CreateInvitationPayload' }
7825
- | { __typename?: 'CreatePositioningPayload' }
7826
- | { __typename?: 'CreateRoutineFromTemplatePayload' }
7827
- | { __typename?: 'CreateRoutinePayload' }
7828
- | { __typename?: 'CreateSalesOfferPayload' }
7829
- | { __typename?: 'CreateWatcherPayload' }
7830
- | { __typename?: 'DebitCreditsPayload' }
7831
- | { __typename?: 'DeleteBillingCustomerPayload' }
7832
- | { __typename?: 'DeleteWatcherPayload' }
7833
- | { __typename?: 'DeprecatedActionBinding' }
7834
- | { __typename?: 'DeprecatedActionBindingEdge' }
7835
- | { __typename?: 'DestroyCompetitorPayload' }
7836
- | { __typename?: 'DestroyDifferentiatorPayload' }
7837
- | { __typename?: 'DestroyIdealCustomerProfilePayload' }
7838
- | { __typename?: 'DestroyMemoryPayload' }
7839
- | { __typename?: 'DestroyPositioningPayload' }
7840
- | { __typename?: 'DestroyRoutinePayload' }
7841
- | { __typename?: 'DeviceCodeResponse' }
7842
- | { __typename?: 'Differentiator' }
7843
- | { __typename?: 'DifferentiatorEdge' }
7844
- | { __typename?: 'DisconnectIntegrationPayload' }
7845
- | { __typename?: 'EnsureBillingCustomerPayload' }
7846
- | { __typename?: 'Event' }
7847
- | { __typename?: 'EventEdge' }
7848
- | { __typename?: 'FindContactEmailPayload' }
7849
- | { __typename?: 'IdealCustomerProfile' }
7850
- | { __typename?: 'IdealCustomerProfileEdge' }
7851
- | { __typename?: 'Identification' }
7852
- | { __typename?: 'IdentificationEdge' }
7853
- | { __typename?: 'IdentifyCompanyPayload' }
7854
- | { __typename?: 'IdentifyContactPayload' }
7855
- | { __typename?: 'ImpersonateUserPayload' }
7856
- | { __typename?: 'InitiateIntegrationOauthPayload' }
7857
- | { __typename?: 'Integration' }
7858
- | { __typename?: 'IntegrationEdge' }
7859
- | { __typename?: 'IntegrationProvider' }
7860
- | { __typename?: 'IntegrationProviderEdge' }
7861
- | { __typename?: 'Invitation' }
7862
- | { __typename?: 'InvitationEdge' }
7863
- | { __typename?: 'Lead' }
7864
- | { __typename?: 'LeadAcquisition' }
7865
- | { __typename?: 'LeadAcquisitionEdge' }
7866
- | { __typename?: 'LeadEdge' }
7867
- | { __typename?: 'LeadQualification' }
7868
- | { __typename?: 'LeadQualificationEdge' }
7869
- | { __typename?: 'Membership' }
7870
- | { __typename?: 'MembershipEdge' }
7871
- | { __typename?: 'MembershipOnboardingTask' }
7872
- | { __typename?: 'MembershipOnboardingTaskEdge' }
7873
- | { __typename?: 'Memory' }
7874
- | { __typename?: 'MemoryEdge' }
7875
- | { __typename?: 'Message' }
7876
- | { __typename?: 'MessageEdge' }
7877
- | { __typename?: 'NotifyBillingCapReachedPayload' }
7878
- | { __typename?: 'Offer' }
7879
- | { __typename?: 'Organization' }
7880
- | { __typename?: 'OrganizationAddress' }
7881
- | { __typename?: 'OrganizationAddressEdge' }
7882
- | { __typename?: 'OrganizationEdge' }
7883
- | { __typename?: 'OutboundCampaign' }
7884
- | { __typename?: 'OutboundCampaignEnrollment' }
7885
- | { __typename?: 'OutboundCampaignMessagePreview' }
7886
- | { __typename?: 'OutboundCampaignPreview' }
7887
- | { __typename?: 'OutboundCampaignStep' }
7888
- | { __typename?: 'PauseRoutinePayload' }
7889
- | { __typename?: 'PauseWatcherPayload' }
7890
- | { __typename?: 'Positioning' }
7891
- | { __typename?: 'PurchaseCreditsPayload' }
7892
- | { __typename?: 'RecordActivityPayload' }
7893
- | { __typename?: 'RegenerateCompetitorsPayload' }
7894
- | { __typename?: 'RegeneratePositioningPayload' }
7895
- | { __typename?: 'RejectSuggestionPayload' }
7896
- | { __typename?: 'RemoveMembershipPayload' }
7897
- | { __typename?: 'ResendEmailVerificationPayload' }
7898
- | { __typename?: 'ResendInvitationPayload' }
7899
- | { __typename?: 'ResetCompanyPayload' }
7900
- | { __typename?: 'RespondToToolCallPayload' }
7901
- | { __typename?: 'ResumeRoutinePayload' }
7902
- | { __typename?: 'ResumeWatcherPayload' }
7903
- | { __typename?: 'RetrainToneOfVoicePayload' }
7904
- | { __typename?: 'RevokeInvitationPayload' }
7905
- | { __typename?: 'RotateIntegrationCredentialPayload' }
7906
- | { __typename?: 'Routine' }
7907
- | { __typename?: 'RoutineAction' }
7908
- | { __typename?: 'RoutineActionEdge' }
7909
- | { __typename?: 'RoutineActionRun' }
7910
- | { __typename?: 'RoutineActionRunEdge' }
7911
- | { __typename?: 'RoutineEdge' }
7912
- | { __typename?: 'RoutineRun' }
7913
- | { __typename?: 'RoutineRunEdge' }
7914
- | { __typename?: 'RoutineTemplate' }
7915
- | { __typename?: 'RoutineTemplateAction' }
7916
- | { __typename?: 'RoutineTemplateActionEdge' }
7917
- | { __typename?: 'RoutineTemplateEdge' }
7918
- | { __typename?: 'RunMaxSynchronousWorkerPayload' }
7919
- | { __typename?: 'RunSignalsSynchronousWorkerPayload' }
7920
- | { __typename?: 'RunSynchronousWorkerPayload' }
7921
- | { __typename?: 'SearchOrganizationPayload' }
7922
- | { __typename?: 'SendTransactionalEmailPayload' }
7923
- | { __typename?: 'SetWebhookActivePayload' }
7924
- | { __typename?: 'SkipMembershipOnboardingTaskPayload' }
7925
- | { __typename?: 'SlackChannel' }
7926
- | { __typename?: 'SlackChannelEdge' }
7927
- | { __typename?: 'Source' }
7928
- | { __typename?: 'Suggestion' }
7929
- | { __typename?: 'SuggestionEdge' }
7930
- | { __typename?: 'TokenResponse' }
7931
- | { __typename?: 'ToneOfVoice' }
7932
- | { __typename?: 'ToneOfVoiceEdge' }
7933
- | { __typename?: 'ToolCall' }
7934
- | { __typename?: 'ToolCallEdge' }
7935
- | { __typename?: 'TriggerRoutinePayload' }
7936
- | { __typename?: 'TriggerWatcherPayload' }
7937
- | { __typename?: 'UpdateBillingSubscriptionSeatsPayload' }
7938
- | { __typename?: 'UpdateCompanyPayload' }
7939
- | { __typename?: 'UpdateCompetitorPayload' }
7940
- | { __typename?: 'UpdateDifferentiatorPayload' }
7941
- | { __typename?: 'UpdateIdealCustomerProfilePayload' }
7942
- | { __typename?: 'UpdatePositioningPayload' }
7943
- | { __typename?: 'UpdateRoutinePayload' }
7944
- | { __typename?: 'UpdateUserLocalePayload' }
7945
- | { __typename?: 'User' }
7946
- | { __typename?: 'UserEdge' }
7947
- | { __typename?: 'ValidateContactPayload' }
7948
- | { __typename?: 'ValidateDomainPayload' }
7949
- | { __typename?: 'Watcher' }
7950
- | null };
7951
-
7952
- export type SendMessageMutationVariables = Exact<{
7953
- input: SendMessageInput;
7954
- }>;
7955
-
7956
-
7957
- export type SendMessageMutation = { __typename?: 'Mutation', sendMessage?: { __typename?: 'Message', id: string, role: string, content?: string | null, createdAt: any } | null };
7958
-
7959
- export type RespondToToolCallMutationVariables = Exact<{
7960
- input: RespondToToolCallInput;
7961
- }>;
7962
-
7963
-
7964
- export type RespondToToolCallMutation = { __typename?: 'Mutation', respondToToolCall?: { __typename?: 'RespondToToolCallPayload', ok: boolean } | null };
7965
-
7966
- export type CancelConversationMutationVariables = Exact<{
7967
- input: CancelConversationInput;
7968
- }>;
7969
-
7970
-
7971
- export type CancelConversationMutation = { __typename?: 'Mutation', cancelConversation?: { __typename?: 'CancelConversationPayload', ok: boolean } | null };
7859
+ export type MeQuery = { __typename?: 'Query', me?: { __typename?: 'User', sub: string, email: string, firstName?: string | null, lastName?: string | null, companies: { __typename?: 'CompanyConnection', nodes?: Array<{ __typename?: 'Company', id: string, name: string, slug: string } | null> | null } } | null };
7972
7860
 
7973
7861
  export type CreateSalesOfferMutationVariables = Exact<{
7974
7862
  input: CreateSalesOfferInput;
@@ -7977,28 +7865,6 @@ export type CreateSalesOfferMutationVariables = Exact<{
7977
7865
 
7978
7866
  export type CreateSalesOfferMutation = { __typename?: 'Mutation', createSalesOffer?: { __typename?: 'CreateSalesOfferPayload', inviteUrl: string, offerId: string, companyId: string } | null };
7979
7867
 
7980
- export type ConversationEventSubscriptionVariables = Exact<{
7981
- conversationId: Scalars['ID']['input'];
7982
- }>;
7983
-
7984
-
7985
- export type ConversationEventSubscription = { __typename?: 'Subscription', conversationEvent:
7986
- | { __typename: 'AgentLoopCancelledEvent', agentLoopId: string, agentLoopSequence: number }
7987
- | { __typename: 'AgentLoopCompletedEvent', messageId?: string | null, agentLoopId: string, agentLoopSequence: number }
7988
- | { __typename: 'AgentLoopFailedEvent', message: string, agentLoopId: string, agentLoopSequence: number }
7989
- | { __typename: 'AgentLoopPausedEvent', agentLoopId: string, agentLoopSequence: number }
7990
- | { __typename: 'AgentLoopResumedEvent', agentLoopId: string, agentLoopSequence: number }
7991
- | { __typename: 'AgentLoopStartedEvent', agentLoopId: string, agentLoopSequence: number }
7992
- | { __typename: 'AgentPickedEvent', agent: string, reason?: string | null, turn: number, agentLoopId: string, agentLoopSequence: number }
7993
- | { __typename: 'AgentTaskEvent', agentLoopId: string, agentLoopSequence: number }
7994
- | { __typename: 'MessageChunkEvent', content: string, agentLoopId: string, agentLoopSequence: number }
7995
- | { __typename: 'MessageEndedEvent', agentLoopId: string, agentLoopSequence: number }
7996
- | { __typename: 'MessageStartedEvent', agentLoopId: string, agentLoopSequence: number }
7997
- | { __typename: 'SupervisorVerdictEvent', verdict: string, reason?: string | null, turn: number, agentLoopId: string, agentLoopSequence: number }
7998
- | { __typename: 'ToolCallEvent', toolName: string, toolCallId: string, arguments?: any | null, agentLoopId: string, agentLoopSequence: number }
7999
- | { __typename: 'ToolResultEvent', toolCallId: string, content: string, agentLoopId: string, agentLoopSequence: number }
8000
- };
8001
-
8002
7868
  export type LogoutUrlQueryVariables = Exact<{ [key: string]: never; }>;
8003
7869
 
8004
7870
 
@@ -8026,13 +7892,8 @@ export type RefreshTokenMutationVariables = Exact<{
8026
7892
  export type RefreshTokenMutation = { __typename?: 'Mutation', refreshToken?: { __typename?: 'TokenResponse', accessToken?: string | null, error?: string | null, expiresIn?: number | null, idToken?: string | null, refreshToken?: string | null, tokenType?: string | null } | null };
8027
7893
 
8028
7894
 
8029
- export const MeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sub"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"companies"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"memberships"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"conversation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"company"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<MeQuery, MeQueryVariables>;
8030
- export const ConversationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Conversation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Conversation"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"messages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"last"},"value":{"kind":"IntValue","value":"50"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"inputTokens"}},{"kind":"Field","name":{"kind":"Name","value":"outputTokens"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<ConversationQuery, ConversationQueryVariables>;
8031
- export const SendMessageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SendMessage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SendMessageInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sendMessage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]} as unknown as DocumentNode<SendMessageMutation, SendMessageMutationVariables>;
8032
- export const RespondToToolCallDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RespondToToolCall"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RespondToToolCallInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"respondToToolCall"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode<RespondToToolCallMutation, RespondToToolCallMutationVariables>;
8033
- export const CancelConversationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CancelConversation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CancelConversationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cancelConversation"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]}}]} as unknown as DocumentNode<CancelConversationMutation, CancelConversationMutationVariables>;
7895
+ export const MeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sub"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"companies"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}}]}}]}}]} as unknown as DocumentNode<MeQuery, MeQueryVariables>;
8034
7896
  export const CreateSalesOfferDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateSalesOffer"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateSalesOfferInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createSalesOffer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"inviteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"offerId"}},{"kind":"Field","name":{"kind":"Name","value":"companyId"}}]}}]}}]} as unknown as DocumentNode<CreateSalesOfferMutation, CreateSalesOfferMutationVariables>;
8035
- export const ConversationEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"ConversationEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"conversationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"conversationEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"conversationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"conversationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"agentLoopId"}},{"kind":"Field","name":{"kind":"Name","value":"agentLoopSequence"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MessageChunkEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"content"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ToolCallEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"toolName"}},{"kind":"Field","name":{"kind":"Name","value":"toolCallId"}},{"kind":"Field","name":{"kind":"Name","value":"arguments"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ToolResultEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"toolCallId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentPickedEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agent"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"turn"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SupervisorVerdictEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"verdict"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"turn"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentLoopCompletedEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentLoopFailedEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<ConversationEventSubscription, ConversationEventSubscriptionVariables>;
8036
7897
  export const LogoutUrlDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"LogoutUrl"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"logoutUrl"}}]}}]} as unknown as DocumentNode<LogoutUrlQuery, LogoutUrlQueryVariables>;
8037
7898
  export const DeviceAuthorizeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeviceAuthorize"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeviceAuthorizeInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deviceAuthorize"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deviceCode"}},{"kind":"Field","name":{"kind":"Name","value":"expiresIn"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"userCode"}},{"kind":"Field","name":{"kind":"Name","value":"verificationUri"}},{"kind":"Field","name":{"kind":"Name","value":"verificationUriComplete"}}]}}]}}]} as unknown as DocumentNode<DeviceAuthorizeMutation, DeviceAuthorizeMutationVariables>;
8038
7899
  export const DeviceTokenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeviceToken"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeviceTokenInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deviceToken"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessToken"}},{"kind":"Field","name":{"kind":"Name","value":"error"}},{"kind":"Field","name":{"kind":"Name","value":"expiresIn"}},{"kind":"Field","name":{"kind":"Name","value":"idToken"}},{"kind":"Field","name":{"kind":"Name","value":"refreshToken"}},{"kind":"Field","name":{"kind":"Name","value":"tokenType"}}]}}]}}]} as unknown as DocumentNode<DeviceTokenMutation, DeviceTokenMutationVariables>;