@talqing/sdk 0.11.0 → 0.12.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 +54 -36
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +110 -36
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +818 -225
- 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 +54 -36
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +108 -34
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +818 -225
- 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 +136 -48
- package/src/gen/types.gen.ts +843 -221
|
@@ -3069,7 +3069,7 @@ export type CreateEmailSendRequest = {
|
|
|
3069
3069
|
/**
|
|
3070
3070
|
* From Email
|
|
3071
3071
|
*/
|
|
3072
|
-
from_email?: string
|
|
3072
|
+
from_email?: string;
|
|
3073
3073
|
/**
|
|
3074
3074
|
* From Name
|
|
3075
3075
|
*/
|
|
@@ -3091,7 +3091,7 @@ export type CreateEmailSendRequest = {
|
|
|
3091
3091
|
/**
|
|
3092
3092
|
* Send Attempts
|
|
3093
3093
|
*/
|
|
3094
|
-
send_attempts?: number
|
|
3094
|
+
send_attempts?: number;
|
|
3095
3095
|
/**
|
|
3096
3096
|
* Send Daily Cap
|
|
3097
3097
|
*/
|
|
@@ -3103,11 +3103,11 @@ export type CreateEmailSendRequest = {
|
|
|
3103
3103
|
/**
|
|
3104
3104
|
* Send Gap Seconds
|
|
3105
3105
|
*/
|
|
3106
|
-
send_gap_seconds?: number
|
|
3106
|
+
send_gap_seconds?: number;
|
|
3107
3107
|
/**
|
|
3108
3108
|
* Send Retry After Minutes
|
|
3109
3109
|
*/
|
|
3110
|
-
send_retry_after_minutes?: number
|
|
3110
|
+
send_retry_after_minutes?: number;
|
|
3111
3111
|
/**
|
|
3112
3112
|
* Start At
|
|
3113
3113
|
*/
|
|
@@ -3115,7 +3115,7 @@ export type CreateEmailSendRequest = {
|
|
|
3115
3115
|
/**
|
|
3116
3116
|
* Timezone
|
|
3117
3117
|
*/
|
|
3118
|
-
timezone?: string
|
|
3118
|
+
timezone?: string;
|
|
3119
3119
|
window?: TimeWindow | null;
|
|
3120
3120
|
};
|
|
3121
3121
|
/**
|
|
@@ -3272,6 +3272,96 @@ export type CreateStreamConnectionRequest = {
|
|
|
3272
3272
|
export type CreateTaskRequest = {
|
|
3273
3273
|
config: TaskConfig;
|
|
3274
3274
|
};
|
|
3275
|
+
/**
|
|
3276
|
+
* CreateTaskRunBatchRequest
|
|
3277
|
+
*/
|
|
3278
|
+
export type CreateTaskRunBatchRequest = {
|
|
3279
|
+
/**
|
|
3280
|
+
* Runs
|
|
3281
|
+
*/
|
|
3282
|
+
runs: Array<RunItem>;
|
|
3283
|
+
/**
|
|
3284
|
+
* A complete task definition, run and stored nowhere else.
|
|
3285
|
+
*/
|
|
3286
|
+
task?: TaskConfig | null;
|
|
3287
|
+
/**
|
|
3288
|
+
* Task Id
|
|
3289
|
+
*
|
|
3290
|
+
* A task in this workspace. Exclusive with `task`.
|
|
3291
|
+
*/
|
|
3292
|
+
task_id?: string | null;
|
|
3293
|
+
/**
|
|
3294
|
+
* Changes for this run only: objects deep-merge, lists replace, null clears.
|
|
3295
|
+
*/
|
|
3296
|
+
task_override?: TaskPatch | null;
|
|
3297
|
+
/**
|
|
3298
|
+
* Task Version
|
|
3299
|
+
*
|
|
3300
|
+
* Which version of `task_id` to run. Omit for the published one; `"draft"` runs the unpublished config, held to the publish checks.
|
|
3301
|
+
*/
|
|
3302
|
+
task_version?: number | 'draft' | null;
|
|
3303
|
+
};
|
|
3304
|
+
/**
|
|
3305
|
+
* CreateTaskRunRequest
|
|
3306
|
+
*/
|
|
3307
|
+
export type CreateTaskRunRequest = {
|
|
3308
|
+
/**
|
|
3309
|
+
* Background
|
|
3310
|
+
*
|
|
3311
|
+
* Queue the run and return at once (202) instead of waiting for its result.
|
|
3312
|
+
*/
|
|
3313
|
+
background?: boolean;
|
|
3314
|
+
/**
|
|
3315
|
+
* Files
|
|
3316
|
+
*
|
|
3317
|
+
* One PDF per declared `file` input, by name.
|
|
3318
|
+
*/
|
|
3319
|
+
files?: {
|
|
3320
|
+
[key: string]: FileInput;
|
|
3321
|
+
};
|
|
3322
|
+
/**
|
|
3323
|
+
* Idempotency Key
|
|
3324
|
+
*
|
|
3325
|
+
* Resending the same key returns the existing run instead of starting another.
|
|
3326
|
+
*/
|
|
3327
|
+
idempotency_key?: string | null;
|
|
3328
|
+
/**
|
|
3329
|
+
* Metadata
|
|
3330
|
+
*
|
|
3331
|
+
* Up to 16 string labels of your own, for filtering.
|
|
3332
|
+
*/
|
|
3333
|
+
metadata?: {
|
|
3334
|
+
[key: string]: unknown | string;
|
|
3335
|
+
};
|
|
3336
|
+
/**
|
|
3337
|
+
* A complete task definition, run and stored nowhere else.
|
|
3338
|
+
*/
|
|
3339
|
+
task?: TaskConfig | null;
|
|
3340
|
+
/**
|
|
3341
|
+
* Task Id
|
|
3342
|
+
*
|
|
3343
|
+
* A task in this workspace. Exclusive with `task`.
|
|
3344
|
+
*/
|
|
3345
|
+
task_id?: string | null;
|
|
3346
|
+
/**
|
|
3347
|
+
* Changes for this run only: objects deep-merge, lists replace, null clears.
|
|
3348
|
+
*/
|
|
3349
|
+
task_override?: TaskPatch | null;
|
|
3350
|
+
/**
|
|
3351
|
+
* Task Version
|
|
3352
|
+
*
|
|
3353
|
+
* Which version of `task_id` to run. Omit for the published one; `"draft"` runs the unpublished config, held to the publish checks.
|
|
3354
|
+
*/
|
|
3355
|
+
task_version?: number | 'draft' | null;
|
|
3356
|
+
/**
|
|
3357
|
+
* Vars
|
|
3358
|
+
*
|
|
3359
|
+
* Values for the task's text inputs, by name. Undeclared names are refused.
|
|
3360
|
+
*/
|
|
3361
|
+
vars?: {
|
|
3362
|
+
[key: string]: string;
|
|
3363
|
+
};
|
|
3364
|
+
};
|
|
3275
3365
|
/**
|
|
3276
3366
|
* CreateTelephonyAccountRequest
|
|
3277
3367
|
*/
|
|
@@ -3360,11 +3450,11 @@ export type CreateWhatsAppBatchRequest = {
|
|
|
3360
3450
|
*
|
|
3361
3451
|
* Sends per row, the first included, while Meta's per-person limit holds it back.
|
|
3362
3452
|
*/
|
|
3363
|
-
delivery_attempts?: number
|
|
3453
|
+
delivery_attempts?: number;
|
|
3364
3454
|
/**
|
|
3365
3455
|
* Delivery Retry After Hours
|
|
3366
3456
|
*/
|
|
3367
|
-
delivery_retry_after_hours?: number
|
|
3457
|
+
delivery_retry_after_hours?: number;
|
|
3368
3458
|
/**
|
|
3369
3459
|
* Integration Id
|
|
3370
3460
|
*
|
|
@@ -3392,7 +3482,7 @@ export type CreateWhatsAppBatchRequest = {
|
|
|
3392
3482
|
/**
|
|
3393
3483
|
* Send Gap Seconds
|
|
3394
3484
|
*/
|
|
3395
|
-
send_gap_seconds?: number
|
|
3485
|
+
send_gap_seconds?: number;
|
|
3396
3486
|
/**
|
|
3397
3487
|
* Template Id
|
|
3398
3488
|
*
|
|
@@ -3402,7 +3492,7 @@ export type CreateWhatsAppBatchRequest = {
|
|
|
3402
3492
|
/**
|
|
3403
3493
|
* Timezone
|
|
3404
3494
|
*/
|
|
3405
|
-
timezone?: string
|
|
3495
|
+
timezone?: string;
|
|
3406
3496
|
/**
|
|
3407
3497
|
* To Column
|
|
3408
3498
|
*
|
|
@@ -3498,6 +3588,14 @@ export type CreditLedgerEntryResponse = {
|
|
|
3498
3588
|
* Balance After
|
|
3499
3589
|
*/
|
|
3500
3590
|
balance_after: number;
|
|
3591
|
+
/**
|
|
3592
|
+
* Channel
|
|
3593
|
+
*/
|
|
3594
|
+
channel: 'voice' | 'video' | 'text' | null;
|
|
3595
|
+
/**
|
|
3596
|
+
* Conversation Id
|
|
3597
|
+
*/
|
|
3598
|
+
conversation_id: string | null;
|
|
3501
3599
|
/**
|
|
3502
3600
|
* Created At
|
|
3503
3601
|
*/
|
|
@@ -3553,6 +3651,32 @@ export type DeleteRecipientsRequest = {
|
|
|
3553
3651
|
*/
|
|
3554
3652
|
recipient_ids: Array<string>;
|
|
3555
3653
|
};
|
|
3654
|
+
/**
|
|
3655
|
+
* DeleteTaskRunsRequest
|
|
3656
|
+
*/
|
|
3657
|
+
export type DeleteTaskRunsRequest = {
|
|
3658
|
+
/**
|
|
3659
|
+
* Metadata
|
|
3660
|
+
*
|
|
3661
|
+
* Runs whose metadata contains all of these pairs.
|
|
3662
|
+
*/
|
|
3663
|
+
metadata: {
|
|
3664
|
+
[key: string]: unknown | string;
|
|
3665
|
+
};
|
|
3666
|
+
/**
|
|
3667
|
+
* Task Id
|
|
3668
|
+
*/
|
|
3669
|
+
task_id?: string | null;
|
|
3670
|
+
};
|
|
3671
|
+
/**
|
|
3672
|
+
* DeleteTaskRunsResponse
|
|
3673
|
+
*/
|
|
3674
|
+
export type DeleteTaskRunsResponse = {
|
|
3675
|
+
/**
|
|
3676
|
+
* Count
|
|
3677
|
+
*/
|
|
3678
|
+
count: number;
|
|
3679
|
+
};
|
|
3556
3680
|
/**
|
|
3557
3681
|
* DeliveryError
|
|
3558
3682
|
*
|
|
@@ -4418,6 +4542,29 @@ export type FieldMap = {
|
|
|
4418
4542
|
*/
|
|
4419
4543
|
to: string;
|
|
4420
4544
|
};
|
|
4545
|
+
/**
|
|
4546
|
+
* FileInput
|
|
4547
|
+
*
|
|
4548
|
+
* One PDF for a `file` input: a public https URL, or the bytes as a data URL.
|
|
4549
|
+
*/
|
|
4550
|
+
export type FileInput = {
|
|
4551
|
+
/**
|
|
4552
|
+
* Data Url
|
|
4553
|
+
*
|
|
4554
|
+
* `data:application/pdf;base64,<bytes>`, up to 20 MB decoded.
|
|
4555
|
+
*/
|
|
4556
|
+
data_url?: string | null;
|
|
4557
|
+
/**
|
|
4558
|
+
* Filename
|
|
4559
|
+
*/
|
|
4560
|
+
filename?: string | null;
|
|
4561
|
+
/**
|
|
4562
|
+
* Url
|
|
4563
|
+
*
|
|
4564
|
+
* An https URL the run downloads.
|
|
4565
|
+
*/
|
|
4566
|
+
url?: string | null;
|
|
4567
|
+
};
|
|
4421
4568
|
/**
|
|
4422
4569
|
* FixedDailyCap
|
|
4423
4570
|
*
|
|
@@ -7439,9 +7586,9 @@ export type PageTaskResponse = {
|
|
|
7439
7586
|
offset: number;
|
|
7440
7587
|
};
|
|
7441
7588
|
/**
|
|
7442
|
-
* Page[
|
|
7589
|
+
* Page[TaskRunSummary]
|
|
7443
7590
|
*/
|
|
7444
|
-
export type
|
|
7591
|
+
export type PageTaskRunSummary = {
|
|
7445
7592
|
/**
|
|
7446
7593
|
* Has More
|
|
7447
7594
|
*/
|
|
@@ -7449,7 +7596,7 @@ export type PageTaskRunResponse = {
|
|
|
7449
7596
|
/**
|
|
7450
7597
|
* Items
|
|
7451
7598
|
*/
|
|
7452
|
-
items: Array<
|
|
7599
|
+
items: Array<TaskRunSummary>;
|
|
7453
7600
|
/**
|
|
7454
7601
|
* Limit
|
|
7455
7602
|
*/
|
|
@@ -7601,7 +7748,7 @@ export type PatchCallBatchRequest = {
|
|
|
7601
7748
|
/**
|
|
7602
7749
|
* Agent Id
|
|
7603
7750
|
*/
|
|
7604
|
-
agent_id?: string
|
|
7751
|
+
agent_id?: string;
|
|
7605
7752
|
calling_window?: TimeWindow | null;
|
|
7606
7753
|
/**
|
|
7607
7754
|
* Dial Daily Cap
|
|
@@ -7614,27 +7761,27 @@ export type PatchCallBatchRequest = {
|
|
|
7614
7761
|
/**
|
|
7615
7762
|
* Dial Gap Seconds
|
|
7616
7763
|
*/
|
|
7617
|
-
dial_gap_seconds?: number
|
|
7764
|
+
dial_gap_seconds?: number;
|
|
7618
7765
|
/**
|
|
7619
7766
|
* From Phone Number Id
|
|
7620
7767
|
*/
|
|
7621
|
-
from_phone_number_id?: string
|
|
7768
|
+
from_phone_number_id?: string;
|
|
7622
7769
|
/**
|
|
7623
7770
|
* Max Attempts
|
|
7624
7771
|
*/
|
|
7625
|
-
max_attempts?: number
|
|
7772
|
+
max_attempts?: number;
|
|
7626
7773
|
/**
|
|
7627
7774
|
* Max Concurrency
|
|
7628
7775
|
*/
|
|
7629
|
-
max_concurrency?: number
|
|
7776
|
+
max_concurrency?: number;
|
|
7630
7777
|
/**
|
|
7631
7778
|
* Name
|
|
7632
7779
|
*/
|
|
7633
|
-
name?: string
|
|
7780
|
+
name?: string;
|
|
7634
7781
|
/**
|
|
7635
7782
|
* Retry After Minutes
|
|
7636
7783
|
*/
|
|
7637
|
-
retry_after_minutes?: number
|
|
7784
|
+
retry_after_minutes?: number;
|
|
7638
7785
|
/**
|
|
7639
7786
|
* Start At
|
|
7640
7787
|
*/
|
|
@@ -7642,7 +7789,7 @@ export type PatchCallBatchRequest = {
|
|
|
7642
7789
|
/**
|
|
7643
7790
|
* Timezone
|
|
7644
7791
|
*/
|
|
7645
|
-
timezone?: string
|
|
7792
|
+
timezone?: string;
|
|
7646
7793
|
};
|
|
7647
7794
|
/**
|
|
7648
7795
|
* PatchConversationRequest
|
|
@@ -7653,7 +7800,7 @@ export type PatchConversationRequest = {
|
|
|
7653
7800
|
*/
|
|
7654
7801
|
metadata?: {
|
|
7655
7802
|
[key: string]: unknown;
|
|
7656
|
-
}
|
|
7803
|
+
};
|
|
7657
7804
|
/**
|
|
7658
7805
|
* Summary
|
|
7659
7806
|
*/
|
|
@@ -7663,7 +7810,7 @@ export type PatchConversationRequest = {
|
|
|
7663
7810
|
*/
|
|
7664
7811
|
userdata?: {
|
|
7665
7812
|
[key: string]: unknown;
|
|
7666
|
-
}
|
|
7813
|
+
};
|
|
7667
7814
|
};
|
|
7668
7815
|
/**
|
|
7669
7816
|
* PatchEmailBatchRequest
|
|
@@ -7684,28 +7831,31 @@ export type PatchEmailBatchRequest = {
|
|
|
7684
7831
|
/**
|
|
7685
7832
|
* Body Format
|
|
7686
7833
|
*/
|
|
7687
|
-
body_format?: 'text' | 'html'
|
|
7834
|
+
body_format?: 'text' | 'html';
|
|
7688
7835
|
/**
|
|
7689
7836
|
* Draft Attempts
|
|
7690
7837
|
*/
|
|
7691
|
-
draft_attempts?: number
|
|
7838
|
+
draft_attempts?: number;
|
|
7692
7839
|
/**
|
|
7693
7840
|
* Draft Concurrency
|
|
7694
7841
|
*/
|
|
7695
|
-
draft_concurrency?: number
|
|
7842
|
+
draft_concurrency?: number;
|
|
7696
7843
|
/**
|
|
7697
7844
|
* Draft Gap Seconds
|
|
7698
7845
|
*/
|
|
7699
|
-
draft_gap_seconds?: number
|
|
7846
|
+
draft_gap_seconds?: number;
|
|
7700
7847
|
/**
|
|
7701
7848
|
* Draft Retry After Minutes
|
|
7702
7849
|
*/
|
|
7703
|
-
draft_retry_after_minutes?: number
|
|
7704
|
-
|
|
7850
|
+
draft_retry_after_minutes?: number;
|
|
7851
|
+
/**
|
|
7852
|
+
* Field Map
|
|
7853
|
+
*/
|
|
7854
|
+
field_map?: FieldMap;
|
|
7705
7855
|
/**
|
|
7706
7856
|
* From Email
|
|
7707
7857
|
*/
|
|
7708
|
-
from_email?: string
|
|
7858
|
+
from_email?: string;
|
|
7709
7859
|
/**
|
|
7710
7860
|
* From Name
|
|
7711
7861
|
*/
|
|
@@ -7713,7 +7863,7 @@ export type PatchEmailBatchRequest = {
|
|
|
7713
7863
|
/**
|
|
7714
7864
|
* Name
|
|
7715
7865
|
*/
|
|
7716
|
-
name?: string
|
|
7866
|
+
name?: string;
|
|
7717
7867
|
/**
|
|
7718
7868
|
* Reply To
|
|
7719
7869
|
*/
|
|
@@ -7721,7 +7871,7 @@ export type PatchEmailBatchRequest = {
|
|
|
7721
7871
|
/**
|
|
7722
7872
|
* Send Attempts
|
|
7723
7873
|
*/
|
|
7724
|
-
send_attempts?: number
|
|
7874
|
+
send_attempts?: number;
|
|
7725
7875
|
/**
|
|
7726
7876
|
* Send Daily Cap
|
|
7727
7877
|
*/
|
|
@@ -7733,11 +7883,11 @@ export type PatchEmailBatchRequest = {
|
|
|
7733
7883
|
/**
|
|
7734
7884
|
* Send Gap Seconds
|
|
7735
7885
|
*/
|
|
7736
|
-
send_gap_seconds?: number
|
|
7886
|
+
send_gap_seconds?: number;
|
|
7737
7887
|
/**
|
|
7738
7888
|
* Send Retry After Minutes
|
|
7739
7889
|
*/
|
|
7740
|
-
send_retry_after_minutes?: number
|
|
7890
|
+
send_retry_after_minutes?: number;
|
|
7741
7891
|
/**
|
|
7742
7892
|
* Start At
|
|
7743
7893
|
*/
|
|
@@ -7745,7 +7895,7 @@ export type PatchEmailBatchRequest = {
|
|
|
7745
7895
|
/**
|
|
7746
7896
|
* Timezone
|
|
7747
7897
|
*/
|
|
7748
|
-
timezone?: string
|
|
7898
|
+
timezone?: string;
|
|
7749
7899
|
window?: TimeWindow | null;
|
|
7750
7900
|
};
|
|
7751
7901
|
/**
|
|
@@ -7780,7 +7930,7 @@ export type PatchEmailSendRequest = {
|
|
|
7780
7930
|
/**
|
|
7781
7931
|
* Send Attempts
|
|
7782
7932
|
*/
|
|
7783
|
-
send_attempts?: number
|
|
7933
|
+
send_attempts?: number;
|
|
7784
7934
|
/**
|
|
7785
7935
|
* Send Daily Cap
|
|
7786
7936
|
*/
|
|
@@ -7792,11 +7942,11 @@ export type PatchEmailSendRequest = {
|
|
|
7792
7942
|
/**
|
|
7793
7943
|
* Send Gap Seconds
|
|
7794
7944
|
*/
|
|
7795
|
-
send_gap_seconds?: number
|
|
7945
|
+
send_gap_seconds?: number;
|
|
7796
7946
|
/**
|
|
7797
7947
|
* Send Retry After Minutes
|
|
7798
7948
|
*/
|
|
7799
|
-
send_retry_after_minutes?: number
|
|
7949
|
+
send_retry_after_minutes?: number;
|
|
7800
7950
|
/**
|
|
7801
7951
|
* Start At
|
|
7802
7952
|
*/
|
|
@@ -7804,7 +7954,7 @@ export type PatchEmailSendRequest = {
|
|
|
7804
7954
|
/**
|
|
7805
7955
|
* Timezone
|
|
7806
7956
|
*/
|
|
7807
|
-
timezone?: string
|
|
7957
|
+
timezone?: string;
|
|
7808
7958
|
window?: TimeWindow | null;
|
|
7809
7959
|
};
|
|
7810
7960
|
/**
|
|
@@ -7814,47 +7964,47 @@ export type PatchIntegrationRequest = {
|
|
|
7814
7964
|
/**
|
|
7815
7965
|
* Allowed Tools
|
|
7816
7966
|
*/
|
|
7817
|
-
allowed_tools?: Array<string
|
|
7967
|
+
allowed_tools?: Array<string>;
|
|
7818
7968
|
/**
|
|
7819
7969
|
* Credentials Ref
|
|
7820
7970
|
*/
|
|
7821
|
-
credentials_ref?: string
|
|
7971
|
+
credentials_ref?: string;
|
|
7822
7972
|
/**
|
|
7823
7973
|
* Display Name
|
|
7824
7974
|
*/
|
|
7825
|
-
display_name?: string
|
|
7975
|
+
display_name?: string;
|
|
7826
7976
|
/**
|
|
7827
7977
|
* Mcp Config
|
|
7828
7978
|
*/
|
|
7829
7979
|
mcp_config?: {
|
|
7830
7980
|
[key: string]: unknown;
|
|
7831
|
-
}
|
|
7981
|
+
};
|
|
7832
7982
|
/**
|
|
7833
7983
|
* Metadata
|
|
7834
7984
|
*/
|
|
7835
7985
|
metadata?: {
|
|
7836
7986
|
[key: string]: unknown;
|
|
7837
|
-
}
|
|
7987
|
+
};
|
|
7838
7988
|
/**
|
|
7839
7989
|
* Provider Account Info
|
|
7840
7990
|
*/
|
|
7841
7991
|
provider_account_info?: {
|
|
7842
7992
|
[key: string]: unknown;
|
|
7843
|
-
}
|
|
7993
|
+
};
|
|
7844
7994
|
/**
|
|
7845
7995
|
* Status
|
|
7846
7996
|
*/
|
|
7847
|
-
status?: 'active' | 'disabled' | 'needs_reconnect' | 'error'
|
|
7997
|
+
status?: 'active' | 'disabled' | 'needs_reconnect' | 'error';
|
|
7848
7998
|
/**
|
|
7849
7999
|
* Tools Namespace
|
|
7850
8000
|
*/
|
|
7851
|
-
tools_namespace?: string
|
|
8001
|
+
tools_namespace?: string;
|
|
7852
8002
|
/**
|
|
7853
8003
|
* Webhook Config
|
|
7854
8004
|
*/
|
|
7855
8005
|
webhook_config?: {
|
|
7856
8006
|
[key: string]: unknown;
|
|
7857
|
-
}
|
|
8007
|
+
};
|
|
7858
8008
|
};
|
|
7859
8009
|
/**
|
|
7860
8010
|
* PatchIntegrationTriggerRequest
|
|
@@ -7867,13 +8017,13 @@ export type PatchIntegrationTriggerRequest = {
|
|
|
7867
8017
|
/**
|
|
7868
8018
|
* Enabled
|
|
7869
8019
|
*/
|
|
7870
|
-
enabled?: boolean
|
|
8020
|
+
enabled?: boolean;
|
|
7871
8021
|
/**
|
|
7872
8022
|
* Metadata
|
|
7873
8023
|
*/
|
|
7874
8024
|
metadata?: {
|
|
7875
8025
|
[key: string]: unknown;
|
|
7876
|
-
}
|
|
8026
|
+
};
|
|
7877
8027
|
/**
|
|
7878
8028
|
* Provider Subscription Ref
|
|
7879
8029
|
*/
|
|
@@ -7881,15 +8031,15 @@ export type PatchIntegrationTriggerRequest = {
|
|
|
7881
8031
|
/**
|
|
7882
8032
|
* Reply Mode
|
|
7883
8033
|
*/
|
|
7884
|
-
reply_mode?: 'public_reply' | 'internal_note' | 'none'
|
|
8034
|
+
reply_mode?: 'public_reply' | 'internal_note' | 'none';
|
|
7885
8035
|
/**
|
|
7886
8036
|
* Status
|
|
7887
8037
|
*/
|
|
7888
|
-
status?: 'active' | 'disabled' | 'needs_setup' | 'error'
|
|
8038
|
+
status?: 'active' | 'disabled' | 'needs_setup' | 'error';
|
|
7889
8039
|
/**
|
|
7890
8040
|
* Trigger Type
|
|
7891
8041
|
*/
|
|
7892
|
-
trigger_type?: 'telegram.message.inbound' | 'whatsapp.message.inbound' | 'whatsapp.call.inbound'
|
|
8042
|
+
trigger_type?: 'telegram.message.inbound' | 'whatsapp.message.inbound' | 'whatsapp.call.inbound';
|
|
7893
8043
|
};
|
|
7894
8044
|
/**
|
|
7895
8045
|
* PatchPhoneNumberRequest
|
|
@@ -7898,11 +8048,11 @@ export type PatchPhoneNumberRequest = {
|
|
|
7898
8048
|
/**
|
|
7899
8049
|
* Can Inbound
|
|
7900
8050
|
*/
|
|
7901
|
-
can_inbound?: boolean
|
|
8051
|
+
can_inbound?: boolean;
|
|
7902
8052
|
/**
|
|
7903
8053
|
* Can Outbound
|
|
7904
8054
|
*/
|
|
7905
|
-
can_outbound?: boolean
|
|
8055
|
+
can_outbound?: boolean;
|
|
7906
8056
|
/**
|
|
7907
8057
|
* Label
|
|
7908
8058
|
*/
|
|
@@ -7910,11 +8060,11 @@ export type PatchPhoneNumberRequest = {
|
|
|
7910
8060
|
/**
|
|
7911
8061
|
* Region
|
|
7912
8062
|
*/
|
|
7913
|
-
region?: 'us' | 'in'
|
|
8063
|
+
region?: 'us' | 'in';
|
|
7914
8064
|
/**
|
|
7915
8065
|
* Status
|
|
7916
8066
|
*/
|
|
7917
|
-
status?: 'disabled' | 'pending'
|
|
8067
|
+
status?: 'disabled' | 'pending';
|
|
7918
8068
|
};
|
|
7919
8069
|
/**
|
|
7920
8070
|
* PatchStreamConnectionRequest
|
|
@@ -7923,19 +8073,19 @@ export type PatchStreamConnectionRequest = {
|
|
|
7923
8073
|
/**
|
|
7924
8074
|
* Agent Id
|
|
7925
8075
|
*/
|
|
7926
|
-
agent_id?: string
|
|
8076
|
+
agent_id?: string;
|
|
7927
8077
|
/**
|
|
7928
8078
|
* Name
|
|
7929
8079
|
*/
|
|
7930
|
-
name?: string
|
|
8080
|
+
name?: string;
|
|
7931
8081
|
/**
|
|
7932
8082
|
* Region
|
|
7933
8083
|
*/
|
|
7934
|
-
region?: 'us' | 'in'
|
|
8084
|
+
region?: 'us' | 'in';
|
|
7935
8085
|
/**
|
|
7936
8086
|
* Status
|
|
7937
8087
|
*/
|
|
7938
|
-
status?: 'active' | 'disabled'
|
|
8088
|
+
status?: 'active' | 'disabled';
|
|
7939
8089
|
};
|
|
7940
8090
|
/**
|
|
7941
8091
|
* PatchTaskRequest
|
|
@@ -7955,29 +8105,29 @@ export type PatchTelephonyAccountRequest = {
|
|
|
7955
8105
|
*/
|
|
7956
8106
|
account_info?: {
|
|
7957
8107
|
[key: string]: unknown;
|
|
7958
|
-
}
|
|
8108
|
+
};
|
|
7959
8109
|
/**
|
|
7960
8110
|
* Console Setup Confirmed
|
|
7961
8111
|
*/
|
|
7962
|
-
console_setup_confirmed?: boolean
|
|
8112
|
+
console_setup_confirmed?: boolean;
|
|
7963
8113
|
/**
|
|
7964
8114
|
* Console Setup Region
|
|
7965
8115
|
*/
|
|
7966
|
-
console_setup_region?: 'us' | 'in'
|
|
8116
|
+
console_setup_region?: 'us' | 'in';
|
|
7967
8117
|
/**
|
|
7968
8118
|
* Credentials
|
|
7969
8119
|
*/
|
|
7970
8120
|
credentials?: {
|
|
7971
8121
|
[key: string]: string;
|
|
7972
|
-
}
|
|
8122
|
+
};
|
|
7973
8123
|
/**
|
|
7974
8124
|
* Display Name
|
|
7975
8125
|
*/
|
|
7976
|
-
display_name?: string
|
|
8126
|
+
display_name?: string;
|
|
7977
8127
|
/**
|
|
7978
8128
|
* Status
|
|
7979
8129
|
*/
|
|
7980
|
-
status?: 'disabled' | 'connected'
|
|
8130
|
+
status?: 'disabled' | 'connected';
|
|
7981
8131
|
};
|
|
7982
8132
|
/**
|
|
7983
8133
|
* PatchToolRequest
|
|
@@ -7986,33 +8136,33 @@ export type PatchToolRequest = {
|
|
|
7986
8136
|
/**
|
|
7987
8137
|
* Description
|
|
7988
8138
|
*/
|
|
7989
|
-
description?: string
|
|
8139
|
+
description?: string;
|
|
7990
8140
|
/**
|
|
7991
8141
|
* Disable Interruptions
|
|
7992
8142
|
*/
|
|
7993
|
-
disable_interruptions?: boolean
|
|
8143
|
+
disable_interruptions?: boolean;
|
|
7994
8144
|
/**
|
|
7995
8145
|
* Json Schema
|
|
7996
8146
|
*/
|
|
7997
8147
|
json_schema?: {
|
|
7998
8148
|
[key: string]: unknown;
|
|
7999
|
-
}
|
|
8149
|
+
};
|
|
8000
8150
|
/**
|
|
8001
8151
|
* Long Running Task
|
|
8002
8152
|
*/
|
|
8003
|
-
long_running_task?: boolean
|
|
8153
|
+
long_running_task?: boolean;
|
|
8004
8154
|
/**
|
|
8005
8155
|
* Name
|
|
8006
8156
|
*/
|
|
8007
|
-
name?: string
|
|
8157
|
+
name?: string;
|
|
8008
8158
|
/**
|
|
8009
8159
|
* Operations
|
|
8010
8160
|
*/
|
|
8011
|
-
operations?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation | SendDtmfOperation
|
|
8161
|
+
operations?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation | SendDtmfOperation>;
|
|
8012
8162
|
/**
|
|
8013
8163
|
* Silent
|
|
8014
8164
|
*/
|
|
8015
|
-
silent?: boolean
|
|
8165
|
+
silent?: boolean;
|
|
8016
8166
|
};
|
|
8017
8167
|
/**
|
|
8018
8168
|
* PatchWebhookRequest
|
|
@@ -8021,15 +8171,15 @@ export type PatchWebhookRequest = {
|
|
|
8021
8171
|
/**
|
|
8022
8172
|
* Status
|
|
8023
8173
|
*/
|
|
8024
|
-
status?: 'active' | 'disabled'
|
|
8174
|
+
status?: 'active' | 'disabled';
|
|
8025
8175
|
/**
|
|
8026
8176
|
* Subscribed Events
|
|
8027
8177
|
*/
|
|
8028
|
-
subscribed_events?: Array<string
|
|
8178
|
+
subscribed_events?: Array<string>;
|
|
8029
8179
|
/**
|
|
8030
8180
|
* Url
|
|
8031
8181
|
*/
|
|
8032
|
-
url?: string
|
|
8182
|
+
url?: string;
|
|
8033
8183
|
};
|
|
8034
8184
|
/**
|
|
8035
8185
|
* PatchWhatsAppBatchRequest
|
|
@@ -8042,15 +8192,15 @@ export type PatchWhatsAppBatchRequest = {
|
|
|
8042
8192
|
*
|
|
8043
8193
|
* Sends per row, the first included, while Meta's per-person limit holds it back.
|
|
8044
8194
|
*/
|
|
8045
|
-
delivery_attempts?: number
|
|
8195
|
+
delivery_attempts?: number;
|
|
8046
8196
|
/**
|
|
8047
8197
|
* Delivery Retry After Hours
|
|
8048
8198
|
*/
|
|
8049
|
-
delivery_retry_after_hours?: number
|
|
8199
|
+
delivery_retry_after_hours?: number;
|
|
8050
8200
|
/**
|
|
8051
8201
|
* Name
|
|
8052
8202
|
*/
|
|
8053
|
-
name?: string
|
|
8203
|
+
name?: string;
|
|
8054
8204
|
/**
|
|
8055
8205
|
* Send Daily Cap
|
|
8056
8206
|
*
|
|
@@ -8064,7 +8214,7 @@ export type PatchWhatsAppBatchRequest = {
|
|
|
8064
8214
|
/**
|
|
8065
8215
|
* Send Gap Seconds
|
|
8066
8216
|
*/
|
|
8067
|
-
send_gap_seconds?: number
|
|
8217
|
+
send_gap_seconds?: number;
|
|
8068
8218
|
/**
|
|
8069
8219
|
* Start At
|
|
8070
8220
|
*/
|
|
@@ -8072,13 +8222,13 @@ export type PatchWhatsAppBatchRequest = {
|
|
|
8072
8222
|
/**
|
|
8073
8223
|
* Timezone
|
|
8074
8224
|
*/
|
|
8075
|
-
timezone?: string
|
|
8225
|
+
timezone?: string;
|
|
8076
8226
|
/**
|
|
8077
8227
|
* Variable Map
|
|
8078
8228
|
*/
|
|
8079
8229
|
variable_map?: {
|
|
8080
8230
|
[key: string]: string;
|
|
8081
|
-
}
|
|
8231
|
+
};
|
|
8082
8232
|
window?: TimeWindow | null;
|
|
8083
8233
|
};
|
|
8084
8234
|
/**
|
|
@@ -9194,6 +9344,43 @@ export type RoutedTTS = {
|
|
|
9194
9344
|
export type Routes = {
|
|
9195
9345
|
tts: RoutedTTS;
|
|
9196
9346
|
};
|
|
9347
|
+
/**
|
|
9348
|
+
* RunItem
|
|
9349
|
+
*
|
|
9350
|
+
* One run's inputs and labels.
|
|
9351
|
+
*/
|
|
9352
|
+
export type RunItem = {
|
|
9353
|
+
/**
|
|
9354
|
+
* Files
|
|
9355
|
+
*
|
|
9356
|
+
* One PDF per declared `file` input, by name.
|
|
9357
|
+
*/
|
|
9358
|
+
files?: {
|
|
9359
|
+
[key: string]: FileInput;
|
|
9360
|
+
};
|
|
9361
|
+
/**
|
|
9362
|
+
* Idempotency Key
|
|
9363
|
+
*
|
|
9364
|
+
* Resending the same key returns the existing run instead of starting another.
|
|
9365
|
+
*/
|
|
9366
|
+
idempotency_key?: string | null;
|
|
9367
|
+
/**
|
|
9368
|
+
* Metadata
|
|
9369
|
+
*
|
|
9370
|
+
* Up to 16 string labels of your own, for filtering.
|
|
9371
|
+
*/
|
|
9372
|
+
metadata?: {
|
|
9373
|
+
[key: string]: unknown | string;
|
|
9374
|
+
};
|
|
9375
|
+
/**
|
|
9376
|
+
* Vars
|
|
9377
|
+
*
|
|
9378
|
+
* Values for the task's text inputs, by name. Undeclared names are refused.
|
|
9379
|
+
*/
|
|
9380
|
+
vars?: {
|
|
9381
|
+
[key: string]: string;
|
|
9382
|
+
};
|
|
9383
|
+
};
|
|
9197
9384
|
/**
|
|
9198
9385
|
* RunStepResponse
|
|
9199
9386
|
*
|
|
@@ -9235,25 +9422,6 @@ export type RunStepResponse = {
|
|
|
9235
9422
|
*/
|
|
9236
9423
|
status: string;
|
|
9237
9424
|
};
|
|
9238
|
-
/**
|
|
9239
|
-
* RunTaskRequest
|
|
9240
|
-
*/
|
|
9241
|
-
export type RunTaskRequest = {
|
|
9242
|
-
/**
|
|
9243
|
-
* Vars
|
|
9244
|
-
*
|
|
9245
|
-
* Values for the variables this task declares, by name. A `required` variable with no value and no default is refused before the run starts; a name the task does not declare is refused too, rather than silently dropped.
|
|
9246
|
-
*/
|
|
9247
|
-
vars?: {
|
|
9248
|
-
[key: string]: string;
|
|
9249
|
-
};
|
|
9250
|
-
/**
|
|
9251
|
-
* Version
|
|
9252
|
-
*
|
|
9253
|
-
* Which definition to run. Omitted runs the published version. A number runs that frozen version. 'draft' runs the unpublished config, validated and tool-pinned at request time and refused with the publish errors if it does not hold together.
|
|
9254
|
-
*/
|
|
9255
|
-
version?: number | 'draft' | null;
|
|
9256
|
-
};
|
|
9257
9425
|
/**
|
|
9258
9426
|
* RunToolRequest
|
|
9259
9427
|
*/
|
|
@@ -9709,11 +9877,11 @@ export type SendWhatsAppBatchRequest = {
|
|
|
9709
9877
|
*
|
|
9710
9878
|
* Sends per row, the first included, while Meta's per-person limit holds it back.
|
|
9711
9879
|
*/
|
|
9712
|
-
delivery_attempts?: number
|
|
9880
|
+
delivery_attempts?: number;
|
|
9713
9881
|
/**
|
|
9714
9882
|
* Delivery Retry After Hours
|
|
9715
9883
|
*/
|
|
9716
|
-
delivery_retry_after_hours?: number
|
|
9884
|
+
delivery_retry_after_hours?: number;
|
|
9717
9885
|
/**
|
|
9718
9886
|
* Send Daily Cap
|
|
9719
9887
|
*
|
|
@@ -9727,7 +9895,7 @@ export type SendWhatsAppBatchRequest = {
|
|
|
9727
9895
|
/**
|
|
9728
9896
|
* Send Gap Seconds
|
|
9729
9897
|
*/
|
|
9730
|
-
send_gap_seconds?: number
|
|
9898
|
+
send_gap_seconds?: number;
|
|
9731
9899
|
/**
|
|
9732
9900
|
* Start At
|
|
9733
9901
|
*/
|
|
@@ -9735,7 +9903,7 @@ export type SendWhatsAppBatchRequest = {
|
|
|
9735
9903
|
/**
|
|
9736
9904
|
* Timezone
|
|
9737
9905
|
*/
|
|
9738
|
-
timezone?: string
|
|
9906
|
+
timezone?: string;
|
|
9739
9907
|
window?: TimeWindow | null;
|
|
9740
9908
|
};
|
|
9741
9909
|
/**
|
|
@@ -10523,7 +10691,7 @@ export type TTSUsageResponse = {
|
|
|
10523
10691
|
*
|
|
10524
10692
|
* It declares no channel, no media and no greeting. Entered by an agent it
|
|
10525
10693
|
* speaks with that call's voice and hears with its ears; run on its own from
|
|
10526
|
-
* `POST /
|
|
10694
|
+
* `POST /task-runs` it is an LLM with tools and nobody to talk to. Which
|
|
10527
10695
|
* of the two happens is the caller's, never the task's.
|
|
10528
10696
|
*/
|
|
10529
10697
|
export type TaskConfig = {
|
|
@@ -10564,7 +10732,7 @@ export type TaskConfig = {
|
|
|
10564
10732
|
/**
|
|
10565
10733
|
* Output
|
|
10566
10734
|
*
|
|
10567
|
-
* The typed value this task produces
|
|
10735
|
+
* The typed value this task produces: up to 25 top-level fields, nesting up to 4 levels and 100 fields in all. The model finishes by calling a `submit_result` tool built from them. Publishing needs at least one.
|
|
10568
10736
|
*/
|
|
10569
10737
|
output?: Array<TaskOutputField>;
|
|
10570
10738
|
/**
|
|
@@ -10607,9 +10775,7 @@ export type TaskConfig = {
|
|
|
10607
10775
|
/**
|
|
10608
10776
|
* TaskOutputField
|
|
10609
10777
|
*
|
|
10610
|
-
* One value the model must produce.
|
|
10611
|
-
*
|
|
10612
|
-
* Flat scalars only — no arrays and no nested objects.
|
|
10778
|
+
* One value the model must produce: a scalar, an object of named fields, or an array.
|
|
10613
10779
|
*/
|
|
10614
10780
|
export type TaskOutputField = {
|
|
10615
10781
|
/**
|
|
@@ -10618,6 +10784,22 @@ export type TaskOutputField = {
|
|
|
10618
10784
|
* What the model should put here, and what to send when it cannot find out. This is the field's description in the tool schema, so it is literally the prompt for this value.
|
|
10619
10785
|
*/
|
|
10620
10786
|
description: string;
|
|
10787
|
+
/**
|
|
10788
|
+
* Enum
|
|
10789
|
+
*
|
|
10790
|
+
* Allowed values. Strings only.
|
|
10791
|
+
*/
|
|
10792
|
+
enum?: Array<string> | null;
|
|
10793
|
+
/**
|
|
10794
|
+
* Fields
|
|
10795
|
+
*
|
|
10796
|
+
* An object's fields.
|
|
10797
|
+
*/
|
|
10798
|
+
fields?: Array<TaskOutputField> | null;
|
|
10799
|
+
/**
|
|
10800
|
+
* An array's element.
|
|
10801
|
+
*/
|
|
10802
|
+
items?: TaskOutputItem | null;
|
|
10621
10803
|
/**
|
|
10622
10804
|
* Name
|
|
10623
10805
|
*
|
|
@@ -10633,33 +10815,66 @@ export type TaskOutputField = {
|
|
|
10633
10815
|
/**
|
|
10634
10816
|
* Type
|
|
10635
10817
|
*
|
|
10636
|
-
* The shape of the value.
|
|
10818
|
+
* The shape of the value. `object` takes `fields`; `array` takes `items`.
|
|
10637
10819
|
*/
|
|
10638
|
-
type?: 'string' | 'boolean' | 'integer' | 'number';
|
|
10820
|
+
type?: 'string' | 'boolean' | 'integer' | 'number' | 'object' | 'array';
|
|
10639
10821
|
};
|
|
10640
10822
|
/**
|
|
10641
|
-
*
|
|
10823
|
+
* TaskOutputItem
|
|
10642
10824
|
*
|
|
10643
|
-
*
|
|
10825
|
+
* What an array holds: one element's shape. Unnamed, and never null.
|
|
10644
10826
|
*/
|
|
10645
|
-
export type
|
|
10827
|
+
export type TaskOutputItem = {
|
|
10646
10828
|
/**
|
|
10647
|
-
*
|
|
10829
|
+
* Description
|
|
10648
10830
|
*
|
|
10649
|
-
*
|
|
10831
|
+
* What one element is.
|
|
10650
10832
|
*/
|
|
10651
|
-
|
|
10833
|
+
description?: string;
|
|
10652
10834
|
/**
|
|
10653
|
-
*
|
|
10835
|
+
* Enum
|
|
10654
10836
|
*
|
|
10655
|
-
*
|
|
10837
|
+
* Allowed values. Strings only.
|
|
10656
10838
|
*/
|
|
10657
|
-
|
|
10658
|
-
llm?: LLMSpecOverride | null;
|
|
10839
|
+
enum?: Array<string> | null;
|
|
10659
10840
|
/**
|
|
10660
|
-
*
|
|
10841
|
+
* Fields
|
|
10661
10842
|
*
|
|
10662
|
-
*
|
|
10843
|
+
* An object element's fields.
|
|
10844
|
+
*/
|
|
10845
|
+
fields?: Array<TaskOutputField> | null;
|
|
10846
|
+
/**
|
|
10847
|
+
* A nested array's element.
|
|
10848
|
+
*/
|
|
10849
|
+
items?: TaskOutputItem | null;
|
|
10850
|
+
/**
|
|
10851
|
+
* Type
|
|
10852
|
+
*/
|
|
10853
|
+
type?: 'string' | 'boolean' | 'integer' | 'number' | 'object' | 'array';
|
|
10854
|
+
};
|
|
10855
|
+
/**
|
|
10856
|
+
* TaskPatch
|
|
10857
|
+
*
|
|
10858
|
+
* A partial TaskConfig: only the fields this call changes. Absent keeps the base value, an explicit null clears it, objects deep-merge and lists replace.
|
|
10859
|
+
*/
|
|
10860
|
+
export type TaskPatch = {
|
|
10861
|
+
/**
|
|
10862
|
+
* Faqs
|
|
10863
|
+
*
|
|
10864
|
+
* FAQs the agent answers from: questions go in the prompt, answers are fetched on demand.
|
|
10865
|
+
*/
|
|
10866
|
+
faqs?: Array<FaqSelection> | null;
|
|
10867
|
+
/**
|
|
10868
|
+
* Finish Without Result Description
|
|
10869
|
+
*
|
|
10870
|
+
* Description of `finish_without_result`, the tool that abandons a task an agent entered. Narrow it if the task gives up too readily. Unused by a standalone run.
|
|
10871
|
+
*/
|
|
10872
|
+
finish_without_result_description?: string | null;
|
|
10873
|
+
llm?: LLMSpecOverride | null;
|
|
10874
|
+
/**
|
|
10875
|
+
* Max Steps
|
|
10876
|
+
*
|
|
10877
|
+
* How many LLM -> tools -> LLM rounds a standalone run may take. A round, not a tool call: four tools in one reply cost one step. Entered by an agent, the calling call's own limit applies instead.
|
|
10663
10878
|
*/
|
|
10664
10879
|
max_steps?: number | null;
|
|
10665
10880
|
/**
|
|
@@ -10680,7 +10895,7 @@ export type TaskPatch = {
|
|
|
10680
10895
|
/**
|
|
10681
10896
|
* Output
|
|
10682
10897
|
*
|
|
10683
|
-
* The typed value this task produces
|
|
10898
|
+
* The typed value this task produces: up to 25 top-level fields, nesting up to 4 levels and 100 fields in all. The model finishes by calling a `submit_result` tool built from them. Publishing needs at least one.
|
|
10684
10899
|
*/
|
|
10685
10900
|
output?: Array<TaskOutputField> | null;
|
|
10686
10901
|
/**
|
|
@@ -10755,6 +10970,36 @@ export type TaskResponse = {
|
|
|
10755
10970
|
*/
|
|
10756
10971
|
versions: Array<TaskVersionResponse> | null;
|
|
10757
10972
|
};
|
|
10973
|
+
/**
|
|
10974
|
+
* TaskRunBatchItem
|
|
10975
|
+
*/
|
|
10976
|
+
export type TaskRunBatchItem = {
|
|
10977
|
+
/**
|
|
10978
|
+
* Deduplicated
|
|
10979
|
+
*/
|
|
10980
|
+
deduplicated: boolean;
|
|
10981
|
+
/**
|
|
10982
|
+
* Id
|
|
10983
|
+
*/
|
|
10984
|
+
id: string;
|
|
10985
|
+
/**
|
|
10986
|
+
* Idempotency Key
|
|
10987
|
+
*/
|
|
10988
|
+
idempotency_key: string | null;
|
|
10989
|
+
/**
|
|
10990
|
+
* Status
|
|
10991
|
+
*/
|
|
10992
|
+
status: 'queued' | 'running' | 'completed' | 'failed' | 'canceled';
|
|
10993
|
+
};
|
|
10994
|
+
/**
|
|
10995
|
+
* TaskRunBatchResponse
|
|
10996
|
+
*/
|
|
10997
|
+
export type TaskRunBatchResponse = {
|
|
10998
|
+
/**
|
|
10999
|
+
* Runs
|
|
11000
|
+
*/
|
|
11001
|
+
runs: Array<TaskRunBatchItem>;
|
|
11002
|
+
};
|
|
10758
11003
|
/**
|
|
10759
11004
|
* TaskRunError
|
|
10760
11005
|
*/
|
|
@@ -10766,20 +11011,101 @@ export type TaskRunError = {
|
|
|
10766
11011
|
/**
|
|
10767
11012
|
* Type
|
|
10768
11013
|
*/
|
|
10769
|
-
type: '
|
|
11014
|
+
type: 'invalid_input' | 'no_output' | 'step_limit' | 'timeout' | 'provider_error' | 'configuration' | 'platform' | 'canceled';
|
|
11015
|
+
};
|
|
11016
|
+
/**
|
|
11017
|
+
* TaskRunFile
|
|
11018
|
+
*
|
|
11019
|
+
* What one PDF input turned into before the model read it.
|
|
11020
|
+
*/
|
|
11021
|
+
export type TaskRunFile = {
|
|
11022
|
+
/**
|
|
11023
|
+
* Bytes
|
|
11024
|
+
*/
|
|
11025
|
+
bytes: number;
|
|
11026
|
+
/**
|
|
11027
|
+
* Filename
|
|
11028
|
+
*/
|
|
11029
|
+
filename: string | null;
|
|
11030
|
+
/**
|
|
11031
|
+
* Images
|
|
11032
|
+
*/
|
|
11033
|
+
images: Array<TaskRunImage>;
|
|
11034
|
+
/**
|
|
11035
|
+
* Input
|
|
11036
|
+
*/
|
|
11037
|
+
input: string;
|
|
11038
|
+
/**
|
|
11039
|
+
* Pages
|
|
11040
|
+
*/
|
|
11041
|
+
pages: number;
|
|
11042
|
+
/**
|
|
11043
|
+
* Text
|
|
11044
|
+
*/
|
|
11045
|
+
text: string;
|
|
11046
|
+
};
|
|
11047
|
+
/**
|
|
11048
|
+
* TaskRunImage
|
|
11049
|
+
*
|
|
11050
|
+
* A scanned page, as the model saw it.
|
|
11051
|
+
*/
|
|
11052
|
+
export type TaskRunImage = {
|
|
11053
|
+
/**
|
|
11054
|
+
* Height
|
|
11055
|
+
*/
|
|
11056
|
+
height: number;
|
|
11057
|
+
/**
|
|
11058
|
+
* Page
|
|
11059
|
+
*/
|
|
11060
|
+
page: number;
|
|
11061
|
+
/**
|
|
11062
|
+
* Url
|
|
11063
|
+
*/
|
|
11064
|
+
url: string;
|
|
11065
|
+
/**
|
|
11066
|
+
* Url Expires At
|
|
11067
|
+
*/
|
|
11068
|
+
url_expires_at: string;
|
|
11069
|
+
/**
|
|
11070
|
+
* Width
|
|
11071
|
+
*/
|
|
11072
|
+
width: number;
|
|
10770
11073
|
};
|
|
10771
11074
|
/**
|
|
10772
11075
|
* TaskRunResponse
|
|
11076
|
+
*
|
|
11077
|
+
* One run in full: the config it ran, its inputs, its trace and its usage.
|
|
10773
11078
|
*/
|
|
10774
11079
|
export type TaskRunResponse = {
|
|
10775
11080
|
/**
|
|
10776
11081
|
* Attempts
|
|
10777
11082
|
*/
|
|
10778
11083
|
attempts: number;
|
|
11084
|
+
/**
|
|
11085
|
+
* Background
|
|
11086
|
+
*/
|
|
11087
|
+
background: boolean;
|
|
10779
11088
|
/**
|
|
10780
11089
|
* Billing Status
|
|
10781
11090
|
*/
|
|
10782
11091
|
billing_status: string;
|
|
11092
|
+
/**
|
|
11093
|
+
* Cancel Requested At
|
|
11094
|
+
*/
|
|
11095
|
+
cancel_requested_at: string | null;
|
|
11096
|
+
config: TaskConfig | null;
|
|
11097
|
+
/**
|
|
11098
|
+
* Content Deleted At
|
|
11099
|
+
*/
|
|
11100
|
+
content_deleted_at: string | null;
|
|
11101
|
+
/**
|
|
11102
|
+
* Content Expires At
|
|
11103
|
+
*/
|
|
11104
|
+
content_expires_at: string | null;
|
|
11105
|
+
/**
|
|
11106
|
+
* Created At
|
|
11107
|
+
*/
|
|
11108
|
+
created_at: string;
|
|
10783
11109
|
/**
|
|
10784
11110
|
* Duration Ms
|
|
10785
11111
|
*/
|
|
@@ -10789,14 +11115,28 @@ export type TaskRunResponse = {
|
|
|
10789
11115
|
*/
|
|
10790
11116
|
ended_at: string | null;
|
|
10791
11117
|
error: TaskRunError | null;
|
|
11118
|
+
/**
|
|
11119
|
+
* Files
|
|
11120
|
+
*/
|
|
11121
|
+
files: Array<TaskRunFile>;
|
|
10792
11122
|
/**
|
|
10793
11123
|
* Id
|
|
10794
11124
|
*/
|
|
10795
11125
|
id: string;
|
|
11126
|
+
/**
|
|
11127
|
+
* Idempotency Key
|
|
11128
|
+
*/
|
|
11129
|
+
idempotency_key: string | null;
|
|
10796
11130
|
/**
|
|
10797
11131
|
* Max Steps
|
|
10798
11132
|
*/
|
|
10799
11133
|
max_steps: number;
|
|
11134
|
+
/**
|
|
11135
|
+
* Metadata
|
|
11136
|
+
*/
|
|
11137
|
+
metadata: {
|
|
11138
|
+
[key: string]: string;
|
|
11139
|
+
};
|
|
10800
11140
|
/**
|
|
10801
11141
|
* Output
|
|
10802
11142
|
*/
|
|
@@ -10810,11 +11150,11 @@ export type TaskRunResponse = {
|
|
|
10810
11150
|
/**
|
|
10811
11151
|
* Started At
|
|
10812
11152
|
*/
|
|
10813
|
-
started_at: string;
|
|
11153
|
+
started_at: string | null;
|
|
10814
11154
|
/**
|
|
10815
11155
|
* Status
|
|
10816
11156
|
*/
|
|
10817
|
-
status: 'running' | 'completed' | 'failed';
|
|
11157
|
+
status: 'queued' | 'running' | 'completed' | 'failed' | 'canceled';
|
|
10818
11158
|
/**
|
|
10819
11159
|
* Steps Used
|
|
10820
11160
|
*/
|
|
@@ -10835,6 +11175,10 @@ export type TaskRunResponse = {
|
|
|
10835
11175
|
* Trace
|
|
10836
11176
|
*/
|
|
10837
11177
|
trace: Array<TraceStepResponse>;
|
|
11178
|
+
/**
|
|
11179
|
+
* Tries
|
|
11180
|
+
*/
|
|
11181
|
+
tries: number;
|
|
10838
11182
|
/**
|
|
10839
11183
|
* Usage
|
|
10840
11184
|
*/
|
|
@@ -10849,34 +11193,90 @@ export type TaskRunResponse = {
|
|
|
10849
11193
|
/**
|
|
10850
11194
|
* TaskRunSummary
|
|
10851
11195
|
*
|
|
10852
|
-
* A run
|
|
11196
|
+
* A run without its trace, config or inputs: the list item, the
|
|
11197
|
+
* `task_run.completed` webhook body and a task's `last_run`, one shape for all three.
|
|
10853
11198
|
*
|
|
10854
11199
|
* `error` is the same object a full run carries rather than a bare type, so
|
|
10855
|
-
* one reader answers "how did it go" for both
|
|
10856
|
-
* same fact differently would be two shapes for one question.
|
|
11200
|
+
* one reader answers "how did it go" for both.
|
|
10857
11201
|
*/
|
|
10858
11202
|
export type TaskRunSummary = {
|
|
11203
|
+
/**
|
|
11204
|
+
* Background
|
|
11205
|
+
*/
|
|
11206
|
+
background: boolean;
|
|
11207
|
+
/**
|
|
11208
|
+
* Billing Status
|
|
11209
|
+
*/
|
|
11210
|
+
billing_status: string;
|
|
11211
|
+
/**
|
|
11212
|
+
* Content Deleted At
|
|
11213
|
+
*/
|
|
11214
|
+
content_deleted_at: string | null;
|
|
11215
|
+
/**
|
|
11216
|
+
* Content Expires At
|
|
11217
|
+
*/
|
|
11218
|
+
content_expires_at: string | null;
|
|
11219
|
+
/**
|
|
11220
|
+
* Created At
|
|
11221
|
+
*/
|
|
11222
|
+
created_at: string;
|
|
10859
11223
|
/**
|
|
10860
11224
|
* Duration Ms
|
|
10861
11225
|
*/
|
|
10862
|
-
duration_ms
|
|
10863
|
-
|
|
11226
|
+
duration_ms: number | null;
|
|
11227
|
+
/**
|
|
11228
|
+
* Ended At
|
|
11229
|
+
*/
|
|
11230
|
+
ended_at: string | null;
|
|
11231
|
+
error: TaskRunError | null;
|
|
10864
11232
|
/**
|
|
10865
11233
|
* Id
|
|
10866
11234
|
*/
|
|
10867
11235
|
id: string;
|
|
11236
|
+
/**
|
|
11237
|
+
* Idempotency Key
|
|
11238
|
+
*/
|
|
11239
|
+
idempotency_key: string | null;
|
|
11240
|
+
/**
|
|
11241
|
+
* Metadata
|
|
11242
|
+
*/
|
|
11243
|
+
metadata: {
|
|
11244
|
+
[key: string]: string;
|
|
11245
|
+
};
|
|
11246
|
+
/**
|
|
11247
|
+
* Output
|
|
11248
|
+
*/
|
|
11249
|
+
output: {
|
|
11250
|
+
[key: string]: unknown;
|
|
11251
|
+
} | null;
|
|
10868
11252
|
/**
|
|
10869
11253
|
* Provider Cost
|
|
10870
11254
|
*/
|
|
10871
|
-
provider_cost
|
|
11255
|
+
provider_cost: number | null;
|
|
10872
11256
|
/**
|
|
10873
11257
|
* Started At
|
|
10874
11258
|
*/
|
|
10875
|
-
started_at: string;
|
|
11259
|
+
started_at: string | null;
|
|
10876
11260
|
/**
|
|
10877
11261
|
* Status
|
|
10878
11262
|
*/
|
|
10879
|
-
status: 'running' | 'completed' | 'failed';
|
|
11263
|
+
status: 'queued' | 'running' | 'completed' | 'failed' | 'canceled';
|
|
11264
|
+
/**
|
|
11265
|
+
* Task Id
|
|
11266
|
+
*/
|
|
11267
|
+
task_id: string | null;
|
|
11268
|
+
/**
|
|
11269
|
+
* Task Name
|
|
11270
|
+
*/
|
|
11271
|
+
task_name: string | null;
|
|
11272
|
+
/**
|
|
11273
|
+
* Task Version
|
|
11274
|
+
*/
|
|
11275
|
+
task_version: number | null;
|
|
11276
|
+
/**
|
|
11277
|
+
* Tries
|
|
11278
|
+
*/
|
|
11279
|
+
tries: number;
|
|
10880
11280
|
};
|
|
10881
11281
|
/**
|
|
10882
11282
|
* TaskSelection
|
|
@@ -11772,11 +12172,11 @@ export type UpdateFaqEntryRequest = {
|
|
|
11772
12172
|
/**
|
|
11773
12173
|
* Answer
|
|
11774
12174
|
*/
|
|
11775
|
-
answer?: string
|
|
12175
|
+
answer?: string;
|
|
11776
12176
|
/**
|
|
11777
12177
|
* Question
|
|
11778
12178
|
*/
|
|
11779
|
-
question?: string
|
|
12179
|
+
question?: string;
|
|
11780
12180
|
};
|
|
11781
12181
|
/**
|
|
11782
12182
|
* UpdateFaqRequest
|
|
@@ -11857,6 +12257,18 @@ export type VarDeclaration = {
|
|
|
11857
12257
|
* Refuse the session rather than resolve this to nothing; a `default` satisfies it. An inbound phone call carries no request to supply values, so a voice agent requiring a variable with no default cannot be assigned to a phone number.
|
|
11858
12258
|
*/
|
|
11859
12259
|
required?: boolean;
|
|
12260
|
+
/**
|
|
12261
|
+
* Type
|
|
12262
|
+
*
|
|
12263
|
+
* 'file' takes a PDF on a task run. Tasks only.
|
|
12264
|
+
*/
|
|
12265
|
+
type?: 'text' | 'file';
|
|
12266
|
+
/**
|
|
12267
|
+
* Untrusted
|
|
12268
|
+
*
|
|
12269
|
+
* Third-party content: given to the model as data, never templated. Tasks only.
|
|
12270
|
+
*/
|
|
12271
|
+
untrusted?: boolean;
|
|
11860
12272
|
};
|
|
11861
12273
|
/**
|
|
11862
12274
|
* VerifiedSendersResponse
|
|
@@ -18070,10 +18482,32 @@ export type TelephonyStreamsUpdateResults = {
|
|
|
18070
18482
|
200: StreamConnectionResponse;
|
|
18071
18483
|
};
|
|
18072
18484
|
export type TelephonyStreamsUpdateResult = TelephonyStreamsUpdateResults[keyof TelephonyStreamsUpdateResults];
|
|
18073
|
-
export type
|
|
18485
|
+
export type TaskRunsListData = {
|
|
18074
18486
|
body?: never;
|
|
18075
18487
|
path?: never;
|
|
18076
18488
|
query?: {
|
|
18489
|
+
/**
|
|
18490
|
+
* Task Id
|
|
18491
|
+
*/
|
|
18492
|
+
task_id?: string | null;
|
|
18493
|
+
/**
|
|
18494
|
+
* Status
|
|
18495
|
+
*/
|
|
18496
|
+
status?: 'queued' | 'running' | 'completed' | 'failed' | 'canceled' | null;
|
|
18497
|
+
/**
|
|
18498
|
+
* Metadata
|
|
18499
|
+
*
|
|
18500
|
+
* `key:value` pairs, all must match.
|
|
18501
|
+
*/
|
|
18502
|
+
metadata?: Array<string>;
|
|
18503
|
+
/**
|
|
18504
|
+
* Created After
|
|
18505
|
+
*/
|
|
18506
|
+
created_after?: string | null;
|
|
18507
|
+
/**
|
|
18508
|
+
* Created Before
|
|
18509
|
+
*/
|
|
18510
|
+
created_before?: string | null;
|
|
18077
18511
|
/**
|
|
18078
18512
|
* Limit
|
|
18079
18513
|
*/
|
|
@@ -18083,9 +18517,9 @@ export type TasksListData = {
|
|
|
18083
18517
|
*/
|
|
18084
18518
|
offset?: number;
|
|
18085
18519
|
};
|
|
18086
|
-
url: '/v1/
|
|
18520
|
+
url: '/v1/task-runs';
|
|
18087
18521
|
};
|
|
18088
|
-
export type
|
|
18522
|
+
export type TaskRunsListErrors = {
|
|
18089
18523
|
/**
|
|
18090
18524
|
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18091
18525
|
*/
|
|
@@ -18099,21 +18533,21 @@ export type TasksListErrors = {
|
|
|
18099
18533
|
*/
|
|
18100
18534
|
default: ErrorResponse;
|
|
18101
18535
|
};
|
|
18102
|
-
export type
|
|
18103
|
-
export type
|
|
18536
|
+
export type TaskRunsListError = TaskRunsListErrors[keyof TaskRunsListErrors];
|
|
18537
|
+
export type TaskRunsListResults = {
|
|
18104
18538
|
/**
|
|
18105
18539
|
* Successful Response
|
|
18106
18540
|
*/
|
|
18107
|
-
200:
|
|
18541
|
+
200: PageTaskRunSummary;
|
|
18108
18542
|
};
|
|
18109
|
-
export type
|
|
18110
|
-
export type
|
|
18111
|
-
body:
|
|
18543
|
+
export type TaskRunsListResult = TaskRunsListResults[keyof TaskRunsListResults];
|
|
18544
|
+
export type TaskRunsCreateData = {
|
|
18545
|
+
body: CreateTaskRunRequest;
|
|
18112
18546
|
path?: never;
|
|
18113
18547
|
query?: never;
|
|
18114
|
-
url: '/v1/
|
|
18548
|
+
url: '/v1/task-runs';
|
|
18115
18549
|
};
|
|
18116
|
-
export type
|
|
18550
|
+
export type TaskRunsCreateErrors = {
|
|
18117
18551
|
/**
|
|
18118
18552
|
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
18119
18553
|
*/
|
|
@@ -18139,26 +18573,110 @@ export type TasksCreateErrors = {
|
|
|
18139
18573
|
*/
|
|
18140
18574
|
default: ErrorResponse;
|
|
18141
18575
|
};
|
|
18142
|
-
export type
|
|
18143
|
-
export type
|
|
18576
|
+
export type TaskRunsCreateError = TaskRunsCreateErrors[keyof TaskRunsCreateErrors];
|
|
18577
|
+
export type TaskRunsCreateResults = {
|
|
18144
18578
|
/**
|
|
18145
18579
|
* Successful Response
|
|
18146
18580
|
*/
|
|
18147
|
-
|
|
18581
|
+
200: TaskRunResponse;
|
|
18582
|
+
/**
|
|
18583
|
+
* Queued (`background: true`).
|
|
18584
|
+
*/
|
|
18585
|
+
202: TaskRunResponse;
|
|
18148
18586
|
};
|
|
18149
|
-
export type
|
|
18150
|
-
export type
|
|
18587
|
+
export type TaskRunsCreateResult = TaskRunsCreateResults[keyof TaskRunsCreateResults];
|
|
18588
|
+
export type TaskRunsCreateBatchData = {
|
|
18589
|
+
body: CreateTaskRunBatchRequest;
|
|
18590
|
+
path?: never;
|
|
18591
|
+
query?: never;
|
|
18592
|
+
url: '/v1/task-runs/batch';
|
|
18593
|
+
};
|
|
18594
|
+
export type TaskRunsCreateBatchErrors = {
|
|
18595
|
+
/**
|
|
18596
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
18597
|
+
*/
|
|
18598
|
+
400: ErrorResponse;
|
|
18599
|
+
/**
|
|
18600
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18601
|
+
*/
|
|
18602
|
+
401: ErrorResponse;
|
|
18603
|
+
/**
|
|
18604
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
18605
|
+
*/
|
|
18606
|
+
403: ErrorResponse;
|
|
18607
|
+
/**
|
|
18608
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
18609
|
+
*/
|
|
18610
|
+
409: ErrorResponse;
|
|
18611
|
+
/**
|
|
18612
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
18613
|
+
*/
|
|
18614
|
+
422: ErrorResponse;
|
|
18615
|
+
/**
|
|
18616
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
18617
|
+
*/
|
|
18618
|
+
default: ErrorResponse;
|
|
18619
|
+
};
|
|
18620
|
+
export type TaskRunsCreateBatchError = TaskRunsCreateBatchErrors[keyof TaskRunsCreateBatchErrors];
|
|
18621
|
+
export type TaskRunsCreateBatchResults = {
|
|
18622
|
+
/**
|
|
18623
|
+
* Successful Response
|
|
18624
|
+
*/
|
|
18625
|
+
202: TaskRunBatchResponse;
|
|
18626
|
+
};
|
|
18627
|
+
export type TaskRunsCreateBatchResult = TaskRunsCreateBatchResults[keyof TaskRunsCreateBatchResults];
|
|
18628
|
+
export type TaskRunsDeleteManyData = {
|
|
18629
|
+
body: DeleteTaskRunsRequest;
|
|
18630
|
+
path?: never;
|
|
18631
|
+
query?: never;
|
|
18632
|
+
url: '/v1/task-runs/delete';
|
|
18633
|
+
};
|
|
18634
|
+
export type TaskRunsDeleteManyErrors = {
|
|
18635
|
+
/**
|
|
18636
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
18637
|
+
*/
|
|
18638
|
+
400: ErrorResponse;
|
|
18639
|
+
/**
|
|
18640
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18641
|
+
*/
|
|
18642
|
+
401: ErrorResponse;
|
|
18643
|
+
/**
|
|
18644
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
18645
|
+
*/
|
|
18646
|
+
403: ErrorResponse;
|
|
18647
|
+
/**
|
|
18648
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
18649
|
+
*/
|
|
18650
|
+
409: ErrorResponse;
|
|
18651
|
+
/**
|
|
18652
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
18653
|
+
*/
|
|
18654
|
+
422: ErrorResponse;
|
|
18655
|
+
/**
|
|
18656
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
18657
|
+
*/
|
|
18658
|
+
default: ErrorResponse;
|
|
18659
|
+
};
|
|
18660
|
+
export type TaskRunsDeleteManyError = TaskRunsDeleteManyErrors[keyof TaskRunsDeleteManyErrors];
|
|
18661
|
+
export type TaskRunsDeleteManyResults = {
|
|
18662
|
+
/**
|
|
18663
|
+
* Successful Response
|
|
18664
|
+
*/
|
|
18665
|
+
202: DeleteTaskRunsResponse;
|
|
18666
|
+
};
|
|
18667
|
+
export type TaskRunsDeleteManyResult = TaskRunsDeleteManyResults[keyof TaskRunsDeleteManyResults];
|
|
18668
|
+
export type TaskRunsDeleteData = {
|
|
18151
18669
|
body?: never;
|
|
18152
18670
|
path: {
|
|
18153
18671
|
/**
|
|
18154
|
-
*
|
|
18672
|
+
* Run Id
|
|
18155
18673
|
*/
|
|
18156
|
-
|
|
18674
|
+
run_id: string;
|
|
18157
18675
|
};
|
|
18158
18676
|
query?: never;
|
|
18159
|
-
url: '/v1/
|
|
18677
|
+
url: '/v1/task-runs/{run_id}';
|
|
18160
18678
|
};
|
|
18161
|
-
export type
|
|
18679
|
+
export type TaskRunsDeleteErrors = {
|
|
18162
18680
|
/**
|
|
18163
18681
|
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
18164
18682
|
*/
|
|
@@ -18188,26 +18706,25 @@ export type TasksDeleteErrors = {
|
|
|
18188
18706
|
*/
|
|
18189
18707
|
default: ErrorResponse;
|
|
18190
18708
|
};
|
|
18191
|
-
export type
|
|
18192
|
-
export type
|
|
18709
|
+
export type TaskRunsDeleteError = TaskRunsDeleteErrors[keyof TaskRunsDeleteErrors];
|
|
18710
|
+
export type TaskRunsDeleteResults = {
|
|
18193
18711
|
/**
|
|
18194
|
-
*
|
|
18712
|
+
* Deletion scheduled. No body.
|
|
18195
18713
|
*/
|
|
18196
|
-
|
|
18714
|
+
202: unknown;
|
|
18197
18715
|
};
|
|
18198
|
-
export type
|
|
18199
|
-
export type TasksGetData = {
|
|
18716
|
+
export type TaskRunsGetData = {
|
|
18200
18717
|
body?: never;
|
|
18201
18718
|
path: {
|
|
18202
18719
|
/**
|
|
18203
|
-
*
|
|
18720
|
+
* Run Id
|
|
18204
18721
|
*/
|
|
18205
|
-
|
|
18722
|
+
run_id: string;
|
|
18206
18723
|
};
|
|
18207
18724
|
query?: never;
|
|
18208
|
-
url: '/v1/
|
|
18725
|
+
url: '/v1/task-runs/{run_id}';
|
|
18209
18726
|
};
|
|
18210
|
-
export type
|
|
18727
|
+
export type TaskRunsGetErrors = {
|
|
18211
18728
|
/**
|
|
18212
18729
|
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18213
18730
|
*/
|
|
@@ -18225,26 +18742,26 @@ export type TasksGetErrors = {
|
|
|
18225
18742
|
*/
|
|
18226
18743
|
default: ErrorResponse;
|
|
18227
18744
|
};
|
|
18228
|
-
export type
|
|
18229
|
-
export type
|
|
18745
|
+
export type TaskRunsGetError = TaskRunsGetErrors[keyof TaskRunsGetErrors];
|
|
18746
|
+
export type TaskRunsGetResults = {
|
|
18230
18747
|
/**
|
|
18231
18748
|
* Successful Response
|
|
18232
18749
|
*/
|
|
18233
|
-
200:
|
|
18750
|
+
200: TaskRunResponse;
|
|
18234
18751
|
};
|
|
18235
|
-
export type
|
|
18236
|
-
export type
|
|
18237
|
-
body
|
|
18752
|
+
export type TaskRunsGetResult = TaskRunsGetResults[keyof TaskRunsGetResults];
|
|
18753
|
+
export type TaskRunsCancelData = {
|
|
18754
|
+
body?: never;
|
|
18238
18755
|
path: {
|
|
18239
18756
|
/**
|
|
18240
|
-
*
|
|
18757
|
+
* Run Id
|
|
18241
18758
|
*/
|
|
18242
|
-
|
|
18759
|
+
run_id: string;
|
|
18243
18760
|
};
|
|
18244
18761
|
query?: never;
|
|
18245
|
-
url: '/v1/
|
|
18762
|
+
url: '/v1/task-runs/{run_id}/cancel';
|
|
18246
18763
|
};
|
|
18247
|
-
export type
|
|
18764
|
+
export type TaskRunsCancelErrors = {
|
|
18248
18765
|
/**
|
|
18249
18766
|
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
18250
18767
|
*/
|
|
@@ -18274,15 +18791,92 @@ export type TasksUpdateErrors = {
|
|
|
18274
18791
|
*/
|
|
18275
18792
|
default: ErrorResponse;
|
|
18276
18793
|
};
|
|
18277
|
-
export type
|
|
18278
|
-
export type
|
|
18794
|
+
export type TaskRunsCancelError = TaskRunsCancelErrors[keyof TaskRunsCancelErrors];
|
|
18795
|
+
export type TaskRunsCancelResults = {
|
|
18279
18796
|
/**
|
|
18280
18797
|
* Successful Response
|
|
18281
18798
|
*/
|
|
18282
|
-
200:
|
|
18799
|
+
200: TaskRunResponse;
|
|
18283
18800
|
};
|
|
18284
|
-
export type
|
|
18285
|
-
export type
|
|
18801
|
+
export type TaskRunsCancelResult = TaskRunsCancelResults[keyof TaskRunsCancelResults];
|
|
18802
|
+
export type TasksListData = {
|
|
18803
|
+
body?: never;
|
|
18804
|
+
path?: never;
|
|
18805
|
+
query?: {
|
|
18806
|
+
/**
|
|
18807
|
+
* Limit
|
|
18808
|
+
*/
|
|
18809
|
+
limit?: number;
|
|
18810
|
+
/**
|
|
18811
|
+
* Offset
|
|
18812
|
+
*/
|
|
18813
|
+
offset?: number;
|
|
18814
|
+
};
|
|
18815
|
+
url: '/v1/tasks';
|
|
18816
|
+
};
|
|
18817
|
+
export type TasksListErrors = {
|
|
18818
|
+
/**
|
|
18819
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18820
|
+
*/
|
|
18821
|
+
401: ErrorResponse;
|
|
18822
|
+
/**
|
|
18823
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
18824
|
+
*/
|
|
18825
|
+
422: ErrorResponse;
|
|
18826
|
+
/**
|
|
18827
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
18828
|
+
*/
|
|
18829
|
+
default: ErrorResponse;
|
|
18830
|
+
};
|
|
18831
|
+
export type TasksListError = TasksListErrors[keyof TasksListErrors];
|
|
18832
|
+
export type TasksListResults = {
|
|
18833
|
+
/**
|
|
18834
|
+
* Successful Response
|
|
18835
|
+
*/
|
|
18836
|
+
200: PageTaskResponse;
|
|
18837
|
+
};
|
|
18838
|
+
export type TasksListResult = TasksListResults[keyof TasksListResults];
|
|
18839
|
+
export type TasksCreateData = {
|
|
18840
|
+
body: CreateTaskRequest;
|
|
18841
|
+
path?: never;
|
|
18842
|
+
query?: never;
|
|
18843
|
+
url: '/v1/tasks';
|
|
18844
|
+
};
|
|
18845
|
+
export type TasksCreateErrors = {
|
|
18846
|
+
/**
|
|
18847
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
18848
|
+
*/
|
|
18849
|
+
400: ErrorResponse;
|
|
18850
|
+
/**
|
|
18851
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18852
|
+
*/
|
|
18853
|
+
401: ErrorResponse;
|
|
18854
|
+
/**
|
|
18855
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
18856
|
+
*/
|
|
18857
|
+
403: ErrorResponse;
|
|
18858
|
+
/**
|
|
18859
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
18860
|
+
*/
|
|
18861
|
+
409: ErrorResponse;
|
|
18862
|
+
/**
|
|
18863
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
18864
|
+
*/
|
|
18865
|
+
422: ErrorResponse;
|
|
18866
|
+
/**
|
|
18867
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
18868
|
+
*/
|
|
18869
|
+
default: ErrorResponse;
|
|
18870
|
+
};
|
|
18871
|
+
export type TasksCreateError = TasksCreateErrors[keyof TasksCreateErrors];
|
|
18872
|
+
export type TasksCreateResults = {
|
|
18873
|
+
/**
|
|
18874
|
+
* Successful Response
|
|
18875
|
+
*/
|
|
18876
|
+
201: TaskResponse;
|
|
18877
|
+
};
|
|
18878
|
+
export type TasksCreateResult = TasksCreateResults[keyof TasksCreateResults];
|
|
18879
|
+
export type TasksDeleteData = {
|
|
18286
18880
|
body?: never;
|
|
18287
18881
|
path: {
|
|
18288
18882
|
/**
|
|
@@ -18291,9 +18885,9 @@ export type TasksPublishData = {
|
|
|
18291
18885
|
task_id: string;
|
|
18292
18886
|
};
|
|
18293
18887
|
query?: never;
|
|
18294
|
-
url: '/v1/tasks/{task_id}
|
|
18888
|
+
url: '/v1/tasks/{task_id}';
|
|
18295
18889
|
};
|
|
18296
|
-
export type
|
|
18890
|
+
export type TasksDeleteErrors = {
|
|
18297
18891
|
/**
|
|
18298
18892
|
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
18299
18893
|
*/
|
|
@@ -18323,15 +18917,15 @@ export type TasksPublishErrors = {
|
|
|
18323
18917
|
*/
|
|
18324
18918
|
default: ErrorResponse;
|
|
18325
18919
|
};
|
|
18326
|
-
export type
|
|
18327
|
-
export type
|
|
18920
|
+
export type TasksDeleteError = TasksDeleteErrors[keyof TasksDeleteErrors];
|
|
18921
|
+
export type TasksDeleteResults = {
|
|
18328
18922
|
/**
|
|
18329
18923
|
* Successful Response
|
|
18330
18924
|
*/
|
|
18331
|
-
200:
|
|
18925
|
+
200: OkResponse;
|
|
18332
18926
|
};
|
|
18333
|
-
export type
|
|
18334
|
-
export type
|
|
18927
|
+
export type TasksDeleteResult = TasksDeleteResults[keyof TasksDeleteResults];
|
|
18928
|
+
export type TasksGetData = {
|
|
18335
18929
|
body?: never;
|
|
18336
18930
|
path: {
|
|
18337
18931
|
/**
|
|
@@ -18339,19 +18933,10 @@ export type TasksRunsListData = {
|
|
|
18339
18933
|
*/
|
|
18340
18934
|
task_id: string;
|
|
18341
18935
|
};
|
|
18342
|
-
query?:
|
|
18343
|
-
|
|
18344
|
-
* Limit
|
|
18345
|
-
*/
|
|
18346
|
-
limit?: number;
|
|
18347
|
-
/**
|
|
18348
|
-
* Offset
|
|
18349
|
-
*/
|
|
18350
|
-
offset?: number;
|
|
18351
|
-
};
|
|
18352
|
-
url: '/v1/tasks/{task_id}/runs';
|
|
18936
|
+
query?: never;
|
|
18937
|
+
url: '/v1/tasks/{task_id}';
|
|
18353
18938
|
};
|
|
18354
|
-
export type
|
|
18939
|
+
export type TasksGetErrors = {
|
|
18355
18940
|
/**
|
|
18356
18941
|
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18357
18942
|
*/
|
|
@@ -18369,16 +18954,16 @@ export type TasksRunsListErrors = {
|
|
|
18369
18954
|
*/
|
|
18370
18955
|
default: ErrorResponse;
|
|
18371
18956
|
};
|
|
18372
|
-
export type
|
|
18373
|
-
export type
|
|
18957
|
+
export type TasksGetError = TasksGetErrors[keyof TasksGetErrors];
|
|
18958
|
+
export type TasksGetResults = {
|
|
18374
18959
|
/**
|
|
18375
18960
|
* Successful Response
|
|
18376
18961
|
*/
|
|
18377
|
-
200:
|
|
18962
|
+
200: TaskResponse;
|
|
18378
18963
|
};
|
|
18379
|
-
export type
|
|
18380
|
-
export type
|
|
18381
|
-
body:
|
|
18964
|
+
export type TasksGetResult = TasksGetResults[keyof TasksGetResults];
|
|
18965
|
+
export type TasksUpdateData = {
|
|
18966
|
+
body: PatchTaskRequest;
|
|
18382
18967
|
path: {
|
|
18383
18968
|
/**
|
|
18384
18969
|
* Task Id
|
|
@@ -18386,9 +18971,9 @@ export type TasksRunsCreateData = {
|
|
|
18386
18971
|
task_id: string;
|
|
18387
18972
|
};
|
|
18388
18973
|
query?: never;
|
|
18389
|
-
url: '/v1/tasks/{task_id}
|
|
18974
|
+
url: '/v1/tasks/{task_id}';
|
|
18390
18975
|
};
|
|
18391
|
-
export type
|
|
18976
|
+
export type TasksUpdateErrors = {
|
|
18392
18977
|
/**
|
|
18393
18978
|
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
18394
18979
|
*/
|
|
@@ -18418,38 +19003,46 @@ export type TasksRunsCreateErrors = {
|
|
|
18418
19003
|
*/
|
|
18419
19004
|
default: ErrorResponse;
|
|
18420
19005
|
};
|
|
18421
|
-
export type
|
|
18422
|
-
export type
|
|
19006
|
+
export type TasksUpdateError = TasksUpdateErrors[keyof TasksUpdateErrors];
|
|
19007
|
+
export type TasksUpdateResults = {
|
|
18423
19008
|
/**
|
|
18424
19009
|
* Successful Response
|
|
18425
19010
|
*/
|
|
18426
|
-
200:
|
|
19011
|
+
200: TaskResponse;
|
|
18427
19012
|
};
|
|
18428
|
-
export type
|
|
18429
|
-
export type
|
|
19013
|
+
export type TasksUpdateResult = TasksUpdateResults[keyof TasksUpdateResults];
|
|
19014
|
+
export type TasksPublishData = {
|
|
18430
19015
|
body?: never;
|
|
18431
19016
|
path: {
|
|
18432
19017
|
/**
|
|
18433
19018
|
* Task Id
|
|
18434
19019
|
*/
|
|
18435
19020
|
task_id: string;
|
|
18436
|
-
/**
|
|
18437
|
-
* Run Id
|
|
18438
|
-
*/
|
|
18439
|
-
run_id: string;
|
|
18440
19021
|
};
|
|
18441
19022
|
query?: never;
|
|
18442
|
-
url: '/v1/tasks/{task_id}/
|
|
19023
|
+
url: '/v1/tasks/{task_id}/publish';
|
|
18443
19024
|
};
|
|
18444
|
-
export type
|
|
19025
|
+
export type TasksPublishErrors = {
|
|
19026
|
+
/**
|
|
19027
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
19028
|
+
*/
|
|
19029
|
+
400: ErrorResponse;
|
|
18445
19030
|
/**
|
|
18446
19031
|
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18447
19032
|
*/
|
|
18448
19033
|
401: ErrorResponse;
|
|
19034
|
+
/**
|
|
19035
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
19036
|
+
*/
|
|
19037
|
+
403: ErrorResponse;
|
|
18449
19038
|
/**
|
|
18450
19039
|
* No such resource in this organization.
|
|
18451
19040
|
*/
|
|
18452
19041
|
404: ErrorResponse;
|
|
19042
|
+
/**
|
|
19043
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
19044
|
+
*/
|
|
19045
|
+
409: ErrorResponse;
|
|
18453
19046
|
/**
|
|
18454
19047
|
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
18455
19048
|
*/
|
|
@@ -18459,14 +19052,14 @@ export type TasksRunsGetErrors = {
|
|
|
18459
19052
|
*/
|
|
18460
19053
|
default: ErrorResponse;
|
|
18461
19054
|
};
|
|
18462
|
-
export type
|
|
18463
|
-
export type
|
|
19055
|
+
export type TasksPublishError = TasksPublishErrors[keyof TasksPublishErrors];
|
|
19056
|
+
export type TasksPublishResults = {
|
|
18464
19057
|
/**
|
|
18465
19058
|
* Successful Response
|
|
18466
19059
|
*/
|
|
18467
|
-
200:
|
|
19060
|
+
200: PublishTaskResponse;
|
|
18468
19061
|
};
|
|
18469
|
-
export type
|
|
19062
|
+
export type TasksPublishResult = TasksPublishResults[keyof TasksPublishResults];
|
|
18470
19063
|
export type TasksValidateData = {
|
|
18471
19064
|
body?: never;
|
|
18472
19065
|
path: {
|