@talqing/sdk 0.5.0 → 0.7.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.
@@ -1,6 +1,39 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: `${string}://${string}` | (string & {});
3
3
  };
4
+ /**
5
+ * AddEmailRecipientsRequest
6
+ */
7
+ export type AddEmailRecipientsRequest = {
8
+ /**
9
+ * Recipients
10
+ */
11
+ recipients: Array<EmailRecipientInput>;
12
+ };
13
+ /**
14
+ * AddEmailRecipientsResponse
15
+ *
16
+ * `standing_send_id` is the send of every row that will mail the new rows
17
+ * without review, or null when they wait for review.
18
+ */
19
+ export type AddEmailRecipientsResponse = {
20
+ /**
21
+ * Added
22
+ */
23
+ added: number;
24
+ /**
25
+ * Skipped
26
+ */
27
+ skipped: Array<SkippedEmailRecipient>;
28
+ /**
29
+ * Standing Send Id
30
+ */
31
+ standing_send_id: string | null;
32
+ /**
33
+ * Total Recipients
34
+ */
35
+ total_recipients: number;
36
+ };
4
37
  /**
5
38
  * AddMessageConfig
6
39
  */
@@ -38,9 +71,10 @@ export type AddRecipientsRequest = {
38
71
  *
39
72
  * What appending to a batch did.
40
73
  *
41
- * Numbers already in the batch are skipped and reported rather than rejected:
42
- * re-uploading a list the operator re-exported is the normal case, and the
43
- * never-call-twice guarantee doing its job is not a user error.
74
+ * Numbers already in the batch, or repeated in the request, are skipped and
75
+ * reported rather than rejected: re-uploading a list the operator re-exported
76
+ * is the normal case, and the never-call-twice guarantee doing its job is not a
77
+ * user error.
44
78
  */
45
79
  export type AddRecipientsResponse = {
46
80
  /**
@@ -82,6 +116,32 @@ export type AddVoiceResponse = {
82
116
  */
83
117
  voice_id: string;
84
118
  };
119
+ /**
120
+ * AddWhatsAppRecipientsRequest
121
+ */
122
+ export type AddWhatsAppRecipientsRequest = {
123
+ /**
124
+ * Recipients
125
+ */
126
+ recipients: Array<WhatsAppRecipientInput>;
127
+ };
128
+ /**
129
+ * AddWhatsAppRecipientsResponse
130
+ */
131
+ export type AddWhatsAppRecipientsResponse = {
132
+ /**
133
+ * Added
134
+ */
135
+ added: number;
136
+ /**
137
+ * Skipped
138
+ */
139
+ skipped: Array<SkippedWhatsAppRecipient>;
140
+ /**
141
+ * Total Recipients
142
+ */
143
+ total_recipients: number;
144
+ };
85
145
  /**
86
146
  * AgentConfig
87
147
  *
@@ -1311,7 +1371,7 @@ export type CallDetailResponse = {
1311
1371
  /**
1312
1372
  * Transcript
1313
1373
  */
1314
- transcript: Array<TranscriptItemResponse>;
1374
+ transcript: Array<ConversationItemResponse>;
1315
1375
  usage: UsageResponse;
1316
1376
  /**
1317
1377
  * Vars
@@ -1717,6 +1777,26 @@ export type CatalogResponse = {
1717
1777
  */
1718
1778
  turn_detector_languages: Array<LanguageOption>;
1719
1779
  };
1780
+ /**
1781
+ * ChatDetailResponse
1782
+ *
1783
+ * One chat with what explains it: health, priced lines, vars and trace.
1784
+ */
1785
+ export type ChatDetailResponse = {
1786
+ chat: ChatResponse;
1787
+ cost: CostDetailResponse | null;
1788
+ /**
1789
+ * Events
1790
+ */
1791
+ events: Array<SessionEventResponse>;
1792
+ snapshot: HealthSnapshotResponse;
1793
+ /**
1794
+ * Vars
1795
+ */
1796
+ vars: {
1797
+ [key: string]: string;
1798
+ };
1799
+ };
1720
1800
  /**
1721
1801
  * ChatMessageRequest
1722
1802
  *
@@ -2017,7 +2097,7 @@ export type ConversationItemResponse = {
2017
2097
  /**
2018
2098
  * Agent Version
2019
2099
  */
2020
- agent_version: number | null;
2100
+ agent_version: number | 'draft' | null;
2021
2101
  /**
2022
2102
  * Attachments
2023
2103
  */
@@ -2047,6 +2127,7 @@ export type ConversationItemResponse = {
2047
2127
  * Id
2048
2128
  */
2049
2129
  id: string;
2130
+ latency: ReplyLatency | null;
2050
2131
  /**
2051
2132
  * Metadata
2052
2133
  */
@@ -2054,6 +2135,10 @@ export type ConversationItemResponse = {
2054
2135
  [key: string]: unknown;
2055
2136
  };
2056
2137
  metrics: TurnMetrics | null;
2138
+ /**
2139
+ * Origin
2140
+ */
2141
+ origin: 'speech' | 'typed' | 'keypad' | null;
2057
2142
  /**
2058
2143
  * Provider Message Id
2059
2144
  */
@@ -2212,14 +2297,16 @@ export type ConversationResponse = {
2212
2297
  * One agent execution within a conversation: a call, or a chat.
2213
2298
  */
2214
2299
  export type ConversationSessionResponse = {
2300
+ agent: AgentMetadata;
2215
2301
  /**
2216
- * Agent Id
2302
+ * Agent Version
2217
2303
  */
2218
- agent_id: string | null;
2304
+ agent_version: number | 'draft' | null;
2219
2305
  /**
2220
2306
  * Agent Version Id
2221
2307
  */
2222
2308
  agent_version_id: string | null;
2309
+ analysis: AnalysisResponse;
2223
2310
  /**
2224
2311
  * Channel
2225
2312
  */
@@ -2228,6 +2315,10 @@ export type ConversationSessionResponse = {
2228
2315
  * Close Reason
2229
2316
  */
2230
2317
  close_reason: string | null;
2318
+ /**
2319
+ * Close Reason Label
2320
+ */
2321
+ close_reason_label: string | null;
2231
2322
  /**
2232
2323
  * Conversation Id
2233
2324
  */
@@ -2236,11 +2327,15 @@ export type ConversationSessionResponse = {
2236
2327
  * Conversation Ref Id
2237
2328
  */
2238
2329
  conversation_ref_id: string | null;
2239
- cost: SessionCostResponse | null;
2330
+ cost: CostResponse | null;
2240
2331
  /**
2241
2332
  * Created At
2242
2333
  */
2243
2334
  created_at: string;
2335
+ /**
2336
+ * Duration S
2337
+ */
2338
+ duration_s: number | null;
2244
2339
  /**
2245
2340
  * Ended At
2246
2341
  */
@@ -2255,18 +2350,6 @@ export type ConversationSessionResponse = {
2255
2350
  */
2256
2351
  integration_id: string | null;
2257
2352
  metrics: SessionMetrics;
2258
- /**
2259
- * Outcome
2260
- */
2261
- outcome: 'success' | 'failure' | 'unknown' | null;
2262
- /**
2263
- * Output Item Ids
2264
- */
2265
- output_item_ids: Array<string>;
2266
- /**
2267
- * Session Id
2268
- */
2269
- session_id: string | null;
2270
2353
  /**
2271
2354
  * Started At
2272
2355
  */
@@ -2275,18 +2358,10 @@ export type ConversationSessionResponse = {
2275
2358
  * Status
2276
2359
  */
2277
2360
  status: string;
2278
- /**
2279
- * Summary
2280
- */
2281
- summary: string | null;
2282
2361
  /**
2283
2362
  * Trigger Id
2284
2363
  */
2285
2364
  trigger_id: string | null;
2286
- /**
2287
- * Trigger Item Ids
2288
- */
2289
- trigger_item_ids: Array<string>;
2290
2365
  /**
2291
2366
  * Type
2292
2367
  */
@@ -2370,6 +2445,46 @@ export type ConversationSpecOverride = {
2370
2445
  */
2371
2446
  summary_limit?: number | null;
2372
2447
  };
2448
+ /**
2449
+ * ConversationTraceEventResponse
2450
+ *
2451
+ * One trace row of a conversation, and the session it belongs to.
2452
+ */
2453
+ export type ConversationTraceEventResponse = {
2454
+ /**
2455
+ * Created At
2456
+ */
2457
+ created_at: string;
2458
+ /**
2459
+ * Payload
2460
+ */
2461
+ payload: {
2462
+ [key: string]: unknown;
2463
+ };
2464
+ /**
2465
+ * Seq
2466
+ */
2467
+ seq: number;
2468
+ /**
2469
+ * Session Id
2470
+ */
2471
+ session_id: string;
2472
+ /**
2473
+ * Type
2474
+ */
2475
+ type: string;
2476
+ };
2477
+ /**
2478
+ * ConversationTraceResponse
2479
+ *
2480
+ * A conversation's trace over one window, oldest first.
2481
+ */
2482
+ export type ConversationTraceResponse = {
2483
+ /**
2484
+ * Events
2485
+ */
2486
+ events: Array<ConversationTraceEventResponse>;
2487
+ };
2373
2488
  /**
2374
2489
  * CopilotFunctionCallItem
2375
2490
  *
@@ -4257,6 +4372,21 @@ export type HandoffTarget = {
4257
4372
  */
4258
4373
  summary_prompt?: string | null;
4259
4374
  };
4375
+ /**
4376
+ * HealthIssue
4377
+ *
4378
+ * One problem found, and what kind it is.
4379
+ */
4380
+ export type HealthIssue = {
4381
+ /**
4382
+ * Kind
4383
+ */
4384
+ kind: 'failed' | 'never_ready' | 'provider_errors' | 'provider_failover' | 'tool_failures' | 'tools_unfinished' | 'slow_tools' | 'slow_responses' | 'slow_after_filler' | 'connection' | 'noise_cancellation' | 'unpriceable';
4385
+ /**
4386
+ * Message
4387
+ */
4388
+ message: string;
4389
+ };
4260
4390
  /**
4261
4391
  * HealthResponse
4262
4392
  *
@@ -4305,10 +4435,6 @@ export type HealthSnapshotResponse = {
4305
4435
  * Duration Seconds
4306
4436
  */
4307
4437
  duration_seconds: number | null;
4308
- /**
4309
- * End Of Turn Avg Ms
4310
- */
4311
- end_of_turn_avg_ms: number | null;
4312
4438
  /**
4313
4439
  * Errors
4314
4440
  */
@@ -4332,7 +4458,7 @@ export type HealthSnapshotResponse = {
4332
4458
  /**
4333
4459
  * Issues
4334
4460
  */
4335
- issues: Array<string>;
4461
+ issues: Array<HealthIssue>;
4336
4462
  /**
4337
4463
  * Noise Cancellation Failed
4338
4464
  */
@@ -4359,6 +4485,14 @@ export type HealthSnapshotResponse = {
4359
4485
  */
4360
4486
  providers: Array<string>;
4361
4487
  response_latency: LatencyStats;
4488
+ /**
4489
+ * Response Stages
4490
+ */
4491
+ response_stages: Array<LatencyStage>;
4492
+ /**
4493
+ * Slow Replies After Filler
4494
+ */
4495
+ slow_replies_after_filler: number;
4362
4496
  /**
4363
4497
  * Slow Response Threshold Ms
4364
4498
  */
@@ -4395,18 +4529,6 @@ export type HealthSnapshotResponse = {
4395
4529
  * Total Cost Usd
4396
4530
  */
4397
4531
  total_cost_usd: number | null;
4398
- /**
4399
- * Transcription Avg Ms
4400
- */
4401
- transcription_avg_ms: number | null;
4402
- /**
4403
- * Ttfb Avg Ms
4404
- */
4405
- ttfb_avg_ms: number | null;
4406
- /**
4407
- * Ttft Avg Ms
4408
- */
4409
- ttft_avg_ms: number | null;
4410
4532
  /**
4411
4533
  * Tts Audio Ms
4412
4534
  */
@@ -5081,7 +5203,7 @@ export type ItemCreatedEvent = {
5081
5203
  /**
5082
5204
  * Agent Version
5083
5205
  */
5084
- agent_version: number | null;
5206
+ agent_version: number | 'draft' | null;
5085
5207
  /**
5086
5208
  * Attachments
5087
5209
  */
@@ -5115,6 +5237,7 @@ export type ItemCreatedEvent = {
5115
5237
  * Id
5116
5238
  */
5117
5239
  id: string;
5240
+ latency: ReplyLatency | null;
5118
5241
  /**
5119
5242
  * Metadata
5120
5243
  */
@@ -5122,6 +5245,10 @@ export type ItemCreatedEvent = {
5122
5245
  [key: string]: unknown;
5123
5246
  };
5124
5247
  metrics: TurnMetrics | null;
5248
+ /**
5249
+ * Origin
5250
+ */
5251
+ origin: 'speech' | 'typed' | 'keypad' | null;
5125
5252
  /**
5126
5253
  * Provider Message Id
5127
5254
  */
@@ -5946,6 +6073,25 @@ export type LanguageOption = {
5946
6073
  */
5947
6074
  name: string;
5948
6075
  };
6076
+ /**
6077
+ * LatencyStage
6078
+ *
6079
+ * One leg of a wait: what the time went on.
6080
+ */
6081
+ export type LatencyStage = {
6082
+ /**
6083
+ * Kind
6084
+ */
6085
+ kind: 'stt' | 'endpoint' | 'hook' | 'llm_step' | 'tool' | 'llm' | 'tts' | 'other';
6086
+ /**
6087
+ * Label
6088
+ */
6089
+ label: string;
6090
+ /**
6091
+ * Ms
6092
+ */
6093
+ ms: number;
6094
+ };
5949
6095
  /**
5950
6096
  * LatencyStats
5951
6097
  */
@@ -7514,7 +7660,7 @@ export type PageWhatsAppRecipientResponse = {
7514
7660
  /**
7515
7661
  * PatchCallBatchRequest
7516
7662
  *
7517
- * Policy edits, allowed while a batch is `scheduled`, `running` or `paused`.
7663
+ * Policy edits, allowed while a batch is `scheduled`, `running`, `paused` or `completed`.
7518
7664
  *
7519
7665
  * ``calling_window`` and ``start_at`` accept an explicit ``null`` to *clear*
7520
7666
  * them — "dial at any hour", "start on the next pass" — which is why the
@@ -9021,6 +9167,25 @@ export type RemoteNumber = {
9021
9167
  */
9022
9168
  provider_number_id?: string | null;
9023
9169
  };
9170
+ /**
9171
+ * ReplyLatency
9172
+ *
9173
+ * How long the caller waited for this reply, in the order it was spent.
9174
+ */
9175
+ export type ReplyLatency = {
9176
+ /**
9177
+ * Kind
9178
+ */
9179
+ kind: 'response' | 'reply' | 'after_filler';
9180
+ /**
9181
+ * Stages
9182
+ */
9183
+ stages: Array<LatencyStage>;
9184
+ /**
9185
+ * Total Ms
9186
+ */
9187
+ total_ms: number;
9188
+ };
9024
9189
  /**
9025
9190
  * RunStepResponse
9026
9191
  *
@@ -9582,29 +9747,6 @@ export type SendWhatsAppBatchRequest = {
9582
9747
  timezone?: string | null;
9583
9748
  window?: TimeWindow | null;
9584
9749
  };
9585
- /**
9586
- * SessionCostResponse
9587
- *
9588
- * Priced money columns for one session. Absent when billing has not run.
9589
- */
9590
- export type SessionCostResponse = {
9591
- /**
9592
- * Duration S
9593
- */
9594
- duration_s?: number | null;
9595
- /**
9596
- * Platform Fee
9597
- */
9598
- platform_fee: number;
9599
- /**
9600
- * Provider Cost
9601
- */
9602
- provider_cost: number;
9603
- /**
9604
- * Total Charge
9605
- */
9606
- total_charge: number;
9607
- };
9608
9750
  /**
9609
9751
  * SessionError
9610
9752
  *
@@ -9655,6 +9797,7 @@ export type SessionEventResponse = {
9655
9797
  * Latency averages are milliseconds over every message that reported the
9656
9798
  * metric (same rule as call detail / workspace observability). Turn-level
9657
9799
  * samples live on conversation_items.metrics for workspace daily aggregates.
9800
+ * On a chat, `e2e_latency` is a message arriving → the first token back.
9658
9801
  */
9659
9802
  export type SessionMetrics = {
9660
9803
  /**
@@ -9803,6 +9946,26 @@ export type SilenceSpecOverride = {
9803
9946
  */
9804
9947
  timeout?: number | null;
9805
9948
  };
9949
+ /**
9950
+ * SkippedEmailRecipient
9951
+ *
9952
+ * A row of the request that will not be drafted. `row_number` is its 1-based
9953
+ * position in the request; `recipient_id` is null when it was not stored.
9954
+ */
9955
+ export type SkippedEmailRecipient = {
9956
+ /**
9957
+ * Reason
9958
+ */
9959
+ reason: string;
9960
+ /**
9961
+ * Recipient Id
9962
+ */
9963
+ recipient_id: string | null;
9964
+ /**
9965
+ * Row Number
9966
+ */
9967
+ row_number: number;
9968
+ };
9806
9969
  /**
9807
9970
  * SkippedRecipient
9808
9971
  */
@@ -9820,6 +9983,26 @@ export type SkippedRecipient = {
9820
9983
  */
9821
9984
  to: string;
9822
9985
  };
9986
+ /**
9987
+ * SkippedWhatsAppRecipient
9988
+ *
9989
+ * A row of the request that will not be sent. `row_number` is its 1-based
9990
+ * position in the request; `recipient_id` is null when it was not stored.
9991
+ */
9992
+ export type SkippedWhatsAppRecipient = {
9993
+ /**
9994
+ * Reason
9995
+ */
9996
+ reason: string;
9997
+ /**
9998
+ * Recipient Id
9999
+ */
10000
+ recipient_id: string | null;
10001
+ /**
10002
+ * Row Number
10003
+ */
10004
+ row_number: number;
10005
+ };
9823
10006
  /**
9824
10007
  * StoredAgentPlan
9825
10008
  *
@@ -11273,51 +11456,6 @@ export type TraceStepResponse = {
11273
11456
  */
11274
11457
  truncated?: boolean;
11275
11458
  };
11276
- /**
11277
- * TranscriptItemResponse
11278
- */
11279
- export type TranscriptItemResponse = {
11280
- /**
11281
- * Agent Id
11282
- */
11283
- agent_id: string | null;
11284
- /**
11285
- * Agent Version
11286
- */
11287
- agent_version: number | 'draft' | null;
11288
- /**
11289
- * Attachments
11290
- */
11291
- attachments: Array<ConversationAttachment>;
11292
- /**
11293
- * Data
11294
- */
11295
- data: {
11296
- [key: string]: unknown;
11297
- } | null;
11298
- /**
11299
- * Id
11300
- */
11301
- id: string;
11302
- /**
11303
- * Item Id
11304
- */
11305
- item_id: string;
11306
- /**
11307
- * Metrics
11308
- */
11309
- metrics: {
11310
- [key: string]: unknown;
11311
- } | null;
11312
- /**
11313
- * Timestamp
11314
- */
11315
- timestamp: string;
11316
- /**
11317
- * Type
11318
- */
11319
- type: 'message' | 'function_call' | 'function_call_output' | 'agent_handoff' | 'agent_config_update';
11320
- };
11321
11459
  /**
11322
11460
  * TransferConfig
11323
11461
  */
@@ -14474,6 +14612,141 @@ export type ChatsGetResults = {
14474
14612
  200: ChatResponse;
14475
14613
  };
14476
14614
  export type ChatsGetResult = ChatsGetResults[keyof ChatsGetResults];
14615
+ export type ChatsAnalysisRerunData = {
14616
+ body?: never;
14617
+ path: {
14618
+ /**
14619
+ * Chat Id
14620
+ */
14621
+ chat_id: string;
14622
+ };
14623
+ query?: never;
14624
+ url: '/v1/chats/{chat_id}/analysis';
14625
+ };
14626
+ export type ChatsAnalysisRerunErrors = {
14627
+ /**
14628
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
14629
+ */
14630
+ 400: ErrorResponse;
14631
+ /**
14632
+ * Missing credential, or one that is revoked or no longer a member of this organization.
14633
+ */
14634
+ 401: ErrorResponse;
14635
+ /**
14636
+ * Authenticated, but this organization role may not perform the operation.
14637
+ */
14638
+ 403: ErrorResponse;
14639
+ /**
14640
+ * No such resource in this organization.
14641
+ */
14642
+ 404: ErrorResponse;
14643
+ /**
14644
+ * The resource's current state forbids this — a name already taken, a job already running.
14645
+ */
14646
+ 409: ErrorResponse;
14647
+ /**
14648
+ * The request did not match this operation's schema; `detail.errors` lists each field.
14649
+ */
14650
+ 422: ErrorResponse;
14651
+ /**
14652
+ * Unexpected error. Every error this API returns carries this body.
14653
+ */
14654
+ default: ErrorResponse;
14655
+ };
14656
+ export type ChatsAnalysisRerunError = ChatsAnalysisRerunErrors[keyof ChatsAnalysisRerunErrors];
14657
+ export type ChatsAnalysisRerunResults = {
14658
+ /**
14659
+ * Successful Response
14660
+ */
14661
+ 200: ChatResponse;
14662
+ };
14663
+ export type ChatsAnalysisRerunResult = ChatsAnalysisRerunResults[keyof ChatsAnalysisRerunResults];
14664
+ export type ChatsAnalysisPreviewData = {
14665
+ body: PreviewAnalysisRequest;
14666
+ path: {
14667
+ /**
14668
+ * Chat Id
14669
+ */
14670
+ chat_id: string;
14671
+ };
14672
+ query?: never;
14673
+ url: '/v1/chats/{chat_id}/analysis/preview';
14674
+ };
14675
+ export type ChatsAnalysisPreviewErrors = {
14676
+ /**
14677
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
14678
+ */
14679
+ 400: ErrorResponse;
14680
+ /**
14681
+ * Missing credential, or one that is revoked or no longer a member of this organization.
14682
+ */
14683
+ 401: ErrorResponse;
14684
+ /**
14685
+ * Authenticated, but this organization role may not perform the operation.
14686
+ */
14687
+ 403: ErrorResponse;
14688
+ /**
14689
+ * No such resource in this organization.
14690
+ */
14691
+ 404: ErrorResponse;
14692
+ /**
14693
+ * The resource's current state forbids this — a name already taken, a job already running.
14694
+ */
14695
+ 409: ErrorResponse;
14696
+ /**
14697
+ * The request did not match this operation's schema; `detail.errors` lists each field.
14698
+ */
14699
+ 422: ErrorResponse;
14700
+ /**
14701
+ * Unexpected error. Every error this API returns carries this body.
14702
+ */
14703
+ default: ErrorResponse;
14704
+ };
14705
+ export type ChatsAnalysisPreviewError = ChatsAnalysisPreviewErrors[keyof ChatsAnalysisPreviewErrors];
14706
+ export type ChatsAnalysisPreviewResults = {
14707
+ /**
14708
+ * Successful Response
14709
+ */
14710
+ 200: PreviewAnalysisResponse;
14711
+ };
14712
+ export type ChatsAnalysisPreviewResult = ChatsAnalysisPreviewResults[keyof ChatsAnalysisPreviewResults];
14713
+ export type ChatsDetailData = {
14714
+ body?: never;
14715
+ path: {
14716
+ /**
14717
+ * Chat Id
14718
+ */
14719
+ chat_id: string;
14720
+ };
14721
+ query?: never;
14722
+ url: '/v1/chats/{chat_id}/detail';
14723
+ };
14724
+ export type ChatsDetailErrors = {
14725
+ /**
14726
+ * Missing credential, or one that is revoked or no longer a member of this organization.
14727
+ */
14728
+ 401: ErrorResponse;
14729
+ /**
14730
+ * No such resource in this organization.
14731
+ */
14732
+ 404: ErrorResponse;
14733
+ /**
14734
+ * The request did not match this operation's schema; `detail.errors` lists each field.
14735
+ */
14736
+ 422: ErrorResponse;
14737
+ /**
14738
+ * Unexpected error. Every error this API returns carries this body.
14739
+ */
14740
+ default: ErrorResponse;
14741
+ };
14742
+ export type ChatsDetailError = ChatsDetailErrors[keyof ChatsDetailErrors];
14743
+ export type ChatsDetailResults = {
14744
+ /**
14745
+ * Successful Response
14746
+ */
14747
+ 200: ChatDetailResponse;
14748
+ };
14749
+ export type ChatsDetailResult = ChatsDetailResults[keyof ChatsDetailResults];
14477
14750
  export type ChatsEndData = {
14478
14751
  body?: never;
14479
14752
  path: {
@@ -15002,6 +15275,56 @@ export type ConversationsSnapshotResults = {
15002
15275
  200: HealthSnapshotResponse;
15003
15276
  };
15004
15277
  export type ConversationsSnapshotResult = ConversationsSnapshotResults[keyof ConversationsSnapshotResults];
15278
+ export type ConversationsTraceData = {
15279
+ body?: never;
15280
+ path: {
15281
+ /**
15282
+ * Conversation Id
15283
+ */
15284
+ conversation_id: string;
15285
+ };
15286
+ query?: {
15287
+ /**
15288
+ * After
15289
+ *
15290
+ * Only events at or after this.
15291
+ */
15292
+ after?: string | null;
15293
+ /**
15294
+ * Before
15295
+ *
15296
+ * Only events before this.
15297
+ */
15298
+ before?: string | null;
15299
+ };
15300
+ url: '/v1/conversations/{conversation_id}/trace';
15301
+ };
15302
+ export type ConversationsTraceErrors = {
15303
+ /**
15304
+ * Missing credential, or one that is revoked or no longer a member of this organization.
15305
+ */
15306
+ 401: ErrorResponse;
15307
+ /**
15308
+ * No such resource in this organization.
15309
+ */
15310
+ 404: ErrorResponse;
15311
+ /**
15312
+ * The request did not match this operation's schema; `detail.errors` lists each field.
15313
+ */
15314
+ 422: ErrorResponse;
15315
+ /**
15316
+ * Unexpected error. Every error this API returns carries this body.
15317
+ */
15318
+ default: ErrorResponse;
15319
+ };
15320
+ export type ConversationsTraceError = ConversationsTraceErrors[keyof ConversationsTraceErrors];
15321
+ export type ConversationsTraceResults = {
15322
+ /**
15323
+ * Successful Response
15324
+ */
15325
+ 200: ConversationTraceResponse;
15326
+ };
15327
+ export type ConversationsTraceResult = ConversationsTraceResults[keyof ConversationsTraceResults];
15005
15328
  export type CopilotAgentsSendData = {
15006
15329
  body: SendMessageRequest;
15007
15330
  path: {
@@ -15742,6 +16065,55 @@ export type EmailBatchesRecipientsListResults = {
15742
16065
  200: PageEmailRecipientResponse;
15743
16066
  };
15744
16067
  export type EmailBatchesRecipientsListResult = EmailBatchesRecipientsListResults[keyof EmailBatchesRecipientsListResults];
16068
+ export type EmailBatchesRecipientsAddData = {
16069
+ body: AddEmailRecipientsRequest;
16070
+ path: {
16071
+ /**
16072
+ * Batch Id
16073
+ */
16074
+ batch_id: string;
16075
+ };
16076
+ query?: never;
16077
+ url: '/v1/email/batches/{batch_id}/recipients';
16078
+ };
16079
+ export type EmailBatchesRecipientsAddErrors = {
16080
+ /**
16081
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16082
+ */
16083
+ 400: ErrorResponse;
16084
+ /**
16085
+ * Missing credential, or one that is revoked or no longer a member of this organization.
16086
+ */
16087
+ 401: ErrorResponse;
16088
+ /**
16089
+ * Authenticated, but this organization role may not perform the operation.
16090
+ */
16091
+ 403: ErrorResponse;
16092
+ /**
16093
+ * No such resource in this organization.
16094
+ */
16095
+ 404: ErrorResponse;
16096
+ /**
16097
+ * The resource's current state forbids this — a name already taken, a job already running.
16098
+ */
16099
+ 409: ErrorResponse;
16100
+ /**
16101
+ * The request did not match this operation's schema; `detail.errors` lists each field.
16102
+ */
16103
+ 422: ErrorResponse;
16104
+ /**
16105
+ * Unexpected error. Every error this API returns carries this body.
16106
+ */
16107
+ default: ErrorResponse;
16108
+ };
16109
+ export type EmailBatchesRecipientsAddError = EmailBatchesRecipientsAddErrors[keyof EmailBatchesRecipientsAddErrors];
16110
+ export type EmailBatchesRecipientsAddResults = {
16111
+ /**
16112
+ * Successful Response
16113
+ */
16114
+ 200: AddEmailRecipientsResponse;
16115
+ };
16116
+ export type EmailBatchesRecipientsAddResult = EmailBatchesRecipientsAddResults[keyof EmailBatchesRecipientsAddResults];
15745
16117
  export type EmailBatchesRecipientsUpdateData = {
15746
16118
  body: PatchEmailRecipientRequest;
15747
16119
  path: {
@@ -20208,6 +20580,55 @@ export type WhatsappBatchesRecipientsListResults = {
20208
20580
  200: PageWhatsAppRecipientResponse;
20209
20581
  };
20210
20582
  export type WhatsappBatchesRecipientsListResult = WhatsappBatchesRecipientsListResults[keyof WhatsappBatchesRecipientsListResults];
20583
+ export type WhatsappBatchesRecipientsAddData = {
20584
+ body: AddWhatsAppRecipientsRequest;
20585
+ path: {
20586
+ /**
20587
+ * Batch Id
20588
+ */
20589
+ batch_id: string;
20590
+ };
20591
+ query?: never;
20592
+ url: '/v1/whatsapp/batches/{batch_id}/recipients';
20593
+ };
20594
+ export type WhatsappBatchesRecipientsAddErrors = {
20595
+ /**
20596
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
20597
+ */
20598
+ 400: ErrorResponse;
20599
+ /**
20600
+ * Missing credential, or one that is revoked or no longer a member of this organization.
20601
+ */
20602
+ 401: ErrorResponse;
20603
+ /**
20604
+ * Authenticated, but this organization role may not perform the operation.
20605
+ */
20606
+ 403: ErrorResponse;
20607
+ /**
20608
+ * No such resource in this organization.
20609
+ */
20610
+ 404: ErrorResponse;
20611
+ /**
20612
+ * The resource's current state forbids this — a name already taken, a job already running.
20613
+ */
20614
+ 409: ErrorResponse;
20615
+ /**
20616
+ * The request did not match this operation's schema; `detail.errors` lists each field.
20617
+ */
20618
+ 422: ErrorResponse;
20619
+ /**
20620
+ * Unexpected error. Every error this API returns carries this body.
20621
+ */
20622
+ default: ErrorResponse;
20623
+ };
20624
+ export type WhatsappBatchesRecipientsAddError = WhatsappBatchesRecipientsAddErrors[keyof WhatsappBatchesRecipientsAddErrors];
20625
+ export type WhatsappBatchesRecipientsAddResults = {
20626
+ /**
20627
+ * Successful Response
20628
+ */
20629
+ 200: AddWhatsAppRecipientsResponse;
20630
+ };
20631
+ export type WhatsappBatchesRecipientsAddResult = WhatsappBatchesRecipientsAddResults[keyof WhatsappBatchesRecipientsAddResults];
20211
20632
  export type WhatsappBatchesRecipientsRestoreData = {
20212
20633
  body: SelectRecipientsRequest;
20213
20634
  path: {