@talqing/sdk 0.7.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 +11 -8
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +11 -8
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +163 -16
- 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 +11 -8
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +11 -8
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +163 -16
- 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 +11 -8
- package/src/gen/types.gen.ts +165 -16
|
@@ -1276,6 +1276,26 @@ export type CallBatchResponse = {
|
|
|
1276
1276
|
* Created At
|
|
1277
1277
|
*/
|
|
1278
1278
|
created_at: string;
|
|
1279
|
+
/**
|
|
1280
|
+
* Dial Daily Cap
|
|
1281
|
+
*/
|
|
1282
|
+
dial_daily_cap: ({
|
|
1283
|
+
kind: 'fixed';
|
|
1284
|
+
} & FixedDailyCap) | ({
|
|
1285
|
+
kind: 'ramp';
|
|
1286
|
+
} & RampDailyCap) | null;
|
|
1287
|
+
/**
|
|
1288
|
+
* Dial Daily Cap Today
|
|
1289
|
+
*/
|
|
1290
|
+
dial_daily_cap_today: number | null;
|
|
1291
|
+
/**
|
|
1292
|
+
* Dial Gap Seconds
|
|
1293
|
+
*/
|
|
1294
|
+
dial_gap_seconds: number;
|
|
1295
|
+
/**
|
|
1296
|
+
* Dialed Today
|
|
1297
|
+
*/
|
|
1298
|
+
dialed_today: number;
|
|
1279
1299
|
/**
|
|
1280
1300
|
* Ended At
|
|
1281
1301
|
*/
|
|
@@ -1312,6 +1332,10 @@ export type CallBatchResponse = {
|
|
|
1312
1332
|
* Next Dial At
|
|
1313
1333
|
*/
|
|
1314
1334
|
next_dial_at: string | null;
|
|
1335
|
+
/**
|
|
1336
|
+
* Next Dial Reason
|
|
1337
|
+
*/
|
|
1338
|
+
next_dial_reason: 'start' | 'window' | 'daily_cap' | null;
|
|
1315
1339
|
/**
|
|
1316
1340
|
* Retry After Minutes
|
|
1317
1341
|
*/
|
|
@@ -2799,6 +2823,22 @@ export type CreateCallBatchRequest = {
|
|
|
2799
2823
|
*/
|
|
2800
2824
|
agent_version?: number | 'draft' | null;
|
|
2801
2825
|
calling_window?: TimeWindow | null;
|
|
2826
|
+
/**
|
|
2827
|
+
* Dial Daily Cap
|
|
2828
|
+
*
|
|
2829
|
+
* Calls placed per local day, retries included: a fixed limit, or a ramp that rises on days it dialled. Null is uncapped.
|
|
2830
|
+
*/
|
|
2831
|
+
dial_daily_cap?: ({
|
|
2832
|
+
kind: 'fixed';
|
|
2833
|
+
} & FixedDailyCap) | ({
|
|
2834
|
+
kind: 'ramp';
|
|
2835
|
+
} & RampDailyCap) | null;
|
|
2836
|
+
/**
|
|
2837
|
+
* Dial Gap Seconds
|
|
2838
|
+
*
|
|
2839
|
+
* Minimum seconds between STARTING two calls; 0 dials as slots free. A call may start up to 30 seconds after its gap ends.
|
|
2840
|
+
*/
|
|
2841
|
+
dial_gap_seconds?: number;
|
|
2802
2842
|
/**
|
|
2803
2843
|
* From Phone Number Id
|
|
2804
2844
|
*/
|
|
@@ -2953,9 +2993,13 @@ export type CreateEmailBatchRequest = {
|
|
|
2953
2993
|
/**
|
|
2954
2994
|
* Send Daily Cap
|
|
2955
2995
|
*
|
|
2956
|
-
* Emails this batch may send per local day, across all of its sends. Null is uncapped.
|
|
2996
|
+
* 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.
|
|
2957
2997
|
*/
|
|
2958
|
-
send_daily_cap?:
|
|
2998
|
+
send_daily_cap?: ({
|
|
2999
|
+
kind: 'fixed';
|
|
3000
|
+
} & FixedDailyCap) | ({
|
|
3001
|
+
kind: 'ramp';
|
|
3002
|
+
} & RampDailyCap) | null;
|
|
2959
3003
|
/**
|
|
2960
3004
|
* Send Gap Seconds
|
|
2961
3005
|
*
|
|
@@ -3029,7 +3073,11 @@ export type CreateEmailSendRequest = {
|
|
|
3029
3073
|
/**
|
|
3030
3074
|
* Send Daily Cap
|
|
3031
3075
|
*/
|
|
3032
|
-
send_daily_cap?:
|
|
3076
|
+
send_daily_cap?: ({
|
|
3077
|
+
kind: 'fixed';
|
|
3078
|
+
} & FixedDailyCap) | ({
|
|
3079
|
+
kind: 'ramp';
|
|
3080
|
+
} & RampDailyCap) | null;
|
|
3033
3081
|
/**
|
|
3034
3082
|
* Send Gap Seconds
|
|
3035
3083
|
*/
|
|
@@ -3316,9 +3364,13 @@ export type CreateWhatsAppBatchRequest = {
|
|
|
3316
3364
|
/**
|
|
3317
3365
|
* Send Daily Cap
|
|
3318
3366
|
*
|
|
3319
|
-
* Messages per local day. Null is uncapped.
|
|
3367
|
+
* Messages per local day: a fixed limit, or a ramp that rises on days it sent. Null is uncapped.
|
|
3320
3368
|
*/
|
|
3321
|
-
send_daily_cap?:
|
|
3369
|
+
send_daily_cap?: ({
|
|
3370
|
+
kind: 'fixed';
|
|
3371
|
+
} & FixedDailyCap) | ({
|
|
3372
|
+
kind: 'ramp';
|
|
3373
|
+
} & RampDailyCap) | null;
|
|
3322
3374
|
/**
|
|
3323
3375
|
* Send Gap Seconds
|
|
3324
3376
|
*/
|
|
@@ -3735,7 +3787,15 @@ export type EmailBatchResponse = {
|
|
|
3735
3787
|
/**
|
|
3736
3788
|
* Send Daily Cap
|
|
3737
3789
|
*/
|
|
3738
|
-
send_daily_cap:
|
|
3790
|
+
send_daily_cap: ({
|
|
3791
|
+
kind: 'fixed';
|
|
3792
|
+
} & FixedDailyCap) | ({
|
|
3793
|
+
kind: 'ramp';
|
|
3794
|
+
} & RampDailyCap) | null;
|
|
3795
|
+
/**
|
|
3796
|
+
* Send Daily Cap Today
|
|
3797
|
+
*/
|
|
3798
|
+
send_daily_cap_today: number | null;
|
|
3739
3799
|
/**
|
|
3740
3800
|
* Send Gap Seconds
|
|
3741
3801
|
*/
|
|
@@ -4011,7 +4071,15 @@ export type EmailSendResponse = {
|
|
|
4011
4071
|
/**
|
|
4012
4072
|
* Send Daily Cap
|
|
4013
4073
|
*/
|
|
4014
|
-
send_daily_cap:
|
|
4074
|
+
send_daily_cap: ({
|
|
4075
|
+
kind: 'fixed';
|
|
4076
|
+
} & FixedDailyCap) | ({
|
|
4077
|
+
kind: 'ramp';
|
|
4078
|
+
} & RampDailyCap) | null;
|
|
4079
|
+
/**
|
|
4080
|
+
* Send Daily Cap Today
|
|
4081
|
+
*/
|
|
4082
|
+
send_daily_cap_today: number | null;
|
|
4015
4083
|
/**
|
|
4016
4084
|
* Send Gap Seconds
|
|
4017
4085
|
*/
|
|
@@ -4190,6 +4258,21 @@ export type FieldMap = {
|
|
|
4190
4258
|
*/
|
|
4191
4259
|
to: string;
|
|
4192
4260
|
};
|
|
4261
|
+
/**
|
|
4262
|
+
* FixedDailyCap
|
|
4263
|
+
*
|
|
4264
|
+
* The same limit every day.
|
|
4265
|
+
*/
|
|
4266
|
+
export type FixedDailyCap = {
|
|
4267
|
+
/**
|
|
4268
|
+
* Kind
|
|
4269
|
+
*/
|
|
4270
|
+
kind: 'fixed';
|
|
4271
|
+
/**
|
|
4272
|
+
* Limit
|
|
4273
|
+
*/
|
|
4274
|
+
limit: number;
|
|
4275
|
+
};
|
|
4193
4276
|
/**
|
|
4194
4277
|
* FrontendRpcConfig
|
|
4195
4278
|
*/
|
|
@@ -7662,8 +7745,9 @@ export type PageWhatsAppRecipientResponse = {
|
|
|
7662
7745
|
*
|
|
7663
7746
|
* Policy edits, allowed while a batch is `scheduled`, `running`, `paused` or `completed`.
|
|
7664
7747
|
*
|
|
7665
|
-
* ``calling_window`` and ``
|
|
7666
|
-
* them — "dial at any hour", "start on the next pass"
|
|
7748
|
+
* ``calling_window``, ``start_at`` and ``dial_daily_cap`` accept an explicit
|
|
7749
|
+
* ``null`` to *clear* them — "dial at any hour", "start on the next pass", "no
|
|
7750
|
+
* daily limit" — which is why the
|
|
7667
7751
|
* service reads ``model_fields_set`` rather than treating absent and null the
|
|
7668
7752
|
* same way. Every other field keeps the usual PATCH rule: absent means
|
|
7669
7753
|
* unchanged.
|
|
@@ -7674,6 +7758,18 @@ export type PatchCallBatchRequest = {
|
|
|
7674
7758
|
*/
|
|
7675
7759
|
agent_id?: string | null;
|
|
7676
7760
|
calling_window?: TimeWindow | null;
|
|
7761
|
+
/**
|
|
7762
|
+
* Dial Daily Cap
|
|
7763
|
+
*/
|
|
7764
|
+
dial_daily_cap?: ({
|
|
7765
|
+
kind: 'fixed';
|
|
7766
|
+
} & FixedDailyCap) | ({
|
|
7767
|
+
kind: 'ramp';
|
|
7768
|
+
} & RampDailyCap) | null;
|
|
7769
|
+
/**
|
|
7770
|
+
* Dial Gap Seconds
|
|
7771
|
+
*/
|
|
7772
|
+
dial_gap_seconds?: number | null;
|
|
7677
7773
|
/**
|
|
7678
7774
|
* From Phone Number Id
|
|
7679
7775
|
*/
|
|
@@ -7784,7 +7880,11 @@ export type PatchEmailBatchRequest = {
|
|
|
7784
7880
|
/**
|
|
7785
7881
|
* Send Daily Cap
|
|
7786
7882
|
*/
|
|
7787
|
-
send_daily_cap?:
|
|
7883
|
+
send_daily_cap?: ({
|
|
7884
|
+
kind: 'fixed';
|
|
7885
|
+
} & FixedDailyCap) | ({
|
|
7886
|
+
kind: 'ramp';
|
|
7887
|
+
} & RampDailyCap) | null;
|
|
7788
7888
|
/**
|
|
7789
7889
|
* Send Gap Seconds
|
|
7790
7890
|
*/
|
|
@@ -7839,7 +7939,11 @@ export type PatchEmailSendRequest = {
|
|
|
7839
7939
|
/**
|
|
7840
7940
|
* Send Daily Cap
|
|
7841
7941
|
*/
|
|
7842
|
-
send_daily_cap?:
|
|
7942
|
+
send_daily_cap?: ({
|
|
7943
|
+
kind: 'fixed';
|
|
7944
|
+
} & FixedDailyCap) | ({
|
|
7945
|
+
kind: 'ramp';
|
|
7946
|
+
} & RampDailyCap) | null;
|
|
7843
7947
|
/**
|
|
7844
7948
|
* Send Gap Seconds
|
|
7845
7949
|
*/
|
|
@@ -8114,9 +8218,13 @@ export type PatchWhatsAppBatchRequest = {
|
|
|
8114
8218
|
/**
|
|
8115
8219
|
* Send Daily Cap
|
|
8116
8220
|
*
|
|
8117
|
-
* Messages per local day. Null is uncapped.
|
|
8221
|
+
* Messages per local day: a fixed limit, or a ramp that rises on days it sent. Null is uncapped.
|
|
8118
8222
|
*/
|
|
8119
|
-
send_daily_cap?:
|
|
8223
|
+
send_daily_cap?: ({
|
|
8224
|
+
kind: 'fixed';
|
|
8225
|
+
} & FixedDailyCap) | ({
|
|
8226
|
+
kind: 'ramp';
|
|
8227
|
+
} & RampDailyCap) | null;
|
|
8120
8228
|
/**
|
|
8121
8229
|
* Send Gap Seconds
|
|
8122
8230
|
*/
|
|
@@ -8662,6 +8770,33 @@ export type PublishedValueResponse = {
|
|
|
8662
8770
|
*/
|
|
8663
8771
|
value?: unknown;
|
|
8664
8772
|
};
|
|
8773
|
+
/**
|
|
8774
|
+
* RampDailyCap
|
|
8775
|
+
*
|
|
8776
|
+
* `start` a day, raised by `step` every `interval_days` sending days, up to `end`.
|
|
8777
|
+
*/
|
|
8778
|
+
export type RampDailyCap = {
|
|
8779
|
+
/**
|
|
8780
|
+
* End
|
|
8781
|
+
*/
|
|
8782
|
+
end: number;
|
|
8783
|
+
/**
|
|
8784
|
+
* Interval Days
|
|
8785
|
+
*/
|
|
8786
|
+
interval_days: number;
|
|
8787
|
+
/**
|
|
8788
|
+
* Kind
|
|
8789
|
+
*/
|
|
8790
|
+
kind: 'ramp';
|
|
8791
|
+
/**
|
|
8792
|
+
* Start
|
|
8793
|
+
*/
|
|
8794
|
+
start: number;
|
|
8795
|
+
/**
|
|
8796
|
+
* Step
|
|
8797
|
+
*/
|
|
8798
|
+
step: number;
|
|
8799
|
+
};
|
|
8665
8800
|
/**
|
|
8666
8801
|
* RealtimeCatalogEntryResponse
|
|
8667
8802
|
*/
|
|
@@ -9730,9 +9865,13 @@ export type SendWhatsAppBatchRequest = {
|
|
|
9730
9865
|
/**
|
|
9731
9866
|
* Send Daily Cap
|
|
9732
9867
|
*
|
|
9733
|
-
* Messages per local day. Null is uncapped.
|
|
9868
|
+
* Messages per local day: a fixed limit, or a ramp that rises on days it sent. Null is uncapped.
|
|
9734
9869
|
*/
|
|
9735
|
-
send_daily_cap?:
|
|
9870
|
+
send_daily_cap?: ({
|
|
9871
|
+
kind: 'fixed';
|
|
9872
|
+
} & FixedDailyCap) | ({
|
|
9873
|
+
kind: 'ramp';
|
|
9874
|
+
} & RampDailyCap) | null;
|
|
9736
9875
|
/**
|
|
9737
9876
|
* Send Gap Seconds
|
|
9738
9877
|
*/
|
|
@@ -12255,7 +12394,15 @@ export type WhatsAppBatchResponse = {
|
|
|
12255
12394
|
/**
|
|
12256
12395
|
* Send Daily Cap
|
|
12257
12396
|
*/
|
|
12258
|
-
send_daily_cap:
|
|
12397
|
+
send_daily_cap: ({
|
|
12398
|
+
kind: 'fixed';
|
|
12399
|
+
} & FixedDailyCap) | ({
|
|
12400
|
+
kind: 'ramp';
|
|
12401
|
+
} & RampDailyCap) | null;
|
|
12402
|
+
/**
|
|
12403
|
+
* Send Daily Cap Today
|
|
12404
|
+
*/
|
|
12405
|
+
send_daily_cap_today: number | null;
|
|
12259
12406
|
/**
|
|
12260
12407
|
* Send Gap Seconds
|
|
12261
12408
|
*/
|