@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
package/src/gen/types.gen.ts
CHANGED
|
@@ -3160,7 +3160,7 @@ export type CreateEmailSendRequest = {
|
|
|
3160
3160
|
/**
|
|
3161
3161
|
* From Email
|
|
3162
3162
|
*/
|
|
3163
|
-
from_email?: string
|
|
3163
|
+
from_email?: string;
|
|
3164
3164
|
/**
|
|
3165
3165
|
* From Name
|
|
3166
3166
|
*/
|
|
@@ -3182,7 +3182,7 @@ export type CreateEmailSendRequest = {
|
|
|
3182
3182
|
/**
|
|
3183
3183
|
* Send Attempts
|
|
3184
3184
|
*/
|
|
3185
|
-
send_attempts?: number
|
|
3185
|
+
send_attempts?: number;
|
|
3186
3186
|
/**
|
|
3187
3187
|
* Send Daily Cap
|
|
3188
3188
|
*/
|
|
@@ -3194,11 +3194,11 @@ export type CreateEmailSendRequest = {
|
|
|
3194
3194
|
/**
|
|
3195
3195
|
* Send Gap Seconds
|
|
3196
3196
|
*/
|
|
3197
|
-
send_gap_seconds?: number
|
|
3197
|
+
send_gap_seconds?: number;
|
|
3198
3198
|
/**
|
|
3199
3199
|
* Send Retry After Minutes
|
|
3200
3200
|
*/
|
|
3201
|
-
send_retry_after_minutes?: number
|
|
3201
|
+
send_retry_after_minutes?: number;
|
|
3202
3202
|
/**
|
|
3203
3203
|
* Start At
|
|
3204
3204
|
*/
|
|
@@ -3206,7 +3206,7 @@ export type CreateEmailSendRequest = {
|
|
|
3206
3206
|
/**
|
|
3207
3207
|
* Timezone
|
|
3208
3208
|
*/
|
|
3209
|
-
timezone?: string
|
|
3209
|
+
timezone?: string;
|
|
3210
3210
|
window?: TimeWindow | null;
|
|
3211
3211
|
};
|
|
3212
3212
|
|
|
@@ -3371,6 +3371,98 @@ export type CreateTaskRequest = {
|
|
|
3371
3371
|
config: TaskConfig;
|
|
3372
3372
|
};
|
|
3373
3373
|
|
|
3374
|
+
/**
|
|
3375
|
+
* CreateTaskRunBatchRequest
|
|
3376
|
+
*/
|
|
3377
|
+
export type CreateTaskRunBatchRequest = {
|
|
3378
|
+
/**
|
|
3379
|
+
* Runs
|
|
3380
|
+
*/
|
|
3381
|
+
runs: Array<RunItem>;
|
|
3382
|
+
/**
|
|
3383
|
+
* A complete task definition, run and stored nowhere else.
|
|
3384
|
+
*/
|
|
3385
|
+
task?: TaskConfig | null;
|
|
3386
|
+
/**
|
|
3387
|
+
* Task Id
|
|
3388
|
+
*
|
|
3389
|
+
* A task in this workspace. Exclusive with `task`.
|
|
3390
|
+
*/
|
|
3391
|
+
task_id?: string | null;
|
|
3392
|
+
/**
|
|
3393
|
+
* Changes for this run only: objects deep-merge, lists replace, null clears.
|
|
3394
|
+
*/
|
|
3395
|
+
task_override?: TaskPatch | null;
|
|
3396
|
+
/**
|
|
3397
|
+
* Task Version
|
|
3398
|
+
*
|
|
3399
|
+
* Which version of `task_id` to run. Omit for the published one; `"draft"` runs the unpublished config, held to the publish checks.
|
|
3400
|
+
*/
|
|
3401
|
+
task_version?: number | 'draft' | null;
|
|
3402
|
+
};
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
* CreateTaskRunRequest
|
|
3406
|
+
*/
|
|
3407
|
+
export type CreateTaskRunRequest = {
|
|
3408
|
+
/**
|
|
3409
|
+
* Background
|
|
3410
|
+
*
|
|
3411
|
+
* Queue the run and return at once (202) instead of waiting for its result.
|
|
3412
|
+
*/
|
|
3413
|
+
background?: boolean;
|
|
3414
|
+
/**
|
|
3415
|
+
* Files
|
|
3416
|
+
*
|
|
3417
|
+
* One PDF per declared `file` input, by name.
|
|
3418
|
+
*/
|
|
3419
|
+
files?: {
|
|
3420
|
+
[key: string]: FileInput;
|
|
3421
|
+
};
|
|
3422
|
+
/**
|
|
3423
|
+
* Idempotency Key
|
|
3424
|
+
*
|
|
3425
|
+
* Resending the same key returns the existing run instead of starting another.
|
|
3426
|
+
*/
|
|
3427
|
+
idempotency_key?: string | null;
|
|
3428
|
+
/**
|
|
3429
|
+
* Metadata
|
|
3430
|
+
*
|
|
3431
|
+
* Up to 16 string labels of your own, for filtering.
|
|
3432
|
+
*/
|
|
3433
|
+
metadata?: {
|
|
3434
|
+
[key: string]: unknown | string;
|
|
3435
|
+
};
|
|
3436
|
+
/**
|
|
3437
|
+
* A complete task definition, run and stored nowhere else.
|
|
3438
|
+
*/
|
|
3439
|
+
task?: TaskConfig | null;
|
|
3440
|
+
/**
|
|
3441
|
+
* Task Id
|
|
3442
|
+
*
|
|
3443
|
+
* A task in this workspace. Exclusive with `task`.
|
|
3444
|
+
*/
|
|
3445
|
+
task_id?: string | null;
|
|
3446
|
+
/**
|
|
3447
|
+
* Changes for this run only: objects deep-merge, lists replace, null clears.
|
|
3448
|
+
*/
|
|
3449
|
+
task_override?: TaskPatch | null;
|
|
3450
|
+
/**
|
|
3451
|
+
* Task Version
|
|
3452
|
+
*
|
|
3453
|
+
* Which version of `task_id` to run. Omit for the published one; `"draft"` runs the unpublished config, held to the publish checks.
|
|
3454
|
+
*/
|
|
3455
|
+
task_version?: number | 'draft' | null;
|
|
3456
|
+
/**
|
|
3457
|
+
* Vars
|
|
3458
|
+
*
|
|
3459
|
+
* Values for the task's text inputs, by name. Undeclared names are refused.
|
|
3460
|
+
*/
|
|
3461
|
+
vars?: {
|
|
3462
|
+
[key: string]: string;
|
|
3463
|
+
};
|
|
3464
|
+
};
|
|
3465
|
+
|
|
3374
3466
|
/**
|
|
3375
3467
|
* CreateTelephonyAccountRequest
|
|
3376
3468
|
*/
|
|
@@ -3462,11 +3554,11 @@ export type CreateWhatsAppBatchRequest = {
|
|
|
3462
3554
|
*
|
|
3463
3555
|
* Sends per row, the first included, while Meta's per-person limit holds it back.
|
|
3464
3556
|
*/
|
|
3465
|
-
delivery_attempts?: number
|
|
3557
|
+
delivery_attempts?: number;
|
|
3466
3558
|
/**
|
|
3467
3559
|
* Delivery Retry After Hours
|
|
3468
3560
|
*/
|
|
3469
|
-
delivery_retry_after_hours?: number
|
|
3561
|
+
delivery_retry_after_hours?: number;
|
|
3470
3562
|
/**
|
|
3471
3563
|
* Integration Id
|
|
3472
3564
|
*
|
|
@@ -3494,7 +3586,7 @@ export type CreateWhatsAppBatchRequest = {
|
|
|
3494
3586
|
/**
|
|
3495
3587
|
* Send Gap Seconds
|
|
3496
3588
|
*/
|
|
3497
|
-
send_gap_seconds?: number
|
|
3589
|
+
send_gap_seconds?: number;
|
|
3498
3590
|
/**
|
|
3499
3591
|
* Template Id
|
|
3500
3592
|
*
|
|
@@ -3504,7 +3596,7 @@ export type CreateWhatsAppBatchRequest = {
|
|
|
3504
3596
|
/**
|
|
3505
3597
|
* Timezone
|
|
3506
3598
|
*/
|
|
3507
|
-
timezone?: string
|
|
3599
|
+
timezone?: string;
|
|
3508
3600
|
/**
|
|
3509
3601
|
* To Column
|
|
3510
3602
|
*
|
|
@@ -3604,6 +3696,14 @@ export type CreditLedgerEntryResponse = {
|
|
|
3604
3696
|
* Balance After
|
|
3605
3697
|
*/
|
|
3606
3698
|
balance_after: number;
|
|
3699
|
+
/**
|
|
3700
|
+
* Channel
|
|
3701
|
+
*/
|
|
3702
|
+
channel: 'voice' | 'video' | 'text' | null;
|
|
3703
|
+
/**
|
|
3704
|
+
* Conversation Id
|
|
3705
|
+
*/
|
|
3706
|
+
conversation_id: string | null;
|
|
3607
3707
|
/**
|
|
3608
3708
|
* Created At
|
|
3609
3709
|
*/
|
|
@@ -3662,6 +3762,34 @@ export type DeleteRecipientsRequest = {
|
|
|
3662
3762
|
recipient_ids: Array<string>;
|
|
3663
3763
|
};
|
|
3664
3764
|
|
|
3765
|
+
/**
|
|
3766
|
+
* DeleteTaskRunsRequest
|
|
3767
|
+
*/
|
|
3768
|
+
export type DeleteTaskRunsRequest = {
|
|
3769
|
+
/**
|
|
3770
|
+
* Metadata
|
|
3771
|
+
*
|
|
3772
|
+
* Runs whose metadata contains all of these pairs.
|
|
3773
|
+
*/
|
|
3774
|
+
metadata: {
|
|
3775
|
+
[key: string]: unknown | string;
|
|
3776
|
+
};
|
|
3777
|
+
/**
|
|
3778
|
+
* Task Id
|
|
3779
|
+
*/
|
|
3780
|
+
task_id?: string | null;
|
|
3781
|
+
};
|
|
3782
|
+
|
|
3783
|
+
/**
|
|
3784
|
+
* DeleteTaskRunsResponse
|
|
3785
|
+
*/
|
|
3786
|
+
export type DeleteTaskRunsResponse = {
|
|
3787
|
+
/**
|
|
3788
|
+
* Count
|
|
3789
|
+
*/
|
|
3790
|
+
count: number;
|
|
3791
|
+
};
|
|
3792
|
+
|
|
3665
3793
|
/**
|
|
3666
3794
|
* DeliveryError
|
|
3667
3795
|
*
|
|
@@ -4555,6 +4683,30 @@ export type FieldMap = {
|
|
|
4555
4683
|
to: string;
|
|
4556
4684
|
};
|
|
4557
4685
|
|
|
4686
|
+
/**
|
|
4687
|
+
* FileInput
|
|
4688
|
+
*
|
|
4689
|
+
* One PDF for a `file` input: a public https URL, or the bytes as a data URL.
|
|
4690
|
+
*/
|
|
4691
|
+
export type FileInput = {
|
|
4692
|
+
/**
|
|
4693
|
+
* Data Url
|
|
4694
|
+
*
|
|
4695
|
+
* `data:application/pdf;base64,<bytes>`, up to 20 MB decoded.
|
|
4696
|
+
*/
|
|
4697
|
+
data_url?: string | null;
|
|
4698
|
+
/**
|
|
4699
|
+
* Filename
|
|
4700
|
+
*/
|
|
4701
|
+
filename?: string | null;
|
|
4702
|
+
/**
|
|
4703
|
+
* Url
|
|
4704
|
+
*
|
|
4705
|
+
* An https URL the run downloads.
|
|
4706
|
+
*/
|
|
4707
|
+
url?: string | null;
|
|
4708
|
+
};
|
|
4709
|
+
|
|
4558
4710
|
/**
|
|
4559
4711
|
* FixedDailyCap
|
|
4560
4712
|
*
|
|
@@ -7681,9 +7833,9 @@ export type PageTaskResponse = {
|
|
|
7681
7833
|
};
|
|
7682
7834
|
|
|
7683
7835
|
/**
|
|
7684
|
-
* Page[
|
|
7836
|
+
* Page[TaskRunSummary]
|
|
7685
7837
|
*/
|
|
7686
|
-
export type
|
|
7838
|
+
export type PageTaskRunSummary = {
|
|
7687
7839
|
/**
|
|
7688
7840
|
* Has More
|
|
7689
7841
|
*/
|
|
@@ -7691,7 +7843,7 @@ export type PageTaskRunResponse = {
|
|
|
7691
7843
|
/**
|
|
7692
7844
|
* Items
|
|
7693
7845
|
*/
|
|
7694
|
-
items: Array<
|
|
7846
|
+
items: Array<TaskRunSummary>;
|
|
7695
7847
|
/**
|
|
7696
7848
|
* Limit
|
|
7697
7849
|
*/
|
|
@@ -7850,7 +8002,7 @@ export type PatchCallBatchRequest = {
|
|
|
7850
8002
|
/**
|
|
7851
8003
|
* Agent Id
|
|
7852
8004
|
*/
|
|
7853
|
-
agent_id?: string
|
|
8005
|
+
agent_id?: string;
|
|
7854
8006
|
calling_window?: TimeWindow | null;
|
|
7855
8007
|
/**
|
|
7856
8008
|
* Dial Daily Cap
|
|
@@ -7863,27 +8015,27 @@ export type PatchCallBatchRequest = {
|
|
|
7863
8015
|
/**
|
|
7864
8016
|
* Dial Gap Seconds
|
|
7865
8017
|
*/
|
|
7866
|
-
dial_gap_seconds?: number
|
|
8018
|
+
dial_gap_seconds?: number;
|
|
7867
8019
|
/**
|
|
7868
8020
|
* From Phone Number Id
|
|
7869
8021
|
*/
|
|
7870
|
-
from_phone_number_id?: string
|
|
8022
|
+
from_phone_number_id?: string;
|
|
7871
8023
|
/**
|
|
7872
8024
|
* Max Attempts
|
|
7873
8025
|
*/
|
|
7874
|
-
max_attempts?: number
|
|
8026
|
+
max_attempts?: number;
|
|
7875
8027
|
/**
|
|
7876
8028
|
* Max Concurrency
|
|
7877
8029
|
*/
|
|
7878
|
-
max_concurrency?: number
|
|
8030
|
+
max_concurrency?: number;
|
|
7879
8031
|
/**
|
|
7880
8032
|
* Name
|
|
7881
8033
|
*/
|
|
7882
|
-
name?: string
|
|
8034
|
+
name?: string;
|
|
7883
8035
|
/**
|
|
7884
8036
|
* Retry After Minutes
|
|
7885
8037
|
*/
|
|
7886
|
-
retry_after_minutes?: number
|
|
8038
|
+
retry_after_minutes?: number;
|
|
7887
8039
|
/**
|
|
7888
8040
|
* Start At
|
|
7889
8041
|
*/
|
|
@@ -7891,7 +8043,7 @@ export type PatchCallBatchRequest = {
|
|
|
7891
8043
|
/**
|
|
7892
8044
|
* Timezone
|
|
7893
8045
|
*/
|
|
7894
|
-
timezone?: string
|
|
8046
|
+
timezone?: string;
|
|
7895
8047
|
};
|
|
7896
8048
|
|
|
7897
8049
|
/**
|
|
@@ -7903,7 +8055,7 @@ export type PatchConversationRequest = {
|
|
|
7903
8055
|
*/
|
|
7904
8056
|
metadata?: {
|
|
7905
8057
|
[key: string]: unknown;
|
|
7906
|
-
}
|
|
8058
|
+
};
|
|
7907
8059
|
/**
|
|
7908
8060
|
* Summary
|
|
7909
8061
|
*/
|
|
@@ -7913,7 +8065,7 @@ export type PatchConversationRequest = {
|
|
|
7913
8065
|
*/
|
|
7914
8066
|
userdata?: {
|
|
7915
8067
|
[key: string]: unknown;
|
|
7916
|
-
}
|
|
8068
|
+
};
|
|
7917
8069
|
};
|
|
7918
8070
|
|
|
7919
8071
|
/**
|
|
@@ -7935,28 +8087,31 @@ export type PatchEmailBatchRequest = {
|
|
|
7935
8087
|
/**
|
|
7936
8088
|
* Body Format
|
|
7937
8089
|
*/
|
|
7938
|
-
body_format?: 'text' | 'html'
|
|
8090
|
+
body_format?: 'text' | 'html';
|
|
7939
8091
|
/**
|
|
7940
8092
|
* Draft Attempts
|
|
7941
8093
|
*/
|
|
7942
|
-
draft_attempts?: number
|
|
8094
|
+
draft_attempts?: number;
|
|
7943
8095
|
/**
|
|
7944
8096
|
* Draft Concurrency
|
|
7945
8097
|
*/
|
|
7946
|
-
draft_concurrency?: number
|
|
8098
|
+
draft_concurrency?: number;
|
|
7947
8099
|
/**
|
|
7948
8100
|
* Draft Gap Seconds
|
|
7949
8101
|
*/
|
|
7950
|
-
draft_gap_seconds?: number
|
|
8102
|
+
draft_gap_seconds?: number;
|
|
7951
8103
|
/**
|
|
7952
8104
|
* Draft Retry After Minutes
|
|
7953
8105
|
*/
|
|
7954
|
-
draft_retry_after_minutes?: number
|
|
7955
|
-
|
|
8106
|
+
draft_retry_after_minutes?: number;
|
|
8107
|
+
/**
|
|
8108
|
+
* Field Map
|
|
8109
|
+
*/
|
|
8110
|
+
field_map?: FieldMap;
|
|
7956
8111
|
/**
|
|
7957
8112
|
* From Email
|
|
7958
8113
|
*/
|
|
7959
|
-
from_email?: string
|
|
8114
|
+
from_email?: string;
|
|
7960
8115
|
/**
|
|
7961
8116
|
* From Name
|
|
7962
8117
|
*/
|
|
@@ -7964,7 +8119,7 @@ export type PatchEmailBatchRequest = {
|
|
|
7964
8119
|
/**
|
|
7965
8120
|
* Name
|
|
7966
8121
|
*/
|
|
7967
|
-
name?: string
|
|
8122
|
+
name?: string;
|
|
7968
8123
|
/**
|
|
7969
8124
|
* Reply To
|
|
7970
8125
|
*/
|
|
@@ -7972,7 +8127,7 @@ export type PatchEmailBatchRequest = {
|
|
|
7972
8127
|
/**
|
|
7973
8128
|
* Send Attempts
|
|
7974
8129
|
*/
|
|
7975
|
-
send_attempts?: number
|
|
8130
|
+
send_attempts?: number;
|
|
7976
8131
|
/**
|
|
7977
8132
|
* Send Daily Cap
|
|
7978
8133
|
*/
|
|
@@ -7984,11 +8139,11 @@ export type PatchEmailBatchRequest = {
|
|
|
7984
8139
|
/**
|
|
7985
8140
|
* Send Gap Seconds
|
|
7986
8141
|
*/
|
|
7987
|
-
send_gap_seconds?: number
|
|
8142
|
+
send_gap_seconds?: number;
|
|
7988
8143
|
/**
|
|
7989
8144
|
* Send Retry After Minutes
|
|
7990
8145
|
*/
|
|
7991
|
-
send_retry_after_minutes?: number
|
|
8146
|
+
send_retry_after_minutes?: number;
|
|
7992
8147
|
/**
|
|
7993
8148
|
* Start At
|
|
7994
8149
|
*/
|
|
@@ -7996,7 +8151,7 @@ export type PatchEmailBatchRequest = {
|
|
|
7996
8151
|
/**
|
|
7997
8152
|
* Timezone
|
|
7998
8153
|
*/
|
|
7999
|
-
timezone?: string
|
|
8154
|
+
timezone?: string;
|
|
8000
8155
|
window?: TimeWindow | null;
|
|
8001
8156
|
};
|
|
8002
8157
|
|
|
@@ -8033,7 +8188,7 @@ export type PatchEmailSendRequest = {
|
|
|
8033
8188
|
/**
|
|
8034
8189
|
* Send Attempts
|
|
8035
8190
|
*/
|
|
8036
|
-
send_attempts?: number
|
|
8191
|
+
send_attempts?: number;
|
|
8037
8192
|
/**
|
|
8038
8193
|
* Send Daily Cap
|
|
8039
8194
|
*/
|
|
@@ -8045,11 +8200,11 @@ export type PatchEmailSendRequest = {
|
|
|
8045
8200
|
/**
|
|
8046
8201
|
* Send Gap Seconds
|
|
8047
8202
|
*/
|
|
8048
|
-
send_gap_seconds?: number
|
|
8203
|
+
send_gap_seconds?: number;
|
|
8049
8204
|
/**
|
|
8050
8205
|
* Send Retry After Minutes
|
|
8051
8206
|
*/
|
|
8052
|
-
send_retry_after_minutes?: number
|
|
8207
|
+
send_retry_after_minutes?: number;
|
|
8053
8208
|
/**
|
|
8054
8209
|
* Start At
|
|
8055
8210
|
*/
|
|
@@ -8057,7 +8212,7 @@ export type PatchEmailSendRequest = {
|
|
|
8057
8212
|
/**
|
|
8058
8213
|
* Timezone
|
|
8059
8214
|
*/
|
|
8060
|
-
timezone?: string
|
|
8215
|
+
timezone?: string;
|
|
8061
8216
|
window?: TimeWindow | null;
|
|
8062
8217
|
};
|
|
8063
8218
|
|
|
@@ -8068,47 +8223,47 @@ export type PatchIntegrationRequest = {
|
|
|
8068
8223
|
/**
|
|
8069
8224
|
* Allowed Tools
|
|
8070
8225
|
*/
|
|
8071
|
-
allowed_tools?: Array<string
|
|
8226
|
+
allowed_tools?: Array<string>;
|
|
8072
8227
|
/**
|
|
8073
8228
|
* Credentials Ref
|
|
8074
8229
|
*/
|
|
8075
|
-
credentials_ref?: string
|
|
8230
|
+
credentials_ref?: string;
|
|
8076
8231
|
/**
|
|
8077
8232
|
* Display Name
|
|
8078
8233
|
*/
|
|
8079
|
-
display_name?: string
|
|
8234
|
+
display_name?: string;
|
|
8080
8235
|
/**
|
|
8081
8236
|
* Mcp Config
|
|
8082
8237
|
*/
|
|
8083
8238
|
mcp_config?: {
|
|
8084
8239
|
[key: string]: unknown;
|
|
8085
|
-
}
|
|
8240
|
+
};
|
|
8086
8241
|
/**
|
|
8087
8242
|
* Metadata
|
|
8088
8243
|
*/
|
|
8089
8244
|
metadata?: {
|
|
8090
8245
|
[key: string]: unknown;
|
|
8091
|
-
}
|
|
8246
|
+
};
|
|
8092
8247
|
/**
|
|
8093
8248
|
* Provider Account Info
|
|
8094
8249
|
*/
|
|
8095
8250
|
provider_account_info?: {
|
|
8096
8251
|
[key: string]: unknown;
|
|
8097
|
-
}
|
|
8252
|
+
};
|
|
8098
8253
|
/**
|
|
8099
8254
|
* Status
|
|
8100
8255
|
*/
|
|
8101
|
-
status?: 'active' | 'disabled' | 'needs_reconnect' | 'error'
|
|
8256
|
+
status?: 'active' | 'disabled' | 'needs_reconnect' | 'error';
|
|
8102
8257
|
/**
|
|
8103
8258
|
* Tools Namespace
|
|
8104
8259
|
*/
|
|
8105
|
-
tools_namespace?: string
|
|
8260
|
+
tools_namespace?: string;
|
|
8106
8261
|
/**
|
|
8107
8262
|
* Webhook Config
|
|
8108
8263
|
*/
|
|
8109
8264
|
webhook_config?: {
|
|
8110
8265
|
[key: string]: unknown;
|
|
8111
|
-
}
|
|
8266
|
+
};
|
|
8112
8267
|
};
|
|
8113
8268
|
|
|
8114
8269
|
/**
|
|
@@ -8122,13 +8277,13 @@ export type PatchIntegrationTriggerRequest = {
|
|
|
8122
8277
|
/**
|
|
8123
8278
|
* Enabled
|
|
8124
8279
|
*/
|
|
8125
|
-
enabled?: boolean
|
|
8280
|
+
enabled?: boolean;
|
|
8126
8281
|
/**
|
|
8127
8282
|
* Metadata
|
|
8128
8283
|
*/
|
|
8129
8284
|
metadata?: {
|
|
8130
8285
|
[key: string]: unknown;
|
|
8131
|
-
}
|
|
8286
|
+
};
|
|
8132
8287
|
/**
|
|
8133
8288
|
* Provider Subscription Ref
|
|
8134
8289
|
*/
|
|
@@ -8136,15 +8291,15 @@ export type PatchIntegrationTriggerRequest = {
|
|
|
8136
8291
|
/**
|
|
8137
8292
|
* Reply Mode
|
|
8138
8293
|
*/
|
|
8139
|
-
reply_mode?: 'public_reply' | 'internal_note' | 'none'
|
|
8294
|
+
reply_mode?: 'public_reply' | 'internal_note' | 'none';
|
|
8140
8295
|
/**
|
|
8141
8296
|
* Status
|
|
8142
8297
|
*/
|
|
8143
|
-
status?: 'active' | 'disabled' | 'needs_setup' | 'error'
|
|
8298
|
+
status?: 'active' | 'disabled' | 'needs_setup' | 'error';
|
|
8144
8299
|
/**
|
|
8145
8300
|
* Trigger Type
|
|
8146
8301
|
*/
|
|
8147
|
-
trigger_type?: 'telegram.message.inbound' | 'whatsapp.message.inbound' | 'whatsapp.call.inbound'
|
|
8302
|
+
trigger_type?: 'telegram.message.inbound' | 'whatsapp.message.inbound' | 'whatsapp.call.inbound';
|
|
8148
8303
|
};
|
|
8149
8304
|
|
|
8150
8305
|
/**
|
|
@@ -8154,11 +8309,11 @@ export type PatchPhoneNumberRequest = {
|
|
|
8154
8309
|
/**
|
|
8155
8310
|
* Can Inbound
|
|
8156
8311
|
*/
|
|
8157
|
-
can_inbound?: boolean
|
|
8312
|
+
can_inbound?: boolean;
|
|
8158
8313
|
/**
|
|
8159
8314
|
* Can Outbound
|
|
8160
8315
|
*/
|
|
8161
|
-
can_outbound?: boolean
|
|
8316
|
+
can_outbound?: boolean;
|
|
8162
8317
|
/**
|
|
8163
8318
|
* Label
|
|
8164
8319
|
*/
|
|
@@ -8166,11 +8321,11 @@ export type PatchPhoneNumberRequest = {
|
|
|
8166
8321
|
/**
|
|
8167
8322
|
* Region
|
|
8168
8323
|
*/
|
|
8169
|
-
region?: 'us' | 'in'
|
|
8324
|
+
region?: 'us' | 'in';
|
|
8170
8325
|
/**
|
|
8171
8326
|
* Status
|
|
8172
8327
|
*/
|
|
8173
|
-
status?: 'disabled' | 'pending'
|
|
8328
|
+
status?: 'disabled' | 'pending';
|
|
8174
8329
|
};
|
|
8175
8330
|
|
|
8176
8331
|
/**
|
|
@@ -8180,19 +8335,19 @@ export type PatchStreamConnectionRequest = {
|
|
|
8180
8335
|
/**
|
|
8181
8336
|
* Agent Id
|
|
8182
8337
|
*/
|
|
8183
|
-
agent_id?: string
|
|
8338
|
+
agent_id?: string;
|
|
8184
8339
|
/**
|
|
8185
8340
|
* Name
|
|
8186
8341
|
*/
|
|
8187
|
-
name?: string
|
|
8342
|
+
name?: string;
|
|
8188
8343
|
/**
|
|
8189
8344
|
* Region
|
|
8190
8345
|
*/
|
|
8191
|
-
region?: 'us' | 'in'
|
|
8346
|
+
region?: 'us' | 'in';
|
|
8192
8347
|
/**
|
|
8193
8348
|
* Status
|
|
8194
8349
|
*/
|
|
8195
|
-
status?: 'active' | 'disabled'
|
|
8350
|
+
status?: 'active' | 'disabled';
|
|
8196
8351
|
};
|
|
8197
8352
|
|
|
8198
8353
|
/**
|
|
@@ -8214,29 +8369,29 @@ export type PatchTelephonyAccountRequest = {
|
|
|
8214
8369
|
*/
|
|
8215
8370
|
account_info?: {
|
|
8216
8371
|
[key: string]: unknown;
|
|
8217
|
-
}
|
|
8372
|
+
};
|
|
8218
8373
|
/**
|
|
8219
8374
|
* Console Setup Confirmed
|
|
8220
8375
|
*/
|
|
8221
|
-
console_setup_confirmed?: boolean
|
|
8376
|
+
console_setup_confirmed?: boolean;
|
|
8222
8377
|
/**
|
|
8223
8378
|
* Console Setup Region
|
|
8224
8379
|
*/
|
|
8225
|
-
console_setup_region?: 'us' | 'in'
|
|
8380
|
+
console_setup_region?: 'us' | 'in';
|
|
8226
8381
|
/**
|
|
8227
8382
|
* Credentials
|
|
8228
8383
|
*/
|
|
8229
8384
|
credentials?: {
|
|
8230
8385
|
[key: string]: string;
|
|
8231
|
-
}
|
|
8386
|
+
};
|
|
8232
8387
|
/**
|
|
8233
8388
|
* Display Name
|
|
8234
8389
|
*/
|
|
8235
|
-
display_name?: string
|
|
8390
|
+
display_name?: string;
|
|
8236
8391
|
/**
|
|
8237
8392
|
* Status
|
|
8238
8393
|
*/
|
|
8239
|
-
status?: 'disabled' | 'connected'
|
|
8394
|
+
status?: 'disabled' | 'connected';
|
|
8240
8395
|
};
|
|
8241
8396
|
|
|
8242
8397
|
/**
|
|
@@ -8246,33 +8401,33 @@ export type PatchToolRequest = {
|
|
|
8246
8401
|
/**
|
|
8247
8402
|
* Description
|
|
8248
8403
|
*/
|
|
8249
|
-
description?: string
|
|
8404
|
+
description?: string;
|
|
8250
8405
|
/**
|
|
8251
8406
|
* Disable Interruptions
|
|
8252
8407
|
*/
|
|
8253
|
-
disable_interruptions?: boolean
|
|
8408
|
+
disable_interruptions?: boolean;
|
|
8254
8409
|
/**
|
|
8255
8410
|
* Json Schema
|
|
8256
8411
|
*/
|
|
8257
8412
|
json_schema?: {
|
|
8258
8413
|
[key: string]: unknown;
|
|
8259
|
-
}
|
|
8414
|
+
};
|
|
8260
8415
|
/**
|
|
8261
8416
|
* Long Running Task
|
|
8262
8417
|
*/
|
|
8263
|
-
long_running_task?: boolean
|
|
8418
|
+
long_running_task?: boolean;
|
|
8264
8419
|
/**
|
|
8265
8420
|
* Name
|
|
8266
8421
|
*/
|
|
8267
|
-
name?: string
|
|
8422
|
+
name?: string;
|
|
8268
8423
|
/**
|
|
8269
8424
|
* Operations
|
|
8270
8425
|
*/
|
|
8271
|
-
operations?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation | SendDtmfOperation
|
|
8426
|
+
operations?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation | SendDtmfOperation>;
|
|
8272
8427
|
/**
|
|
8273
8428
|
* Silent
|
|
8274
8429
|
*/
|
|
8275
|
-
silent?: boolean
|
|
8430
|
+
silent?: boolean;
|
|
8276
8431
|
};
|
|
8277
8432
|
|
|
8278
8433
|
/**
|
|
@@ -8282,15 +8437,15 @@ export type PatchWebhookRequest = {
|
|
|
8282
8437
|
/**
|
|
8283
8438
|
* Status
|
|
8284
8439
|
*/
|
|
8285
|
-
status?: 'active' | 'disabled'
|
|
8440
|
+
status?: 'active' | 'disabled';
|
|
8286
8441
|
/**
|
|
8287
8442
|
* Subscribed Events
|
|
8288
8443
|
*/
|
|
8289
|
-
subscribed_events?: Array<string
|
|
8444
|
+
subscribed_events?: Array<string>;
|
|
8290
8445
|
/**
|
|
8291
8446
|
* Url
|
|
8292
8447
|
*/
|
|
8293
|
-
url?: string
|
|
8448
|
+
url?: string;
|
|
8294
8449
|
};
|
|
8295
8450
|
|
|
8296
8451
|
/**
|
|
@@ -8304,15 +8459,15 @@ export type PatchWhatsAppBatchRequest = {
|
|
|
8304
8459
|
*
|
|
8305
8460
|
* Sends per row, the first included, while Meta's per-person limit holds it back.
|
|
8306
8461
|
*/
|
|
8307
|
-
delivery_attempts?: number
|
|
8462
|
+
delivery_attempts?: number;
|
|
8308
8463
|
/**
|
|
8309
8464
|
* Delivery Retry After Hours
|
|
8310
8465
|
*/
|
|
8311
|
-
delivery_retry_after_hours?: number
|
|
8466
|
+
delivery_retry_after_hours?: number;
|
|
8312
8467
|
/**
|
|
8313
8468
|
* Name
|
|
8314
8469
|
*/
|
|
8315
|
-
name?: string
|
|
8470
|
+
name?: string;
|
|
8316
8471
|
/**
|
|
8317
8472
|
* Send Daily Cap
|
|
8318
8473
|
*
|
|
@@ -8326,7 +8481,7 @@ export type PatchWhatsAppBatchRequest = {
|
|
|
8326
8481
|
/**
|
|
8327
8482
|
* Send Gap Seconds
|
|
8328
8483
|
*/
|
|
8329
|
-
send_gap_seconds?: number
|
|
8484
|
+
send_gap_seconds?: number;
|
|
8330
8485
|
/**
|
|
8331
8486
|
* Start At
|
|
8332
8487
|
*/
|
|
@@ -8334,13 +8489,13 @@ export type PatchWhatsAppBatchRequest = {
|
|
|
8334
8489
|
/**
|
|
8335
8490
|
* Timezone
|
|
8336
8491
|
*/
|
|
8337
|
-
timezone?: string
|
|
8492
|
+
timezone?: string;
|
|
8338
8493
|
/**
|
|
8339
8494
|
* Variable Map
|
|
8340
8495
|
*/
|
|
8341
8496
|
variable_map?: {
|
|
8342
8497
|
[key: string]: string;
|
|
8343
|
-
}
|
|
8498
|
+
};
|
|
8344
8499
|
window?: TimeWindow | null;
|
|
8345
8500
|
};
|
|
8346
8501
|
|
|
@@ -9498,6 +9653,44 @@ export type Routes = {
|
|
|
9498
9653
|
tts: RoutedTTS;
|
|
9499
9654
|
};
|
|
9500
9655
|
|
|
9656
|
+
/**
|
|
9657
|
+
* RunItem
|
|
9658
|
+
*
|
|
9659
|
+
* One run's inputs and labels.
|
|
9660
|
+
*/
|
|
9661
|
+
export type RunItem = {
|
|
9662
|
+
/**
|
|
9663
|
+
* Files
|
|
9664
|
+
*
|
|
9665
|
+
* One PDF per declared `file` input, by name.
|
|
9666
|
+
*/
|
|
9667
|
+
files?: {
|
|
9668
|
+
[key: string]: FileInput;
|
|
9669
|
+
};
|
|
9670
|
+
/**
|
|
9671
|
+
* Idempotency Key
|
|
9672
|
+
*
|
|
9673
|
+
* Resending the same key returns the existing run instead of starting another.
|
|
9674
|
+
*/
|
|
9675
|
+
idempotency_key?: string | null;
|
|
9676
|
+
/**
|
|
9677
|
+
* Metadata
|
|
9678
|
+
*
|
|
9679
|
+
* Up to 16 string labels of your own, for filtering.
|
|
9680
|
+
*/
|
|
9681
|
+
metadata?: {
|
|
9682
|
+
[key: string]: unknown | string;
|
|
9683
|
+
};
|
|
9684
|
+
/**
|
|
9685
|
+
* Vars
|
|
9686
|
+
*
|
|
9687
|
+
* Values for the task's text inputs, by name. Undeclared names are refused.
|
|
9688
|
+
*/
|
|
9689
|
+
vars?: {
|
|
9690
|
+
[key: string]: string;
|
|
9691
|
+
};
|
|
9692
|
+
};
|
|
9693
|
+
|
|
9501
9694
|
/**
|
|
9502
9695
|
* RunStepResponse
|
|
9503
9696
|
*
|
|
@@ -9540,26 +9733,6 @@ export type RunStepResponse = {
|
|
|
9540
9733
|
status: string;
|
|
9541
9734
|
};
|
|
9542
9735
|
|
|
9543
|
-
/**
|
|
9544
|
-
* RunTaskRequest
|
|
9545
|
-
*/
|
|
9546
|
-
export type RunTaskRequest = {
|
|
9547
|
-
/**
|
|
9548
|
-
* Vars
|
|
9549
|
-
*
|
|
9550
|
-
* 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.
|
|
9551
|
-
*/
|
|
9552
|
-
vars?: {
|
|
9553
|
-
[key: string]: string;
|
|
9554
|
-
};
|
|
9555
|
-
/**
|
|
9556
|
-
* Version
|
|
9557
|
-
*
|
|
9558
|
-
* 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.
|
|
9559
|
-
*/
|
|
9560
|
-
version?: number | 'draft' | null;
|
|
9561
|
-
};
|
|
9562
|
-
|
|
9563
9736
|
/**
|
|
9564
9737
|
* RunToolRequest
|
|
9565
9738
|
*/
|
|
@@ -10035,11 +10208,11 @@ export type SendWhatsAppBatchRequest = {
|
|
|
10035
10208
|
*
|
|
10036
10209
|
* Sends per row, the first included, while Meta's per-person limit holds it back.
|
|
10037
10210
|
*/
|
|
10038
|
-
delivery_attempts?: number
|
|
10211
|
+
delivery_attempts?: number;
|
|
10039
10212
|
/**
|
|
10040
10213
|
* Delivery Retry After Hours
|
|
10041
10214
|
*/
|
|
10042
|
-
delivery_retry_after_hours?: number
|
|
10215
|
+
delivery_retry_after_hours?: number;
|
|
10043
10216
|
/**
|
|
10044
10217
|
* Send Daily Cap
|
|
10045
10218
|
*
|
|
@@ -10053,7 +10226,7 @@ export type SendWhatsAppBatchRequest = {
|
|
|
10053
10226
|
/**
|
|
10054
10227
|
* Send Gap Seconds
|
|
10055
10228
|
*/
|
|
10056
|
-
send_gap_seconds?: number
|
|
10229
|
+
send_gap_seconds?: number;
|
|
10057
10230
|
/**
|
|
10058
10231
|
* Start At
|
|
10059
10232
|
*/
|
|
@@ -10061,7 +10234,7 @@ export type SendWhatsAppBatchRequest = {
|
|
|
10061
10234
|
/**
|
|
10062
10235
|
* Timezone
|
|
10063
10236
|
*/
|
|
10064
|
-
timezone?: string
|
|
10237
|
+
timezone?: string;
|
|
10065
10238
|
window?: TimeWindow | null;
|
|
10066
10239
|
};
|
|
10067
10240
|
|
|
@@ -10876,7 +11049,7 @@ export type TTSUsageResponse = {
|
|
|
10876
11049
|
*
|
|
10877
11050
|
* It declares no channel, no media and no greeting. Entered by an agent it
|
|
10878
11051
|
* speaks with that call's voice and hears with its ears; run on its own from
|
|
10879
|
-
* `POST /
|
|
11052
|
+
* `POST /task-runs` it is an LLM with tools and nobody to talk to. Which
|
|
10880
11053
|
* of the two happens is the caller's, never the task's.
|
|
10881
11054
|
*/
|
|
10882
11055
|
export type TaskConfig = {
|
|
@@ -10917,7 +11090,7 @@ export type TaskConfig = {
|
|
|
10917
11090
|
/**
|
|
10918
11091
|
* Output
|
|
10919
11092
|
*
|
|
10920
|
-
* The typed value this task produces
|
|
11093
|
+
* 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.
|
|
10921
11094
|
*/
|
|
10922
11095
|
output?: Array<TaskOutputField>;
|
|
10923
11096
|
/**
|
|
@@ -10961,9 +11134,7 @@ export type TaskConfig = {
|
|
|
10961
11134
|
/**
|
|
10962
11135
|
* TaskOutputField
|
|
10963
11136
|
*
|
|
10964
|
-
* One value the model must produce.
|
|
10965
|
-
*
|
|
10966
|
-
* Flat scalars only — no arrays and no nested objects.
|
|
11137
|
+
* One value the model must produce: a scalar, an object of named fields, or an array.
|
|
10967
11138
|
*/
|
|
10968
11139
|
export type TaskOutputField = {
|
|
10969
11140
|
/**
|
|
@@ -10972,6 +11143,22 @@ export type TaskOutputField = {
|
|
|
10972
11143
|
* 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.
|
|
10973
11144
|
*/
|
|
10974
11145
|
description: string;
|
|
11146
|
+
/**
|
|
11147
|
+
* Enum
|
|
11148
|
+
*
|
|
11149
|
+
* Allowed values. Strings only.
|
|
11150
|
+
*/
|
|
11151
|
+
enum?: Array<string> | null;
|
|
11152
|
+
/**
|
|
11153
|
+
* Fields
|
|
11154
|
+
*
|
|
11155
|
+
* An object's fields.
|
|
11156
|
+
*/
|
|
11157
|
+
fields?: Array<TaskOutputField> | null;
|
|
11158
|
+
/**
|
|
11159
|
+
* An array's element.
|
|
11160
|
+
*/
|
|
11161
|
+
items?: TaskOutputItem | null;
|
|
10975
11162
|
/**
|
|
10976
11163
|
* Name
|
|
10977
11164
|
*
|
|
@@ -10987,23 +11174,57 @@ export type TaskOutputField = {
|
|
|
10987
11174
|
/**
|
|
10988
11175
|
* Type
|
|
10989
11176
|
*
|
|
10990
|
-
* The shape of the value.
|
|
11177
|
+
* The shape of the value. `object` takes `fields`; `array` takes `items`.
|
|
10991
11178
|
*/
|
|
10992
|
-
type?: 'string' | 'boolean' | 'integer' | 'number';
|
|
11179
|
+
type?: 'string' | 'boolean' | 'integer' | 'number' | 'object' | 'array';
|
|
10993
11180
|
};
|
|
10994
11181
|
|
|
10995
11182
|
/**
|
|
10996
|
-
*
|
|
11183
|
+
* TaskOutputItem
|
|
10997
11184
|
*
|
|
10998
|
-
*
|
|
11185
|
+
* What an array holds: one element's shape. Unnamed, and never null.
|
|
10999
11186
|
*/
|
|
11000
|
-
export type
|
|
11187
|
+
export type TaskOutputItem = {
|
|
11001
11188
|
/**
|
|
11002
|
-
*
|
|
11189
|
+
* Description
|
|
11003
11190
|
*
|
|
11004
|
-
*
|
|
11191
|
+
* What one element is.
|
|
11005
11192
|
*/
|
|
11006
|
-
|
|
11193
|
+
description?: string;
|
|
11194
|
+
/**
|
|
11195
|
+
* Enum
|
|
11196
|
+
*
|
|
11197
|
+
* Allowed values. Strings only.
|
|
11198
|
+
*/
|
|
11199
|
+
enum?: Array<string> | null;
|
|
11200
|
+
/**
|
|
11201
|
+
* Fields
|
|
11202
|
+
*
|
|
11203
|
+
* An object element's fields.
|
|
11204
|
+
*/
|
|
11205
|
+
fields?: Array<TaskOutputField> | null;
|
|
11206
|
+
/**
|
|
11207
|
+
* A nested array's element.
|
|
11208
|
+
*/
|
|
11209
|
+
items?: TaskOutputItem | null;
|
|
11210
|
+
/**
|
|
11211
|
+
* Type
|
|
11212
|
+
*/
|
|
11213
|
+
type?: 'string' | 'boolean' | 'integer' | 'number' | 'object' | 'array';
|
|
11214
|
+
};
|
|
11215
|
+
|
|
11216
|
+
/**
|
|
11217
|
+
* TaskPatch
|
|
11218
|
+
*
|
|
11219
|
+
* 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.
|
|
11220
|
+
*/
|
|
11221
|
+
export type TaskPatch = {
|
|
11222
|
+
/**
|
|
11223
|
+
* Faqs
|
|
11224
|
+
*
|
|
11225
|
+
* FAQs the agent answers from: questions go in the prompt, answers are fetched on demand.
|
|
11226
|
+
*/
|
|
11227
|
+
faqs?: Array<FaqSelection> | null;
|
|
11007
11228
|
/**
|
|
11008
11229
|
* Finish Without Result Description
|
|
11009
11230
|
*
|
|
@@ -11035,7 +11256,7 @@ export type TaskPatch = {
|
|
|
11035
11256
|
/**
|
|
11036
11257
|
* Output
|
|
11037
11258
|
*
|
|
11038
|
-
* The typed value this task produces
|
|
11259
|
+
* 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.
|
|
11039
11260
|
*/
|
|
11040
11261
|
output?: Array<TaskOutputField> | null;
|
|
11041
11262
|
/**
|
|
@@ -11112,6 +11333,38 @@ export type TaskResponse = {
|
|
|
11112
11333
|
versions: Array<TaskVersionResponse> | null;
|
|
11113
11334
|
};
|
|
11114
11335
|
|
|
11336
|
+
/**
|
|
11337
|
+
* TaskRunBatchItem
|
|
11338
|
+
*/
|
|
11339
|
+
export type TaskRunBatchItem = {
|
|
11340
|
+
/**
|
|
11341
|
+
* Deduplicated
|
|
11342
|
+
*/
|
|
11343
|
+
deduplicated: boolean;
|
|
11344
|
+
/**
|
|
11345
|
+
* Id
|
|
11346
|
+
*/
|
|
11347
|
+
id: string;
|
|
11348
|
+
/**
|
|
11349
|
+
* Idempotency Key
|
|
11350
|
+
*/
|
|
11351
|
+
idempotency_key: string | null;
|
|
11352
|
+
/**
|
|
11353
|
+
* Status
|
|
11354
|
+
*/
|
|
11355
|
+
status: 'queued' | 'running' | 'completed' | 'failed' | 'canceled';
|
|
11356
|
+
};
|
|
11357
|
+
|
|
11358
|
+
/**
|
|
11359
|
+
* TaskRunBatchResponse
|
|
11360
|
+
*/
|
|
11361
|
+
export type TaskRunBatchResponse = {
|
|
11362
|
+
/**
|
|
11363
|
+
* Runs
|
|
11364
|
+
*/
|
|
11365
|
+
runs: Array<TaskRunBatchItem>;
|
|
11366
|
+
};
|
|
11367
|
+
|
|
11115
11368
|
/**
|
|
11116
11369
|
* TaskRunError
|
|
11117
11370
|
*/
|
|
@@ -11123,21 +11376,104 @@ export type TaskRunError = {
|
|
|
11123
11376
|
/**
|
|
11124
11377
|
* Type
|
|
11125
11378
|
*/
|
|
11126
|
-
type: '
|
|
11379
|
+
type: 'invalid_input' | 'no_output' | 'step_limit' | 'timeout' | 'provider_error' | 'configuration' | 'platform' | 'canceled';
|
|
11380
|
+
};
|
|
11381
|
+
|
|
11382
|
+
/**
|
|
11383
|
+
* TaskRunFile
|
|
11384
|
+
*
|
|
11385
|
+
* What one PDF input turned into before the model read it.
|
|
11386
|
+
*/
|
|
11387
|
+
export type TaskRunFile = {
|
|
11388
|
+
/**
|
|
11389
|
+
* Bytes
|
|
11390
|
+
*/
|
|
11391
|
+
bytes: number;
|
|
11392
|
+
/**
|
|
11393
|
+
* Filename
|
|
11394
|
+
*/
|
|
11395
|
+
filename: string | null;
|
|
11396
|
+
/**
|
|
11397
|
+
* Images
|
|
11398
|
+
*/
|
|
11399
|
+
images: Array<TaskRunImage>;
|
|
11400
|
+
/**
|
|
11401
|
+
* Input
|
|
11402
|
+
*/
|
|
11403
|
+
input: string;
|
|
11404
|
+
/**
|
|
11405
|
+
* Pages
|
|
11406
|
+
*/
|
|
11407
|
+
pages: number;
|
|
11408
|
+
/**
|
|
11409
|
+
* Text
|
|
11410
|
+
*/
|
|
11411
|
+
text: string;
|
|
11412
|
+
};
|
|
11413
|
+
|
|
11414
|
+
/**
|
|
11415
|
+
* TaskRunImage
|
|
11416
|
+
*
|
|
11417
|
+
* A scanned page, as the model saw it.
|
|
11418
|
+
*/
|
|
11419
|
+
export type TaskRunImage = {
|
|
11420
|
+
/**
|
|
11421
|
+
* Height
|
|
11422
|
+
*/
|
|
11423
|
+
height: number;
|
|
11424
|
+
/**
|
|
11425
|
+
* Page
|
|
11426
|
+
*/
|
|
11427
|
+
page: number;
|
|
11428
|
+
/**
|
|
11429
|
+
* Url
|
|
11430
|
+
*/
|
|
11431
|
+
url: string;
|
|
11432
|
+
/**
|
|
11433
|
+
* Url Expires At
|
|
11434
|
+
*/
|
|
11435
|
+
url_expires_at: string;
|
|
11436
|
+
/**
|
|
11437
|
+
* Width
|
|
11438
|
+
*/
|
|
11439
|
+
width: number;
|
|
11127
11440
|
};
|
|
11128
11441
|
|
|
11129
11442
|
/**
|
|
11130
11443
|
* TaskRunResponse
|
|
11444
|
+
*
|
|
11445
|
+
* One run in full: the config it ran, its inputs, its trace and its usage.
|
|
11131
11446
|
*/
|
|
11132
11447
|
export type TaskRunResponse = {
|
|
11133
11448
|
/**
|
|
11134
11449
|
* Attempts
|
|
11135
11450
|
*/
|
|
11136
11451
|
attempts: number;
|
|
11452
|
+
/**
|
|
11453
|
+
* Background
|
|
11454
|
+
*/
|
|
11455
|
+
background: boolean;
|
|
11137
11456
|
/**
|
|
11138
11457
|
* Billing Status
|
|
11139
11458
|
*/
|
|
11140
11459
|
billing_status: string;
|
|
11460
|
+
/**
|
|
11461
|
+
* Cancel Requested At
|
|
11462
|
+
*/
|
|
11463
|
+
cancel_requested_at: string | null;
|
|
11464
|
+
config: TaskConfig | null;
|
|
11465
|
+
/**
|
|
11466
|
+
* Content Deleted At
|
|
11467
|
+
*/
|
|
11468
|
+
content_deleted_at: string | null;
|
|
11469
|
+
/**
|
|
11470
|
+
* Content Expires At
|
|
11471
|
+
*/
|
|
11472
|
+
content_expires_at: string | null;
|
|
11473
|
+
/**
|
|
11474
|
+
* Created At
|
|
11475
|
+
*/
|
|
11476
|
+
created_at: string;
|
|
11141
11477
|
/**
|
|
11142
11478
|
* Duration Ms
|
|
11143
11479
|
*/
|
|
@@ -11147,14 +11483,28 @@ export type TaskRunResponse = {
|
|
|
11147
11483
|
*/
|
|
11148
11484
|
ended_at: string | null;
|
|
11149
11485
|
error: TaskRunError | null;
|
|
11486
|
+
/**
|
|
11487
|
+
* Files
|
|
11488
|
+
*/
|
|
11489
|
+
files: Array<TaskRunFile>;
|
|
11150
11490
|
/**
|
|
11151
11491
|
* Id
|
|
11152
11492
|
*/
|
|
11153
11493
|
id: string;
|
|
11494
|
+
/**
|
|
11495
|
+
* Idempotency Key
|
|
11496
|
+
*/
|
|
11497
|
+
idempotency_key: string | null;
|
|
11154
11498
|
/**
|
|
11155
11499
|
* Max Steps
|
|
11156
11500
|
*/
|
|
11157
11501
|
max_steps: number;
|
|
11502
|
+
/**
|
|
11503
|
+
* Metadata
|
|
11504
|
+
*/
|
|
11505
|
+
metadata: {
|
|
11506
|
+
[key: string]: string;
|
|
11507
|
+
};
|
|
11158
11508
|
/**
|
|
11159
11509
|
* Output
|
|
11160
11510
|
*/
|
|
@@ -11168,11 +11518,11 @@ export type TaskRunResponse = {
|
|
|
11168
11518
|
/**
|
|
11169
11519
|
* Started At
|
|
11170
11520
|
*/
|
|
11171
|
-
started_at: string;
|
|
11521
|
+
started_at: string | null;
|
|
11172
11522
|
/**
|
|
11173
11523
|
* Status
|
|
11174
11524
|
*/
|
|
11175
|
-
status: 'running' | 'completed' | 'failed';
|
|
11525
|
+
status: 'queued' | 'running' | 'completed' | 'failed' | 'canceled';
|
|
11176
11526
|
/**
|
|
11177
11527
|
* Steps Used
|
|
11178
11528
|
*/
|
|
@@ -11193,6 +11543,10 @@ export type TaskRunResponse = {
|
|
|
11193
11543
|
* Trace
|
|
11194
11544
|
*/
|
|
11195
11545
|
trace: Array<TraceStepResponse>;
|
|
11546
|
+
/**
|
|
11547
|
+
* Tries
|
|
11548
|
+
*/
|
|
11549
|
+
tries: number;
|
|
11196
11550
|
/**
|
|
11197
11551
|
* Usage
|
|
11198
11552
|
*/
|
|
@@ -11208,34 +11562,90 @@ export type TaskRunResponse = {
|
|
|
11208
11562
|
/**
|
|
11209
11563
|
* TaskRunSummary
|
|
11210
11564
|
*
|
|
11211
|
-
* A run
|
|
11565
|
+
* A run without its trace, config or inputs: the list item, the
|
|
11566
|
+
* `task_run.completed` webhook body and a task's `last_run`, one shape for all three.
|
|
11212
11567
|
*
|
|
11213
11568
|
* `error` is the same object a full run carries rather than a bare type, so
|
|
11214
|
-
* one reader answers "how did it go" for both
|
|
11215
|
-
* same fact differently would be two shapes for one question.
|
|
11569
|
+
* one reader answers "how did it go" for both.
|
|
11216
11570
|
*/
|
|
11217
11571
|
export type TaskRunSummary = {
|
|
11572
|
+
/**
|
|
11573
|
+
* Background
|
|
11574
|
+
*/
|
|
11575
|
+
background: boolean;
|
|
11576
|
+
/**
|
|
11577
|
+
* Billing Status
|
|
11578
|
+
*/
|
|
11579
|
+
billing_status: string;
|
|
11580
|
+
/**
|
|
11581
|
+
* Content Deleted At
|
|
11582
|
+
*/
|
|
11583
|
+
content_deleted_at: string | null;
|
|
11584
|
+
/**
|
|
11585
|
+
* Content Expires At
|
|
11586
|
+
*/
|
|
11587
|
+
content_expires_at: string | null;
|
|
11588
|
+
/**
|
|
11589
|
+
* Created At
|
|
11590
|
+
*/
|
|
11591
|
+
created_at: string;
|
|
11218
11592
|
/**
|
|
11219
11593
|
* Duration Ms
|
|
11220
11594
|
*/
|
|
11221
|
-
duration_ms
|
|
11222
|
-
|
|
11595
|
+
duration_ms: number | null;
|
|
11596
|
+
/**
|
|
11597
|
+
* Ended At
|
|
11598
|
+
*/
|
|
11599
|
+
ended_at: string | null;
|
|
11600
|
+
error: TaskRunError | null;
|
|
11223
11601
|
/**
|
|
11224
11602
|
* Id
|
|
11225
11603
|
*/
|
|
11226
11604
|
id: string;
|
|
11605
|
+
/**
|
|
11606
|
+
* Idempotency Key
|
|
11607
|
+
*/
|
|
11608
|
+
idempotency_key: string | null;
|
|
11609
|
+
/**
|
|
11610
|
+
* Metadata
|
|
11611
|
+
*/
|
|
11612
|
+
metadata: {
|
|
11613
|
+
[key: string]: string;
|
|
11614
|
+
};
|
|
11615
|
+
/**
|
|
11616
|
+
* Output
|
|
11617
|
+
*/
|
|
11618
|
+
output: {
|
|
11619
|
+
[key: string]: unknown;
|
|
11620
|
+
} | null;
|
|
11227
11621
|
/**
|
|
11228
11622
|
* Provider Cost
|
|
11229
11623
|
*/
|
|
11230
|
-
provider_cost
|
|
11624
|
+
provider_cost: number | null;
|
|
11231
11625
|
/**
|
|
11232
11626
|
* Started At
|
|
11233
11627
|
*/
|
|
11234
|
-
started_at: string;
|
|
11628
|
+
started_at: string | null;
|
|
11235
11629
|
/**
|
|
11236
11630
|
* Status
|
|
11237
11631
|
*/
|
|
11238
|
-
status: 'running' | 'completed' | 'failed';
|
|
11632
|
+
status: 'queued' | 'running' | 'completed' | 'failed' | 'canceled';
|
|
11633
|
+
/**
|
|
11634
|
+
* Task Id
|
|
11635
|
+
*/
|
|
11636
|
+
task_id: string | null;
|
|
11637
|
+
/**
|
|
11638
|
+
* Task Name
|
|
11639
|
+
*/
|
|
11640
|
+
task_name: string | null;
|
|
11641
|
+
/**
|
|
11642
|
+
* Task Version
|
|
11643
|
+
*/
|
|
11644
|
+
task_version: number | null;
|
|
11645
|
+
/**
|
|
11646
|
+
* Tries
|
|
11647
|
+
*/
|
|
11648
|
+
tries: number;
|
|
11239
11649
|
};
|
|
11240
11650
|
|
|
11241
11651
|
/**
|
|
@@ -12159,11 +12569,11 @@ export type UpdateFaqEntryRequest = {
|
|
|
12159
12569
|
/**
|
|
12160
12570
|
* Answer
|
|
12161
12571
|
*/
|
|
12162
|
-
answer?: string
|
|
12572
|
+
answer?: string;
|
|
12163
12573
|
/**
|
|
12164
12574
|
* Question
|
|
12165
12575
|
*/
|
|
12166
|
-
question?: string
|
|
12576
|
+
question?: string;
|
|
12167
12577
|
};
|
|
12168
12578
|
|
|
12169
12579
|
/**
|
|
@@ -12248,6 +12658,18 @@ export type VarDeclaration = {
|
|
|
12248
12658
|
* 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.
|
|
12249
12659
|
*/
|
|
12250
12660
|
required?: boolean;
|
|
12661
|
+
/**
|
|
12662
|
+
* Type
|
|
12663
|
+
*
|
|
12664
|
+
* 'file' takes a PDF on a task run. Tasks only.
|
|
12665
|
+
*/
|
|
12666
|
+
type?: 'text' | 'file';
|
|
12667
|
+
/**
|
|
12668
|
+
* Untrusted
|
|
12669
|
+
*
|
|
12670
|
+
* Third-party content: given to the model as data, never templated. Tasks only.
|
|
12671
|
+
*/
|
|
12672
|
+
untrusted?: boolean;
|
|
12251
12673
|
};
|
|
12252
12674
|
|
|
12253
12675
|
/**
|
|
@@ -19090,10 +19512,32 @@ export type TelephonyStreamsUpdateResults = {
|
|
|
19090
19512
|
|
|
19091
19513
|
export type TelephonyStreamsUpdateResult = TelephonyStreamsUpdateResults[keyof TelephonyStreamsUpdateResults];
|
|
19092
19514
|
|
|
19093
|
-
export type
|
|
19515
|
+
export type TaskRunsListData = {
|
|
19094
19516
|
body?: never;
|
|
19095
19517
|
path?: never;
|
|
19096
19518
|
query?: {
|
|
19519
|
+
/**
|
|
19520
|
+
* Task Id
|
|
19521
|
+
*/
|
|
19522
|
+
task_id?: string | null;
|
|
19523
|
+
/**
|
|
19524
|
+
* Status
|
|
19525
|
+
*/
|
|
19526
|
+
status?: 'queued' | 'running' | 'completed' | 'failed' | 'canceled' | null;
|
|
19527
|
+
/**
|
|
19528
|
+
* Metadata
|
|
19529
|
+
*
|
|
19530
|
+
* `key:value` pairs, all must match.
|
|
19531
|
+
*/
|
|
19532
|
+
metadata?: Array<string>;
|
|
19533
|
+
/**
|
|
19534
|
+
* Created After
|
|
19535
|
+
*/
|
|
19536
|
+
created_after?: string | null;
|
|
19537
|
+
/**
|
|
19538
|
+
* Created Before
|
|
19539
|
+
*/
|
|
19540
|
+
created_before?: string | null;
|
|
19097
19541
|
/**
|
|
19098
19542
|
* Limit
|
|
19099
19543
|
*/
|
|
@@ -19103,10 +19547,10 @@ export type TasksListData = {
|
|
|
19103
19547
|
*/
|
|
19104
19548
|
offset?: number;
|
|
19105
19549
|
};
|
|
19106
|
-
url: '/v1/
|
|
19550
|
+
url: '/v1/task-runs';
|
|
19107
19551
|
};
|
|
19108
19552
|
|
|
19109
|
-
export type
|
|
19553
|
+
export type TaskRunsListErrors = {
|
|
19110
19554
|
/**
|
|
19111
19555
|
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
19112
19556
|
*/
|
|
@@ -19121,25 +19565,25 @@ export type TasksListErrors = {
|
|
|
19121
19565
|
default: ErrorResponse;
|
|
19122
19566
|
};
|
|
19123
19567
|
|
|
19124
|
-
export type
|
|
19568
|
+
export type TaskRunsListError = TaskRunsListErrors[keyof TaskRunsListErrors];
|
|
19125
19569
|
|
|
19126
|
-
export type
|
|
19570
|
+
export type TaskRunsListResults = {
|
|
19127
19571
|
/**
|
|
19128
19572
|
* Successful Response
|
|
19129
19573
|
*/
|
|
19130
|
-
200:
|
|
19574
|
+
200: PageTaskRunSummary;
|
|
19131
19575
|
};
|
|
19132
19576
|
|
|
19133
|
-
export type
|
|
19577
|
+
export type TaskRunsListResult = TaskRunsListResults[keyof TaskRunsListResults];
|
|
19134
19578
|
|
|
19135
|
-
export type
|
|
19136
|
-
body:
|
|
19579
|
+
export type TaskRunsCreateData = {
|
|
19580
|
+
body: CreateTaskRunRequest;
|
|
19137
19581
|
path?: never;
|
|
19138
19582
|
query?: never;
|
|
19139
|
-
url: '/v1/
|
|
19583
|
+
url: '/v1/task-runs';
|
|
19140
19584
|
};
|
|
19141
19585
|
|
|
19142
|
-
export type
|
|
19586
|
+
export type TaskRunsCreateErrors = {
|
|
19143
19587
|
/**
|
|
19144
19588
|
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
19145
19589
|
*/
|
|
@@ -19166,30 +19610,124 @@ export type TasksCreateErrors = {
|
|
|
19166
19610
|
default: ErrorResponse;
|
|
19167
19611
|
};
|
|
19168
19612
|
|
|
19169
|
-
export type
|
|
19613
|
+
export type TaskRunsCreateError = TaskRunsCreateErrors[keyof TaskRunsCreateErrors];
|
|
19170
19614
|
|
|
19171
|
-
export type
|
|
19615
|
+
export type TaskRunsCreateResults = {
|
|
19172
19616
|
/**
|
|
19173
19617
|
* Successful Response
|
|
19174
19618
|
*/
|
|
19175
|
-
|
|
19619
|
+
200: TaskRunResponse;
|
|
19620
|
+
/**
|
|
19621
|
+
* Queued (`background: true`).
|
|
19622
|
+
*/
|
|
19623
|
+
202: TaskRunResponse;
|
|
19176
19624
|
};
|
|
19177
19625
|
|
|
19178
|
-
export type
|
|
19626
|
+
export type TaskRunsCreateResult = TaskRunsCreateResults[keyof TaskRunsCreateResults];
|
|
19179
19627
|
|
|
19180
|
-
export type
|
|
19628
|
+
export type TaskRunsCreateBatchData = {
|
|
19629
|
+
body: CreateTaskRunBatchRequest;
|
|
19630
|
+
path?: never;
|
|
19631
|
+
query?: never;
|
|
19632
|
+
url: '/v1/task-runs/batch';
|
|
19633
|
+
};
|
|
19634
|
+
|
|
19635
|
+
export type TaskRunsCreateBatchErrors = {
|
|
19636
|
+
/**
|
|
19637
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
19638
|
+
*/
|
|
19639
|
+
400: ErrorResponse;
|
|
19640
|
+
/**
|
|
19641
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
19642
|
+
*/
|
|
19643
|
+
401: ErrorResponse;
|
|
19644
|
+
/**
|
|
19645
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
19646
|
+
*/
|
|
19647
|
+
403: ErrorResponse;
|
|
19648
|
+
/**
|
|
19649
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
19650
|
+
*/
|
|
19651
|
+
409: ErrorResponse;
|
|
19652
|
+
/**
|
|
19653
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
19654
|
+
*/
|
|
19655
|
+
422: ErrorResponse;
|
|
19656
|
+
/**
|
|
19657
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
19658
|
+
*/
|
|
19659
|
+
default: ErrorResponse;
|
|
19660
|
+
};
|
|
19661
|
+
|
|
19662
|
+
export type TaskRunsCreateBatchError = TaskRunsCreateBatchErrors[keyof TaskRunsCreateBatchErrors];
|
|
19663
|
+
|
|
19664
|
+
export type TaskRunsCreateBatchResults = {
|
|
19665
|
+
/**
|
|
19666
|
+
* Successful Response
|
|
19667
|
+
*/
|
|
19668
|
+
202: TaskRunBatchResponse;
|
|
19669
|
+
};
|
|
19670
|
+
|
|
19671
|
+
export type TaskRunsCreateBatchResult = TaskRunsCreateBatchResults[keyof TaskRunsCreateBatchResults];
|
|
19672
|
+
|
|
19673
|
+
export type TaskRunsDeleteManyData = {
|
|
19674
|
+
body: DeleteTaskRunsRequest;
|
|
19675
|
+
path?: never;
|
|
19676
|
+
query?: never;
|
|
19677
|
+
url: '/v1/task-runs/delete';
|
|
19678
|
+
};
|
|
19679
|
+
|
|
19680
|
+
export type TaskRunsDeleteManyErrors = {
|
|
19681
|
+
/**
|
|
19682
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
19683
|
+
*/
|
|
19684
|
+
400: ErrorResponse;
|
|
19685
|
+
/**
|
|
19686
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
19687
|
+
*/
|
|
19688
|
+
401: ErrorResponse;
|
|
19689
|
+
/**
|
|
19690
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
19691
|
+
*/
|
|
19692
|
+
403: ErrorResponse;
|
|
19693
|
+
/**
|
|
19694
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
19695
|
+
*/
|
|
19696
|
+
409: ErrorResponse;
|
|
19697
|
+
/**
|
|
19698
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
19699
|
+
*/
|
|
19700
|
+
422: ErrorResponse;
|
|
19701
|
+
/**
|
|
19702
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
19703
|
+
*/
|
|
19704
|
+
default: ErrorResponse;
|
|
19705
|
+
};
|
|
19706
|
+
|
|
19707
|
+
export type TaskRunsDeleteManyError = TaskRunsDeleteManyErrors[keyof TaskRunsDeleteManyErrors];
|
|
19708
|
+
|
|
19709
|
+
export type TaskRunsDeleteManyResults = {
|
|
19710
|
+
/**
|
|
19711
|
+
* Successful Response
|
|
19712
|
+
*/
|
|
19713
|
+
202: DeleteTaskRunsResponse;
|
|
19714
|
+
};
|
|
19715
|
+
|
|
19716
|
+
export type TaskRunsDeleteManyResult = TaskRunsDeleteManyResults[keyof TaskRunsDeleteManyResults];
|
|
19717
|
+
|
|
19718
|
+
export type TaskRunsDeleteData = {
|
|
19181
19719
|
body?: never;
|
|
19182
19720
|
path: {
|
|
19183
19721
|
/**
|
|
19184
|
-
*
|
|
19722
|
+
* Run Id
|
|
19185
19723
|
*/
|
|
19186
|
-
|
|
19724
|
+
run_id: string;
|
|
19187
19725
|
};
|
|
19188
19726
|
query?: never;
|
|
19189
|
-
url: '/v1/
|
|
19727
|
+
url: '/v1/task-runs/{run_id}';
|
|
19190
19728
|
};
|
|
19191
19729
|
|
|
19192
|
-
export type
|
|
19730
|
+
export type TaskRunsDeleteErrors = {
|
|
19193
19731
|
/**
|
|
19194
19732
|
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
19195
19733
|
*/
|
|
@@ -19220,30 +19758,28 @@ export type TasksDeleteErrors = {
|
|
|
19220
19758
|
default: ErrorResponse;
|
|
19221
19759
|
};
|
|
19222
19760
|
|
|
19223
|
-
export type
|
|
19761
|
+
export type TaskRunsDeleteError = TaskRunsDeleteErrors[keyof TaskRunsDeleteErrors];
|
|
19224
19762
|
|
|
19225
|
-
export type
|
|
19763
|
+
export type TaskRunsDeleteResults = {
|
|
19226
19764
|
/**
|
|
19227
|
-
*
|
|
19765
|
+
* Deletion scheduled. No body.
|
|
19228
19766
|
*/
|
|
19229
|
-
|
|
19767
|
+
202: unknown;
|
|
19230
19768
|
};
|
|
19231
19769
|
|
|
19232
|
-
export type
|
|
19233
|
-
|
|
19234
|
-
export type TasksGetData = {
|
|
19770
|
+
export type TaskRunsGetData = {
|
|
19235
19771
|
body?: never;
|
|
19236
19772
|
path: {
|
|
19237
19773
|
/**
|
|
19238
|
-
*
|
|
19774
|
+
* Run Id
|
|
19239
19775
|
*/
|
|
19240
|
-
|
|
19776
|
+
run_id: string;
|
|
19241
19777
|
};
|
|
19242
19778
|
query?: never;
|
|
19243
|
-
url: '/v1/
|
|
19779
|
+
url: '/v1/task-runs/{run_id}';
|
|
19244
19780
|
};
|
|
19245
19781
|
|
|
19246
|
-
export type
|
|
19782
|
+
export type TaskRunsGetErrors = {
|
|
19247
19783
|
/**
|
|
19248
19784
|
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
19249
19785
|
*/
|
|
@@ -19262,30 +19798,30 @@ export type TasksGetErrors = {
|
|
|
19262
19798
|
default: ErrorResponse;
|
|
19263
19799
|
};
|
|
19264
19800
|
|
|
19265
|
-
export type
|
|
19801
|
+
export type TaskRunsGetError = TaskRunsGetErrors[keyof TaskRunsGetErrors];
|
|
19266
19802
|
|
|
19267
|
-
export type
|
|
19803
|
+
export type TaskRunsGetResults = {
|
|
19268
19804
|
/**
|
|
19269
19805
|
* Successful Response
|
|
19270
19806
|
*/
|
|
19271
|
-
200:
|
|
19807
|
+
200: TaskRunResponse;
|
|
19272
19808
|
};
|
|
19273
19809
|
|
|
19274
|
-
export type
|
|
19810
|
+
export type TaskRunsGetResult = TaskRunsGetResults[keyof TaskRunsGetResults];
|
|
19275
19811
|
|
|
19276
|
-
export type
|
|
19277
|
-
body
|
|
19812
|
+
export type TaskRunsCancelData = {
|
|
19813
|
+
body?: never;
|
|
19278
19814
|
path: {
|
|
19279
19815
|
/**
|
|
19280
|
-
*
|
|
19816
|
+
* Run Id
|
|
19281
19817
|
*/
|
|
19282
|
-
|
|
19818
|
+
run_id: string;
|
|
19283
19819
|
};
|
|
19284
19820
|
query?: never;
|
|
19285
|
-
url: '/v1/
|
|
19821
|
+
url: '/v1/task-runs/{run_id}/cancel';
|
|
19286
19822
|
};
|
|
19287
19823
|
|
|
19288
|
-
export type
|
|
19824
|
+
export type TaskRunsCancelErrors = {
|
|
19289
19825
|
/**
|
|
19290
19826
|
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
19291
19827
|
*/
|
|
@@ -19316,18 +19852,105 @@ export type TasksUpdateErrors = {
|
|
|
19316
19852
|
default: ErrorResponse;
|
|
19317
19853
|
};
|
|
19318
19854
|
|
|
19319
|
-
export type
|
|
19855
|
+
export type TaskRunsCancelError = TaskRunsCancelErrors[keyof TaskRunsCancelErrors];
|
|
19320
19856
|
|
|
19321
|
-
export type
|
|
19857
|
+
export type TaskRunsCancelResults = {
|
|
19322
19858
|
/**
|
|
19323
19859
|
* Successful Response
|
|
19324
19860
|
*/
|
|
19325
|
-
200:
|
|
19861
|
+
200: TaskRunResponse;
|
|
19326
19862
|
};
|
|
19327
19863
|
|
|
19328
|
-
export type
|
|
19864
|
+
export type TaskRunsCancelResult = TaskRunsCancelResults[keyof TaskRunsCancelResults];
|
|
19329
19865
|
|
|
19330
|
-
export type
|
|
19866
|
+
export type TasksListData = {
|
|
19867
|
+
body?: never;
|
|
19868
|
+
path?: never;
|
|
19869
|
+
query?: {
|
|
19870
|
+
/**
|
|
19871
|
+
* Limit
|
|
19872
|
+
*/
|
|
19873
|
+
limit?: number;
|
|
19874
|
+
/**
|
|
19875
|
+
* Offset
|
|
19876
|
+
*/
|
|
19877
|
+
offset?: number;
|
|
19878
|
+
};
|
|
19879
|
+
url: '/v1/tasks';
|
|
19880
|
+
};
|
|
19881
|
+
|
|
19882
|
+
export type TasksListErrors = {
|
|
19883
|
+
/**
|
|
19884
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
19885
|
+
*/
|
|
19886
|
+
401: ErrorResponse;
|
|
19887
|
+
/**
|
|
19888
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
19889
|
+
*/
|
|
19890
|
+
422: ErrorResponse;
|
|
19891
|
+
/**
|
|
19892
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
19893
|
+
*/
|
|
19894
|
+
default: ErrorResponse;
|
|
19895
|
+
};
|
|
19896
|
+
|
|
19897
|
+
export type TasksListError = TasksListErrors[keyof TasksListErrors];
|
|
19898
|
+
|
|
19899
|
+
export type TasksListResults = {
|
|
19900
|
+
/**
|
|
19901
|
+
* Successful Response
|
|
19902
|
+
*/
|
|
19903
|
+
200: PageTaskResponse;
|
|
19904
|
+
};
|
|
19905
|
+
|
|
19906
|
+
export type TasksListResult = TasksListResults[keyof TasksListResults];
|
|
19907
|
+
|
|
19908
|
+
export type TasksCreateData = {
|
|
19909
|
+
body: CreateTaskRequest;
|
|
19910
|
+
path?: never;
|
|
19911
|
+
query?: never;
|
|
19912
|
+
url: '/v1/tasks';
|
|
19913
|
+
};
|
|
19914
|
+
|
|
19915
|
+
export type TasksCreateErrors = {
|
|
19916
|
+
/**
|
|
19917
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
19918
|
+
*/
|
|
19919
|
+
400: ErrorResponse;
|
|
19920
|
+
/**
|
|
19921
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
19922
|
+
*/
|
|
19923
|
+
401: ErrorResponse;
|
|
19924
|
+
/**
|
|
19925
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
19926
|
+
*/
|
|
19927
|
+
403: ErrorResponse;
|
|
19928
|
+
/**
|
|
19929
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
19930
|
+
*/
|
|
19931
|
+
409: ErrorResponse;
|
|
19932
|
+
/**
|
|
19933
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
19934
|
+
*/
|
|
19935
|
+
422: ErrorResponse;
|
|
19936
|
+
/**
|
|
19937
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
19938
|
+
*/
|
|
19939
|
+
default: ErrorResponse;
|
|
19940
|
+
};
|
|
19941
|
+
|
|
19942
|
+
export type TasksCreateError = TasksCreateErrors[keyof TasksCreateErrors];
|
|
19943
|
+
|
|
19944
|
+
export type TasksCreateResults = {
|
|
19945
|
+
/**
|
|
19946
|
+
* Successful Response
|
|
19947
|
+
*/
|
|
19948
|
+
201: TaskResponse;
|
|
19949
|
+
};
|
|
19950
|
+
|
|
19951
|
+
export type TasksCreateResult = TasksCreateResults[keyof TasksCreateResults];
|
|
19952
|
+
|
|
19953
|
+
export type TasksDeleteData = {
|
|
19331
19954
|
body?: never;
|
|
19332
19955
|
path: {
|
|
19333
19956
|
/**
|
|
@@ -19336,10 +19959,10 @@ export type TasksPublishData = {
|
|
|
19336
19959
|
task_id: string;
|
|
19337
19960
|
};
|
|
19338
19961
|
query?: never;
|
|
19339
|
-
url: '/v1/tasks/{task_id}
|
|
19962
|
+
url: '/v1/tasks/{task_id}';
|
|
19340
19963
|
};
|
|
19341
19964
|
|
|
19342
|
-
export type
|
|
19965
|
+
export type TasksDeleteErrors = {
|
|
19343
19966
|
/**
|
|
19344
19967
|
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
19345
19968
|
*/
|
|
@@ -19370,18 +19993,18 @@ export type TasksPublishErrors = {
|
|
|
19370
19993
|
default: ErrorResponse;
|
|
19371
19994
|
};
|
|
19372
19995
|
|
|
19373
|
-
export type
|
|
19996
|
+
export type TasksDeleteError = TasksDeleteErrors[keyof TasksDeleteErrors];
|
|
19374
19997
|
|
|
19375
|
-
export type
|
|
19998
|
+
export type TasksDeleteResults = {
|
|
19376
19999
|
/**
|
|
19377
20000
|
* Successful Response
|
|
19378
20001
|
*/
|
|
19379
|
-
200:
|
|
20002
|
+
200: OkResponse;
|
|
19380
20003
|
};
|
|
19381
20004
|
|
|
19382
|
-
export type
|
|
20005
|
+
export type TasksDeleteResult = TasksDeleteResults[keyof TasksDeleteResults];
|
|
19383
20006
|
|
|
19384
|
-
export type
|
|
20007
|
+
export type TasksGetData = {
|
|
19385
20008
|
body?: never;
|
|
19386
20009
|
path: {
|
|
19387
20010
|
/**
|
|
@@ -19389,20 +20012,11 @@ export type TasksRunsListData = {
|
|
|
19389
20012
|
*/
|
|
19390
20013
|
task_id: string;
|
|
19391
20014
|
};
|
|
19392
|
-
query?:
|
|
19393
|
-
|
|
19394
|
-
* Limit
|
|
19395
|
-
*/
|
|
19396
|
-
limit?: number;
|
|
19397
|
-
/**
|
|
19398
|
-
* Offset
|
|
19399
|
-
*/
|
|
19400
|
-
offset?: number;
|
|
19401
|
-
};
|
|
19402
|
-
url: '/v1/tasks/{task_id}/runs';
|
|
20015
|
+
query?: never;
|
|
20016
|
+
url: '/v1/tasks/{task_id}';
|
|
19403
20017
|
};
|
|
19404
20018
|
|
|
19405
|
-
export type
|
|
20019
|
+
export type TasksGetErrors = {
|
|
19406
20020
|
/**
|
|
19407
20021
|
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
19408
20022
|
*/
|
|
@@ -19421,19 +20035,19 @@ export type TasksRunsListErrors = {
|
|
|
19421
20035
|
default: ErrorResponse;
|
|
19422
20036
|
};
|
|
19423
20037
|
|
|
19424
|
-
export type
|
|
20038
|
+
export type TasksGetError = TasksGetErrors[keyof TasksGetErrors];
|
|
19425
20039
|
|
|
19426
|
-
export type
|
|
20040
|
+
export type TasksGetResults = {
|
|
19427
20041
|
/**
|
|
19428
20042
|
* Successful Response
|
|
19429
20043
|
*/
|
|
19430
|
-
200:
|
|
20044
|
+
200: TaskResponse;
|
|
19431
20045
|
};
|
|
19432
20046
|
|
|
19433
|
-
export type
|
|
20047
|
+
export type TasksGetResult = TasksGetResults[keyof TasksGetResults];
|
|
19434
20048
|
|
|
19435
|
-
export type
|
|
19436
|
-
body:
|
|
20049
|
+
export type TasksUpdateData = {
|
|
20050
|
+
body: PatchTaskRequest;
|
|
19437
20051
|
path: {
|
|
19438
20052
|
/**
|
|
19439
20053
|
* Task Id
|
|
@@ -19441,10 +20055,10 @@ export type TasksRunsCreateData = {
|
|
|
19441
20055
|
task_id: string;
|
|
19442
20056
|
};
|
|
19443
20057
|
query?: never;
|
|
19444
|
-
url: '/v1/tasks/{task_id}
|
|
20058
|
+
url: '/v1/tasks/{task_id}';
|
|
19445
20059
|
};
|
|
19446
20060
|
|
|
19447
|
-
export type
|
|
20061
|
+
export type TasksUpdateErrors = {
|
|
19448
20062
|
/**
|
|
19449
20063
|
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
19450
20064
|
*/
|
|
@@ -19475,42 +20089,50 @@ export type TasksRunsCreateErrors = {
|
|
|
19475
20089
|
default: ErrorResponse;
|
|
19476
20090
|
};
|
|
19477
20091
|
|
|
19478
|
-
export type
|
|
20092
|
+
export type TasksUpdateError = TasksUpdateErrors[keyof TasksUpdateErrors];
|
|
19479
20093
|
|
|
19480
|
-
export type
|
|
20094
|
+
export type TasksUpdateResults = {
|
|
19481
20095
|
/**
|
|
19482
20096
|
* Successful Response
|
|
19483
20097
|
*/
|
|
19484
|
-
200:
|
|
20098
|
+
200: TaskResponse;
|
|
19485
20099
|
};
|
|
19486
20100
|
|
|
19487
|
-
export type
|
|
20101
|
+
export type TasksUpdateResult = TasksUpdateResults[keyof TasksUpdateResults];
|
|
19488
20102
|
|
|
19489
|
-
export type
|
|
20103
|
+
export type TasksPublishData = {
|
|
19490
20104
|
body?: never;
|
|
19491
20105
|
path: {
|
|
19492
20106
|
/**
|
|
19493
20107
|
* Task Id
|
|
19494
20108
|
*/
|
|
19495
20109
|
task_id: string;
|
|
19496
|
-
/**
|
|
19497
|
-
* Run Id
|
|
19498
|
-
*/
|
|
19499
|
-
run_id: string;
|
|
19500
20110
|
};
|
|
19501
20111
|
query?: never;
|
|
19502
|
-
url: '/v1/tasks/{task_id}/
|
|
20112
|
+
url: '/v1/tasks/{task_id}/publish';
|
|
19503
20113
|
};
|
|
19504
20114
|
|
|
19505
|
-
export type
|
|
20115
|
+
export type TasksPublishErrors = {
|
|
20116
|
+
/**
|
|
20117
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
20118
|
+
*/
|
|
20119
|
+
400: ErrorResponse;
|
|
19506
20120
|
/**
|
|
19507
20121
|
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
19508
20122
|
*/
|
|
19509
20123
|
401: ErrorResponse;
|
|
20124
|
+
/**
|
|
20125
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
20126
|
+
*/
|
|
20127
|
+
403: ErrorResponse;
|
|
19510
20128
|
/**
|
|
19511
20129
|
* No such resource in this organization.
|
|
19512
20130
|
*/
|
|
19513
20131
|
404: ErrorResponse;
|
|
20132
|
+
/**
|
|
20133
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
20134
|
+
*/
|
|
20135
|
+
409: ErrorResponse;
|
|
19514
20136
|
/**
|
|
19515
20137
|
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
19516
20138
|
*/
|
|
@@ -19521,16 +20143,16 @@ export type TasksRunsGetErrors = {
|
|
|
19521
20143
|
default: ErrorResponse;
|
|
19522
20144
|
};
|
|
19523
20145
|
|
|
19524
|
-
export type
|
|
20146
|
+
export type TasksPublishError = TasksPublishErrors[keyof TasksPublishErrors];
|
|
19525
20147
|
|
|
19526
|
-
export type
|
|
20148
|
+
export type TasksPublishResults = {
|
|
19527
20149
|
/**
|
|
19528
20150
|
* Successful Response
|
|
19529
20151
|
*/
|
|
19530
|
-
200:
|
|
20152
|
+
200: PublishTaskResponse;
|
|
19531
20153
|
};
|
|
19532
20154
|
|
|
19533
|
-
export type
|
|
20155
|
+
export type TasksPublishResult = TasksPublishResults[keyof TasksPublishResults];
|
|
19534
20156
|
|
|
19535
20157
|
export type TasksValidateData = {
|
|
19536
20158
|
body?: never;
|