@talqing/sdk 0.16.0 → 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 +167 -7
- 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 +167 -7
- 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 +176 -7
|
@@ -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
|
*
|
|
@@ -6319,7 +6352,7 @@ export type LLMModelSpec = {
|
|
|
6319
6352
|
/**
|
|
6320
6353
|
* Priority
|
|
6321
6354
|
*
|
|
6322
|
-
* Run this model in its provider's priority (low-latency) lane, where its catalog entry declares one. Steadies the worst case rather than the average, and costs
|
|
6355
|
+
* Run this model in its provider's priority (low-latency) lane, where its catalog entry declares one; on OpenRouter, any model (standard where no host sells one). Steadies the worst case rather than the average, and costs more per token.
|
|
6323
6356
|
*/
|
|
6324
6357
|
priority?: boolean;
|
|
6325
6358
|
/**
|
|
@@ -6356,7 +6389,7 @@ export type LLMModelSpecOverride = {
|
|
|
6356
6389
|
/**
|
|
6357
6390
|
* Priority
|
|
6358
6391
|
*
|
|
6359
|
-
* Run this model in its provider's priority (low-latency) lane, where its catalog entry declares one. Steadies the worst case rather than the average, and costs
|
|
6392
|
+
* Run this model in its provider's priority (low-latency) lane, where its catalog entry declares one; on OpenRouter, any model (standard where no host sells one). Steadies the worst case rather than the average, and costs more per token.
|
|
6360
6393
|
*/
|
|
6361
6394
|
priority?: boolean | null;
|
|
6362
6395
|
/**
|
|
@@ -6463,7 +6496,7 @@ export type LLMSpec = {
|
|
|
6463
6496
|
/**
|
|
6464
6497
|
* Priority
|
|
6465
6498
|
*
|
|
6466
|
-
* Run this model in its provider's priority (low-latency) lane, where its catalog entry declares one. Steadies the worst case rather than the average, and costs
|
|
6499
|
+
* Run this model in its provider's priority (low-latency) lane, where its catalog entry declares one; on OpenRouter, any model (standard where no host sells one). Steadies the worst case rather than the average, and costs more per token.
|
|
6467
6500
|
*/
|
|
6468
6501
|
priority?: boolean;
|
|
6469
6502
|
/**
|
|
@@ -6501,7 +6534,7 @@ export type LLMSpecOverride = {
|
|
|
6501
6534
|
/**
|
|
6502
6535
|
* Priority
|
|
6503
6536
|
*
|
|
6504
|
-
* Run this model in its provider's priority (low-latency) lane, where its catalog entry declares one. Steadies the worst case rather than the average, and costs
|
|
6537
|
+
* Run this model in its provider's priority (low-latency) lane, where its catalog entry declares one; on OpenRouter, any model (standard where no host sells one). Steadies the worst case rather than the average, and costs more per token.
|
|
6505
6538
|
*/
|
|
6506
6539
|
priority?: boolean | null;
|
|
6507
6540
|
/**
|
|
@@ -6696,6 +6729,10 @@ export type ModelHostResponse = {
|
|
|
6696
6729
|
* Quantization
|
|
6697
6730
|
*/
|
|
6698
6731
|
quantization: string | null;
|
|
6732
|
+
/**
|
|
6733
|
+
* Service Tier
|
|
6734
|
+
*/
|
|
6735
|
+
service_tier: 'priority' | 'ultrafast' | null;
|
|
6699
6736
|
/**
|
|
6700
6737
|
* Throughput P50
|
|
6701
6738
|
*/
|
|
@@ -8292,6 +8329,8 @@ export type PatchEmailBatchRequest = {
|
|
|
8292
8329
|
draft_retry_after_minutes?: number;
|
|
8293
8330
|
/**
|
|
8294
8331
|
* Field Map
|
|
8332
|
+
*
|
|
8333
|
+
* Task batches only.
|
|
8295
8334
|
*/
|
|
8296
8335
|
field_map?: FieldMap;
|
|
8297
8336
|
/**
|
|
@@ -8334,6 +8373,12 @@ export type PatchEmailBatchRequest = {
|
|
|
8334
8373
|
* Start At
|
|
8335
8374
|
*/
|
|
8336
8375
|
start_at?: string | null;
|
|
8376
|
+
/**
|
|
8377
|
+
* Template
|
|
8378
|
+
*
|
|
8379
|
+
* Template batches only.
|
|
8380
|
+
*/
|
|
8381
|
+
template?: EmailTemplate;
|
|
8337
8382
|
/**
|
|
8338
8383
|
* Timezone
|
|
8339
8384
|
*/
|
|
@@ -9885,6 +9930,25 @@ export type ReplyLatency = {
|
|
|
9885
9930
|
*/
|
|
9886
9931
|
total_ms: number;
|
|
9887
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
|
+
};
|
|
9888
9952
|
/**
|
|
9889
9953
|
* ResumeCallRequest
|
|
9890
9954
|
*/
|
|
@@ -10459,6 +10523,62 @@ export type SendMessageResponse = {
|
|
|
10459
10523
|
*/
|
|
10460
10524
|
turn_id: string;
|
|
10461
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
|
+
};
|
|
10462
10582
|
/**
|
|
10463
10583
|
* SendWhatsAppBatchRequest
|
|
10464
10584
|
*
|
|
@@ -18318,6 +18438,46 @@ export type EmailSendersListResults = {
|
|
|
18318
18438
|
200: VerifiedSendersResponse;
|
|
18319
18439
|
};
|
|
18320
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];
|
|
18321
18481
|
export type FaqsListData = {
|
|
18322
18482
|
body?: never;
|
|
18323
18483
|
path?: never;
|