@talqing/sdk 0.9.0 → 0.9.1

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.
@@ -910,7 +910,7 @@ export type AvatarSpecOverride = {
910
910
  * AvatarUsage
911
911
  *
912
912
  * One avatar session's billable window: WALL-CLOCK seconds alive, idle
913
- * included (Anam's billing rule, §16 Phase 15). Metered from our own job
913
+ * included (Anam's billing rule). Metered from our own job
914
914
  * timing — Anam has no usage webhooks; `avatar_session_id` (Anam's sessionId)
915
915
  * is stored for reconciliation against any future Anam usage export.
916
916
  */
@@ -3339,8 +3339,10 @@ export type CreateTelephonyAccountRequest = {
3339
3339
  };
3340
3340
  /**
3341
3341
  * Display Name
3342
+ *
3343
+ * Omit to use the carrier's own name for the account.
3342
3344
  */
3343
- display_name: string;
3345
+ display_name?: string | null;
3344
3346
  /**
3345
3347
  * Provider
3346
3348
  */
@@ -3473,12 +3475,7 @@ export type CreateWhatsAppBatchRequest = {
3473
3475
  /**
3474
3476
  * CreditBalanceResponse
3475
3477
  *
3476
- * This region's balance for the workspace, what it buys, and top-up prices.
3477
- *
3478
- * Per region, because the balance is a data-plane table. A caller reading this
3479
- * is reading the balance of whichever region's API they called, and the
3480
- * dashboard labels it with that region's name — a bare number is what makes a
3481
- * customer with $50 in one region and $0 in another think the money vanished.
3478
+ * This workspace's credit balance, what it buys, and top-up prices.
3482
3479
  */
3483
3480
  export type CreditBalanceResponse = {
3484
3481
  /**
@@ -3603,6 +3600,18 @@ export type CreditPackResponse = {
3603
3600
  voice_minutes: number;
3604
3601
  };
3605
3602
 
3603
+ /**
3604
+ * DeleteRecipientsRequest
3605
+ *
3606
+ * Rows to remove from a batch, by id.
3607
+ */
3608
+ export type DeleteRecipientsRequest = {
3609
+ /**
3610
+ * Recipient Ids
3611
+ */
3612
+ recipient_ids: Array<string>;
3613
+ };
3614
+
3606
3615
  /**
3607
3616
  * DeliveryError
3608
3617
  *
@@ -9817,28 +9826,6 @@ export type SecretResponse = {
9817
9826
  value_hint: string;
9818
9827
  };
9819
9828
 
9820
- /**
9821
- * SelectRecipientsRequest
9822
- *
9823
- * What `skip` and `restore` accept — either shape.
9824
- *
9825
- * Both are reversible, which is why both take a bulk shorthand: skipping four
9826
- * thousand rows is undone by restoring them, and making curation tedious pushes
9827
- * an operator toward not curating.
9828
- */
9829
- export type SelectRecipientsRequest = {
9830
- /**
9831
- * Recipient Ids
9832
- */
9833
- recipient_ids?: Array<string> | null;
9834
- /**
9835
- * Selection
9836
- *
9837
- * Every row this verb can act on: drafts for skip, rows a person skipped for restore.
9838
- */
9839
- selection?: 'all_eligible' | null;
9840
- };
9841
-
9842
9829
  /**
9843
9830
  * SendDtmfConfig
9844
9831
  */
@@ -14120,6 +14107,60 @@ export type CallsBatchesRecipientsAddResults = {
14120
14107
 
14121
14108
  export type CallsBatchesRecipientsAddResult = CallsBatchesRecipientsAddResults[keyof CallsBatchesRecipientsAddResults];
14122
14109
 
14110
+ export type CallsBatchesRecipientsDeleteData = {
14111
+ body: DeleteRecipientsRequest;
14112
+ path: {
14113
+ /**
14114
+ * Batch Id
14115
+ */
14116
+ batch_id: string;
14117
+ };
14118
+ query?: never;
14119
+ url: '/v1/calls/batches/{batch_id}/recipients/delete';
14120
+ };
14121
+
14122
+ export type CallsBatchesRecipientsDeleteErrors = {
14123
+ /**
14124
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
14125
+ */
14126
+ 400: ErrorResponse;
14127
+ /**
14128
+ * Missing credential, or one that is revoked or no longer a member of this organization.
14129
+ */
14130
+ 401: ErrorResponse;
14131
+ /**
14132
+ * Authenticated, but this organization role may not perform the operation.
14133
+ */
14134
+ 403: ErrorResponse;
14135
+ /**
14136
+ * No such resource in this organization.
14137
+ */
14138
+ 404: ErrorResponse;
14139
+ /**
14140
+ * The resource's current state forbids this — a name already taken, a job already running.
14141
+ */
14142
+ 409: ErrorResponse;
14143
+ /**
14144
+ * The request did not match this operation's schema; `detail.errors` lists each field.
14145
+ */
14146
+ 422: ErrorResponse;
14147
+ /**
14148
+ * Unexpected error. Every error this API returns carries this body.
14149
+ */
14150
+ default: ErrorResponse;
14151
+ };
14152
+
14153
+ export type CallsBatchesRecipientsDeleteError = CallsBatchesRecipientsDeleteErrors[keyof CallsBatchesRecipientsDeleteErrors];
14154
+
14155
+ export type CallsBatchesRecipientsDeleteResults = {
14156
+ /**
14157
+ * Successful Response
14158
+ */
14159
+ 200: RecipientActionResponse;
14160
+ };
14161
+
14162
+ export type CallsBatchesRecipientsDeleteResult = CallsBatchesRecipientsDeleteResults[keyof CallsBatchesRecipientsDeleteResults];
14163
+
14123
14164
  export type CallsBatchesResumeData = {
14124
14165
  body?: never;
14125
14166
  path: {
@@ -16699,23 +16740,19 @@ export type EmailBatchesRecipientsAddResults = {
16699
16740
 
16700
16741
  export type EmailBatchesRecipientsAddResult = EmailBatchesRecipientsAddResults[keyof EmailBatchesRecipientsAddResults];
16701
16742
 
16702
- export type EmailBatchesRecipientsUpdateData = {
16703
- body: PatchEmailRecipientRequest;
16743
+ export type EmailBatchesRecipientsDeleteData = {
16744
+ body: DeleteRecipientsRequest;
16704
16745
  path: {
16705
16746
  /**
16706
16747
  * Batch Id
16707
16748
  */
16708
16749
  batch_id: string;
16709
- /**
16710
- * Recipient Id
16711
- */
16712
- recipient_id: string;
16713
16750
  };
16714
16751
  query?: never;
16715
- url: '/v1/email/batches/{batch_id}/recipients/{recipient_id}';
16752
+ url: '/v1/email/batches/{batch_id}/recipients/delete';
16716
16753
  };
16717
16754
 
16718
- export type EmailBatchesRecipientsUpdateErrors = {
16755
+ export type EmailBatchesRecipientsDeleteErrors = {
16719
16756
  /**
16720
16757
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16721
16758
  */
@@ -16746,30 +16783,34 @@ export type EmailBatchesRecipientsUpdateErrors = {
16746
16783
  default: ErrorResponse;
16747
16784
  };
16748
16785
 
16749
- export type EmailBatchesRecipientsUpdateError = EmailBatchesRecipientsUpdateErrors[keyof EmailBatchesRecipientsUpdateErrors];
16786
+ export type EmailBatchesRecipientsDeleteError = EmailBatchesRecipientsDeleteErrors[keyof EmailBatchesRecipientsDeleteErrors];
16750
16787
 
16751
- export type EmailBatchesRecipientsUpdateResults = {
16788
+ export type EmailBatchesRecipientsDeleteResults = {
16752
16789
  /**
16753
16790
  * Successful Response
16754
16791
  */
16755
- 200: EmailRecipientResponse;
16792
+ 200: RecipientActionResponse;
16756
16793
  };
16757
16794
 
16758
- export type EmailBatchesRecipientsUpdateResult = EmailBatchesRecipientsUpdateResults[keyof EmailBatchesRecipientsUpdateResults];
16795
+ export type EmailBatchesRecipientsDeleteResult = EmailBatchesRecipientsDeleteResults[keyof EmailBatchesRecipientsDeleteResults];
16759
16796
 
16760
- export type EmailBatchesRecipientsRedraftData = {
16761
- body: RedraftRequest;
16797
+ export type EmailBatchesRecipientsUpdateData = {
16798
+ body: PatchEmailRecipientRequest;
16762
16799
  path: {
16763
16800
  /**
16764
16801
  * Batch Id
16765
16802
  */
16766
16803
  batch_id: string;
16804
+ /**
16805
+ * Recipient Id
16806
+ */
16807
+ recipient_id: string;
16767
16808
  };
16768
16809
  query?: never;
16769
- url: '/v1/email/batches/{batch_id}/redraft';
16810
+ url: '/v1/email/batches/{batch_id}/recipients/{recipient_id}';
16770
16811
  };
16771
16812
 
16772
- export type EmailBatchesRecipientsRedraftErrors = {
16813
+ export type EmailBatchesRecipientsUpdateErrors = {
16773
16814
  /**
16774
16815
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16775
16816
  */
@@ -16800,19 +16841,19 @@ export type EmailBatchesRecipientsRedraftErrors = {
16800
16841
  default: ErrorResponse;
16801
16842
  };
16802
16843
 
16803
- export type EmailBatchesRecipientsRedraftError = EmailBatchesRecipientsRedraftErrors[keyof EmailBatchesRecipientsRedraftErrors];
16844
+ export type EmailBatchesRecipientsUpdateError = EmailBatchesRecipientsUpdateErrors[keyof EmailBatchesRecipientsUpdateErrors];
16804
16845
 
16805
- export type EmailBatchesRecipientsRedraftResults = {
16846
+ export type EmailBatchesRecipientsUpdateResults = {
16806
16847
  /**
16807
16848
  * Successful Response
16808
16849
  */
16809
- 200: RecipientActionResponse;
16850
+ 200: EmailRecipientResponse;
16810
16851
  };
16811
16852
 
16812
- export type EmailBatchesRecipientsRedraftResult = EmailBatchesRecipientsRedraftResults[keyof EmailBatchesRecipientsRedraftResults];
16853
+ export type EmailBatchesRecipientsUpdateResult = EmailBatchesRecipientsUpdateResults[keyof EmailBatchesRecipientsUpdateResults];
16813
16854
 
16814
- export type EmailBatchesRecipientsRestoreData = {
16815
- body: SelectRecipientsRequest;
16855
+ export type EmailBatchesRecipientsRedraftData = {
16856
+ body: RedraftRequest;
16816
16857
  path: {
16817
16858
  /**
16818
16859
  * Batch Id
@@ -16820,10 +16861,10 @@ export type EmailBatchesRecipientsRestoreData = {
16820
16861
  batch_id: string;
16821
16862
  };
16822
16863
  query?: never;
16823
- url: '/v1/email/batches/{batch_id}/restore';
16864
+ url: '/v1/email/batches/{batch_id}/redraft';
16824
16865
  };
16825
16866
 
16826
- export type EmailBatchesRecipientsRestoreErrors = {
16867
+ export type EmailBatchesRecipientsRedraftErrors = {
16827
16868
  /**
16828
16869
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16829
16870
  */
@@ -16854,16 +16895,16 @@ export type EmailBatchesRecipientsRestoreErrors = {
16854
16895
  default: ErrorResponse;
16855
16896
  };
16856
16897
 
16857
- export type EmailBatchesRecipientsRestoreError = EmailBatchesRecipientsRestoreErrors[keyof EmailBatchesRecipientsRestoreErrors];
16898
+ export type EmailBatchesRecipientsRedraftError = EmailBatchesRecipientsRedraftErrors[keyof EmailBatchesRecipientsRedraftErrors];
16858
16899
 
16859
- export type EmailBatchesRecipientsRestoreResults = {
16900
+ export type EmailBatchesRecipientsRedraftResults = {
16860
16901
  /**
16861
16902
  * Successful Response
16862
16903
  */
16863
16904
  200: RecipientActionResponse;
16864
16905
  };
16865
16906
 
16866
- export type EmailBatchesRecipientsRestoreResult = EmailBatchesRecipientsRestoreResults[keyof EmailBatchesRecipientsRestoreResults];
16907
+ export type EmailBatchesRecipientsRedraftResult = EmailBatchesRecipientsRedraftResults[keyof EmailBatchesRecipientsRedraftResults];
16867
16908
 
16868
16909
  export type EmailBatchesResumeData = {
16869
16910
  body?: never;
@@ -17302,60 +17343,6 @@ export type EmailBatchesSendsResumeResults = {
17302
17343
 
17303
17344
  export type EmailBatchesSendsResumeResult = EmailBatchesSendsResumeResults[keyof EmailBatchesSendsResumeResults];
17304
17345
 
17305
- export type EmailBatchesRecipientsSkipData = {
17306
- body: SelectRecipientsRequest;
17307
- path: {
17308
- /**
17309
- * Batch Id
17310
- */
17311
- batch_id: string;
17312
- };
17313
- query?: never;
17314
- url: '/v1/email/batches/{batch_id}/skip';
17315
- };
17316
-
17317
- export type EmailBatchesRecipientsSkipErrors = {
17318
- /**
17319
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17320
- */
17321
- 400: ErrorResponse;
17322
- /**
17323
- * Missing credential, or one that is revoked or no longer a member of this organization.
17324
- */
17325
- 401: ErrorResponse;
17326
- /**
17327
- * Authenticated, but this organization role may not perform the operation.
17328
- */
17329
- 403: ErrorResponse;
17330
- /**
17331
- * No such resource in this organization.
17332
- */
17333
- 404: ErrorResponse;
17334
- /**
17335
- * The resource's current state forbids this — a name already taken, a job already running.
17336
- */
17337
- 409: ErrorResponse;
17338
- /**
17339
- * The request did not match this operation's schema; `detail.errors` lists each field.
17340
- */
17341
- 422: ErrorResponse;
17342
- /**
17343
- * Unexpected error. Every error this API returns carries this body.
17344
- */
17345
- default: ErrorResponse;
17346
- };
17347
-
17348
- export type EmailBatchesRecipientsSkipError = EmailBatchesRecipientsSkipErrors[keyof EmailBatchesRecipientsSkipErrors];
17349
-
17350
- export type EmailBatchesRecipientsSkipResults = {
17351
- /**
17352
- * Successful Response
17353
- */
17354
- 200: RecipientActionResponse;
17355
- };
17356
-
17357
- export type EmailBatchesRecipientsSkipResult = EmailBatchesRecipientsSkipResults[keyof EmailBatchesRecipientsSkipResults];
17358
-
17359
17346
  export type EmailSendersListData = {
17360
17347
  body?: never;
17361
17348
  path?: never;
@@ -21530,62 +21517,8 @@ export type WhatsappBatchesRecipientsAddResults = {
21530
21517
 
21531
21518
  export type WhatsappBatchesRecipientsAddResult = WhatsappBatchesRecipientsAddResults[keyof WhatsappBatchesRecipientsAddResults];
21532
21519
 
21533
- export type WhatsappBatchesRecipientsRestoreData = {
21534
- body: SelectRecipientsRequest;
21535
- path: {
21536
- /**
21537
- * Batch Id
21538
- */
21539
- batch_id: string;
21540
- };
21541
- query?: never;
21542
- url: '/v1/whatsapp/batches/{batch_id}/recipients/restore';
21543
- };
21544
-
21545
- export type WhatsappBatchesRecipientsRestoreErrors = {
21546
- /**
21547
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
21548
- */
21549
- 400: ErrorResponse;
21550
- /**
21551
- * Missing credential, or one that is revoked or no longer a member of this organization.
21552
- */
21553
- 401: ErrorResponse;
21554
- /**
21555
- * Authenticated, but this organization role may not perform the operation.
21556
- */
21557
- 403: ErrorResponse;
21558
- /**
21559
- * No such resource in this organization.
21560
- */
21561
- 404: ErrorResponse;
21562
- /**
21563
- * The resource's current state forbids this — a name already taken, a job already running.
21564
- */
21565
- 409: ErrorResponse;
21566
- /**
21567
- * The request did not match this operation's schema; `detail.errors` lists each field.
21568
- */
21569
- 422: ErrorResponse;
21570
- /**
21571
- * Unexpected error. Every error this API returns carries this body.
21572
- */
21573
- default: ErrorResponse;
21574
- };
21575
-
21576
- export type WhatsappBatchesRecipientsRestoreError = WhatsappBatchesRecipientsRestoreErrors[keyof WhatsappBatchesRecipientsRestoreErrors];
21577
-
21578
- export type WhatsappBatchesRecipientsRestoreResults = {
21579
- /**
21580
- * Successful Response
21581
- */
21582
- 200: RecipientActionResponse;
21583
- };
21584
-
21585
- export type WhatsappBatchesRecipientsRestoreResult = WhatsappBatchesRecipientsRestoreResults[keyof WhatsappBatchesRecipientsRestoreResults];
21586
-
21587
- export type WhatsappBatchesRecipientsSkipData = {
21588
- body: SelectRecipientsRequest;
21520
+ export type WhatsappBatchesRecipientsDeleteData = {
21521
+ body: DeleteRecipientsRequest;
21589
21522
  path: {
21590
21523
  /**
21591
21524
  * Batch Id
@@ -21593,10 +21526,10 @@ export type WhatsappBatchesRecipientsSkipData = {
21593
21526
  batch_id: string;
21594
21527
  };
21595
21528
  query?: never;
21596
- url: '/v1/whatsapp/batches/{batch_id}/recipients/skip';
21529
+ url: '/v1/whatsapp/batches/{batch_id}/recipients/delete';
21597
21530
  };
21598
21531
 
21599
- export type WhatsappBatchesRecipientsSkipErrors = {
21532
+ export type WhatsappBatchesRecipientsDeleteErrors = {
21600
21533
  /**
21601
21534
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
21602
21535
  */
@@ -21627,16 +21560,16 @@ export type WhatsappBatchesRecipientsSkipErrors = {
21627
21560
  default: ErrorResponse;
21628
21561
  };
21629
21562
 
21630
- export type WhatsappBatchesRecipientsSkipError = WhatsappBatchesRecipientsSkipErrors[keyof WhatsappBatchesRecipientsSkipErrors];
21563
+ export type WhatsappBatchesRecipientsDeleteError = WhatsappBatchesRecipientsDeleteErrors[keyof WhatsappBatchesRecipientsDeleteErrors];
21631
21564
 
21632
- export type WhatsappBatchesRecipientsSkipResults = {
21565
+ export type WhatsappBatchesRecipientsDeleteResults = {
21633
21566
  /**
21634
21567
  * Successful Response
21635
21568
  */
21636
21569
  200: RecipientActionResponse;
21637
21570
  };
21638
21571
 
21639
- export type WhatsappBatchesRecipientsSkipResult = WhatsappBatchesRecipientsSkipResults[keyof WhatsappBatchesRecipientsSkipResults];
21572
+ export type WhatsappBatchesRecipientsDeleteResult = WhatsappBatchesRecipientsDeleteResults[keyof WhatsappBatchesRecipientsDeleteResults];
21640
21573
 
21641
21574
  export type WhatsappBatchesRecipientsUpdateData = {
21642
21575
  body: PatchWhatsAppRecipientRequest;