@proteos/sdk 0.93.1 → 0.94.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, R as RequestOptions, c as ProteosClient, F as FileRef, d as PrincipalRef, e as PageAction, f as FilterGroup, g as ResponseMeta$1, h as PublicAccessOperation } from './types-BbiiuHnH.cjs';
2
- export { i as App, j as AppConfiguration, k as AppConfigurationSchema, l as AppConfigurationService, m as AppHome, n as AppHomeSchema, o as AppHomeType, p as AppSchema, q as AppService, r as ArrayAttributeMeta, s as AttributeAccessRule, t as AttributeRestrictions, u as AttributeSchema, v as AttributeType, w as AuditFieldsSchema, C as CURRENT_USER, x as CURRENT_USER_DEFAULT, y as ClientOptions, z as Column, B as ColumnSchema, D as ComparisonOperator, E as Component, G as ComponentSchema, H as ComponentService, I as ContactAddressAttributeKind, J as ContactAddressAttributeMeta, K as ContactAddressAttributeMetaSchema, M as ContactBindingDuplicatePolicy, N as CreateAppConfigurationRequest, O as CreateAppRequest, Q as CreateComponentRequest, S as CreateDesignReferenceRequest, T as CreateEntityExtensionRequest, V as CreateEntityRequest, W as CreateListExtensionRequest, X as CreateListRequest, Y as CreateListViewRequest, Z as CreateMenuConfigurationExtensionRequest, _ as CreateMenuConfigurationRequest, $ as CreatePageExtensionRequest, a0 as CreatePageRequest, a1 as CreateVariableRequest, a2 as CurrencyAttributeMeta, a3 as CurrencyAttributeMetaSchema, a4 as CurrencySymbolSide, a5 as CurrencyValue, a6 as CurrentUserDefault, a7 as DEFAULT_OPTIONS, a8 as DEFAULT_PAGE_SIZE, a9 as DONE, aa as DeployModuleRequest, ab as DesignReference, ac as DesignReferenceContent, ad as DesignReferenceSchema, ae as DesignReferenceService, af as Done, ag as Entity, ah as EntityContactBinding, ai as EntityContactBindingSchema, aj as EntityExtension, ak as EntityExtensionSchema, al as EntityExtensionService, am as EntitySchema, an as EntityService, ao as EntityWithSchema, ap as EntityWithSchemaSchema, aq as EnumAttributeMeta, ar as EnumValue, as as ExtensionPosition, at as ExtensionPositionSchema, au as FileAttributeMeta, av as FileRefSchema, aw as FilterElement, ax as FilterElementSchema, ay as FilterGroupSchema, az as List, aA as ListAppConfigurationsOptions, aB as ListAppsOptions, aC as ListComponentsOptions, aD as ListDesignReferencesOptions, aE as ListEntitiesOptions, aF as ListEntityExtensionsOptions, aG as ListExtension, aH as ListExtensionColumnPlacement, aI as ListExtensionColumnPlacementSchema, aJ as ListExtensionSchema, aK as ListExtensionService, aL as ListFn, aM as ListListExtensionsOptions, aN as ListListViewsOptions, aO as ListListsOptions, aP as ListMenuConfigurationExtensionsOptions, aQ as ListMenuConfigurationsOptions, aR as ListModulesOptions, aS as ListPageExtensionsOptions, aT as ListPagesOptions, aU as ListSchema, aV as ListService, aW as ListVariablesOptions, aX as ListView, aY as ListViewSchema, aZ as ListViewService, a_ as LogicalOperator, a$ as MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, b0 as MenuConfiguration, b1 as MenuConfigurationExtension, b2 as MenuConfigurationExtensionPlacement, b3 as MenuConfigurationExtensionPlacementSchema, b4 as MenuConfigurationExtensionPosition, b5 as MenuConfigurationExtensionPositionSchema, b6 as MenuConfigurationExtensionSchema, b7 as MenuConfigurationExtensionService, b8 as MenuConfigurationSchema, b9 as MenuConfigurationService, ba as MenuItem, bb as MenuItemSchema, bc as MenuItemType, bd as MetaClient, be as MetaListOptions, bf as Module, bg as ModuleSchema, bh as ModuleService, bi as ModuleStatus, bj as OnDeleteAction, bk as OnDeleteActionSchema, bl as PAGE_ACTION_MATCH_MAX_LIMIT, bm as PAGE_EXTENSION_ANCHOR_MAIN, bn as PAGE_EXTENSION_ANCHOR_SIDE_PANEL, bo as PLATFORM_ATTRIBUTE_NAMES, bp as PLATFORM_USER_ID, bq as Page, br as PageActionIntent, bs as PageActionKind, bt as PageActionMatch, bu as PageActionMatchSchema, bv as PageActionSchema, bw as PageExtension, bx as PageExtensionPlacement, by as PageExtensionPlacementSchema, bz as PageExtensionSchema, bA as PageExtensionService, bB as PageLayout, bC as PageLayoutSchema, bD as PageMode, bE as PageSchema, bF as PageService, bG as PageType, bH as PublicPageComponent, bI as PublicPageResponse, bJ as RecordPageBinding, bK as RecordPageBindingSchema, bL as RelationAttributeMeta, bM as RelationAttributeMetaSchema, bN as ResolvedClientOptions, bO as ResponseMetaSchema, bP as SortConfig, bQ as SortConfigSchema, bR as SortDirection, bS as Timestamps, bT as TokenProvider, bU as TriggerPageBinding, bV as TriggerPageBindingSchema, bW as TriggerPhase, bX as UpdateAppConfigurationRequest, bY as UpdateAppRequest, bZ as UpdateComponentRequest, b_ as UpdateDesignReferenceRequest, b$ as UpdateEntityExtensionRequest, c0 as UpdateEntityRequest, c1 as UpdateListExtensionRequest, c2 as UpdateListRequest, c3 as UpdateListViewRequest, c4 as UpdateMenuConfigurationExtensionRequest, c5 as UpdateMenuConfigurationRequest, c6 as UpdatePageExtensionRequest, c7 as UpdatePageRequest, c8 as UpdateVariableRequest, c9 as UserRefSchema, ca as UserType, cb as Variable, cc as VariableSchema, cd as VariableService, ce as acceptsCurrentUserDefault, cf as allCurrencyCodes, cg as bundleVersionOf, ch as createIterator, ci as createListResultSchema, cj as currencyLabel, ck as currencySymbol, cl as currencySymbolSide, cm as formatAmount, cn as formatMoney, co as isCurrentUser, cp as isCurrentUserDefault, cq as isPlatformAttributeName, cr as localeNumberSeparators, cs as parseAmount, ct as parseContactAddressMeta, cu as parseCurrencyMeta, cv as parseFileMeta, cw as parseRelationMeta, cx as platformAttributes, cy as resolveOptions } from './types-BbiiuHnH.cjs';
1
+ import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, R as RequestOptions, c as ProteosClient, F as FileRef, d as PrincipalRef, e as PageAction, f as FilterGroup, g as ResponseMeta$1, h as AttributeType, i as PublicAccessOperation } from './types-UHBpVQQI.cjs';
2
+ export { j as App, k as AppConfiguration, l as AppConfigurationSchema, m as AppConfigurationService, n as AppHome, o as AppHomeSchema, p as AppHomeType, q as AppSchema, r as AppService, s as ArrayAttributeMeta, t as AttributeAccessRule, u as AttributeRestrictions, v as AttributeSchema, w as AuditFieldsSchema, C as CURRENT_USER, x as CURRENT_USER_DEFAULT, y as ClientOptions, z as Column, B as ColumnSchema, D as ComparisonOperator, E as Component, G as ComponentSchema, H as ComponentService, I as ContactAddressAttributeKind, J as ContactAddressAttributeMeta, K as ContactAddressAttributeMetaSchema, M as ContactBindingDuplicatePolicy, N as CreateAppConfigurationRequest, O as CreateAppRequest, Q as CreateComponentRequest, S as CreateDesignReferenceRequest, T as CreateEntityExtensionRequest, V as CreateEntityRequest, W as CreateListExtensionRequest, X as CreateListRequest, Y as CreateListViewRequest, Z as CreateMenuConfigurationExtensionRequest, _ as CreateMenuConfigurationRequest, $ as CreatePageExtensionRequest, a0 as CreatePageRequest, a1 as CreateVariableRequest, a2 as CurrencyAttributeMeta, a3 as CurrencyAttributeMetaSchema, a4 as CurrencySymbolSide, a5 as CurrencyValue, a6 as CurrentUserDefault, a7 as DEFAULT_OPTIONS, a8 as DEFAULT_PAGE_SIZE, a9 as DONE, aa as DeployModuleRequest, ab as DesignReference, ac as DesignReferenceContent, ad as DesignReferenceSchema, ae as DesignReferenceService, af as Done, ag as Entity, ah as EntityContactBinding, ai as EntityContactBindingSchema, aj as EntityExtension, ak as EntityExtensionSchema, al as EntityExtensionService, am as EntitySchema, an as EntityService, ao as EntityWithSchema, ap as EntityWithSchemaSchema, aq as EnumAttributeMeta, ar as EnumValue, as as ExtensionPosition, at as ExtensionPositionSchema, au as FileAttributeMeta, av as FileRefSchema, aw as FilterElement, ax as FilterElementSchema, ay as FilterGroupSchema, az as List, aA as ListAppConfigurationsOptions, aB as ListAppsOptions, aC as ListComponentsOptions, aD as ListDesignReferencesOptions, aE as ListEntitiesOptions, aF as ListEntityExtensionsOptions, aG as ListExtension, aH as ListExtensionColumnPlacement, aI as ListExtensionColumnPlacementSchema, aJ as ListExtensionSchema, aK as ListExtensionService, aL as ListFn, aM as ListListExtensionsOptions, aN as ListListViewsOptions, aO as ListListsOptions, aP as ListMenuConfigurationExtensionsOptions, aQ as ListMenuConfigurationsOptions, aR as ListModulesOptions, aS as ListPageExtensionsOptions, aT as ListPagesOptions, aU as ListSchema, aV as ListService, aW as ListVariablesOptions, aX as ListView, aY as ListViewSchema, aZ as ListViewService, a_ as LogicalOperator, a$ as MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, b0 as MenuConfiguration, b1 as MenuConfigurationExtension, b2 as MenuConfigurationExtensionPlacement, b3 as MenuConfigurationExtensionPlacementSchema, b4 as MenuConfigurationExtensionPosition, b5 as MenuConfigurationExtensionPositionSchema, b6 as MenuConfigurationExtensionSchema, b7 as MenuConfigurationExtensionService, b8 as MenuConfigurationSchema, b9 as MenuConfigurationService, ba as MenuItem, bb as MenuItemSchema, bc as MenuItemType, bd as MetaClient, be as MetaListOptions, bf as Module, bg as ModuleSchema, bh as ModuleService, bi as ModuleStatus, bj as OnDeleteAction, bk as OnDeleteActionSchema, bl as PAGE_ACTION_MATCH_MAX_LIMIT, bm as PAGE_EXTENSION_ANCHOR_MAIN, bn as PAGE_EXTENSION_ANCHOR_SIDE_PANEL, bo as PLATFORM_ATTRIBUTE_NAMES, bp as PLATFORM_USER_ID, bq as Page, br as PageActionIntent, bs as PageActionKind, bt as PageActionMatch, bu as PageActionMatchSchema, bv as PageActionSchema, bw as PageExtension, bx as PageExtensionPlacement, by as PageExtensionPlacementSchema, bz as PageExtensionSchema, bA as PageExtensionService, bB as PageLayout, bC as PageLayoutSchema, bD as PageMode, bE as PageSchema, bF as PageService, bG as PageType, bH as PublicPageComponent, bI as PublicPageResponse, bJ as RecordPageBinding, bK as RecordPageBindingSchema, bL as RelationAttributeMeta, bM as RelationAttributeMetaSchema, bN as ResolvedClientOptions, bO as ResponseMetaSchema, bP as SortConfig, bQ as SortConfigSchema, bR as SortDirection, bS as SuggestionsMode, bT as SuggestionsModeSchema, bU as Timestamps, bV as TokenProvider, bW as TriggerPageBinding, bX as TriggerPageBindingSchema, bY as TriggerPhase, bZ as UpdateAppConfigurationRequest, b_ as UpdateAppRequest, b$ as UpdateComponentRequest, c0 as UpdateDesignReferenceRequest, c1 as UpdateEntityExtensionRequest, c2 as UpdateEntityRequest, c3 as UpdateListExtensionRequest, c4 as UpdateListRequest, c5 as UpdateListViewRequest, c6 as UpdateMenuConfigurationExtensionRequest, c7 as UpdateMenuConfigurationRequest, c8 as UpdatePageExtensionRequest, c9 as UpdatePageRequest, ca as UpdateVariableRequest, cb as UserRefSchema, cc as UserType, cd as Variable, ce as VariableSchema, cf as VariableService, cg as acceptsCurrentUserDefault, ch as allCurrencyCodes, ci as bundleVersionOf, cj as createIterator, ck as createListResultSchema, cl as currencyLabel, cm as currencySymbol, cn as currencySymbolSide, co as formatAmount, cp as formatMoney, cq as isCurrentUser, cr as isCurrentUserDefault, cs as isPlatformAttributeName, ct as localeNumberSeparators, cu as parseAmount, cv as parseContactAddressMeta, cw as parseCurrencyMeta, cx as parseFileMeta, cy as parseRelationMeta, cz as platformAttributes, cA as resolveOptions } from './types-UHBpVQQI.cjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -5968,6 +5968,8 @@ interface ContactPermissionEvent {
5968
5968
  occurred_at: string;
5969
5969
  note?: string;
5970
5970
  evidence?: Record<string, unknown>;
5971
+ /** The caller's key for the fact; unique per org when set. */
5972
+ external_ref?: string;
5971
5973
  created_at: string;
5972
5974
  created_by: UserRef;
5973
5975
  }
@@ -5981,6 +5983,8 @@ interface ContactPurposeStatus {
5981
5983
  is_inherited: boolean;
5982
5984
  /** Addresses opted out of this purpose (or all) on their own scope. */
5983
5985
  opted_out_address_ids: string[];
5986
+ /** Addresses opted in to this purpose (or all) on their own scope, such as a double opt-in for one address. */
5987
+ opted_in_address_ids: string[];
5984
5988
  /** Addresses with a double opt-in for this purpose waiting to be confirmed. */
5985
5989
  pending_address_ids: string[];
5986
5990
  /** Addresses whose double opt-in for this purpose was not confirmed in time. */
@@ -6182,6 +6186,12 @@ interface RecordPermissionEventRequest {
6182
6186
  occurred_at?: string;
6183
6187
  note?: string;
6184
6188
  evidence?: Record<string, unknown>;
6189
+ /**
6190
+ * A key for the fact this event records (a sync's id for one upstream
6191
+ * status). When the org already has an event with this key, nothing is
6192
+ * recorded and the contact comes back unchanged.
6193
+ */
6194
+ external_ref?: string;
6185
6195
  }
6186
6196
  interface BlockContactRequest {
6187
6197
  contact_address_id?: string;
@@ -8219,8 +8229,11 @@ type RecordDraftIntent = 'create' | 'update' | 'delete' | 'upsert';
8219
8229
  /** The review lifecycle: `proposed` awaits a verdict; `approved` was applied
8220
8230
  * exactly as proposed; `approved_with_changes` was edited, then applied
8221
8231
  * (`changes` says what the reviewer altered); `rejected` was never applied.
8222
- * The last three are terminal. approved vs approved_with_changes is DERIVED by
8223
- * the server from `changes` — a resolver never names the outcome. */
8232
+ * The last three are terminal. The status is DERIVED by the server from the
8233
+ * per-item `verdicts` and `changes` — a resolver never names the outcome: a
8234
+ * draft stays `proposed` until every item has a verdict; then all accepted ⇒
8235
+ * `approved`, all rejected ⇒ `rejected`, anything else ⇒
8236
+ * `approved_with_changes`. */
8224
8237
  type RecordDraftStatus = 'proposed' | 'approved' | 'approved_with_changes' | 'rejected';
8225
8238
  /**
8226
8239
  * ONE proposed write, keyed like a batch transaction. Shape per intent —
@@ -8228,11 +8241,87 @@ type RecordDraftStatus = 'proposed' | 'approved' | 'approved_with_changes' | 're
8228
8241
  * upsert: `data`, `id` optional (present ⇒ update, absent ⇒ create). `id` never
8229
8242
  * rides inside `data`. Update/upsert `data` is a partial merge (only the keys
8230
8243
  * present change).
8244
+ *
8245
+ * `entity_slug` is the entity this item writes; absent = the draft's own. A
8246
+ * relation attribute in `data` can point at ANOTHER ITEM of the draft instead
8247
+ * of a record id — `{ transaction_id: '1' }` ({@link RecordDraftReference}) —
8248
+ * and is resolved to that item's record id on approve, parents first.
8249
+ * `evidence` says where a proposed value came from, per attribute of `data`.
8231
8250
  */
8232
8251
  interface RecordDraftItem {
8233
8252
  transaction_id: string;
8253
+ entity_slug?: string;
8234
8254
  id?: string;
8235
8255
  data?: Record<string, unknown>;
8256
+ evidence?: Record<string, RecordDraftEvidence>;
8257
+ }
8258
+ /** A relation value pointing at another item of the same draft. */
8259
+ interface RecordDraftReference {
8260
+ transaction_id: string;
8261
+ }
8262
+ /** Whether a proposed value is a {@link RecordDraftReference}: an object
8263
+ * whose only key is a string `transaction_id`. */
8264
+ declare function isRecordDraftReference(value: unknown): value is RecordDraftReference;
8265
+ /** One source behind a proposed value. */
8266
+ interface RecordDraftCitation {
8267
+ title?: string;
8268
+ url?: string;
8269
+ snippet?: string;
8270
+ }
8271
+ /** Why the proposer believes ONE proposed value: a short label, how sure it
8272
+ * is (0..1) and the sources. All optional. */
8273
+ interface RecordDraftEvidence {
8274
+ label?: string;
8275
+ confidence?: number;
8276
+ citations?: RecordDraftCitation[];
8277
+ }
8278
+ /** A reviewer's decision on an item or on one attribute of it. `edited` (items
8279
+ * only): written, but not exactly as proposed. */
8280
+ type RecordDraftVerdict = 'accepted' | 'edited' | 'rejected';
8281
+ /** What has been decided about ONE item so far. `verdict` is set once the
8282
+ * whole item is decided; while only some attributes are, it is absent and
8283
+ * `attributes` names them. */
8284
+ interface RecordDraftItemVerdict {
8285
+ transaction_id: string;
8286
+ verdict?: RecordDraftVerdict;
8287
+ attributes?: Record<string, Exclude<RecordDraftVerdict, 'edited'>>;
8288
+ }
8289
+ /** Narrows an approve or a reject to part of a draft: `transaction_ids` picks
8290
+ * the items (absent = every undecided item), `attributes` the attributes of
8291
+ * those items (absent = all). An item that would create a record is decided
8292
+ * whole — naming it together with attributes fails with 400
8293
+ * `record_draft_scope_invalid`. */
8294
+ interface RecordDraftScope {
8295
+ transaction_ids?: string[];
8296
+ attributes?: string[];
8297
+ }
8298
+ /**
8299
+ * ONE value a proposed draft would write, next to what the record holds now —
8300
+ * the flat read model behind the suggestions overlay. `record_id` is absent
8301
+ * for a value of a record the draft would create. Only undecided values of
8302
+ * proposed drafts appear, never an attribute the reader may not read.
8303
+ */
8304
+ interface RecordDraftProposedValue {
8305
+ record_id?: string;
8306
+ attribute: string;
8307
+ current: unknown;
8308
+ proposed: unknown;
8309
+ evidence?: RecordDraftEvidence;
8310
+ record_draft_id: string;
8311
+ transaction_id: string;
8312
+ created_at: string;
8313
+ /**
8314
+ * The draft's `updated_at` when the value was read. Pass it as
8315
+ * `expected_updated_at` when approving or rejecting this value: a draft
8316
+ * revised since is refused (409 `record_draft_conflict`) instead of deciding
8317
+ * a value nobody saw.
8318
+ */
8319
+ record_draft_updated_at: string;
8320
+ }
8321
+ interface ProposedValuesQuery {
8322
+ entity_slug: string;
8323
+ /** At most 200. Values of records a draft would create are returned either way. */
8324
+ record_ids?: string[];
8236
8325
  }
8237
8326
  type RecordDraftItemResultStatus = 'success' | 'error';
8238
8327
  /** The same facts the single-record endpoint would have answered with. */
@@ -8277,15 +8366,19 @@ interface RecordDraftChange {
8277
8366
  * message. `items` is the draft as it stands now: the proposal, as revised by
8278
8367
  * its proposer and edited by reviewers while proposed (each save is a
8279
8368
  * {@link RecordDraftVersion}; `version` is the newest one's number);
8280
- * `applied_items` what the last approve attempt sent; `results` the latest outcome per transaction_id (a
8281
- * re-approve after a partial failure re-sends only the items that have not
8282
- * succeeded); `changes` the reviewer's delta. `source` is caller-supplied
8369
+ * `applied_items` what approves have sent so far; `results` the latest outcome
8370
+ * per transaction_id; `verdicts` what has been decided, per item and — for a
8371
+ * scoped approve or reject — per attribute (an approve only sends what is
8372
+ * undecided, so a re-approve never repeats a write); `changes` the reviewer's
8373
+ * delta. `entity_slug` is the entity of every item that names none,
8374
+ * `entity_slugs` every entity the items write. `source` is caller-supplied
8283
8375
  * provenance (`agent_key`, `session_id`, …); `created_by` is the acting user.
8284
8376
  */
8285
8377
  interface RecordDraft {
8286
8378
  id: string;
8287
8379
  org_id: string;
8288
8380
  entity_slug: string;
8381
+ entity_slugs: string[];
8289
8382
  intent: RecordDraftIntent;
8290
8383
  status: RecordDraftStatus;
8291
8384
  summary: string;
@@ -8294,6 +8387,7 @@ interface RecordDraft {
8294
8387
  applied_items?: RecordDraftItem[];
8295
8388
  results?: RecordDraftItemResult[];
8296
8389
  changes?: RecordDraftChange[];
8390
+ verdicts?: RecordDraftItemVerdict[];
8297
8391
  source?: Record<string, unknown>;
8298
8392
  reason?: string;
8299
8393
  resolved_by?: {
@@ -8316,7 +8410,9 @@ interface RecordDraft {
8316
8410
  applying_since?: string;
8317
8411
  }
8318
8412
  interface CreateRecordDraftRequest {
8319
- entity_slug: string;
8413
+ /** The entity of every item that names none. May be left out when every
8414
+ * item carries its own `entity_slug`. */
8415
+ entity_slug?: string;
8320
8416
  intent: RecordDraftIntent;
8321
8417
  /** 1..200 items; a missing `transaction_id` becomes the 1-based index. */
8322
8418
  items: RecordDraftItem[];
@@ -8330,8 +8426,9 @@ type RecordDraftItemInput = Omit<RecordDraftItem, 'transaction_id'> & {
8330
8426
  transaction_id?: string;
8331
8427
  };
8332
8428
  /** `items` absent = apply the draft's items as they stand; present = save them
8333
- * first as the reviewer's edit, then apply them. */
8334
- interface ApproveRecordDraftRequest {
8429
+ * first as the reviewer's edit, then apply them. `transaction_ids` /
8430
+ * `attributes` apply only that part; the rest stays proposed. */
8431
+ interface ApproveRecordDraftRequest extends RecordDraftScope {
8335
8432
  items?: RecordDraftItemInput[];
8336
8433
  /** The `updated_at` the reviewer last saw: a draft that moved on since fails
8337
8434
  * with 409 `record_draft_conflict` instead of applying what they never saw. */
@@ -8386,10 +8483,16 @@ interface RecordDraftVersions {
8386
8483
  data: RecordDraftVersion[];
8387
8484
  changes: RecordDraftChange[];
8388
8485
  }
8389
- interface RejectRecordDraftRequest {
8486
+ /** `transaction_ids` / `attributes` decline only that part; without either
8487
+ * everything still undecided is declined. */
8488
+ interface RejectRecordDraftRequest extends RecordDraftScope {
8390
8489
  reason?: string;
8490
+ /** The `updated_at` the reviewer last saw: a draft that moved on since fails
8491
+ * with 409 `record_draft_conflict` instead of declining what they never saw. */
8492
+ expected_updated_at?: string;
8391
8493
  }
8392
8494
  interface ListRecordDraftsQuery {
8495
+ /** Drafts holding an item of this entity. */
8393
8496
  entity_slug?: string;
8394
8497
  /** Defaults to `proposed` on the server. */
8395
8498
  status?: RecordDraftStatus;
@@ -8399,18 +8502,105 @@ interface ListRecordDraftsQuery {
8399
8502
  page?: number;
8400
8503
  page_size?: number;
8401
8504
  }
8505
+ declare const RecordDraftEvidenceSchema: z.ZodObject<{
8506
+ label: z.ZodOptional<z.ZodString>;
8507
+ confidence: z.ZodOptional<z.ZodNumber>;
8508
+ citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
8509
+ title: z.ZodOptional<z.ZodString>;
8510
+ url: z.ZodOptional<z.ZodString>;
8511
+ snippet: z.ZodOptional<z.ZodString>;
8512
+ }, "strip", z.ZodTypeAny, {
8513
+ title?: string | undefined;
8514
+ url?: string | undefined;
8515
+ snippet?: string | undefined;
8516
+ }, {
8517
+ title?: string | undefined;
8518
+ url?: string | undefined;
8519
+ snippet?: string | undefined;
8520
+ }>, "many">>;
8521
+ }, "strip", z.ZodTypeAny, {
8522
+ label?: string | undefined;
8523
+ confidence?: number | undefined;
8524
+ citations?: {
8525
+ title?: string | undefined;
8526
+ url?: string | undefined;
8527
+ snippet?: string | undefined;
8528
+ }[] | undefined;
8529
+ }, {
8530
+ label?: string | undefined;
8531
+ confidence?: number | undefined;
8532
+ citations?: {
8533
+ title?: string | undefined;
8534
+ url?: string | undefined;
8535
+ snippet?: string | undefined;
8536
+ }[] | undefined;
8537
+ }>;
8402
8538
  declare const RecordDraftItemSchema: z.ZodObject<{
8403
8539
  transaction_id: z.ZodString;
8540
+ entity_slug: z.ZodOptional<z.ZodString>;
8404
8541
  id: z.ZodOptional<z.ZodString>;
8405
8542
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8543
+ evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8544
+ label: z.ZodOptional<z.ZodString>;
8545
+ confidence: z.ZodOptional<z.ZodNumber>;
8546
+ citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
8547
+ title: z.ZodOptional<z.ZodString>;
8548
+ url: z.ZodOptional<z.ZodString>;
8549
+ snippet: z.ZodOptional<z.ZodString>;
8550
+ }, "strip", z.ZodTypeAny, {
8551
+ title?: string | undefined;
8552
+ url?: string | undefined;
8553
+ snippet?: string | undefined;
8554
+ }, {
8555
+ title?: string | undefined;
8556
+ url?: string | undefined;
8557
+ snippet?: string | undefined;
8558
+ }>, "many">>;
8559
+ }, "strip", z.ZodTypeAny, {
8560
+ label?: string | undefined;
8561
+ confidence?: number | undefined;
8562
+ citations?: {
8563
+ title?: string | undefined;
8564
+ url?: string | undefined;
8565
+ snippet?: string | undefined;
8566
+ }[] | undefined;
8567
+ }, {
8568
+ label?: string | undefined;
8569
+ confidence?: number | undefined;
8570
+ citations?: {
8571
+ title?: string | undefined;
8572
+ url?: string | undefined;
8573
+ snippet?: string | undefined;
8574
+ }[] | undefined;
8575
+ }>>>;
8406
8576
  }, "strip", z.ZodTypeAny, {
8407
8577
  transaction_id: string;
8408
8578
  data?: Record<string, unknown> | undefined;
8409
8579
  id?: string | undefined;
8580
+ entity_slug?: string | undefined;
8581
+ evidence?: Record<string, {
8582
+ label?: string | undefined;
8583
+ confidence?: number | undefined;
8584
+ citations?: {
8585
+ title?: string | undefined;
8586
+ url?: string | undefined;
8587
+ snippet?: string | undefined;
8588
+ }[] | undefined;
8589
+ }> | undefined;
8410
8590
  }, {
8411
8591
  transaction_id: string;
8412
8592
  data?: Record<string, unknown> | undefined;
8413
8593
  id?: string | undefined;
8594
+ entity_slug?: string | undefined;
8595
+ evidence?: Record<string, {
8596
+ label?: string | undefined;
8597
+ confidence?: number | undefined;
8598
+ citations?: {
8599
+ title?: string | undefined;
8600
+ url?: string | undefined;
8601
+ snippet?: string | undefined;
8602
+ }[] | undefined;
8603
+ }> | undefined;
8414
8604
  }>;
8415
8605
  declare const RecordDraftItemResultSchema: z.ZodObject<{
8416
8606
  transaction_id: z.ZodString;
@@ -8651,8 +8841,10 @@ interface QueryService {
8651
8841
  /**
8652
8842
  * Proposed record writes awaiting a verdict. `create` needs
8653
8843
  * `record-drafts:write`; `approve` additionally needs `write` (create / update /
8654
- * upsert) or `delete` (delete) on the entity, because the writes run as the
8655
- * caller. approved vs approved_with_changes is derived server-side.
8844
+ * upsert) or `delete` (delete) on every entity whose items are applied,
8845
+ * because the writes run as the caller. A draft can hold items of several
8846
+ * entities that reference each other by `transaction_id`. The status is
8847
+ * derived server-side from the per-item verdicts.
8656
8848
  */
8657
8849
  interface RecordDraftService {
8658
8850
  /** The org's drafts — `proposed` by default. */
@@ -8670,14 +8862,27 @@ interface RecordDraftService {
8670
8862
  listVersions(id: string): Promise<RecordDraftVersions>;
8671
8863
  /**
8672
8864
  * Applies the draft as the caller. No `items` = its items as they stand;
8673
- * `items` = the reviewer's edit, saved first. Always 200 with the draft: `status` is
8674
- * `approved` / `approved_with_changes` when every item succeeded, else still
8675
- * `proposed` with per-item `results` to fix and re-approve. 409
8676
- * `record_draft_not_proposed` once resolved.
8865
+ * `items` = the reviewer's edit, saved first. `transaction_ids` /
8866
+ * `attributes` apply only that part (plus the not-yet-written items it
8867
+ * references). Always 200 with the draft: `status` is terminal once every
8868
+ * item has a verdict, else still `proposed` with `verdicts` (what is
8869
+ * decided) and per-item `results` (what failed, to fix and re-approve). 409
8870
+ * `record_draft_not_proposed` once resolved, `record_draft_already_decided`
8871
+ * when the scope holds nothing undecided.
8677
8872
  */
8678
8873
  approve(id: string, request?: ApproveRecordDraftRequest): Promise<RecordDraft>;
8679
- /** Never applies the draft. 409 `record_draft_not_proposed` once resolved. */
8874
+ /**
8875
+ * Declines the draft, or the part `transaction_ids` / `attributes` name —
8876
+ * nothing is written. 409 `record_draft_not_proposed` once resolved.
8877
+ */
8680
8878
  reject(id: string, request?: RejectRecordDraftRequest): Promise<RecordDraft>;
8879
+ /**
8880
+ * What proposed drafts would still write to records of one entity, one row
8881
+ * per value, with the record's current value and the proposer's evidence.
8882
+ * Needs `read` on the entity; records and attributes the caller may not
8883
+ * read are left out.
8884
+ */
8885
+ proposedValues(query: ProposedValuesQuery): Promise<RecordDraftProposedValue[]>;
8681
8886
  }
8682
8887
 
8683
8888
  /**
@@ -9365,6 +9570,907 @@ interface DiscoveryInterviewService {
9365
9570
  getParticipation(id: string): Promise<DiscoveryInterviewParticipation>;
9366
9571
  }
9367
9572
 
9573
+ /**
9574
+ * enrichment-service types — filling attributes from providers (LeadMagic,
9575
+ * Icypeas, Exa, …) through waterfalls. Mirror of the wire shapes of
9576
+ * services/enrichment-service, which keeps its model to itself.
9577
+ */
9578
+ /** How an attribute, or one provider call, ended. */
9579
+ type EnrichmentOutcome = 'pending' | 'hit' | 'miss' | 'error' | 'skipped';
9580
+ /** The trust in a returned value. */
9581
+ type EnrichmentConfidence = 'high' | 'medium' | 'low';
9582
+ /** What a run over records did with a value it found. */
9583
+ type EnrichmentApplied = 'filled' | 'suggested' | 'unchanged' | 'previously_rejected';
9584
+ type EnrichmentRunKind = 'single' | 'batch';
9585
+ type EnrichmentRunStatus = 'running' | 'completed' | 'failed' | 'cancelled';
9586
+ type EnrichmentItemStatus = 'pending' | 'running' | 'waiting' | 'completed' | 'failed' | 'cancelled';
9587
+ /** What starts an enrichment by itself. A manual start always works. */
9588
+ type EnrichmentTrigger = 'on_create' | 'on_update' | 'on_schedule';
9589
+ /**
9590
+ * What happens to a value that was found: `suggest` proposes it in a record
9591
+ * draft, `fill_empty` writes it when the attribute is empty, `fill` writes it
9592
+ * over what is there. A value below `fill_min_confidence` is suggested.
9593
+ */
9594
+ type EnrichmentApplyLevel = 'suggest' | 'fill_empty' | 'fill';
9595
+ /**
9596
+ * `provider` and `web` steps name a provider that runs on a platform key. A
9597
+ * `connection` step names an enrichment connection instead: it runs on the
9598
+ * org's own account (its Clay).
9599
+ */
9600
+ type WaterfallStepKind = 'provider' | 'web' | 'connection';
9601
+ type WaterfallStopCondition = 'first_hit' | 'first_validated_hit';
9602
+ type WaterfallStatus = 'active' | 'inactive';
9603
+ /** A value to fill, defined inline in a request. */
9604
+ interface EnrichmentAttribute {
9605
+ name: string;
9606
+ type: AttributeType;
9607
+ description?: string;
9608
+ meta?: unknown;
9609
+ /**
9610
+ * The vendor meaning (`work_email`, …); `path` picks one property when the
9611
+ * type returns an object. Without them the attribute is researched on the
9612
+ * web from its name, type and description.
9613
+ */
9614
+ enrichment_type?: string;
9615
+ path?: string;
9616
+ /** Pins a waterfall, ahead of every default. */
9617
+ waterfall_id?: string;
9618
+ }
9619
+ /**
9620
+ * Body of `POST /enrich`. The subject is described by `input`, or by a record
9621
+ * (`entity_slug` and `record_id`) whose values are read through the entity's
9622
+ * enrichment mapping. An entry of `attributes` is the name of a mapped target
9623
+ * of the entity (a string) or an inline definition. Without `attributes`,
9624
+ * every mapped target of `entity_slug` is filled.
9625
+ */
9626
+ interface EnrichRequest {
9627
+ input?: Record<string, string>;
9628
+ entity_slug?: string;
9629
+ record_id?: string;
9630
+ attributes?: Array<string | EnrichmentAttribute>;
9631
+ }
9632
+ /** One source of a value a web step found. */
9633
+ interface EnrichmentCitation {
9634
+ url: string;
9635
+ title?: string;
9636
+ }
9637
+ /** Identifies a waterfall step. */
9638
+ interface EnrichmentResultStep {
9639
+ kind: WaterfallStepKind;
9640
+ provider: string;
9641
+ source: string;
9642
+ waterfall_id: string;
9643
+ step_index: number;
9644
+ }
9645
+ /** What was found for one attribute. */
9646
+ interface EnrichmentAttributeResult {
9647
+ value: unknown;
9648
+ outcome: EnrichmentOutcome;
9649
+ /** The value came from a call another attribute of the same item already made. */
9650
+ is_reused?: boolean;
9651
+ confidence?: EnrichmentConfidence;
9652
+ /** Set by a run over records for a value it found. */
9653
+ applied?: EnrichmentApplied;
9654
+ citations?: EnrichmentCitation[];
9655
+ /** The step that answered, or the last one tried. */
9656
+ step?: EnrichmentResultStep;
9657
+ enrichment_attempt_id?: string;
9658
+ /** Why the attribute has no value when its outcome is `error` or `skipped`. */
9659
+ error_code?: string;
9660
+ }
9661
+ /** The values `POST /enrich` found. Nothing is written to a record. */
9662
+ interface EnrichResponse {
9663
+ enrichment_run_id: string;
9664
+ enrichment_item_id: string;
9665
+ status: EnrichmentItemStatus;
9666
+ results: Record<string, EnrichmentAttributeResult>;
9667
+ }
9668
+ /**
9669
+ * Body of `POST /enrichment-runs`: the records of one entity to enrich as its
9670
+ * mapping defines, listed in `record_ids` or selected by `records_query`,
9671
+ * never both.
9672
+ */
9673
+ interface CreateEnrichmentRunRequest {
9674
+ entity_slug: string;
9675
+ record_ids?: string[];
9676
+ /** A filter group in the platform's own dialect, the one data-service takes as `_filter`. */
9677
+ records_query?: {
9678
+ filter: FilterGroup;
9679
+ };
9680
+ /** The mapped targets to fill; without it, all of them. */
9681
+ attributes?: string[];
9682
+ /** How long (0–30) the request waits for the run to finish. */
9683
+ wait_seconds?: number;
9684
+ }
9685
+ interface EnrichmentRunResponse {
9686
+ enrichment_run_id: string;
9687
+ status: EnrichmentRunStatus;
9688
+ record_draft_ids: string[];
9689
+ item_count: number;
9690
+ completed_count: number;
9691
+ }
9692
+ /** What started a run that no person started. */
9693
+ interface EnrichmentRunOrigin {
9694
+ record_event_id?: string;
9695
+ /** The refresh schedule started the run. */
9696
+ is_scheduled_refresh?: boolean;
9697
+ /** The research run that fills a row it found. */
9698
+ research_run_id?: string;
9699
+ }
9700
+ /**
9701
+ * Why a run started: a request (`manual`, or `workflow` for one a workflow
9702
+ * made), a trigger of the entity's enrichment mapping (`on_create`,
9703
+ * `on_update`, `on_schedule`), or a research run that fills what it found.
9704
+ */
9705
+ type EnrichmentRunTrigger = 'manual' | 'on_create' | 'on_update' | 'on_schedule' | 'workflow' | 'research' | 'signal';
9706
+ /** One enrichment request as stored. */
9707
+ interface EnrichmentRun {
9708
+ id: string;
9709
+ org_id: string;
9710
+ kind: EnrichmentRunKind;
9711
+ status: EnrichmentRunStatus;
9712
+ entity_slug?: string;
9713
+ attributes?: string[];
9714
+ /** The snapshot of what the run fills and how, as the service stored it. */
9715
+ resolved_attributes?: unknown;
9716
+ origin?: EnrichmentRunOrigin;
9717
+ trigger: EnrichmentRunTrigger;
9718
+ record_draft_ids?: string[];
9719
+ item_count: number;
9720
+ completed_count: number;
9721
+ created_at: string;
9722
+ created_by: UserRef$2;
9723
+ updated_at: string;
9724
+ updated_by: UserRef$2;
9725
+ }
9726
+ /** Filters and paging of `GET /enrichment-runs`. Pages are counted from 0. */
9727
+ interface ListEnrichmentRunsQuery {
9728
+ /** `single` is an ad-hoc `enrich` call, `batch` a run over records. */
9729
+ kind?: EnrichmentRunKind;
9730
+ status?: EnrichmentRunStatus;
9731
+ entity_slug?: string;
9732
+ page?: number;
9733
+ /** 25 by default, 100 at most. */
9734
+ page_size?: number;
9735
+ }
9736
+ /** One page of an org's runs, newest first. The runs come without `resolved_attributes`. */
9737
+ type EnrichmentRunList = ListResult<EnrichmentRun>;
9738
+ /** One record of a run, with what was found for it. */
9739
+ interface EnrichmentItem {
9740
+ id: string;
9741
+ org_id: string;
9742
+ enrichment_run_id: string;
9743
+ record_id?: string;
9744
+ record_draft_id?: string;
9745
+ transaction_id?: string;
9746
+ input: Record<string, string>;
9747
+ status: EnrichmentItemStatus;
9748
+ results: Record<string, EnrichmentAttributeResult>;
9749
+ error?: string;
9750
+ waiting_since?: string;
9751
+ created_at: string;
9752
+ updated_at: string;
9753
+ }
9754
+ /** Where one value of a record came from. */
9755
+ interface EnrichmentAttributeProvenance {
9756
+ value: unknown;
9757
+ /** How the value reached the record: the run wrote it, or a reviewer accepted it in `record_draft_id`. */
9758
+ applied: 'filled' | 'suggested';
9759
+ confidence?: EnrichmentConfidence;
9760
+ citations?: EnrichmentCitation[];
9761
+ /** The waterfall step that answered. */
9762
+ step?: EnrichmentResultStep;
9763
+ enrichment_run_id: string;
9764
+ enrichment_item_id: string;
9765
+ enrichment_attempt_id?: string;
9766
+ record_draft_id?: string;
9767
+ /** When the run found the value. */
9768
+ enriched_at: string;
9769
+ }
9770
+ /**
9771
+ * Answer of `GET /provenance`: per attribute of one record, the enrichment
9772
+ * its current value came from. An attribute whose value no enrichment put
9773
+ * there, or that someone changed since, is not listed.
9774
+ */
9775
+ interface EnrichmentProvenance {
9776
+ entity_slug: string;
9777
+ record_id: string;
9778
+ provenance: Record<string, EnrichmentAttributeProvenance>;
9779
+ }
9780
+ /**
9781
+ * What one attribute does in enrichment: a target (a value to fill), an input
9782
+ * (a value providers are called with), or both. On a relation it names the
9783
+ * inputs the related record lends.
9784
+ */
9785
+ interface EnrichmentBlock {
9786
+ enrichment_type?: string;
9787
+ path?: string;
9788
+ waterfall_id?: string;
9789
+ triggers?: EnrichmentTrigger[];
9790
+ /** Set by the service; a caller's value is ignored. */
9791
+ triggers_since?: Partial<Record<EnrichmentTrigger, string>>;
9792
+ /** The attributes whose change starts `on_update`. */
9793
+ when_changed?: string[];
9794
+ refresh_every_days?: number;
9795
+ apply?: EnrichmentApplyLevel;
9796
+ fill_min_confidence?: EnrichmentConfidence;
9797
+ /** How long a value is not enriched, or paid for, again. */
9798
+ max_age_days?: number;
9799
+ /** The input key the attribute's value provides. */
9800
+ input?: string;
9801
+ /** The company input keys the related record lends. */
9802
+ inputs_from_related?: string[];
9803
+ /** Set by the service; a caller's value is ignored. */
9804
+ related_entity_slug?: string;
9805
+ }
9806
+ /** One attribute's block as the API shows it. */
9807
+ interface EnrichmentEntry extends EnrichmentBlock {
9808
+ /** The entity's schema no longer backs the entry. Read-only. */
9809
+ orphaned?: boolean;
9810
+ }
9811
+ /** An entity's enrichment mapping. */
9812
+ interface EnrichmentMapping {
9813
+ id: string;
9814
+ org_id: string;
9815
+ entity_slug: string;
9816
+ module_slug: string;
9817
+ enrichment: Record<string, EnrichmentEntry>;
9818
+ created_at: string;
9819
+ created_by: UserRef$2;
9820
+ updated_at: string;
9821
+ updated_by: UserRef$2;
9822
+ }
9823
+ /**
9824
+ * Replaces an entity's whole mapping. `updated_at` is the `updated_at` of the
9825
+ * mapping that was read: left out for an entity without a mapping, and
9826
+ * matching the stored one otherwise (else 409).
9827
+ */
9828
+ interface ReplaceEnrichmentMappingRequest {
9829
+ enrichment: Record<string, EnrichmentEntry>;
9830
+ updated_at?: string;
9831
+ }
9832
+ interface WaterfallStep {
9833
+ kind: WaterfallStepKind;
9834
+ provider?: string;
9835
+ /** The enrichment connection of a `connection` step. */
9836
+ enrichment_connection_id?: string;
9837
+ }
9838
+ /** Checks every hit through the default waterfall of another enrichment type. */
9839
+ interface WaterfallValidation {
9840
+ enrichment_type: string;
9841
+ }
9842
+ /**
9843
+ * The ordered steps that fill one enrichment type or one entity attribute.
9844
+ * `org_id` `''` marks a platform default, which is read-only.
9845
+ */
9846
+ interface Waterfall {
9847
+ id: string;
9848
+ org_id: string;
9849
+ name: string;
9850
+ enrichment_type?: string;
9851
+ entity_slug?: string;
9852
+ attribute?: string;
9853
+ steps: WaterfallStep[];
9854
+ validation?: WaterfallValidation;
9855
+ stop_condition: WaterfallStopCondition;
9856
+ is_default: boolean;
9857
+ status: WaterfallStatus;
9858
+ created_at: string;
9859
+ created_by: UserRef$2;
9860
+ updated_at: string;
9861
+ updated_by: UserRef$2;
9862
+ }
9863
+ interface CreateWaterfallRequest {
9864
+ name: string;
9865
+ enrichment_type?: string;
9866
+ entity_slug?: string;
9867
+ attribute?: string;
9868
+ steps: WaterfallStep[];
9869
+ validation?: WaterfallValidation;
9870
+ /** `first_hit` when left out. */
9871
+ stop_condition?: WaterfallStopCondition;
9872
+ is_default?: boolean;
9873
+ }
9874
+ /** Changes the members it names. `validation: null` takes the validation away. */
9875
+ interface PatchWaterfallRequest {
9876
+ name?: string;
9877
+ steps?: WaterfallStep[];
9878
+ validation?: WaterfallValidation | null;
9879
+ stop_condition?: WaterfallStopCondition;
9880
+ is_default?: boolean;
9881
+ status?: WaterfallStatus;
9882
+ }
9883
+ /** One thing that can be asked for. */
9884
+ interface EnrichmentType {
9885
+ key: string;
9886
+ /** The sets of input keys any one of which is enough. */
9887
+ input_schema: string[][];
9888
+ output_schema: {
9889
+ type: string;
9890
+ paths?: Array<{
9891
+ name: string;
9892
+ type: string;
9893
+ }>;
9894
+ };
9895
+ }
9896
+ /** The catalog of enrichment types, with the input keys an entity's attributes can provide. */
9897
+ interface EnrichmentTypesResponse {
9898
+ data: EnrichmentType[];
9899
+ input_keys: string[];
9900
+ }
9901
+ /** One enrichment type a provider supplies. */
9902
+ interface EnrichmentProviderOffering {
9903
+ enrichment_type: string;
9904
+ required_inputs: string[][];
9905
+ paths?: string[];
9906
+ charge_policy: 'per_call' | 'per_hit';
9907
+ is_async: boolean;
9908
+ }
9909
+ /** One vendor of the catalog. It carries no credentials and no costs. */
9910
+ interface EnrichmentProvider {
9911
+ key: string;
9912
+ title: string;
9913
+ logo_url: string;
9914
+ offerings: EnrichmentProviderOffering[];
9915
+ /** Set on a provider that can research attributes on the web. */
9916
+ web?: EnrichmentProviderOffering;
9917
+ /**
9918
+ * Set on a provider that runs on the org's own connection of that
9919
+ * connector, through an enrichment connection. Such a provider lists no
9920
+ * offerings: what it supplies is up to the routine each enrichment
9921
+ * connection names.
9922
+ */
9923
+ connector_key?: string;
9924
+ }
9925
+ /** The service sets `error` when the connection's credential stopped working; setting `active` tries it again. */
9926
+ type EnrichmentConnectionStatus = 'active' | 'inactive' | 'error';
9927
+ /** Which routine to run and how its inputs and results line up with what a waterfall works with. */
9928
+ interface EnrichmentConnectionConfig {
9929
+ routine_id: string;
9930
+ /** The routine's input per input key: `{ company_domain: 'domain' }`. The step needs every key it lists. */
9931
+ input_mapping: Record<string, string>;
9932
+ /**
9933
+ * Where in the routine's result each part of the enrichment type's output
9934
+ * is found, as a dotted path: `{ value: 'email' }` for a type with a single
9935
+ * value, or `{ title: 'job.title' }` by output path for a profile.
9936
+ */
9937
+ output_mapping: Record<string, string>;
9938
+ }
9939
+ /**
9940
+ * An org's binding to one of its connector-service connections (its own Clay
9941
+ * key) and to the routine a waterfall's `connection` step runs. The
9942
+ * credential stays in connector-service.
9943
+ */
9944
+ interface EnrichmentConnection {
9945
+ id: string;
9946
+ org_id: string;
9947
+ name: string;
9948
+ connection_id: string;
9949
+ connector_key: string;
9950
+ config: EnrichmentConnectionConfig;
9951
+ status: EnrichmentConnectionStatus;
9952
+ status_detail?: string;
9953
+ created_at: string;
9954
+ created_by: UserRef$2;
9955
+ updated_at: string;
9956
+ updated_by: UserRef$2;
9957
+ }
9958
+ interface CreateEnrichmentConnectionRequest {
9959
+ name: string;
9960
+ connection_id: string;
9961
+ config: EnrichmentConnectionConfig;
9962
+ }
9963
+ /** Changes the members it names. `status` takes `active` or `inactive`. */
9964
+ interface PatchEnrichmentConnectionRequest {
9965
+ name?: string;
9966
+ config?: EnrichmentConnectionConfig;
9967
+ status?: 'active' | 'inactive';
9968
+ }
9969
+ type ResearchDefinitionStatus = 'active' | 'inactive';
9970
+ /**
9971
+ * What a found row proposes for a record it matches: `fill_empty` (the
9972
+ * default) only the attributes the record holds nothing under, `overwrite`
9973
+ * every attribute whose found value differs from the record's.
9974
+ */
9975
+ type ResearchUpdatePolicy = 'fill_empty' | 'overwrite';
9976
+ /** What to find. */
9977
+ interface ResearchCriteria {
9978
+ /** Describes the rows in plain words. */
9979
+ query: string;
9980
+ /** How many rows one run looks for at most: 10 by default, 100 at most. */
9981
+ count?: number;
9982
+ /** Conditions every row must meet, at most 5. */
9983
+ criteria?: string[];
9984
+ }
9985
+ /** Maps the found rows onto one entity. */
9986
+ interface ResearchEntityRule {
9987
+ entity_slug: string;
9988
+ /**
9989
+ * The attribute a found row is compared by with the entity's records; one
9990
+ * of `criteria_fields`. Without one every row is proposed as a new record.
9991
+ */
9992
+ match_key?: string;
9993
+ update_policy?: ResearchUpdatePolicy;
9994
+ /** The attributes filled from the discovery itself. */
9995
+ criteria_fields: string[];
9996
+ /**
9997
+ * The attributes filled through their waterfalls. Left out or `null`, every
9998
+ * mapped target of the entity that is no criteria field is filled; an empty
9999
+ * list fills none.
10000
+ */
10001
+ fields?: Array<{
10002
+ attribute: string;
10003
+ }> | null;
10004
+ }
10005
+ /** Maps people found for a company onto an entity whose records belong to the company's record. */
10006
+ interface ResearchChildRule extends ResearchEntityRule {
10007
+ /** The child entity's relation to the root entity. */
10008
+ relation_attribute: string;
10009
+ /** Whom to look for, such as "Head of Sales". */
10010
+ description: string;
10011
+ /** How many people are found per company: 1 by default, 5 at most. */
10012
+ max_per_parent?: number;
10013
+ }
10014
+ interface ResearchEntityMapping {
10015
+ root: ResearchEntityRule;
10016
+ children?: ResearchChildRule[];
10017
+ }
10018
+ /** How often an `on_schedule` research runs. */
10019
+ interface ResearchSchedule {
10020
+ every_days: number;
10021
+ }
10022
+ /**
10023
+ * Where a research finds its rows when that is not the platform's web
10024
+ * search: in the database of a vendor the org connected with its own account.
10025
+ * Such a search runs on the org's own key and spends its quota at the vendor.
10026
+ */
10027
+ interface ResearchSource {
10028
+ /** The org's connection at connector-service. */
10029
+ connection_id: string;
10030
+ /** The connection's connector, such as `clay`. The service sets it. */
10031
+ connector_key?: string;
10032
+ }
10033
+ /** What to find, how it maps onto entities, and when to look again. */
10034
+ interface ResearchDefinition {
10035
+ id: string;
10036
+ org_id: string;
10037
+ name: string;
10038
+ /** Absent for the platform's web search. */
10039
+ source?: ResearchSource;
10040
+ criteria: ResearchCriteria;
10041
+ entity_mapping: ResearchEntityMapping;
10042
+ /** `on_schedule` or nothing. A run can always be started by hand. */
10043
+ triggers: string[];
10044
+ schedule?: ResearchSchedule;
10045
+ next_run_at?: string;
10046
+ status: ResearchDefinitionStatus;
10047
+ created_at: string;
10048
+ created_by: UserRef$2;
10049
+ updated_at: string;
10050
+ updated_by: UserRef$2;
10051
+ }
10052
+ interface CreateResearchDefinitionRequest {
10053
+ name: string;
10054
+ /**
10055
+ * One of the org's own connections to search instead of the web.
10056
+ * `criteria.query` is then written in the vendor's query language.
10057
+ */
10058
+ source?: ResearchSource;
10059
+ criteria: ResearchCriteria;
10060
+ entity_mapping: ResearchEntityMapping;
10061
+ triggers?: string[];
10062
+ schedule?: ResearchSchedule;
10063
+ status?: ResearchDefinitionStatus;
10064
+ }
10065
+ /**
10066
+ * Changes the members it names; `criteria` and `entity_mapping` are replaced
10067
+ * whole. An empty `triggers` list takes the schedule away. A `source` with an
10068
+ * empty `connection_id` goes back to the web search.
10069
+ */
10070
+ interface PatchResearchDefinitionRequest {
10071
+ name?: string;
10072
+ source?: ResearchSource;
10073
+ criteria?: ResearchCriteria;
10074
+ entity_mapping?: ResearchEntityMapping;
10075
+ triggers?: string[];
10076
+ schedule?: ResearchSchedule;
10077
+ status?: ResearchDefinitionStatus;
10078
+ }
10079
+ /** One execution of a research definition. */
10080
+ interface ResearchRun {
10081
+ id: string;
10082
+ org_id: string;
10083
+ research_definition_id: string;
10084
+ trigger: 'manual' | 'on_schedule';
10085
+ /** The part of the definition the run works from, as it was when the run started. */
10086
+ definition: {
10087
+ source?: ResearchSource;
10088
+ criteria: ResearchCriteria;
10089
+ entity_mapping: ResearchEntityMapping;
10090
+ };
10091
+ /** The discovery provider's id of the search. */
10092
+ provider_ref?: string;
10093
+ status: EnrichmentRunStatus;
10094
+ record_draft_ids: string[];
10095
+ /** How many rows were found. */
10096
+ result_count: number;
10097
+ /** How many of them are in a record draft. */
10098
+ proposed_count: number;
10099
+ error?: string;
10100
+ created_at: string;
10101
+ created_by: UserRef$2;
10102
+ updated_at: string;
10103
+ updated_by: UserRef$2;
10104
+ }
10105
+ interface ListResearchRunsQuery {
10106
+ research_definition_id?: string;
10107
+ page?: number;
10108
+ /** 25 by default, 100 at most. */
10109
+ page_size?: number;
10110
+ }
10111
+ /** One page of an org's research runs, newest first. */
10112
+ type ResearchRunList = ListResult<ResearchRun>;
10113
+ /**
10114
+ * `proposed` waits for a reviewer; `accepted`, `edited` and `rejected` are
10115
+ * what the reviewer decided; `unchanged` matched a record and had nothing new
10116
+ * for it; `skipped` was rejected in an earlier run and is not proposed again.
10117
+ */
10118
+ type ResearchResultStatus = 'pending' | 'proposed' | 'accepted' | 'edited' | 'rejected' | 'unchanged' | 'skipped' | 'failed';
10119
+ /** Where one value of a found row came from. */
10120
+ interface ResearchEvidence {
10121
+ /** `Research`, or the provider whose waterfall step answered. */
10122
+ label?: string;
10123
+ citations?: EnrichmentCitation[];
10124
+ }
10125
+ /** One found row. */
10126
+ interface ResearchResult {
10127
+ id: string;
10128
+ org_id: string;
10129
+ research_run_id: string;
10130
+ research_definition_id: string;
10131
+ /** Set on a person: the row of the company they were found for. */
10132
+ parent_research_result_id?: string;
10133
+ entity_slug: string;
10134
+ /** The discovery provider's id of the row. */
10135
+ provider_ref?: string;
10136
+ raw?: unknown;
10137
+ /**
10138
+ * The attribute values the row is proposed with; for a row that proposes
10139
+ * nothing, what was found. A person's relation to a company that is no
10140
+ * record yet reads `{ research_result_id: '<id>' }`.
10141
+ */
10142
+ values: Record<string, unknown>;
10143
+ evidence?: Record<string, ResearchEvidence>;
10144
+ /** The row's value under the entity's match key. */
10145
+ match_value?: string;
10146
+ matched_record_id?: string;
10147
+ proposed_intent: 'create' | 'update' | 'none';
10148
+ record_draft_id?: string;
10149
+ transaction_id?: string;
10150
+ /** The record an accepted row became, or the one it matched. */
10151
+ record_id?: string;
10152
+ status: ResearchResultStatus;
10153
+ error?: string;
10154
+ created_at: string;
10155
+ updated_at: string;
10156
+ }
10157
+ /**
10158
+ * What a signal is about. A scheduled refresh detects `field_change`,
10159
+ * `job_change` and `headcount_change`; a web monitor looks for
10160
+ * `funding`, `news` and `hiring`. The set is open: a signal mapping exists
10161
+ * per kind.
10162
+ */
10163
+ type SignalKind = 'field_change' | 'job_change' | 'headcount_change' | 'funding' | 'news' | 'hiring' | (string & {});
10164
+ /** One detected change about a record. */
10165
+ interface Signal {
10166
+ id: string;
10167
+ org_id: string;
10168
+ kind: SignalKind;
10169
+ /** The source: a monitor, or the scheduled refresh run that found the change. */
10170
+ signal_monitor_id?: string;
10171
+ enrichment_run_id?: string;
10172
+ /** The record the signal is about, and the attribute that changed. */
10173
+ entity_slug?: string;
10174
+ record_id?: string;
10175
+ field?: string;
10176
+ previous_value?: unknown;
10177
+ value?: unknown;
10178
+ summary: string;
10179
+ evidence?: EnrichmentCitation[];
10180
+ enrichment_attempt_id?: string;
10181
+ /** The draft the kind's signal mapping proposed. Absent for a kind without a mapping. */
10182
+ record_draft_id?: string;
10183
+ dedupe_key: string;
10184
+ detected_at: string;
10185
+ created_at: string;
10186
+ }
10187
+ /** Filters `signals.list`. Every member narrows the list. */
10188
+ interface ListSignalsQuery {
10189
+ kind?: string;
10190
+ entity_slug?: string;
10191
+ record_id?: string;
10192
+ signal_monitor_id?: string;
10193
+ enrichment_run_id?: string;
10194
+ page?: number;
10195
+ /** 25 by default, 100 at most. */
10196
+ page_size?: number;
10197
+ }
10198
+ /** One page of an org's signals, newest first. */
10199
+ type SignalList = ListResult<Signal>;
10200
+ type SignalUpdatePolicy = 'fill_empty' | 'overwrite';
10201
+ /** A record a signal creates. */
10202
+ interface SignalCreateEffect {
10203
+ /** Names the record for the relations of later creates. */
10204
+ ref?: string;
10205
+ entity_slug: string;
10206
+ /**
10207
+ * The record's values by attribute. A text may hold the placeholders
10208
+ * `{{summary}}`, `{{value}}`, `{{previous_value}}`, `{{evidence}}` and
10209
+ * `{{detected_at}}`.
10210
+ */
10211
+ values?: Record<string, unknown>;
10212
+ /** By relation attribute, what the record points at: `subject`, or the ref of an earlier create. */
10213
+ relations?: Record<string, string>;
10214
+ }
10215
+ /** What a signal proposes to change on the record it is about. */
10216
+ interface SignalUpdateEffect {
10217
+ target: 'subject';
10218
+ attributes: Record<string, unknown>;
10219
+ update_policy?: SignalUpdatePolicy;
10220
+ }
10221
+ interface SignalEffects {
10222
+ create: SignalCreateEffect[];
10223
+ update: SignalUpdateEffect[];
10224
+ }
10225
+ /** An org's record effects for one signal kind. */
10226
+ interface SignalMapping {
10227
+ id: string;
10228
+ org_id: string;
10229
+ kind: SignalKind;
10230
+ module_slug: string;
10231
+ effects: SignalEffects;
10232
+ /** The parts of the effects that no longer fit the org's entities, such as `create[0].values.type`. */
10233
+ orphaned?: string[];
10234
+ created_at: string;
10235
+ created_by: UserRef$2;
10236
+ updated_at: string;
10237
+ updated_by: UserRef$2;
10238
+ }
10239
+ interface PutSignalMappingRequest {
10240
+ effects: SignalEffects;
10241
+ }
10242
+ /**
10243
+ * `web` looks on the web on a schedule. `connection` takes the events a vendor
10244
+ * pushes at one of the org's own connections.
10245
+ */
10246
+ type SignalMonitorKind = 'web' | 'connection';
10247
+ type SignalMonitorStatus = 'active' | 'inactive';
10248
+ /**
10249
+ * Which records a monitor covers: one of `record_ids` and `records_query`, of
10250
+ * one entity. A `connection` monitor takes neither: it covers every record of
10251
+ * the entity an event is about.
10252
+ */
10253
+ interface SignalMonitorSubject {
10254
+ entity_slug: string;
10255
+ record_ids?: string[];
10256
+ records_query?: {
10257
+ filter: FilterGroup;
10258
+ };
10259
+ }
10260
+ interface SignalMonitorConfig {
10261
+ /**
10262
+ * What a `web` monitor looks for: `news`, `funding`, `hiring`. A
10263
+ * `connection` monitor takes the kinds listed, and every kind the vendor
10264
+ * pushes when none is.
10265
+ */
10266
+ signal_kinds?: string[];
10267
+ /** The org's connection whose pushed events a `connection` monitor takes. */
10268
+ connection_id?: string;
10269
+ /** The connection's connector, such as `clay`. The service sets it. */
10270
+ connector_key?: string;
10271
+ }
10272
+ /** How often a `web` monitor checks. A `connection` monitor has none: `every_days` is 0. */
10273
+ interface SignalMonitorSchedule {
10274
+ every_days: number;
10275
+ }
10276
+ /**
10277
+ * A standing monitor for events about records: one that looks on the web on a
10278
+ * schedule, or one that takes what a vendor pushes.
10279
+ */
10280
+ interface SignalMonitor {
10281
+ id: string;
10282
+ org_id: string;
10283
+ name: string;
10284
+ kind: SignalMonitorKind;
10285
+ subject: SignalMonitorSubject;
10286
+ config: SignalMonitorConfig;
10287
+ schedule: SignalMonitorSchedule;
10288
+ provider_ref?: string;
10289
+ status: SignalMonitorStatus;
10290
+ /** Why the last check failed. Absent otherwise. */
10291
+ status_detail?: string;
10292
+ /** The last check that worked. */
10293
+ last_run_at?: string;
10294
+ next_run_at?: string;
10295
+ created_at: string;
10296
+ created_by: UserRef$2;
10297
+ updated_at: string;
10298
+ updated_by: UserRef$2;
10299
+ }
10300
+ interface CreateSignalMonitorRequest {
10301
+ name: string;
10302
+ kind: SignalMonitorKind;
10303
+ subject: SignalMonitorSubject;
10304
+ config: SignalMonitorConfig;
10305
+ schedule: SignalMonitorSchedule;
10306
+ /** Active unless it says inactive. */
10307
+ status?: SignalMonitorStatus;
10308
+ }
10309
+ /** Only the members it names change; a monitor's kind is fixed. */
10310
+ interface PatchSignalMonitorRequest {
10311
+ name?: string;
10312
+ subject?: SignalMonitorSubject;
10313
+ config?: SignalMonitorConfig;
10314
+ schedule?: SignalMonitorSchedule;
10315
+ status?: SignalMonitorStatus;
10316
+ }
10317
+
10318
+ /**
10319
+ * Facade for enrichment-service: filling attributes from providers through
10320
+ * waterfalls.
10321
+ *
10322
+ * `enrich` returns values and writes nothing. `runs` enrich records and write
10323
+ * or propose what they find (a record draft), as each attribute's apply level
10324
+ * says. `mappings` say what each attribute of an entity does in enrichment,
10325
+ * `waterfalls` are an org's own step lists, `research` finds companies and
10326
+ * people that are no records yet and proposes them as record drafts,
10327
+ * `signals` are the changes a scheduled refresh or a web monitor detected and
10328
+ * what they propose, and `catalog` is what can be asked for and who supplies
10329
+ * it.
10330
+ *
10331
+ * Single resources come back bare; the lists (run items, waterfalls,
10332
+ * providers) are unwrapped from `{data}` and are not paged.
10333
+ *
10334
+ * ```ts
10335
+ * const enrichment = new EnrichmentClient(client)
10336
+ * const found = await enrichment.enrich({ entity_slug: 'contact', record_id: id, attributes: ['email'] })
10337
+ * const run = await enrichment.runs.create({ entity_slug: 'contact', record_ids: ids, wait_seconds: 20 })
10338
+ * const items = await enrichment.runs.listItems(run.enrichment_run_id)
10339
+ * await enrichment.mappings.setEntry('contact', 'email', { enrichment_type: 'work_email' })
10340
+ * const researchRun = await enrichment.research.startRun(definitionId)
10341
+ * const rows = await enrichment.research.listResults(researchRun.id)
10342
+ * ```
10343
+ */
10344
+ declare class EnrichmentClient {
10345
+ private readonly client;
10346
+ readonly runs: EnrichmentRunService;
10347
+ readonly mappings: EnrichmentMappingService;
10348
+ readonly waterfalls: WaterfallService;
10349
+ readonly connections: EnrichmentConnectionService;
10350
+ readonly research: ResearchService;
10351
+ readonly signals: SignalService;
10352
+ readonly catalog: EnrichmentCatalogService;
10353
+ constructor(client: ProteosClient);
10354
+ /** Fills attributes ad hoc: the values are returned, nothing is written. */
10355
+ enrich(request: EnrichRequest): Promise<EnrichResponse>;
10356
+ }
10357
+ /** Runs over records. */
10358
+ interface EnrichmentRunService {
10359
+ /**
10360
+ * Starts a run. Answers once the run has finished or `wait_seconds` are
10361
+ * over, whichever is first; a run that is still running is followed with
10362
+ * `get`.
10363
+ */
10364
+ create(request: CreateEnrichmentRunRequest): Promise<EnrichmentRunResponse>;
10365
+ /** One page of the org's runs, newest first, without their `resolved_attributes`. */
10366
+ list(query?: ListEnrichmentRunsQuery): Promise<EnrichmentRunList>;
10367
+ get(id: string): Promise<EnrichmentRun>;
10368
+ /** A run's items with their results. */
10369
+ listItems(id: string): Promise<EnrichmentItem[]>;
10370
+ /** Stops the records whose turn has not come, and the ones that wait for a provider's answer. */
10371
+ cancel(id: string): Promise<EnrichmentRun>;
10372
+ /**
10373
+ * Where the values of one record came from: per attribute, the enrichment
10374
+ * that found the value the record holds now and wrote it, or suggested it
10375
+ * to a reviewer who accepted it.
10376
+ */
10377
+ provenance(entitySlug: string, recordId: string): Promise<EnrichmentProvenance>;
10378
+ }
10379
+ /** The enrichment mapping of an entity. */
10380
+ interface EnrichmentMappingService {
10381
+ /** An entity's mapping, its orphaned entries marked. */
10382
+ get(entitySlug: string): Promise<EnrichmentMapping>;
10383
+ /** Writes the whole mapping; 409 when it changed meanwhile. */
10384
+ replace(entitySlug: string, request: ReplaceEnrichmentMappingRequest): Promise<EnrichmentMapping>;
10385
+ getEntry(entitySlug: string, attribute: string): Promise<EnrichmentEntry>;
10386
+ /** Writes one attribute's entry and touches no other. */
10387
+ setEntry(entitySlug: string, attribute: string, block: EnrichmentBlock): Promise<EnrichmentEntry>;
10388
+ deleteEntry(entitySlug: string, attribute: string): Promise<void>;
10389
+ }
10390
+ /** An org's waterfalls. Platform defaults are listed and read-only. */
10391
+ interface WaterfallService {
10392
+ /** The org's waterfalls, active or not, and the platform defaults. */
10393
+ list(): Promise<Waterfall[]>;
10394
+ get(id: string): Promise<Waterfall>;
10395
+ /** 409 while another active waterfall holds its attribute, or is the default of its enrichment type. */
10396
+ create(request: CreateWaterfallRequest): Promise<Waterfall>;
10397
+ patch(id: string, request: PatchWaterfallRequest): Promise<Waterfall>;
10398
+ delete(id: string): Promise<void>;
10399
+ }
10400
+ /**
10401
+ * An org's enrichment connections: its bindings to its own connections (its
10402
+ * Clay key), which the `connection` steps of its waterfalls run on.
10403
+ */
10404
+ interface EnrichmentConnectionService {
10405
+ list(): Promise<EnrichmentConnection[]>;
10406
+ get(id: string): Promise<EnrichmentConnection>;
10407
+ /** Binds one of the org's connections. A person's own connection can only be bound by that person. */
10408
+ create(request: CreateEnrichmentConnectionRequest): Promise<EnrichmentConnection>;
10409
+ patch(id: string, request: PatchEnrichmentConnectionRequest): Promise<EnrichmentConnection>;
10410
+ /** A waterfall step that names it is skipped from then on. */
10411
+ delete(id: string): Promise<void>;
10412
+ }
10413
+ /**
10414
+ * Research definitions and their runs. A definition says what to find on the
10415
+ * web and how a found row maps onto the org's entities; a run finds the rows
10416
+ * and proposes the new ones as record drafts. Nothing is written to a record
10417
+ * until a reviewer accepts a draft in data-service.
10418
+ */
10419
+ interface ResearchService {
10420
+ listDefinitions(): Promise<ResearchDefinition[]>;
10421
+ getDefinition(id: string): Promise<ResearchDefinition>;
10422
+ /** Every entity the definition maps onto needs an enrichment mapping. */
10423
+ createDefinition(request: CreateResearchDefinitionRequest): Promise<ResearchDefinition>;
10424
+ patchDefinition(id: string, request: PatchResearchDefinitionRequest): Promise<ResearchDefinition>;
10425
+ /** Removes the definition with its runs and their rows. The record drafts its runs proposed stay. */
10426
+ deleteDefinition(id: string): Promise<void>;
10427
+ /**
10428
+ * Starts a run and returns it while it is still running; follow it with
10429
+ * `getRun`. 409 while the definition has a run that is still running.
10430
+ */
10431
+ startRun(definitionId: string): Promise<ResearchRun>;
10432
+ /** One page of the org's research runs, newest first. */
10433
+ listRuns(query?: ListResearchRunsQuery): Promise<ResearchRunList>;
10434
+ getRun(id: string): Promise<ResearchRun>;
10435
+ /** The rows a run found, each as a reviewer left it. */
10436
+ listResults(runId: string): Promise<ResearchResult[]>;
10437
+ /** Stops a running run. Drafts it proposed already stay. */
10438
+ cancelRun(id: string): Promise<ResearchRun>;
10439
+ }
10440
+ /**
10441
+ * Signals: the log of detected changes, the signal mapping of each kind
10442
+ * (which records a signal creates and what it proposes on the record it is
10443
+ * about), and signal monitors (standing web monitors for news, funding and
10444
+ * hiring about some records). A scheduled refresh detects `field_change`,
10445
+ * `job_change` and `headcount_change` by itself; turn it on with the
10446
+ * `on_schedule` trigger and `refresh_every_days` of a mapping entry.
10447
+ */
10448
+ interface SignalService {
10449
+ /** One page of the org's signals, newest first. */
10450
+ list(query?: ListSignalsQuery): Promise<SignalList>;
10451
+ listMappings(): Promise<SignalMapping[]>;
10452
+ getMapping(kind: string): Promise<SignalMapping>;
10453
+ /** Writes the whole of what a signal of the kind does to records. */
10454
+ putMapping(kind: string, request: PutSignalMappingRequest): Promise<SignalMapping>;
10455
+ /** The kind's signals are still logged and published, and propose nothing. */
10456
+ deleteMapping(kind: string): Promise<void>;
10457
+ listMonitors(): Promise<SignalMonitor[]>;
10458
+ getMonitor(id: string): Promise<SignalMonitor>;
10459
+ /**
10460
+ * An active monitor checks for the first time within a minute and then every
10461
+ * `schedule.every_days`; every check costs money.
10462
+ */
10463
+ createMonitor(request: CreateSignalMonitorRequest): Promise<SignalMonitor>;
10464
+ patchMonitor(id: string, request: PatchSignalMonitorRequest): Promise<SignalMonitor>;
10465
+ /** The signals the monitor detected stay. */
10466
+ deleteMonitor(id: string): Promise<void>;
10467
+ }
10468
+ /** What can be asked for and who supplies it. The same for every org. */
10469
+ interface EnrichmentCatalogService {
10470
+ enrichmentTypes(): Promise<EnrichmentTypesResponse>;
10471
+ providers(): Promise<EnrichmentProvider[]>;
10472
+ }
10473
+
9368
10474
  /**
9369
10475
  * Common error codes returned by the Proteos API.
9370
10476
  */
@@ -13099,4 +14205,4 @@ declare class WorkflowClient {
13099
14205
  constructor(client: ProteosClient);
13100
14206
  }
13101
14207
 
13102
- export { type AcceptMistranscribedTermRequest, AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddTeamMemberRequest, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerAcknowledgementConfig, type AgentListenerAcknowledgementType, type AgentListenerActingUserMode, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentRuntime, type AgentService, type AgentVoiceStyle, type AllFilterConfig, type ApiErrorResponse, type ApiKey, type AppendEventRequest, type AppendSpeechRequest, type ApplySendingLimitPresetRequest, type ApproveRecordDraftRequest, type AssignPermissionRequest, type AssignRoleRequest, type Assignment, type AttachContactAddressRequest, type AttachConversationBriefRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AuthoredTranscriptTurn, type AutomatedFilterConfig, type AutomatedSignal, type AvailabilityConstraint, type AvailabilityConstraintService, type AvailabilityKind, type AwaitingToolUse, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type BookSchedulingLinkRequest, type BookSchedulingLinkResponse, type BookingContact, type BooleanAnswer, type BooleanCriteria, type BooleanQuestion, type BooleanTagCriteria, type BounceClassification, type BounceKind, type Calendar, type CalendarAttendee, type CalendarAttendeeRequest, type CalendarConnection, type CalendarConnectionService, type CalendarConnectionStatus, type CalendarEvent, type CalendarEventService, type CalendarEventType, type CalendarEventTypeService, type CalendarEventsResponse, type CalendarProvider, type CalendarService, type CalendarSync, type CalendarSyncStatus, type CalendarVisibility, type CalendarWatch, type CallDialStatus, type CallMetadata, type CallStatus, type CallTokenResponse, type CancelPublicCalendarEventRequest, type Channel, type ChannelAction, type ChannelActionCapability, type ChannelActionParams, type ChannelActionResponse, type ChannelActionService, type ChannelActionStatus, type ChannelActionTargetKind, type ChannelActionType, type ChannelEvent, type ChannelEventService, type ChannelEventType, type ChoiceAnswer, type ChoiceQuestion, type ClientEventType, type ClientToolSchema, type ConferencingProvider, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type ConnectionSyncRange, type ConnectionSyncStatus, type Connector, type ConnectorCatalogEntry, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentRequest, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKey, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactGroup, type ContactGroupService, type ContactGroupSource, type ContactMergeProposal, type ContactPermissionEvent, type ContactPurposeStatus, type ContactRecordLink, type ContactRecordLinkSource, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, type ConversationBrief, type ConversationBriefService, type ConversationBriefStatus, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationNote, type ConversationNoteService, type ConversationObjective, type ConversationObjectiveAchievedWhen, type ConversationObjectiveCount, type ConversationObjectiveDefinition, type ConversationObjectiveDefinitionService, type ConversationObjectiveMeasure, type ConversationObjectiveMeasureKind, type ConversationObjectiveProgress, type ConversationObjectiveService, type ConversationObjectiveSource, type ConversationObjectiveStatus, type ConversationOutcome, type ConversationOutcomeOption, type ConversationOutcomeSource, type ConversationParticipant, type ConversationPhase, type ConversationPhaseProgress, type ConversationPhaseStatus, type ConversationScope, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type ConversationTag, type ConversationTagBasis, type ConversationTagCount, type ConversationTagCriteria, type ConversationTagDefinition, type ConversationTagDefinitionService, type ConversationTagEvaluation, type ConversationTagEvaluationStatus, type ConversationTagEvaluator, type ConversationTagEvaluatorKind, type ConversationTagQuestion, type ConversationTagQuestionType, type ConversationTagRole, type ConversationTagScope, type ConversationTagScreening, type ConversationTagScreeningResult, type ConversationTagService, type ConversationTagSet, type ConversationTagSetService, type ConversationTagSource, type ConversationTagStatus, type ConversationTagTrigger, type ConversationTagUsage, type ConversationTaggedEvent, type ConversationType, type ConversationTypeConfig, type ConversationTypeService, type CountConversationObjectivesQuery, type CountConversationObjectivesResponse, type CountConversationTagsQuery, type CountConversationTagsResponse, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateApiKeyRequest, type CreateAvailabilityConstraintRequest, type CreateCalendarConnectionRequest, type CreateCalendarEventRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateContactGroupRequest, type CreateContactRecordLinkRequest, type CreateContactRequest, type CreateConversationBriefRequest, type CreateConversationFilterRequest, type CreateConversationNoteRequest, type CreateConversationObjectiveDefinitionRequest, type CreateConversationTagDefinitionRequest, type CreateConversationTagRequest, type CreateConversationTagSetRequest, type CreateConversationTypeRequest, type CreateDiscoveryEvidenceFrameRequest, type CreateDiscoveryEvidenceLinkRequest, type CreateDiscoveryEvidenceNarrationFrameRequest, type CreateDiscoveryEvidenceNarrationRequest, type CreateDiscoveryEvidenceRequest, type CreateDiscoveryEvidenceStrokeRequest, type CreateDiscoveryInterviewDefinitionRequest, type CreateEmailSignatureRequest, type CreateEntityIndexRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateMessageTemplateRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreateProfileRequest, type CreatePromptRequest, type CreateQueryRequest, type CreateRecordDraftRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSchedulingLinkRequest, type CreateSendingRuleRequest, type CreateSessionRequest, type CreateSpaceRequest, type CreateTeamRequest, type CreateToneProfileSetupRequest, type CreateToolRequest, type CreateToolsetRequest, type CreateTranscriptionFromTextRequest, type CreateUserRequest, type CreateWhiteboardTemplateRequest, type CreateWorkflowRequest, type CreatedApiKey, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DecideRequest, type DecisionAnswer, type DecisionAnswerFor, type DecisionQuestion, type DecisionQuestionType, type DecisionQuestions, type DecisionResult, type DelegatedSessionUpdatedPayload, type DeltaBoundaryPayload, type DeltaEventType, type DependentAgent, type DependentSyncResult, DiscoveryClient, type DiscoveryEvidence, type DiscoveryEvidenceCategory, type DiscoveryEvidenceContext, type DiscoveryEvidenceDownloadUrl, type DiscoveryEvidenceEnrichmentStatus, type DiscoveryEvidenceFieldSource, type DiscoveryEvidenceFrame, type DiscoveryEvidenceKind, type DiscoveryEvidenceLink, type DiscoveryEvidenceNarration, type DiscoveryEvidenceNarrationFrameComment, type DiscoveryEvidenceNarrationService, type DiscoveryEvidenceNarrationStatus, type DiscoveryEvidenceOrgSummary, type DiscoveryEvidenceService, type DiscoveryEvidenceSource, type DiscoveryEvidenceStatus, type DiscoveryInterview, type DiscoveryInterviewAccess, type DiscoveryInterviewAnswer, type DiscoveryInterviewBlockedReason, type DiscoveryInterviewCounts, type DiscoveryInterviewCoverage, type DiscoveryInterviewDefinition, type DiscoveryInterviewDefinitionService, type DiscoveryInterviewDefinitionStatus, type DiscoveryInterviewGuide, type DiscoveryInterviewGuideFinding, type DiscoveryInterviewGuideRule, type DiscoveryInterviewMode, type DiscoveryInterviewParticipation, type DiscoveryInterviewParticipationDefinition, type DiscoveryInterviewParticipationInterview, type DiscoveryInterviewProbing, type DiscoveryInterviewQuestion, type DiscoveryInterviewQuestionRequest, type DiscoveryInterviewRecording, type DiscoveryInterviewService, type DiscoveryInterviewSpeaker, type DiscoveryInterviewStatus, type DiscoveryInterviewSynthesisStatus, type DiscoveryInterviewTranscriptTurn, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmailDnsRecord, type EmailDomainStatus, type EmailEngagementQuality, type EmailHealth, type EmailHealthWindow, type EmailIp, type EmailProviderHealth, type EmailProviderStats, type EmailSender, type EmailSenderStatus, type EmailSignature, type EmailSignatureAppliesTo, type EmailSignatureService, type EmailSuppression, type EmailSuppressionCounts, type EmailSuppressionKind, type EmptyPayload, type EndVoiceRequest, type EntityIndex, type EntityIndexService, type EntityIndexSource, type EntityIndexState, type EntityIndexType, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EvaluateConversationTagsRequest, type EventLocation, type EventSource, type EventStatus, type EventTransparency, type EventTriggerParams, type EventType, type EventVerb, type EventVisibility, type EventWriteStatus, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, FilterGroup, type FilterMatchOn, type FrequencyCapRuleConfig, FunctionsClient, type GenerateRequest, type GenerationResult, type GetConnectionHealthQuery, type GetExecutionDetailResponse, type GetGraphOptions, type GetManyConversationObjectiveDefinitionsQuery, type GetManyConversationObjectivesQuery, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GetPublicSlotsQuery, type GetSlotsRequest, type GetSlotsResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type HostsRequest, type IndexEvidence, type IndexRecommendation, type InkPoint, type InkStroke, type InlineLinkRequest, type InmailParams, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvitationParams, type InviteDiscoveryInterviewParticipantsRequest, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type KnowledgeSpace, type LabelService, type LimitRuleConfig, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListAvailabilityConstraintsQuery, type ListCalendarConnectionsQuery, type ListCalendarEventTypesQuery, type ListCalendarEventsQuery, type ListCalendarsQuery, type ListChannelActionsQuery, type ListChannelEventsQuery, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactGroupsQuery, type ListContactMergeProposalsQuery, type ListContactRecordLinksQuery, type ListContactsQuery, type ListConversationBriefsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationNotesQuery, type ListConversationTagDefinitionsQuery, type ListConversationTagEvaluationsQuery, type ListConversationTagSetsQuery, type ListConversationTagsQuery, type ListConversationTypesQuery, type ListConversationsQuery, type ListDiscoveryEvidenceQuery, type ListDiscoveryInterviewDefinitionsQuery, type ListDiscoveryInterviewsQuery, type ListEmailSignaturesQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMeetingBotsQuery, type ListMessageTemplatesQuery, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrgUserRoleAssignmentsOptions, type ListOrganizationsOptions, type ListPermissionEventsResponse, type ListPlatformDiscoveryEvidenceQuery, type ListProfilesOptions, type ListPromptsOptions, type ListQueriesQuery, type ListRecordDraftsQuery, type ListRecordDuplicatesQuery, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse$2 as ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSchedulingLinksQuery, type ListSendingLimitPresetsQuery, type ListSendingRulesQuery, type ListSessionsOptions, type ListSkillsOptions, type ListSpacesOptions, type ListTeamMembersOptions, type ListTeamsOptions, type ListToneProfileSetupsQuery, type ListToneProfilesQuery, type ListToolsOptions, type ListToolsetsOptions, type ListTranscriptionsQuery, type ListUserProfileAssignmentsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWhiteboardTemplatesOptions, type ListWorkflowsOptions, type LocationKind, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingBot, type MeetingBotService, type MeetingBotStatus, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDelivery, type MessageDeliveryStatus, type MessageDeltaPayload, type MessageDirection, type MessageDraftChange, type MessageDraftVersion, type MessageDraftVersionKind, type MessageDraftVersions, type MessageLayout, type MessagePreview, type MessageRecipient, type MessageService, type MessageSignature, type MessageStatus, type MessageTemplate, type MessageTemplateKind, type MessageTemplateService, type MessageTriggerParams, type MintCallTokenRequest, type MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, type ModelCallParams, type ModelConfig, type ModelInfo, type ModelProviderName, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelService, type ModelStopReason, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type NotifyMode, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageAction, PageIterator, type PairedItem, type ParseStatus, type ParticipationStatus, type PerformChannelActionRequest, type Permission, type PermissionEventSource, type PermissionEventType, type PhoneNumber, type PhoneNumberRouting, type PhoneNumberStatus, type PlatformBinding, type PlatformDiscoveryEvidenceService, type PlatformEntity, type PlatformEvent, type PortSpec, type Profile, ProfileSchema, type ProfileService, type ProfileVisitParams, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, ProteosClient, ProteosError, PublicAccessOperation, type PublicBookSchedulingLinkResponse, type PublicCalendarEvent, type PublicCalendarEventType, type PublicEventLocation, type PublicHost, type PublicSchedulingLink, type PublicSchedulingService, type PublishContactObservationsResponse, type PublishEventRequest, type Purpose, type PutCalendarEventTypeRequest, type PutSchedulingProfileRequest, type Query, type QueryBinding, type QueryBuilder, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningDeltaPayload, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordDraft, type RecordDraftChange, type RecordDraftChangeKind, RecordDraftChangeSchema, type RecordDraftIntent, type RecordDraftItem, type RecordDraftItemError, type RecordDraftItemInput, type RecordDraftItemResult, RecordDraftItemResultSchema, type RecordDraftItemResultStatus, RecordDraftItemSchema, type RecordDraftService, type RecordDraftStatus, type RecordDraftVersion, type RecordDraftVersionKind, type RecordDraftVersions, type RecordDuplicate, type RecordDuplicateService, type RecordDuplicateSource, type RecordDuplicateStatus, type RecordLinkService, type RecordPermissionEventRequest, type RecordRef, type RecordService, type RecurrenceScope, type RedriveResult, type RejectRecordDraftRequest, type RenderMessageTemplateRequest, type RenderedMessageTemplate, RequestOptions, type RescheduleHost, type ReschedulePublicCalendarEventRequest, type ResolveEmailSignatureQuery, type ResolveToneProfileQuery, type RespondCalendarEventRequest, type RespondChannelActionRequest, ResponseMeta$1 as ResponseMeta, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RoutingTarget, type RunWorkflowRequest, SCOPED_PLATFORM_ENTITY_SLUGS, SchedulingClient, type SchedulingLink, type SchedulingLinkService, type ListResponse as SchedulingListResponse, type SchedulingProfile, type SchedulingProfileService, type ScoreAnswer, type ScoreQuestion, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendEligibility, type SendEligibilityRequest, type SendMessageRequest, type SendRecipient, type SendingLimitPreset, type SendingPeriod, type SendingRule, type SendingRuleConfig, type SendingRuleService, type SendingRuleType, type Session, type SessionDeltaEntry, type SessionDeltaFrame, type SessionDeltaStreamOptions, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionPreview, type SessionPreviewStatus, type SessionRunningPayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionToolKind, type SessionUpdatedPayload, type SetCallRecordingRequest, type SetDefaultSenderRequest, type SetProfileRequest, type SharePermission, type ShareRow, type ShareService, type SignatureChoice, type Skill, type SkillBundle, type SkillService, type SkillVersion, type Slot, type SlotParameters, type SlotService, type SlotUnavailability, type SlotUnavailabilityReason, type SpaceScope, type SpaceService, type SpeechPayload, type SpeechSegment, type StartDiscoveryInterviewParticipationRequest, type StartMcpOAuthResponse, type StartVoiceRequest, type StartVoiceResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type StructuredText, type SyncConnectionRequest, type SystemSource, type TailOptions, type Team, type TeamMember, type TeamService, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type ToneProfile, type ToneProfileScope, type ToneProfileService, type ToneProfileSetup, type ToneProfileSetupStatus, type ToneProfileSource, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUseDeltaPayload, type ToolUsePayload, type ToolUseStartPayload, type Toolset, type ToolsetKind, type ToolsetService, type ToolsetToolSummary, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TranscriptTurn, type Transcription, type TranscriptionReviewStatus, type TranscriptionStatus, type TransferVoiceRequest, type TransferVoiceResponse, type TriggerKind, type Turn, type TwilioPhoneSettings, type TwilioPhoneVoicemailSettings, UNASSIGNED_SPACE_SLUG, UNSUBSCRIBE_URL_PLACEHOLDER, type UnreadCounts, type UnreadCountsQuery, type UnsubscribeChoice, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateAvailabilityConstraintRequest, type UpdateCalendarConnectionRequest, type UpdateCalendarEventRequest, type UpdateCalendarEventTypeRequest, type UpdateCalendarRequest, type UpdateCalendarSyncRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactGroupRequest, type UpdateContactRequest, type UpdateConversationBriefRequest, type UpdateConversationFilterRequest, type UpdateConversationNoteRequest, type UpdateConversationObjectiveDefinitionRequest, type UpdateConversationRequest, type UpdateConversationTagDefinitionRequest, type UpdateConversationTagRequest, type UpdateConversationTagSetRequest, type UpdateConversationTypeRequest, type UpdateDiscoveryEvidenceFrameRequest, type UpdateDiscoveryEvidenceRequest, type UpdateDiscoveryEvidenceStatusRequest, type UpdateDiscoveryInterviewDefinitionRequest, type UpdateDraftRequest, type UpdateEmailSignatureRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateMeRequest, type UpdateMessageTemplateRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePhoneNumberRequest, type UpdateProfileRequest, type UpdatePromptRequest, type UpdateQueryRequest, type UpdateRecordDraftRequest, type UpdateRoleRequest, type UpdateSchedulingLinkRequest, type UpdateSendingRuleRequest, type UpdateSpaceRequest, type UpdateTeamRequest, type UpdateToolRequest, type UpdateToolsetRequest, type UpdateUserRequest, type UpdateWhiteboardTemplateRequest, type UpdateWorkflowRequest, type UpsertToneProfileRequest, type User, type UserMessagePayload, type UserProfileAssignment, UserProfileAssignmentSchema, type UserProfileAssignmentService, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, type UserRoleAssignmentService, UserSchema, type UserService, type VoiceEndReason, type VoiceEndedPayload, type VoiceRequestPayload, type VoiceService, type VoiceSession, type VoiceStartedPayload, type VoiceTranscriptionStream, type WarmupRuleConfig, type WebhookTriggerParams, type Weekday, type WhiteboardTemplate, type WhiteboardTemplateMetadata, type WhiteboardTemplateService, type WindowDay, type WindowRuleConfig, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentOptions, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isDeltaFrame, isForbidden, isNotFound, isPlatformEntity, isProteosError, isShareable, isUnauthorized, parseErrorResponse, shareRouteFor, toQueryParams, toQueryString };
14208
+ export { type AcceptMistranscribedTermRequest, AccountClient, type Action, type ActionBinding, ActionSchema, type ActionScope, ActionScopeSchema, type ActionService, type AddTeamMemberRequest, type AddressFilterConfig, type Agent, type AgentActionParams, type AgentArtifactsPayload, AgentClient, type AgentListener, type AgentListenerAcknowledgementConfig, type AgentListenerAcknowledgementType, type AgentListenerActingUserMode, type AgentListenerService, type AgentListenerTriggerType, type AgentMessagePayload, type AgentResourceListOptions, type AgentRuntime, type AgentService, type AgentVoiceStyle, type AllFilterConfig, type ApiErrorResponse, type ApiKey, type AppendEventRequest, type AppendSpeechRequest, type ApplySendingLimitPresetRequest, type ApproveRecordDraftRequest, type AssignPermissionRequest, type AssignRoleRequest, type Assignment, type AttachContactAddressRequest, type AttachConversationBriefRequest, type Attachment, Attribute, AttributeType, AuditFields, type AuthListOptions, type AuthoredTranscriptTurn, type AutomatedFilterConfig, type AutomatedSignal, type AvailabilityConstraint, type AvailabilityConstraintService, type AvailabilityKind, type AwaitingToolUse, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type BookSchedulingLinkRequest, type BookSchedulingLinkResponse, type BookingContact, type BooleanAnswer, type BooleanCriteria, type BooleanQuestion, type BooleanTagCriteria, type BounceClassification, type BounceKind, type Calendar, type CalendarAttendee, type CalendarAttendeeRequest, type CalendarConnection, type CalendarConnectionService, type CalendarConnectionStatus, type CalendarEvent, type CalendarEventService, type CalendarEventType, type CalendarEventTypeService, type CalendarEventsResponse, type CalendarProvider, type CalendarService, type CalendarSync, type CalendarSyncStatus, type CalendarVisibility, type CalendarWatch, type CallDialStatus, type CallMetadata, type CallStatus, type CallTokenResponse, type CancelPublicCalendarEventRequest, type Channel, type ChannelAction, type ChannelActionCapability, type ChannelActionParams, type ChannelActionResponse, type ChannelActionService, type ChannelActionStatus, type ChannelActionTargetKind, type ChannelActionType, type ChannelEvent, type ChannelEventService, type ChannelEventType, type ChoiceAnswer, type ChoiceQuestion, type ClientEventType, type ClientToolSchema, type ConferencingProvider, type Connection, type ConnectionCredentials, type ConnectionEndpoint, type ConnectionScope, type ConnectionService, type ConnectionStatus, type ConnectionSyncRange, type ConnectionSyncStatus, type Connector, type ConnectorCatalogEntry, ConnectorClient, type ConnectorConnection, type ConnectionScope$1 as ConnectorConnectionScope, type ConnectionStatus$1 as ConnectorConnectionStatus, type ConnectionTokenResponse as ConnectorConnectionTokenResponse, type CredentialKind as ConnectorCredentialKind, type ConnectorKey, type ConnectorMethod, type ConnectorProvider, type ConsentRequest, type ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKey, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactGroup, type ContactGroupService, type ContactGroupSource, type ContactMergeProposal, type ContactPermissionEvent, type ContactPurposeStatus, type ContactRecordLink, type ContactRecordLinkSource, type ContactRef, type ContactService, type ContactSource, type ContactStatus, type ContentBlock$1 as ContentBlock, type ContentMatch, type ContentResponse, type ContextCompactedPayload, type Conversation, type ConversationBrief, type ConversationBriefService, type ConversationBriefStatus, ConversationClient, type ConversationFilter, type ConversationFilterAction, type ConversationFilterConfig, type ConversationFilterEvent, type ConversationFilterService, type ConversationFilterType, type ConversationNote, type ConversationNoteService, type ConversationObjective, type ConversationObjectiveAchievedWhen, type ConversationObjectiveCount, type ConversationObjectiveDefinition, type ConversationObjectiveDefinitionService, type ConversationObjectiveMeasure, type ConversationObjectiveMeasureKind, type ConversationObjectiveProgress, type ConversationObjectiveService, type ConversationObjectiveSource, type ConversationObjectiveStatus, type ConversationOutcome, type ConversationOutcomeOption, type ConversationOutcomeSource, type ConversationParticipant, type ConversationPhase, type ConversationPhaseProgress, type ConversationPhaseStatus, type ConversationScope, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type ConversationTag, type ConversationTagBasis, type ConversationTagCount, type ConversationTagCriteria, type ConversationTagDefinition, type ConversationTagDefinitionService, type ConversationTagEvaluation, type ConversationTagEvaluationStatus, type ConversationTagEvaluator, type ConversationTagEvaluatorKind, type ConversationTagQuestion, type ConversationTagQuestionType, type ConversationTagRole, type ConversationTagScope, type ConversationTagScreening, type ConversationTagScreeningResult, type ConversationTagService, type ConversationTagSet, type ConversationTagSetService, type ConversationTagSource, type ConversationTagStatus, type ConversationTagTrigger, type ConversationTagUsage, type ConversationTaggedEvent, type ConversationType, type ConversationTypeConfig, type ConversationTypeService, type CountConversationObjectivesQuery, type CountConversationObjectivesResponse, type CountConversationTagsQuery, type CountConversationTagsResponse, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateApiKeyRequest, type CreateAvailabilityConstraintRequest, type CreateCalendarConnectionRequest, type CreateCalendarEventRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateContactGroupRequest, type CreateContactRecordLinkRequest, type CreateContactRequest, type CreateConversationBriefRequest, type CreateConversationFilterRequest, type CreateConversationNoteRequest, type CreateConversationObjectiveDefinitionRequest, type CreateConversationTagDefinitionRequest, type CreateConversationTagRequest, type CreateConversationTagSetRequest, type CreateConversationTypeRequest, type CreateDiscoveryEvidenceFrameRequest, type CreateDiscoveryEvidenceLinkRequest, type CreateDiscoveryEvidenceNarrationFrameRequest, type CreateDiscoveryEvidenceNarrationRequest, type CreateDiscoveryEvidenceRequest, type CreateDiscoveryEvidenceStrokeRequest, type CreateDiscoveryInterviewDefinitionRequest, type CreateEmailSignatureRequest, type CreateEnrichmentConnectionRequest, type CreateEnrichmentRunRequest, type CreateEntityIndexRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateMessageTemplateRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreateProfileRequest, type CreatePromptRequest, type CreateQueryRequest, type CreateRecordDraftRequest, type CreateRecordLinkRequest, type CreateResearchDefinitionRequest, type CreateRoleRequest, type CreateSchedulingLinkRequest, type CreateSendingRuleRequest, type CreateSessionRequest, type CreateSignalMonitorRequest, type CreateSpaceRequest, type CreateTeamRequest, type CreateToneProfileSetupRequest, type CreateToolRequest, type CreateToolsetRequest, type CreateTranscriptionFromTextRequest, type CreateUserRequest, type CreateWaterfallRequest, type CreateWhiteboardTemplateRequest, type CreateWorkflowRequest, type CreatedApiKey, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DecideRequest, type DecisionAnswer, type DecisionAnswerFor, type DecisionQuestion, type DecisionQuestionType, type DecisionQuestions, type DecisionResult, type DelegatedSessionUpdatedPayload, type DeltaBoundaryPayload, type DeltaEventType, type DependentAgent, type DependentSyncResult, DiscoveryClient, type DiscoveryEvidence, type DiscoveryEvidenceCategory, type DiscoveryEvidenceContext, type DiscoveryEvidenceDownloadUrl, type DiscoveryEvidenceEnrichmentStatus, type DiscoveryEvidenceFieldSource, type DiscoveryEvidenceFrame, type DiscoveryEvidenceKind, type DiscoveryEvidenceLink, type DiscoveryEvidenceNarration, type DiscoveryEvidenceNarrationFrameComment, type DiscoveryEvidenceNarrationService, type DiscoveryEvidenceNarrationStatus, type DiscoveryEvidenceOrgSummary, type DiscoveryEvidenceService, type DiscoveryEvidenceSource, type DiscoveryEvidenceStatus, type DiscoveryInterview, type DiscoveryInterviewAccess, type DiscoveryInterviewAnswer, type DiscoveryInterviewBlockedReason, type DiscoveryInterviewCounts, type DiscoveryInterviewCoverage, type DiscoveryInterviewDefinition, type DiscoveryInterviewDefinitionService, type DiscoveryInterviewDefinitionStatus, type DiscoveryInterviewGuide, type DiscoveryInterviewGuideFinding, type DiscoveryInterviewGuideRule, type DiscoveryInterviewMode, type DiscoveryInterviewParticipation, type DiscoveryInterviewParticipationDefinition, type DiscoveryInterviewParticipationInterview, type DiscoveryInterviewProbing, type DiscoveryInterviewQuestion, type DiscoveryInterviewQuestionRequest, type DiscoveryInterviewRecording, type DiscoveryInterviewService, type DiscoveryInterviewSpeaker, type DiscoveryInterviewStatus, type DiscoveryInterviewSynthesisStatus, type DiscoveryInterviewTranscriptTurn, type DispatchMeetingBotRequest, type DisplayOptions, type DomainFilterConfig, ERROR_PORT, type EditContentRequest, type EditContentResponse, type EmailDnsRecord, type EmailDomainStatus, type EmailEngagementQuality, type EmailHealth, type EmailHealthWindow, type EmailIp, type EmailProviderHealth, type EmailProviderStats, type EmailSender, type EmailSenderStatus, type EmailSignature, type EmailSignatureAppliesTo, type EmailSignatureService, type EmailSuppression, type EmailSuppressionCounts, type EmailSuppressionKind, type EmptyPayload, type EndVoiceRequest, type EnrichRequest, type EnrichResponse, type EnrichmentApplied, type EnrichmentApplyLevel, type EnrichmentAttribute, type EnrichmentAttributeProvenance, type EnrichmentAttributeResult, type EnrichmentBlock, type EnrichmentCatalogService, type EnrichmentCitation, EnrichmentClient, type EnrichmentConfidence, type EnrichmentConnection, type EnrichmentConnectionConfig, type EnrichmentConnectionService, type EnrichmentConnectionStatus, type EnrichmentEntry, type EnrichmentItem, type EnrichmentItemStatus, type EnrichmentMapping, type EnrichmentMappingService, type EnrichmentOutcome, type EnrichmentProvenance, type EnrichmentProvider, type EnrichmentProviderOffering, type EnrichmentResultStep, type EnrichmentRun, type EnrichmentRunKind, type EnrichmentRunList, type EnrichmentRunOrigin, type EnrichmentRunResponse, type EnrichmentRunService, type EnrichmentRunStatus, type EnrichmentRunTrigger, type EnrichmentTrigger, type EnrichmentType, type EnrichmentTypesResponse, type EntityIndex, type EntityIndexService, type EntityIndexSource, type EntityIndexState, type EntityIndexType, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EvaluateConversationTagsRequest, type EventLocation, type EventSource, type EventStatus, type EventTransparency, type EventTriggerParams, type EventType, type EventVerb, type EventVisibility, type EventWriteStatus, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, FilterGroup, type FilterMatchOn, type FrequencyCapRuleConfig, FunctionsClient, type GenerateRequest, type GenerationResult, type GetConnectionHealthQuery, type GetExecutionDetailResponse, type GetGraphOptions, type GetManyConversationObjectiveDefinitionsQuery, type GetManyConversationObjectivesQuery, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GetPublicSlotsQuery, type GetSlotsRequest, type GetSlotsResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type HostsRequest, type IndexEvidence, type IndexRecommendation, type InkPoint, type InkStroke, type InlineLinkRequest, type InmailParams, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvitationParams, type InviteDiscoveryInterviewParticipantsRequest, type InvokeActionResponse, type InvokeNodeMethodRequest, type InvokeNodeMethodResponse, type Item, type KickoffSource, type KickoffType, KnowledgeClient, type KnowledgeGraph, type KnowledgeGraphLink, type KnowledgeGraphNode, type KnowledgeLabel, KnowledgeLabelSchema, type KnowledgeLink, KnowledgeLinkSchema, type KnowledgeNode, type KnowledgeNodeLabel, KnowledgeNodeLabelSchema, type KnowledgeNodeMetadata, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, type KnowledgeNodeSearchResult, KnowledgeNodeSearchResultSchema, type KnowledgeRecordLink, KnowledgeRecordLinkSchema, type KnowledgeSpace, type LabelService, type LimitRuleConfig, type LinkService, type LinkType, type ListActionsOptions, type ListAgentListenersQuery, type ListAgentsOptions, type ListAvailabilityConstraintsQuery, type ListCalendarConnectionsQuery, type ListCalendarEventTypesQuery, type ListCalendarEventsQuery, type ListCalendarsQuery, type ListChannelActionsQuery, type ListChannelEventsQuery, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactGroupsQuery, type ListContactMergeProposalsQuery, type ListContactRecordLinksQuery, type ListContactsQuery, type ListConversationBriefsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationNotesQuery, type ListConversationTagDefinitionsQuery, type ListConversationTagEvaluationsQuery, type ListConversationTagSetsQuery, type ListConversationTagsQuery, type ListConversationTypesQuery, type ListConversationsQuery, type ListDiscoveryEvidenceQuery, type ListDiscoveryInterviewDefinitionsQuery, type ListDiscoveryInterviewsQuery, type ListEmailSignaturesQuery, type ListEnrichmentRunsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMeetingBotsQuery, type ListMessageTemplatesQuery, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrgUserRoleAssignmentsOptions, type ListOrganizationsOptions, type ListPermissionEventsResponse, type ListPlatformDiscoveryEvidenceQuery, type ListProfilesOptions, type ListPromptsOptions, type ListQueriesQuery, type ListRecordDraftsQuery, type ListRecordDuplicatesQuery, type ListRecordLinksOptions, type ListRecordsOptions, type ListResearchRunsQuery, type ListResponse$2 as ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSchedulingLinksQuery, type ListSendingLimitPresetsQuery, type ListSendingRulesQuery, type ListSessionsOptions, type ListSignalsQuery, type ListSkillsOptions, type ListSpacesOptions, type ListTeamMembersOptions, type ListTeamsOptions, type ListToneProfileSetupsQuery, type ListToneProfilesQuery, type ListToolsOptions, type ListToolsetsOptions, type ListTranscriptionsQuery, type ListUserProfileAssignmentsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWhiteboardTemplatesOptions, type ListWorkflowsOptions, type LocationKind, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingBot, type MeetingBotService, type MeetingBotStatus, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDelivery, type MessageDeliveryStatus, type MessageDeltaPayload, type MessageDirection, type MessageDraftChange, type MessageDraftVersion, type MessageDraftVersionKind, type MessageDraftVersions, type MessageLayout, type MessagePreview, type MessageRecipient, type MessageService, type MessageSignature, type MessageStatus, type MessageTemplate, type MessageTemplateKind, type MessageTemplateService, type MessageTriggerParams, type MintCallTokenRequest, type MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, type ModelCallParams, type ModelConfig, type ModelInfo, type ModelProviderName, type ModelRequestEndPayload, type ModelRequestStartPayload, type ModelService, type ModelStopReason, type ModelUsage, type NeighborDirection, type NeighborEdge, type NeighborNode, type NeighborsOptions, type NodeContentMatches, type NodeDescriptor, type NodeExecution, type NodeGroup, type NodeMethodOption, type NodeNeighborhood, NodeNeighborhoodSchema, type NodeOutline, type NodePosition, type NodeProperty, type NodeRetryPolicy, type NodeRuntime, type NodeService, type NodeStatus, type NodeType, type NodeTypeKey, type NodeTypeService, type NodeTypeStatus, type NotifyMode, type OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageAction, PageIterator, type PairedItem, type ParseStatus, type ParticipationStatus, type PatchEnrichmentConnectionRequest, type PatchResearchDefinitionRequest, type PatchSignalMonitorRequest, type PatchWaterfallRequest, type PerformChannelActionRequest, type Permission, type PermissionEventSource, type PermissionEventType, type PhoneNumber, type PhoneNumberRouting, type PhoneNumberStatus, type PlatformBinding, type PlatformDiscoveryEvidenceService, type PlatformEntity, type PlatformEvent, type PortSpec, type Profile, ProfileSchema, type ProfileService, type ProfileVisitParams, type Prompt, type PromptService, type PromptVersion, type PropertyOption, type PropertyType, type ProposedValuesQuery, ProteosClient, ProteosError, PublicAccessOperation, type PublicBookSchedulingLinkResponse, type PublicCalendarEvent, type PublicCalendarEventType, type PublicEventLocation, type PublicHost, type PublicSchedulingLink, type PublicSchedulingService, type PublishContactObservationsResponse, type PublishEventRequest, type Purpose, type PutCalendarEventTypeRequest, type PutSchedulingProfileRequest, type PutSignalMappingRequest, type Query, type QueryBinding, type QueryBuilder, type QueryExecuteMeta, type QueryExecuteResponse, type QueryObject, type QueryRow, type QueryService, type QueryValidateMeta, type QueryValidateResponse, type QueryValue, type Reaction, type ReactionCapability, type ReactionOption, type ReactionSetKind, type ReasoningDeltaPayload, type ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordDraft, type RecordDraftChange, type RecordDraftChangeKind, RecordDraftChangeSchema, type RecordDraftCitation, type RecordDraftEvidence, RecordDraftEvidenceSchema, type RecordDraftIntent, type RecordDraftItem, type RecordDraftItemError, type RecordDraftItemInput, type RecordDraftItemResult, RecordDraftItemResultSchema, type RecordDraftItemResultStatus, RecordDraftItemSchema, type RecordDraftItemVerdict, type RecordDraftProposedValue, type RecordDraftReference, type RecordDraftScope, type RecordDraftService, type RecordDraftStatus, type RecordDraftVerdict, type RecordDraftVersion, type RecordDraftVersionKind, type RecordDraftVersions, type RecordDuplicate, type RecordDuplicateService, type RecordDuplicateSource, type RecordDuplicateStatus, type RecordLinkService, type RecordPermissionEventRequest, type RecordRef, type RecordService, type RecurrenceScope, type RedriveResult, type RejectRecordDraftRequest, type RenderMessageTemplateRequest, type RenderedMessageTemplate, type ReplaceEnrichmentMappingRequest, RequestOptions, type RescheduleHost, type ReschedulePublicCalendarEventRequest, type ResearchChildRule, type ResearchCriteria, type ResearchDefinition, type ResearchDefinitionStatus, type ResearchEntityMapping, type ResearchEntityRule, type ResearchEvidence, type ResearchResult, type ResearchResultStatus, type ResearchRun, type ResearchRunList, type ResearchSchedule, type ResearchService, type ResearchSource, type ResearchUpdatePolicy, type ResolveEmailSignatureQuery, type ResolveToneProfileQuery, type RespondCalendarEventRequest, type RespondChannelActionRequest, ResponseMeta$1 as ResponseMeta, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RoutingTarget, type RunWorkflowRequest, SCOPED_PLATFORM_ENTITY_SLUGS, SchedulingClient, type SchedulingLink, type SchedulingLinkService, type ListResponse as SchedulingListResponse, type SchedulingProfile, type SchedulingProfileService, type ScoreAnswer, type ScoreQuestion, type SearchContentRequest, type SearchContentResponse, type SearchNodesRequest, type SendEligibility, type SendEligibilityRequest, type SendMessageRequest, type SendRecipient, type SendingLimitPreset, type SendingPeriod, type SendingRule, type SendingRuleConfig, type SendingRuleService, type SendingRuleType, type Session, type SessionDeltaEntry, type SessionDeltaFrame, type SessionDeltaStreamOptions, type SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionPreview, type SessionPreviewStatus, type SessionRunningPayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionToolKind, type SessionUpdatedPayload, type SetCallRecordingRequest, type SetDefaultSenderRequest, type SetProfileRequest, type SharePermission, type ShareRow, type ShareService, type Signal, type SignalCreateEffect, type SignalEffects, type SignalKind, type SignalList, type SignalMapping, type SignalMonitor, type SignalMonitorConfig, type SignalMonitorKind, type SignalMonitorSchedule, type SignalMonitorStatus, type SignalMonitorSubject, type SignalService, type SignalUpdateEffect, type SignalUpdatePolicy, type SignatureChoice, type Skill, type SkillBundle, type SkillService, type SkillVersion, type Slot, type SlotParameters, type SlotService, type SlotUnavailability, type SlotUnavailabilityReason, type SpaceScope, type SpaceService, type SpeechPayload, type SpeechSegment, type StartDiscoveryInterviewParticipationRequest, type StartMcpOAuthResponse, type StartVoiceRequest, type StartVoiceResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, type StructuredText, type SyncConnectionRequest, type SystemSource, type TailOptions, type Team, type TeamMember, type TeamService, type TestNodeCandidate, type TestNodeInputSource, type TestNodeRequest, type TestNodeResponse, type TextBlock, type ToneProfile, type ToneProfileScope, type ToneProfileService, type ToneProfileSetup, type ToneProfileSetupStatus, type ToneProfileSource, type Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUseDeltaPayload, type ToolUsePayload, type ToolUseStartPayload, type Toolset, type ToolsetKind, type ToolsetService, type ToolsetToolSummary, type Topic, type TopicKind, type TopicService, type TranscribeStreamOptions, type TranscriptResult, type TranscriptTurn, type Transcription, type TranscriptionReviewStatus, type TranscriptionStatus, type TransferVoiceRequest, type TransferVoiceResponse, type TriggerKind, type Turn, type TwilioPhoneSettings, type TwilioPhoneVoicemailSettings, UNASSIGNED_SPACE_SLUG, UNSUBSCRIBE_URL_PLACEHOLDER, type UnreadCounts, type UnreadCountsQuery, type UnsubscribeChoice, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateAvailabilityConstraintRequest, type UpdateCalendarConnectionRequest, type UpdateCalendarEventRequest, type UpdateCalendarEventTypeRequest, type UpdateCalendarRequest, type UpdateCalendarSyncRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactGroupRequest, type UpdateContactRequest, type UpdateConversationBriefRequest, type UpdateConversationFilterRequest, type UpdateConversationNoteRequest, type UpdateConversationObjectiveDefinitionRequest, type UpdateConversationRequest, type UpdateConversationTagDefinitionRequest, type UpdateConversationTagRequest, type UpdateConversationTagSetRequest, type UpdateConversationTypeRequest, type UpdateDiscoveryEvidenceFrameRequest, type UpdateDiscoveryEvidenceRequest, type UpdateDiscoveryEvidenceStatusRequest, type UpdateDiscoveryInterviewDefinitionRequest, type UpdateDraftRequest, type UpdateEmailSignatureRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateMeRequest, type UpdateMessageTemplateRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePhoneNumberRequest, type UpdateProfileRequest, type UpdatePromptRequest, type UpdateQueryRequest, type UpdateRecordDraftRequest, type UpdateRoleRequest, type UpdateSchedulingLinkRequest, type UpdateSendingRuleRequest, type UpdateSpaceRequest, type UpdateTeamRequest, type UpdateToolRequest, type UpdateToolsetRequest, type UpdateUserRequest, type UpdateWhiteboardTemplateRequest, type UpdateWorkflowRequest, type UpsertToneProfileRequest, type User, type UserMessagePayload, type UserProfileAssignment, UserProfileAssignmentSchema, type UserProfileAssignmentService, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, type UserRoleAssignmentService, UserSchema, type UserService, type VoiceEndReason, type VoiceEndedPayload, type VoiceRequestPayload, type VoiceService, type VoiceSession, type VoiceStartedPayload, type VoiceTranscriptionStream, type WarmupRuleConfig, type Waterfall, type WaterfallService, type WaterfallStatus, type WaterfallStep, type WaterfallStepKind, type WaterfallStopCondition, type WaterfallValidation, type WebhookTriggerParams, type Weekday, type WhiteboardTemplate, type WhiteboardTemplateMetadata, type WhiteboardTemplateService, type WindowDay, type WindowRuleConfig, type Workflow, WorkflowClient, type WorkflowConnection, type WorkflowExecution, type WorkflowGraph, type WorkflowNode, type WorkflowNodeType, type WorkflowStatus, type WorkflowVersion, type WorkflowVersionAuthor, type WorkflowVersionSummary, type WriteContentOptions, type WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isDeltaFrame, isForbidden, isNotFound, isPlatformEntity, isProteosError, isRecordDraftReference, isShareable, isUnauthorized, parseErrorResponse, shareRouteFor, toQueryParams, toQueryString };