@talqing/sdk 0.6.0 → 0.8.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 +42 -16
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +71 -15
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +365 -20
- 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 +42 -16
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +71 -15
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +365 -20
- 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 +80 -16
- package/src/gen/types.gen.ts +383 -20
package/src/gen/types.gen.ts
CHANGED
|
@@ -4,6 +4,41 @@ export type ClientOptions = {
|
|
|
4
4
|
baseUrl: `${string}://${string}` | (string & {});
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* AddEmailRecipientsRequest
|
|
9
|
+
*/
|
|
10
|
+
export type AddEmailRecipientsRequest = {
|
|
11
|
+
/**
|
|
12
|
+
* Recipients
|
|
13
|
+
*/
|
|
14
|
+
recipients: Array<EmailRecipientInput>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* AddEmailRecipientsResponse
|
|
19
|
+
*
|
|
20
|
+
* `standing_send_id` is the send of every row that will mail the new rows
|
|
21
|
+
* without review, or null when they wait for review.
|
|
22
|
+
*/
|
|
23
|
+
export type AddEmailRecipientsResponse = {
|
|
24
|
+
/**
|
|
25
|
+
* Added
|
|
26
|
+
*/
|
|
27
|
+
added: number;
|
|
28
|
+
/**
|
|
29
|
+
* Skipped
|
|
30
|
+
*/
|
|
31
|
+
skipped: Array<SkippedEmailRecipient>;
|
|
32
|
+
/**
|
|
33
|
+
* Standing Send Id
|
|
34
|
+
*/
|
|
35
|
+
standing_send_id: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Total Recipients
|
|
38
|
+
*/
|
|
39
|
+
total_recipients: number;
|
|
40
|
+
};
|
|
41
|
+
|
|
7
42
|
/**
|
|
8
43
|
* AddMessageConfig
|
|
9
44
|
*/
|
|
@@ -44,9 +79,10 @@ export type AddRecipientsRequest = {
|
|
|
44
79
|
*
|
|
45
80
|
* What appending to a batch did.
|
|
46
81
|
*
|
|
47
|
-
* Numbers already in the batch
|
|
48
|
-
* re-uploading a list the operator re-exported
|
|
49
|
-
* never-call-twice guarantee doing its job is not a
|
|
82
|
+
* Numbers already in the batch, or repeated in the request, are skipped and
|
|
83
|
+
* reported rather than rejected: re-uploading a list the operator re-exported
|
|
84
|
+
* is the normal case, and the never-call-twice guarantee doing its job is not a
|
|
85
|
+
* user error.
|
|
50
86
|
*/
|
|
51
87
|
export type AddRecipientsResponse = {
|
|
52
88
|
/**
|
|
@@ -91,6 +127,34 @@ export type AddVoiceResponse = {
|
|
|
91
127
|
voice_id: string;
|
|
92
128
|
};
|
|
93
129
|
|
|
130
|
+
/**
|
|
131
|
+
* AddWhatsAppRecipientsRequest
|
|
132
|
+
*/
|
|
133
|
+
export type AddWhatsAppRecipientsRequest = {
|
|
134
|
+
/**
|
|
135
|
+
* Recipients
|
|
136
|
+
*/
|
|
137
|
+
recipients: Array<WhatsAppRecipientInput>;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* AddWhatsAppRecipientsResponse
|
|
142
|
+
*/
|
|
143
|
+
export type AddWhatsAppRecipientsResponse = {
|
|
144
|
+
/**
|
|
145
|
+
* Added
|
|
146
|
+
*/
|
|
147
|
+
added: number;
|
|
148
|
+
/**
|
|
149
|
+
* Skipped
|
|
150
|
+
*/
|
|
151
|
+
skipped: Array<SkippedWhatsAppRecipient>;
|
|
152
|
+
/**
|
|
153
|
+
* Total Recipients
|
|
154
|
+
*/
|
|
155
|
+
total_recipients: number;
|
|
156
|
+
};
|
|
157
|
+
|
|
94
158
|
/**
|
|
95
159
|
* AgentConfig
|
|
96
160
|
*
|
|
@@ -1262,6 +1326,26 @@ export type CallBatchResponse = {
|
|
|
1262
1326
|
* Created At
|
|
1263
1327
|
*/
|
|
1264
1328
|
created_at: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* Dial Daily Cap
|
|
1331
|
+
*/
|
|
1332
|
+
dial_daily_cap: ({
|
|
1333
|
+
kind: 'fixed';
|
|
1334
|
+
} & FixedDailyCap) | ({
|
|
1335
|
+
kind: 'ramp';
|
|
1336
|
+
} & RampDailyCap) | null;
|
|
1337
|
+
/**
|
|
1338
|
+
* Dial Daily Cap Today
|
|
1339
|
+
*/
|
|
1340
|
+
dial_daily_cap_today: number | null;
|
|
1341
|
+
/**
|
|
1342
|
+
* Dial Gap Seconds
|
|
1343
|
+
*/
|
|
1344
|
+
dial_gap_seconds: number;
|
|
1345
|
+
/**
|
|
1346
|
+
* Dialed Today
|
|
1347
|
+
*/
|
|
1348
|
+
dialed_today: number;
|
|
1265
1349
|
/**
|
|
1266
1350
|
* Ended At
|
|
1267
1351
|
*/
|
|
@@ -1298,6 +1382,10 @@ export type CallBatchResponse = {
|
|
|
1298
1382
|
* Next Dial At
|
|
1299
1383
|
*/
|
|
1300
1384
|
next_dial_at: string | null;
|
|
1385
|
+
/**
|
|
1386
|
+
* Next Dial Reason
|
|
1387
|
+
*/
|
|
1388
|
+
next_dial_reason: 'start' | 'window' | 'daily_cap' | null;
|
|
1301
1389
|
/**
|
|
1302
1390
|
* Retry After Minutes
|
|
1303
1391
|
*/
|
|
@@ -2825,6 +2913,22 @@ export type CreateCallBatchRequest = {
|
|
|
2825
2913
|
*/
|
|
2826
2914
|
agent_version?: number | 'draft' | null;
|
|
2827
2915
|
calling_window?: TimeWindow | null;
|
|
2916
|
+
/**
|
|
2917
|
+
* Dial Daily Cap
|
|
2918
|
+
*
|
|
2919
|
+
* Calls placed per local day, retries included: a fixed limit, or a ramp that rises on days it dialled. Null is uncapped.
|
|
2920
|
+
*/
|
|
2921
|
+
dial_daily_cap?: ({
|
|
2922
|
+
kind: 'fixed';
|
|
2923
|
+
} & FixedDailyCap) | ({
|
|
2924
|
+
kind: 'ramp';
|
|
2925
|
+
} & RampDailyCap) | null;
|
|
2926
|
+
/**
|
|
2927
|
+
* Dial Gap Seconds
|
|
2928
|
+
*
|
|
2929
|
+
* Minimum seconds between STARTING two calls; 0 dials as slots free. A call may start up to 30 seconds after its gap ends.
|
|
2930
|
+
*/
|
|
2931
|
+
dial_gap_seconds?: number;
|
|
2828
2932
|
/**
|
|
2829
2933
|
* From Phone Number Id
|
|
2830
2934
|
*/
|
|
@@ -2981,9 +3085,13 @@ export type CreateEmailBatchRequest = {
|
|
|
2981
3085
|
/**
|
|
2982
3086
|
* Send Daily Cap
|
|
2983
3087
|
*
|
|
2984
|
-
* Emails this batch may send per local day, across all of its sends. Null is uncapped.
|
|
3088
|
+
* Emails this batch may send per local day, across all of its sends: a fixed limit, or a ramp that rises on days it sent. Null is uncapped.
|
|
2985
3089
|
*/
|
|
2986
|
-
send_daily_cap?:
|
|
3090
|
+
send_daily_cap?: ({
|
|
3091
|
+
kind: 'fixed';
|
|
3092
|
+
} & FixedDailyCap) | ({
|
|
3093
|
+
kind: 'ramp';
|
|
3094
|
+
} & RampDailyCap) | null;
|
|
2987
3095
|
/**
|
|
2988
3096
|
* Send Gap Seconds
|
|
2989
3097
|
*
|
|
@@ -3058,7 +3166,11 @@ export type CreateEmailSendRequest = {
|
|
|
3058
3166
|
/**
|
|
3059
3167
|
* Send Daily Cap
|
|
3060
3168
|
*/
|
|
3061
|
-
send_daily_cap?:
|
|
3169
|
+
send_daily_cap?: ({
|
|
3170
|
+
kind: 'fixed';
|
|
3171
|
+
} & FixedDailyCap) | ({
|
|
3172
|
+
kind: 'ramp';
|
|
3173
|
+
} & RampDailyCap) | null;
|
|
3062
3174
|
/**
|
|
3063
3175
|
* Send Gap Seconds
|
|
3064
3176
|
*/
|
|
@@ -3356,9 +3468,13 @@ export type CreateWhatsAppBatchRequest = {
|
|
|
3356
3468
|
/**
|
|
3357
3469
|
* Send Daily Cap
|
|
3358
3470
|
*
|
|
3359
|
-
* Messages per local day. Null is uncapped.
|
|
3471
|
+
* Messages per local day: a fixed limit, or a ramp that rises on days it sent. Null is uncapped.
|
|
3360
3472
|
*/
|
|
3361
|
-
send_daily_cap?:
|
|
3473
|
+
send_daily_cap?: ({
|
|
3474
|
+
kind: 'fixed';
|
|
3475
|
+
} & FixedDailyCap) | ({
|
|
3476
|
+
kind: 'ramp';
|
|
3477
|
+
} & RampDailyCap) | null;
|
|
3362
3478
|
/**
|
|
3363
3479
|
* Send Gap Seconds
|
|
3364
3480
|
*/
|
|
@@ -3787,7 +3903,15 @@ export type EmailBatchResponse = {
|
|
|
3787
3903
|
/**
|
|
3788
3904
|
* Send Daily Cap
|
|
3789
3905
|
*/
|
|
3790
|
-
send_daily_cap:
|
|
3906
|
+
send_daily_cap: ({
|
|
3907
|
+
kind: 'fixed';
|
|
3908
|
+
} & FixedDailyCap) | ({
|
|
3909
|
+
kind: 'ramp';
|
|
3910
|
+
} & RampDailyCap) | null;
|
|
3911
|
+
/**
|
|
3912
|
+
* Send Daily Cap Today
|
|
3913
|
+
*/
|
|
3914
|
+
send_daily_cap_today: number | null;
|
|
3791
3915
|
/**
|
|
3792
3916
|
* Send Gap Seconds
|
|
3793
3917
|
*/
|
|
@@ -4068,7 +4192,15 @@ export type EmailSendResponse = {
|
|
|
4068
4192
|
/**
|
|
4069
4193
|
* Send Daily Cap
|
|
4070
4194
|
*/
|
|
4071
|
-
send_daily_cap:
|
|
4195
|
+
send_daily_cap: ({
|
|
4196
|
+
kind: 'fixed';
|
|
4197
|
+
} & FixedDailyCap) | ({
|
|
4198
|
+
kind: 'ramp';
|
|
4199
|
+
} & RampDailyCap) | null;
|
|
4200
|
+
/**
|
|
4201
|
+
* Send Daily Cap Today
|
|
4202
|
+
*/
|
|
4203
|
+
send_daily_cap_today: number | null;
|
|
4072
4204
|
/**
|
|
4073
4205
|
* Send Gap Seconds
|
|
4074
4206
|
*/
|
|
@@ -4257,6 +4389,22 @@ export type FieldMap = {
|
|
|
4257
4389
|
to: string;
|
|
4258
4390
|
};
|
|
4259
4391
|
|
|
4392
|
+
/**
|
|
4393
|
+
* FixedDailyCap
|
|
4394
|
+
*
|
|
4395
|
+
* The same limit every day.
|
|
4396
|
+
*/
|
|
4397
|
+
export type FixedDailyCap = {
|
|
4398
|
+
/**
|
|
4399
|
+
* Kind
|
|
4400
|
+
*/
|
|
4401
|
+
kind: 'fixed';
|
|
4402
|
+
/**
|
|
4403
|
+
* Limit
|
|
4404
|
+
*/
|
|
4405
|
+
limit: number;
|
|
4406
|
+
};
|
|
4407
|
+
|
|
4260
4408
|
/**
|
|
4261
4409
|
* FrontendRpcConfig
|
|
4262
4410
|
*/
|
|
@@ -7847,10 +7995,11 @@ export type PageWhatsAppRecipientResponse = {
|
|
|
7847
7995
|
/**
|
|
7848
7996
|
* PatchCallBatchRequest
|
|
7849
7997
|
*
|
|
7850
|
-
* Policy edits, allowed while a batch is `scheduled`, `running` or `
|
|
7998
|
+
* Policy edits, allowed while a batch is `scheduled`, `running`, `paused` or `completed`.
|
|
7851
7999
|
*
|
|
7852
|
-
* ``calling_window`` and ``
|
|
7853
|
-
* them — "dial at any hour", "start on the next pass"
|
|
8000
|
+
* ``calling_window``, ``start_at`` and ``dial_daily_cap`` accept an explicit
|
|
8001
|
+
* ``null`` to *clear* them — "dial at any hour", "start on the next pass", "no
|
|
8002
|
+
* daily limit" — which is why the
|
|
7854
8003
|
* service reads ``model_fields_set`` rather than treating absent and null the
|
|
7855
8004
|
* same way. Every other field keeps the usual PATCH rule: absent means
|
|
7856
8005
|
* unchanged.
|
|
@@ -7861,6 +8010,18 @@ export type PatchCallBatchRequest = {
|
|
|
7861
8010
|
*/
|
|
7862
8011
|
agent_id?: string | null;
|
|
7863
8012
|
calling_window?: TimeWindow | null;
|
|
8013
|
+
/**
|
|
8014
|
+
* Dial Daily Cap
|
|
8015
|
+
*/
|
|
8016
|
+
dial_daily_cap?: ({
|
|
8017
|
+
kind: 'fixed';
|
|
8018
|
+
} & FixedDailyCap) | ({
|
|
8019
|
+
kind: 'ramp';
|
|
8020
|
+
} & RampDailyCap) | null;
|
|
8021
|
+
/**
|
|
8022
|
+
* Dial Gap Seconds
|
|
8023
|
+
*/
|
|
8024
|
+
dial_gap_seconds?: number | null;
|
|
7864
8025
|
/**
|
|
7865
8026
|
* From Phone Number Id
|
|
7866
8027
|
*/
|
|
@@ -7973,7 +8134,11 @@ export type PatchEmailBatchRequest = {
|
|
|
7973
8134
|
/**
|
|
7974
8135
|
* Send Daily Cap
|
|
7975
8136
|
*/
|
|
7976
|
-
send_daily_cap?:
|
|
8137
|
+
send_daily_cap?: ({
|
|
8138
|
+
kind: 'fixed';
|
|
8139
|
+
} & FixedDailyCap) | ({
|
|
8140
|
+
kind: 'ramp';
|
|
8141
|
+
} & RampDailyCap) | null;
|
|
7977
8142
|
/**
|
|
7978
8143
|
* Send Gap Seconds
|
|
7979
8144
|
*/
|
|
@@ -8030,7 +8195,11 @@ export type PatchEmailSendRequest = {
|
|
|
8030
8195
|
/**
|
|
8031
8196
|
* Send Daily Cap
|
|
8032
8197
|
*/
|
|
8033
|
-
send_daily_cap?:
|
|
8198
|
+
send_daily_cap?: ({
|
|
8199
|
+
kind: 'fixed';
|
|
8200
|
+
} & FixedDailyCap) | ({
|
|
8201
|
+
kind: 'ramp';
|
|
8202
|
+
} & RampDailyCap) | null;
|
|
8034
8203
|
/**
|
|
8035
8204
|
* Send Gap Seconds
|
|
8036
8205
|
*/
|
|
@@ -8315,9 +8484,13 @@ export type PatchWhatsAppBatchRequest = {
|
|
|
8315
8484
|
/**
|
|
8316
8485
|
* Send Daily Cap
|
|
8317
8486
|
*
|
|
8318
|
-
* Messages per local day. Null is uncapped.
|
|
8487
|
+
* Messages per local day: a fixed limit, or a ramp that rises on days it sent. Null is uncapped.
|
|
8319
8488
|
*/
|
|
8320
|
-
send_daily_cap?:
|
|
8489
|
+
send_daily_cap?: ({
|
|
8490
|
+
kind: 'fixed';
|
|
8491
|
+
} & FixedDailyCap) | ({
|
|
8492
|
+
kind: 'ramp';
|
|
8493
|
+
} & RampDailyCap) | null;
|
|
8321
8494
|
/**
|
|
8322
8495
|
* Send Gap Seconds
|
|
8323
8496
|
*/
|
|
@@ -8885,6 +9058,34 @@ export type PublishedValueResponse = {
|
|
|
8885
9058
|
value?: unknown;
|
|
8886
9059
|
};
|
|
8887
9060
|
|
|
9061
|
+
/**
|
|
9062
|
+
* RampDailyCap
|
|
9063
|
+
*
|
|
9064
|
+
* `start` a day, raised by `step` every `interval_days` sending days, up to `end`.
|
|
9065
|
+
*/
|
|
9066
|
+
export type RampDailyCap = {
|
|
9067
|
+
/**
|
|
9068
|
+
* End
|
|
9069
|
+
*/
|
|
9070
|
+
end: number;
|
|
9071
|
+
/**
|
|
9072
|
+
* Interval Days
|
|
9073
|
+
*/
|
|
9074
|
+
interval_days: number;
|
|
9075
|
+
/**
|
|
9076
|
+
* Kind
|
|
9077
|
+
*/
|
|
9078
|
+
kind: 'ramp';
|
|
9079
|
+
/**
|
|
9080
|
+
* Start
|
|
9081
|
+
*/
|
|
9082
|
+
start: number;
|
|
9083
|
+
/**
|
|
9084
|
+
* Step
|
|
9085
|
+
*/
|
|
9086
|
+
step: number;
|
|
9087
|
+
};
|
|
9088
|
+
|
|
8888
9089
|
/**
|
|
8889
9090
|
* RealtimeCatalogEntryResponse
|
|
8890
9091
|
*/
|
|
@@ -9992,9 +10193,13 @@ export type SendWhatsAppBatchRequest = {
|
|
|
9992
10193
|
/**
|
|
9993
10194
|
* Send Daily Cap
|
|
9994
10195
|
*
|
|
9995
|
-
* Messages per local day. Null is uncapped.
|
|
10196
|
+
* Messages per local day: a fixed limit, or a ramp that rises on days it sent. Null is uncapped.
|
|
9996
10197
|
*/
|
|
9997
|
-
send_daily_cap?:
|
|
10198
|
+
send_daily_cap?: ({
|
|
10199
|
+
kind: 'fixed';
|
|
10200
|
+
} & FixedDailyCap) | ({
|
|
10201
|
+
kind: 'ramp';
|
|
10202
|
+
} & RampDailyCap) | null;
|
|
9998
10203
|
/**
|
|
9999
10204
|
* Send Gap Seconds
|
|
10000
10205
|
*/
|
|
@@ -10218,6 +10423,27 @@ export type SilenceSpecOverride = {
|
|
|
10218
10423
|
timeout?: number | null;
|
|
10219
10424
|
};
|
|
10220
10425
|
|
|
10426
|
+
/**
|
|
10427
|
+
* SkippedEmailRecipient
|
|
10428
|
+
*
|
|
10429
|
+
* A row of the request that will not be drafted. `row_number` is its 1-based
|
|
10430
|
+
* position in the request; `recipient_id` is null when it was not stored.
|
|
10431
|
+
*/
|
|
10432
|
+
export type SkippedEmailRecipient = {
|
|
10433
|
+
/**
|
|
10434
|
+
* Reason
|
|
10435
|
+
*/
|
|
10436
|
+
reason: string;
|
|
10437
|
+
/**
|
|
10438
|
+
* Recipient Id
|
|
10439
|
+
*/
|
|
10440
|
+
recipient_id: string | null;
|
|
10441
|
+
/**
|
|
10442
|
+
* Row Number
|
|
10443
|
+
*/
|
|
10444
|
+
row_number: number;
|
|
10445
|
+
};
|
|
10446
|
+
|
|
10221
10447
|
/**
|
|
10222
10448
|
* SkippedRecipient
|
|
10223
10449
|
*/
|
|
@@ -10236,6 +10462,27 @@ export type SkippedRecipient = {
|
|
|
10236
10462
|
to: string;
|
|
10237
10463
|
};
|
|
10238
10464
|
|
|
10465
|
+
/**
|
|
10466
|
+
* SkippedWhatsAppRecipient
|
|
10467
|
+
*
|
|
10468
|
+
* A row of the request that will not be sent. `row_number` is its 1-based
|
|
10469
|
+
* position in the request; `recipient_id` is null when it was not stored.
|
|
10470
|
+
*/
|
|
10471
|
+
export type SkippedWhatsAppRecipient = {
|
|
10472
|
+
/**
|
|
10473
|
+
* Reason
|
|
10474
|
+
*/
|
|
10475
|
+
reason: string;
|
|
10476
|
+
/**
|
|
10477
|
+
* Recipient Id
|
|
10478
|
+
*/
|
|
10479
|
+
recipient_id: string | null;
|
|
10480
|
+
/**
|
|
10481
|
+
* Row Number
|
|
10482
|
+
*/
|
|
10483
|
+
row_number: number;
|
|
10484
|
+
};
|
|
10485
|
+
|
|
10239
10486
|
/**
|
|
10240
10487
|
* StoredAgentPlan
|
|
10241
10488
|
*
|
|
@@ -12553,7 +12800,15 @@ export type WhatsAppBatchResponse = {
|
|
|
12553
12800
|
/**
|
|
12554
12801
|
* Send Daily Cap
|
|
12555
12802
|
*/
|
|
12556
|
-
send_daily_cap:
|
|
12803
|
+
send_daily_cap: ({
|
|
12804
|
+
kind: 'fixed';
|
|
12805
|
+
} & FixedDailyCap) | ({
|
|
12806
|
+
kind: 'ramp';
|
|
12807
|
+
} & RampDailyCap) | null;
|
|
12808
|
+
/**
|
|
12809
|
+
* Send Daily Cap Today
|
|
12810
|
+
*/
|
|
12811
|
+
send_daily_cap_today: number | null;
|
|
12557
12812
|
/**
|
|
12558
12813
|
* Send Gap Seconds
|
|
12559
12814
|
*/
|
|
@@ -16763,6 +17018,60 @@ export type EmailBatchesRecipientsListResults = {
|
|
|
16763
17018
|
|
|
16764
17019
|
export type EmailBatchesRecipientsListResult = EmailBatchesRecipientsListResults[keyof EmailBatchesRecipientsListResults];
|
|
16765
17020
|
|
|
17021
|
+
export type EmailBatchesRecipientsAddData = {
|
|
17022
|
+
body: AddEmailRecipientsRequest;
|
|
17023
|
+
path: {
|
|
17024
|
+
/**
|
|
17025
|
+
* Batch Id
|
|
17026
|
+
*/
|
|
17027
|
+
batch_id: string;
|
|
17028
|
+
};
|
|
17029
|
+
query?: never;
|
|
17030
|
+
url: '/v1/email/batches/{batch_id}/recipients';
|
|
17031
|
+
};
|
|
17032
|
+
|
|
17033
|
+
export type EmailBatchesRecipientsAddErrors = {
|
|
17034
|
+
/**
|
|
17035
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
17036
|
+
*/
|
|
17037
|
+
400: ErrorResponse;
|
|
17038
|
+
/**
|
|
17039
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
17040
|
+
*/
|
|
17041
|
+
401: ErrorResponse;
|
|
17042
|
+
/**
|
|
17043
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
17044
|
+
*/
|
|
17045
|
+
403: ErrorResponse;
|
|
17046
|
+
/**
|
|
17047
|
+
* No such resource in this organization.
|
|
17048
|
+
*/
|
|
17049
|
+
404: ErrorResponse;
|
|
17050
|
+
/**
|
|
17051
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
17052
|
+
*/
|
|
17053
|
+
409: ErrorResponse;
|
|
17054
|
+
/**
|
|
17055
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
17056
|
+
*/
|
|
17057
|
+
422: ErrorResponse;
|
|
17058
|
+
/**
|
|
17059
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
17060
|
+
*/
|
|
17061
|
+
default: ErrorResponse;
|
|
17062
|
+
};
|
|
17063
|
+
|
|
17064
|
+
export type EmailBatchesRecipientsAddError = EmailBatchesRecipientsAddErrors[keyof EmailBatchesRecipientsAddErrors];
|
|
17065
|
+
|
|
17066
|
+
export type EmailBatchesRecipientsAddResults = {
|
|
17067
|
+
/**
|
|
17068
|
+
* Successful Response
|
|
17069
|
+
*/
|
|
17070
|
+
200: AddEmailRecipientsResponse;
|
|
17071
|
+
};
|
|
17072
|
+
|
|
17073
|
+
export type EmailBatchesRecipientsAddResult = EmailBatchesRecipientsAddResults[keyof EmailBatchesRecipientsAddResults];
|
|
17074
|
+
|
|
16766
17075
|
export type EmailBatchesRecipientsUpdateData = {
|
|
16767
17076
|
body: PatchEmailRecipientRequest;
|
|
16768
17077
|
path: {
|
|
@@ -21729,6 +22038,60 @@ export type WhatsappBatchesRecipientsListResults = {
|
|
|
21729
22038
|
|
|
21730
22039
|
export type WhatsappBatchesRecipientsListResult = WhatsappBatchesRecipientsListResults[keyof WhatsappBatchesRecipientsListResults];
|
|
21731
22040
|
|
|
22041
|
+
export type WhatsappBatchesRecipientsAddData = {
|
|
22042
|
+
body: AddWhatsAppRecipientsRequest;
|
|
22043
|
+
path: {
|
|
22044
|
+
/**
|
|
22045
|
+
* Batch Id
|
|
22046
|
+
*/
|
|
22047
|
+
batch_id: string;
|
|
22048
|
+
};
|
|
22049
|
+
query?: never;
|
|
22050
|
+
url: '/v1/whatsapp/batches/{batch_id}/recipients';
|
|
22051
|
+
};
|
|
22052
|
+
|
|
22053
|
+
export type WhatsappBatchesRecipientsAddErrors = {
|
|
22054
|
+
/**
|
|
22055
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
22056
|
+
*/
|
|
22057
|
+
400: ErrorResponse;
|
|
22058
|
+
/**
|
|
22059
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
22060
|
+
*/
|
|
22061
|
+
401: ErrorResponse;
|
|
22062
|
+
/**
|
|
22063
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
22064
|
+
*/
|
|
22065
|
+
403: ErrorResponse;
|
|
22066
|
+
/**
|
|
22067
|
+
* No such resource in this organization.
|
|
22068
|
+
*/
|
|
22069
|
+
404: ErrorResponse;
|
|
22070
|
+
/**
|
|
22071
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
22072
|
+
*/
|
|
22073
|
+
409: ErrorResponse;
|
|
22074
|
+
/**
|
|
22075
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
22076
|
+
*/
|
|
22077
|
+
422: ErrorResponse;
|
|
22078
|
+
/**
|
|
22079
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
22080
|
+
*/
|
|
22081
|
+
default: ErrorResponse;
|
|
22082
|
+
};
|
|
22083
|
+
|
|
22084
|
+
export type WhatsappBatchesRecipientsAddError = WhatsappBatchesRecipientsAddErrors[keyof WhatsappBatchesRecipientsAddErrors];
|
|
22085
|
+
|
|
22086
|
+
export type WhatsappBatchesRecipientsAddResults = {
|
|
22087
|
+
/**
|
|
22088
|
+
* Successful Response
|
|
22089
|
+
*/
|
|
22090
|
+
200: AddWhatsAppRecipientsResponse;
|
|
22091
|
+
};
|
|
22092
|
+
|
|
22093
|
+
export type WhatsappBatchesRecipientsAddResult = WhatsappBatchesRecipientsAddResults[keyof WhatsappBatchesRecipientsAddResults];
|
|
22094
|
+
|
|
21732
22095
|
export type WhatsappBatchesRecipientsRestoreData = {
|
|
21733
22096
|
body: SelectRecipientsRequest;
|
|
21734
22097
|
path: {
|