@talqing/sdk 0.16.1 → 0.17.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/cjs/gen/index.d.ts +1 -1
- package/dist/cjs/gen/index.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.d.ts +29 -9
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +48 -10
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +159 -3
- package/dist/cjs/gen/types.gen.d.ts.map +1 -1
- package/dist/esm/gen/index.d.ts +1 -1
- package/dist/esm/gen/index.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.d.ts +29 -9
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +45 -8
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +159 -3
- package/dist/esm/gen/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/gen/index.ts +1 -1
- package/src/gen/sdk.gen.ts +51 -9
- package/src/gen/types.gen.ts +168 -3
|
@@ -3158,6 +3158,9 @@ export type CreateChatRequest = {
|
|
|
3158
3158
|
};
|
|
3159
3159
|
/**
|
|
3160
3160
|
* CreateEmailBatchRequest
|
|
3161
|
+
*
|
|
3162
|
+
* Each email is written either by an agent task (`task_id` + `field_map`) or by
|
|
3163
|
+
* a fixed `template` filled from the row's columns.
|
|
3161
3164
|
*/
|
|
3162
3165
|
export type CreateEmailBatchRequest = {
|
|
3163
3166
|
/**
|
|
@@ -3182,7 +3185,10 @@ export type CreateEmailBatchRequest = {
|
|
|
3182
3185
|
* Draft Retry After Minutes
|
|
3183
3186
|
*/
|
|
3184
3187
|
draft_retry_after_minutes?: number;
|
|
3185
|
-
|
|
3188
|
+
/**
|
|
3189
|
+
* With `task_id` only.
|
|
3190
|
+
*/
|
|
3191
|
+
field_map?: FieldMap | null;
|
|
3186
3192
|
/**
|
|
3187
3193
|
* From Email
|
|
3188
3194
|
*
|
|
@@ -3244,7 +3250,11 @@ export type CreateEmailBatchRequest = {
|
|
|
3244
3250
|
*
|
|
3245
3251
|
* The agent task that drafts each row.
|
|
3246
3252
|
*/
|
|
3247
|
-
task_id
|
|
3253
|
+
task_id?: string | null;
|
|
3254
|
+
/**
|
|
3255
|
+
* Instead of a task: no drafting, every row is ready at once.
|
|
3256
|
+
*/
|
|
3257
|
+
template?: EmailTemplate | null;
|
|
3248
3258
|
/**
|
|
3249
3259
|
* Timezone
|
|
3250
3260
|
*/
|
|
@@ -4185,7 +4195,7 @@ export type EmailBatchResponse = {
|
|
|
4185
4195
|
* Failure Reason
|
|
4186
4196
|
*/
|
|
4187
4197
|
failure_reason: string | null;
|
|
4188
|
-
field_map: FieldMap;
|
|
4198
|
+
field_map: FieldMap | null;
|
|
4189
4199
|
/**
|
|
4190
4200
|
* From Email
|
|
4191
4201
|
*/
|
|
@@ -4295,6 +4305,7 @@ export type EmailBatchResponse = {
|
|
|
4295
4305
|
* Task Name
|
|
4296
4306
|
*/
|
|
4297
4307
|
task_name: string | null;
|
|
4308
|
+
template: EmailTemplate | null;
|
|
4298
4309
|
/**
|
|
4299
4310
|
* Timezone
|
|
4300
4311
|
*/
|
|
@@ -4358,6 +4369,7 @@ export type EmailRecipientResponse = {
|
|
|
4358
4369
|
columns: {
|
|
4359
4370
|
[key: string]: unknown;
|
|
4360
4371
|
};
|
|
4372
|
+
email: ResolvedEmail | null;
|
|
4361
4373
|
/**
|
|
4362
4374
|
* Id
|
|
4363
4375
|
*/
|
|
@@ -4564,6 +4576,27 @@ export type EmailSendResponse = {
|
|
|
4564
4576
|
timezone: string;
|
|
4565
4577
|
window: TimeWindow | null;
|
|
4566
4578
|
};
|
|
4579
|
+
/**
|
|
4580
|
+
* EmailTemplate
|
|
4581
|
+
*
|
|
4582
|
+
* A fixed email, filled per row: `{{column}}` in subject or body takes that row's cell.
|
|
4583
|
+
*/
|
|
4584
|
+
export type EmailTemplate = {
|
|
4585
|
+
/**
|
|
4586
|
+
* Body
|
|
4587
|
+
*/
|
|
4588
|
+
body: string;
|
|
4589
|
+
/**
|
|
4590
|
+
* Subject
|
|
4591
|
+
*/
|
|
4592
|
+
subject: string;
|
|
4593
|
+
/**
|
|
4594
|
+
* To
|
|
4595
|
+
*
|
|
4596
|
+
* The list column holding the address.
|
|
4597
|
+
*/
|
|
4598
|
+
to: string;
|
|
4599
|
+
};
|
|
4567
4600
|
/**
|
|
4568
4601
|
* EndCallConfig
|
|
4569
4602
|
*
|
|
@@ -8296,6 +8329,8 @@ export type PatchEmailBatchRequest = {
|
|
|
8296
8329
|
draft_retry_after_minutes?: number;
|
|
8297
8330
|
/**
|
|
8298
8331
|
* Field Map
|
|
8332
|
+
*
|
|
8333
|
+
* Task batches only.
|
|
8299
8334
|
*/
|
|
8300
8335
|
field_map?: FieldMap;
|
|
8301
8336
|
/**
|
|
@@ -8338,6 +8373,12 @@ export type PatchEmailBatchRequest = {
|
|
|
8338
8373
|
* Start At
|
|
8339
8374
|
*/
|
|
8340
8375
|
start_at?: string | null;
|
|
8376
|
+
/**
|
|
8377
|
+
* Template
|
|
8378
|
+
*
|
|
8379
|
+
* Template batches only.
|
|
8380
|
+
*/
|
|
8381
|
+
template?: EmailTemplate;
|
|
8341
8382
|
/**
|
|
8342
8383
|
* Timezone
|
|
8343
8384
|
*/
|
|
@@ -9889,6 +9930,25 @@ export type ReplyLatency = {
|
|
|
9889
9930
|
*/
|
|
9890
9931
|
total_ms: number;
|
|
9891
9932
|
};
|
|
9933
|
+
/**
|
|
9934
|
+
* ResolvedEmail
|
|
9935
|
+
*
|
|
9936
|
+
* The email this row sends, as it stands now.
|
|
9937
|
+
*/
|
|
9938
|
+
export type ResolvedEmail = {
|
|
9939
|
+
/**
|
|
9940
|
+
* Body
|
|
9941
|
+
*/
|
|
9942
|
+
body: string;
|
|
9943
|
+
/**
|
|
9944
|
+
* Subject
|
|
9945
|
+
*/
|
|
9946
|
+
subject: string;
|
|
9947
|
+
/**
|
|
9948
|
+
* To
|
|
9949
|
+
*/
|
|
9950
|
+
to: string;
|
|
9951
|
+
};
|
|
9892
9952
|
/**
|
|
9893
9953
|
* ResumeCallRequest
|
|
9894
9954
|
*/
|
|
@@ -10463,6 +10523,62 @@ export type SendMessageResponse = {
|
|
|
10463
10523
|
*/
|
|
10464
10524
|
turn_id: string;
|
|
10465
10525
|
};
|
|
10526
|
+
/**
|
|
10527
|
+
* SendTestEmailRequest
|
|
10528
|
+
*
|
|
10529
|
+
* One email to yourself, filled from `vars` the way a template batch fills a row.
|
|
10530
|
+
*/
|
|
10531
|
+
export type SendTestEmailRequest = {
|
|
10532
|
+
/**
|
|
10533
|
+
* Body
|
|
10534
|
+
*/
|
|
10535
|
+
body: string;
|
|
10536
|
+
/**
|
|
10537
|
+
* Body Format
|
|
10538
|
+
*/
|
|
10539
|
+
body_format?: 'text' | 'html';
|
|
10540
|
+
/**
|
|
10541
|
+
* From Email
|
|
10542
|
+
*/
|
|
10543
|
+
from_email: string;
|
|
10544
|
+
/**
|
|
10545
|
+
* From Name
|
|
10546
|
+
*/
|
|
10547
|
+
from_name?: string | null;
|
|
10548
|
+
/**
|
|
10549
|
+
* Integration Id
|
|
10550
|
+
*/
|
|
10551
|
+
integration_id: string;
|
|
10552
|
+
/**
|
|
10553
|
+
* Reply To
|
|
10554
|
+
*/
|
|
10555
|
+
reply_to?: string | null;
|
|
10556
|
+
/**
|
|
10557
|
+
* Subject
|
|
10558
|
+
*/
|
|
10559
|
+
subject: string;
|
|
10560
|
+
/**
|
|
10561
|
+
* Vars
|
|
10562
|
+
*
|
|
10563
|
+
* One row's cells.
|
|
10564
|
+
*/
|
|
10565
|
+
vars?: {
|
|
10566
|
+
[key: string]: string;
|
|
10567
|
+
};
|
|
10568
|
+
};
|
|
10569
|
+
/**
|
|
10570
|
+
* SendTestEmailResponse
|
|
10571
|
+
*/
|
|
10572
|
+
export type SendTestEmailResponse = {
|
|
10573
|
+
/**
|
|
10574
|
+
* Provider Message Id
|
|
10575
|
+
*/
|
|
10576
|
+
provider_message_id: string;
|
|
10577
|
+
/**
|
|
10578
|
+
* To
|
|
10579
|
+
*/
|
|
10580
|
+
to: string;
|
|
10581
|
+
};
|
|
10466
10582
|
/**
|
|
10467
10583
|
* SendWhatsAppBatchRequest
|
|
10468
10584
|
*
|
|
@@ -18322,6 +18438,46 @@ export type EmailSendersListResults = {
|
|
|
18322
18438
|
200: VerifiedSendersResponse;
|
|
18323
18439
|
};
|
|
18324
18440
|
export type EmailSendersListResult = EmailSendersListResults[keyof EmailSendersListResults];
|
|
18441
|
+
export type EmailTestSendsCreateData = {
|
|
18442
|
+
body: SendTestEmailRequest;
|
|
18443
|
+
path?: never;
|
|
18444
|
+
query?: never;
|
|
18445
|
+
url: '/v1/email/test-sends';
|
|
18446
|
+
};
|
|
18447
|
+
export type EmailTestSendsCreateErrors = {
|
|
18448
|
+
/**
|
|
18449
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
18450
|
+
*/
|
|
18451
|
+
400: ErrorResponse;
|
|
18452
|
+
/**
|
|
18453
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18454
|
+
*/
|
|
18455
|
+
401: ErrorResponse;
|
|
18456
|
+
/**
|
|
18457
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
18458
|
+
*/
|
|
18459
|
+
403: ErrorResponse;
|
|
18460
|
+
/**
|
|
18461
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
18462
|
+
*/
|
|
18463
|
+
409: ErrorResponse;
|
|
18464
|
+
/**
|
|
18465
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
18466
|
+
*/
|
|
18467
|
+
422: ErrorResponse;
|
|
18468
|
+
/**
|
|
18469
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
18470
|
+
*/
|
|
18471
|
+
default: ErrorResponse;
|
|
18472
|
+
};
|
|
18473
|
+
export type EmailTestSendsCreateError = EmailTestSendsCreateErrors[keyof EmailTestSendsCreateErrors];
|
|
18474
|
+
export type EmailTestSendsCreateResults = {
|
|
18475
|
+
/**
|
|
18476
|
+
* Successful Response
|
|
18477
|
+
*/
|
|
18478
|
+
200: SendTestEmailResponse;
|
|
18479
|
+
};
|
|
18480
|
+
export type EmailTestSendsCreateResult = EmailTestSendsCreateResults[keyof EmailTestSendsCreateResults];
|
|
18325
18481
|
export type FaqsListData = {
|
|
18326
18482
|
body?: never;
|
|
18327
18483
|
path?: never;
|