@kirimdev/sdk 3.9.0 → 3.10.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.
@@ -260,7 +260,7 @@ export interface paths {
260
260
  "application/json": components["schemas"]["ApiErrorEnvelope"];
261
261
  };
262
262
  };
263
- /** @description Semantic failure (e.g. idempotency key reuse) */
263
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
264
264
  422: {
265
265
  headers: {
266
266
  [name: string]: unknown;
@@ -320,7 +320,16 @@ export interface paths {
320
320
  messaging_product: "whatsapp";
321
321
  /** @enum {string} */
322
322
  recipient_type?: "individual";
323
- to: string;
323
+ /**
324
+ * @description Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).
325
+ * @example 628123456789
326
+ */
327
+ to?: string;
328
+ /**
329
+ * @description Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.
330
+ * @example US.13491208655302741918
331
+ */
332
+ recipient?: string;
324
333
  /** Reply context */
325
334
  context?: {
326
335
  /**
@@ -340,7 +349,16 @@ export interface paths {
340
349
  messaging_product: "whatsapp";
341
350
  /** @enum {string} */
342
351
  recipient_type?: "individual";
343
- to: string;
352
+ /**
353
+ * @description Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).
354
+ * @example 628123456789
355
+ */
356
+ to?: string;
357
+ /**
358
+ * @description Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.
359
+ * @example US.13491208655302741918
360
+ */
361
+ recipient?: string;
344
362
  /** Reply context */
345
363
  context?: {
346
364
  /**
@@ -363,7 +381,16 @@ export interface paths {
363
381
  messaging_product: "whatsapp";
364
382
  /** @enum {string} */
365
383
  recipient_type?: "individual";
366
- to: string;
384
+ /**
385
+ * @description Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).
386
+ * @example 628123456789
387
+ */
388
+ to?: string;
389
+ /**
390
+ * @description Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.
391
+ * @example US.13491208655302741918
392
+ */
393
+ recipient?: string;
367
394
  /** Reply context */
368
395
  context?: {
369
396
  /**
@@ -386,7 +413,16 @@ export interface paths {
386
413
  messaging_product: "whatsapp";
387
414
  /** @enum {string} */
388
415
  recipient_type?: "individual";
389
- to: string;
416
+ /**
417
+ * @description Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).
418
+ * @example 628123456789
419
+ */
420
+ to?: string;
421
+ /**
422
+ * @description Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.
423
+ * @example US.13491208655302741918
424
+ */
425
+ recipient?: string;
390
426
  /** Reply context */
391
427
  context?: {
392
428
  /**
@@ -409,7 +445,16 @@ export interface paths {
409
445
  messaging_product: "whatsapp";
410
446
  /** @enum {string} */
411
447
  recipient_type?: "individual";
412
- to: string;
448
+ /**
449
+ * @description Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).
450
+ * @example 628123456789
451
+ */
452
+ to?: string;
453
+ /**
454
+ * @description Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.
455
+ * @example US.13491208655302741918
456
+ */
457
+ recipient?: string;
413
458
  /** Reply context */
414
459
  context?: {
415
460
  /**
@@ -433,7 +478,16 @@ export interface paths {
433
478
  messaging_product: "whatsapp";
434
479
  /** @enum {string} */
435
480
  recipient_type?: "individual";
436
- to: string;
481
+ /**
482
+ * @description Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).
483
+ * @example 628123456789
484
+ */
485
+ to?: string;
486
+ /**
487
+ * @description Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.
488
+ * @example US.13491208655302741918
489
+ */
490
+ recipient?: string;
437
491
  /** Reply context */
438
492
  context?: {
439
493
  /**
@@ -468,7 +522,16 @@ export interface paths {
468
522
  messaging_product: "whatsapp";
469
523
  /** @enum {string} */
470
524
  recipient_type?: "individual";
471
- to: string;
525
+ /**
526
+ * @description Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).
527
+ * @example 628123456789
528
+ */
529
+ to?: string;
530
+ /**
531
+ * @description Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.
532
+ * @example US.13491208655302741918
533
+ */
534
+ recipient?: string;
472
535
  /** Reply context */
473
536
  context?: {
474
537
  /**
@@ -669,7 +732,7 @@ export interface paths {
669
732
  "application/json": components["schemas"]["ApiErrorEnvelope"];
670
733
  };
671
734
  };
672
- /** @description Semantic failure (e.g. idempotency key reuse) */
735
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
673
736
  422: {
674
737
  headers: {
675
738
  [name: string]: unknown;
@@ -784,7 +847,7 @@ export interface paths {
784
847
  "application/json": components["schemas"]["ApiErrorEnvelope"];
785
848
  };
786
849
  };
787
- /** @description Semantic failure (e.g. idempotency key reuse) */
850
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
788
851
  422: {
789
852
  headers: {
790
853
  [name: string]: unknown;
@@ -885,7 +948,7 @@ export interface paths {
885
948
  "application/json": components["schemas"]["ApiErrorEnvelope"];
886
949
  };
887
950
  };
888
- /** @description Semantic failure (e.g. idempotency key reuse) */
951
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
889
952
  422: {
890
953
  headers: {
891
954
  [name: string]: unknown;
@@ -1026,7 +1089,7 @@ export interface paths {
1026
1089
  "application/json": components["schemas"]["ApiErrorEnvelope"];
1027
1090
  };
1028
1091
  };
1029
- /** @description Semantic failure (e.g. idempotency key reuse) */
1092
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
1030
1093
  422: {
1031
1094
  headers: {
1032
1095
  [name: string]: unknown;
@@ -1129,7 +1192,7 @@ export interface paths {
1129
1192
  "application/json": components["schemas"]["ApiErrorEnvelope"];
1130
1193
  };
1131
1194
  };
1132
- /** @description Semantic failure (e.g. idempotency key reuse) */
1195
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
1133
1196
  422: {
1134
1197
  headers: {
1135
1198
  [name: string]: unknown;
@@ -1227,7 +1290,7 @@ export interface paths {
1227
1290
  "application/json": components["schemas"]["ApiErrorEnvelope"];
1228
1291
  };
1229
1292
  };
1230
- /** @description Semantic failure (e.g. idempotency key reuse) */
1293
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
1231
1294
  422: {
1232
1295
  headers: {
1233
1296
  [name: string]: unknown;
@@ -1824,7 +1887,7 @@ export interface paths {
1824
1887
  "application/json": components["schemas"]["ApiErrorEnvelope"];
1825
1888
  };
1826
1889
  };
1827
- /** @description Semantic failure (e.g. idempotency key reuse) */
1890
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
1828
1891
  422: {
1829
1892
  headers: {
1830
1893
  [name: string]: unknown;
@@ -2301,7 +2364,7 @@ export interface paths {
2301
2364
  "application/json": components["schemas"]["ApiErrorEnvelope"];
2302
2365
  };
2303
2366
  };
2304
- /** @description Semantic failure (e.g. idempotency key reuse) */
2367
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
2305
2368
  422: {
2306
2369
  headers: {
2307
2370
  [name: string]: unknown;
@@ -2395,7 +2458,7 @@ export interface paths {
2395
2458
  "application/json": components["schemas"]["ApiErrorEnvelope"];
2396
2459
  };
2397
2460
  };
2398
- /** @description Semantic failure (e.g. idempotency key reuse) */
2461
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
2399
2462
  422: {
2400
2463
  headers: {
2401
2464
  [name: string]: unknown;
@@ -2490,7 +2553,7 @@ export interface paths {
2490
2553
  "application/json": components["schemas"]["ApiErrorEnvelope"];
2491
2554
  };
2492
2555
  };
2493
- /** @description Semantic failure (e.g. idempotency key reuse) */
2556
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
2494
2557
  422: {
2495
2558
  headers: {
2496
2559
  [name: string]: unknown;
@@ -2536,6 +2599,8 @@ export interface paths {
2536
2599
  parameters: {
2537
2600
  query?: {
2538
2601
  phone?: string;
2602
+ bsuid?: string;
2603
+ username?: string;
2539
2604
  search?: string;
2540
2605
  limit?: string;
2541
2606
  cursor?: string;
@@ -2585,7 +2650,7 @@ export interface paths {
2585
2650
  "application/json": components["schemas"]["ApiErrorEnvelope"];
2586
2651
  };
2587
2652
  };
2588
- /** @description Semantic failure (e.g. idempotency key reuse) */
2653
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
2589
2654
  422: {
2590
2655
  headers: {
2591
2656
  [name: string]: unknown;
@@ -2632,7 +2697,9 @@ export interface paths {
2632
2697
  requestBody?: {
2633
2698
  content: {
2634
2699
  "application/json": {
2635
- phone_number: string;
2700
+ phone_number?: string;
2701
+ bsuid?: string;
2702
+ username?: string;
2636
2703
  name?: string;
2637
2704
  /** Format: email */
2638
2705
  email?: string | null;
@@ -2679,7 +2746,7 @@ export interface paths {
2679
2746
  "application/json": components["schemas"]["ApiErrorEnvelope"];
2680
2747
  };
2681
2748
  };
2682
- /** @description Semantic failure (e.g. idempotency key reuse) */
2749
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
2683
2750
  422: {
2684
2751
  headers: {
2685
2752
  [name: string]: unknown;
@@ -2771,7 +2838,7 @@ export interface paths {
2771
2838
  "application/json": components["schemas"]["ApiErrorEnvelope"];
2772
2839
  };
2773
2840
  };
2774
- /** @description Semantic failure (e.g. idempotency key reuse) */
2841
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
2775
2842
  422: {
2776
2843
  headers: {
2777
2844
  [name: string]: unknown;
@@ -2855,7 +2922,7 @@ export interface paths {
2855
2922
  "application/json": components["schemas"]["ApiErrorEnvelope"];
2856
2923
  };
2857
2924
  };
2858
- /** @description Semantic failure (e.g. idempotency key reuse) */
2925
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
2859
2926
  422: {
2860
2927
  headers: {
2861
2928
  [name: string]: unknown;
@@ -2905,6 +2972,7 @@ export interface paths {
2905
2972
  content: {
2906
2973
  "application/json": {
2907
2974
  name?: string | null;
2975
+ username?: string | null;
2908
2976
  email?: string | "" | null;
2909
2977
  metadata?: {
2910
2978
  [key: string]: unknown;
@@ -2949,7 +3017,7 @@ export interface paths {
2949
3017
  "application/json": components["schemas"]["ApiErrorEnvelope"];
2950
3018
  };
2951
3019
  };
2952
- /** @description Semantic failure (e.g. idempotency key reuse) */
3020
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
2953
3021
  422: {
2954
3022
  headers: {
2955
3023
  [name: string]: unknown;
@@ -3040,7 +3108,7 @@ export interface paths {
3040
3108
  "application/json": components["schemas"]["ApiErrorEnvelope"];
3041
3109
  };
3042
3110
  };
3043
- /** @description Semantic failure (e.g. idempotency key reuse) */
3111
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
3044
3112
  422: {
3045
3113
  headers: {
3046
3114
  [name: string]: unknown;
@@ -3145,7 +3213,7 @@ export interface paths {
3145
3213
  "application/json": components["schemas"]["ApiErrorEnvelope"];
3146
3214
  };
3147
3215
  };
3148
- /** @description Semantic failure (e.g. idempotency key reuse) */
3216
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
3149
3217
  422: {
3150
3218
  headers: {
3151
3219
  [name: string]: unknown;
@@ -3241,7 +3309,7 @@ export interface paths {
3241
3309
  "application/json": components["schemas"]["ApiErrorEnvelope"];
3242
3310
  };
3243
3311
  };
3244
- /** @description Semantic failure (e.g. idempotency key reuse) */
3312
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
3245
3313
  422: {
3246
3314
  headers: {
3247
3315
  [name: string]: unknown;
@@ -3345,7 +3413,7 @@ export interface paths {
3345
3413
  "application/json": components["schemas"]["ApiErrorEnvelope"];
3346
3414
  };
3347
3415
  };
3348
- /** @description Semantic failure (e.g. idempotency key reuse) */
3416
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
3349
3417
  422: {
3350
3418
  headers: {
3351
3419
  [name: string]: unknown;
@@ -3445,7 +3513,7 @@ export interface paths {
3445
3513
  "application/json": components["schemas"]["ApiErrorEnvelope"];
3446
3514
  };
3447
3515
  };
3448
- /** @description Semantic failure (e.g. idempotency key reuse) */
3516
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
3449
3517
  422: {
3450
3518
  headers: {
3451
3519
  [name: string]: unknown;
@@ -3541,7 +3609,7 @@ export interface paths {
3541
3609
  "application/json": components["schemas"]["ApiErrorEnvelope"];
3542
3610
  };
3543
3611
  };
3544
- /** @description Semantic failure (e.g. idempotency key reuse) */
3612
+ /** @description Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found) */
3545
3613
  422: {
3546
3614
  headers: {
3547
3615
  [name: string]: unknown;
@@ -4004,7 +4072,7 @@ export interface paths {
4004
4072
  "application/json": components["schemas"]["ApiErrorEnvelope"];
4005
4073
  };
4006
4074
  };
4007
- /** @description Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive) */
4075
+ /** @description Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue. */
4008
4076
  402: {
4009
4077
  headers: {
4010
4078
  [name: string]: unknown;
@@ -4086,7 +4154,7 @@ export interface paths {
4086
4154
  "application/json": components["schemas"]["ApiErrorEnvelope"];
4087
4155
  };
4088
4156
  };
4089
- /** @description Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive) */
4157
+ /** @description Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue. */
4090
4158
  402: {
4091
4159
  headers: {
4092
4160
  [name: string]: unknown;
@@ -4167,7 +4235,7 @@ export interface paths {
4167
4235
  "application/json": components["schemas"]["ApiErrorEnvelope"];
4168
4236
  };
4169
4237
  };
4170
- /** @description Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive) */
4238
+ /** @description Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue. */
4171
4239
  402: {
4172
4240
  headers: {
4173
4241
  [name: string]: unknown;
@@ -4249,7 +4317,7 @@ export interface paths {
4249
4317
  "application/json": components["schemas"]["ApiErrorEnvelope"];
4250
4318
  };
4251
4319
  };
4252
- /** @description Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive) */
4320
+ /** @description Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue. */
4253
4321
  402: {
4254
4322
  headers: {
4255
4323
  [name: string]: unknown;
@@ -4341,7 +4409,7 @@ export interface paths {
4341
4409
  "application/json": components["schemas"]["ApiErrorEnvelope"];
4342
4410
  };
4343
4411
  };
4344
- /** @description Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive) */
4412
+ /** @description Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue. */
4345
4413
  402: {
4346
4414
  headers: {
4347
4415
  [name: string]: unknown;
@@ -4432,7 +4500,7 @@ export interface paths {
4432
4500
  "application/json": components["schemas"]["ApiErrorEnvelope"];
4433
4501
  };
4434
4502
  };
4435
- /** @description Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive) */
4503
+ /** @description Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue. */
4436
4504
  402: {
4437
4505
  headers: {
4438
4506
  [name: string]: unknown;
@@ -4523,7 +4591,7 @@ export interface paths {
4523
4591
  "application/json": components["schemas"]["ApiErrorEnvelope"];
4524
4592
  };
4525
4593
  };
4526
- /** @description Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive) */
4594
+ /** @description Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue. */
4527
4595
  402: {
4528
4596
  headers: {
4529
4597
  [name: string]: unknown;
@@ -4620,7 +4688,7 @@ export interface paths {
4620
4688
  "application/json": components["schemas"]["ApiErrorEnvelope"];
4621
4689
  };
4622
4690
  };
4623
- /** @description Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive) */
4691
+ /** @description Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue. */
4624
4692
  402: {
4625
4693
  headers: {
4626
4694
  [name: string]: unknown;
@@ -4719,7 +4787,7 @@ export interface paths {
4719
4787
  "application/json": components["schemas"]["ApiErrorEnvelope"];
4720
4788
  };
4721
4789
  };
4722
- /** @description Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive) */
4790
+ /** @description Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue. */
4723
4791
  402: {
4724
4792
  headers: {
4725
4793
  [name: string]: unknown;
@@ -4774,8 +4842,11 @@ export interface components {
4774
4842
  schemas: {
4775
4843
  ApiErrorEnvelope: {
4776
4844
  error: {
4777
- /** @example invalid_request_error */
4778
- type: string;
4845
+ /**
4846
+ * @example invalid_request_error
4847
+ * @enum {string}
4848
+ */
4849
+ type: "invalid_request_error" | "authentication_error" | "permission_error" | "not_found" | "conflict" | "rate_limit_error" | "api_error";
4779
4850
  /** @example invalid_phone_number */
4780
4851
  code: string;
4781
4852
  message: string;
@@ -4803,7 +4874,26 @@ export interface components {
4803
4874
  id: string;
4804
4875
  /** @enum {string} */
4805
4876
  object: "message";
4806
- to?: string;
4877
+ /**
4878
+ * @description Recipient's phone number in E.164 (with leading `+`). NULL when the message targeted a Business-Scoped User ID (BSUID) recipient and the contact has no known phone number. See docs/meta-docs/bsuid.md.
4879
+ * @example +628123456789
4880
+ */
4881
+ to?: string | null;
4882
+ /**
4883
+ * @description Recipient contact's Business-Scoped User ID. Present when the contact has been enriched with a BSUID from a Meta webhook (or from a BSUID-first send). NULL for phone-only contacts.
4884
+ * @example US.13491208655302741918
4885
+ */
4886
+ bsuid?: string | null;
4887
+ /**
4888
+ * @description Parent BSUID for managed businesses with linked business portfolios. NULL for regular accounts.
4889
+ * @example US.ENT.11815799212886844830
4890
+ */
4891
+ parent_bsuid?: string | null;
4892
+ /**
4893
+ * @description Recipient contact's WhatsApp username (case-insensitive comparison; case-preserving in storage). NULL when the contact has not adopted the WhatsApp username feature.
4894
+ * @example pablomorales
4895
+ */
4896
+ username?: string | null;
4807
4897
  type?: string;
4808
4898
  /** @enum {string} */
4809
4899
  status: "queued" | "pending" | "sent" | "delivered" | "read" | "failed";
@@ -4948,7 +5038,26 @@ export interface components {
4948
5038
  id: string;
4949
5039
  /** @enum {string} */
4950
5040
  object: "contact";
5041
+ /**
5042
+ * @description Phone number in E.164. NULL when the contact was created via BSUID (username-adopted user with no shared phone number). See docs/meta-docs/bsuid.md.
5043
+ * @example +628123456789
5044
+ */
4951
5045
  phone_number: string | null;
5046
+ /**
5047
+ * @description Business-Scoped User ID. Populated by inbound webhooks or when the contact was created via BSUID. Format: `{ISO alpha-2 country}.{alphanumeric ≤128}`.
5048
+ * @example US.13491208655302741918
5049
+ */
5050
+ bsuid: string | null;
5051
+ /**
5052
+ * @description Parent BSUID (managed businesses only). Format: `{ISO alpha-2 country}.ENT.{alphanumeric ≤128}`.
5053
+ * @example US.ENT.11815799212886844830
5054
+ */
5055
+ parent_bsuid: string | null;
5056
+ /**
5057
+ * @description WhatsApp username of the contact, if the user has adopted the username feature. Case-insensitive when comparing per Meta rules; `.` and `_` are significant.
5058
+ * @example pablomorales
5059
+ */
5060
+ username: string | null;
4952
5061
  name: string | null;
4953
5062
  email: string | null;
4954
5063
  metadata: {
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION: "3.9.0";
1
+ export declare const SDK_VERSION: "3.10.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,EAAG,OAAgB,CAAA"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,EAAG,QAAiB,CAAA"}
@@ -2,5 +2,5 @@
2
2
  // Regenerated on every prebuild / pretypecheck / pretest from
3
3
  // package.json so the User-Agent header stays in sync with the
4
4
  // published version.
5
- export const SDK_VERSION = "3.9.0";
5
+ export const SDK_VERSION = "3.10.0";
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,8DAA8D;AAC9D,+DAA+D;AAC/D,qBAAqB;AAErB,MAAM,CAAC,MAAM,WAAW,GAAG,OAAgB,CAAA"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,8DAA8D;AAC9D,+DAA+D;AAC/D,qBAAqB;AAErB,MAAM,CAAC,MAAM,WAAW,GAAG,QAAiB,CAAA"}
@@ -3,4 +3,4 @@
3
3
  // package.json so the User-Agent header stays in sync with the
4
4
  // published version.
5
5
 
6
- export const SDK_VERSION = "3.9.0" as const
6
+ export const SDK_VERSION = "3.10.0" as const
package/openapi.json CHANGED
@@ -75,6 +75,15 @@
75
75
  "properties": {
76
76
  "type": {
77
77
  "type": "string",
78
+ "enum": [
79
+ "invalid_request_error",
80
+ "authentication_error",
81
+ "permission_error",
82
+ "not_found",
83
+ "conflict",
84
+ "rate_limit_error",
85
+ "api_error"
86
+ ],
78
87
  "example": "invalid_request_error"
79
88
  },
80
89
  "code": {
@@ -162,7 +171,36 @@
162
171
  ]
163
172
  },
164
173
  "to": {
165
- "type": "string"
174
+ "type": [
175
+ "string",
176
+ "null"
177
+ ],
178
+ "example": "+628123456789",
179
+ "description": "Recipient's phone number in E.164 (with leading `+`). NULL when the message targeted a Business-Scoped User ID (BSUID) recipient and the contact has no known phone number. See docs/meta-docs/bsuid.md."
180
+ },
181
+ "bsuid": {
182
+ "type": [
183
+ "string",
184
+ "null"
185
+ ],
186
+ "example": "US.13491208655302741918",
187
+ "description": "Recipient contact's Business-Scoped User ID. Present when the contact has been enriched with a BSUID from a Meta webhook (or from a BSUID-first send). NULL for phone-only contacts."
188
+ },
189
+ "parent_bsuid": {
190
+ "type": [
191
+ "string",
192
+ "null"
193
+ ],
194
+ "example": "US.ENT.11815799212886844830",
195
+ "description": "Parent BSUID for managed businesses with linked business portfolios. NULL for regular accounts."
196
+ },
197
+ "username": {
198
+ "type": [
199
+ "string",
200
+ "null"
201
+ ],
202
+ "example": "pablomorales",
203
+ "description": "Recipient contact's WhatsApp username (case-insensitive comparison; case-preserving in storage). NULL when the contact has not adopted the WhatsApp username feature."
166
204
  },
167
205
  "type": {
168
206
  "type": "string"
@@ -678,7 +716,33 @@
678
716
  "type": [
679
717
  "string",
680
718
  "null"
681
- ]
719
+ ],
720
+ "example": "+628123456789",
721
+ "description": "Phone number in E.164. NULL when the contact was created via BSUID (username-adopted user with no shared phone number). See docs/meta-docs/bsuid.md."
722
+ },
723
+ "bsuid": {
724
+ "type": [
725
+ "string",
726
+ "null"
727
+ ],
728
+ "example": "US.13491208655302741918",
729
+ "description": "Business-Scoped User ID. Populated by inbound webhooks or when the contact was created via BSUID. Format: `{ISO alpha-2 country}.{alphanumeric ≤128}`."
730
+ },
731
+ "parent_bsuid": {
732
+ "type": [
733
+ "string",
734
+ "null"
735
+ ],
736
+ "example": "US.ENT.11815799212886844830",
737
+ "description": "Parent BSUID (managed businesses only). Format: `{ISO alpha-2 country}.ENT.{alphanumeric ≤128}`."
738
+ },
739
+ "username": {
740
+ "type": [
741
+ "string",
742
+ "null"
743
+ ],
744
+ "example": "pablomorales",
745
+ "description": "WhatsApp username of the contact, if the user has adopted the username feature. Case-insensitive when comparing per Meta rules; `.` and `_` are significant."
682
746
  },
683
747
  "name": {
684
748
  "type": [
@@ -715,6 +779,9 @@
715
779
  "id",
716
780
  "object",
717
781
  "phone_number",
782
+ "bsuid",
783
+ "parent_bsuid",
784
+ "username",
718
785
  "name",
719
786
  "email",
720
787
  "metadata",
@@ -2615,7 +2682,15 @@
2615
2682
  ]
2616
2683
  },
2617
2684
  "to": {
2618
- "type": "string"
2685
+ "type": "string",
2686
+ "description": "Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).",
2687
+ "example": "628123456789"
2688
+ },
2689
+ "recipient": {
2690
+ "type": "string",
2691
+ "pattern": "^[A-Z]{2}\\.(ENT\\.)?[A-Za-z0-9]{1,128}$",
2692
+ "description": "Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.",
2693
+ "example": "US.13491208655302741918"
2619
2694
  },
2620
2695
  "context": {
2621
2696
  "type": "object",
@@ -2657,7 +2732,6 @@
2657
2732
  },
2658
2733
  "required": [
2659
2734
  "messaging_product",
2660
- "to",
2661
2735
  "type",
2662
2736
  "text"
2663
2737
  ],
@@ -2679,7 +2753,15 @@
2679
2753
  ]
2680
2754
  },
2681
2755
  "to": {
2682
- "type": "string"
2756
+ "type": "string",
2757
+ "description": "Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).",
2758
+ "example": "628123456789"
2759
+ },
2760
+ "recipient": {
2761
+ "type": "string",
2762
+ "pattern": "^[A-Z]{2}\\.(ENT\\.)?[A-Za-z0-9]{1,128}$",
2763
+ "description": "Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.",
2764
+ "example": "US.13491208655302741918"
2683
2765
  },
2684
2766
  "context": {
2685
2767
  "type": "object",
@@ -2727,7 +2809,6 @@
2727
2809
  },
2728
2810
  "required": [
2729
2811
  "messaging_product",
2730
- "to",
2731
2812
  "type",
2732
2813
  "image"
2733
2814
  ],
@@ -2749,7 +2830,15 @@
2749
2830
  ]
2750
2831
  },
2751
2832
  "to": {
2752
- "type": "string"
2833
+ "type": "string",
2834
+ "description": "Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).",
2835
+ "example": "628123456789"
2836
+ },
2837
+ "recipient": {
2838
+ "type": "string",
2839
+ "pattern": "^[A-Z]{2}\\.(ENT\\.)?[A-Za-z0-9]{1,128}$",
2840
+ "description": "Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.",
2841
+ "example": "US.13491208655302741918"
2753
2842
  },
2754
2843
  "context": {
2755
2844
  "type": "object",
@@ -2797,7 +2886,6 @@
2797
2886
  },
2798
2887
  "required": [
2799
2888
  "messaging_product",
2800
- "to",
2801
2889
  "type",
2802
2890
  "document"
2803
2891
  ],
@@ -2819,7 +2907,15 @@
2819
2907
  ]
2820
2908
  },
2821
2909
  "to": {
2822
- "type": "string"
2910
+ "type": "string",
2911
+ "description": "Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).",
2912
+ "example": "628123456789"
2913
+ },
2914
+ "recipient": {
2915
+ "type": "string",
2916
+ "pattern": "^[A-Z]{2}\\.(ENT\\.)?[A-Za-z0-9]{1,128}$",
2917
+ "description": "Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.",
2918
+ "example": "US.13491208655302741918"
2823
2919
  },
2824
2920
  "context": {
2825
2921
  "type": "object",
@@ -2867,7 +2963,6 @@
2867
2963
  },
2868
2964
  "required": [
2869
2965
  "messaging_product",
2870
- "to",
2871
2966
  "type",
2872
2967
  "video"
2873
2968
  ],
@@ -2889,7 +2984,15 @@
2889
2984
  ]
2890
2985
  },
2891
2986
  "to": {
2892
- "type": "string"
2987
+ "type": "string",
2988
+ "description": "Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).",
2989
+ "example": "628123456789"
2990
+ },
2991
+ "recipient": {
2992
+ "type": "string",
2993
+ "pattern": "^[A-Z]{2}\\.(ENT\\.)?[A-Za-z0-9]{1,128}$",
2994
+ "description": "Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.",
2995
+ "example": "US.13491208655302741918"
2893
2996
  },
2894
2997
  "context": {
2895
2998
  "type": "object",
@@ -2940,7 +3043,6 @@
2940
3043
  },
2941
3044
  "required": [
2942
3045
  "messaging_product",
2943
- "to",
2944
3046
  "type",
2945
3047
  "audio"
2946
3048
  ],
@@ -2962,7 +3064,15 @@
2962
3064
  ]
2963
3065
  },
2964
3066
  "to": {
2965
- "type": "string"
3067
+ "type": "string",
3068
+ "description": "Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).",
3069
+ "example": "628123456789"
3070
+ },
3071
+ "recipient": {
3072
+ "type": "string",
3073
+ "pattern": "^[A-Z]{2}\\.(ENT\\.)?[A-Za-z0-9]{1,128}$",
3074
+ "description": "Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.",
3075
+ "example": "US.13491208655302741918"
2966
3076
  },
2967
3077
  "context": {
2968
3078
  "type": "object",
@@ -3068,7 +3178,6 @@
3068
3178
  },
3069
3179
  "required": [
3070
3180
  "messaging_product",
3071
- "to",
3072
3181
  "type",
3073
3182
  "template"
3074
3183
  ],
@@ -3090,7 +3199,15 @@
3090
3199
  ]
3091
3200
  },
3092
3201
  "to": {
3093
- "type": "string"
3202
+ "type": "string",
3203
+ "description": "Recipient's WhatsApp phone number in E.164 (e.g. `628123456789`). Either `to` or `recipient` is required; if both are supplied, Meta uses `to` (documented precedence).",
3204
+ "example": "628123456789"
3205
+ },
3206
+ "recipient": {
3207
+ "type": "string",
3208
+ "pattern": "^[A-Z]{2}\\.(ENT\\.)?[A-Za-z0-9]{1,128}$",
3209
+ "description": "Recipient's Business-Scoped User ID (e.g. `US.13491208655302741918`) or parent BSUID. Alternative to `to`. Auth OTP templates (one-tap / zero-tap / copy-code) do NOT support BSUID recipients — Meta rejects with error 131062.",
3210
+ "example": "US.13491208655302741918"
3094
3211
  },
3095
3212
  "context": {
3096
3213
  "type": "object",
@@ -3721,7 +3838,6 @@
3721
3838
  },
3722
3839
  "required": [
3723
3840
  "messaging_product",
3724
- "to",
3725
3841
  "type",
3726
3842
  "interactive"
3727
3843
  ],
@@ -3818,7 +3934,7 @@
3818
3934
  }
3819
3935
  },
3820
3936
  "422": {
3821
- "description": "Semantic failure (e.g. idempotency key reuse)",
3937
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
3822
3938
  "content": {
3823
3939
  "application/json": {
3824
3940
  "schema": {
@@ -3997,7 +4113,7 @@
3997
4113
  }
3998
4114
  },
3999
4115
  "422": {
4000
- "description": "Semantic failure (e.g. idempotency key reuse)",
4116
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
4001
4117
  "content": {
4002
4118
  "application/json": {
4003
4119
  "schema": {
@@ -4125,7 +4241,7 @@
4125
4241
  }
4126
4242
  },
4127
4243
  "422": {
4128
- "description": "Semantic failure (e.g. idempotency key reuse)",
4244
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
4129
4245
  "content": {
4130
4246
  "application/json": {
4131
4247
  "schema": {
@@ -4267,7 +4383,7 @@
4267
4383
  }
4268
4384
  },
4269
4385
  "422": {
4270
- "description": "Semantic failure (e.g. idempotency key reuse)",
4386
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
4271
4387
  "content": {
4272
4388
  "application/json": {
4273
4389
  "schema": {
@@ -4572,7 +4688,7 @@
4572
4688
  }
4573
4689
  },
4574
4690
  "422": {
4575
- "description": "Semantic failure (e.g. idempotency key reuse)",
4691
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
4576
4692
  "content": {
4577
4693
  "application/json": {
4578
4694
  "schema": {
@@ -4701,7 +4817,7 @@
4701
4817
  }
4702
4818
  },
4703
4819
  "422": {
4704
- "description": "Semantic failure (e.g. idempotency key reuse)",
4820
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
4705
4821
  "content": {
4706
4822
  "application/json": {
4707
4823
  "schema": {
@@ -4801,7 +4917,7 @@
4801
4917
  }
4802
4918
  },
4803
4919
  "422": {
4804
- "description": "Semantic failure (e.g. idempotency key reuse)",
4920
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
4805
4921
  "content": {
4806
4922
  "application/json": {
4807
4923
  "schema": {
@@ -5562,7 +5678,7 @@
5562
5678
  }
5563
5679
  },
5564
5680
  "422": {
5565
- "description": "Semantic failure (e.g. idempotency key reuse)",
5681
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
5566
5682
  "content": {
5567
5683
  "application/json": {
5568
5684
  "schema": {
@@ -6172,7 +6288,7 @@
6172
6288
  }
6173
6289
  },
6174
6290
  "422": {
6175
- "description": "Semantic failure (e.g. idempotency key reuse)",
6291
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
6176
6292
  "content": {
6177
6293
  "application/json": {
6178
6294
  "schema": {
@@ -6280,7 +6396,7 @@
6280
6396
  }
6281
6397
  },
6282
6398
  "422": {
6283
- "description": "Semantic failure (e.g. idempotency key reuse)",
6399
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
6284
6400
  "content": {
6285
6401
  "application/json": {
6286
6402
  "schema": {
@@ -6414,7 +6530,7 @@
6414
6530
  }
6415
6531
  },
6416
6532
  "422": {
6417
- "description": "Semantic failure (e.g. idempotency key reuse)",
6533
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
6418
6534
  "content": {
6419
6535
  "application/json": {
6420
6536
  "schema": {
@@ -6479,6 +6595,25 @@
6479
6595
  "name": "phone",
6480
6596
  "in": "query"
6481
6597
  },
6598
+ {
6599
+ "schema": {
6600
+ "type": "string",
6601
+ "pattern": "^[A-Z]{2}\\.(ENT\\.)?[A-Za-z0-9]{1,128}$"
6602
+ },
6603
+ "required": false,
6604
+ "name": "bsuid",
6605
+ "in": "query"
6606
+ },
6607
+ {
6608
+ "schema": {
6609
+ "type": "string",
6610
+ "minLength": 1,
6611
+ "maxLength": 100
6612
+ },
6613
+ "required": false,
6614
+ "name": "username",
6615
+ "in": "query"
6616
+ },
6482
6617
  {
6483
6618
  "schema": {
6484
6619
  "type": "string",
@@ -6549,7 +6684,7 @@
6549
6684
  }
6550
6685
  },
6551
6686
  "422": {
6552
- "description": "Semantic failure (e.g. idempotency key reuse)",
6687
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
6553
6688
  "content": {
6554
6689
  "application/json": {
6555
6690
  "schema": {
@@ -6614,6 +6749,15 @@
6614
6749
  "phone_number": {
6615
6750
  "type": "string"
6616
6751
  },
6752
+ "bsuid": {
6753
+ "type": "string",
6754
+ "pattern": "^[A-Z]{2}\\.(ENT\\.)?[A-Za-z0-9]{1,128}$"
6755
+ },
6756
+ "username": {
6757
+ "type": "string",
6758
+ "minLength": 1,
6759
+ "maxLength": 100
6760
+ },
6617
6761
  "name": {
6618
6762
  "type": "string",
6619
6763
  "minLength": 1,
@@ -6631,10 +6775,7 @@
6631
6775
  "type": "object",
6632
6776
  "additionalProperties": {}
6633
6777
  }
6634
- },
6635
- "required": [
6636
- "phone_number"
6637
- ]
6778
+ }
6638
6779
  }
6639
6780
  }
6640
6781
  }
@@ -6681,7 +6822,7 @@
6681
6822
  }
6682
6823
  },
6683
6824
  "422": {
6684
- "description": "Semantic failure (e.g. idempotency key reuse)",
6825
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
6685
6826
  "content": {
6686
6827
  "application/json": {
6687
6828
  "schema": {
@@ -6789,7 +6930,7 @@
6789
6930
  }
6790
6931
  },
6791
6932
  "422": {
6792
- "description": "Semantic failure (e.g. idempotency key reuse)",
6933
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
6793
6934
  "content": {
6794
6935
  "application/json": {
6795
6936
  "schema": {
@@ -6868,6 +7009,14 @@
6868
7009
  "minLength": 1,
6869
7010
  "maxLength": 200
6870
7011
  },
7012
+ "username": {
7013
+ "type": [
7014
+ "string",
7015
+ "null"
7016
+ ],
7017
+ "minLength": 1,
7018
+ "maxLength": 100
7019
+ },
6871
7020
  "email": {
6872
7021
  "anyOf": [
6873
7022
  {
@@ -6940,7 +7089,7 @@
6940
7089
  }
6941
7090
  },
6942
7091
  "422": {
6943
- "description": "Semantic failure (e.g. idempotency key reuse)",
7092
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
6944
7093
  "content": {
6945
7094
  "application/json": {
6946
7095
  "schema": {
@@ -7047,7 +7196,7 @@
7047
7196
  }
7048
7197
  },
7049
7198
  "422": {
7050
- "description": "Semantic failure (e.g. idempotency key reuse)",
7199
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
7051
7200
  "content": {
7052
7201
  "application/json": {
7053
7202
  "schema": {
@@ -7157,7 +7306,7 @@
7157
7306
  }
7158
7307
  },
7159
7308
  "422": {
7160
- "description": "Semantic failure (e.g. idempotency key reuse)",
7309
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
7161
7310
  "content": {
7162
7311
  "application/json": {
7163
7312
  "schema": {
@@ -7284,7 +7433,7 @@
7284
7433
  }
7285
7434
  },
7286
7435
  "422": {
7287
- "description": "Semantic failure (e.g. idempotency key reuse)",
7436
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
7288
7437
  "content": {
7289
7438
  "application/json": {
7290
7439
  "schema": {
@@ -7401,7 +7550,7 @@
7401
7550
  }
7402
7551
  },
7403
7552
  "422": {
7404
- "description": "Semantic failure (e.g. idempotency key reuse)",
7553
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
7405
7554
  "content": {
7406
7555
  "application/json": {
7407
7556
  "schema": {
@@ -7537,7 +7686,7 @@
7537
7686
  }
7538
7687
  },
7539
7688
  "422": {
7540
- "description": "Semantic failure (e.g. idempotency key reuse)",
7689
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
7541
7690
  "content": {
7542
7691
  "application/json": {
7543
7692
  "schema": {
@@ -7663,7 +7812,7 @@
7663
7812
  }
7664
7813
  },
7665
7814
  "422": {
7666
- "description": "Semantic failure (e.g. idempotency key reuse)",
7815
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
7667
7816
  "content": {
7668
7817
  "application/json": {
7669
7818
  "schema": {
@@ -7780,7 +7929,7 @@
7780
7929
  }
7781
7930
  },
7782
7931
  "422": {
7783
- "description": "Semantic failure (e.g. idempotency key reuse)",
7932
+ "description": "Semantic failure (e.g. idempotency key reuse, pre-send compliance guard, media not found)",
7784
7933
  "content": {
7785
7934
  "application/json": {
7786
7935
  "schema": {
@@ -8380,7 +8529,7 @@
8380
8529
  }
8381
8530
  },
8382
8531
  "402": {
8383
- "description": "Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive)",
8532
+ "description": "Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue.",
8384
8533
  "content": {
8385
8534
  "application/json": {
8386
8535
  "schema": {
@@ -8487,7 +8636,7 @@
8487
8636
  }
8488
8637
  },
8489
8638
  "402": {
8490
- "description": "Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive)",
8639
+ "description": "Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue.",
8491
8640
  "content": {
8492
8641
  "application/json": {
8493
8642
  "schema": {
@@ -8573,7 +8722,7 @@
8573
8722
  }
8574
8723
  },
8575
8724
  "402": {
8576
- "description": "Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive)",
8725
+ "description": "Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue.",
8577
8726
  "content": {
8578
8727
  "application/json": {
8579
8728
  "schema": {
@@ -8706,7 +8855,7 @@
8706
8855
  }
8707
8856
  },
8708
8857
  "402": {
8709
- "description": "Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive)",
8858
+ "description": "Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue.",
8710
8859
  "content": {
8711
8860
  "application/json": {
8712
8861
  "schema": {
@@ -8801,7 +8950,7 @@
8801
8950
  }
8802
8951
  },
8803
8952
  "402": {
8804
- "description": "Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive)",
8953
+ "description": "Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue.",
8805
8954
  "content": {
8806
8955
  "application/json": {
8807
8956
  "schema": {
@@ -8912,7 +9061,7 @@
8912
9061
  }
8913
9062
  },
8914
9063
  "402": {
8915
- "description": "Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive)",
9064
+ "description": "Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue.",
8916
9065
  "content": {
8917
9066
  "application/json": {
8918
9067
  "schema": {
@@ -9033,7 +9182,7 @@
9033
9182
  }
9034
9183
  },
9035
9184
  "402": {
9036
- "description": "Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive)",
9185
+ "description": "Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue.",
9037
9186
  "content": {
9038
9187
  "application/json": {
9039
9188
  "schema": {
@@ -9174,7 +9323,7 @@
9174
9323
  }
9175
9324
  },
9176
9325
  "402": {
9177
- "description": "Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive)",
9326
+ "description": "Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue.",
9178
9327
  "content": {
9179
9328
  "application/json": {
9180
9329
  "schema": {
@@ -9288,7 +9437,7 @@
9288
9437
  }
9289
9438
  },
9290
9439
  "402": {
9291
- "description": "Plan / quota / subscription gate (e.g. feature_not_entitled, quota_exceeded, subscription_inactive)",
9440
+ "description": "Billing / entitlement gate subscription inactive, quota exceeded, or plan tier missing a feature (feature_not_entitled). Upgrade to continue.",
9292
9441
  "content": {
9293
9442
  "application/json": {
9294
9443
  "schema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kirimdev/sdk",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "description": "Official TypeScript SDK for the Kirimdev Public API.",
5
5
  "type": "module",
6
6
  "license": "MIT",