@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.
@@ -875,7 +875,7 @@ export type AvatarSpecOverride = {
875
875
  * AvatarUsage
876
876
  *
877
877
  * One avatar session's billable window: WALL-CLOCK seconds alive, idle
878
- * included (Anam's billing rule, §16 Phase 15). Metered from our own job
878
+ * included (Anam's billing rule). Metered from our own job
879
879
  * timing — Anam has no usage webhooks; `avatar_session_id` (Anam's sessionId)
880
880
  * is stored for reconciliation against any future Anam usage export.
881
881
  */
@@ -3240,8 +3240,10 @@ export type CreateTelephonyAccountRequest = {
3240
3240
  };
3241
3241
  /**
3242
3242
  * Display Name
3243
+ *
3244
+ * Omit to use the carrier's own name for the account.
3243
3245
  */
3244
- display_name: string;
3246
+ display_name?: string | null;
3245
3247
  /**
3246
3248
  * Provider
3247
3249
  */
@@ -3370,12 +3372,7 @@ export type CreateWhatsAppBatchRequest = {
3370
3372
  /**
3371
3373
  * CreditBalanceResponse
3372
3374
  *
3373
- * This region's balance for the workspace, what it buys, and top-up prices.
3374
- *
3375
- * Per region, because the balance is a data-plane table. A caller reading this
3376
- * is reading the balance of whichever region's API they called, and the
3377
- * dashboard labels it with that region's name — a bare number is what makes a
3378
- * customer with $50 in one region and $0 in another think the money vanished.
3375
+ * This workspace's credit balance, what it buys, and top-up prices.
3379
3376
  */
3380
3377
  export type CreditBalanceResponse = {
3381
3378
  /**
@@ -3495,6 +3492,17 @@ export type CreditPackResponse = {
3495
3492
  */
3496
3493
  voice_minutes: number;
3497
3494
  };
3495
+ /**
3496
+ * DeleteRecipientsRequest
3497
+ *
3498
+ * Rows to remove from a batch, by id.
3499
+ */
3500
+ export type DeleteRecipientsRequest = {
3501
+ /**
3502
+ * Recipient Ids
3503
+ */
3504
+ recipient_ids: Array<string>;
3505
+ };
3498
3506
  /**
3499
3507
  * DeliveryError
3500
3508
  *
@@ -9500,27 +9508,6 @@ export type SecretResponse = {
9500
9508
  */
9501
9509
  value_hint: string;
9502
9510
  };
9503
- /**
9504
- * SelectRecipientsRequest
9505
- *
9506
- * What `skip` and `restore` accept — either shape.
9507
- *
9508
- * Both are reversible, which is why both take a bulk shorthand: skipping four
9509
- * thousand rows is undone by restoring them, and making curation tedious pushes
9510
- * an operator toward not curating.
9511
- */
9512
- export type SelectRecipientsRequest = {
9513
- /**
9514
- * Recipient Ids
9515
- */
9516
- recipient_ids?: Array<string> | null;
9517
- /**
9518
- * Selection
9519
- *
9520
- * Every row this verb can act on: drafts for skip, rows a person skipped for restore.
9521
- */
9522
- selection?: 'all_eligible' | null;
9523
- };
9524
9511
  /**
9525
9512
  * SendDtmfConfig
9526
9513
  */
@@ -13577,6 +13564,55 @@ export type CallsBatchesRecipientsAddResults = {
13577
13564
  200: AddRecipientsResponse;
13578
13565
  };
13579
13566
  export type CallsBatchesRecipientsAddResult = CallsBatchesRecipientsAddResults[keyof CallsBatchesRecipientsAddResults];
13567
+ export type CallsBatchesRecipientsDeleteData = {
13568
+ body: DeleteRecipientsRequest;
13569
+ path: {
13570
+ /**
13571
+ * Batch Id
13572
+ */
13573
+ batch_id: string;
13574
+ };
13575
+ query?: never;
13576
+ url: '/v1/calls/batches/{batch_id}/recipients/delete';
13577
+ };
13578
+ export type CallsBatchesRecipientsDeleteErrors = {
13579
+ /**
13580
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
13581
+ */
13582
+ 400: ErrorResponse;
13583
+ /**
13584
+ * Missing credential, or one that is revoked or no longer a member of this organization.
13585
+ */
13586
+ 401: ErrorResponse;
13587
+ /**
13588
+ * Authenticated, but this organization role may not perform the operation.
13589
+ */
13590
+ 403: ErrorResponse;
13591
+ /**
13592
+ * No such resource in this organization.
13593
+ */
13594
+ 404: ErrorResponse;
13595
+ /**
13596
+ * The resource's current state forbids this — a name already taken, a job already running.
13597
+ */
13598
+ 409: ErrorResponse;
13599
+ /**
13600
+ * The request did not match this operation's schema; `detail.errors` lists each field.
13601
+ */
13602
+ 422: ErrorResponse;
13603
+ /**
13604
+ * Unexpected error. Every error this API returns carries this body.
13605
+ */
13606
+ default: ErrorResponse;
13607
+ };
13608
+ export type CallsBatchesRecipientsDeleteError = CallsBatchesRecipientsDeleteErrors[keyof CallsBatchesRecipientsDeleteErrors];
13609
+ export type CallsBatchesRecipientsDeleteResults = {
13610
+ /**
13611
+ * Successful Response
13612
+ */
13613
+ 200: RecipientActionResponse;
13614
+ };
13615
+ export type CallsBatchesRecipientsDeleteResult = CallsBatchesRecipientsDeleteResults[keyof CallsBatchesRecipientsDeleteResults];
13580
13616
  export type CallsBatchesResumeData = {
13581
13617
  body?: never;
13582
13618
  path: {
@@ -15903,22 +15939,18 @@ export type EmailBatchesRecipientsAddResults = {
15903
15939
  200: AddEmailRecipientsResponse;
15904
15940
  };
15905
15941
  export type EmailBatchesRecipientsAddResult = EmailBatchesRecipientsAddResults[keyof EmailBatchesRecipientsAddResults];
15906
- export type EmailBatchesRecipientsUpdateData = {
15907
- body: PatchEmailRecipientRequest;
15942
+ export type EmailBatchesRecipientsDeleteData = {
15943
+ body: DeleteRecipientsRequest;
15908
15944
  path: {
15909
15945
  /**
15910
15946
  * Batch Id
15911
15947
  */
15912
15948
  batch_id: string;
15913
- /**
15914
- * Recipient Id
15915
- */
15916
- recipient_id: string;
15917
15949
  };
15918
15950
  query?: never;
15919
- url: '/v1/email/batches/{batch_id}/recipients/{recipient_id}';
15951
+ url: '/v1/email/batches/{batch_id}/recipients/delete';
15920
15952
  };
15921
- export type EmailBatchesRecipientsUpdateErrors = {
15953
+ export type EmailBatchesRecipientsDeleteErrors = {
15922
15954
  /**
15923
15955
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15924
15956
  */
@@ -15948,26 +15980,30 @@ export type EmailBatchesRecipientsUpdateErrors = {
15948
15980
  */
15949
15981
  default: ErrorResponse;
15950
15982
  };
15951
- export type EmailBatchesRecipientsUpdateError = EmailBatchesRecipientsUpdateErrors[keyof EmailBatchesRecipientsUpdateErrors];
15952
- export type EmailBatchesRecipientsUpdateResults = {
15983
+ export type EmailBatchesRecipientsDeleteError = EmailBatchesRecipientsDeleteErrors[keyof EmailBatchesRecipientsDeleteErrors];
15984
+ export type EmailBatchesRecipientsDeleteResults = {
15953
15985
  /**
15954
15986
  * Successful Response
15955
15987
  */
15956
- 200: EmailRecipientResponse;
15988
+ 200: RecipientActionResponse;
15957
15989
  };
15958
- export type EmailBatchesRecipientsUpdateResult = EmailBatchesRecipientsUpdateResults[keyof EmailBatchesRecipientsUpdateResults];
15959
- export type EmailBatchesRecipientsRedraftData = {
15960
- body: RedraftRequest;
15990
+ export type EmailBatchesRecipientsDeleteResult = EmailBatchesRecipientsDeleteResults[keyof EmailBatchesRecipientsDeleteResults];
15991
+ export type EmailBatchesRecipientsUpdateData = {
15992
+ body: PatchEmailRecipientRequest;
15961
15993
  path: {
15962
15994
  /**
15963
15995
  * Batch Id
15964
15996
  */
15965
15997
  batch_id: string;
15998
+ /**
15999
+ * Recipient Id
16000
+ */
16001
+ recipient_id: string;
15966
16002
  };
15967
16003
  query?: never;
15968
- url: '/v1/email/batches/{batch_id}/redraft';
16004
+ url: '/v1/email/batches/{batch_id}/recipients/{recipient_id}';
15969
16005
  };
15970
- export type EmailBatchesRecipientsRedraftErrors = {
16006
+ export type EmailBatchesRecipientsUpdateErrors = {
15971
16007
  /**
15972
16008
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15973
16009
  */
@@ -15997,16 +16033,16 @@ export type EmailBatchesRecipientsRedraftErrors = {
15997
16033
  */
15998
16034
  default: ErrorResponse;
15999
16035
  };
16000
- export type EmailBatchesRecipientsRedraftError = EmailBatchesRecipientsRedraftErrors[keyof EmailBatchesRecipientsRedraftErrors];
16001
- export type EmailBatchesRecipientsRedraftResults = {
16036
+ export type EmailBatchesRecipientsUpdateError = EmailBatchesRecipientsUpdateErrors[keyof EmailBatchesRecipientsUpdateErrors];
16037
+ export type EmailBatchesRecipientsUpdateResults = {
16002
16038
  /**
16003
16039
  * Successful Response
16004
16040
  */
16005
- 200: RecipientActionResponse;
16041
+ 200: EmailRecipientResponse;
16006
16042
  };
16007
- export type EmailBatchesRecipientsRedraftResult = EmailBatchesRecipientsRedraftResults[keyof EmailBatchesRecipientsRedraftResults];
16008
- export type EmailBatchesRecipientsRestoreData = {
16009
- body: SelectRecipientsRequest;
16043
+ export type EmailBatchesRecipientsUpdateResult = EmailBatchesRecipientsUpdateResults[keyof EmailBatchesRecipientsUpdateResults];
16044
+ export type EmailBatchesRecipientsRedraftData = {
16045
+ body: RedraftRequest;
16010
16046
  path: {
16011
16047
  /**
16012
16048
  * Batch Id
@@ -16014,9 +16050,9 @@ export type EmailBatchesRecipientsRestoreData = {
16014
16050
  batch_id: string;
16015
16051
  };
16016
16052
  query?: never;
16017
- url: '/v1/email/batches/{batch_id}/restore';
16053
+ url: '/v1/email/batches/{batch_id}/redraft';
16018
16054
  };
16019
- export type EmailBatchesRecipientsRestoreErrors = {
16055
+ export type EmailBatchesRecipientsRedraftErrors = {
16020
16056
  /**
16021
16057
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16022
16058
  */
@@ -16046,14 +16082,14 @@ export type EmailBatchesRecipientsRestoreErrors = {
16046
16082
  */
16047
16083
  default: ErrorResponse;
16048
16084
  };
16049
- export type EmailBatchesRecipientsRestoreError = EmailBatchesRecipientsRestoreErrors[keyof EmailBatchesRecipientsRestoreErrors];
16050
- export type EmailBatchesRecipientsRestoreResults = {
16085
+ export type EmailBatchesRecipientsRedraftError = EmailBatchesRecipientsRedraftErrors[keyof EmailBatchesRecipientsRedraftErrors];
16086
+ export type EmailBatchesRecipientsRedraftResults = {
16051
16087
  /**
16052
16088
  * Successful Response
16053
16089
  */
16054
16090
  200: RecipientActionResponse;
16055
16091
  };
16056
- export type EmailBatchesRecipientsRestoreResult = EmailBatchesRecipientsRestoreResults[keyof EmailBatchesRecipientsRestoreResults];
16092
+ export type EmailBatchesRecipientsRedraftResult = EmailBatchesRecipientsRedraftResults[keyof EmailBatchesRecipientsRedraftResults];
16057
16093
  export type EmailBatchesResumeData = {
16058
16094
  body?: never;
16059
16095
  path: {
@@ -16451,55 +16487,6 @@ export type EmailBatchesSendsResumeResults = {
16451
16487
  200: EmailSendResponse;
16452
16488
  };
16453
16489
  export type EmailBatchesSendsResumeResult = EmailBatchesSendsResumeResults[keyof EmailBatchesSendsResumeResults];
16454
- export type EmailBatchesRecipientsSkipData = {
16455
- body: SelectRecipientsRequest;
16456
- path: {
16457
- /**
16458
- * Batch Id
16459
- */
16460
- batch_id: string;
16461
- };
16462
- query?: never;
16463
- url: '/v1/email/batches/{batch_id}/skip';
16464
- };
16465
- export type EmailBatchesRecipientsSkipErrors = {
16466
- /**
16467
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16468
- */
16469
- 400: ErrorResponse;
16470
- /**
16471
- * Missing credential, or one that is revoked or no longer a member of this organization.
16472
- */
16473
- 401: ErrorResponse;
16474
- /**
16475
- * Authenticated, but this organization role may not perform the operation.
16476
- */
16477
- 403: ErrorResponse;
16478
- /**
16479
- * No such resource in this organization.
16480
- */
16481
- 404: ErrorResponse;
16482
- /**
16483
- * The resource's current state forbids this — a name already taken, a job already running.
16484
- */
16485
- 409: ErrorResponse;
16486
- /**
16487
- * The request did not match this operation's schema; `detail.errors` lists each field.
16488
- */
16489
- 422: ErrorResponse;
16490
- /**
16491
- * Unexpected error. Every error this API returns carries this body.
16492
- */
16493
- default: ErrorResponse;
16494
- };
16495
- export type EmailBatchesRecipientsSkipError = EmailBatchesRecipientsSkipErrors[keyof EmailBatchesRecipientsSkipErrors];
16496
- export type EmailBatchesRecipientsSkipResults = {
16497
- /**
16498
- * Successful Response
16499
- */
16500
- 200: RecipientActionResponse;
16501
- };
16502
- export type EmailBatchesRecipientsSkipResult = EmailBatchesRecipientsSkipResults[keyof EmailBatchesRecipientsSkipResults];
16503
16490
  export type EmailSendersListData = {
16504
16491
  body?: never;
16505
16492
  path?: never;
@@ -20249,57 +20236,8 @@ export type WhatsappBatchesRecipientsAddResults = {
20249
20236
  200: AddWhatsAppRecipientsResponse;
20250
20237
  };
20251
20238
  export type WhatsappBatchesRecipientsAddResult = WhatsappBatchesRecipientsAddResults[keyof WhatsappBatchesRecipientsAddResults];
20252
- export type WhatsappBatchesRecipientsRestoreData = {
20253
- body: SelectRecipientsRequest;
20254
- path: {
20255
- /**
20256
- * Batch Id
20257
- */
20258
- batch_id: string;
20259
- };
20260
- query?: never;
20261
- url: '/v1/whatsapp/batches/{batch_id}/recipients/restore';
20262
- };
20263
- export type WhatsappBatchesRecipientsRestoreErrors = {
20264
- /**
20265
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
20266
- */
20267
- 400: ErrorResponse;
20268
- /**
20269
- * Missing credential, or one that is revoked or no longer a member of this organization.
20270
- */
20271
- 401: ErrorResponse;
20272
- /**
20273
- * Authenticated, but this organization role may not perform the operation.
20274
- */
20275
- 403: ErrorResponse;
20276
- /**
20277
- * No such resource in this organization.
20278
- */
20279
- 404: ErrorResponse;
20280
- /**
20281
- * The resource's current state forbids this — a name already taken, a job already running.
20282
- */
20283
- 409: ErrorResponse;
20284
- /**
20285
- * The request did not match this operation's schema; `detail.errors` lists each field.
20286
- */
20287
- 422: ErrorResponse;
20288
- /**
20289
- * Unexpected error. Every error this API returns carries this body.
20290
- */
20291
- default: ErrorResponse;
20292
- };
20293
- export type WhatsappBatchesRecipientsRestoreError = WhatsappBatchesRecipientsRestoreErrors[keyof WhatsappBatchesRecipientsRestoreErrors];
20294
- export type WhatsappBatchesRecipientsRestoreResults = {
20295
- /**
20296
- * Successful Response
20297
- */
20298
- 200: RecipientActionResponse;
20299
- };
20300
- export type WhatsappBatchesRecipientsRestoreResult = WhatsappBatchesRecipientsRestoreResults[keyof WhatsappBatchesRecipientsRestoreResults];
20301
- export type WhatsappBatchesRecipientsSkipData = {
20302
- body: SelectRecipientsRequest;
20239
+ export type WhatsappBatchesRecipientsDeleteData = {
20240
+ body: DeleteRecipientsRequest;
20303
20241
  path: {
20304
20242
  /**
20305
20243
  * Batch Id
@@ -20307,9 +20245,9 @@ export type WhatsappBatchesRecipientsSkipData = {
20307
20245
  batch_id: string;
20308
20246
  };
20309
20247
  query?: never;
20310
- url: '/v1/whatsapp/batches/{batch_id}/recipients/skip';
20248
+ url: '/v1/whatsapp/batches/{batch_id}/recipients/delete';
20311
20249
  };
20312
- export type WhatsappBatchesRecipientsSkipErrors = {
20250
+ export type WhatsappBatchesRecipientsDeleteErrors = {
20313
20251
  /**
20314
20252
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
20315
20253
  */
@@ -20339,14 +20277,14 @@ export type WhatsappBatchesRecipientsSkipErrors = {
20339
20277
  */
20340
20278
  default: ErrorResponse;
20341
20279
  };
20342
- export type WhatsappBatchesRecipientsSkipError = WhatsappBatchesRecipientsSkipErrors[keyof WhatsappBatchesRecipientsSkipErrors];
20343
- export type WhatsappBatchesRecipientsSkipResults = {
20280
+ export type WhatsappBatchesRecipientsDeleteError = WhatsappBatchesRecipientsDeleteErrors[keyof WhatsappBatchesRecipientsDeleteErrors];
20281
+ export type WhatsappBatchesRecipientsDeleteResults = {
20344
20282
  /**
20345
20283
  * Successful Response
20346
20284
  */
20347
20285
  200: RecipientActionResponse;
20348
20286
  };
20349
- export type WhatsappBatchesRecipientsSkipResult = WhatsappBatchesRecipientsSkipResults[keyof WhatsappBatchesRecipientsSkipResults];
20287
+ export type WhatsappBatchesRecipientsDeleteResult = WhatsappBatchesRecipientsDeleteResults[keyof WhatsappBatchesRecipientsDeleteResults];
20350
20288
  export type WhatsappBatchesRecipientsUpdateData = {
20351
20289
  body: PatchWhatsAppRecipientRequest;
20352
20290
  path: {