@sortlist/cli 0.33.0 → 0.34.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.
@@ -22,7 +22,7 @@ export type Scalars = {
22
22
  ISO8601Duration: { input: any; output: any; }
23
23
  /** Represents untyped JSON */
24
24
  JSON: { input: any; output: any; }
25
- /** An integer range represented as a two-element array [min, max]. */
25
+ /** An integer range represented as a two-element array [min, max]. A one-element array [min] is open-ended. */
26
26
  Range: { input: any; output: any; }
27
27
  join__DirectiveArguments: { input: any; output: any; }
28
28
  join__FieldSet: { input: any; output: any; }
@@ -174,11 +174,10 @@ export type ActionConnection = {
174
174
  };
175
175
 
176
176
  /** An edge in a connection. */
177
- export type ActionEdge = Node & {
177
+ export type ActionEdge = {
178
178
  __typename?: 'ActionEdge';
179
179
  /** A cursor for use in pagination. */
180
180
  cursor: Scalars['String']['output'];
181
- id: Scalars['ID']['output'];
182
181
  /** The item at the end of the edge. */
183
182
  node?: Maybe<Action>;
184
183
  };
@@ -232,11 +231,10 @@ export type ActivityConnection = {
232
231
  };
233
232
 
234
233
  /** An edge in a connection. */
235
- export type ActivityEdge = Node & {
234
+ export type ActivityEdge = {
236
235
  __typename?: 'ActivityEdge';
237
236
  /** A cursor for use in pagination. */
238
237
  cursor: Scalars['String']['output'];
239
- id: Scalars['ID']['output'];
240
238
  /** The item at the end of the edge. */
241
239
  node?: Maybe<Activity>;
242
240
  };
@@ -261,6 +259,32 @@ export type ActivityKindEnum =
261
259
  | 'SIGNAL_FIRED'
262
260
  | 'SUGGESTION';
263
261
 
262
+ /** A national administrative code attached to a division, such as a French INSEE region or département code. */
263
+ export type AdministrativeCode = Node & {
264
+ __typename?: 'AdministrativeCode';
265
+ id: Scalars['ID']['output'];
266
+ /**
267
+ * Global id of the division that carries this code natively. Equals the queried
268
+ * location's own id for its own codes, or an ancestor's id for an inherited one
269
+ * — e.g. Lyon reports Rhône's département code with Rhône's id here.
270
+ */
271
+ locationId: Scalars['ID']['output'];
272
+ /** Coding scheme the value belongs to. */
273
+ scheme: AdministrativeCodeScheme;
274
+ /** The code itself, as the scheme's authority writes it — e.g. "11", "2A", "971". Not zero-stripped. */
275
+ value: Scalars['String']['output'];
276
+ };
277
+
278
+ /** National coding scheme an administrative code belongs to. */
279
+ export type AdministrativeCodeScheme =
280
+ /**
281
+ * French INSEE département code, e.g. "69" for Rhône, "2A" for Corse-du-Sud,
282
+ * "971" for Guadeloupe. Carried by COUNTY divisions.
283
+ */
284
+ | 'INSEE_DEPARTMENT'
285
+ /** French INSEE region code, e.g. "11" for Île-de-France. Carried by REGION divisions. */
286
+ | 'INSEE_REGION';
287
+
264
288
  /** The assistant's reply was cancelled before it finished. */
265
289
  export type AgentLoopCancelledEvent = ConversationEventInterface & {
266
290
  __typename?: 'AgentLoopCancelledEvent';
@@ -364,11 +388,10 @@ export type AgentTaskConnection = {
364
388
  };
365
389
 
366
390
  /** An edge in a connection. */
367
- export type AgentTaskEdge = Node & {
391
+ export type AgentTaskEdge = {
368
392
  __typename?: 'AgentTaskEdge';
369
393
  /** A cursor for use in pagination. */
370
394
  cursor: Scalars['String']['output'];
371
- id: Scalars['ID']['output'];
372
395
  /** The item at the end of the edge. */
373
396
  node?: Maybe<AgentTask>;
374
397
  };
@@ -457,11 +480,10 @@ export type BillingCreditConnection = {
457
480
  };
458
481
 
459
482
  /** An edge in a connection. */
460
- export type BillingCreditEdge = Node & {
483
+ export type BillingCreditEdge = {
461
484
  __typename?: 'BillingCreditEdge';
462
485
  /** A cursor for use in pagination. */
463
486
  cursor: Scalars['String']['output'];
464
- id: Scalars['ID']['output'];
465
487
  /** The item at the end of the edge. */
466
488
  node?: Maybe<BillingCredit>;
467
489
  };
@@ -599,11 +621,10 @@ export type BillingInvoiceConnection = {
599
621
  };
600
622
 
601
623
  /** An edge in a connection. */
602
- export type BillingInvoiceEdge = Node & {
624
+ export type BillingInvoiceEdge = {
603
625
  __typename?: 'BillingInvoiceEdge';
604
626
  /** A cursor for use in pagination. */
605
627
  cursor: Scalars['String']['output'];
606
- id: Scalars['ID']['output'];
607
628
  /** The item at the end of the edge. */
608
629
  node?: Maybe<BillingInvoice>;
609
630
  };
@@ -1112,11 +1133,10 @@ export type CompanyConnection = {
1112
1133
  };
1113
1134
 
1114
1135
  /** An edge in a connection. */
1115
- export type CompanyEdge = Node & {
1136
+ export type CompanyEdge = {
1116
1137
  __typename?: 'CompanyEdge';
1117
1138
  /** A cursor for use in pagination. */
1118
1139
  cursor: Scalars['String']['output'];
1119
- id: Scalars['ID']['output'];
1120
1140
  /** The item at the end of the edge. */
1121
1141
  node?: Maybe<Company>;
1122
1142
  };
@@ -1160,11 +1180,10 @@ export type CompanyOnboardingTaskConnection = {
1160
1180
  };
1161
1181
 
1162
1182
  /** An edge in a connection. */
1163
- export type CompanyOnboardingTaskEdge = Node & {
1183
+ export type CompanyOnboardingTaskEdge = {
1164
1184
  __typename?: 'CompanyOnboardingTaskEdge';
1165
1185
  /** A cursor for use in pagination. */
1166
1186
  cursor: Scalars['String']['output'];
1167
- id: Scalars['ID']['output'];
1168
1187
  /** The item at the end of the edge. */
1169
1188
  node?: Maybe<CompanyOnboardingTask>;
1170
1189
  };
@@ -1233,11 +1252,10 @@ export type CompetitorConnection = {
1233
1252
  };
1234
1253
 
1235
1254
  /** An edge in a connection. */
1236
- export type CompetitorEdge = Node & {
1255
+ export type CompetitorEdge = {
1237
1256
  __typename?: 'CompetitorEdge';
1238
1257
  /** A cursor for use in pagination. */
1239
1258
  cursor: Scalars['String']['output'];
1240
- id: Scalars['ID']['output'];
1241
1259
  /** The item at the end of the edge. */
1242
1260
  node?: Maybe<Competitor>;
1243
1261
  };
@@ -1316,6 +1334,8 @@ export type Contact = Node & {
1316
1334
  locations: LocationConnection;
1317
1335
  /** The organization this contact belongs to. */
1318
1336
  organization: Organization;
1337
+ /** Phone number from an enrichment source. Null until a source provides one. */
1338
+ phone?: Maybe<Scalars['String']['output']>;
1319
1339
  /**
1320
1340
  * Profile completeness score (0.0-1.0) from the presence of identity fields,
1321
1341
  * experience, and the merged confidence score. Consumers gate low-quality
@@ -1392,6 +1412,20 @@ export type ContactFilterInput = {
1392
1412
  * Mercator-encoded division IDs, not a scalar Atlas ID filter.
1393
1413
  */
1394
1414
  divisionIds?: InputMaybe<IdFilterInput>;
1415
+ /**
1416
+ * Filter on the contact's email address. Values are downcased and trimmed
1417
+ * before matching — the same transform the column is written through — so
1418
+ * `eq: " Jane@Acme.com "` matches a stored "jane@acme.com". Matching is exact
1419
+ * after that, not a substring or domain search. An email is unique per
1420
+ * organization, and in practice globally, so a positive `eq` matches at most
1421
+ * one contact. Prefer this for a read-only "do we already have this person?"
1422
+ * lookup, batching a list through `in`; `searchContact` is the enriching
1423
+ * counterpart and will call paid providers on a miss. Pair with `valid: false`
1424
+ * to check existence irrespective of the quality floor — the default `valid`
1425
+ * gate requires a verified email and would hide a contact whose address is on
1426
+ * file but unverified. Use `emailStatus` to filter on verification state.
1427
+ */
1428
+ emailAddress?: InputMaybe<StringFilterInput>;
1395
1429
  /** Filter by email verification status (VALID, INVALID, CATCH_ALL, UNKNOWN). */
1396
1430
  emailStatus?: InputMaybe<EmailStatusFilterInput>;
1397
1431
  /** Filter by contact global id. */
@@ -1407,6 +1441,21 @@ export type ContactFilterInput = {
1407
1441
  * Threshold validated by the embedding_calibration test suite.
1408
1442
  */
1409
1443
  jobTitle?: InputMaybe<Array<EmbeddingFilterInput>>;
1444
+ /**
1445
+ * Filter on the contact's LinkedIn URL. `presence: true` returns only contacts
1446
+ * that have one — independent of `valid`, so combine `valid: false` with it to
1447
+ * reach contacts reachable on LinkedIn but without a verified email. `eq`/`in`
1448
+ * match specific URLs.
1449
+ */
1450
+ linkedin?: InputMaybe<StringFilterInput>;
1451
+ /**
1452
+ * Filter on the contact's full name. `presence: true` returns only contacts with
1453
+ * both a first and a last name — it re-expresses `valid`'s name floor on its
1454
+ * own, so callers passing `valid: false` can keep it without the
1455
+ * email/confidence floors. `eq`/`in` match a full name; values are compared
1456
+ * case- and accent-insensitively.
1457
+ */
1458
+ name?: InputMaybe<StringFilterInput>;
1410
1459
  /** Return only complete records (name, email, confidence >= 0.5). */
1411
1460
  valid?: InputMaybe<Scalars['Boolean']['input']>;
1412
1461
  };
@@ -2078,6 +2127,21 @@ export type CreateWatcherInput = {
2078
2127
  definitionSlug: Scalars['String']['input'];
2079
2128
  /** Version of the Definition to subscribe to. */
2080
2129
  definitionVersion: Scalars['Int']['input'];
2130
+ /**
2131
+ * How the upstream source treats a lead it has already delivered for this
2132
+ * watcher. Omit to leave the source's own default in place.
2133
+ */
2134
+ duplicateHandling?: InputMaybe<DuplicateHandlingInput>;
2135
+ /**
2136
+ * Optional Ideal Customer Profile, in the same shape Atlas search uses —
2137
+ * including geography: `contact.divisionIds` / `organization.divisionIds` are
2138
+ * Mercator location division IDs filtered exactly as Atlas search filters them,
2139
+ * so `notIn` excludes places as well. Forwarded to each provider's upstream
2140
+ * source so leads outside the profile are never emitted — and never billed. Part
2141
+ * of the watcher's identity: two callers watching the same topic with different
2142
+ * profiles get separate watchers.
2143
+ */
2144
+ icp?: InputMaybe<WatcherIcpInput>;
2081
2145
  /**
2082
2146
  * Optional freshness-first per-period lead caps for this watcher. Omit or pass
2083
2147
  * an empty list to leave the watcher uncapped. Caps are a property of the
@@ -2317,11 +2381,10 @@ export type DeprecatedActionBindingConnection = {
2317
2381
  };
2318
2382
 
2319
2383
  /** An edge in a connection. */
2320
- export type DeprecatedActionBindingEdge = Node & {
2384
+ export type DeprecatedActionBindingEdge = {
2321
2385
  __typename?: 'DeprecatedActionBindingEdge';
2322
2386
  /** A cursor for use in pagination. */
2323
2387
  cursor: Scalars['String']['output'];
2324
- id: Scalars['ID']['output'];
2325
2388
  /** The item at the end of the edge. */
2326
2389
  node?: Maybe<DeprecatedActionBinding>;
2327
2390
  };
@@ -2480,11 +2543,10 @@ export type DifferentiatorConnection = {
2480
2543
  };
2481
2544
 
2482
2545
  /** An edge in a connection. */
2483
- export type DifferentiatorEdge = Node & {
2546
+ export type DifferentiatorEdge = {
2484
2547
  __typename?: 'DifferentiatorEdge';
2485
2548
  /** A cursor for use in pagination. */
2486
2549
  cursor: Scalars['String']['output'];
2487
- id: Scalars['ID']['output'];
2488
2550
  /** The item at the end of the edge. */
2489
2551
  node?: Maybe<Differentiator>;
2490
2552
  };
@@ -2534,6 +2596,30 @@ export type DomainValidationResultPayload = {
2534
2596
  organization?: Maybe<Organization>;
2535
2597
  };
2536
2598
 
2599
+ /**
2600
+ * Policy for a lead the upstream source has already delivered for this Watcher.
2601
+ * Omit the whole input to leave the source's own default in place.
2602
+ */
2603
+ export type DuplicateHandlingInput = {
2604
+ /** Which policy applies. */
2605
+ mode: DuplicateHandlingModeEnum;
2606
+ /**
2607
+ * How long a repeat delivery stays refused, as an ISO-8601 duration (e.g. P7D).
2608
+ * Required when `mode` is REFUSE_DURING and rejected otherwise. Sources count
2609
+ * this in whole days, so a duration that isn't a whole number of days is rejected.
2610
+ */
2611
+ period?: InputMaybe<Scalars['ISO8601Duration']['input']>;
2612
+ };
2613
+
2614
+ /** How the upstream source treats a lead it has already delivered for a Watcher. */
2615
+ export type DuplicateHandlingModeEnum =
2616
+ /** Always deliver, even for a lead already seen. */
2617
+ | 'ALWAYS'
2618
+ /** Never deliver the same lead twice. */
2619
+ | 'REFUSE'
2620
+ /** Refuse a repeat delivery for `period`, then allow it again. */
2621
+ | 'REFUSE_DURING';
2622
+
2537
2623
  /** Input for an EMAIL step's configuration. */
2538
2624
  export type EmailInput = {
2539
2625
  /** Email body content (Liquid template). Ignored when `generateWithAi` is true. */
@@ -2582,6 +2668,15 @@ export type EmailStepConfig = {
2582
2668
  writingStyle?: Maybe<OutboundCampaignWritingStyle>;
2583
2669
  };
2584
2670
 
2671
+ /** A semantic-similarity filter, as submitted. */
2672
+ export type EmbeddingFilter = {
2673
+ __typename?: 'EmbeddingFilter';
2674
+ /** Cosine distance constraints (0 = identical, 2 = opposite). */
2675
+ distance?: Maybe<FloatFilter>;
2676
+ /** Text that was embedded and compared against. */
2677
+ query?: Maybe<Scalars['String']['output']>;
2678
+ };
2679
+
2585
2680
  /** Filter by semantic similarity using vector embeddings. */
2586
2681
  export type EmbeddingFilterInput = {
2587
2682
  /** Cosine distance constraints (0 = identical, 2 = opposite). */
@@ -2736,15 +2831,29 @@ export type EventConnection = {
2736
2831
  };
2737
2832
 
2738
2833
  /** An edge in a connection. */
2739
- export type EventEdge = Node & {
2834
+ export type EventEdge = {
2740
2835
  __typename?: 'EventEdge';
2741
2836
  /** A cursor for use in pagination. */
2742
2837
  cursor: Scalars['String']['output'];
2743
- id: Scalars['ID']['output'];
2744
2838
  /** The item at the end of the edge. */
2745
2839
  node?: Maybe<Event>;
2746
2840
  };
2747
2841
 
2842
+ /** A numeric comparison filter, as submitted. */
2843
+ export type FloatFilter = {
2844
+ __typename?: 'FloatFilter';
2845
+ /** Exact match. */
2846
+ eq?: Maybe<Scalars['Float']['output']>;
2847
+ /** Greater than. */
2848
+ gt?: Maybe<Scalars['Float']['output']>;
2849
+ /** Greater than or equal. */
2850
+ gteq?: Maybe<Scalars['Float']['output']>;
2851
+ /** Less than. */
2852
+ lt?: Maybe<Scalars['Float']['output']>;
2853
+ /** Less than or equal. */
2854
+ lteq?: Maybe<Scalars['Float']['output']>;
2855
+ };
2856
+
2748
2857
  /** Filter on a numeric column with comparison operators. */
2749
2858
  export type FloatFilterInput = {
2750
2859
  /** Exact match. */
@@ -2855,11 +2964,10 @@ export type IdealCustomerProfileConnection = {
2855
2964
  };
2856
2965
 
2857
2966
  /** An edge in a connection. */
2858
- export type IdealCustomerProfileEdge = Node & {
2967
+ export type IdealCustomerProfileEdge = {
2859
2968
  __typename?: 'IdealCustomerProfileEdge';
2860
2969
  /** A cursor for use in pagination. */
2861
2970
  cursor: Scalars['String']['output'];
2862
- id: Scalars['ID']['output'];
2863
2971
  /** The item at the end of the edge. */
2864
2972
  node?: Maybe<IdealCustomerProfile>;
2865
2973
  };
@@ -3027,11 +3135,10 @@ export type IntegrationConnection = {
3027
3135
  };
3028
3136
 
3029
3137
  /** An edge in a connection. */
3030
- export type IntegrationEdge = Node & {
3138
+ export type IntegrationEdge = {
3031
3139
  __typename?: 'IntegrationEdge';
3032
3140
  /** A cursor for use in pagination. */
3033
3141
  cursor: Scalars['String']['output'];
3034
- id: Scalars['ID']['output'];
3035
3142
  /** The item at the end of the edge. */
3036
3143
  node?: Maybe<Integration>;
3037
3144
  };
@@ -3077,11 +3184,10 @@ export type IntegrationProviderConnection = {
3077
3184
  };
3078
3185
 
3079
3186
  /** An edge in a connection. */
3080
- export type IntegrationProviderEdge = Node & {
3187
+ export type IntegrationProviderEdge = {
3081
3188
  __typename?: 'IntegrationProviderEdge';
3082
3189
  /** A cursor for use in pagination. */
3083
3190
  cursor: Scalars['String']['output'];
3084
- id: Scalars['ID']['output'];
3085
3191
  /** The item at the end of the edge. */
3086
3192
  node?: Maybe<IntegrationProvider>;
3087
3193
  };
@@ -3132,11 +3238,10 @@ export type InvitationConnection = {
3132
3238
  };
3133
3239
 
3134
3240
  /** An edge in a connection. */
3135
- export type InvitationEdge = Node & {
3241
+ export type InvitationEdge = {
3136
3242
  __typename?: 'InvitationEdge';
3137
3243
  /** A cursor for use in pagination. */
3138
3244
  cursor: Scalars['String']['output'];
3139
- id: Scalars['ID']['output'];
3140
3245
  /** The item at the end of the edge. */
3141
3246
  node?: Maybe<Invitation>;
3142
3247
  };
@@ -3284,11 +3389,10 @@ export type LeadAcquisitionConnection = {
3284
3389
  };
3285
3390
 
3286
3391
  /** An edge in a connection. */
3287
- export type LeadAcquisitionEdge = Node & {
3392
+ export type LeadAcquisitionEdge = {
3288
3393
  __typename?: 'LeadAcquisitionEdge';
3289
3394
  /** A cursor for use in pagination. */
3290
3395
  cursor: Scalars['String']['output'];
3291
- id: Scalars['ID']['output'];
3292
3396
  /** The item at the end of the edge. */
3293
3397
  node?: Maybe<LeadAcquisition>;
3294
3398
  };
@@ -3333,11 +3437,10 @@ export type LeadConnection = {
3333
3437
  };
3334
3438
 
3335
3439
  /** An edge in a connection. */
3336
- export type LeadEdge = Node & {
3440
+ export type LeadEdge = {
3337
3441
  __typename?: 'LeadEdge';
3338
3442
  /** A cursor for use in pagination. */
3339
3443
  cursor: Scalars['String']['output'];
3340
- id: Scalars['ID']['output'];
3341
3444
  /** The item at the end of the edge. */
3342
3445
  node?: Maybe<Lead>;
3343
3446
  };
@@ -3368,11 +3471,10 @@ export type LeadQualificationConnection = {
3368
3471
  };
3369
3472
 
3370
3473
  /** An edge in a connection. */
3371
- export type LeadQualificationEdge = Node & {
3474
+ export type LeadQualificationEdge = {
3372
3475
  __typename?: 'LeadQualificationEdge';
3373
3476
  /** A cursor for use in pagination. */
3374
3477
  cursor: Scalars['String']['output'];
3375
- id: Scalars['ID']['output'];
3376
3478
  /** The item at the end of the edge. */
3377
3479
  node?: Maybe<LeadQualification>;
3378
3480
  };
@@ -3416,6 +3518,22 @@ export type Location = Node & {
3416
3518
  __typename?: 'Location';
3417
3519
  /** Numeric hierarchy depth. 0 = country, higher = more granular. */
3418
3520
  adminLevel: Scalars['Int']['output'];
3521
+ /**
3522
+ * National administrative codes for this division, own codes first, then codes
3523
+ * inherited from enclosing divisions — so a locality reports its département's
3524
+ * and region's INSEE codes without the caller walking the hierarchy. Each entry
3525
+ * names the division it came from via locationId. Empty for divisions in
3526
+ * countries without a mapped scheme.
3527
+ */
3528
+ administrativeCodes: Array<AdministrativeCode>;
3529
+ /**
3530
+ * Every enclosing division, ordered root-first (highest ancestor first,
3531
+ * immediate parent last) so the connection reads as a breadcrumb path. Excludes
3532
+ * this location, so a root division returns an empty connection — and so does a
3533
+ * freshly imported division whose ancestry is not yet resolved. The two are
3534
+ * deliberately indistinguishable here: both mean "no ancestors to walk".
3535
+ */
3536
+ ancestors: LocationConnection;
3419
3537
  /** Center point of the division boundary as a GeoJSON Point. */
3420
3538
  centroid?: Maybe<Coordinate>;
3421
3539
  /** Child divisions in the hierarchy. */
@@ -3424,6 +3542,13 @@ export type Location = Node & {
3424
3542
  countryCode?: Maybe<Scalars['String']['output']>;
3425
3543
  /** GlobalID-encoded Location id. */
3426
3544
  id: Scalars['ID']['output'];
3545
+ /**
3546
+ * ISO 3166-2 code of the principal subdivision this division belongs to, e.g.
3547
+ * "FR-IDF", "BE-WAL" — the division's own code only on REGION rows; every deeper
3548
+ * division carries its enclosing region's. As shipped by Overture; null when the
3549
+ * source has none.
3550
+ */
3551
+ iso31662?: Maybe<Scalars['String']['output']>;
3427
3552
  /** Primary English name of the division. */
3428
3553
  name: Scalars['String']['output'];
3429
3554
  /** Parent administrative division in the hierarchy. */
@@ -3433,6 +3558,15 @@ export type Location = Node & {
3433
3558
  };
3434
3559
 
3435
3560
 
3561
+ /** Federation reference to a Location owned by another subgraph. */
3562
+ export type LocationAncestorsArgs = {
3563
+ after?: InputMaybe<Scalars['String']['input']>;
3564
+ before?: InputMaybe<Scalars['String']['input']>;
3565
+ first?: InputMaybe<Scalars['Int']['input']>;
3566
+ last?: InputMaybe<Scalars['Int']['input']>;
3567
+ };
3568
+
3569
+
3436
3570
  /** Federation reference to a Location owned by another subgraph. */
3437
3571
  export type LocationChildrenArgs = {
3438
3572
  after?: InputMaybe<Scalars['String']['input']>;
@@ -3440,6 +3574,7 @@ export type LocationChildrenArgs = {
3440
3574
  deep?: InputMaybe<Scalars['Boolean']['input']>;
3441
3575
  first?: InputMaybe<Scalars['Int']['input']>;
3442
3576
  last?: InputMaybe<Scalars['Int']['input']>;
3577
+ sort?: InputMaybe<Array<LocationSortInput>>;
3443
3578
  subtype?: InputMaybe<LocationSubtypeFilterInput>;
3444
3579
  };
3445
3580
 
@@ -3465,6 +3600,22 @@ export type LocationEdge = {
3465
3600
  node?: Maybe<Location>;
3466
3601
  };
3467
3602
 
3603
+ /** Fields available for sorting locations. */
3604
+ export type LocationSortField =
3605
+ /**
3606
+ * Resident population as shipped by Overture. Null on small or minor divisions,
3607
+ * which sort after every populated one regardless of direction.
3608
+ */
3609
+ | 'POPULATION';
3610
+
3611
+ /** Sort configuration for locations. */
3612
+ export type LocationSortInput = {
3613
+ /** Direction to sort in. Defaults to descending. */
3614
+ direction?: InputMaybe<SortDirection>;
3615
+ /** Field to sort by. */
3616
+ field: LocationSortField;
3617
+ };
3618
+
3468
3619
  /** Administrative subdivision level of a geographic location. */
3469
3620
  export type LocationSubtype =
3470
3621
  /** Borough or city district between the locality and neighborhood levels. */
@@ -3479,6 +3630,12 @@ export type LocationSubtype =
3479
3630
  | 'LOCALADMIN'
3480
3631
  /** City, town, or municipality (admin_level 5-8). */
3481
3632
  | 'LOCALITY'
3633
+ /**
3634
+ * Continent or business macro-region grouping whole countries, above the country
3635
+ * level. Its member countries are exposed through `children`, not through
3636
+ * `parent` on the country: a country belongs to several macro-countries at once.
3637
+ */
3638
+ | 'MACROCOUNTRY'
3482
3639
  /** Grouping of counties between the region and county levels. */
3483
3640
  | 'MACROCOUNTY'
3484
3641
  /** Large area grouping multiple neighborhoods within a locality. */
@@ -3551,11 +3708,10 @@ export type MembershipConnection = {
3551
3708
  };
3552
3709
 
3553
3710
  /** An edge in a connection. */
3554
- export type MembershipEdge = Node & {
3711
+ export type MembershipEdge = {
3555
3712
  __typename?: 'MembershipEdge';
3556
3713
  /** A cursor for use in pagination. */
3557
3714
  cursor: Scalars['String']['output'];
3558
- id: Scalars['ID']['output'];
3559
3715
  /** The item at the end of the edge. */
3560
3716
  node?: Maybe<Membership>;
3561
3717
  };
@@ -3598,11 +3754,10 @@ export type MembershipOnboardingTaskConnection = {
3598
3754
  };
3599
3755
 
3600
3756
  /** An edge in a connection. */
3601
- export type MembershipOnboardingTaskEdge = Node & {
3757
+ export type MembershipOnboardingTaskEdge = {
3602
3758
  __typename?: 'MembershipOnboardingTaskEdge';
3603
3759
  /** A cursor for use in pagination. */
3604
3760
  cursor: Scalars['String']['output'];
3605
- id: Scalars['ID']['output'];
3606
3761
  /** The item at the end of the edge. */
3607
3762
  node?: Maybe<MembershipOnboardingTask>;
3608
3763
  };
@@ -3634,11 +3789,10 @@ export type MemoryConnection = {
3634
3789
  };
3635
3790
 
3636
3791
  /** An edge in a connection. */
3637
- export type MemoryEdge = Node & {
3792
+ export type MemoryEdge = {
3638
3793
  __typename?: 'MemoryEdge';
3639
3794
  /** A cursor for use in pagination. */
3640
3795
  cursor: Scalars['String']['output'];
3641
- id: Scalars['ID']['output'];
3642
3796
  /** The item at the end of the edge. */
3643
3797
  node?: Maybe<Memory>;
3644
3798
  };
@@ -3730,11 +3884,10 @@ export type MessageConnection = {
3730
3884
  };
3731
3885
 
3732
3886
  /** An edge in a connection. */
3733
- export type MessageEdge = Node & {
3887
+ export type MessageEdge = {
3734
3888
  __typename?: 'MessageEdge';
3735
3889
  /** A cursor for use in pagination. */
3736
3890
  cursor: Scalars['String']['output'];
3737
- id: Scalars['ID']['output'];
3738
3891
  /** The item at the end of the edge. */
3739
3892
  node?: Maybe<Message>;
3740
3893
  };
@@ -3874,6 +4027,19 @@ export type Mutation = {
3874
4027
  /**
3875
4028
  * Create a Watcher for a given Definition. All providers registered on the
3876
4029
  * Definition are auto-provisioned atomically; the user does not choose providers.
4030
+ *
4031
+ * There is no mutation to change a Watcher's `watcherInput` or `icp` afterwards,
4032
+ * by design. Both determine *which leads the Watcher returns*, and a Watcher is
4033
+ * shared: callers with the same definition and input attach their own webhook to
4034
+ * one row, so editing it in place would silently repoint every other webhook
4035
+ * attached to it. Those fields are also what the Watcher is keyed on, so
4036
+ * changing them means becoming a different Watcher.
4037
+ *
4038
+ * To change what a Watcher returns, call `createWatcher` again with the new
4039
+ * input — an existing match is reused, otherwise a new Watcher is provisioned —
4040
+ * then `deleteWatcher` the old one if nothing else needs it.
4041
+ * `updateWatcherLeadCaps` and `setWebhookActive` remain available: they bound
4042
+ * volume and delivery, not which leads qualify.
3877
4043
  */
3878
4044
  createWatcher?: Maybe<CreateWatcherPayload>;
3879
4045
  /**
@@ -4920,6 +5086,24 @@ export type OrganizationFilterInput = {
4920
5086
  * array-overlap filter against Mercator-encoded division IDs, not a scalar Atlas ID filter.
4921
5087
  */
4922
5088
  divisionIds?: InputMaybe<IdFilterInput>;
5089
+ /**
5090
+ * Filter on the organization's domain. Values are matched against a normalized
5091
+ * form — host downcased, a single leading "www." dropped — so `eq:
5092
+ * "https://www.Acme.com/about"` matches a stored "acme.com". Matching is exact
5093
+ * after that normalization, not a substring or suffix search, and no further
5094
+ * subdomain stripping happens, so "barla.synlab.fr" and "synlab.fr" stay
5095
+ * distinct organizations. `domain` is unique, so a positive `eq` matches at
5096
+ * most one record. A value that cannot yield a host (a bare company name, an IP
5097
+ * literal, punctuation) matches no organization rather than silently dropping
5098
+ * the constraint — so passing a mixed name/domain list here returns only its
5099
+ * domain-shaped entries instead of the whole table. Prefer this for a read-only
5100
+ * "which of these organizations do we already have?" lookup over a list — it
5101
+ * normalizes and batches through `in`. `organization(domain:)` is the
5102
+ * single-record equivalent but matches the column raw, so it misses any URL
5103
+ * form; `searchOrganization(input: { domain: ... })` is the enriching
5104
+ * counterpart and will call paid providers on a miss.
5105
+ */
5106
+ domain?: InputMaybe<StringFilterInput>;
4923
5107
  /** Filter by organization global id. */
4924
5108
  id?: InputMaybe<IdFilterInput>;
4925
5109
  /**
@@ -4933,6 +5117,53 @@ export type OrganizationFilterInput = {
4933
5117
  * Threshold validated by the embedding_calibration test suite.
4934
5118
  */
4935
5119
  industry?: InputMaybe<Array<EmbeddingFilterInput>>;
5120
+ /**
5121
+ * Filter on the organization's LinkedIn company page. Values are matched on
5122
+ * the company vanity slug, extracted from both sides of the comparison, so
5123
+ * `eq: "http://fr.linkedin.com/company/acme/?trk=x"` matches a stored
5124
+ * "https://www.linkedin.com/company/acme". Slug matching is what makes this
5125
+ * usable: unlike `domain` and `name`, the stored URL is never normalized on
5126
+ * write, so any URL form may be on file. A slug is globally unique on
5127
+ * LinkedIn, so a positive `eq` matches at most one organization. Only the
5128
+ * first path segment identifies the company, so a sub-page link resolves the
5129
+ * company itself — `eq: ".../company/acme/about/"` matches a stored
5130
+ * ".../company/acme", and a stored sub-page URL is matched by the plain
5131
+ * company URL. Percent-encoded and literal non-ASCII slugs are the same page
5132
+ * ("/company/ko%C3%A7-holding" matches a stored "/company/koç-holding" and
5133
+ * the reverse). The slug is **case-sensitive** — scheme, host, sub-pages,
5134
+ * percent-encoding and trailing punctuation are normalized away, but
5135
+ * "/company/Acme" and "/company/acme" are two different pages, so pass the
5136
+ * slug exactly as LinkedIn spells it. A value yielding no company
5137
+ * slug (a `/in/` person profile, a bare slug, a school or showcase page, a
5138
+ * non-LinkedIn URL) matches no organization rather than silently dropping the
5139
+ * constraint. `presence: true` is a check on the raw column — it returns
5140
+ * organizations that have any LinkedIn URL on file, even one this filter's
5141
+ * `eq` could not parse — and applies independently of `valid`, so combine
5142
+ * `valid: false` with it to reach organizations reachable on LinkedIn but
5143
+ * below the quality floor. Note that `notEq`/`notIn` also exclude
5144
+ * organizations with no LinkedIn URL at all, matching how every other
5145
+ * negative string operator in this schema treats NULL.
5146
+ */
5147
+ linkedin?: InputMaybe<StringFilterInput>;
5148
+ /**
5149
+ * Filter on the organization's name. Values are matched against a
5150
+ * normalized form — transliterated, downcased, punctuation-stripped and
5151
+ * with trailing legal-form tokens dropped — so `eq: "Acme"` matches a
5152
+ * stored "ACME, Inc." and `eq: "Sortlist NV/SA"` matches a stored
5153
+ * "Sortlist". Matching stays exact *after* that normalization: it is not
5154
+ * a substring or fuzzy search, so "Acme" does not match "Acme Widgets".
5155
+ * A name is not unique in Atlas (country subsidiaries, "<brand> SA" /
5156
+ * "<brand> NV" pairs), so every match is returned, ordered by the
5157
+ * connection's default confidence_score DESC — use
5158
+ * `searchOrganization(input: { domain: ... })` instead when the caller has
5159
+ * a domain and needs exactly one record. A value that normalizes to
5160
+ * nothing (punctuation only) matches no organization rather than silently
5161
+ * dropping the constraint. `presence: true` returns only organizations
5162
+ * that have a name, re-expressing `valid`'s name floor on its own, so
5163
+ * callers passing `valid: false` can keep it without the confidence and
5164
+ * domain-reachability floors.
5165
+ */
5166
+ name?: InputMaybe<StringFilterInput>;
4936
5167
  /** Return only complete records. */
4937
5168
  valid?: InputMaybe<Scalars['Boolean']['input']>;
4938
5169
  };
@@ -5720,8 +5951,10 @@ export type Query = {
5720
5951
  /**
5721
5952
  * List organizations with optional filtering and sorting.
5722
5953
  * Supports semantic search via embedding filters on `description` and `industry`.
5954
+ * The `name` and `domain` filters both accept `in`, so a whole list of company
5955
+ * identifiers can be resolved to records in one read — no enrichment, no external calls.
5723
5956
  * Use `organization(domain:)` for a direct single-domain lookup.
5724
- * Maximum page size: 50.
5957
+ * Maximum page size: 100.
5725
5958
  */
5726
5959
  organizations: OrganizationConnection;
5727
5960
  /** Liveness probe for the outreach subgraph. */
@@ -5858,6 +6091,7 @@ export type QueryResolveLocationsArgs = {
5858
6091
  last?: InputMaybe<Scalars['Int']['input']>;
5859
6092
  query: Scalars['String']['input'];
5860
6093
  subtypes?: InputMaybe<LocationSubtypeFilterInput>;
6094
+ within?: InputMaybe<Scalars['ID']['input']>;
5861
6095
  };
5862
6096
 
5863
6097
 
@@ -6264,11 +6498,10 @@ export type RoutineActionConnection = {
6264
6498
  };
6265
6499
 
6266
6500
  /** An edge in a connection. */
6267
- export type RoutineActionEdge = Node & {
6501
+ export type RoutineActionEdge = {
6268
6502
  __typename?: 'RoutineActionEdge';
6269
6503
  /** A cursor for use in pagination. */
6270
6504
  cursor: Scalars['String']['output'];
6271
- id: Scalars['ID']['output'];
6272
6505
  /** The item at the end of the edge. */
6273
6506
  node?: Maybe<RoutineAction>;
6274
6507
  };
@@ -6320,11 +6553,10 @@ export type RoutineActionRunConnection = {
6320
6553
  };
6321
6554
 
6322
6555
  /** An edge in a connection. */
6323
- export type RoutineActionRunEdge = Node & {
6556
+ export type RoutineActionRunEdge = {
6324
6557
  __typename?: 'RoutineActionRunEdge';
6325
6558
  /** A cursor for use in pagination. */
6326
6559
  cursor: Scalars['String']['output'];
6327
- id: Scalars['ID']['output'];
6328
6560
  /** The item at the end of the edge. */
6329
6561
  node?: Maybe<RoutineActionRun>;
6330
6562
  };
@@ -6352,11 +6584,10 @@ export type RoutineConnection = {
6352
6584
  };
6353
6585
 
6354
6586
  /** An edge in a connection. */
6355
- export type RoutineEdge = Node & {
6587
+ export type RoutineEdge = {
6356
6588
  __typename?: 'RoutineEdge';
6357
6589
  /** A cursor for use in pagination. */
6358
6590
  cursor: Scalars['String']['output'];
6359
- id: Scalars['ID']['output'];
6360
6591
  /** The item at the end of the edge. */
6361
6592
  node?: Maybe<Routine>;
6362
6593
  };
@@ -6428,11 +6659,10 @@ export type RoutineRunConnection = {
6428
6659
  };
6429
6660
 
6430
6661
  /** An edge in a connection. */
6431
- export type RoutineRunEdge = Node & {
6662
+ export type RoutineRunEdge = {
6432
6663
  __typename?: 'RoutineRunEdge';
6433
6664
  /** A cursor for use in pagination. */
6434
6665
  cursor: Scalars['String']['output'];
6435
- id: Scalars['ID']['output'];
6436
6666
  /** The item at the end of the edge. */
6437
6667
  node?: Maybe<RoutineRun>;
6438
6668
  };
@@ -6509,11 +6739,10 @@ export type RoutineTemplateActionConnection = {
6509
6739
  };
6510
6740
 
6511
6741
  /** An edge in a connection. */
6512
- export type RoutineTemplateActionEdge = Node & {
6742
+ export type RoutineTemplateActionEdge = {
6513
6743
  __typename?: 'RoutineTemplateActionEdge';
6514
6744
  /** A cursor for use in pagination. */
6515
6745
  cursor: Scalars['String']['output'];
6516
- id: Scalars['ID']['output'];
6517
6746
  /** The item at the end of the edge. */
6518
6747
  node?: Maybe<RoutineTemplateAction>;
6519
6748
  };
@@ -6532,11 +6761,10 @@ export type RoutineTemplateConnection = {
6532
6761
  };
6533
6762
 
6534
6763
  /** An edge in a connection. */
6535
- export type RoutineTemplateEdge = Node & {
6764
+ export type RoutineTemplateEdge = {
6536
6765
  __typename?: 'RoutineTemplateEdge';
6537
6766
  /** A cursor for use in pagination. */
6538
6767
  cursor: Scalars['String']['output'];
6539
- id: Scalars['ID']['output'];
6540
6768
  /** The item at the end of the edge. */
6541
6769
  node?: Maybe<RoutineTemplate>;
6542
6770
  };
@@ -6793,11 +7021,10 @@ export type SlackChannelConnection = {
6793
7021
  };
6794
7022
 
6795
7023
  /** An edge in a connection. */
6796
- export type SlackChannelEdge = Node & {
7024
+ export type SlackChannelEdge = {
6797
7025
  __typename?: 'SlackChannelEdge';
6798
7026
  /** A cursor for use in pagination. */
6799
7027
  cursor: Scalars['String']['output'];
6800
- id: Scalars['ID']['output'];
6801
7028
  /** The item at the end of the edge. */
6802
7029
  node?: Maybe<SlackChannel>;
6803
7030
  };
@@ -6883,6 +7110,8 @@ export type StartOutboundCampaignPayload = {
6883
7110
 
6884
7111
  /** Filter on a string column with positive and negative matching. */
6885
7112
  export type StringFilterInput = {
7113
+ /** When true, match only rows where the column is NULL or empty. False or omitted applies no constraint. */
7114
+ blank?: InputMaybe<Scalars['Boolean']['input']>;
6886
7115
  /** Exact match. */
6887
7116
  eq?: InputMaybe<Scalars['String']['input']>;
6888
7117
  /** Match any of these values. */
@@ -6891,6 +7120,8 @@ export type StringFilterInput = {
6891
7120
  notEq?: InputMaybe<Scalars['String']['input']>;
6892
7121
  /** Exclude any of these values. */
6893
7122
  notIn?: InputMaybe<Array<Scalars['String']['input']>>;
7123
+ /** When true, match only rows where the column is neither NULL nor empty. False or omitted applies no constraint. */
7124
+ presence?: InputMaybe<Scalars['Boolean']['input']>;
6894
7125
  };
6895
7126
 
6896
7127
  export type Subscription = {
@@ -7034,11 +7265,10 @@ export type SuggestionConnection = {
7034
7265
  };
7035
7266
 
7036
7267
  /** An edge in a connection. */
7037
- export type SuggestionEdge = Node & {
7268
+ export type SuggestionEdge = {
7038
7269
  __typename?: 'SuggestionEdge';
7039
7270
  /** A cursor for use in pagination. */
7040
7271
  cursor: Scalars['String']['output'];
7041
- id: Scalars['ID']['output'];
7042
7272
  /** The item at the end of the edge. */
7043
7273
  node?: Maybe<Suggestion>;
7044
7274
  };
@@ -7165,11 +7395,10 @@ export type ToneOfVoiceConnection = {
7165
7395
  };
7166
7396
 
7167
7397
  /** An edge in a connection. */
7168
- export type ToneOfVoiceEdge = Node & {
7398
+ export type ToneOfVoiceEdge = {
7169
7399
  __typename?: 'ToneOfVoiceEdge';
7170
7400
  /** A cursor for use in pagination. */
7171
7401
  cursor: Scalars['String']['output'];
7172
- id: Scalars['ID']['output'];
7173
7402
  /** The item at the end of the edge. */
7174
7403
  node?: Maybe<ToneOfVoice>;
7175
7404
  };
@@ -7225,11 +7454,10 @@ export type ToolCallConnection = {
7225
7454
  };
7226
7455
 
7227
7456
  /** An edge in a connection. */
7228
- export type ToolCallEdge = Node & {
7457
+ export type ToolCallEdge = {
7229
7458
  __typename?: 'ToolCallEdge';
7230
7459
  /** A cursor for use in pagination. */
7231
7460
  cursor: Scalars['String']['output'];
7232
- id: Scalars['ID']['output'];
7233
7461
  /** The item at the end of the edge. */
7234
7462
  node?: Maybe<ToolCall>;
7235
7463
  };
@@ -7751,11 +7979,10 @@ export type UserConnection = {
7751
7979
  };
7752
7980
 
7753
7981
  /** An edge in a connection. */
7754
- export type UserEdge = Node & {
7982
+ export type UserEdge = {
7755
7983
  __typename?: 'UserEdge';
7756
7984
  /** A cursor for use in pagination. */
7757
7985
  cursor: Scalars['String']['output'];
7758
- id: Scalars['ID']['output'];
7759
7986
  /** The item at the end of the edge. */
7760
7987
  node?: Maybe<User>;
7761
7988
  };
@@ -7896,6 +8123,13 @@ export type Watcher = AcquisitionerInterface & Node & {
7896
8123
  definition: Definition;
7897
8124
  /** Captured Events for this Watcher, newest first. */
7898
8125
  events: EventConnection;
8126
+ /**
8127
+ * Ideal Customer Profile this Watcher filters its leads by, in the same shape
8128
+ * Atlas search uses — including geography, as `contact.divisionIds` /
8129
+ * `organization.divisionIds`. Null for a Watcher created without a profile. Part
8130
+ * of the Watcher's identity, so it is fixed at creation.
8131
+ */
8132
+ icp?: Maybe<WatcherIcp>;
7899
8133
  /** GlobalID-encoded Watcher id. */
7900
8134
  id: Scalars['ID']['output'];
7901
8135
  /**
@@ -7941,6 +8175,84 @@ export type WatcherLeadCapsArgs = {
7941
8175
  last?: InputMaybe<Scalars['Int']['input']>;
7942
8176
  };
7943
8177
 
8178
+ /**
8179
+ * Person-level ICP criteria, as submitted. Mirrors `WatcherContactIcpInput`, which
8180
+ * in turn mirrors the subset of Atlas's `ContactFilterInput` an upstream lead
8181
+ * source can enforce.
8182
+ */
8183
+ export type WatcherContactIcp = {
8184
+ __typename?: 'WatcherContactIcp';
8185
+ /** Mercator locations the person had to belong to. */
8186
+ divisionIds?: Maybe<WatcherDivisionFilter>;
8187
+ /**
8188
+ * Job title embedding filters. Only the *direction* of `distance` was honoured
8189
+ * upstream (`lt`/`lteq` include, `gt`/`gteq` exclude); the numeric threshold is
8190
+ * kept here because it is what the caller sent.
8191
+ */
8192
+ jobTitle?: Maybe<Array<EmbeddingFilter>>;
8193
+ };
8194
+
8195
+ /** Person-level ICP criteria, mirroring the subset of Atlas's `ContactFilterInput` that an upstream lead source can enforce. */
8196
+ export type WatcherContactIcpInput = {
8197
+ /**
8198
+ * Mercator location division IDs the person must belong to. Resolved to place
8199
+ * names before being handed upstream, since no source speaks Mercator.
8200
+ */
8201
+ divisionIds?: InputMaybe<IdFilterInput>;
8202
+ /**
8203
+ * Job title embedding filters. Each entry's `query` is matched against the
8204
+ * source's own role targeting. Combine related roles in one string (e.g. "CMO,
8205
+ * Marketing Director, VP Marketing") — the same convention Atlas search uses.
8206
+ * Only the *direction* of `distance` is honoured (`lt`/`lteq` include,
8207
+ * `gt`/`gteq` exclude); no upstream source supports a numeric distance threshold.
8208
+ */
8209
+ jobTitle?: InputMaybe<Array<EmbeddingFilterInput>>;
8210
+ };
8211
+
8212
+ /** A Mercator location filter, as submitted, resolved to Locations. */
8213
+ export type WatcherDivisionFilter = {
8214
+ __typename?: 'WatcherDivisionFilter';
8215
+ /** Location that had to match exactly. */
8216
+ eq?: Maybe<Location>;
8217
+ /** Locations any of which had to match. */
8218
+ in?: Maybe<Array<Location>>;
8219
+ /** Location that was excluded. */
8220
+ notEq?: Maybe<Location>;
8221
+ /** Locations that were excluded. */
8222
+ notIn?: Maybe<Array<Location>>;
8223
+ };
8224
+
8225
+ /**
8226
+ * The Ideal Customer Profile a Watcher filters its leads by, returned in the same
8227
+ * vocabulary Atlas search uses. This is what the caller submitted, not what each
8228
+ * source could enforce: criteria an individual source cannot express are dropped
8229
+ * for that source only, and that translation is not reflected here.
8230
+ */
8231
+ export type WatcherIcp = {
8232
+ __typename?: 'WatcherIcp';
8233
+ /** Person-level criteria. */
8234
+ contact?: Maybe<WatcherContactIcp>;
8235
+ /** Company-level criteria. */
8236
+ organization?: Maybe<WatcherOrganizationIcp>;
8237
+ };
8238
+
8239
+ /**
8240
+ * The subscriber's Ideal Customer Profile, expressed in the same vocabulary Atlas
8241
+ * search uses so a caller can pass the filters it already built for
8242
+ * `searchContacts`. Enforced twice: each Watcher provider translates what it can
8243
+ * into whatever its upstream source accepts, so out-of-ICP leads are never
8244
+ * streamed — and never billed — and every resolved contact is then re-checked
8245
+ * against the full ICP before delivery. Criteria an individual source cannot
8246
+ * express are therefore still applied, just later, so the ICP means the same thing
8247
+ * whichever provider backs the watcher.
8248
+ */
8249
+ export type WatcherIcpInput = {
8250
+ /** Person-level criteria. */
8251
+ contact?: InputMaybe<WatcherContactIcpInput>;
8252
+ /** Company-level criteria. */
8253
+ organization?: InputMaybe<WatcherOrganizationIcpInput>;
8254
+ };
8255
+
7944
8256
  /**
7945
8257
  * A freshness-first lead cap on a Watcher: at most `maximumLeads` events are
7946
8258
  * surfaced per `period`, counted from `startsAt` and reset at every period boundary.
@@ -7976,15 +8288,56 @@ export type WatcherLeadCapConnection = {
7976
8288
  };
7977
8289
 
7978
8290
  /** An edge in a connection. */
7979
- export type WatcherLeadCapEdge = Node & {
8291
+ export type WatcherLeadCapEdge = {
7980
8292
  __typename?: 'WatcherLeadCapEdge';
7981
8293
  /** A cursor for use in pagination. */
7982
8294
  cursor: Scalars['String']['output'];
7983
- id: Scalars['ID']['output'];
7984
8295
  /** The item at the end of the edge. */
7985
8296
  node?: Maybe<WatcherLeadCap>;
7986
8297
  };
7987
8298
 
8299
+ /**
8300
+ * Company-level ICP criteria, as submitted. Mirrors `WatcherOrganizationIcpInput`,
8301
+ * which in turn mirrors the subset of Atlas's `OrganizationFilterInput` an
8302
+ * upstream lead source can enforce.
8303
+ */
8304
+ export type WatcherOrganizationIcp = {
8305
+ __typename?: 'WatcherOrganizationIcp';
8306
+ /**
8307
+ * Employee-count range the organization had to fall in, as `[min, max]`.
8308
+ * Flattened from the submitted filter's `overlaps`, the only operator creation
8309
+ * accepts — `contains` and `contained_by` describe querying a stored range and
8310
+ * are rejected, so there is nothing else to report.
8311
+ */
8312
+ companySize?: Maybe<Scalars['Range']['output']>;
8313
+ /** Mercator locations the organization had to belong to. */
8314
+ divisionIds?: Maybe<WatcherDivisionFilter>;
8315
+ /** Industry embedding filters, same `distance` handling as `WatcherContactIcp.jobTitle`. */
8316
+ industry?: Maybe<Array<EmbeddingFilter>>;
8317
+ };
8318
+
8319
+ /**
8320
+ * Company-level ICP criteria, mirroring the subset of Atlas's
8321
+ * `OrganizationFilterInput` that an upstream lead source can enforce.
8322
+ */
8323
+ export type WatcherOrganizationIcpInput = {
8324
+ /**
8325
+ * Employee-count range, e.g. `{ overlaps: [0, 100] }` for "fewer than 100
8326
+ * employees" or `{ overlaps: [1000] }` for "1000+". Mapped onto the headcount
8327
+ * buckets the upstream source accepts. `contains` / `contained_by` describe
8328
+ * querying a stored range and have no meaning at an external source, so they are rejected.
8329
+ */
8330
+ companySize?: InputMaybe<RangeFilterInput>;
8331
+ /** Mercator location division IDs the organization must belong to. Resolved to place names before being handed upstream. */
8332
+ divisionIds?: InputMaybe<IdFilterInput>;
8333
+ /**
8334
+ * Industry embedding filters. Each entry's `query` is matched against the
8335
+ * source's own industry taxonomy. Only the *direction* of `distance` is honoured
8336
+ * (`lt`/`lteq` include, `gt`/`gteq` exclude).
8337
+ */
8338
+ industry?: InputMaybe<Array<EmbeddingFilterInput>>;
8339
+ };
8340
+
7988
8341
  /** Delivery endpoint registered on a Watcher. Secrets are write-only — they are never returned by the API. */
7989
8342
  export type WatcherWebhookInput = {
7990
8343
  /**
@@ -8109,14 +8462,7 @@ export type Link__Purpose =
8109
8462
  export type MeQueryVariables = Exact<{ [key: string]: never; }>;
8110
8463
 
8111
8464
 
8112
- 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 };
8113
-
8114
- export type CreateSalesOfferMutationVariables = Exact<{
8115
- input: CreateSalesOfferInput;
8116
- }>;
8117
-
8118
-
8119
- export type CreateSalesOfferMutation = { __typename?: 'Mutation', createSalesOffer?: { __typename?: 'CreateSalesOfferPayload', inviteUrl: string, offerId: string, companyId: string } | null };
8465
+ export type MeQuery = { __typename?: 'Query', me?: { __typename?: 'User', sub: string, email: string, firstName?: string | null, lastName?: string | null } | null };
8120
8466
 
8121
8467
  export type LogoutUrlQueryVariables = Exact<{ [key: string]: never; }>;
8122
8468
 
@@ -8145,8 +8491,7 @@ export type RefreshTokenMutationVariables = Exact<{
8145
8491
  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 };
8146
8492
 
8147
8493
 
8148
- 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>;
8149
- 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>;
8494
+ 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"}}]}}]}}]} as unknown as DocumentNode<MeQuery, MeQueryVariables>;
8150
8495
  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>;
8151
8496
  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>;
8152
8497
  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>;