@proteos/sdk 0.80.0 → 0.82.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.cjs +80 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +310 -1
- package/dist/index.d.ts +310 -1
- package/dist/index.js +78 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/auth/platform-entities.ts +4 -0
- package/src/conversation/index.ts +12 -2
- package/src/conversation/types.ts +67 -0
- package/src/data/index.ts +21 -0
- package/src/data/record-drafts.ts +73 -0
- package/src/data/types.ts +162 -0
- package/src/index.ts +21 -0
- package/src/scheduling/types.ts +18 -0
package/dist/index.d.ts
CHANGED
|
@@ -3410,6 +3410,18 @@ interface Message {
|
|
|
3410
3410
|
connection_id: string;
|
|
3411
3411
|
channel: Channel;
|
|
3412
3412
|
direction: MessageDirection;
|
|
3413
|
+
/** A draft's edited subject, held until send. Absent means the conversation's; empty is a subject deliberately cleared on a new email. */
|
|
3414
|
+
subject?: string;
|
|
3415
|
+
/** The tone profile this draft was written in, when known. May no longer resolve. */
|
|
3416
|
+
tone_profile_id?: string;
|
|
3417
|
+
/** The reviewer took the quoted previous message off this reply. */
|
|
3418
|
+
is_quote_removed?: boolean;
|
|
3419
|
+
/** The platform wrote this message (a send or a draft): its content is what the person wrote, without the quote the email carried. Absent on mail imported from the mailbox. */
|
|
3420
|
+
is_sent_from_platform?: boolean;
|
|
3421
|
+
/** The newest entry in this draft's history; absent until its first change. */
|
|
3422
|
+
draft_version?: number;
|
|
3423
|
+
/** On a single draft read: the quote its send would carry below the text. Never stored. */
|
|
3424
|
+
quoted_text?: string;
|
|
3413
3425
|
external_message_id: string;
|
|
3414
3426
|
sender: ContactRef;
|
|
3415
3427
|
/** Who the message was addressed to (To/Cc/Bcc), each tagged with its role. */
|
|
@@ -3584,6 +3596,8 @@ interface InstallConnectionResponse {
|
|
|
3584
3596
|
setup?: Record<string, string>;
|
|
3585
3597
|
}
|
|
3586
3598
|
interface SendMessageRequest {
|
|
3599
|
+
/** Records the tone a draft was written in. Stored by draft; send ignores it. */
|
|
3600
|
+
tone_profile_id?: string;
|
|
3587
3601
|
/** Reply mode: send into this existing conversation. */
|
|
3588
3602
|
conversation_id?: string;
|
|
3589
3603
|
/**
|
|
@@ -3641,6 +3655,40 @@ interface SendMessageRequest {
|
|
|
3641
3655
|
* the provided groups; omitting all three keeps the stored recipients. On any
|
|
3642
3656
|
* recipient edit, send all three groups.
|
|
3643
3657
|
*/
|
|
3658
|
+
/** How a version of a draft came to be. */
|
|
3659
|
+
type MessageDraftVersionKind = 'drafted' | 'edited' | 'redrafted' | 'restored';
|
|
3660
|
+
/** One step in a draft message's history. */
|
|
3661
|
+
interface MessageDraftVersion {
|
|
3662
|
+
id: string;
|
|
3663
|
+
org_id: string;
|
|
3664
|
+
message_id: string;
|
|
3665
|
+
version: number;
|
|
3666
|
+
kind: MessageDraftVersionKind;
|
|
3667
|
+
/** The effective subject at this version, wherever it is stored. */
|
|
3668
|
+
subject: string;
|
|
3669
|
+
recipients: MessageRecipient[];
|
|
3670
|
+
content: ContentBlock[];
|
|
3671
|
+
tone_profile_id?: string;
|
|
3672
|
+
/** The reviewer's redraft prompt (kind=redrafted). */
|
|
3673
|
+
instruction?: string;
|
|
3674
|
+
/** The version a restore copied from (kind=restored). */
|
|
3675
|
+
source_version?: number;
|
|
3676
|
+
created_at: string;
|
|
3677
|
+
created_by: UserRef;
|
|
3678
|
+
updated_at: string;
|
|
3679
|
+
updated_by: UserRef;
|
|
3680
|
+
}
|
|
3681
|
+
/** One field that differs between what was proposed and the latest version. */
|
|
3682
|
+
interface MessageDraftChange {
|
|
3683
|
+
field: 'body' | 'subject' | 'to' | 'cc' | 'bcc';
|
|
3684
|
+
from: unknown;
|
|
3685
|
+
to: unknown;
|
|
3686
|
+
}
|
|
3687
|
+
/** A draft's history, oldest first, plus what changed across it. */
|
|
3688
|
+
interface MessageDraftVersions {
|
|
3689
|
+
data: MessageDraftVersion[];
|
|
3690
|
+
changes: MessageDraftChange[];
|
|
3691
|
+
}
|
|
3644
3692
|
interface UpdateDraftRequest {
|
|
3645
3693
|
to?: SendRecipient[];
|
|
3646
3694
|
/** Email only. */
|
|
@@ -3652,6 +3700,21 @@ interface UpdateDraftRequest {
|
|
|
3652
3700
|
content: ContentBlock[];
|
|
3653
3701
|
/** The complete attachment set to keep (omitting one removes its row). */
|
|
3654
3702
|
attachments?: FileRef[];
|
|
3703
|
+
/**
|
|
3704
|
+
* The `updated_at` the editor last saw. A draft that has moved on since fails
|
|
3705
|
+
* with 409 `draft_conflict` instead of being overwritten. Omit for last write wins.
|
|
3706
|
+
*/
|
|
3707
|
+
expected_updated_at?: string;
|
|
3708
|
+
/** Takes the quoted previous message off (true) or puts it back on (false). */
|
|
3709
|
+
is_quote_removed?: boolean;
|
|
3710
|
+
/** Replaces the tone recorded on the draft. Omit to keep it. */
|
|
3711
|
+
tone_profile_id?: string;
|
|
3712
|
+
/** What this edit is in the draft's history. Defaults to `edited`. */
|
|
3713
|
+
version_kind?: Exclude<MessageDraftVersionKind, 'drafted'>;
|
|
3714
|
+
/** The reviewer's prompt behind a redraft. */
|
|
3715
|
+
instruction?: string;
|
|
3716
|
+
/** The version a restore copies from. */
|
|
3717
|
+
source_version?: number;
|
|
3655
3718
|
}
|
|
3656
3719
|
interface CreateAgentListenerRequest {
|
|
3657
3720
|
connection_id?: string;
|
|
@@ -6529,6 +6592,8 @@ interface MessageService {
|
|
|
6529
6592
|
* `draft_not_editable` once the draft was sent or rejected.
|
|
6530
6593
|
*/
|
|
6531
6594
|
updateDraft(messageId: string, request: UpdateDraftRequest): Promise<Message>;
|
|
6595
|
+
/** A draft's history, oldest first, plus what changed. Also readable after send. */
|
|
6596
|
+
listDraftVersions(messageId: string): Promise<MessageDraftVersions>;
|
|
6532
6597
|
/** Deliver a draft (draft → pending → sent/failed). 409 on a lost race. */
|
|
6533
6598
|
sendDraft(messageId: string): Promise<Message>;
|
|
6534
6599
|
/** Decline a draft (draft → rejected, terminal). 409 on a lost race. */
|
|
@@ -7121,6 +7186,207 @@ interface ListRecordDuplicatesQuery {
|
|
|
7121
7186
|
page?: number;
|
|
7122
7187
|
page_size?: number;
|
|
7123
7188
|
}
|
|
7189
|
+
/** WHAT a draft proposes to do to the entity's records. Record-only, hence the
|
|
7190
|
+
* short verbs; the page-button intent vocabulary (`create_record`, …) is mapped
|
|
7191
|
+
* at the UI boundary. */
|
|
7192
|
+
type RecordDraftIntent = 'create' | 'update' | 'delete' | 'upsert';
|
|
7193
|
+
/** The review lifecycle: `proposed` awaits a verdict; `approved` was applied
|
|
7194
|
+
* exactly as proposed; `approved_with_changes` was edited, then applied
|
|
7195
|
+
* (`changes` says what the reviewer altered); `rejected` was never applied.
|
|
7196
|
+
* The last three are terminal. approved vs approved_with_changes is DERIVED by
|
|
7197
|
+
* the server from `changes` — a resolver never names the outcome. */
|
|
7198
|
+
type RecordDraftStatus = 'proposed' | 'approved' | 'approved_with_changes' | 'rejected';
|
|
7199
|
+
/**
|
|
7200
|
+
* ONE proposed write, keyed like a batch transaction. Shape per intent —
|
|
7201
|
+
* create: `data`, no `id` · update: `id` + `data` · delete: `id`, no `data` ·
|
|
7202
|
+
* upsert: `data`, `id` optional (present ⇒ update, absent ⇒ create). `id` never
|
|
7203
|
+
* rides inside `data`. Update/upsert `data` is a partial merge (only the keys
|
|
7204
|
+
* present change).
|
|
7205
|
+
*/
|
|
7206
|
+
interface RecordDraftItem {
|
|
7207
|
+
transaction_id: string;
|
|
7208
|
+
id?: string;
|
|
7209
|
+
data?: Record<string, unknown>;
|
|
7210
|
+
}
|
|
7211
|
+
type RecordDraftItemResultStatus = 'success' | 'error';
|
|
7212
|
+
/** The same facts the single-record endpoint would have answered with. */
|
|
7213
|
+
interface RecordDraftItemError {
|
|
7214
|
+
code: string;
|
|
7215
|
+
message: string;
|
|
7216
|
+
status?: number;
|
|
7217
|
+
details?: Record<string, unknown>;
|
|
7218
|
+
}
|
|
7219
|
+
/** The outcome of applying one item — the batch result minus the record. */
|
|
7220
|
+
interface RecordDraftItemResult {
|
|
7221
|
+
transaction_id: string;
|
|
7222
|
+
status: RecordDraftItemResultStatus;
|
|
7223
|
+
record_id?: string;
|
|
7224
|
+
error?: RecordDraftItemError;
|
|
7225
|
+
}
|
|
7226
|
+
/** ONE thing the reviewer altered before applying. */
|
|
7227
|
+
type RecordDraftChangeKind = 'item_dropped' | 'attribute_changed' | 'attribute_removed' | 'attribute_added';
|
|
7228
|
+
/**
|
|
7229
|
+
* One entry of the reviewer's delta, diffed against the ORIGINAL proposal.
|
|
7230
|
+
* `proposed` and `applied` are always present — `null` means "cleared".
|
|
7231
|
+
* `current` is the record's value BEFORE the write, captured for existing
|
|
7232
|
+
* targets (`has_current` says whether it was); it is STORED for the proposer
|
|
7233
|
+
* to learn from but NOT yet exposed by the API — responses carry it redacted
|
|
7234
|
+
* (`has_current: false`, `current: null`) because a draft reader may not be
|
|
7235
|
+
* allowed to read the record or that attribute.
|
|
7236
|
+
*/
|
|
7237
|
+
interface RecordDraftChange {
|
|
7238
|
+
transaction_id: string;
|
|
7239
|
+
kind: RecordDraftChangeKind;
|
|
7240
|
+
attribute?: string;
|
|
7241
|
+
has_current: boolean;
|
|
7242
|
+
current: unknown;
|
|
7243
|
+
proposed: unknown;
|
|
7244
|
+
applied: unknown;
|
|
7245
|
+
}
|
|
7246
|
+
/**
|
|
7247
|
+
* A PROPOSED record write awaiting a verdict — the record sibling of a draft
|
|
7248
|
+
* message. `items` is the proposal (immutable); `applied_items` what the
|
|
7249
|
+
* resolver actually sent; `results` the latest outcome per transaction_id (a
|
|
7250
|
+
* re-approve after a partial failure re-sends only the items that have not
|
|
7251
|
+
* succeeded); `changes` the reviewer's delta. `source` is caller-supplied
|
|
7252
|
+
* provenance (`agent_key`, `session_id`, …); `created_by` is the acting user.
|
|
7253
|
+
*/
|
|
7254
|
+
interface RecordDraft {
|
|
7255
|
+
id: string;
|
|
7256
|
+
org_id: string;
|
|
7257
|
+
entity_slug: string;
|
|
7258
|
+
intent: RecordDraftIntent;
|
|
7259
|
+
status: RecordDraftStatus;
|
|
7260
|
+
summary: string;
|
|
7261
|
+
items: RecordDraftItem[];
|
|
7262
|
+
applied_items?: RecordDraftItem[];
|
|
7263
|
+
results?: RecordDraftItemResult[];
|
|
7264
|
+
changes?: RecordDraftChange[];
|
|
7265
|
+
source?: Record<string, unknown>;
|
|
7266
|
+
reason?: string;
|
|
7267
|
+
resolved_by?: {
|
|
7268
|
+
type: string;
|
|
7269
|
+
id: string;
|
|
7270
|
+
};
|
|
7271
|
+
resolved_at?: string;
|
|
7272
|
+
created_at: string;
|
|
7273
|
+
created_by: {
|
|
7274
|
+
type: string;
|
|
7275
|
+
id: string;
|
|
7276
|
+
};
|
|
7277
|
+
updated_at: string;
|
|
7278
|
+
updated_by: {
|
|
7279
|
+
type: string;
|
|
7280
|
+
id: string;
|
|
7281
|
+
};
|
|
7282
|
+
}
|
|
7283
|
+
interface CreateRecordDraftRequest {
|
|
7284
|
+
entity_slug: string;
|
|
7285
|
+
intent: RecordDraftIntent;
|
|
7286
|
+
/** 1..200 items; a missing `transaction_id` becomes the 1-based index. */
|
|
7287
|
+
items: RecordDraftItem[];
|
|
7288
|
+
/** The proposer's one-line why — required. */
|
|
7289
|
+
summary: string;
|
|
7290
|
+
source?: Record<string, unknown>;
|
|
7291
|
+
}
|
|
7292
|
+
/** `items` absent = apply as proposed; present = the reviewer's edited
|
|
7293
|
+
* proposal (values changed, fields removed/added, rows dropped — never new
|
|
7294
|
+
* transaction_ids). */
|
|
7295
|
+
interface ApproveRecordDraftRequest {
|
|
7296
|
+
items?: RecordDraftItem[];
|
|
7297
|
+
}
|
|
7298
|
+
interface RejectRecordDraftRequest {
|
|
7299
|
+
reason?: string;
|
|
7300
|
+
}
|
|
7301
|
+
interface ListRecordDraftsQuery {
|
|
7302
|
+
entity_slug?: string;
|
|
7303
|
+
/** Defaults to `proposed` on the server. */
|
|
7304
|
+
status?: RecordDraftStatus;
|
|
7305
|
+
intent?: RecordDraftIntent;
|
|
7306
|
+
/** Only drafts whose items name this record. */
|
|
7307
|
+
record_id?: string;
|
|
7308
|
+
page?: number;
|
|
7309
|
+
page_size?: number;
|
|
7310
|
+
}
|
|
7311
|
+
declare const RecordDraftItemSchema: z.ZodObject<{
|
|
7312
|
+
transaction_id: z.ZodString;
|
|
7313
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7314
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7315
|
+
}, "strip", z.ZodTypeAny, {
|
|
7316
|
+
transaction_id: string;
|
|
7317
|
+
data?: Record<string, unknown> | undefined;
|
|
7318
|
+
id?: string | undefined;
|
|
7319
|
+
}, {
|
|
7320
|
+
transaction_id: string;
|
|
7321
|
+
data?: Record<string, unknown> | undefined;
|
|
7322
|
+
id?: string | undefined;
|
|
7323
|
+
}>;
|
|
7324
|
+
declare const RecordDraftItemResultSchema: z.ZodObject<{
|
|
7325
|
+
transaction_id: z.ZodString;
|
|
7326
|
+
status: z.ZodEnum<["success", "error"]>;
|
|
7327
|
+
record_id: z.ZodOptional<z.ZodString>;
|
|
7328
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
7329
|
+
code: z.ZodString;
|
|
7330
|
+
message: z.ZodString;
|
|
7331
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
7332
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7333
|
+
}, "strip", z.ZodTypeAny, {
|
|
7334
|
+
code: string;
|
|
7335
|
+
message: string;
|
|
7336
|
+
status?: number | undefined;
|
|
7337
|
+
details?: Record<string, unknown> | undefined;
|
|
7338
|
+
}, {
|
|
7339
|
+
code: string;
|
|
7340
|
+
message: string;
|
|
7341
|
+
status?: number | undefined;
|
|
7342
|
+
details?: Record<string, unknown> | undefined;
|
|
7343
|
+
}>>;
|
|
7344
|
+
}, "strip", z.ZodTypeAny, {
|
|
7345
|
+
status: "error" | "success";
|
|
7346
|
+
transaction_id: string;
|
|
7347
|
+
error?: {
|
|
7348
|
+
code: string;
|
|
7349
|
+
message: string;
|
|
7350
|
+
status?: number | undefined;
|
|
7351
|
+
details?: Record<string, unknown> | undefined;
|
|
7352
|
+
} | undefined;
|
|
7353
|
+
record_id?: string | undefined;
|
|
7354
|
+
}, {
|
|
7355
|
+
status: "error" | "success";
|
|
7356
|
+
transaction_id: string;
|
|
7357
|
+
error?: {
|
|
7358
|
+
code: string;
|
|
7359
|
+
message: string;
|
|
7360
|
+
status?: number | undefined;
|
|
7361
|
+
details?: Record<string, unknown> | undefined;
|
|
7362
|
+
} | undefined;
|
|
7363
|
+
record_id?: string | undefined;
|
|
7364
|
+
}>;
|
|
7365
|
+
declare const RecordDraftChangeSchema: z.ZodObject<{
|
|
7366
|
+
transaction_id: z.ZodString;
|
|
7367
|
+
kind: z.ZodEnum<["item_dropped", "attribute_changed", "attribute_removed", "attribute_added"]>;
|
|
7368
|
+
attribute: z.ZodOptional<z.ZodString>;
|
|
7369
|
+
has_current: z.ZodBoolean;
|
|
7370
|
+
current: z.ZodUnknown;
|
|
7371
|
+
proposed: z.ZodUnknown;
|
|
7372
|
+
applied: z.ZodUnknown;
|
|
7373
|
+
}, "strip", z.ZodTypeAny, {
|
|
7374
|
+
kind: "item_dropped" | "attribute_changed" | "attribute_removed" | "attribute_added";
|
|
7375
|
+
transaction_id: string;
|
|
7376
|
+
has_current: boolean;
|
|
7377
|
+
attribute?: string | undefined;
|
|
7378
|
+
current?: unknown;
|
|
7379
|
+
proposed?: unknown;
|
|
7380
|
+
applied?: unknown;
|
|
7381
|
+
}, {
|
|
7382
|
+
kind: "item_dropped" | "attribute_changed" | "attribute_removed" | "attribute_added";
|
|
7383
|
+
transaction_id: string;
|
|
7384
|
+
has_current: boolean;
|
|
7385
|
+
attribute?: string | undefined;
|
|
7386
|
+
current?: unknown;
|
|
7387
|
+
proposed?: unknown;
|
|
7388
|
+
applied?: unknown;
|
|
7389
|
+
}>;
|
|
7124
7390
|
/** ONE page of an entity's records replayed as contact observations. */
|
|
7125
7391
|
interface PublishContactObservationsResponse {
|
|
7126
7392
|
entity_slug: string;
|
|
@@ -7235,6 +7501,29 @@ interface QueryService {
|
|
|
7235
7501
|
validate(sql: string): Promise<QueryValidateResponse>;
|
|
7236
7502
|
}
|
|
7237
7503
|
|
|
7504
|
+
/**
|
|
7505
|
+
* Proposed record writes awaiting a verdict. `create` needs
|
|
7506
|
+
* `record-drafts:write`; `approve` additionally needs `write` (create / update /
|
|
7507
|
+
* upsert) or `delete` (delete) on the entity, because the writes run as the
|
|
7508
|
+
* caller. approved vs approved_with_changes is derived server-side.
|
|
7509
|
+
*/
|
|
7510
|
+
interface RecordDraftService {
|
|
7511
|
+
/** The org's drafts — `proposed` by default. */
|
|
7512
|
+
list(query?: ListRecordDraftsQuery): Promise<ListResult<RecordDraft>>;
|
|
7513
|
+
get(id: string): Promise<RecordDraft>;
|
|
7514
|
+
create(request: CreateRecordDraftRequest): Promise<RecordDraft>;
|
|
7515
|
+
/**
|
|
7516
|
+
* Applies the draft as the caller. No `items` = as proposed; `items` = the
|
|
7517
|
+
* reviewer's edited proposal. Always 200 with the draft: `status` is
|
|
7518
|
+
* `approved` / `approved_with_changes` when every item succeeded, else still
|
|
7519
|
+
* `proposed` with per-item `results` to fix and re-approve. 409
|
|
7520
|
+
* `record_draft_not_proposed` once resolved.
|
|
7521
|
+
*/
|
|
7522
|
+
approve(id: string, request?: ApproveRecordDraftRequest): Promise<RecordDraft>;
|
|
7523
|
+
/** Never applies the draft. 409 `record_draft_not_proposed` once resolved. */
|
|
7524
|
+
reject(id: string, request?: RejectRecordDraftRequest): Promise<RecordDraft>;
|
|
7525
|
+
}
|
|
7526
|
+
|
|
7238
7527
|
/**
|
|
7239
7528
|
* Service for managing records (per-entity data rows) via the data-service.
|
|
7240
7529
|
*
|
|
@@ -7331,6 +7620,8 @@ declare class DataClient {
|
|
|
7331
7620
|
readonly recordDuplicates: RecordDuplicateService;
|
|
7332
7621
|
/** Per-entity indexes on the record table + the advisor's recommendations. */
|
|
7333
7622
|
readonly entityIndexes: EntityIndexService;
|
|
7623
|
+
/** Proposed record writes awaiting a human (or reviewing agent) verdict. */
|
|
7624
|
+
readonly recordDrafts: RecordDraftService;
|
|
7334
7625
|
constructor(client: ProteosClient);
|
|
7335
7626
|
}
|
|
7336
7627
|
|
|
@@ -9617,6 +9908,10 @@ interface CalendarEvent {
|
|
|
9617
9908
|
recurrence?: string[];
|
|
9618
9909
|
title: string;
|
|
9619
9910
|
description?: string;
|
|
9911
|
+
/** What the booker wrote on a scheduling-link booking; sync never overwrites it (unlike description). */
|
|
9912
|
+
notes?: string;
|
|
9913
|
+
/** On a booking that was moved: the event that replaced it. */
|
|
9914
|
+
rescheduled_to_event_id?: string;
|
|
9620
9915
|
start_at: string;
|
|
9621
9916
|
end_at: string;
|
|
9622
9917
|
is_all_day: boolean;
|
|
@@ -9680,6 +9975,12 @@ interface CalendarEventType {
|
|
|
9680
9975
|
/** Exclusive events of this type per host per day; 0 = no cap. */
|
|
9681
9976
|
max_per_day: number;
|
|
9682
9977
|
location: EventLocation;
|
|
9978
|
+
/**
|
|
9979
|
+
* Liquid template naming each booked event (the invite subject). Variables:
|
|
9980
|
+
* type.name, type.key, link.name, link.key, contact.name, contact.email,
|
|
9981
|
+
* host.display_name, host.headline. Empty = "{{ type.name }} — {{ contact.name }}".
|
|
9982
|
+
*/
|
|
9983
|
+
title_template?: string;
|
|
9683
9984
|
/** Soft reference to conversation-service's conversation_type. */
|
|
9684
9985
|
conversation_type_key?: string;
|
|
9685
9986
|
is_cancel_allowed: boolean;
|
|
@@ -9742,6 +10043,8 @@ interface PutCalendarEventTypeRequest {
|
|
|
9742
10043
|
scheduling_window_days?: number;
|
|
9743
10044
|
max_per_day?: number;
|
|
9744
10045
|
location?: EventLocation;
|
|
10046
|
+
/** See CalendarEventType.title_template; "" restores the default. */
|
|
10047
|
+
title_template?: string;
|
|
9745
10048
|
conversation_type_key?: string;
|
|
9746
10049
|
/** Policy flags default to TRUE when absent; send false to switch one off. */
|
|
9747
10050
|
is_cancel_allowed?: boolean;
|
|
@@ -9762,6 +10065,8 @@ interface UpdateCalendarEventTypeRequest {
|
|
|
9762
10065
|
scheduling_window_days?: number;
|
|
9763
10066
|
max_per_day?: number;
|
|
9764
10067
|
location?: EventLocation;
|
|
10068
|
+
/** See CalendarEventType.title_template; "" restores the default. */
|
|
10069
|
+
title_template?: string;
|
|
9765
10070
|
conversation_type_key?: string;
|
|
9766
10071
|
/** Policy flags default to TRUE when absent; send false to switch one off. */
|
|
9767
10072
|
is_cancel_allowed?: boolean;
|
|
@@ -10104,11 +10409,15 @@ interface PublicCalendarEvent {
|
|
|
10104
10409
|
status: EventStatus;
|
|
10105
10410
|
location: EventLocation;
|
|
10106
10411
|
join_url?: string;
|
|
10412
|
+
/** The service behind join_url (Teams, Meet). */
|
|
10413
|
+
conferencing_provider?: ConferencingProvider;
|
|
10107
10414
|
link: PublicSchedulingLink;
|
|
10108
10415
|
host: PublicHost;
|
|
10109
10416
|
contact: BookingContact;
|
|
10110
10417
|
is_cancelled: boolean;
|
|
10111
10418
|
deleted_at?: string;
|
|
10419
|
+
/** The live booking this one was moved to (same manage token); absent unless it was moved. */
|
|
10420
|
+
rescheduled_to_event_id?: string;
|
|
10112
10421
|
}
|
|
10113
10422
|
interface PublicBookSchedulingLinkResponse extends PublicCalendarEvent {
|
|
10114
10423
|
manage_token: string;
|
|
@@ -11183,4 +11492,4 @@ declare class WorkflowClient {
|
|
|
11183
11492
|
constructor(client: ProteosClient);
|
|
11184
11493
|
}
|
|
11185
11494
|
|
|
11186
|
-
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 Assignment, type AttachContactAddressRequest, type AttachConversationBriefRequest, type Attachment, Attribute, AuditFields, type AuthListOptions, type AuthoredTranscriptTurn, type AutomatedFilterConfig, type AutomatedSignal, type AvailabilityConstraint, type AvailabilityConstraintService, type AvailabilityKind, 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 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 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 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 CreateDiscoveryEvidenceRequest, type CreateDiscoveryEvidenceStrokeRequest, type CreateEntityIndexRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreateProfileRequest, type CreatePromptRequest, 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 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 DependentAgent, type DependentSyncResult, DiscoveryClient, type DiscoveryEvidence, type DiscoveryEvidenceCategory, type DiscoveryEvidenceContext, type DiscoveryEvidenceDownloadUrl, type DiscoveryEvidenceFrame, type DiscoveryEvidenceKind, type DiscoveryEvidenceLink, type DiscoveryEvidenceOrgSummary, type DiscoveryEvidenceService, type DiscoveryEvidenceSource, type DiscoveryEvidenceStatus, 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 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, 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 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 ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMeetingBotsQuery, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrgUserRoleAssignmentsOptions, type ListOrganizationsOptions, type ListPlatformDiscoveryEvidenceQuery, type ListProfilesOptions, type ListPromptsOptions, 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 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 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 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 PutCalendarEventTypeRequest, type PutSchedulingProfileRequest, 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 RecordRef, type RecordService, type RecurrenceScope, type RedriveResult, RequestOptions, type RescheduleHost, type ReschedulePublicCalendarEventRequest, 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 SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type SetCallRecordingRequest, type SetDefaultSenderRequest, type SetProfileRequest, type SharePermission, type ShareRow, type ShareService, type Skill, type SkillBundle, type SkillService, type SkillVersion, type Slot, type SlotParameters, type SlotService, type SlotUnavailability, type SlotUnavailabilityReason, type SpaceService, type StartMcpOAuthResponse, 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 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, type TwilioPhoneSettings, type TwilioPhoneVoicemailSettings, UNASSIGNED_SPACE_SLUG, type UnreadCounts, 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 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 UpdateSchedulingLinkRequest, 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 };
|
|
11495
|
+
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 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 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 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 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 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 CreateDiscoveryEvidenceRequest, type CreateDiscoveryEvidenceStrokeRequest, type CreateEntityIndexRequest, type CreateFileMetadata, type CreateGlossaryTermRequest, type CreateLabelRequest, type CreateLinkRequest, type CreateMcpServerRequest, type CreateNodeRequest, type CreateOrganizationRequest, type CreateProfileRequest, type CreatePromptRequest, 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 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 DependentAgent, type DependentSyncResult, DiscoveryClient, type DiscoveryEvidence, type DiscoveryEvidenceCategory, type DiscoveryEvidenceContext, type DiscoveryEvidenceDownloadUrl, type DiscoveryEvidenceFrame, type DiscoveryEvidenceKind, type DiscoveryEvidenceLink, type DiscoveryEvidenceOrgSummary, type DiscoveryEvidenceService, type DiscoveryEvidenceSource, type DiscoveryEvidenceStatus, 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 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, 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 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 ListEventsOptions, type ListExecutionsOptions, type ListGlossaryTermsQuery, type ListLabelsOptions, type ListLinksOptions, type ListMcpServersOptions, type ListMeetingBotsQuery, type ListMessagesQuery, type ListMistranscribedTermsQuery, type ListNodesOptions, ListOptions, type ListOrgUserRoleAssignmentsOptions, type ListOrganizationsOptions, type ListPlatformDiscoveryEvidenceQuery, type ListProfilesOptions, type ListPromptsOptions, 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 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 MessageDirection, type MessageDraftChange, type MessageDraftVersion, type MessageDraftVersionKind, type MessageDraftVersions, 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 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 PutCalendarEventTypeRequest, type PutSchedulingProfileRequest, 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 RecordDraft, type RecordDraftChange, type RecordDraftChangeKind, RecordDraftChangeSchema, type RecordDraftIntent, type RecordDraftItem, type RecordDraftItemError, type RecordDraftItemResult, RecordDraftItemResultSchema, type RecordDraftItemResultStatus, RecordDraftItemSchema, type RecordDraftService, type RecordDraftStatus, type RecordDuplicate, type RecordDuplicateService, type RecordDuplicateSource, type RecordDuplicateStatus, type RecordLinkService, type RecordPermissionEventRequest, type RecordRef, type RecordService, type RecurrenceScope, type RedriveResult, type RejectRecordDraftRequest, RequestOptions, type RescheduleHost, type ReschedulePublicCalendarEventRequest, 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 SessionEvent, type SessionEventEnvelope, type SessionEventsOptions, type SessionIdlePayload, type SessionService, type SessionStatus, type SessionStreamOptions, type SessionUpdatedPayload, type SetCallRecordingRequest, type SetDefaultSenderRequest, type SetProfileRequest, type SharePermission, type ShareRow, type ShareService, type Skill, type SkillBundle, type SkillService, type SkillVersion, type Slot, type SlotParameters, type SlotService, type SlotUnavailability, type SlotUnavailabilityReason, type SpaceService, type StartMcpOAuthResponse, 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 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, type TwilioPhoneSettings, type TwilioPhoneVoicemailSettings, UNASSIGNED_SPACE_SLUG, type UnreadCounts, 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 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 UpdateSchedulingLinkRequest, 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
|
@@ -933,6 +933,10 @@ var PLATFORM_ENTITIES = [
|
|
|
933
933
|
{ slug: "modules", name: "Modules" },
|
|
934
934
|
{ slug: "variables", name: "Variables" },
|
|
935
935
|
{ slug: "deployments", name: "Deployments" },
|
|
936
|
+
// Records (data-service): proposed record writes awaiting review. read =
|
|
937
|
+
// list/get drafts; write = propose, reject and (with the entity's own
|
|
938
|
+
// write/delete) approve.
|
|
939
|
+
{ slug: "record-drafts", name: "Record Drafts" },
|
|
936
940
|
// Storage (storage-service)
|
|
937
941
|
{ slug: "files", name: "Files" },
|
|
938
942
|
// Automation (function-service)
|
|
@@ -2190,6 +2194,12 @@ var MessageServiceImpl = class {
|
|
|
2190
2194
|
request
|
|
2191
2195
|
);
|
|
2192
2196
|
}
|
|
2197
|
+
listDraftVersions(messageId) {
|
|
2198
|
+
return this.client.request(
|
|
2199
|
+
"GET",
|
|
2200
|
+
`${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}/draft-versions`
|
|
2201
|
+
);
|
|
2202
|
+
}
|
|
2193
2203
|
sendDraft(messageId) {
|
|
2194
2204
|
return this.client.request(
|
|
2195
2205
|
"POST",
|
|
@@ -3003,6 +3013,45 @@ var QueryServiceImpl = class {
|
|
|
3003
3013
|
}
|
|
3004
3014
|
};
|
|
3005
3015
|
|
|
3016
|
+
// src/data/record-drafts.ts
|
|
3017
|
+
var RECORD_DRAFTS_BASE_PATH = "/data/v1/record-drafts";
|
|
3018
|
+
var RecordDraftServiceImpl = class {
|
|
3019
|
+
constructor(client) {
|
|
3020
|
+
this.client = client;
|
|
3021
|
+
}
|
|
3022
|
+
client;
|
|
3023
|
+
async list(query = {}) {
|
|
3024
|
+
return this.client.requestWithQuery(
|
|
3025
|
+
"GET",
|
|
3026
|
+
RECORD_DRAFTS_BASE_PATH,
|
|
3027
|
+
query
|
|
3028
|
+
);
|
|
3029
|
+
}
|
|
3030
|
+
async get(id) {
|
|
3031
|
+
return this.client.request(
|
|
3032
|
+
"GET",
|
|
3033
|
+
`${RECORD_DRAFTS_BASE_PATH}/${encodeURIComponent(id)}`
|
|
3034
|
+
);
|
|
3035
|
+
}
|
|
3036
|
+
async create(request) {
|
|
3037
|
+
return this.client.request("POST", RECORD_DRAFTS_BASE_PATH, request);
|
|
3038
|
+
}
|
|
3039
|
+
async approve(id, request = {}) {
|
|
3040
|
+
return this.client.request(
|
|
3041
|
+
"POST",
|
|
3042
|
+
`${RECORD_DRAFTS_BASE_PATH}/${encodeURIComponent(id)}/approve`,
|
|
3043
|
+
request
|
|
3044
|
+
);
|
|
3045
|
+
}
|
|
3046
|
+
async reject(id, request = {}) {
|
|
3047
|
+
return this.client.request(
|
|
3048
|
+
"POST",
|
|
3049
|
+
`${RECORD_DRAFTS_BASE_PATH}/${encodeURIComponent(id)}/reject`,
|
|
3050
|
+
request
|
|
3051
|
+
);
|
|
3052
|
+
}
|
|
3053
|
+
};
|
|
3054
|
+
|
|
3006
3055
|
// src/data/records.ts
|
|
3007
3056
|
var RECORDS_BASE_PATH = "/data/v1/records";
|
|
3008
3057
|
var BATCH_RECORDS_BASE_PATH = "/data/v1/batch/records";
|
|
@@ -3115,6 +3164,31 @@ var BatchUpsertTransactionResultSchema = z.object({
|
|
|
3115
3164
|
var BatchUpsertRecordsResponseSchema = z.object({
|
|
3116
3165
|
results: z.array(BatchUpsertTransactionResultSchema)
|
|
3117
3166
|
});
|
|
3167
|
+
var RecordDraftItemSchema = z.object({
|
|
3168
|
+
transaction_id: z.string(),
|
|
3169
|
+
id: z.string().optional(),
|
|
3170
|
+
data: z.record(z.string(), z.unknown()).optional()
|
|
3171
|
+
});
|
|
3172
|
+
var RecordDraftItemResultSchema = z.object({
|
|
3173
|
+
transaction_id: z.string(),
|
|
3174
|
+
status: z.enum(["success", "error"]),
|
|
3175
|
+
record_id: z.string().optional(),
|
|
3176
|
+
error: z.object({
|
|
3177
|
+
code: z.string(),
|
|
3178
|
+
message: z.string(),
|
|
3179
|
+
status: z.number().optional(),
|
|
3180
|
+
details: z.record(z.string(), z.unknown()).optional()
|
|
3181
|
+
}).optional()
|
|
3182
|
+
});
|
|
3183
|
+
var RecordDraftChangeSchema = z.object({
|
|
3184
|
+
transaction_id: z.string(),
|
|
3185
|
+
kind: z.enum(["item_dropped", "attribute_changed", "attribute_removed", "attribute_added"]),
|
|
3186
|
+
attribute: z.string().optional(),
|
|
3187
|
+
has_current: z.boolean(),
|
|
3188
|
+
current: z.unknown(),
|
|
3189
|
+
proposed: z.unknown(),
|
|
3190
|
+
applied: z.unknown()
|
|
3191
|
+
});
|
|
3118
3192
|
z.object({
|
|
3119
3193
|
name: z.string(),
|
|
3120
3194
|
type: z.enum(["lookup", "unique", "search"]),
|
|
@@ -3134,11 +3208,14 @@ var DataClient = class {
|
|
|
3134
3208
|
recordDuplicates;
|
|
3135
3209
|
/** Per-entity indexes on the record table + the advisor's recommendations. */
|
|
3136
3210
|
entityIndexes;
|
|
3211
|
+
/** Proposed record writes awaiting a human (or reviewing agent) verdict. */
|
|
3212
|
+
recordDrafts;
|
|
3137
3213
|
constructor(client) {
|
|
3138
3214
|
this.records = new RecordServiceImpl(client);
|
|
3139
3215
|
this.queries = new QueryServiceImpl(client);
|
|
3140
3216
|
this.recordDuplicates = new RecordDuplicateServiceImpl(client);
|
|
3141
3217
|
this.entityIndexes = new EntityIndexServiceImpl(client);
|
|
3218
|
+
this.recordDrafts = new RecordDraftServiceImpl(client);
|
|
3142
3219
|
}
|
|
3143
3220
|
};
|
|
3144
3221
|
|
|
@@ -4344,6 +4421,6 @@ var WorkflowClient = class {
|
|
|
4344
4421
|
}
|
|
4345
4422
|
};
|
|
4346
4423
|
|
|
4347
|
-
export { AccountClient, ActionSchema, ActionScopeSchema, AgentClient, BatchTransactionErrorSchema, BatchUpsertRecordsResponseSchema, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, ConnectorClient, ConversationClient, DEFAULT_OPTIONS, DEFAULT_PORT, DataClient, DiscoveryClient, ERROR_PORT, ErrorCode, EventsClient, FunctionsClient, KnowledgeClient, KnowledgeLabelSchema, KnowledgeLinkSchema, KnowledgeNodeLabelSchema, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, KnowledgeNodeSearchResultSchema, KnowledgeRecordLinkSchema, NodeNeighborhoodSchema, OrganizationSchema, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, ProfileSchema, ProteosClient, ProteosError, RoleEntityPermissionSchema, RoleSchema, SCOPED_PLATFORM_ENTITY_SLUGS, SchedulingClient, StorageClient, UNASSIGNED_SPACE_SLUG, UserProfileAssignmentSchema, UserRoleAssignmentSchema, UserSchema, WorkflowClient, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isShareable, isUnauthorized, parseErrorResponse, resolveOptions, shareRouteFor, toQueryParams, toQueryString };
|
|
4424
|
+
export { AccountClient, ActionSchema, ActionScopeSchema, AgentClient, BatchTransactionErrorSchema, BatchUpsertRecordsResponseSchema, BatchUpsertTransactionResultSchema, BatchUpsertTransactionSchema, ConnectorClient, ConversationClient, DEFAULT_OPTIONS, DEFAULT_PORT, DataClient, DiscoveryClient, ERROR_PORT, ErrorCode, EventsClient, FunctionsClient, KnowledgeClient, KnowledgeLabelSchema, KnowledgeLinkSchema, KnowledgeNodeLabelSchema, KnowledgeNodeMetadataSchema, KnowledgeNodeSchema, KnowledgeNodeSearchResultSchema, KnowledgeRecordLinkSchema, NodeNeighborhoodSchema, OrganizationSchema, PLATFORM_ENTITIES, PLATFORM_ENTITY_SLUGS, ProfileSchema, ProteosClient, ProteosError, RecordDraftChangeSchema, RecordDraftItemResultSchema, RecordDraftItemSchema, RoleEntityPermissionSchema, RoleSchema, SCOPED_PLATFORM_ENTITY_SLUGS, SchedulingClient, StorageClient, UNASSIGNED_SPACE_SLUG, UserProfileAssignmentSchema, UserRoleAssignmentSchema, UserSchema, WorkflowClient, buildUrl, getDefaultErrorCode, isBadRequest, isConflict, isForbidden, isNotFound, isPlatformEntity, isProteosError, isShareable, isUnauthorized, parseErrorResponse, resolveOptions, shareRouteFor, toQueryParams, toQueryString };
|
|
4348
4425
|
//# sourceMappingURL=index.js.map
|
|
4349
4426
|
//# sourceMappingURL=index.js.map
|