@proteos/sdk 0.51.1 → 0.53.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/{chunk-IRFFXJMB.js → chunk-HEUXXELG.js} +311 -17
- package/dist/chunk-HEUXXELG.js.map +1 -0
- package/dist/{chunk-RKFXHDVU.cjs → chunk-SWCPI6SL.cjs} +326 -16
- package/dist/chunk-SWCPI6SL.cjs.map +1 -0
- package/dist/index.cjs +209 -102
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +213 -12
- package/dist/index.d.ts +213 -12
- package/dist/index.js +49 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +123 -59
- package/dist/meta/index.d.cts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.js +1 -1
- package/dist/{types-C9flkAj-.d.cts → types-D5P6yk1L.d.cts} +1288 -69
- package/dist/{types-C9flkAj-.d.ts → types-D5P6yk1L.d.ts} +1288 -69
- package/package.json +3 -3
- package/src/conversation/index.ts +39 -0
- package/src/conversation/types.ts +108 -4
- package/src/data/index.ts +15 -2
- package/src/data/records.ts +63 -0
- package/src/data/types.ts +52 -0
- package/src/index.ts +60 -1
- package/src/meta/entity-extensions.ts +98 -0
- package/src/meta/index.ts +84 -1
- package/src/meta/layout/common-props.ts +8 -0
- package/src/meta/layout/control-registry.json +10 -2
- package/src/meta/layout/elements.ts +15 -10
- package/src/meta/layout/index.ts +1 -0
- package/src/meta/list-extensions.ts +98 -0
- package/src/meta/menu-configuration-extensions.ts +132 -0
- package/src/meta/page-extensions.ts +98 -0
- package/src/meta/types.ts +470 -0
- package/dist/chunk-IRFFXJMB.js.map +0 -1
- package/dist/chunk-RKFXHDVU.cjs.map +0 -1
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, c as ProteosClient, F as FileRef, d as PrincipalRef, e as PublicAccessOperation } from './types-
|
|
2
|
-
export { f as App, g as AppConfiguration, h as AppConfigurationSchema, i as AppConfigurationService, j as AppHome, k as AppHomeSchema, l as AppHomeType, m as AppSchema, n as AppService, o as ArrayAttributeMeta, p as AttributeAccessRule, q as AttributeRestrictions, r as AttributeSchema, s as AttributeType, t as AuditFieldsSchema, C as CURRENT_USER_DEFAULT, u as ClientOptions, v as Column, w as ColumnSchema, x as ComparisonOperator, y as Component, z as ComponentSchema, B as ComponentService, D as
|
|
1
|
+
import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PrincipalRef, e as PublicAccessOperation } from './types-D5P6yk1L.js';
|
|
2
|
+
export { f as App, g as AppConfiguration, h as AppConfigurationSchema, i as AppConfigurationService, j as AppHome, k as AppHomeSchema, l as AppHomeType, m as AppSchema, n as AppService, o as ArrayAttributeMeta, p as AttributeAccessRule, q as AttributeRestrictions, r as AttributeSchema, s as AttributeType, t as AuditFieldsSchema, C as CURRENT_USER_DEFAULT, u as ClientOptions, v as Column, w as ColumnSchema, x as ComparisonOperator, y as Component, z as ComponentSchema, B as ComponentService, D as ContactAddressAttributeKind, E as ContactAddressAttributeMeta, G as ContactAddressAttributeMetaSchema, H as ContactBindingDuplicatePolicy, I as CreateAppConfigurationRequest, J as CreateAppRequest, K as CreateComponentRequest, M as CreateDesignReferenceRequest, N as CreateEntityExtensionRequest, O as CreateEntityRequest, Q as CreateListExtensionRequest, R as CreateListRequest, S as CreateListViewRequest, T as CreateMenuConfigurationExtensionRequest, V as CreateMenuConfigurationRequest, W as CreatePageExtensionRequest, X as CreatePageRequest, Y as CreateVariableRequest, Z as CurrencyAttributeMeta, _ as CurrencyAttributeMetaSchema, $ as CurrencySymbolSide, a0 as CurrencyValue, a1 as CurrentUserDefault, a2 as DEFAULT_OPTIONS, a3 as DEFAULT_PAGE_SIZE, a4 as DONE, a5 as DeployModuleRequest, a6 as DesignReference, a7 as DesignReferenceContent, a8 as DesignReferenceSchema, a9 as DesignReferenceService, aa as Done, ab as Entity, ac as EntityContactBinding, ad as EntityContactBindingSchema, ae as EntityExtension, af as EntityExtensionSchema, ag as EntityExtensionService, ah as EntitySchema, ai as EntityService, aj as EntityWithSchema, ak as EntityWithSchemaSchema, al as EnumAttributeMeta, am as EnumValue, an as ExtensionPosition, ao as ExtensionPositionSchema, ap as FileAttributeMeta, aq as FileRefSchema, ar as FilterElement, as as FilterElementSchema, at as FilterGroup, au as FilterGroupSchema, av as List, aw as ListAppConfigurationsOptions, ax as ListAppsOptions, ay as ListComponentsOptions, az as ListDesignReferencesOptions, aA as ListEntitiesOptions, aB as ListEntityExtensionsOptions, aC as ListExtension, aD as ListExtensionColumnPlacement, aE as ListExtensionColumnPlacementSchema, aF as ListExtensionSchema, aG as ListExtensionService, aH as ListFn, aI as ListListExtensionsOptions, aJ as ListListViewsOptions, aK as ListListsOptions, aL as ListMenuConfigurationExtensionsOptions, aM as ListMenuConfigurationsOptions, aN as ListModulesOptions, aO as ListPageExtensionsOptions, aP as ListPagesOptions, aQ as ListSchema, aR as ListService, aS as ListVariablesOptions, aT as ListView, aU as ListViewSchema, aV as ListViewService, aW as LogicalOperator, aX as MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, aY as MenuConfiguration, aZ as MenuConfigurationExtension, a_ as MenuConfigurationExtensionPlacement, a$ as MenuConfigurationExtensionPlacementSchema, b0 as MenuConfigurationExtensionPosition, b1 as MenuConfigurationExtensionPositionSchema, b2 as MenuConfigurationExtensionSchema, b3 as MenuConfigurationExtensionService, b4 as MenuConfigurationSchema, b5 as MenuConfigurationService, b6 as MenuItem, b7 as MenuItemSchema, b8 as MenuItemType, b9 as MetaClient, ba as MetaListOptions, bb as Module, bc as ModuleSchema, bd as ModuleService, be as ModuleStatus, bf as OnDeleteAction, bg as OnDeleteActionSchema, bh as PAGE_EXTENSION_ANCHOR_MAIN, bi as PAGE_EXTENSION_ANCHOR_SIDE_PANEL, bj as PLATFORM_ATTRIBUTE_NAMES, bk as PLATFORM_USER_ID, bl as Page, bm as PageAction, bn as PageActionKind, bo as PageActionSchema, bp as PageExtension, bq as PageExtensionPlacement, br as PageExtensionPlacementSchema, bs as PageExtensionSchema, bt as PageExtensionService, bu as PageLayout, bv as PageLayoutSchema, bw as PageSchema, bx as PageService, by as PageType, bz as PublicPageComponent, bA as PublicPageResponse, bB as RelationAttributeMeta, bC as RelationAttributeMetaSchema, bD as RequestOptions, bE as ResolvedClientOptions, bF as ResponseMeta, bG as ResponseMetaSchema, bH as SortConfig, bI as SortConfigSchema, bJ as SortDirection, bK as Timestamps, bL as TokenProvider, bM as UpdateAppConfigurationRequest, bN as UpdateAppRequest, bO as UpdateComponentRequest, bP as UpdateDesignReferenceRequest, bQ as UpdateEntityExtensionRequest, bR as UpdateEntityRequest, bS as UpdateListExtensionRequest, bT as UpdateListRequest, bU as UpdateListViewRequest, bV as UpdateMenuConfigurationExtensionRequest, bW as UpdateMenuConfigurationRequest, bX as UpdatePageExtensionRequest, bY as UpdatePageRequest, bZ as UpdateVariableRequest, b_ as UserRefSchema, b$ as UserType, c0 as Variable, c1 as VariableSchema, c2 as VariableService, c3 as acceptsCurrentUserDefault, c4 as allCurrencyCodes, c5 as createIterator, c6 as createListResultSchema, c7 as currencyLabel, c8 as currencySymbol, c9 as currencySymbolSide, ca as formatAmount, cb as formatMoney, cc as isCurrentUserDefault, cd as isPlatformAttributeName, ce as localeNumberSeparators, cf as parseAmount, cg as parseContactAddressMeta, ch as parseCurrencyMeta, ci as parseFileMeta, cj as parseRelationMeta, ck as platformAttributes, cl as resolveOptions } from './types-D5P6yk1L.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -3528,6 +3528,13 @@ interface ListContactGroupsQuery extends PaginationQuery {
|
|
|
3528
3528
|
type ToneProfileSetupStatus = 'empty' | 'processing' | 'ready';
|
|
3529
3529
|
/** A tone profile row's tier — derived, most specific wins at read time. */
|
|
3530
3530
|
type ToneProfileScope = 'user' | 'channel' | 'group' | 'contact';
|
|
3531
|
+
/**
|
|
3532
|
+
* Who wrote a tone profile, and therefore who may change it. `manual` rows are
|
|
3533
|
+
* hand-authored and authoritative: synthesis never overwrites or prunes them,
|
|
3534
|
+
* and deleting the user's setup (the AI opt-in) leaves them standing. `model`
|
|
3535
|
+
* rows belong to the synthesis sweep, which owns them outright.
|
|
3536
|
+
*/
|
|
3537
|
+
type ToneProfileSource = 'manual' | 'model';
|
|
3531
3538
|
/**
|
|
3532
3539
|
* The per-user opt-in for tone-of-voice synthesis: only set-up users are
|
|
3533
3540
|
* swept. Also carries the whole-user synthesis claim (status/started_at).
|
|
@@ -3546,7 +3553,8 @@ interface ToneProfileSetup {
|
|
|
3546
3553
|
updated_by: UserRef;
|
|
3547
3554
|
}
|
|
3548
3555
|
/**
|
|
3549
|
-
* One
|
|
3556
|
+
* One tone-of-voice instruction row — synthesized or hand-authored (`source`).
|
|
3557
|
+
* Rows form a specificity
|
|
3550
3558
|
* hierarchy — user aggregate (the constant voice), per-channel base, per
|
|
3551
3559
|
* contact-group, per individual contact — and every row is SELF-CONTAINED: a
|
|
3552
3560
|
* drafting consumer injects exactly one row's `instructions` verbatim (use
|
|
@@ -3564,6 +3572,8 @@ interface ToneProfile {
|
|
|
3564
3572
|
/** Scopes the row to one individual contact within the group. */
|
|
3565
3573
|
contact_id?: string;
|
|
3566
3574
|
scope: ToneProfileScope;
|
|
3575
|
+
/** Who owns this row — see ToneProfileSource. */
|
|
3576
|
+
source: ToneProfileSource;
|
|
3567
3577
|
/** COMPLETE markdown instruction set, served verbatim to a drafting model. */
|
|
3568
3578
|
instructions: string;
|
|
3569
3579
|
/** Short delta vs the tier above — what a human scans; empty on root tiers. */
|
|
@@ -3585,6 +3595,29 @@ interface ListToneProfilesQuery extends PaginationQuery {
|
|
|
3585
3595
|
owned_by_id?: string;
|
|
3586
3596
|
channel?: Channel;
|
|
3587
3597
|
scope?: ToneProfileScope;
|
|
3598
|
+
/** Narrow to hand-authored (`manual`) or synthesized (`model`) rows. */
|
|
3599
|
+
source?: ToneProfileSource;
|
|
3600
|
+
}
|
|
3601
|
+
/**
|
|
3602
|
+
* Writes ONE hand-authored tone profile. The identity is the scope tuple, not
|
|
3603
|
+
* an id — re-sending the same scope updates the row it created. The row lands
|
|
3604
|
+
* `source: 'manual'`, which locks that scope against synthesis; it also takes
|
|
3605
|
+
* the scope over from a `model` row already sitting there.
|
|
3606
|
+
*
|
|
3607
|
+
* Scope grammar (mirrors the resolve precedence): omit `channel` for the
|
|
3608
|
+
* cross-channel base voice; `contact_group_key` needs a `channel`;
|
|
3609
|
+
* `contact_id` needs both, because resolution reaches a contact row only
|
|
3610
|
+
* through its group.
|
|
3611
|
+
*/
|
|
3612
|
+
interface UpsertToneProfileRequest {
|
|
3613
|
+
owned_by_id: string;
|
|
3614
|
+
channel?: Channel;
|
|
3615
|
+
contact_group_key?: string;
|
|
3616
|
+
contact_id?: string;
|
|
3617
|
+
/** COMPLETE markdown style guide for this tier; never a delta. */
|
|
3618
|
+
instructions: string;
|
|
3619
|
+
/** Optional human-facing note on how this tier differs from the one above. */
|
|
3620
|
+
differences?: string;
|
|
3588
3621
|
}
|
|
3589
3622
|
/**
|
|
3590
3623
|
* A drafting context to resolve the single most-specific profile for:
|
|
@@ -3794,7 +3827,13 @@ type ListConversationFilterEventsQuery = PaginationQuery;
|
|
|
3794
3827
|
* 'contact-address'.
|
|
3795
3828
|
*/
|
|
3796
3829
|
type RecipientKind = 'contact-address' | 'room';
|
|
3797
|
-
type ContactAddressKind = 'email' | 'phone' | 'slack'
|
|
3830
|
+
type ContactAddressKind = 'email' | 'phone' | 'slack'
|
|
3831
|
+
/** LinkedIn's stable profile id (ACoAA… / ACwAA… / AE…) — what sending needs. */
|
|
3832
|
+
| 'linkedin_id'
|
|
3833
|
+
/** The `/in/<slug>` public identifier — what humans and records hold. */
|
|
3834
|
+
| 'linkedin_public_identifier'
|
|
3835
|
+
/** Legacy alias of `linkedin_id` (rows written before the kind split); read-only. */
|
|
3836
|
+
| 'linkedin' | 'telegram' | 'instagram' | 'messenger' | 'x' | 'whatsapp';
|
|
3798
3837
|
type ContactAddressSource = 'sync' | 'ingest' | 'manual' | 'merge';
|
|
3799
3838
|
type ContactSource = 'sync' | 'ingest' | 'manual' | 'merge';
|
|
3800
3839
|
type ContactStatus = 'active' | 'merged' | 'archived' | 'erased';
|
|
@@ -3993,10 +4032,23 @@ interface AttachContactAddressRequest {
|
|
|
3993
4032
|
value: string;
|
|
3994
4033
|
name?: string;
|
|
3995
4034
|
}
|
|
4035
|
+
/** How a contact→record edge came to be: a user's explicit link, or the
|
|
4036
|
+
* binding maintained from the record's contact-address attributes (exactly one
|
|
4037
|
+
* per record; never unlinked by hand). */
|
|
4038
|
+
type ContactRecordLinkSource = 'manual' | 'record';
|
|
4039
|
+
/** One canonical address key of a contact (the dedup backbone). */
|
|
4040
|
+
interface ContactAddressKey {
|
|
4041
|
+
kind: ContactAddressKind;
|
|
4042
|
+
value: string;
|
|
4043
|
+
scope?: string;
|
|
4044
|
+
raw_value?: string;
|
|
4045
|
+
}
|
|
3996
4046
|
/**
|
|
3997
4047
|
* A directed edge from a contact to a business record (entity_slug +
|
|
3998
4048
|
* record_id). Bare — no role; the relationship's semantics come from the
|
|
3999
|
-
* target entity.
|
|
4049
|
+
* target entity. A `manual` link is immutable once created; a `record`
|
|
4050
|
+
* binding repoints/refreshes as the record's addresses change and carries the
|
|
4051
|
+
* keys the record contributed (`address_keys`).
|
|
4000
4052
|
*/
|
|
4001
4053
|
interface ContactRecordLink {
|
|
4002
4054
|
id: string;
|
|
@@ -4004,8 +4056,12 @@ interface ContactRecordLink {
|
|
|
4004
4056
|
contact_id: string;
|
|
4005
4057
|
entity_slug: string;
|
|
4006
4058
|
record_id: string;
|
|
4059
|
+
source: ContactRecordLinkSource;
|
|
4060
|
+
address_keys?: ContactAddressKey[];
|
|
4007
4061
|
created_at: string;
|
|
4008
4062
|
created_by: UserRef;
|
|
4063
|
+
updated_at?: string;
|
|
4064
|
+
updated_by?: UserRef;
|
|
4009
4065
|
}
|
|
4010
4066
|
interface CreateContactRecordLinkRequest {
|
|
4011
4067
|
contact_id: string;
|
|
@@ -4016,6 +4072,7 @@ interface ListContactRecordLinksQuery extends PaginationQuery {
|
|
|
4016
4072
|
contact_id?: string;
|
|
4017
4073
|
entity_slug?: string;
|
|
4018
4074
|
record_id?: string;
|
|
4075
|
+
source?: ContactRecordLinkSource;
|
|
4019
4076
|
}
|
|
4020
4077
|
interface MergeContactsRequest {
|
|
4021
4078
|
source_contact_id: string;
|
|
@@ -4094,12 +4151,46 @@ interface Transcription {
|
|
|
4094
4151
|
updated_at: string;
|
|
4095
4152
|
updated_by: UserRef;
|
|
4096
4153
|
}
|
|
4154
|
+
/**
|
|
4155
|
+
* Transcribes a storage-service audio file. Asynchronous: the row lands
|
|
4156
|
+
* `processing` and the caller polls until `completed`.
|
|
4157
|
+
*/
|
|
4097
4158
|
interface CreateTranscriptionRequest {
|
|
4098
4159
|
file_id: string;
|
|
4099
4160
|
language?: string;
|
|
4100
4161
|
model?: string;
|
|
4101
4162
|
is_diarized?: boolean;
|
|
4102
4163
|
}
|
|
4164
|
+
/**
|
|
4165
|
+
* Lands an ALREADY WRITTEN transcript — no provider runs and the row is
|
|
4166
|
+
* `completed` when the call returns. This is how a transcript, and through
|
|
4167
|
+
* `materialize` a conversation, is authored from text with nothing to upload.
|
|
4168
|
+
* `source_file_id` stays empty, which is how a reader tells the two kinds apart.
|
|
4169
|
+
*
|
|
4170
|
+
* Timings are optional: plain text has none, and materialization then sequences
|
|
4171
|
+
* the turns by their position instead of by `start_ms`.
|
|
4172
|
+
*/
|
|
4173
|
+
/**
|
|
4174
|
+
* One turn of an authored transcript. Distinct from TranscriptTurn (the read
|
|
4175
|
+
* shape, always fully populated) because everything but who-said-what is
|
|
4176
|
+
* derived server-side: an unlabelled speaker becomes "Speaker N", and text with
|
|
4177
|
+
* no timings is sequenced by position at materialization.
|
|
4178
|
+
*/
|
|
4179
|
+
interface AuthoredTranscriptTurn {
|
|
4180
|
+
/** Speaker index — the same number means the same person. */
|
|
4181
|
+
speaker: number;
|
|
4182
|
+
speaker_label?: string;
|
|
4183
|
+
text: string;
|
|
4184
|
+
start_ms?: number;
|
|
4185
|
+
end_ms?: number;
|
|
4186
|
+
confidence?: number;
|
|
4187
|
+
}
|
|
4188
|
+
interface CreateTranscriptionFromTextRequest {
|
|
4189
|
+
turns: AuthoredTranscriptTurn[];
|
|
4190
|
+
language?: string;
|
|
4191
|
+
/** Defaults to whether the turns name more than one speaker. */
|
|
4192
|
+
is_diarized?: boolean;
|
|
4193
|
+
}
|
|
4103
4194
|
/**
|
|
4104
4195
|
* Edits a COMPLETED transcription in place. `turns`, when present, replace the
|
|
4105
4196
|
* diarized turns wholesale; `speaker_labels` maps diarized speaker indexes
|
|
@@ -4208,9 +4299,12 @@ type SendingPeriod = 'rolling_24h' | 'rolling_7d' | 'rolling_30d';
|
|
|
4208
4299
|
* ONE kind of act performed through a channel connection — shared by a
|
|
4209
4300
|
* limit's `action` (what it counts), a channel action's `action_type` (what
|
|
4210
4301
|
* was performed) and the eligibility check. `message` is the plain send
|
|
4211
|
-
* (valid on a limit, never on a channel action row).
|
|
4302
|
+
* (valid on a limit, never on a channel action row). `profile_lookup` is the
|
|
4303
|
+
* silent twin of `profile_visit`: one provider read the platform performs to
|
|
4304
|
+
* learn a person's full identity (LinkedIn profile id + public identifier),
|
|
4305
|
+
* ledgered and limited like any other act.
|
|
4212
4306
|
*/
|
|
4213
|
-
type ChannelActionType = 'message' | 'invitation' | 'inmail' | 'profile_visit';
|
|
4307
|
+
type ChannelActionType = 'message' | 'invitation' | 'inmail' | 'profile_visit' | 'profile_lookup';
|
|
4214
4308
|
type Weekday = 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
|
|
4215
4309
|
/** One open range on one weekday, "HH:MM" wall-clock, from < until, same day. */
|
|
4216
4310
|
interface WindowDay {
|
|
@@ -5112,6 +5206,20 @@ interface ToneProfileService {
|
|
|
5112
5206
|
getProfile(id: string): Promise<ToneProfile>;
|
|
5113
5207
|
/** The single most-specific profile for a drafting context; 404 when none. */
|
|
5114
5208
|
resolve(query: ResolveToneProfileQuery): Promise<ToneProfile>;
|
|
5209
|
+
/**
|
|
5210
|
+
* Writes a HAND-AUTHORED profile, addressed by its scope tuple rather than an
|
|
5211
|
+
* id — so re-sending the same scope updates the row it created. The row lands
|
|
5212
|
+
* `source: 'manual'`, which locks that scope against synthesis forever after;
|
|
5213
|
+
* it also takes the scope over from a `model` row already there. Needs no
|
|
5214
|
+
* setup: a setup is the opt-in to AI synthesis, and writing a voice by hand is
|
|
5215
|
+
* the opposite of asking for one.
|
|
5216
|
+
*/
|
|
5217
|
+
upsertProfile(request: UpsertToneProfileRequest): Promise<ToneProfile>;
|
|
5218
|
+
/**
|
|
5219
|
+
* Removes one profile row, manual or model. A deleted model row comes back on
|
|
5220
|
+
* the next run; a deleted manual row hands its scope back to synthesis.
|
|
5221
|
+
*/
|
|
5222
|
+
deleteProfile(id: string): Promise<void>;
|
|
5115
5223
|
}
|
|
5116
5224
|
/** Batch transcription of stored audio files + materialization. */
|
|
5117
5225
|
interface TranscriptionService {
|
|
@@ -5121,6 +5229,14 @@ interface TranscriptionService {
|
|
|
5121
5229
|
* status is `completed` (or `failed`), then `materialize`.
|
|
5122
5230
|
*/
|
|
5123
5231
|
createFromFile(request: CreateTranscriptionRequest): Promise<Transcription>;
|
|
5232
|
+
/**
|
|
5233
|
+
* Lands an ALREADY WRITTEN transcript. Synchronous — no provider runs, and
|
|
5234
|
+
* the entity comes back `completed`, ready to `materialize` straight away.
|
|
5235
|
+
* The door for authoring a transcript (and so a conversation) from text with
|
|
5236
|
+
* nothing to upload. Same endpoint as `createFromFile`; the shape of the body
|
|
5237
|
+
* chooses the mode, and exactly one of the two is allowed.
|
|
5238
|
+
*/
|
|
5239
|
+
createFromText(request: CreateTranscriptionFromTextRequest): Promise<Transcription>;
|
|
5124
5240
|
list(query?: ListTranscriptionsQuery): Promise<ListResponse<Transcription>>;
|
|
5125
5241
|
get(id: string): Promise<Transcription>;
|
|
5126
5242
|
/**
|
|
@@ -5463,6 +5579,60 @@ declare const BatchUpsertRecordsResponseSchema: z.ZodObject<{
|
|
|
5463
5579
|
record?: Record<string, unknown> | undefined;
|
|
5464
5580
|
}[];
|
|
5465
5581
|
}>;
|
|
5582
|
+
/** How a duplicate pair was detected. `contact_binding` = two records bound to
|
|
5583
|
+
* the same conversation contact through their contact-address attributes. */
|
|
5584
|
+
type RecordDuplicateSource = 'contact_binding' | (string & {});
|
|
5585
|
+
type RecordDuplicateStatus = 'open' | 'dismissed' | 'resolved';
|
|
5586
|
+
/**
|
|
5587
|
+
* "These two records of one entity may be the same thing." Asymmetric:
|
|
5588
|
+
* `primary_record_id` is the record to keep, `secondary_record_id` the
|
|
5589
|
+
* newcomer. A group of colliding records has ONE primary and one row per other
|
|
5590
|
+
* member (four records = three rows). `evidence` is shaped by `source` — for
|
|
5591
|
+
* `contact_binding`: `{ contact_id, address_keys: [{kind, value}] }`.
|
|
5592
|
+
*/
|
|
5593
|
+
interface RecordDuplicate {
|
|
5594
|
+
id: string;
|
|
5595
|
+
org_id: string;
|
|
5596
|
+
entity_slug: string;
|
|
5597
|
+
primary_record_id: string;
|
|
5598
|
+
secondary_record_id: string;
|
|
5599
|
+
source: RecordDuplicateSource;
|
|
5600
|
+
evidence: Record<string, unknown>;
|
|
5601
|
+
status: RecordDuplicateStatus;
|
|
5602
|
+
resolved_by?: {
|
|
5603
|
+
type: string;
|
|
5604
|
+
id: string;
|
|
5605
|
+
};
|
|
5606
|
+
resolved_at?: string;
|
|
5607
|
+
created_at: string;
|
|
5608
|
+
created_by: {
|
|
5609
|
+
type: string;
|
|
5610
|
+
id: string;
|
|
5611
|
+
};
|
|
5612
|
+
updated_at: string;
|
|
5613
|
+
updated_by: {
|
|
5614
|
+
type: string;
|
|
5615
|
+
id: string;
|
|
5616
|
+
};
|
|
5617
|
+
}
|
|
5618
|
+
interface ListRecordDuplicatesQuery {
|
|
5619
|
+
/** Only pairs this record takes part in (either side). */
|
|
5620
|
+
record_id?: string;
|
|
5621
|
+
/** Defaults to `open` on the server. */
|
|
5622
|
+
status?: RecordDuplicateStatus;
|
|
5623
|
+
page?: number;
|
|
5624
|
+
page_size?: number;
|
|
5625
|
+
}
|
|
5626
|
+
/** ONE page of an entity's records replayed as contact observations. */
|
|
5627
|
+
interface PublishContactObservationsResponse {
|
|
5628
|
+
entity_slug: string;
|
|
5629
|
+
page: number;
|
|
5630
|
+
page_size: number;
|
|
5631
|
+
pages_total: number;
|
|
5632
|
+
items_total: number;
|
|
5633
|
+
published: number;
|
|
5634
|
+
skipped: number;
|
|
5635
|
+
}
|
|
5466
5636
|
|
|
5467
5637
|
/**
|
|
5468
5638
|
* Service for managing records (per-entity data rows) via the data-service.
|
|
@@ -5521,6 +5691,25 @@ interface RecordService {
|
|
|
5521
5691
|
* (bare refs) on this path.
|
|
5522
5692
|
*/
|
|
5523
5693
|
getPublic(orgId: string, entitySlug: string, id: string): Promise<RecordData>;
|
|
5694
|
+
/**
|
|
5695
|
+
* Replays ONE page of the entity's records as record_contact_observation
|
|
5696
|
+
* events (the backfill after an attribute became contact-address). Requires
|
|
5697
|
+
* unscoped write on the entity; loop until `page + 1 >= pages_total`.
|
|
5698
|
+
*/
|
|
5699
|
+
publishContactObservations(entitySlug: string, options?: {
|
|
5700
|
+
page?: number;
|
|
5701
|
+
page_size?: number;
|
|
5702
|
+
}): Promise<PublishContactObservationsResponse>;
|
|
5703
|
+
}
|
|
5704
|
+
/**
|
|
5705
|
+
* Record duplicates — "these two records may be the same thing" pairs of one
|
|
5706
|
+
* entity (see `RecordDuplicate`). Reading = entity read, dismissing = entity write.
|
|
5707
|
+
*/
|
|
5708
|
+
interface RecordDuplicateService {
|
|
5709
|
+
list(entitySlug: string, query?: ListRecordDuplicatesQuery): Promise<ListResult<RecordDuplicate>>;
|
|
5710
|
+
get(entitySlug: string, id: string): Promise<RecordDuplicate>;
|
|
5711
|
+
/** Closes a pair as "not a duplicate" (409 `record_duplicate_not_open` when already closed). */
|
|
5712
|
+
dismiss(entitySlug: string, id: string): Promise<RecordDuplicate>;
|
|
5524
5713
|
}
|
|
5525
5714
|
|
|
5526
5715
|
/**
|
|
@@ -5537,6 +5726,8 @@ interface RecordService {
|
|
|
5537
5726
|
declare class DataClient {
|
|
5538
5727
|
readonly records: RecordService;
|
|
5539
5728
|
readonly queries: QueryService;
|
|
5729
|
+
/** Duplicate pairs of an entity's records (raised by contact binding). */
|
|
5730
|
+
readonly recordDuplicates: RecordDuplicateService;
|
|
5540
5731
|
constructor(client: ProteosClient);
|
|
5541
5732
|
}
|
|
5542
5733
|
|
|
@@ -5795,6 +5986,7 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
5795
5986
|
is_nullable: z.ZodOptional<z.ZodBoolean>;
|
|
5796
5987
|
is_unique: z.ZodBoolean;
|
|
5797
5988
|
is_read_only: z.ZodOptional<z.ZodBoolean>;
|
|
5989
|
+
extension_key: z.ZodOptional<z.ZodString>;
|
|
5798
5990
|
restrictions: z.ZodOptional<z.ZodObject<{
|
|
5799
5991
|
read: z.ZodOptional<z.ZodObject<{
|
|
5800
5992
|
roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -5846,6 +6038,7 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
5846
6038
|
is_unique: boolean;
|
|
5847
6039
|
options?: Record<string, unknown> | undefined;
|
|
5848
6040
|
meta?: unknown;
|
|
6041
|
+
extension_key?: string | undefined;
|
|
5849
6042
|
description?: string | undefined;
|
|
5850
6043
|
is_read_only?: boolean | undefined;
|
|
5851
6044
|
is_nullable?: boolean | undefined;
|
|
@@ -5868,6 +6061,7 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
5868
6061
|
is_unique: boolean;
|
|
5869
6062
|
options?: Record<string, unknown> | undefined;
|
|
5870
6063
|
meta?: unknown;
|
|
6064
|
+
extension_key?: string | undefined;
|
|
5871
6065
|
description?: string | undefined;
|
|
5872
6066
|
is_read_only?: boolean | undefined;
|
|
5873
6067
|
is_nullable?: boolean | undefined;
|
|
@@ -5892,6 +6086,7 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
5892
6086
|
is_nullable: z.ZodOptional<z.ZodBoolean>;
|
|
5893
6087
|
is_unique: z.ZodBoolean;
|
|
5894
6088
|
is_read_only: z.ZodOptional<z.ZodBoolean>;
|
|
6089
|
+
extension_key: z.ZodOptional<z.ZodString>;
|
|
5895
6090
|
restrictions: z.ZodOptional<z.ZodObject<{
|
|
5896
6091
|
read: z.ZodOptional<z.ZodObject<{
|
|
5897
6092
|
roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -5943,6 +6138,7 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
5943
6138
|
is_unique: boolean;
|
|
5944
6139
|
options?: Record<string, unknown> | undefined;
|
|
5945
6140
|
meta?: unknown;
|
|
6141
|
+
extension_key?: string | undefined;
|
|
5946
6142
|
description?: string | undefined;
|
|
5947
6143
|
is_read_only?: boolean | undefined;
|
|
5948
6144
|
is_nullable?: boolean | undefined;
|
|
@@ -5965,6 +6161,7 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
5965
6161
|
is_unique: boolean;
|
|
5966
6162
|
options?: Record<string, unknown> | undefined;
|
|
5967
6163
|
meta?: unknown;
|
|
6164
|
+
extension_key?: string | undefined;
|
|
5968
6165
|
description?: string | undefined;
|
|
5969
6166
|
is_read_only?: boolean | undefined;
|
|
5970
6167
|
is_nullable?: boolean | undefined;
|
|
@@ -5989,6 +6186,7 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
5989
6186
|
is_unique: boolean;
|
|
5990
6187
|
options?: Record<string, unknown> | undefined;
|
|
5991
6188
|
meta?: unknown;
|
|
6189
|
+
extension_key?: string | undefined;
|
|
5992
6190
|
description?: string | undefined;
|
|
5993
6191
|
is_read_only?: boolean | undefined;
|
|
5994
6192
|
is_nullable?: boolean | undefined;
|
|
@@ -6029,6 +6227,7 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
6029
6227
|
is_unique: boolean;
|
|
6030
6228
|
options?: Record<string, unknown> | undefined;
|
|
6031
6229
|
meta?: unknown;
|
|
6230
|
+
extension_key?: string | undefined;
|
|
6032
6231
|
description?: string | undefined;
|
|
6033
6232
|
is_read_only?: boolean | undefined;
|
|
6034
6233
|
is_nullable?: boolean | undefined;
|
|
@@ -6054,6 +6253,7 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
6054
6253
|
is_unique: boolean;
|
|
6055
6254
|
options?: Record<string, unknown> | undefined;
|
|
6056
6255
|
meta?: unknown;
|
|
6256
|
+
extension_key?: string | undefined;
|
|
6057
6257
|
description?: string | undefined;
|
|
6058
6258
|
is_read_only?: boolean | undefined;
|
|
6059
6259
|
is_nullable?: boolean | undefined;
|
|
@@ -6094,6 +6294,7 @@ declare const ActionSchema: z.ZodObject<{
|
|
|
6094
6294
|
is_unique: boolean;
|
|
6095
6295
|
options?: Record<string, unknown> | undefined;
|
|
6096
6296
|
meta?: unknown;
|
|
6297
|
+
extension_key?: string | undefined;
|
|
6097
6298
|
description?: string | undefined;
|
|
6098
6299
|
is_read_only?: boolean | undefined;
|
|
6099
6300
|
is_nullable?: boolean | undefined;
|
|
@@ -6835,8 +7036,8 @@ declare const KnowledgeNodeSchema: z.ZodObject<{
|
|
|
6835
7036
|
type: "person" | "agent" | "api";
|
|
6836
7037
|
id: string;
|
|
6837
7038
|
};
|
|
6838
|
-
title: string;
|
|
6839
7039
|
content: string;
|
|
7040
|
+
title: string;
|
|
6840
7041
|
org_id: string;
|
|
6841
7042
|
file_id?: string | null | undefined;
|
|
6842
7043
|
url?: string | null | undefined;
|
|
@@ -6859,8 +7060,8 @@ declare const KnowledgeNodeSchema: z.ZodObject<{
|
|
|
6859
7060
|
type: "person" | "agent" | "api";
|
|
6860
7061
|
id: string;
|
|
6861
7062
|
};
|
|
6862
|
-
title: string;
|
|
6863
7063
|
content: string;
|
|
7064
|
+
title: string;
|
|
6864
7065
|
org_id: string;
|
|
6865
7066
|
file_id?: string | null | undefined;
|
|
6866
7067
|
url?: string | null | undefined;
|
|
@@ -7108,8 +7309,8 @@ declare const KnowledgeLabelSchema: z.ZodObject<{
|
|
|
7108
7309
|
};
|
|
7109
7310
|
slug: string;
|
|
7110
7311
|
org_id: string;
|
|
7111
|
-
description?: string | null | undefined;
|
|
7112
7312
|
icon?: string | null | undefined;
|
|
7313
|
+
description?: string | null | undefined;
|
|
7113
7314
|
color?: string | null | undefined;
|
|
7114
7315
|
}, {
|
|
7115
7316
|
id: string;
|
|
@@ -7126,8 +7327,8 @@ declare const KnowledgeLabelSchema: z.ZodObject<{
|
|
|
7126
7327
|
};
|
|
7127
7328
|
slug: string;
|
|
7128
7329
|
org_id: string;
|
|
7129
|
-
description?: string | null | undefined;
|
|
7130
7330
|
icon?: string | null | undefined;
|
|
7331
|
+
description?: string | null | undefined;
|
|
7131
7332
|
color?: string | null | undefined;
|
|
7132
7333
|
}>;
|
|
7133
7334
|
declare const KnowledgeNodeLabelSchema: z.ZodObject<{
|
|
@@ -8318,4 +8519,4 @@ declare class WorkflowClient {
|
|
|
8318
8519
|
constructor(client: ProteosClient);
|
|
8319
8520
|
}
|
|
8320
8521
|
|
|
8321
|
-
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 AgentService, type AllFilterConfig, type ApiErrorResponse, type ApiKey, type AppendEventRequest, type ApplySendingLimitPresetRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type AttachConversationBriefRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type BounceClassification, type BounceKind, type CallStatus, type CallTokenResponse, 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 ClientEventType, type ClientToolSchema, 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 ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactGroup, type ContactGroupService, type ContactGroupSource, type ContactMergeProposal, 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 ConversationParticipant, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type ConversationType, type ConversationTypeConfig, type ConversationTypeService, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateApiKeyRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateContactGroupRequest, type CreateContactRequest, type CreateConversationBriefRequest, type CreateConversationFilterRequest, type CreateConversationTypeRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreateProfileRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSendingRuleRequest, type CreateSessionRequest, type CreateSpaceRequest, type CreateTeamRequest, type CreateToneProfileSetupRequest, type CreateToolRequest, type CreateToolsetRequest, type CreateUserRequest, type CreateWorkflowRequest, type CreatedApiKey, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DependentAgent, type DependentSyncResult, 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 EmailSuppression, type EmailSuppressionCounts, type EmailSuppressionKind, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, type FrequencyCapRuleConfig, FunctionsClient, type GetConnectionHealthQuery, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InmailParams, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvitationParams, 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 ListChannelActionsQuery, type ListChannelEventsQuery, type ListConnectionsQuery, type ListConnectorConnectionsQuery, type ListConnectorsQuery, type ListContactAddressesQuery, type ListContactGroupsQuery, type ListContactMergeProposalsQuery, type ListContactsQuery, type ListConversationBriefsQuery, type ListConversationFilterEventsQuery, type ListConversationFiltersQuery, type ListConversationTypesQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrgUserRoleAssignmentsOptions, type ListOrganizationsOptions, type ListProfilesOptions, type ListPromptsOptions, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSendingLimitPresetsQuery, type ListSendingRulesQuery, type ListSessionsOptions, type ListSkillsOptions, type ListSpacesOptions, type ListTeamMembersOptions, type ListTeamsOptions, type ListToneProfileSetupsQuery, type ListToneProfilesQuery, type ListToolsOptions, type ListToolsetsOptions, type ListUserProfileAssignmentsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDelivery, type MessageDeliveryStatus, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type MintCallTokenRequest, type MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, 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 OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type PerformChannelActionRequest, type Permission, type PermissionEventSource, type PermissionEventType, type PhoneNumber, type PhoneNumberRouting, type PhoneNumberStatus, type PlatformBinding, 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 PublishEventRequest, type QueryBinding, 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 ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResolveToneProfileQuery, type RespondChannelActionRequest, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RoutingTarget, type RunWorkflowRequest, SCOPED_PLATFORM_ENTITY_SLUGS, 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 SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type SetDefaultSenderRequest, type SetProfileRequest, type SharePermission, type ShareRow, type ShareService, type Skill, type SkillBundle, type SkillService, type SkillVersion, type SpaceService, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, 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 Tool, type ToolBinding, type ToolConfirmationPayload, type ToolKind, type ToolResultPayload, type ToolService, type ToolUsePayload, 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 TriggerKind, type Turn, UNASSIGNED_SPACE_SLUG, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactGroupRequest, type UpdateContactRequest, type UpdateConversationBriefRequest, type UpdateConversationFilterRequest, type UpdateConversationTypeRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateMeRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePhoneNumberRequest, type UpdateProfileRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateSendingRuleRequest, type UpdateSpaceRequest, type UpdateTeamRequest, type UpdateToolRequest, type UpdateToolsetRequest, type UpdateUserRequest, type UpdateWorkflowRequest, type User, type UserMessagePayload, type UserProfileAssignment, UserProfileAssignmentSchema, type UserProfileAssignmentService, UserRef$2 as UserRef, type UserRoleAssignment, UserRoleAssignmentSchema, type UserRoleAssignmentService, UserSchema, type UserService, type VoiceService, type VoiceTranscriptionStream, type WarmupRuleConfig, type WebhookTriggerParams, type Weekday, 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 WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isShareable, isUnauthorized, parseErrorResponse, shareRouteFor, toQueryParams, toQueryString };
|
|
8522
|
+
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 AgentService, type AllFilterConfig, type ApiErrorResponse, type ApiKey, type AppendEventRequest, type ApplySendingLimitPresetRequest, type AssignPermissionRequest, type AssignRoleRequest, type AttachContactAddressRequest, type AttachConversationBriefRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AuthoredTranscriptTurn, type AutomatedFilterConfig, type AutomatedSignal, type BatchTransactionError, BatchTransactionErrorSchema, type BatchTransactionStatus, type BatchUpsertRecordsResponse, BatchUpsertRecordsResponseSchema, type BatchUpsertTransaction, type BatchUpsertTransactionResult, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, type BinaryRef, type BlockContactRequest, type BounceClassification, type BounceKind, type CallStatus, type CallTokenResponse, 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 ClientEventType, type ClientToolSchema, 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 ConsentStatus, type ConsumerGroup, type Contact, type ContactAddress, type ContactAddressKey, type ContactAddressKind, type ContactAddressSource, type ContactErasureRequest, type ContactGroup, type ContactGroupService, type ContactGroupSource, type ContactMergeProposal, 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 ConversationParticipant, type ConversationService, type ConversationStatus, type ConversationSummaryStatus, type ConversationType, type ConversationTypeConfig, type ConversationTypeService, type CreateAgentListenerRequest, type CreateAgentRequest, type CreateApiKeyRequest, type CreateConnectionRequest, type CreateConnectorConnectionRequest, type CreateContactGroupRequest, type CreateContactRecordLinkRequest, type CreateContactRequest, type CreateConversationBriefRequest, type CreateConversationFilterRequest, type CreateConversationTypeRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreateProfileRequest, type CreatePromptRequest, type CreateRecordLinkRequest, type CreateRoleRequest, type CreateSendingRuleRequest, type CreateSessionRequest, type CreateSpaceRequest, type CreateTeamRequest, type CreateToneProfileSetupRequest, type CreateToolRequest, type CreateToolsetRequest, type CreateTranscriptionFromTextRequest, type CreateUserRequest, type CreateWorkflowRequest, type CreatedApiKey, type CredentialSpec, type CronTriggerParams, DEFAULT_PORT, DataClient, type DependentAgent, type DependentSyncResult, 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 EmailSuppression, type EmailSuppressionCounts, type EmailSuppressionKind, type EmptyPayload, type ErasureRequestStatus, ErrorCode, type ErrorCodeType, type ErrorPayload, type EventTriggerParams, type EventType, type EventVerb, EventsClient, type ExecutionError, type ExecutionStatus, type ExecutionTriggerContext, type FileBlock, FileRef, type FileService, type FileVersionContent, type FilterMatchOn, type FrequencyCapRuleConfig, FunctionsClient, type GetConnectionHealthQuery, type GetExecutionDetailResponse, type GetGraphOptions, type GetNodeExecutionItemsOptions, type GetNodeExecutionItemsResponse, type GetNodeTypesResponse, type GlossaryTerm, type GlossaryTermService, type GraphService, type InlineLinkRequest, type InmailParams, type InstallConnectionResponse, type InstallConnectorConnectionResponse, type InternalConversationsFilterConfig, type InvitationParams, 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 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 ListConversationTypesQuery, type ListConversationsQuery, type ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrgUserRoleAssignmentsOptions, type ListOrganizationsOptions, type ListProfilesOptions, type ListPromptsOptions, type ListRecordDuplicatesQuery, type ListRecordLinksOptions, type ListRecordsOptions, type ListResponse, ListResult, type ListRolePermissionsOptions, type ListRolesOptions, type ListRoomsQuery, type ListSendingLimitPresetsQuery, type ListSendingRulesQuery, type ListSessionsOptions, type ListSkillsOptions, type ListSpacesOptions, type ListTeamMembersOptions, type ListTeamsOptions, type ListToneProfileSetupsQuery, type ListToneProfilesQuery, type ListToolsOptions, type ListToolsetsOptions, type ListUserProfileAssignmentsOptions, type ListUserRoleAssignmentsOptions, type ListUsersOptions, type ListWorkflowsOptions, type ManualTriggerParams, type MatchMode, type McpBinding, type McpConnectionState, type McpConnectionStatus, type McpServer, type McpServerAuth, type McpServerOAuth, type McpServerService, type McpToolSummary, type MeService, type MeetingService, type MergeContactsRequest, type MergeProposalStatus, type Message, type ContentBlock as MessageContentBlock, type MessageDelivery, type MessageDeliveryStatus, type MessageDirection, type MessagePreview, type MessageRecipient, type MessageService, type MessageStatus, type MessageTriggerParams, type MintCallTokenRequest, type MistranscribedTerm, type MistranscribedTermService, type MistranscribedTermStatus, type MistranscriptionSuggestionSource, type ModelCallParams, type ModelConfig, type ModelRequestEndPayload, type ModelRequestStartPayload, 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 OnErrorPolicy, type Organization, OrganizationSchema, type OrganizationService, type OutlineHeading, type OutlineRequest, type OutlineResponse, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, PageIterator, type PairedItem, type ParseStatus, type PerformChannelActionRequest, type Permission, type PermissionEventSource, type PermissionEventType, type PhoneNumber, type PhoneNumberRouting, type PhoneNumberStatus, type PlatformBinding, 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 PublishContactObservationsResponse, type PublishEventRequest, type QueryBinding, 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 ReasoningPayload, type RecipientKind, type RecipientRole, type RecordData, type RecordDuplicate, type RecordDuplicateService, type RecordDuplicateSource, type RecordDuplicateStatus, type RecordLinkService, type RecordPermissionEventRequest, type RecordService, type RedriveResult, type ResolveToneProfileQuery, type RespondChannelActionRequest, type ResultBlock, type Role, type RoleBasedFilterConfig, type RoleEntityPermission, RoleEntityPermissionSchema, RoleSchema, type RoleService, type Room, type RoutingTarget, type RunWorkflowRequest, SCOPED_PLATFORM_ENTITY_SLUGS, 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 SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type SetDefaultSenderRequest, type SetProfileRequest, type SharePermission, type ShareRow, type ShareService, type Skill, type SkillBundle, type SkillService, type SkillVersion, type SpaceService, type StartMcpOAuthResponse, type StopReason, StorageClient, type StorageFile, type StorageFileVersion, 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 ToolUsePayload, 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 TriggerKind, type Turn, UNASSIGNED_SPACE_SLUG, type UnreadCounts, type UpdateAgentListenerRequest, type UpdateAgentRequest, type UpdateConnectionRequest, type UpdateConnectorConnectionRequest, type UpdateContactGroupRequest, type UpdateContactRequest, type UpdateConversationBriefRequest, type UpdateConversationFilterRequest, type UpdateConversationTypeRequest, type UpdateDraftRequest, type UpdateFileMetadata, type UpdateGlossaryTermRequest, type UpdateLabelRequest, type UpdateLinkRequest, type UpdateMcpServerRequest, type UpdateMeRequest, type UpdateNodeRequest, type UpdateOrganizationRequest, type UpdatePhoneNumberRequest, type UpdateProfileRequest, type UpdatePromptRequest, type UpdateRoleRequest, type UpdateSendingRuleRequest, type UpdateSpaceRequest, type UpdateTeamRequest, type UpdateToolRequest, type UpdateToolsetRequest, type UpdateUserRequest, 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 VoiceService, type VoiceTranscriptionStream, type WarmupRuleConfig, type WebhookTriggerParams, type Weekday, 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 WriteContentResponse, type WriteCredentialsRequest, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isShareable, isUnauthorized, parseErrorResponse, shareRouteFor, toQueryParams, toQueryString };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuditFieldsSchema, FileRefSchema, PrincipalRefSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-
|
|
2
|
-
export { AppConfigurationSchema, AppHomeSchema, AppSchema, AttributeSchema, AuditFieldsSchema, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, acceptsCurrentUserDefault, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isCurrentUserDefault, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-
|
|
1
|
+
import { AuditFieldsSchema, FileRefSchema, PrincipalRefSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-HEUXXELG.js';
|
|
2
|
+
export { AppConfigurationSchema, AppHomeSchema, AppSchema, AttributeSchema, AuditFieldsSchema, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, ContactAddressAttributeMetaSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntityContactBindingSchema, EntityExtensionSchema, EntitySchema, EntityWithSchemaSchema, ExtensionPositionSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListExtensionColumnPlacementSchema, ListExtensionSchema, ListSchema, ListViewSchema, MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, MenuConfigurationExtensionPlacementSchema, MenuConfigurationExtensionPositionSchema, MenuConfigurationExtensionSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_EXTENSION_ANCHOR_MAIN, PAGE_EXTENSION_ANCHOR_SIDE_PANEL, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageExtensionPlacementSchema, PageExtensionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, acceptsCurrentUserDefault, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isCurrentUserDefault, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseContactAddressMeta, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-HEUXXELG.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { fetchEventSource } from '@microsoft/fetch-event-source';
|
|
5
5
|
|
|
@@ -2279,6 +2279,15 @@ var ToneProfileServiceImpl = class {
|
|
|
2279
2279
|
query
|
|
2280
2280
|
);
|
|
2281
2281
|
}
|
|
2282
|
+
upsertProfile(request) {
|
|
2283
|
+
return this.client.request("PUT", `${CONVERSATION_BASE_PATH}/tone-profiles`, request);
|
|
2284
|
+
}
|
|
2285
|
+
async deleteProfile(id) {
|
|
2286
|
+
await this.client.request(
|
|
2287
|
+
"DELETE",
|
|
2288
|
+
`${CONVERSATION_BASE_PATH}/tone-profiles/${encodeURIComponent(id)}`
|
|
2289
|
+
);
|
|
2290
|
+
}
|
|
2282
2291
|
};
|
|
2283
2292
|
var TranscriptionServiceImpl = class {
|
|
2284
2293
|
constructor(client) {
|
|
@@ -2288,6 +2297,9 @@ var TranscriptionServiceImpl = class {
|
|
|
2288
2297
|
createFromFile(request) {
|
|
2289
2298
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/transcriptions`, request);
|
|
2290
2299
|
}
|
|
2300
|
+
createFromText(request) {
|
|
2301
|
+
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/transcriptions`, request);
|
|
2302
|
+
}
|
|
2291
2303
|
list(query = {}) {
|
|
2292
2304
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/transcriptions`, query);
|
|
2293
2305
|
}
|
|
@@ -2591,6 +2603,13 @@ var RecordServiceImpl = class {
|
|
|
2591
2603
|
transactions
|
|
2592
2604
|
);
|
|
2593
2605
|
}
|
|
2606
|
+
async publishContactObservations(entitySlug, options = {}) {
|
|
2607
|
+
return this.client.requestWithQuery(
|
|
2608
|
+
"POST",
|
|
2609
|
+
`${RECORDS_BASE_PATH}/${entitySlug}/contact-observations`,
|
|
2610
|
+
options
|
|
2611
|
+
);
|
|
2612
|
+
}
|
|
2594
2613
|
listPublic(orgId, entitySlug, options = {}) {
|
|
2595
2614
|
return new PageIterator((opts) => this.listPublicPage(orgId, entitySlug, opts), options);
|
|
2596
2615
|
}
|
|
@@ -2612,6 +2631,31 @@ var RecordServiceImpl = class {
|
|
|
2612
2631
|
);
|
|
2613
2632
|
}
|
|
2614
2633
|
};
|
|
2634
|
+
var RecordDuplicateServiceImpl = class {
|
|
2635
|
+
constructor(client) {
|
|
2636
|
+
this.client = client;
|
|
2637
|
+
}
|
|
2638
|
+
client;
|
|
2639
|
+
async list(entitySlug, query = {}) {
|
|
2640
|
+
return this.client.requestWithQuery(
|
|
2641
|
+
"GET",
|
|
2642
|
+
`${RECORDS_BASE_PATH}/${entitySlug}/duplicates`,
|
|
2643
|
+
query
|
|
2644
|
+
);
|
|
2645
|
+
}
|
|
2646
|
+
async get(entitySlug, id) {
|
|
2647
|
+
return this.client.request(
|
|
2648
|
+
"GET",
|
|
2649
|
+
`${RECORDS_BASE_PATH}/${entitySlug}/duplicates/${encodeURIComponent(id)}`
|
|
2650
|
+
);
|
|
2651
|
+
}
|
|
2652
|
+
async dismiss(entitySlug, id) {
|
|
2653
|
+
return this.client.request(
|
|
2654
|
+
"POST",
|
|
2655
|
+
`${RECORDS_BASE_PATH}/${entitySlug}/duplicates/${encodeURIComponent(id)}/dismiss`
|
|
2656
|
+
);
|
|
2657
|
+
}
|
|
2658
|
+
};
|
|
2615
2659
|
var BatchUpsertTransactionSchema = z.object({
|
|
2616
2660
|
transaction_id: z.string(),
|
|
2617
2661
|
data: z.record(z.unknown())
|
|
@@ -2634,9 +2678,12 @@ var BatchUpsertRecordsResponseSchema = z.object({
|
|
|
2634
2678
|
var DataClient = class {
|
|
2635
2679
|
records;
|
|
2636
2680
|
queries;
|
|
2681
|
+
/** Duplicate pairs of an entity's records (raised by contact binding). */
|
|
2682
|
+
recordDuplicates;
|
|
2637
2683
|
constructor(client) {
|
|
2638
2684
|
this.records = new RecordServiceImpl(client);
|
|
2639
2685
|
this.queries = new QueryServiceImpl(client);
|
|
2686
|
+
this.recordDuplicates = new RecordDuplicateServiceImpl(client);
|
|
2640
2687
|
}
|
|
2641
2688
|
};
|
|
2642
2689
|
|