@proteos/sdk 0.93.0 → 0.94.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts 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.js';
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.js';
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.js';
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.js';
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
  }
@@ -6182,6 +6184,12 @@ interface RecordPermissionEventRequest {
6182
6184
  occurred_at?: string;
6183
6185
  note?: string;
6184
6186
  evidence?: Record<string, unknown>;
6187
+ /**
6188
+ * A key for the fact this event records (a sync's id for one upstream
6189
+ * status). When the org already has an event with this key, nothing is
6190
+ * recorded and the contact comes back unchanged.
6191
+ */
6192
+ external_ref?: string;
6185
6193
  }
6186
6194
  interface BlockContactRequest {
6187
6195
  contact_address_id?: string;
@@ -8219,8 +8227,11 @@ type RecordDraftIntent = 'create' | 'update' | 'delete' | 'upsert';
8219
8227
  /** The review lifecycle: `proposed` awaits a verdict; `approved` was applied
8220
8228
  * exactly as proposed; `approved_with_changes` was edited, then applied
8221
8229
  * (`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. */
8230
+ * The last three are terminal. The status is DERIVED by the server from the
8231
+ * per-item `verdicts` and `changes` — a resolver never names the outcome: a
8232
+ * draft stays `proposed` until every item has a verdict; then all accepted ⇒
8233
+ * `approved`, all rejected ⇒ `rejected`, anything else ⇒
8234
+ * `approved_with_changes`. */
8224
8235
  type RecordDraftStatus = 'proposed' | 'approved' | 'approved_with_changes' | 'rejected';
8225
8236
  /**
8226
8237
  * ONE proposed write, keyed like a batch transaction. Shape per intent —
@@ -8228,11 +8239,87 @@ type RecordDraftStatus = 'proposed' | 'approved' | 'approved_with_changes' | 're
8228
8239
  * upsert: `data`, `id` optional (present ⇒ update, absent ⇒ create). `id` never
8229
8240
  * rides inside `data`. Update/upsert `data` is a partial merge (only the keys
8230
8241
  * present change).
8242
+ *
8243
+ * `entity_slug` is the entity this item writes; absent = the draft's own. A
8244
+ * relation attribute in `data` can point at ANOTHER ITEM of the draft instead
8245
+ * of a record id — `{ transaction_id: '1' }` ({@link RecordDraftReference}) —
8246
+ * and is resolved to that item's record id on approve, parents first.
8247
+ * `evidence` says where a proposed value came from, per attribute of `data`.
8231
8248
  */
8232
8249
  interface RecordDraftItem {
8233
8250
  transaction_id: string;
8251
+ entity_slug?: string;
8234
8252
  id?: string;
8235
8253
  data?: Record<string, unknown>;
8254
+ evidence?: Record<string, RecordDraftEvidence>;
8255
+ }
8256
+ /** A relation value pointing at another item of the same draft. */
8257
+ interface RecordDraftReference {
8258
+ transaction_id: string;
8259
+ }
8260
+ /** Whether a proposed value is a {@link RecordDraftReference}: an object
8261
+ * whose only key is a string `transaction_id`. */
8262
+ declare function isRecordDraftReference(value: unknown): value is RecordDraftReference;
8263
+ /** One source behind a proposed value. */
8264
+ interface RecordDraftCitation {
8265
+ title?: string;
8266
+ url?: string;
8267
+ snippet?: string;
8268
+ }
8269
+ /** Why the proposer believes ONE proposed value: a short label, how sure it
8270
+ * is (0..1) and the sources. All optional. */
8271
+ interface RecordDraftEvidence {
8272
+ label?: string;
8273
+ confidence?: number;
8274
+ citations?: RecordDraftCitation[];
8275
+ }
8276
+ /** A reviewer's decision on an item or on one attribute of it. `edited` (items
8277
+ * only): written, but not exactly as proposed. */
8278
+ type RecordDraftVerdict = 'accepted' | 'edited' | 'rejected';
8279
+ /** What has been decided about ONE item so far. `verdict` is set once the
8280
+ * whole item is decided; while only some attributes are, it is absent and
8281
+ * `attributes` names them. */
8282
+ interface RecordDraftItemVerdict {
8283
+ transaction_id: string;
8284
+ verdict?: RecordDraftVerdict;
8285
+ attributes?: Record<string, Exclude<RecordDraftVerdict, 'edited'>>;
8286
+ }
8287
+ /** Narrows an approve or a reject to part of a draft: `transaction_ids` picks
8288
+ * the items (absent = every undecided item), `attributes` the attributes of
8289
+ * those items (absent = all). An item that would create a record is decided
8290
+ * whole — naming it together with attributes fails with 400
8291
+ * `record_draft_scope_invalid`. */
8292
+ interface RecordDraftScope {
8293
+ transaction_ids?: string[];
8294
+ attributes?: string[];
8295
+ }
8296
+ /**
8297
+ * ONE value a proposed draft would write, next to what the record holds now —
8298
+ * the flat read model behind the suggestions overlay. `record_id` is absent
8299
+ * for a value of a record the draft would create. Only undecided values of
8300
+ * proposed drafts appear, never an attribute the reader may not read.
8301
+ */
8302
+ interface RecordDraftProposedValue {
8303
+ record_id?: string;
8304
+ attribute: string;
8305
+ current: unknown;
8306
+ proposed: unknown;
8307
+ evidence?: RecordDraftEvidence;
8308
+ record_draft_id: string;
8309
+ transaction_id: string;
8310
+ created_at: string;
8311
+ /**
8312
+ * The draft's `updated_at` when the value was read. Pass it as
8313
+ * `expected_updated_at` when approving or rejecting this value: a draft
8314
+ * revised since is refused (409 `record_draft_conflict`) instead of deciding
8315
+ * a value nobody saw.
8316
+ */
8317
+ record_draft_updated_at: string;
8318
+ }
8319
+ interface ProposedValuesQuery {
8320
+ entity_slug: string;
8321
+ /** At most 200. Values of records a draft would create are returned either way. */
8322
+ record_ids?: string[];
8236
8323
  }
8237
8324
  type RecordDraftItemResultStatus = 'success' | 'error';
8238
8325
  /** The same facts the single-record endpoint would have answered with. */
@@ -8277,15 +8364,19 @@ interface RecordDraftChange {
8277
8364
  * message. `items` is the draft as it stands now: the proposal, as revised by
8278
8365
  * its proposer and edited by reviewers while proposed (each save is a
8279
8366
  * {@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
8367
+ * `applied_items` what approves have sent so far; `results` the latest outcome
8368
+ * per transaction_id; `verdicts` what has been decided, per item and — for a
8369
+ * scoped approve or reject — per attribute (an approve only sends what is
8370
+ * undecided, so a re-approve never repeats a write); `changes` the reviewer's
8371
+ * delta. `entity_slug` is the entity of every item that names none,
8372
+ * `entity_slugs` every entity the items write. `source` is caller-supplied
8283
8373
  * provenance (`agent_key`, `session_id`, …); `created_by` is the acting user.
8284
8374
  */
8285
8375
  interface RecordDraft {
8286
8376
  id: string;
8287
8377
  org_id: string;
8288
8378
  entity_slug: string;
8379
+ entity_slugs: string[];
8289
8380
  intent: RecordDraftIntent;
8290
8381
  status: RecordDraftStatus;
8291
8382
  summary: string;
@@ -8294,6 +8385,7 @@ interface RecordDraft {
8294
8385
  applied_items?: RecordDraftItem[];
8295
8386
  results?: RecordDraftItemResult[];
8296
8387
  changes?: RecordDraftChange[];
8388
+ verdicts?: RecordDraftItemVerdict[];
8297
8389
  source?: Record<string, unknown>;
8298
8390
  reason?: string;
8299
8391
  resolved_by?: {
@@ -8316,7 +8408,9 @@ interface RecordDraft {
8316
8408
  applying_since?: string;
8317
8409
  }
8318
8410
  interface CreateRecordDraftRequest {
8319
- entity_slug: string;
8411
+ /** The entity of every item that names none. May be left out when every
8412
+ * item carries its own `entity_slug`. */
8413
+ entity_slug?: string;
8320
8414
  intent: RecordDraftIntent;
8321
8415
  /** 1..200 items; a missing `transaction_id` becomes the 1-based index. */
8322
8416
  items: RecordDraftItem[];
@@ -8330,8 +8424,9 @@ type RecordDraftItemInput = Omit<RecordDraftItem, 'transaction_id'> & {
8330
8424
  transaction_id?: string;
8331
8425
  };
8332
8426
  /** `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 {
8427
+ * first as the reviewer's edit, then apply them. `transaction_ids` /
8428
+ * `attributes` apply only that part; the rest stays proposed. */
8429
+ interface ApproveRecordDraftRequest extends RecordDraftScope {
8335
8430
  items?: RecordDraftItemInput[];
8336
8431
  /** The `updated_at` the reviewer last saw: a draft that moved on since fails
8337
8432
  * with 409 `record_draft_conflict` instead of applying what they never saw. */
@@ -8386,10 +8481,16 @@ interface RecordDraftVersions {
8386
8481
  data: RecordDraftVersion[];
8387
8482
  changes: RecordDraftChange[];
8388
8483
  }
8389
- interface RejectRecordDraftRequest {
8484
+ /** `transaction_ids` / `attributes` decline only that part; without either
8485
+ * everything still undecided is declined. */
8486
+ interface RejectRecordDraftRequest extends RecordDraftScope {
8390
8487
  reason?: string;
8488
+ /** The `updated_at` the reviewer last saw: a draft that moved on since fails
8489
+ * with 409 `record_draft_conflict` instead of declining what they never saw. */
8490
+ expected_updated_at?: string;
8391
8491
  }
8392
8492
  interface ListRecordDraftsQuery {
8493
+ /** Drafts holding an item of this entity. */
8393
8494
  entity_slug?: string;
8394
8495
  /** Defaults to `proposed` on the server. */
8395
8496
  status?: RecordDraftStatus;
@@ -8399,18 +8500,105 @@ interface ListRecordDraftsQuery {
8399
8500
  page?: number;
8400
8501
  page_size?: number;
8401
8502
  }
8503
+ declare const RecordDraftEvidenceSchema: z.ZodObject<{
8504
+ label: z.ZodOptional<z.ZodString>;
8505
+ confidence: z.ZodOptional<z.ZodNumber>;
8506
+ citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
8507
+ title: z.ZodOptional<z.ZodString>;
8508
+ url: z.ZodOptional<z.ZodString>;
8509
+ snippet: z.ZodOptional<z.ZodString>;
8510
+ }, "strip", z.ZodTypeAny, {
8511
+ title?: string | undefined;
8512
+ url?: string | undefined;
8513
+ snippet?: string | undefined;
8514
+ }, {
8515
+ title?: string | undefined;
8516
+ url?: string | undefined;
8517
+ snippet?: string | undefined;
8518
+ }>, "many">>;
8519
+ }, "strip", z.ZodTypeAny, {
8520
+ label?: string | undefined;
8521
+ confidence?: number | undefined;
8522
+ citations?: {
8523
+ title?: string | undefined;
8524
+ url?: string | undefined;
8525
+ snippet?: string | undefined;
8526
+ }[] | undefined;
8527
+ }, {
8528
+ label?: string | undefined;
8529
+ confidence?: number | undefined;
8530
+ citations?: {
8531
+ title?: string | undefined;
8532
+ url?: string | undefined;
8533
+ snippet?: string | undefined;
8534
+ }[] | undefined;
8535
+ }>;
8402
8536
  declare const RecordDraftItemSchema: z.ZodObject<{
8403
8537
  transaction_id: z.ZodString;
8538
+ entity_slug: z.ZodOptional<z.ZodString>;
8404
8539
  id: z.ZodOptional<z.ZodString>;
8405
8540
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8541
+ evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8542
+ label: z.ZodOptional<z.ZodString>;
8543
+ confidence: z.ZodOptional<z.ZodNumber>;
8544
+ citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
8545
+ title: z.ZodOptional<z.ZodString>;
8546
+ url: z.ZodOptional<z.ZodString>;
8547
+ snippet: z.ZodOptional<z.ZodString>;
8548
+ }, "strip", z.ZodTypeAny, {
8549
+ title?: string | undefined;
8550
+ url?: string | undefined;
8551
+ snippet?: string | undefined;
8552
+ }, {
8553
+ title?: string | undefined;
8554
+ url?: string | undefined;
8555
+ snippet?: string | undefined;
8556
+ }>, "many">>;
8557
+ }, "strip", z.ZodTypeAny, {
8558
+ label?: string | undefined;
8559
+ confidence?: number | undefined;
8560
+ citations?: {
8561
+ title?: string | undefined;
8562
+ url?: string | undefined;
8563
+ snippet?: string | undefined;
8564
+ }[] | undefined;
8565
+ }, {
8566
+ label?: string | undefined;
8567
+ confidence?: number | undefined;
8568
+ citations?: {
8569
+ title?: string | undefined;
8570
+ url?: string | undefined;
8571
+ snippet?: string | undefined;
8572
+ }[] | undefined;
8573
+ }>>>;
8406
8574
  }, "strip", z.ZodTypeAny, {
8407
8575
  transaction_id: string;
8408
8576
  data?: Record<string, unknown> | undefined;
8409
8577
  id?: string | undefined;
8578
+ entity_slug?: string | undefined;
8579
+ evidence?: Record<string, {
8580
+ label?: string | undefined;
8581
+ confidence?: number | undefined;
8582
+ citations?: {
8583
+ title?: string | undefined;
8584
+ url?: string | undefined;
8585
+ snippet?: string | undefined;
8586
+ }[] | undefined;
8587
+ }> | undefined;
8410
8588
  }, {
8411
8589
  transaction_id: string;
8412
8590
  data?: Record<string, unknown> | undefined;
8413
8591
  id?: string | undefined;
8592
+ entity_slug?: string | undefined;
8593
+ evidence?: Record<string, {
8594
+ label?: string | undefined;
8595
+ confidence?: number | undefined;
8596
+ citations?: {
8597
+ title?: string | undefined;
8598
+ url?: string | undefined;
8599
+ snippet?: string | undefined;
8600
+ }[] | undefined;
8601
+ }> | undefined;
8414
8602
  }>;
8415
8603
  declare const RecordDraftItemResultSchema: z.ZodObject<{
8416
8604
  transaction_id: z.ZodString;
@@ -8651,8 +8839,10 @@ interface QueryService {
8651
8839
  /**
8652
8840
  * Proposed record writes awaiting a verdict. `create` needs
8653
8841
  * `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.
8842
+ * upsert) or `delete` (delete) on every entity whose items are applied,
8843
+ * because the writes run as the caller. A draft can hold items of several
8844
+ * entities that reference each other by `transaction_id`. The status is
8845
+ * derived server-side from the per-item verdicts.
8656
8846
  */
8657
8847
  interface RecordDraftService {
8658
8848
  /** The org's drafts — `proposed` by default. */
@@ -8670,14 +8860,27 @@ interface RecordDraftService {
8670
8860
  listVersions(id: string): Promise<RecordDraftVersions>;
8671
8861
  /**
8672
8862
  * 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.
8863
+ * `items` = the reviewer's edit, saved first. `transaction_ids` /
8864
+ * `attributes` apply only that part (plus the not-yet-written items it
8865
+ * references). Always 200 with the draft: `status` is terminal once every
8866
+ * item has a verdict, else still `proposed` with `verdicts` (what is
8867
+ * decided) and per-item `results` (what failed, to fix and re-approve). 409
8868
+ * `record_draft_not_proposed` once resolved, `record_draft_already_decided`
8869
+ * when the scope holds nothing undecided.
8677
8870
  */
8678
8871
  approve(id: string, request?: ApproveRecordDraftRequest): Promise<RecordDraft>;
8679
- /** Never applies the draft. 409 `record_draft_not_proposed` once resolved. */
8872
+ /**
8873
+ * Declines the draft, or the part `transaction_ids` / `attributes` name —
8874
+ * nothing is written. 409 `record_draft_not_proposed` once resolved.
8875
+ */
8680
8876
  reject(id: string, request?: RejectRecordDraftRequest): Promise<RecordDraft>;
8877
+ /**
8878
+ * What proposed drafts would still write to records of one entity, one row
8879
+ * per value, with the record's current value and the proposer's evidence.
8880
+ * Needs `read` on the entity; records and attributes the caller may not
8881
+ * read are left out.
8882
+ */
8883
+ proposedValues(query: ProposedValuesQuery): Promise<RecordDraftProposedValue[]>;
8681
8884
  }
8682
8885
 
8683
8886
  /**
@@ -9365,6 +9568,907 @@ interface DiscoveryInterviewService {
9365
9568
  getParticipation(id: string): Promise<DiscoveryInterviewParticipation>;
9366
9569
  }
9367
9570
 
9571
+ /**
9572
+ * enrichment-service types — filling attributes from providers (LeadMagic,
9573
+ * Icypeas, Exa, …) through waterfalls. Mirror of the wire shapes of
9574
+ * services/enrichment-service, which keeps its model to itself.
9575
+ */
9576
+ /** How an attribute, or one provider call, ended. */
9577
+ type EnrichmentOutcome = 'pending' | 'hit' | 'miss' | 'error' | 'skipped';
9578
+ /** The trust in a returned value. */
9579
+ type EnrichmentConfidence = 'high' | 'medium' | 'low';
9580
+ /** What a run over records did with a value it found. */
9581
+ type EnrichmentApplied = 'filled' | 'suggested' | 'unchanged' | 'previously_rejected';
9582
+ type EnrichmentRunKind = 'single' | 'batch';
9583
+ type EnrichmentRunStatus = 'running' | 'completed' | 'failed' | 'cancelled';
9584
+ type EnrichmentItemStatus = 'pending' | 'running' | 'waiting' | 'completed' | 'failed' | 'cancelled';
9585
+ /** What starts an enrichment by itself. A manual start always works. */
9586
+ type EnrichmentTrigger = 'on_create' | 'on_update' | 'on_schedule';
9587
+ /**
9588
+ * What happens to a value that was found: `suggest` proposes it in a record
9589
+ * draft, `fill_empty` writes it when the attribute is empty, `fill` writes it
9590
+ * over what is there. A value below `fill_min_confidence` is suggested.
9591
+ */
9592
+ type EnrichmentApplyLevel = 'suggest' | 'fill_empty' | 'fill';
9593
+ /**
9594
+ * `provider` and `web` steps name a provider that runs on a platform key. A
9595
+ * `connection` step names an enrichment connection instead: it runs on the
9596
+ * org's own account (its Clay).
9597
+ */
9598
+ type WaterfallStepKind = 'provider' | 'web' | 'connection';
9599
+ type WaterfallStopCondition = 'first_hit' | 'first_validated_hit';
9600
+ type WaterfallStatus = 'active' | 'inactive';
9601
+ /** A value to fill, defined inline in a request. */
9602
+ interface EnrichmentAttribute {
9603
+ name: string;
9604
+ type: AttributeType;
9605
+ description?: string;
9606
+ meta?: unknown;
9607
+ /**
9608
+ * The vendor meaning (`work_email`, …); `path` picks one property when the
9609
+ * type returns an object. Without them the attribute is researched on the
9610
+ * web from its name, type and description.
9611
+ */
9612
+ enrichment_type?: string;
9613
+ path?: string;
9614
+ /** Pins a waterfall, ahead of every default. */
9615
+ waterfall_id?: string;
9616
+ }
9617
+ /**
9618
+ * Body of `POST /enrich`. The subject is described by `input`, or by a record
9619
+ * (`entity_slug` and `record_id`) whose values are read through the entity's
9620
+ * enrichment mapping. An entry of `attributes` is the name of a mapped target
9621
+ * of the entity (a string) or an inline definition. Without `attributes`,
9622
+ * every mapped target of `entity_slug` is filled.
9623
+ */
9624
+ interface EnrichRequest {
9625
+ input?: Record<string, string>;
9626
+ entity_slug?: string;
9627
+ record_id?: string;
9628
+ attributes?: Array<string | EnrichmentAttribute>;
9629
+ }
9630
+ /** One source of a value a web step found. */
9631
+ interface EnrichmentCitation {
9632
+ url: string;
9633
+ title?: string;
9634
+ }
9635
+ /** Identifies a waterfall step. */
9636
+ interface EnrichmentResultStep {
9637
+ kind: WaterfallStepKind;
9638
+ provider: string;
9639
+ source: string;
9640
+ waterfall_id: string;
9641
+ step_index: number;
9642
+ }
9643
+ /** What was found for one attribute. */
9644
+ interface EnrichmentAttributeResult {
9645
+ value: unknown;
9646
+ outcome: EnrichmentOutcome;
9647
+ /** The value came from a call another attribute of the same item already made. */
9648
+ is_reused?: boolean;
9649
+ confidence?: EnrichmentConfidence;
9650
+ /** Set by a run over records for a value it found. */
9651
+ applied?: EnrichmentApplied;
9652
+ citations?: EnrichmentCitation[];
9653
+ /** The step that answered, or the last one tried. */
9654
+ step?: EnrichmentResultStep;
9655
+ enrichment_attempt_id?: string;
9656
+ /** Why the attribute has no value when its outcome is `error` or `skipped`. */
9657
+ error_code?: string;
9658
+ }
9659
+ /** The values `POST /enrich` found. Nothing is written to a record. */
9660
+ interface EnrichResponse {
9661
+ enrichment_run_id: string;
9662
+ enrichment_item_id: string;
9663
+ status: EnrichmentItemStatus;
9664
+ results: Record<string, EnrichmentAttributeResult>;
9665
+ }
9666
+ /**
9667
+ * Body of `POST /enrichment-runs`: the records of one entity to enrich as its
9668
+ * mapping defines, listed in `record_ids` or selected by `records_query`,
9669
+ * never both.
9670
+ */
9671
+ interface CreateEnrichmentRunRequest {
9672
+ entity_slug: string;
9673
+ record_ids?: string[];
9674
+ /** A filter group in the platform's own dialect, the one data-service takes as `_filter`. */
9675
+ records_query?: {
9676
+ filter: FilterGroup;
9677
+ };
9678
+ /** The mapped targets to fill; without it, all of them. */
9679
+ attributes?: string[];
9680
+ /** How long (0–30) the request waits for the run to finish. */
9681
+ wait_seconds?: number;
9682
+ }
9683
+ interface EnrichmentRunResponse {
9684
+ enrichment_run_id: string;
9685
+ status: EnrichmentRunStatus;
9686
+ record_draft_ids: string[];
9687
+ item_count: number;
9688
+ completed_count: number;
9689
+ }
9690
+ /** What started a run that no person started. */
9691
+ interface EnrichmentRunOrigin {
9692
+ record_event_id?: string;
9693
+ /** The refresh schedule started the run. */
9694
+ is_scheduled_refresh?: boolean;
9695
+ /** The research run that fills a row it found. */
9696
+ research_run_id?: string;
9697
+ }
9698
+ /**
9699
+ * Why a run started: a request (`manual`, or `workflow` for one a workflow
9700
+ * made), a trigger of the entity's enrichment mapping (`on_create`,
9701
+ * `on_update`, `on_schedule`), or a research run that fills what it found.
9702
+ */
9703
+ type EnrichmentRunTrigger = 'manual' | 'on_create' | 'on_update' | 'on_schedule' | 'workflow' | 'research' | 'signal';
9704
+ /** One enrichment request as stored. */
9705
+ interface EnrichmentRun {
9706
+ id: string;
9707
+ org_id: string;
9708
+ kind: EnrichmentRunKind;
9709
+ status: EnrichmentRunStatus;
9710
+ entity_slug?: string;
9711
+ attributes?: string[];
9712
+ /** The snapshot of what the run fills and how, as the service stored it. */
9713
+ resolved_attributes?: unknown;
9714
+ origin?: EnrichmentRunOrigin;
9715
+ trigger: EnrichmentRunTrigger;
9716
+ record_draft_ids?: string[];
9717
+ item_count: number;
9718
+ completed_count: number;
9719
+ created_at: string;
9720
+ created_by: UserRef$2;
9721
+ updated_at: string;
9722
+ updated_by: UserRef$2;
9723
+ }
9724
+ /** Filters and paging of `GET /enrichment-runs`. Pages are counted from 0. */
9725
+ interface ListEnrichmentRunsQuery {
9726
+ /** `single` is an ad-hoc `enrich` call, `batch` a run over records. */
9727
+ kind?: EnrichmentRunKind;
9728
+ status?: EnrichmentRunStatus;
9729
+ entity_slug?: string;
9730
+ page?: number;
9731
+ /** 25 by default, 100 at most. */
9732
+ page_size?: number;
9733
+ }
9734
+ /** One page of an org's runs, newest first. The runs come without `resolved_attributes`. */
9735
+ type EnrichmentRunList = ListResult<EnrichmentRun>;
9736
+ /** One record of a run, with what was found for it. */
9737
+ interface EnrichmentItem {
9738
+ id: string;
9739
+ org_id: string;
9740
+ enrichment_run_id: string;
9741
+ record_id?: string;
9742
+ record_draft_id?: string;
9743
+ transaction_id?: string;
9744
+ input: Record<string, string>;
9745
+ status: EnrichmentItemStatus;
9746
+ results: Record<string, EnrichmentAttributeResult>;
9747
+ error?: string;
9748
+ waiting_since?: string;
9749
+ created_at: string;
9750
+ updated_at: string;
9751
+ }
9752
+ /** Where one value of a record came from. */
9753
+ interface EnrichmentAttributeProvenance {
9754
+ value: unknown;
9755
+ /** How the value reached the record: the run wrote it, or a reviewer accepted it in `record_draft_id`. */
9756
+ applied: 'filled' | 'suggested';
9757
+ confidence?: EnrichmentConfidence;
9758
+ citations?: EnrichmentCitation[];
9759
+ /** The waterfall step that answered. */
9760
+ step?: EnrichmentResultStep;
9761
+ enrichment_run_id: string;
9762
+ enrichment_item_id: string;
9763
+ enrichment_attempt_id?: string;
9764
+ record_draft_id?: string;
9765
+ /** When the run found the value. */
9766
+ enriched_at: string;
9767
+ }
9768
+ /**
9769
+ * Answer of `GET /provenance`: per attribute of one record, the enrichment
9770
+ * its current value came from. An attribute whose value no enrichment put
9771
+ * there, or that someone changed since, is not listed.
9772
+ */
9773
+ interface EnrichmentProvenance {
9774
+ entity_slug: string;
9775
+ record_id: string;
9776
+ provenance: Record<string, EnrichmentAttributeProvenance>;
9777
+ }
9778
+ /**
9779
+ * What one attribute does in enrichment: a target (a value to fill), an input
9780
+ * (a value providers are called with), or both. On a relation it names the
9781
+ * inputs the related record lends.
9782
+ */
9783
+ interface EnrichmentBlock {
9784
+ enrichment_type?: string;
9785
+ path?: string;
9786
+ waterfall_id?: string;
9787
+ triggers?: EnrichmentTrigger[];
9788
+ /** Set by the service; a caller's value is ignored. */
9789
+ triggers_since?: Partial<Record<EnrichmentTrigger, string>>;
9790
+ /** The attributes whose change starts `on_update`. */
9791
+ when_changed?: string[];
9792
+ refresh_every_days?: number;
9793
+ apply?: EnrichmentApplyLevel;
9794
+ fill_min_confidence?: EnrichmentConfidence;
9795
+ /** How long a value is not enriched, or paid for, again. */
9796
+ max_age_days?: number;
9797
+ /** The input key the attribute's value provides. */
9798
+ input?: string;
9799
+ /** The company input keys the related record lends. */
9800
+ inputs_from_related?: string[];
9801
+ /** Set by the service; a caller's value is ignored. */
9802
+ related_entity_slug?: string;
9803
+ }
9804
+ /** One attribute's block as the API shows it. */
9805
+ interface EnrichmentEntry extends EnrichmentBlock {
9806
+ /** The entity's schema no longer backs the entry. Read-only. */
9807
+ orphaned?: boolean;
9808
+ }
9809
+ /** An entity's enrichment mapping. */
9810
+ interface EnrichmentMapping {
9811
+ id: string;
9812
+ org_id: string;
9813
+ entity_slug: string;
9814
+ module_slug: string;
9815
+ enrichment: Record<string, EnrichmentEntry>;
9816
+ created_at: string;
9817
+ created_by: UserRef$2;
9818
+ updated_at: string;
9819
+ updated_by: UserRef$2;
9820
+ }
9821
+ /**
9822
+ * Replaces an entity's whole mapping. `updated_at` is the `updated_at` of the
9823
+ * mapping that was read: left out for an entity without a mapping, and
9824
+ * matching the stored one otherwise (else 409).
9825
+ */
9826
+ interface ReplaceEnrichmentMappingRequest {
9827
+ enrichment: Record<string, EnrichmentEntry>;
9828
+ updated_at?: string;
9829
+ }
9830
+ interface WaterfallStep {
9831
+ kind: WaterfallStepKind;
9832
+ provider?: string;
9833
+ /** The enrichment connection of a `connection` step. */
9834
+ enrichment_connection_id?: string;
9835
+ }
9836
+ /** Checks every hit through the default waterfall of another enrichment type. */
9837
+ interface WaterfallValidation {
9838
+ enrichment_type: string;
9839
+ }
9840
+ /**
9841
+ * The ordered steps that fill one enrichment type or one entity attribute.
9842
+ * `org_id` `''` marks a platform default, which is read-only.
9843
+ */
9844
+ interface Waterfall {
9845
+ id: string;
9846
+ org_id: string;
9847
+ name: string;
9848
+ enrichment_type?: string;
9849
+ entity_slug?: string;
9850
+ attribute?: string;
9851
+ steps: WaterfallStep[];
9852
+ validation?: WaterfallValidation;
9853
+ stop_condition: WaterfallStopCondition;
9854
+ is_default: boolean;
9855
+ status: WaterfallStatus;
9856
+ created_at: string;
9857
+ created_by: UserRef$2;
9858
+ updated_at: string;
9859
+ updated_by: UserRef$2;
9860
+ }
9861
+ interface CreateWaterfallRequest {
9862
+ name: string;
9863
+ enrichment_type?: string;
9864
+ entity_slug?: string;
9865
+ attribute?: string;
9866
+ steps: WaterfallStep[];
9867
+ validation?: WaterfallValidation;
9868
+ /** `first_hit` when left out. */
9869
+ stop_condition?: WaterfallStopCondition;
9870
+ is_default?: boolean;
9871
+ }
9872
+ /** Changes the members it names. `validation: null` takes the validation away. */
9873
+ interface PatchWaterfallRequest {
9874
+ name?: string;
9875
+ steps?: WaterfallStep[];
9876
+ validation?: WaterfallValidation | null;
9877
+ stop_condition?: WaterfallStopCondition;
9878
+ is_default?: boolean;
9879
+ status?: WaterfallStatus;
9880
+ }
9881
+ /** One thing that can be asked for. */
9882
+ interface EnrichmentType {
9883
+ key: string;
9884
+ /** The sets of input keys any one of which is enough. */
9885
+ input_schema: string[][];
9886
+ output_schema: {
9887
+ type: string;
9888
+ paths?: Array<{
9889
+ name: string;
9890
+ type: string;
9891
+ }>;
9892
+ };
9893
+ }
9894
+ /** The catalog of enrichment types, with the input keys an entity's attributes can provide. */
9895
+ interface EnrichmentTypesResponse {
9896
+ data: EnrichmentType[];
9897
+ input_keys: string[];
9898
+ }
9899
+ /** One enrichment type a provider supplies. */
9900
+ interface EnrichmentProviderOffering {
9901
+ enrichment_type: string;
9902
+ required_inputs: string[][];
9903
+ paths?: string[];
9904
+ charge_policy: 'per_call' | 'per_hit';
9905
+ is_async: boolean;
9906
+ }
9907
+ /** One vendor of the catalog. It carries no credentials and no costs. */
9908
+ interface EnrichmentProvider {
9909
+ key: string;
9910
+ title: string;
9911
+ logo_url: string;
9912
+ offerings: EnrichmentProviderOffering[];
9913
+ /** Set on a provider that can research attributes on the web. */
9914
+ web?: EnrichmentProviderOffering;
9915
+ /**
9916
+ * Set on a provider that runs on the org's own connection of that
9917
+ * connector, through an enrichment connection. Such a provider lists no
9918
+ * offerings: what it supplies is up to the routine each enrichment
9919
+ * connection names.
9920
+ */
9921
+ connector_key?: string;
9922
+ }
9923
+ /** The service sets `error` when the connection's credential stopped working; setting `active` tries it again. */
9924
+ type EnrichmentConnectionStatus = 'active' | 'inactive' | 'error';
9925
+ /** Which routine to run and how its inputs and results line up with what a waterfall works with. */
9926
+ interface EnrichmentConnectionConfig {
9927
+ routine_id: string;
9928
+ /** The routine's input per input key: `{ company_domain: 'domain' }`. The step needs every key it lists. */
9929
+ input_mapping: Record<string, string>;
9930
+ /**
9931
+ * Where in the routine's result each part of the enrichment type's output
9932
+ * is found, as a dotted path: `{ value: 'email' }` for a type with a single
9933
+ * value, or `{ title: 'job.title' }` by output path for a profile.
9934
+ */
9935
+ output_mapping: Record<string, string>;
9936
+ }
9937
+ /**
9938
+ * An org's binding to one of its connector-service connections (its own Clay
9939
+ * key) and to the routine a waterfall's `connection` step runs. The
9940
+ * credential stays in connector-service.
9941
+ */
9942
+ interface EnrichmentConnection {
9943
+ id: string;
9944
+ org_id: string;
9945
+ name: string;
9946
+ connection_id: string;
9947
+ connector_key: string;
9948
+ config: EnrichmentConnectionConfig;
9949
+ status: EnrichmentConnectionStatus;
9950
+ status_detail?: string;
9951
+ created_at: string;
9952
+ created_by: UserRef$2;
9953
+ updated_at: string;
9954
+ updated_by: UserRef$2;
9955
+ }
9956
+ interface CreateEnrichmentConnectionRequest {
9957
+ name: string;
9958
+ connection_id: string;
9959
+ config: EnrichmentConnectionConfig;
9960
+ }
9961
+ /** Changes the members it names. `status` takes `active` or `inactive`. */
9962
+ interface PatchEnrichmentConnectionRequest {
9963
+ name?: string;
9964
+ config?: EnrichmentConnectionConfig;
9965
+ status?: 'active' | 'inactive';
9966
+ }
9967
+ type ResearchDefinitionStatus = 'active' | 'inactive';
9968
+ /**
9969
+ * What a found row proposes for a record it matches: `fill_empty` (the
9970
+ * default) only the attributes the record holds nothing under, `overwrite`
9971
+ * every attribute whose found value differs from the record's.
9972
+ */
9973
+ type ResearchUpdatePolicy = 'fill_empty' | 'overwrite';
9974
+ /** What to find. */
9975
+ interface ResearchCriteria {
9976
+ /** Describes the rows in plain words. */
9977
+ query: string;
9978
+ /** How many rows one run looks for at most: 10 by default, 100 at most. */
9979
+ count?: number;
9980
+ /** Conditions every row must meet, at most 5. */
9981
+ criteria?: string[];
9982
+ }
9983
+ /** Maps the found rows onto one entity. */
9984
+ interface ResearchEntityRule {
9985
+ entity_slug: string;
9986
+ /**
9987
+ * The attribute a found row is compared by with the entity's records; one
9988
+ * of `criteria_fields`. Without one every row is proposed as a new record.
9989
+ */
9990
+ match_key?: string;
9991
+ update_policy?: ResearchUpdatePolicy;
9992
+ /** The attributes filled from the discovery itself. */
9993
+ criteria_fields: string[];
9994
+ /**
9995
+ * The attributes filled through their waterfalls. Left out or `null`, every
9996
+ * mapped target of the entity that is no criteria field is filled; an empty
9997
+ * list fills none.
9998
+ */
9999
+ fields?: Array<{
10000
+ attribute: string;
10001
+ }> | null;
10002
+ }
10003
+ /** Maps people found for a company onto an entity whose records belong to the company's record. */
10004
+ interface ResearchChildRule extends ResearchEntityRule {
10005
+ /** The child entity's relation to the root entity. */
10006
+ relation_attribute: string;
10007
+ /** Whom to look for, such as "Head of Sales". */
10008
+ description: string;
10009
+ /** How many people are found per company: 1 by default, 5 at most. */
10010
+ max_per_parent?: number;
10011
+ }
10012
+ interface ResearchEntityMapping {
10013
+ root: ResearchEntityRule;
10014
+ children?: ResearchChildRule[];
10015
+ }
10016
+ /** How often an `on_schedule` research runs. */
10017
+ interface ResearchSchedule {
10018
+ every_days: number;
10019
+ }
10020
+ /**
10021
+ * Where a research finds its rows when that is not the platform's web
10022
+ * search: in the database of a vendor the org connected with its own account.
10023
+ * Such a search runs on the org's own key and spends its quota at the vendor.
10024
+ */
10025
+ interface ResearchSource {
10026
+ /** The org's connection at connector-service. */
10027
+ connection_id: string;
10028
+ /** The connection's connector, such as `clay`. The service sets it. */
10029
+ connector_key?: string;
10030
+ }
10031
+ /** What to find, how it maps onto entities, and when to look again. */
10032
+ interface ResearchDefinition {
10033
+ id: string;
10034
+ org_id: string;
10035
+ name: string;
10036
+ /** Absent for the platform's web search. */
10037
+ source?: ResearchSource;
10038
+ criteria: ResearchCriteria;
10039
+ entity_mapping: ResearchEntityMapping;
10040
+ /** `on_schedule` or nothing. A run can always be started by hand. */
10041
+ triggers: string[];
10042
+ schedule?: ResearchSchedule;
10043
+ next_run_at?: string;
10044
+ status: ResearchDefinitionStatus;
10045
+ created_at: string;
10046
+ created_by: UserRef$2;
10047
+ updated_at: string;
10048
+ updated_by: UserRef$2;
10049
+ }
10050
+ interface CreateResearchDefinitionRequest {
10051
+ name: string;
10052
+ /**
10053
+ * One of the org's own connections to search instead of the web.
10054
+ * `criteria.query` is then written in the vendor's query language.
10055
+ */
10056
+ source?: ResearchSource;
10057
+ criteria: ResearchCriteria;
10058
+ entity_mapping: ResearchEntityMapping;
10059
+ triggers?: string[];
10060
+ schedule?: ResearchSchedule;
10061
+ status?: ResearchDefinitionStatus;
10062
+ }
10063
+ /**
10064
+ * Changes the members it names; `criteria` and `entity_mapping` are replaced
10065
+ * whole. An empty `triggers` list takes the schedule away. A `source` with an
10066
+ * empty `connection_id` goes back to the web search.
10067
+ */
10068
+ interface PatchResearchDefinitionRequest {
10069
+ name?: string;
10070
+ source?: ResearchSource;
10071
+ criteria?: ResearchCriteria;
10072
+ entity_mapping?: ResearchEntityMapping;
10073
+ triggers?: string[];
10074
+ schedule?: ResearchSchedule;
10075
+ status?: ResearchDefinitionStatus;
10076
+ }
10077
+ /** One execution of a research definition. */
10078
+ interface ResearchRun {
10079
+ id: string;
10080
+ org_id: string;
10081
+ research_definition_id: string;
10082
+ trigger: 'manual' | 'on_schedule';
10083
+ /** The part of the definition the run works from, as it was when the run started. */
10084
+ definition: {
10085
+ source?: ResearchSource;
10086
+ criteria: ResearchCriteria;
10087
+ entity_mapping: ResearchEntityMapping;
10088
+ };
10089
+ /** The discovery provider's id of the search. */
10090
+ provider_ref?: string;
10091
+ status: EnrichmentRunStatus;
10092
+ record_draft_ids: string[];
10093
+ /** How many rows were found. */
10094
+ result_count: number;
10095
+ /** How many of them are in a record draft. */
10096
+ proposed_count: number;
10097
+ error?: string;
10098
+ created_at: string;
10099
+ created_by: UserRef$2;
10100
+ updated_at: string;
10101
+ updated_by: UserRef$2;
10102
+ }
10103
+ interface ListResearchRunsQuery {
10104
+ research_definition_id?: string;
10105
+ page?: number;
10106
+ /** 25 by default, 100 at most. */
10107
+ page_size?: number;
10108
+ }
10109
+ /** One page of an org's research runs, newest first. */
10110
+ type ResearchRunList = ListResult<ResearchRun>;
10111
+ /**
10112
+ * `proposed` waits for a reviewer; `accepted`, `edited` and `rejected` are
10113
+ * what the reviewer decided; `unchanged` matched a record and had nothing new
10114
+ * for it; `skipped` was rejected in an earlier run and is not proposed again.
10115
+ */
10116
+ type ResearchResultStatus = 'pending' | 'proposed' | 'accepted' | 'edited' | 'rejected' | 'unchanged' | 'skipped' | 'failed';
10117
+ /** Where one value of a found row came from. */
10118
+ interface ResearchEvidence {
10119
+ /** `Research`, or the provider whose waterfall step answered. */
10120
+ label?: string;
10121
+ citations?: EnrichmentCitation[];
10122
+ }
10123
+ /** One found row. */
10124
+ interface ResearchResult {
10125
+ id: string;
10126
+ org_id: string;
10127
+ research_run_id: string;
10128
+ research_definition_id: string;
10129
+ /** Set on a person: the row of the company they were found for. */
10130
+ parent_research_result_id?: string;
10131
+ entity_slug: string;
10132
+ /** The discovery provider's id of the row. */
10133
+ provider_ref?: string;
10134
+ raw?: unknown;
10135
+ /**
10136
+ * The attribute values the row is proposed with; for a row that proposes
10137
+ * nothing, what was found. A person's relation to a company that is no
10138
+ * record yet reads `{ research_result_id: '<id>' }`.
10139
+ */
10140
+ values: Record<string, unknown>;
10141
+ evidence?: Record<string, ResearchEvidence>;
10142
+ /** The row's value under the entity's match key. */
10143
+ match_value?: string;
10144
+ matched_record_id?: string;
10145
+ proposed_intent: 'create' | 'update' | 'none';
10146
+ record_draft_id?: string;
10147
+ transaction_id?: string;
10148
+ /** The record an accepted row became, or the one it matched. */
10149
+ record_id?: string;
10150
+ status: ResearchResultStatus;
10151
+ error?: string;
10152
+ created_at: string;
10153
+ updated_at: string;
10154
+ }
10155
+ /**
10156
+ * What a signal is about. A scheduled refresh detects `field_change`,
10157
+ * `job_change` and `headcount_change`; a web monitor looks for
10158
+ * `funding`, `news` and `hiring`. The set is open: a signal mapping exists
10159
+ * per kind.
10160
+ */
10161
+ type SignalKind = 'field_change' | 'job_change' | 'headcount_change' | 'funding' | 'news' | 'hiring' | (string & {});
10162
+ /** One detected change about a record. */
10163
+ interface Signal {
10164
+ id: string;
10165
+ org_id: string;
10166
+ kind: SignalKind;
10167
+ /** The source: a monitor, or the scheduled refresh run that found the change. */
10168
+ signal_monitor_id?: string;
10169
+ enrichment_run_id?: string;
10170
+ /** The record the signal is about, and the attribute that changed. */
10171
+ entity_slug?: string;
10172
+ record_id?: string;
10173
+ field?: string;
10174
+ previous_value?: unknown;
10175
+ value?: unknown;
10176
+ summary: string;
10177
+ evidence?: EnrichmentCitation[];
10178
+ enrichment_attempt_id?: string;
10179
+ /** The draft the kind's signal mapping proposed. Absent for a kind without a mapping. */
10180
+ record_draft_id?: string;
10181
+ dedupe_key: string;
10182
+ detected_at: string;
10183
+ created_at: string;
10184
+ }
10185
+ /** Filters `signals.list`. Every member narrows the list. */
10186
+ interface ListSignalsQuery {
10187
+ kind?: string;
10188
+ entity_slug?: string;
10189
+ record_id?: string;
10190
+ signal_monitor_id?: string;
10191
+ enrichment_run_id?: string;
10192
+ page?: number;
10193
+ /** 25 by default, 100 at most. */
10194
+ page_size?: number;
10195
+ }
10196
+ /** One page of an org's signals, newest first. */
10197
+ type SignalList = ListResult<Signal>;
10198
+ type SignalUpdatePolicy = 'fill_empty' | 'overwrite';
10199
+ /** A record a signal creates. */
10200
+ interface SignalCreateEffect {
10201
+ /** Names the record for the relations of later creates. */
10202
+ ref?: string;
10203
+ entity_slug: string;
10204
+ /**
10205
+ * The record's values by attribute. A text may hold the placeholders
10206
+ * `{{summary}}`, `{{value}}`, `{{previous_value}}`, `{{evidence}}` and
10207
+ * `{{detected_at}}`.
10208
+ */
10209
+ values?: Record<string, unknown>;
10210
+ /** By relation attribute, what the record points at: `subject`, or the ref of an earlier create. */
10211
+ relations?: Record<string, string>;
10212
+ }
10213
+ /** What a signal proposes to change on the record it is about. */
10214
+ interface SignalUpdateEffect {
10215
+ target: 'subject';
10216
+ attributes: Record<string, unknown>;
10217
+ update_policy?: SignalUpdatePolicy;
10218
+ }
10219
+ interface SignalEffects {
10220
+ create: SignalCreateEffect[];
10221
+ update: SignalUpdateEffect[];
10222
+ }
10223
+ /** An org's record effects for one signal kind. */
10224
+ interface SignalMapping {
10225
+ id: string;
10226
+ org_id: string;
10227
+ kind: SignalKind;
10228
+ module_slug: string;
10229
+ effects: SignalEffects;
10230
+ /** The parts of the effects that no longer fit the org's entities, such as `create[0].values.type`. */
10231
+ orphaned?: string[];
10232
+ created_at: string;
10233
+ created_by: UserRef$2;
10234
+ updated_at: string;
10235
+ updated_by: UserRef$2;
10236
+ }
10237
+ interface PutSignalMappingRequest {
10238
+ effects: SignalEffects;
10239
+ }
10240
+ /**
10241
+ * `web` looks on the web on a schedule. `connection` takes the events a vendor
10242
+ * pushes at one of the org's own connections.
10243
+ */
10244
+ type SignalMonitorKind = 'web' | 'connection';
10245
+ type SignalMonitorStatus = 'active' | 'inactive';
10246
+ /**
10247
+ * Which records a monitor covers: one of `record_ids` and `records_query`, of
10248
+ * one entity. A `connection` monitor takes neither: it covers every record of
10249
+ * the entity an event is about.
10250
+ */
10251
+ interface SignalMonitorSubject {
10252
+ entity_slug: string;
10253
+ record_ids?: string[];
10254
+ records_query?: {
10255
+ filter: FilterGroup;
10256
+ };
10257
+ }
10258
+ interface SignalMonitorConfig {
10259
+ /**
10260
+ * What a `web` monitor looks for: `news`, `funding`, `hiring`. A
10261
+ * `connection` monitor takes the kinds listed, and every kind the vendor
10262
+ * pushes when none is.
10263
+ */
10264
+ signal_kinds?: string[];
10265
+ /** The org's connection whose pushed events a `connection` monitor takes. */
10266
+ connection_id?: string;
10267
+ /** The connection's connector, such as `clay`. The service sets it. */
10268
+ connector_key?: string;
10269
+ }
10270
+ /** How often a `web` monitor checks. A `connection` monitor has none: `every_days` is 0. */
10271
+ interface SignalMonitorSchedule {
10272
+ every_days: number;
10273
+ }
10274
+ /**
10275
+ * A standing monitor for events about records: one that looks on the web on a
10276
+ * schedule, or one that takes what a vendor pushes.
10277
+ */
10278
+ interface SignalMonitor {
10279
+ id: string;
10280
+ org_id: string;
10281
+ name: string;
10282
+ kind: SignalMonitorKind;
10283
+ subject: SignalMonitorSubject;
10284
+ config: SignalMonitorConfig;
10285
+ schedule: SignalMonitorSchedule;
10286
+ provider_ref?: string;
10287
+ status: SignalMonitorStatus;
10288
+ /** Why the last check failed. Absent otherwise. */
10289
+ status_detail?: string;
10290
+ /** The last check that worked. */
10291
+ last_run_at?: string;
10292
+ next_run_at?: string;
10293
+ created_at: string;
10294
+ created_by: UserRef$2;
10295
+ updated_at: string;
10296
+ updated_by: UserRef$2;
10297
+ }
10298
+ interface CreateSignalMonitorRequest {
10299
+ name: string;
10300
+ kind: SignalMonitorKind;
10301
+ subject: SignalMonitorSubject;
10302
+ config: SignalMonitorConfig;
10303
+ schedule: SignalMonitorSchedule;
10304
+ /** Active unless it says inactive. */
10305
+ status?: SignalMonitorStatus;
10306
+ }
10307
+ /** Only the members it names change; a monitor's kind is fixed. */
10308
+ interface PatchSignalMonitorRequest {
10309
+ name?: string;
10310
+ subject?: SignalMonitorSubject;
10311
+ config?: SignalMonitorConfig;
10312
+ schedule?: SignalMonitorSchedule;
10313
+ status?: SignalMonitorStatus;
10314
+ }
10315
+
10316
+ /**
10317
+ * Facade for enrichment-service: filling attributes from providers through
10318
+ * waterfalls.
10319
+ *
10320
+ * `enrich` returns values and writes nothing. `runs` enrich records and write
10321
+ * or propose what they find (a record draft), as each attribute's apply level
10322
+ * says. `mappings` say what each attribute of an entity does in enrichment,
10323
+ * `waterfalls` are an org's own step lists, `research` finds companies and
10324
+ * people that are no records yet and proposes them as record drafts,
10325
+ * `signals` are the changes a scheduled refresh or a web monitor detected and
10326
+ * what they propose, and `catalog` is what can be asked for and who supplies
10327
+ * it.
10328
+ *
10329
+ * Single resources come back bare; the lists (run items, waterfalls,
10330
+ * providers) are unwrapped from `{data}` and are not paged.
10331
+ *
10332
+ * ```ts
10333
+ * const enrichment = new EnrichmentClient(client)
10334
+ * const found = await enrichment.enrich({ entity_slug: 'contact', record_id: id, attributes: ['email'] })
10335
+ * const run = await enrichment.runs.create({ entity_slug: 'contact', record_ids: ids, wait_seconds: 20 })
10336
+ * const items = await enrichment.runs.listItems(run.enrichment_run_id)
10337
+ * await enrichment.mappings.setEntry('contact', 'email', { enrichment_type: 'work_email' })
10338
+ * const researchRun = await enrichment.research.startRun(definitionId)
10339
+ * const rows = await enrichment.research.listResults(researchRun.id)
10340
+ * ```
10341
+ */
10342
+ declare class EnrichmentClient {
10343
+ private readonly client;
10344
+ readonly runs: EnrichmentRunService;
10345
+ readonly mappings: EnrichmentMappingService;
10346
+ readonly waterfalls: WaterfallService;
10347
+ readonly connections: EnrichmentConnectionService;
10348
+ readonly research: ResearchService;
10349
+ readonly signals: SignalService;
10350
+ readonly catalog: EnrichmentCatalogService;
10351
+ constructor(client: ProteosClient);
10352
+ /** Fills attributes ad hoc: the values are returned, nothing is written. */
10353
+ enrich(request: EnrichRequest): Promise<EnrichResponse>;
10354
+ }
10355
+ /** Runs over records. */
10356
+ interface EnrichmentRunService {
10357
+ /**
10358
+ * Starts a run. Answers once the run has finished or `wait_seconds` are
10359
+ * over, whichever is first; a run that is still running is followed with
10360
+ * `get`.
10361
+ */
10362
+ create(request: CreateEnrichmentRunRequest): Promise<EnrichmentRunResponse>;
10363
+ /** One page of the org's runs, newest first, without their `resolved_attributes`. */
10364
+ list(query?: ListEnrichmentRunsQuery): Promise<EnrichmentRunList>;
10365
+ get(id: string): Promise<EnrichmentRun>;
10366
+ /** A run's items with their results. */
10367
+ listItems(id: string): Promise<EnrichmentItem[]>;
10368
+ /** Stops the records whose turn has not come, and the ones that wait for a provider's answer. */
10369
+ cancel(id: string): Promise<EnrichmentRun>;
10370
+ /**
10371
+ * Where the values of one record came from: per attribute, the enrichment
10372
+ * that found the value the record holds now and wrote it, or suggested it
10373
+ * to a reviewer who accepted it.
10374
+ */
10375
+ provenance(entitySlug: string, recordId: string): Promise<EnrichmentProvenance>;
10376
+ }
10377
+ /** The enrichment mapping of an entity. */
10378
+ interface EnrichmentMappingService {
10379
+ /** An entity's mapping, its orphaned entries marked. */
10380
+ get(entitySlug: string): Promise<EnrichmentMapping>;
10381
+ /** Writes the whole mapping; 409 when it changed meanwhile. */
10382
+ replace(entitySlug: string, request: ReplaceEnrichmentMappingRequest): Promise<EnrichmentMapping>;
10383
+ getEntry(entitySlug: string, attribute: string): Promise<EnrichmentEntry>;
10384
+ /** Writes one attribute's entry and touches no other. */
10385
+ setEntry(entitySlug: string, attribute: string, block: EnrichmentBlock): Promise<EnrichmentEntry>;
10386
+ deleteEntry(entitySlug: string, attribute: string): Promise<void>;
10387
+ }
10388
+ /** An org's waterfalls. Platform defaults are listed and read-only. */
10389
+ interface WaterfallService {
10390
+ /** The org's waterfalls, active or not, and the platform defaults. */
10391
+ list(): Promise<Waterfall[]>;
10392
+ get(id: string): Promise<Waterfall>;
10393
+ /** 409 while another active waterfall holds its attribute, or is the default of its enrichment type. */
10394
+ create(request: CreateWaterfallRequest): Promise<Waterfall>;
10395
+ patch(id: string, request: PatchWaterfallRequest): Promise<Waterfall>;
10396
+ delete(id: string): Promise<void>;
10397
+ }
10398
+ /**
10399
+ * An org's enrichment connections: its bindings to its own connections (its
10400
+ * Clay key), which the `connection` steps of its waterfalls run on.
10401
+ */
10402
+ interface EnrichmentConnectionService {
10403
+ list(): Promise<EnrichmentConnection[]>;
10404
+ get(id: string): Promise<EnrichmentConnection>;
10405
+ /** Binds one of the org's connections. A person's own connection can only be bound by that person. */
10406
+ create(request: CreateEnrichmentConnectionRequest): Promise<EnrichmentConnection>;
10407
+ patch(id: string, request: PatchEnrichmentConnectionRequest): Promise<EnrichmentConnection>;
10408
+ /** A waterfall step that names it is skipped from then on. */
10409
+ delete(id: string): Promise<void>;
10410
+ }
10411
+ /**
10412
+ * Research definitions and their runs. A definition says what to find on the
10413
+ * web and how a found row maps onto the org's entities; a run finds the rows
10414
+ * and proposes the new ones as record drafts. Nothing is written to a record
10415
+ * until a reviewer accepts a draft in data-service.
10416
+ */
10417
+ interface ResearchService {
10418
+ listDefinitions(): Promise<ResearchDefinition[]>;
10419
+ getDefinition(id: string): Promise<ResearchDefinition>;
10420
+ /** Every entity the definition maps onto needs an enrichment mapping. */
10421
+ createDefinition(request: CreateResearchDefinitionRequest): Promise<ResearchDefinition>;
10422
+ patchDefinition(id: string, request: PatchResearchDefinitionRequest): Promise<ResearchDefinition>;
10423
+ /** Removes the definition with its runs and their rows. The record drafts its runs proposed stay. */
10424
+ deleteDefinition(id: string): Promise<void>;
10425
+ /**
10426
+ * Starts a run and returns it while it is still running; follow it with
10427
+ * `getRun`. 409 while the definition has a run that is still running.
10428
+ */
10429
+ startRun(definitionId: string): Promise<ResearchRun>;
10430
+ /** One page of the org's research runs, newest first. */
10431
+ listRuns(query?: ListResearchRunsQuery): Promise<ResearchRunList>;
10432
+ getRun(id: string): Promise<ResearchRun>;
10433
+ /** The rows a run found, each as a reviewer left it. */
10434
+ listResults(runId: string): Promise<ResearchResult[]>;
10435
+ /** Stops a running run. Drafts it proposed already stay. */
10436
+ cancelRun(id: string): Promise<ResearchRun>;
10437
+ }
10438
+ /**
10439
+ * Signals: the log of detected changes, the signal mapping of each kind
10440
+ * (which records a signal creates and what it proposes on the record it is
10441
+ * about), and signal monitors (standing web monitors for news, funding and
10442
+ * hiring about some records). A scheduled refresh detects `field_change`,
10443
+ * `job_change` and `headcount_change` by itself; turn it on with the
10444
+ * `on_schedule` trigger and `refresh_every_days` of a mapping entry.
10445
+ */
10446
+ interface SignalService {
10447
+ /** One page of the org's signals, newest first. */
10448
+ list(query?: ListSignalsQuery): Promise<SignalList>;
10449
+ listMappings(): Promise<SignalMapping[]>;
10450
+ getMapping(kind: string): Promise<SignalMapping>;
10451
+ /** Writes the whole of what a signal of the kind does to records. */
10452
+ putMapping(kind: string, request: PutSignalMappingRequest): Promise<SignalMapping>;
10453
+ /** The kind's signals are still logged and published, and propose nothing. */
10454
+ deleteMapping(kind: string): Promise<void>;
10455
+ listMonitors(): Promise<SignalMonitor[]>;
10456
+ getMonitor(id: string): Promise<SignalMonitor>;
10457
+ /**
10458
+ * An active monitor checks for the first time within a minute and then every
10459
+ * `schedule.every_days`; every check costs money.
10460
+ */
10461
+ createMonitor(request: CreateSignalMonitorRequest): Promise<SignalMonitor>;
10462
+ patchMonitor(id: string, request: PatchSignalMonitorRequest): Promise<SignalMonitor>;
10463
+ /** The signals the monitor detected stay. */
10464
+ deleteMonitor(id: string): Promise<void>;
10465
+ }
10466
+ /** What can be asked for and who supplies it. The same for every org. */
10467
+ interface EnrichmentCatalogService {
10468
+ enrichmentTypes(): Promise<EnrichmentTypesResponse>;
10469
+ providers(): Promise<EnrichmentProvider[]>;
10470
+ }
10471
+
9368
10472
  /**
9369
10473
  * Common error codes returned by the Proteos API.
9370
10474
  */
@@ -13099,4 +14203,4 @@ declare class WorkflowClient {
13099
14203
  constructor(client: ProteosClient);
13100
14204
  }
13101
14205
 
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 };
14206
+ 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 };