@talqing/sdk 0.7.0 → 0.9.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.
@@ -163,6 +163,12 @@ export type AgentConfig = {
163
163
  */
164
164
  channel?: 'voice' | 'video' | 'text';
165
165
  conversation?: ConversationSpec;
166
+ /**
167
+ * Faqs
168
+ *
169
+ * FAQs the agent answers from: questions go in the prompt, answers are fetched on demand.
170
+ */
171
+ faqs?: Array<FaqSelection>;
166
172
  /**
167
173
  * Greeting
168
174
  *
@@ -181,12 +187,6 @@ export type AgentConfig = {
181
187
  * Where this agent may hand the conversation next. Each entry becomes one tool the model can call, so routing quality lives in its `description`. A target is a stored agent (`agent_id`) or a member of the team defined on the call.
182
188
  */
183
189
  handoffs?: Array<HandoffTarget>;
184
- /**
185
- * Kb Ids
186
- *
187
- * Knowledge bases to read from: their outline goes into the prompt and pages are fetched on demand.
188
- */
189
- kb_ids?: Array<string>;
190
190
  keypad_input?: KeypadInputSpec;
191
191
  /**
192
192
  * Language
@@ -293,6 +293,12 @@ export type AgentOverride = {
293
293
  */
294
294
  channel?: 'voice' | 'video' | 'text' | null;
295
295
  conversation?: ConversationSpecOverride | null;
296
+ /**
297
+ * Faqs
298
+ *
299
+ * FAQs the agent answers from: questions go in the prompt, answers are fetched on demand.
300
+ */
301
+ faqs?: Array<FaqSelection> | null;
296
302
  /**
297
303
  * Greeting
298
304
  *
@@ -311,12 +317,6 @@ export type AgentOverride = {
311
317
  * Where this agent may hand the conversation next. Each entry becomes one tool the model can call, so routing quality lives in its `description`. A target is a stored agent (`agent_id`) or a member of the team defined on the call.
312
318
  */
313
319
  handoffs?: Array<HandoffTarget> | null;
314
- /**
315
- * Kb Ids
316
- *
317
- * Knowledge bases to read from: their outline goes into the prompt and pages are fetched on demand.
318
- */
319
- kb_ids?: Array<string> | null;
320
320
  keypad_input?: KeypadInputSpecOverride | null;
321
321
  /**
322
322
  * Language
@@ -1048,28 +1048,6 @@ export type BatchRecipientInput = {
1048
1048
  [key: string]: string;
1049
1049
  };
1050
1050
  };
1051
- /**
1052
- * BuildKBRequest
1053
- */
1054
- export type BuildKBRequest = {
1055
- /**
1056
- * Selected Urls
1057
- */
1058
- selected_urls?: Array<string>;
1059
- };
1060
- /**
1061
- * BuildResultResponse
1062
- */
1063
- export type BuildResultResponse = {
1064
- /**
1065
- * Count
1066
- */
1067
- count: number;
1068
- /**
1069
- * Ok
1070
- */
1071
- ok?: boolean;
1072
- };
1073
1051
  /**
1074
1052
  * BuiltinTool
1075
1053
  *
@@ -1276,6 +1254,26 @@ export type CallBatchResponse = {
1276
1254
  * Created At
1277
1255
  */
1278
1256
  created_at: string;
1257
+ /**
1258
+ * Dial Daily Cap
1259
+ */
1260
+ dial_daily_cap: ({
1261
+ kind: 'fixed';
1262
+ } & FixedDailyCap) | ({
1263
+ kind: 'ramp';
1264
+ } & RampDailyCap) | null;
1265
+ /**
1266
+ * Dial Daily Cap Today
1267
+ */
1268
+ dial_daily_cap_today: number | null;
1269
+ /**
1270
+ * Dial Gap Seconds
1271
+ */
1272
+ dial_gap_seconds: number;
1273
+ /**
1274
+ * Dialed Today
1275
+ */
1276
+ dialed_today: number;
1279
1277
  /**
1280
1278
  * Ended At
1281
1279
  */
@@ -1312,6 +1310,10 @@ export type CallBatchResponse = {
1312
1310
  * Next Dial At
1313
1311
  */
1314
1312
  next_dial_at: string | null;
1313
+ /**
1314
+ * Next Dial Reason
1315
+ */
1316
+ next_dial_reason: 'start' | 'window' | 'daily_cap' | null;
1315
1317
  /**
1316
1318
  * Retry After Minutes
1317
1319
  */
@@ -2799,6 +2801,22 @@ export type CreateCallBatchRequest = {
2799
2801
  */
2800
2802
  agent_version?: number | 'draft' | null;
2801
2803
  calling_window?: TimeWindow | null;
2804
+ /**
2805
+ * Dial Daily Cap
2806
+ *
2807
+ * Calls placed per local day, retries included: a fixed limit, or a ramp that rises on days it dialled. Null is uncapped.
2808
+ */
2809
+ dial_daily_cap?: ({
2810
+ kind: 'fixed';
2811
+ } & FixedDailyCap) | ({
2812
+ kind: 'ramp';
2813
+ } & RampDailyCap) | null;
2814
+ /**
2815
+ * Dial Gap Seconds
2816
+ *
2817
+ * Minimum seconds between STARTING two calls; 0 dials as slots free. A call may start up to 30 seconds after its gap ends.
2818
+ */
2819
+ dial_gap_seconds?: number;
2802
2820
  /**
2803
2821
  * From Phone Number Id
2804
2822
  */
@@ -2953,9 +2971,13 @@ export type CreateEmailBatchRequest = {
2953
2971
  /**
2954
2972
  * Send Daily Cap
2955
2973
  *
2956
- * Emails this batch may send per local day, across all of its sends. Null is uncapped.
2974
+ * Emails this batch may send per local day, across all of its sends: a fixed limit, or a ramp that rises on days it sent. Null is uncapped.
2957
2975
  */
2958
- send_daily_cap?: number | null;
2976
+ send_daily_cap?: ({
2977
+ kind: 'fixed';
2978
+ } & FixedDailyCap) | ({
2979
+ kind: 'ramp';
2980
+ } & RampDailyCap) | null;
2959
2981
  /**
2960
2982
  * Send Gap Seconds
2961
2983
  *
@@ -3029,7 +3051,11 @@ export type CreateEmailSendRequest = {
3029
3051
  /**
3030
3052
  * Send Daily Cap
3031
3053
  */
3032
- send_daily_cap?: number | null;
3054
+ send_daily_cap?: ({
3055
+ kind: 'fixed';
3056
+ } & FixedDailyCap) | ({
3057
+ kind: 'ramp';
3058
+ } & RampDailyCap) | null;
3033
3059
  /**
3034
3060
  * Send Gap Seconds
3035
3061
  */
@@ -3065,6 +3091,15 @@ export type CreateEmailSendResponse = {
3065
3091
  rejected: Array<RejectedRecipient>;
3066
3092
  send: EmailSendResponse;
3067
3093
  };
3094
+ /**
3095
+ * CreateFaqEntriesRequest
3096
+ */
3097
+ export type CreateFaqEntriesRequest = {
3098
+ /**
3099
+ * Entries
3100
+ */
3101
+ entries: Array<FaqEntryInput>;
3102
+ };
3068
3103
  /**
3069
3104
  * CreateIntegrationRequest
3070
3105
  */
@@ -3145,27 +3180,6 @@ export type CreateIntegrationTriggerRequest = {
3145
3180
  */
3146
3181
  trigger_type: 'telegram.message.inbound' | 'whatsapp.message.inbound' | 'whatsapp.call.inbound';
3147
3182
  };
3148
- /**
3149
- * CreateKBRequest
3150
- */
3151
- export type CreateKBRequest = {
3152
- /**
3153
- * Max Pages
3154
- */
3155
- max_pages?: number;
3156
- /**
3157
- * Name
3158
- */
3159
- name: string;
3160
- /**
3161
- * Notes
3162
- */
3163
- notes?: string;
3164
- /**
3165
- * Urls
3166
- */
3167
- urls?: Array<string>;
3168
- };
3169
3183
  /**
3170
3184
  * CreateSecretRequest
3171
3185
  */
@@ -3316,9 +3330,13 @@ export type CreateWhatsAppBatchRequest = {
3316
3330
  /**
3317
3331
  * Send Daily Cap
3318
3332
  *
3319
- * Messages per local day. Null is uncapped.
3333
+ * Messages per local day: a fixed limit, or a ramp that rises on days it sent. Null is uncapped.
3320
3334
  */
3321
- send_daily_cap?: number | null;
3335
+ send_daily_cap?: ({
3336
+ kind: 'fixed';
3337
+ } & FixedDailyCap) | ({
3338
+ kind: 'ramp';
3339
+ } & RampDailyCap) | null;
3322
3340
  /**
3323
3341
  * Send Gap Seconds
3324
3342
  */
@@ -3735,7 +3753,15 @@ export type EmailBatchResponse = {
3735
3753
  /**
3736
3754
  * Send Daily Cap
3737
3755
  */
3738
- send_daily_cap: number | null;
3756
+ send_daily_cap: ({
3757
+ kind: 'fixed';
3758
+ } & FixedDailyCap) | ({
3759
+ kind: 'ramp';
3760
+ } & RampDailyCap) | null;
3761
+ /**
3762
+ * Send Daily Cap Today
3763
+ */
3764
+ send_daily_cap_today: number | null;
3739
3765
  /**
3740
3766
  * Send Gap Seconds
3741
3767
  */
@@ -4011,7 +4037,15 @@ export type EmailSendResponse = {
4011
4037
  /**
4012
4038
  * Send Daily Cap
4013
4039
  */
4014
- send_daily_cap: number | null;
4040
+ send_daily_cap: ({
4041
+ kind: 'fixed';
4042
+ } & FixedDailyCap) | ({
4043
+ kind: 'ramp';
4044
+ } & RampDailyCap) | null;
4045
+ /**
4046
+ * Send Daily Cap Today
4047
+ */
4048
+ send_daily_cap_today: number | null;
4015
4049
  /**
4016
4050
  * Send Gap Seconds
4017
4051
  */
@@ -4160,6 +4194,142 @@ export type ExpressiveDialect = {
4160
4194
  */
4161
4195
  prompt: string;
4162
4196
  };
4197
+ /**
4198
+ * FaqDefinition
4199
+ *
4200
+ * An FAQ: a named list of question/answer pairs.
4201
+ */
4202
+ export type FaqDefinition = {
4203
+ /**
4204
+ * Entries
4205
+ */
4206
+ entries?: Array<FaqEntryInput>;
4207
+ /**
4208
+ * Name
4209
+ */
4210
+ name: string;
4211
+ };
4212
+ /**
4213
+ * FaqDetail
4214
+ */
4215
+ export type FaqDetail = {
4216
+ /**
4217
+ * Created At
4218
+ */
4219
+ created_at: string;
4220
+ /**
4221
+ * Created By
4222
+ */
4223
+ created_by: string | null;
4224
+ /**
4225
+ * Entries
4226
+ */
4227
+ entries: Array<FaqEntry>;
4228
+ /**
4229
+ * Entry Count
4230
+ */
4231
+ entry_count: number;
4232
+ /**
4233
+ * Id
4234
+ */
4235
+ id: string;
4236
+ /**
4237
+ * Name
4238
+ */
4239
+ name: string;
4240
+ /**
4241
+ * Updated At
4242
+ */
4243
+ updated_at: string;
4244
+ };
4245
+ /**
4246
+ * FaqEntriesResponse
4247
+ */
4248
+ export type FaqEntriesResponse = {
4249
+ /**
4250
+ * Entries
4251
+ */
4252
+ entries: Array<FaqEntry>;
4253
+ };
4254
+ /**
4255
+ * FaqEntry
4256
+ */
4257
+ export type FaqEntry = {
4258
+ /**
4259
+ * Answer
4260
+ */
4261
+ answer: string;
4262
+ /**
4263
+ * Created At
4264
+ */
4265
+ created_at: string;
4266
+ /**
4267
+ * Id
4268
+ */
4269
+ id: string;
4270
+ /**
4271
+ * Question
4272
+ */
4273
+ question: string;
4274
+ /**
4275
+ * Updated At
4276
+ */
4277
+ updated_at: string;
4278
+ };
4279
+ /**
4280
+ * FaqEntryInput
4281
+ */
4282
+ export type FaqEntryInput = {
4283
+ /**
4284
+ * Answer
4285
+ */
4286
+ answer: string;
4287
+ /**
4288
+ * Question
4289
+ */
4290
+ question: string;
4291
+ };
4292
+ /**
4293
+ * FaqSelection
4294
+ *
4295
+ * An FAQ the agent answers from: name one with `faq_id`, or define one inline.
4296
+ */
4297
+ export type FaqSelection = {
4298
+ faq?: InlineFaq | null;
4299
+ /**
4300
+ * Faq Id
4301
+ */
4302
+ faq_id?: string | null;
4303
+ };
4304
+ /**
4305
+ * FaqSummary
4306
+ */
4307
+ export type FaqSummary = {
4308
+ /**
4309
+ * Created At
4310
+ */
4311
+ created_at: string;
4312
+ /**
4313
+ * Created By
4314
+ */
4315
+ created_by: string | null;
4316
+ /**
4317
+ * Entry Count
4318
+ */
4319
+ entry_count: number;
4320
+ /**
4321
+ * Id
4322
+ */
4323
+ id: string;
4324
+ /**
4325
+ * Name
4326
+ */
4327
+ name: string;
4328
+ /**
4329
+ * Updated At
4330
+ */
4331
+ updated_at: string;
4332
+ };
4163
4333
  /**
4164
4334
  * FieldMap
4165
4335
  *
@@ -4190,6 +4360,21 @@ export type FieldMap = {
4190
4360
  */
4191
4361
  to: string;
4192
4362
  };
4363
+ /**
4364
+ * FixedDailyCap
4365
+ *
4366
+ * The same limit every day.
4367
+ */
4368
+ export type FixedDailyCap = {
4369
+ /**
4370
+ * Kind
4371
+ */
4372
+ kind: 'fixed';
4373
+ /**
4374
+ * Limit
4375
+ */
4376
+ limit: number;
4377
+ };
4193
4378
  /**
4194
4379
  * FrontendRpcConfig
4195
4380
  */
@@ -4730,6 +4915,24 @@ export type InboundImage = {
4730
4915
  */
4731
4916
  filename?: string | null;
4732
4917
  };
4918
+ /**
4919
+ * InlineFaq
4920
+ *
4921
+ * An FAQ defined here rather than named.
4922
+ *
4923
+ * On the call endpoints it is used for that call only; on the agent and task
4924
+ * endpoints it is created as a real FAQ.
4925
+ */
4926
+ export type InlineFaq = {
4927
+ /**
4928
+ * Entries
4929
+ */
4930
+ entries: Array<FaqEntryInput>;
4931
+ /**
4932
+ * Name
4933
+ */
4934
+ name: string;
4935
+ };
4733
4936
  /**
4734
4937
  * InlineMcpServer
4735
4938
  *
@@ -5328,392 +5531,91 @@ export type ItemDeliveryUpdatedEvent = {
5328
5531
  provider_message_id: string | null;
5329
5532
  };
5330
5533
  /**
5331
- * KBDetail
5534
+ * KeypadInputSpec
5332
5535
  *
5333
- * The full single-KB view: the ToC tree + stage-specific curation data.
5536
+ * Digits the caller types, delivered as a turn the agent can answer.
5537
+ *
5538
+ * Phone and stream calls only, and only where the platform sends DTMF as an
5539
+ * event — tones inside the audio are not detected. `voice` agents only:
5540
+ * enabling it on `video` or `text` is refused.
5334
5541
  */
5335
- export type KBDetail = {
5542
+ export type KeypadInputSpec = {
5336
5543
  /**
5337
- * All Data Summary
5544
+ * Enabled
5545
+ *
5546
+ * Let the caller answer with the keypad. Each entry arrives as one labelled user turn, and the first keypress interrupts whatever the agent is saying.
5338
5547
  */
5339
- all_data_summary?: string | null;
5548
+ enabled?: boolean;
5340
5549
  /**
5341
- * Created At
5550
+ * Terminator
5551
+ *
5552
+ * The key that ends an entry. It is not part of the entry, and pressing it on nothing is ignored. Empty means only the quiet timer ends one.
5342
5553
  */
5343
- created_at: string;
5554
+ terminator?: '#' | '*' | '';
5344
5555
  /**
5345
- * Created By
5556
+ * Timeout
5557
+ *
5558
+ * Seconds of quiet before an entry is taken as finished. 0 waits for the terminator however long it takes.
5346
5559
  */
5347
- created_by?: string | null;
5560
+ timeout?: number;
5561
+ };
5562
+ /**
5563
+ * KeypadInputSpecOverride
5564
+ *
5565
+ * A partial KeypadInputSpec: only the fields this call changes. Absent keeps the base value, an explicit null clears it, objects deep-merge and lists replace.
5566
+ */
5567
+ export type KeypadInputSpecOverride = {
5348
5568
  /**
5349
- * Discovered
5569
+ * Enabled
5570
+ *
5571
+ * Let the caller answer with the keypad. Each entry arrives as one labelled user turn, and the first keypress interrupts whatever the agent is saying.
5350
5572
  */
5351
- discovered?: Array<string> | null;
5573
+ enabled?: boolean | null;
5352
5574
  /**
5353
- * Error
5575
+ * Terminator
5576
+ *
5577
+ * The key that ends an entry. It is not part of the entry, and pressing it on nothing is ignored. Empty means only the quiet timer ends one.
5354
5578
  */
5355
- error?: string | null;
5579
+ terminator?: '#' | '*' | '' | null;
5356
5580
  /**
5357
- * Id
5581
+ * Timeout
5582
+ *
5583
+ * Seconds of quiet before an entry is taken as finished. 0 waits for the terminator however long it takes.
5358
5584
  */
5359
- id: string;
5585
+ timeout?: number | null;
5586
+ };
5587
+ /**
5588
+ * LLMCatalogEntryResponse
5589
+ */
5590
+ export type LLMCatalogEntryResponse = {
5360
5591
  /**
5361
- * Max Pages
5592
+ * Base Url
5362
5593
  */
5363
- max_pages?: number;
5594
+ base_url: string | null;
5364
5595
  /**
5365
- * Name
5596
+ * Builtin Tools
5366
5597
  */
5367
- name: string;
5598
+ builtin_tools: Array<BuiltinTool>;
5368
5599
  /**
5369
- * Node Count
5600
+ * Channel
5370
5601
  */
5371
- node_count?: number | null;
5602
+ channel: Array<string>;
5372
5603
  /**
5373
- * Notes
5604
+ * Context Length
5374
5605
  */
5375
- notes?: string;
5606
+ context_length: number | null;
5376
5607
  /**
5377
- * Parents
5608
+ * Label
5378
5609
  */
5379
- parents?: {
5380
- [key: string]: string | null;
5381
- } | null;
5382
- progress?: KbProgress;
5610
+ label: string | null;
5383
5611
  /**
5384
- * Seeds
5612
+ * Logo Url
5385
5613
  */
5386
- seeds?: Array<string>;
5614
+ logo_url: string | null;
5387
5615
  /**
5388
- * Status
5616
+ * Model
5389
5617
  */
5390
- status: 'discovering' | 'review' | 'transcribing' | 'generating' | 'ready' | 'error';
5391
- /**
5392
- * Tree
5393
- */
5394
- tree?: Array<KbTreeNode> | null;
5395
- /**
5396
- * Unplaced
5397
- */
5398
- unplaced?: Array<string> | null;
5399
- /**
5400
- * Updated At
5401
- */
5402
- updated_at: string;
5403
- /**
5404
- * Url Count
5405
- */
5406
- url_count?: number | null;
5407
- };
5408
- /**
5409
- * KBPageResponse
5410
- */
5411
- export type KBPageResponse = {
5412
- /**
5413
- * Content Len
5414
- */
5415
- content_len: number;
5416
- /**
5417
- * Error
5418
- */
5419
- error?: string | null;
5420
- /**
5421
- * Kind
5422
- */
5423
- kind?: string | null;
5424
- /**
5425
- * Parent Url
5426
- */
5427
- parent_url?: string | null;
5428
- /**
5429
- * Status
5430
- */
5431
- status: string;
5432
- /**
5433
- * Summary
5434
- */
5435
- summary?: string | null;
5436
- /**
5437
- * Title
5438
- */
5439
- title?: string | null;
5440
- /**
5441
- * Updated At
5442
- */
5443
- updated_at: string;
5444
- /**
5445
- * Url
5446
- */
5447
- url: string;
5448
- };
5449
- /**
5450
- * KBSummary
5451
- *
5452
- * The KB header — what the list view needs (no tree / curation detail).
5453
- */
5454
- export type KBSummary = {
5455
- /**
5456
- * Created At
5457
- */
5458
- created_at: string;
5459
- /**
5460
- * Created By
5461
- */
5462
- created_by?: string | null;
5463
- /**
5464
- * Error
5465
- */
5466
- error?: string | null;
5467
- /**
5468
- * Id
5469
- */
5470
- id: string;
5471
- /**
5472
- * Name
5473
- */
5474
- name: string;
5475
- /**
5476
- * Node Count
5477
- */
5478
- node_count?: number | null;
5479
- progress?: KbProgress;
5480
- /**
5481
- * Seeds
5482
- */
5483
- seeds?: Array<string>;
5484
- /**
5485
- * Status
5486
- */
5487
- status: 'discovering' | 'review' | 'transcribing' | 'generating' | 'ready' | 'error';
5488
- /**
5489
- * Updated At
5490
- */
5491
- updated_at: string;
5492
- /**
5493
- * Url Count
5494
- */
5495
- url_count?: number | null;
5496
- };
5497
- /**
5498
- * KbProgress
5499
- *
5500
- * Build-stage progress written to knowledge_bases.progress JSONB.
5501
- */
5502
- export type KbProgress = {
5503
- /**
5504
- * Done
5505
- */
5506
- done: number | null;
5507
- /**
5508
- * Failed
5509
- */
5510
- failed: number | null;
5511
- /**
5512
- * Message
5513
- */
5514
- message: string | null;
5515
- /**
5516
- * Phase
5517
- */
5518
- phase: string;
5519
- /**
5520
- * Total
5521
- */
5522
- total: number | null;
5523
- };
5524
- /**
5525
- * KbProgressEvent
5526
- *
5527
- * One step of the running build. Purely advisory — the canonical progress
5528
- * is on the knowledge base itself, which `get_kb` returns.
5529
- */
5530
- export type KbProgressEvent = {
5531
- /**
5532
- * Done
5533
- */
5534
- done: number | null;
5535
- /**
5536
- * Event
5537
- */
5538
- event: 'progress';
5539
- /**
5540
- * Failed
5541
- */
5542
- failed: number | null;
5543
- /**
5544
- * Message
5545
- */
5546
- message: string | null;
5547
- /**
5548
- * Phase
5549
- */
5550
- phase: string;
5551
- /**
5552
- * Total
5553
- */
5554
- total: number | null;
5555
- };
5556
- /**
5557
- * KbSnapshotEvent
5558
- *
5559
- * Where the build stands. First frame, and again on every reconnect.
5560
- */
5561
- export type KbSnapshotEvent = {
5562
- /**
5563
- * Error
5564
- */
5565
- error: string | null;
5566
- /**
5567
- * Event
5568
- */
5569
- event: 'snapshot';
5570
- progress: KbProgress;
5571
- /**
5572
- * Status
5573
- */
5574
- status: string;
5575
- };
5576
- /**
5577
- * KbStatusEvent
5578
- *
5579
- * The build reached a new state. `error` is set only when `status` is
5580
- * `error`, and says what stopped it.
5581
- */
5582
- export type KbStatusEvent = {
5583
- /**
5584
- * Error
5585
- */
5586
- error: string | null;
5587
- /**
5588
- * Event
5589
- */
5590
- event: 'status';
5591
- /**
5592
- * Status
5593
- */
5594
- status: 'discovering' | 'review' | 'transcribing' | 'generating' | 'ready' | 'error';
5595
- };
5596
- /**
5597
- * KbTreeNode
5598
- *
5599
- * One ToC node in the dashboard tree (content omitted; has_content flag only).
5600
- */
5601
- export type KbTreeNode = {
5602
- /**
5603
- * Children
5604
- */
5605
- children?: Array<KbTreeNode>;
5606
- /**
5607
- * Has Content
5608
- */
5609
- has_content?: boolean;
5610
- /**
5611
- * Id
5612
- */
5613
- id: string;
5614
- /**
5615
- * Kind
5616
- */
5617
- kind?: string | null;
5618
- /**
5619
- * Source Url
5620
- */
5621
- source_url?: string | null;
5622
- /**
5623
- * Summary
5624
- */
5625
- summary?: string | null;
5626
- /**
5627
- * Title
5628
- */
5629
- title?: string | null;
5630
- };
5631
- /**
5632
- * KeypadInputSpec
5633
- *
5634
- * Digits the caller types, delivered as a turn the agent can answer.
5635
- *
5636
- * Phone and stream calls only, and only where the platform sends DTMF as an
5637
- * event — tones inside the audio are not detected. `voice` agents only:
5638
- * enabling it on `video` or `text` is refused.
5639
- */
5640
- export type KeypadInputSpec = {
5641
- /**
5642
- * Enabled
5643
- *
5644
- * Let the caller answer with the keypad. Each entry arrives as one labelled user turn, and the first keypress interrupts whatever the agent is saying.
5645
- */
5646
- enabled?: boolean;
5647
- /**
5648
- * Terminator
5649
- *
5650
- * The key that ends an entry. It is not part of the entry, and pressing it on nothing is ignored. Empty means only the quiet timer ends one.
5651
- */
5652
- terminator?: '#' | '*' | '';
5653
- /**
5654
- * Timeout
5655
- *
5656
- * Seconds of quiet before an entry is taken as finished. 0 waits for the terminator however long it takes.
5657
- */
5658
- timeout?: number;
5659
- };
5660
- /**
5661
- * KeypadInputSpecOverride
5662
- *
5663
- * A partial KeypadInputSpec: only the fields this call changes. Absent keeps the base value, an explicit null clears it, objects deep-merge and lists replace.
5664
- */
5665
- export type KeypadInputSpecOverride = {
5666
- /**
5667
- * Enabled
5668
- *
5669
- * Let the caller answer with the keypad. Each entry arrives as one labelled user turn, and the first keypress interrupts whatever the agent is saying.
5670
- */
5671
- enabled?: boolean | null;
5672
- /**
5673
- * Terminator
5674
- *
5675
- * The key that ends an entry. It is not part of the entry, and pressing it on nothing is ignored. Empty means only the quiet timer ends one.
5676
- */
5677
- terminator?: '#' | '*' | '' | null;
5678
- /**
5679
- * Timeout
5680
- *
5681
- * Seconds of quiet before an entry is taken as finished. 0 waits for the terminator however long it takes.
5682
- */
5683
- timeout?: number | null;
5684
- };
5685
- /**
5686
- * LLMCatalogEntryResponse
5687
- */
5688
- export type LLMCatalogEntryResponse = {
5689
- /**
5690
- * Base Url
5691
- */
5692
- base_url: string | null;
5693
- /**
5694
- * Builtin Tools
5695
- */
5696
- builtin_tools: Array<BuiltinTool>;
5697
- /**
5698
- * Channel
5699
- */
5700
- channel: Array<string>;
5701
- /**
5702
- * Context Length
5703
- */
5704
- context_length: number | null;
5705
- /**
5706
- * Label
5707
- */
5708
- label: string | null;
5709
- /**
5710
- * Logo Url
5711
- */
5712
- logo_url: string | null;
5713
- /**
5714
- * Model
5715
- */
5716
- model: string;
5618
+ model: string;
5717
5619
  /**
5718
5620
  * Note
5719
5621
  */
@@ -6224,39 +6126,6 @@ export type ModelRegistryHealth = {
6224
6126
  */
6225
6127
  models: number;
6226
6128
  };
6227
- /**
6228
- * NodeContentResponse
6229
- */
6230
- export type NodeContentResponse = {
6231
- /**
6232
- * Content
6233
- */
6234
- content: string;
6235
- /**
6236
- * Id
6237
- */
6238
- id: string;
6239
- /**
6240
- * Kind
6241
- */
6242
- kind?: string | null;
6243
- /**
6244
- * Source Url
6245
- */
6246
- source_url?: string | null;
6247
- /**
6248
- * Summary
6249
- */
6250
- summary?: string | null;
6251
- /**
6252
- * Title
6253
- */
6254
- title?: string | null;
6255
- /**
6256
- * Version
6257
- */
6258
- version?: number;
6259
- };
6260
6129
  /**
6261
6130
  * NoiseCancellationCatalogEntryResponse
6262
6131
  */
@@ -7301,30 +7170,9 @@ export type PageEmailSendResponse = {
7301
7170
  offset: number;
7302
7171
  };
7303
7172
  /**
7304
- * Page[IntegrationCatalogItem]
7305
- */
7306
- export type PageIntegrationCatalogItem = {
7307
- /**
7308
- * Has More
7309
- */
7310
- has_more: boolean;
7311
- /**
7312
- * Items
7313
- */
7314
- items: Array<IntegrationCatalogItem>;
7315
- /**
7316
- * Limit
7317
- */
7318
- limit: number;
7319
- /**
7320
- * Offset
7321
- */
7322
- offset: number;
7323
- };
7324
- /**
7325
- * Page[IntegrationResponse]
7173
+ * Page[FaqSummary]
7326
7174
  */
7327
- export type PageIntegrationResponse = {
7175
+ export type PageFaqSummary = {
7328
7176
  /**
7329
7177
  * Has More
7330
7178
  */
@@ -7332,7 +7180,7 @@ export type PageIntegrationResponse = {
7332
7180
  /**
7333
7181
  * Items
7334
7182
  */
7335
- items: Array<IntegrationResponse>;
7183
+ items: Array<FaqSummary>;
7336
7184
  /**
7337
7185
  * Limit
7338
7186
  */
@@ -7343,9 +7191,9 @@ export type PageIntegrationResponse = {
7343
7191
  offset: number;
7344
7192
  };
7345
7193
  /**
7346
- * Page[IntegrationTriggerResponse]
7194
+ * Page[IntegrationCatalogItem]
7347
7195
  */
7348
- export type PageIntegrationTriggerResponse = {
7196
+ export type PageIntegrationCatalogItem = {
7349
7197
  /**
7350
7198
  * Has More
7351
7199
  */
@@ -7353,7 +7201,7 @@ export type PageIntegrationTriggerResponse = {
7353
7201
  /**
7354
7202
  * Items
7355
7203
  */
7356
- items: Array<IntegrationTriggerResponse>;
7204
+ items: Array<IntegrationCatalogItem>;
7357
7205
  /**
7358
7206
  * Limit
7359
7207
  */
@@ -7364,9 +7212,9 @@ export type PageIntegrationTriggerResponse = {
7364
7212
  offset: number;
7365
7213
  };
7366
7214
  /**
7367
- * Page[KBPageResponse]
7215
+ * Page[IntegrationResponse]
7368
7216
  */
7369
- export type PageKBPageResponse = {
7217
+ export type PageIntegrationResponse = {
7370
7218
  /**
7371
7219
  * Has More
7372
7220
  */
@@ -7374,7 +7222,7 @@ export type PageKBPageResponse = {
7374
7222
  /**
7375
7223
  * Items
7376
7224
  */
7377
- items: Array<KBPageResponse>;
7225
+ items: Array<IntegrationResponse>;
7378
7226
  /**
7379
7227
  * Limit
7380
7228
  */
@@ -7385,9 +7233,9 @@ export type PageKBPageResponse = {
7385
7233
  offset: number;
7386
7234
  };
7387
7235
  /**
7388
- * Page[KBSummary]
7236
+ * Page[IntegrationTriggerResponse]
7389
7237
  */
7390
- export type PageKBSummary = {
7238
+ export type PageIntegrationTriggerResponse = {
7391
7239
  /**
7392
7240
  * Has More
7393
7241
  */
@@ -7395,7 +7243,7 @@ export type PageKBSummary = {
7395
7243
  /**
7396
7244
  * Items
7397
7245
  */
7398
- items: Array<KBSummary>;
7246
+ items: Array<IntegrationTriggerResponse>;
7399
7247
  /**
7400
7248
  * Limit
7401
7249
  */
@@ -7662,8 +7510,9 @@ export type PageWhatsAppRecipientResponse = {
7662
7510
  *
7663
7511
  * Policy edits, allowed while a batch is `scheduled`, `running`, `paused` or `completed`.
7664
7512
  *
7665
- * ``calling_window`` and ``start_at`` accept an explicit ``null`` to *clear*
7666
- * them — "dial at any hour", "start on the next pass" — which is why the
7513
+ * ``calling_window``, ``start_at`` and ``dial_daily_cap`` accept an explicit
7514
+ * ``null`` to *clear* them — "dial at any hour", "start on the next pass", "no
7515
+ * daily limit" — which is why the
7667
7516
  * service reads ``model_fields_set`` rather than treating absent and null the
7668
7517
  * same way. Every other field keeps the usual PATCH rule: absent means
7669
7518
  * unchanged.
@@ -7674,6 +7523,18 @@ export type PatchCallBatchRequest = {
7674
7523
  */
7675
7524
  agent_id?: string | null;
7676
7525
  calling_window?: TimeWindow | null;
7526
+ /**
7527
+ * Dial Daily Cap
7528
+ */
7529
+ dial_daily_cap?: ({
7530
+ kind: 'fixed';
7531
+ } & FixedDailyCap) | ({
7532
+ kind: 'ramp';
7533
+ } & RampDailyCap) | null;
7534
+ /**
7535
+ * Dial Gap Seconds
7536
+ */
7537
+ dial_gap_seconds?: number | null;
7677
7538
  /**
7678
7539
  * From Phone Number Id
7679
7540
  */
@@ -7784,7 +7645,11 @@ export type PatchEmailBatchRequest = {
7784
7645
  /**
7785
7646
  * Send Daily Cap
7786
7647
  */
7787
- send_daily_cap?: number | null;
7648
+ send_daily_cap?: ({
7649
+ kind: 'fixed';
7650
+ } & FixedDailyCap) | ({
7651
+ kind: 'ramp';
7652
+ } & RampDailyCap) | null;
7788
7653
  /**
7789
7654
  * Send Gap Seconds
7790
7655
  */
@@ -7839,7 +7704,11 @@ export type PatchEmailSendRequest = {
7839
7704
  /**
7840
7705
  * Send Daily Cap
7841
7706
  */
7842
- send_daily_cap?: number | null;
7707
+ send_daily_cap?: ({
7708
+ kind: 'fixed';
7709
+ } & FixedDailyCap) | ({
7710
+ kind: 'ramp';
7711
+ } & RampDailyCap) | null;
7843
7712
  /**
7844
7713
  * Send Gap Seconds
7845
7714
  */
@@ -7942,27 +7811,6 @@ export type PatchIntegrationTriggerRequest = {
7942
7811
  */
7943
7812
  trigger_type?: 'telegram.message.inbound' | 'whatsapp.message.inbound' | 'whatsapp.call.inbound' | null;
7944
7813
  };
7945
- /**
7946
- * PatchNodeRequest
7947
- */
7948
- export type PatchNodeRequest = {
7949
- /**
7950
- * Content
7951
- */
7952
- content?: string | null;
7953
- /**
7954
- * Summary
7955
- */
7956
- summary?: string | null;
7957
- /**
7958
- * Title
7959
- */
7960
- title?: string | null;
7961
- /**
7962
- * Version
7963
- */
7964
- version?: number | null;
7965
- };
7966
7814
  /**
7967
7815
  * PatchPhoneNumberRequest
7968
7816
  */
@@ -8114,9 +7962,13 @@ export type PatchWhatsAppBatchRequest = {
8114
7962
  /**
8115
7963
  * Send Daily Cap
8116
7964
  *
8117
- * Messages per local day. Null is uncapped.
7965
+ * Messages per local day: a fixed limit, or a ramp that rises on days it sent. Null is uncapped.
8118
7966
  */
8119
- send_daily_cap?: number | null;
7967
+ send_daily_cap?: ({
7968
+ kind: 'fixed';
7969
+ } & FixedDailyCap) | ({
7970
+ kind: 'ramp';
7971
+ } & RampDailyCap) | null;
8120
7972
  /**
8121
7973
  * Send Gap Seconds
8122
7974
  */
@@ -8429,23 +8281,6 @@ export type PriorityTier = {
8429
8281
  */
8430
8282
  value?: string;
8431
8283
  };
8432
- /**
8433
- * PromptResponse
8434
- */
8435
- export type PromptResponse = {
8436
- /**
8437
- * Chars
8438
- */
8439
- chars: number;
8440
- /**
8441
- * Node Count
8442
- */
8443
- node_count: number;
8444
- /**
8445
- * Prompt
8446
- */
8447
- prompt: string;
8448
- };
8449
8284
  /**
8450
8285
  * ProviderEntryResponse
8451
8286
  */
@@ -8512,7 +8347,7 @@ export type ProviderKeysResponse = {
8512
8347
  /**
8513
8348
  * PublicMessage
8514
8349
  *
8515
- * Dashboard SSE/message payload for one CoPilot / KB Builder timeline row.
8350
+ * Dashboard SSE/message payload for one CoPilot timeline row.
8516
8351
  */
8517
8352
  export type PublicMessage = {
8518
8353
  /**
@@ -8662,6 +8497,33 @@ export type PublishedValueResponse = {
8662
8497
  */
8663
8498
  value?: unknown;
8664
8499
  };
8500
+ /**
8501
+ * RampDailyCap
8502
+ *
8503
+ * `start` a day, raised by `step` every `interval_days` sending days, up to `end`.
8504
+ */
8505
+ export type RampDailyCap = {
8506
+ /**
8507
+ * End
8508
+ */
8509
+ end: number;
8510
+ /**
8511
+ * Interval Days
8512
+ */
8513
+ interval_days: number;
8514
+ /**
8515
+ * Kind
8516
+ */
8517
+ kind: 'ramp';
8518
+ /**
8519
+ * Start
8520
+ */
8521
+ start: number;
8522
+ /**
8523
+ * Step
8524
+ */
8525
+ step: number;
8526
+ };
8665
8527
  /**
8666
8528
  * RealtimeCatalogEntryResponse
8667
8529
  */
@@ -9730,9 +9592,13 @@ export type SendWhatsAppBatchRequest = {
9730
9592
  /**
9731
9593
  * Send Daily Cap
9732
9594
  *
9733
- * Messages per local day. Null is uncapped.
9595
+ * Messages per local day: a fixed limit, or a ramp that rises on days it sent. Null is uncapped.
9734
9596
  */
9735
- send_daily_cap?: number | null;
9597
+ send_daily_cap?: ({
9598
+ kind: 'fixed';
9599
+ } & FixedDailyCap) | ({
9600
+ kind: 'ramp';
9601
+ } & RampDailyCap) | null;
9736
9602
  /**
9737
9603
  * Send Gap Seconds
9738
9604
  */
@@ -10517,17 +10383,17 @@ export type TTSUsageResponse = {
10517
10383
  */
10518
10384
  export type TaskConfig = {
10519
10385
  /**
10520
- * Finish Without Result Description
10386
+ * Faqs
10521
10387
  *
10522
- * Description of `finish_without_result`, the tool that abandons a task an agent entered. Narrow it if the task gives up too readily. Unused by a standalone run.
10388
+ * FAQs the agent answers from: questions go in the prompt, answers are fetched on demand.
10523
10389
  */
10524
- finish_without_result_description?: string;
10390
+ faqs?: Array<FaqSelection>;
10525
10391
  /**
10526
- * Kb Ids
10392
+ * Finish Without Result Description
10527
10393
  *
10528
- * Knowledge bases to read from: their outline goes into the prompt and pages are fetched on demand.
10394
+ * Description of `finish_without_result`, the tool that abandons a task an agent entered. Narrow it if the task gives up too readily. Unused by a standalone run.
10529
10395
  */
10530
- kb_ids?: Array<string>;
10396
+ finish_without_result_description?: string;
10531
10397
  llm?: LLMSpec;
10532
10398
  /**
10533
10399
  * Max Steps
@@ -10633,17 +10499,17 @@ export type TaskOutputField = {
10633
10499
  */
10634
10500
  export type TaskPatch = {
10635
10501
  /**
10636
- * Finish Without Result Description
10502
+ * Faqs
10637
10503
  *
10638
- * Description of `finish_without_result`, the tool that abandons a task an agent entered. Narrow it if the task gives up too readily. Unused by a standalone run.
10504
+ * FAQs the agent answers from: questions go in the prompt, answers are fetched on demand.
10639
10505
  */
10640
- finish_without_result_description?: string | null;
10506
+ faqs?: Array<FaqSelection> | null;
10641
10507
  /**
10642
- * Kb Ids
10508
+ * Finish Without Result Description
10643
10509
  *
10644
- * Knowledge bases to read from: their outline goes into the prompt and pages are fetched on demand.
10510
+ * Description of `finish_without_result`, the tool that abandons a task an agent entered. Narrow it if the task gives up too readily. Unused by a standalone run.
10645
10511
  */
10646
- kb_ids?: Array<string> | null;
10512
+ finish_without_result_description?: string | null;
10647
10513
  llm?: LLMSpecOverride | null;
10648
10514
  /**
10649
10515
  * Max Steps
@@ -11204,19 +11070,6 @@ export type TimeWindow = {
11204
11070
  */
11205
11071
  start: string;
11206
11072
  };
11207
- /**
11208
- * TocResultResponse
11209
- */
11210
- export type TocResultResponse = {
11211
- /**
11212
- * Ok
11213
- */
11214
- ok?: boolean;
11215
- /**
11216
- * Pages
11217
- */
11218
- pages: number;
11219
- };
11220
11073
  /**
11221
11074
  * TokenRequest
11222
11075
  *
@@ -11669,7 +11522,7 @@ export type TurnMetrics = {
11669
11522
  /**
11670
11523
  * TurnPayload
11671
11524
  *
11672
- * Shared turn lifecycle for tenant conversation, CoPilot, and KB Builder SSE.
11525
+ * Shared turn lifecycle for tenant conversation and CoPilot SSE.
11673
11526
  *
11674
11527
  * The `event` field is the discriminator every SSE payload on this API carries:
11675
11528
  * it repeats the frame's `event:` line inside the JSON, so a generated client
@@ -11746,18 +11599,40 @@ export type TwilioSendersRequest = {
11746
11599
  */
11747
11600
  export type TwilioSendersResponse = {
11748
11601
  /**
11749
- * Senders
11602
+ * Senders
11603
+ */
11604
+ senders: Array<TwilioSender>;
11605
+ };
11606
+ /**
11607
+ * UpdateAgentRequest
11608
+ */
11609
+ export type UpdateAgentRequest = {
11610
+ /**
11611
+ * Only the fields to change.
11612
+ */
11613
+ config: AgentOverride;
11614
+ };
11615
+ /**
11616
+ * UpdateFaqEntryRequest
11617
+ */
11618
+ export type UpdateFaqEntryRequest = {
11619
+ /**
11620
+ * Answer
11750
11621
  */
11751
- senders: Array<TwilioSender>;
11622
+ answer?: string | null;
11623
+ /**
11624
+ * Question
11625
+ */
11626
+ question?: string | null;
11752
11627
  };
11753
11628
  /**
11754
- * UpdateAgentRequest
11629
+ * UpdateFaqRequest
11755
11630
  */
11756
- export type UpdateAgentRequest = {
11631
+ export type UpdateFaqRequest = {
11757
11632
  /**
11758
- * Only the fields to change.
11633
+ * Name
11759
11634
  */
11760
- config: AgentOverride;
11635
+ name: string;
11761
11636
  };
11762
11637
  /**
11763
11638
  * UsageResponse
@@ -12255,7 +12130,15 @@ export type WhatsAppBatchResponse = {
12255
12130
  /**
12256
12131
  * Send Daily Cap
12257
12132
  */
12258
- send_daily_cap: number | null;
12133
+ send_daily_cap: ({
12134
+ kind: 'fixed';
12135
+ } & FixedDailyCap) | ({
12136
+ kind: 'ramp';
12137
+ } & RampDailyCap) | null;
12138
+ /**
12139
+ * Send Daily Cap Today
12140
+ */
12141
+ send_daily_cap_today: number | null;
12259
12142
  /**
12260
12143
  * Send Gap Seconds
12261
12144
  */
@@ -15419,100 +15302,6 @@ export type CopilotAgentsStreamResults = {
15419
15302
  } & TurnPayload);
15420
15303
  };
15421
15304
  export type CopilotAgentsStreamResult = CopilotAgentsStreamResults[keyof CopilotAgentsStreamResults];
15422
- export type CopilotKnowledgeSendData = {
15423
- body: SendMessageRequest;
15424
- path: {
15425
- /**
15426
- * Kb Id
15427
- */
15428
- kb_id: string;
15429
- };
15430
- query?: never;
15431
- url: '/v1/copilot/knowledge/{kb_id}/messages';
15432
- };
15433
- export type CopilotKnowledgeSendErrors = {
15434
- /**
15435
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15436
- */
15437
- 400: ErrorResponse;
15438
- /**
15439
- * Missing credential, or one that is revoked or no longer a member of this organization.
15440
- */
15441
- 401: ErrorResponse;
15442
- /**
15443
- * Authenticated, but this organization role may not perform the operation.
15444
- */
15445
- 403: ErrorResponse;
15446
- /**
15447
- * No such resource in this organization.
15448
- */
15449
- 404: ErrorResponse;
15450
- /**
15451
- * The resource's current state forbids this — a name already taken, a job already running.
15452
- */
15453
- 409: ErrorResponse;
15454
- /**
15455
- * The request did not match this operation's schema; `detail.errors` lists each field.
15456
- */
15457
- 422: ErrorResponse;
15458
- /**
15459
- * Unexpected error. Every error this API returns carries this body.
15460
- */
15461
- default: ErrorResponse;
15462
- };
15463
- export type CopilotKnowledgeSendError = CopilotKnowledgeSendErrors[keyof CopilotKnowledgeSendErrors];
15464
- export type CopilotKnowledgeSendResults = {
15465
- /**
15466
- * Successful Response
15467
- */
15468
- 200: SendMessageResponse;
15469
- };
15470
- export type CopilotKnowledgeSendResult = CopilotKnowledgeSendResults[keyof CopilotKnowledgeSendResults];
15471
- export type CopilotKnowledgeStreamData = {
15472
- body?: never;
15473
- path: {
15474
- /**
15475
- * Kb Id
15476
- */
15477
- kb_id: string;
15478
- };
15479
- query?: never;
15480
- url: '/v1/copilot/knowledge/{kb_id}/stream';
15481
- };
15482
- export type CopilotKnowledgeStreamErrors = {
15483
- /**
15484
- * Missing credential, or one that is revoked or no longer a member of this organization.
15485
- */
15486
- 401: ErrorResponse;
15487
- /**
15488
- * No such resource in this organization.
15489
- */
15490
- 404: ErrorResponse;
15491
- /**
15492
- * The request did not match this operation's schema; `detail.errors` lists each field.
15493
- */
15494
- 422: ErrorResponse;
15495
- /**
15496
- * Unexpected error. Every error this API returns carries this body.
15497
- */
15498
- default: ErrorResponse;
15499
- };
15500
- export type CopilotKnowledgeStreamError = CopilotKnowledgeStreamErrors[keyof CopilotKnowledgeStreamErrors];
15501
- export type CopilotKnowledgeStreamResults = {
15502
- /**
15503
- * Response 200 Copilot.Knowledge.Stream
15504
- *
15505
- * A `text/event-stream` that stays open. Each frame is `event: <name>` followed by `data: <json>`, and the JSON repeats the name in its `event` field so one value identifies the frame. A line starting `:` is a keep-alive, sent every 15s so idle proxies do not close the connection. Read it with an SSE client (`EventSource`, `httpx-sse`) — the body is never a single JSON document.
15506
- */
15507
- 200: ({
15508
- event: 'snapshot';
15509
- } & CopilotSnapshotEvent) | ({
15510
- event: 'message';
15511
- } & CopilotMessageEvent) | ({
15512
- event: 'turn';
15513
- } & TurnPayload);
15514
- };
15515
- export type CopilotKnowledgeStreamResult = CopilotKnowledgeStreamResults[keyof CopilotKnowledgeStreamResults];
15516
15305
  export type CopilotTasksSendData = {
15517
15306
  body: SendMessageRequest;
15518
15307
  path: {
@@ -16746,7 +16535,7 @@ export type EmailSendersListResults = {
16746
16535
  200: VerifiedSendersResponse;
16747
16536
  };
16748
16537
  export type EmailSendersListResult = EmailSendersListResults[keyof EmailSendersListResults];
16749
- export type IntegrationsListData = {
16538
+ export type FaqsListData = {
16750
16539
  body?: never;
16751
16540
  path?: never;
16752
16541
  query?: {
@@ -16759,9 +16548,9 @@ export type IntegrationsListData = {
16759
16548
  */
16760
16549
  offset?: number;
16761
16550
  };
16762
- url: '/v1/integrations';
16551
+ url: '/v1/faqs';
16763
16552
  };
16764
- export type IntegrationsListErrors = {
16553
+ export type FaqsListErrors = {
16765
16554
  /**
16766
16555
  * Missing credential, or one that is revoked or no longer a member of this organization.
16767
16556
  */
@@ -16775,21 +16564,21 @@ export type IntegrationsListErrors = {
16775
16564
  */
16776
16565
  default: ErrorResponse;
16777
16566
  };
16778
- export type IntegrationsListError = IntegrationsListErrors[keyof IntegrationsListErrors];
16779
- export type IntegrationsListResults = {
16567
+ export type FaqsListError = FaqsListErrors[keyof FaqsListErrors];
16568
+ export type FaqsListResults = {
16780
16569
  /**
16781
16570
  * Successful Response
16782
16571
  */
16783
- 200: PageIntegrationResponse;
16572
+ 200: PageFaqSummary;
16784
16573
  };
16785
- export type IntegrationsListResult = IntegrationsListResults[keyof IntegrationsListResults];
16786
- export type IntegrationsCreateData = {
16787
- body: CreateIntegrationRequest;
16574
+ export type FaqsListResult = FaqsListResults[keyof FaqsListResults];
16575
+ export type FaqsCreateData = {
16576
+ body: FaqDefinition;
16788
16577
  path?: never;
16789
16578
  query?: never;
16790
- url: '/v1/integrations';
16579
+ url: '/v1/faqs';
16791
16580
  };
16792
- export type IntegrationsCreateErrors = {
16581
+ export type FaqsCreateErrors = {
16793
16582
  /**
16794
16583
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16795
16584
  */
@@ -16815,63 +16604,26 @@ export type IntegrationsCreateErrors = {
16815
16604
  */
16816
16605
  default: ErrorResponse;
16817
16606
  };
16818
- export type IntegrationsCreateError = IntegrationsCreateErrors[keyof IntegrationsCreateErrors];
16819
- export type IntegrationsCreateResults = {
16820
- /**
16821
- * Successful Response
16822
- */
16823
- 201: IntegrationResponse;
16824
- };
16825
- export type IntegrationsCreateResult = IntegrationsCreateResults[keyof IntegrationsCreateResults];
16826
- export type IntegrationsCatalogData = {
16827
- body?: never;
16828
- path?: never;
16829
- query?: {
16830
- /**
16831
- * Limit
16832
- */
16833
- limit?: number;
16834
- /**
16835
- * Offset
16836
- */
16837
- offset?: number;
16838
- };
16839
- url: '/v1/integrations/catalog';
16840
- };
16841
- export type IntegrationsCatalogErrors = {
16842
- /**
16843
- * Missing credential, or one that is revoked or no longer a member of this organization.
16844
- */
16845
- 401: ErrorResponse;
16846
- /**
16847
- * The request did not match this operation's schema; `detail.errors` lists each field.
16848
- */
16849
- 422: ErrorResponse;
16850
- /**
16851
- * Unexpected error. Every error this API returns carries this body.
16852
- */
16853
- default: ErrorResponse;
16854
- };
16855
- export type IntegrationsCatalogError = IntegrationsCatalogErrors[keyof IntegrationsCatalogErrors];
16856
- export type IntegrationsCatalogResults = {
16607
+ export type FaqsCreateError = FaqsCreateErrors[keyof FaqsCreateErrors];
16608
+ export type FaqsCreateResults = {
16857
16609
  /**
16858
16610
  * Successful Response
16859
16611
  */
16860
- 200: PageIntegrationCatalogItem;
16612
+ 201: FaqDetail;
16861
16613
  };
16862
- export type IntegrationsCatalogResult = IntegrationsCatalogResults[keyof IntegrationsCatalogResults];
16863
- export type IntegrationsDeleteData = {
16614
+ export type FaqsCreateResult = FaqsCreateResults[keyof FaqsCreateResults];
16615
+ export type FaqsDeleteData = {
16864
16616
  body?: never;
16865
16617
  path: {
16866
16618
  /**
16867
- * Integration Id
16619
+ * Faq Id
16868
16620
  */
16869
- integration_id: string;
16621
+ faq_id: string;
16870
16622
  };
16871
16623
  query?: never;
16872
- url: '/v1/integrations/{integration_id}';
16624
+ url: '/v1/faqs/{faq_id}';
16873
16625
  };
16874
- export type IntegrationsDeleteErrors = {
16626
+ export type FaqsDeleteErrors = {
16875
16627
  /**
16876
16628
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16877
16629
  */
@@ -16901,26 +16653,26 @@ export type IntegrationsDeleteErrors = {
16901
16653
  */
16902
16654
  default: ErrorResponse;
16903
16655
  };
16904
- export type IntegrationsDeleteError = IntegrationsDeleteErrors[keyof IntegrationsDeleteErrors];
16905
- export type IntegrationsDeleteResults = {
16656
+ export type FaqsDeleteError = FaqsDeleteErrors[keyof FaqsDeleteErrors];
16657
+ export type FaqsDeleteResults = {
16906
16658
  /**
16907
16659
  * Successful Response
16908
16660
  */
16909
16661
  200: OkResponse;
16910
16662
  };
16911
- export type IntegrationsDeleteResult = IntegrationsDeleteResults[keyof IntegrationsDeleteResults];
16912
- export type IntegrationsGetData = {
16663
+ export type FaqsDeleteResult = FaqsDeleteResults[keyof FaqsDeleteResults];
16664
+ export type FaqsGetData = {
16913
16665
  body?: never;
16914
16666
  path: {
16915
16667
  /**
16916
- * Integration Id
16668
+ * Faq Id
16917
16669
  */
16918
- integration_id: string;
16670
+ faq_id: string;
16919
16671
  };
16920
16672
  query?: never;
16921
- url: '/v1/integrations/{integration_id}';
16673
+ url: '/v1/faqs/{faq_id}';
16922
16674
  };
16923
- export type IntegrationsGetErrors = {
16675
+ export type FaqsGetErrors = {
16924
16676
  /**
16925
16677
  * Missing credential, or one that is revoked or no longer a member of this organization.
16926
16678
  */
@@ -16938,26 +16690,26 @@ export type IntegrationsGetErrors = {
16938
16690
  */
16939
16691
  default: ErrorResponse;
16940
16692
  };
16941
- export type IntegrationsGetError = IntegrationsGetErrors[keyof IntegrationsGetErrors];
16942
- export type IntegrationsGetResults = {
16693
+ export type FaqsGetError = FaqsGetErrors[keyof FaqsGetErrors];
16694
+ export type FaqsGetResults = {
16943
16695
  /**
16944
16696
  * Successful Response
16945
16697
  */
16946
- 200: IntegrationResponse;
16698
+ 200: FaqDetail;
16947
16699
  };
16948
- export type IntegrationsGetResult = IntegrationsGetResults[keyof IntegrationsGetResults];
16949
- export type IntegrationsUpdateData = {
16950
- body: PatchIntegrationRequest;
16700
+ export type FaqsGetResult = FaqsGetResults[keyof FaqsGetResults];
16701
+ export type FaqsUpdateData = {
16702
+ body: UpdateFaqRequest;
16951
16703
  path: {
16952
16704
  /**
16953
- * Integration Id
16705
+ * Faq Id
16954
16706
  */
16955
- integration_id: string;
16707
+ faq_id: string;
16956
16708
  };
16957
16709
  query?: never;
16958
- url: '/v1/integrations/{integration_id}';
16710
+ url: '/v1/faqs/{faq_id}';
16959
16711
  };
16960
- export type IntegrationsUpdateErrors = {
16712
+ export type FaqsUpdateErrors = {
16961
16713
  /**
16962
16714
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16963
16715
  */
@@ -16987,109 +16739,26 @@ export type IntegrationsUpdateErrors = {
16987
16739
  */
16988
16740
  default: ErrorResponse;
16989
16741
  };
16990
- export type IntegrationsUpdateError = IntegrationsUpdateErrors[keyof IntegrationsUpdateErrors];
16991
- export type IntegrationsUpdateResults = {
16992
- /**
16993
- * Successful Response
16994
- */
16995
- 200: IntegrationResponse;
16996
- };
16997
- export type IntegrationsUpdateResult = IntegrationsUpdateResults[keyof IntegrationsUpdateResults];
16998
- export type IntegrationsMcpToolsListData = {
16999
- body?: never;
17000
- path: {
17001
- /**
17002
- * Integration Id
17003
- */
17004
- integration_id: string;
17005
- };
17006
- query?: never;
17007
- url: '/v1/integrations/{integration_id}/mcp-tools';
17008
- };
17009
- export type IntegrationsMcpToolsListErrors = {
17010
- /**
17011
- * Missing credential, or one that is revoked or no longer a member of this organization.
17012
- */
17013
- 401: ErrorResponse;
17014
- /**
17015
- * No such resource in this organization.
17016
- */
17017
- 404: ErrorResponse;
17018
- /**
17019
- * The request did not match this operation's schema; `detail.errors` lists each field.
17020
- */
17021
- 422: ErrorResponse;
17022
- /**
17023
- * Unexpected error. Every error this API returns carries this body.
17024
- */
17025
- default: ErrorResponse;
17026
- };
17027
- export type IntegrationsMcpToolsListError = IntegrationsMcpToolsListErrors[keyof IntegrationsMcpToolsListErrors];
17028
- export type IntegrationsMcpToolsListResults = {
17029
- /**
17030
- * Successful Response
17031
- */
17032
- 200: IntegrationMcpToolsResponse;
17033
- };
17034
- export type IntegrationsMcpToolsListResult = IntegrationsMcpToolsListResults[keyof IntegrationsMcpToolsListResults];
17035
- export type IntegrationsTriggersListData = {
17036
- body?: never;
17037
- path: {
17038
- /**
17039
- * Integration Id
17040
- */
17041
- integration_id: string;
17042
- };
17043
- query?: {
17044
- /**
17045
- * Limit
17046
- */
17047
- limit?: number;
17048
- /**
17049
- * Offset
17050
- */
17051
- offset?: number;
17052
- };
17053
- url: '/v1/integrations/{integration_id}/triggers';
17054
- };
17055
- export type IntegrationsTriggersListErrors = {
17056
- /**
17057
- * Missing credential, or one that is revoked or no longer a member of this organization.
17058
- */
17059
- 401: ErrorResponse;
17060
- /**
17061
- * No such resource in this organization.
17062
- */
17063
- 404: ErrorResponse;
17064
- /**
17065
- * The request did not match this operation's schema; `detail.errors` lists each field.
17066
- */
17067
- 422: ErrorResponse;
17068
- /**
17069
- * Unexpected error. Every error this API returns carries this body.
17070
- */
17071
- default: ErrorResponse;
17072
- };
17073
- export type IntegrationsTriggersListError = IntegrationsTriggersListErrors[keyof IntegrationsTriggersListErrors];
17074
- export type IntegrationsTriggersListResults = {
16742
+ export type FaqsUpdateError = FaqsUpdateErrors[keyof FaqsUpdateErrors];
16743
+ export type FaqsUpdateResults = {
17075
16744
  /**
17076
16745
  * Successful Response
17077
16746
  */
17078
- 200: PageIntegrationTriggerResponse;
16747
+ 200: FaqSummary;
17079
16748
  };
17080
- export type IntegrationsTriggersListResult = IntegrationsTriggersListResults[keyof IntegrationsTriggersListResults];
17081
- export type IntegrationsTriggersCreateData = {
17082
- body: CreateIntegrationTriggerRequest;
16749
+ export type FaqsUpdateResult = FaqsUpdateResults[keyof FaqsUpdateResults];
16750
+ export type FaqsEntriesCreateData = {
16751
+ body: CreateFaqEntriesRequest;
17083
16752
  path: {
17084
16753
  /**
17085
- * Integration Id
16754
+ * Faq Id
17086
16755
  */
17087
- integration_id: string;
16756
+ faq_id: string;
17088
16757
  };
17089
16758
  query?: never;
17090
- url: '/v1/integrations/{integration_id}/triggers';
16759
+ url: '/v1/faqs/{faq_id}/entries';
17091
16760
  };
17092
- export type IntegrationsTriggersCreateErrors = {
16761
+ export type FaqsEntriesCreateErrors = {
17093
16762
  /**
17094
16763
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17095
16764
  */
@@ -17119,30 +16788,30 @@ export type IntegrationsTriggersCreateErrors = {
17119
16788
  */
17120
16789
  default: ErrorResponse;
17121
16790
  };
17122
- export type IntegrationsTriggersCreateError = IntegrationsTriggersCreateErrors[keyof IntegrationsTriggersCreateErrors];
17123
- export type IntegrationsTriggersCreateResults = {
16791
+ export type FaqsEntriesCreateError = FaqsEntriesCreateErrors[keyof FaqsEntriesCreateErrors];
16792
+ export type FaqsEntriesCreateResults = {
17124
16793
  /**
17125
16794
  * Successful Response
17126
16795
  */
17127
- 201: IntegrationTriggerResponse;
16796
+ 201: FaqEntriesResponse;
17128
16797
  };
17129
- export type IntegrationsTriggersCreateResult = IntegrationsTriggersCreateResults[keyof IntegrationsTriggersCreateResults];
17130
- export type IntegrationsTriggersDeleteData = {
16798
+ export type FaqsEntriesCreateResult = FaqsEntriesCreateResults[keyof FaqsEntriesCreateResults];
16799
+ export type FaqsEntriesDeleteData = {
17131
16800
  body?: never;
17132
16801
  path: {
17133
16802
  /**
17134
- * Integration Id
16803
+ * Faq Id
17135
16804
  */
17136
- integration_id: string;
16805
+ faq_id: string;
17137
16806
  /**
17138
- * Trigger Id
16807
+ * Entry Id
17139
16808
  */
17140
- trigger_id: string;
16809
+ entry_id: string;
17141
16810
  };
17142
16811
  query?: never;
17143
- url: '/v1/integrations/{integration_id}/triggers/{trigger_id}';
16812
+ url: '/v1/faqs/{faq_id}/entries/{entry_id}';
17144
16813
  };
17145
- export type IntegrationsTriggersDeleteErrors = {
16814
+ export type FaqsEntriesDeleteErrors = {
17146
16815
  /**
17147
16816
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17148
16817
  */
@@ -17172,30 +16841,30 @@ export type IntegrationsTriggersDeleteErrors = {
17172
16841
  */
17173
16842
  default: ErrorResponse;
17174
16843
  };
17175
- export type IntegrationsTriggersDeleteError = IntegrationsTriggersDeleteErrors[keyof IntegrationsTriggersDeleteErrors];
17176
- export type IntegrationsTriggersDeleteResults = {
16844
+ export type FaqsEntriesDeleteError = FaqsEntriesDeleteErrors[keyof FaqsEntriesDeleteErrors];
16845
+ export type FaqsEntriesDeleteResults = {
17177
16846
  /**
17178
16847
  * Successful Response
17179
16848
  */
17180
16849
  200: OkResponse;
17181
16850
  };
17182
- export type IntegrationsTriggersDeleteResult = IntegrationsTriggersDeleteResults[keyof IntegrationsTriggersDeleteResults];
17183
- export type IntegrationsTriggersUpdateData = {
17184
- body: PatchIntegrationTriggerRequest;
16851
+ export type FaqsEntriesDeleteResult = FaqsEntriesDeleteResults[keyof FaqsEntriesDeleteResults];
16852
+ export type FaqsEntriesUpdateData = {
16853
+ body: UpdateFaqEntryRequest;
17185
16854
  path: {
17186
16855
  /**
17187
- * Integration Id
16856
+ * Faq Id
17188
16857
  */
17189
- integration_id: string;
16858
+ faq_id: string;
17190
16859
  /**
17191
- * Trigger Id
16860
+ * Entry Id
17192
16861
  */
17193
- trigger_id: string;
16862
+ entry_id: string;
17194
16863
  };
17195
16864
  query?: never;
17196
- url: '/v1/integrations/{integration_id}/triggers/{trigger_id}';
16865
+ url: '/v1/faqs/{faq_id}/entries/{entry_id}';
17197
16866
  };
17198
- export type IntegrationsTriggersUpdateErrors = {
16867
+ export type FaqsEntriesUpdateErrors = {
17199
16868
  /**
17200
16869
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17201
16870
  */
@@ -17225,15 +16894,15 @@ export type IntegrationsTriggersUpdateErrors = {
17225
16894
  */
17226
16895
  default: ErrorResponse;
17227
16896
  };
17228
- export type IntegrationsTriggersUpdateError = IntegrationsTriggersUpdateErrors[keyof IntegrationsTriggersUpdateErrors];
17229
- export type IntegrationsTriggersUpdateResults = {
16897
+ export type FaqsEntriesUpdateError = FaqsEntriesUpdateErrors[keyof FaqsEntriesUpdateErrors];
16898
+ export type FaqsEntriesUpdateResults = {
17230
16899
  /**
17231
16900
  * Successful Response
17232
16901
  */
17233
- 200: IntegrationTriggerResponse;
16902
+ 200: FaqEntry;
17234
16903
  };
17235
- export type IntegrationsTriggersUpdateResult = IntegrationsTriggersUpdateResults[keyof IntegrationsTriggersUpdateResults];
17236
- export type KnowledgeListData = {
16904
+ export type FaqsEntriesUpdateResult = FaqsEntriesUpdateResults[keyof FaqsEntriesUpdateResults];
16905
+ export type IntegrationsListData = {
17237
16906
  body?: never;
17238
16907
  path?: never;
17239
16908
  query?: {
@@ -17246,9 +16915,9 @@ export type KnowledgeListData = {
17246
16915
  */
17247
16916
  offset?: number;
17248
16917
  };
17249
- url: '/v1/knowledge';
16918
+ url: '/v1/integrations';
17250
16919
  };
17251
- export type KnowledgeListErrors = {
16920
+ export type IntegrationsListErrors = {
17252
16921
  /**
17253
16922
  * Missing credential, or one that is revoked or no longer a member of this organization.
17254
16923
  */
@@ -17262,21 +16931,21 @@ export type KnowledgeListErrors = {
17262
16931
  */
17263
16932
  default: ErrorResponse;
17264
16933
  };
17265
- export type KnowledgeListError = KnowledgeListErrors[keyof KnowledgeListErrors];
17266
- export type KnowledgeListResults = {
16934
+ export type IntegrationsListError = IntegrationsListErrors[keyof IntegrationsListErrors];
16935
+ export type IntegrationsListResults = {
17267
16936
  /**
17268
16937
  * Successful Response
17269
16938
  */
17270
- 200: PageKBSummary;
16939
+ 200: PageIntegrationResponse;
17271
16940
  };
17272
- export type KnowledgeListResult = KnowledgeListResults[keyof KnowledgeListResults];
17273
- export type KnowledgeCreateData = {
17274
- body: CreateKBRequest;
16941
+ export type IntegrationsListResult = IntegrationsListResults[keyof IntegrationsListResults];
16942
+ export type IntegrationsCreateData = {
16943
+ body: CreateIntegrationRequest;
17275
16944
  path?: never;
17276
16945
  query?: never;
17277
- url: '/v1/knowledge';
16946
+ url: '/v1/integrations';
17278
16947
  };
17279
- export type KnowledgeCreateErrors = {
16948
+ export type IntegrationsCreateErrors = {
17280
16949
  /**
17281
16950
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17282
16951
  */
@@ -17302,83 +16971,34 @@ export type KnowledgeCreateErrors = {
17302
16971
  */
17303
16972
  default: ErrorResponse;
17304
16973
  };
17305
- export type KnowledgeCreateError = KnowledgeCreateErrors[keyof KnowledgeCreateErrors];
17306
- export type KnowledgeCreateResults = {
16974
+ export type IntegrationsCreateError = IntegrationsCreateErrors[keyof IntegrationsCreateErrors];
16975
+ export type IntegrationsCreateResults = {
17307
16976
  /**
17308
16977
  * Successful Response
17309
16978
  */
17310
- 201: KBSummary;
16979
+ 201: IntegrationResponse;
17311
16980
  };
17312
- export type KnowledgeCreateResult = KnowledgeCreateResults[keyof KnowledgeCreateResults];
17313
- export type KnowledgeDeleteData = {
16981
+ export type IntegrationsCreateResult = IntegrationsCreateResults[keyof IntegrationsCreateResults];
16982
+ export type IntegrationsCatalogData = {
17314
16983
  body?: never;
17315
- path: {
16984
+ path?: never;
16985
+ query?: {
17316
16986
  /**
17317
- * Kb Id
16987
+ * Limit
17318
16988
  */
17319
- kb_id: string;
17320
- };
17321
- query?: never;
17322
- url: '/v1/knowledge/{kb_id}';
17323
- };
17324
- export type KnowledgeDeleteErrors = {
17325
- /**
17326
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17327
- */
17328
- 400: ErrorResponse;
17329
- /**
17330
- * Missing credential, or one that is revoked or no longer a member of this organization.
17331
- */
17332
- 401: ErrorResponse;
17333
- /**
17334
- * Authenticated, but this organization role may not perform the operation.
17335
- */
17336
- 403: ErrorResponse;
17337
- /**
17338
- * No such resource in this organization.
17339
- */
17340
- 404: ErrorResponse;
17341
- /**
17342
- * The resource's current state forbids this — a name already taken, a job already running.
17343
- */
17344
- 409: ErrorResponse;
17345
- /**
17346
- * The request did not match this operation's schema; `detail.errors` lists each field.
17347
- */
17348
- 422: ErrorResponse;
17349
- /**
17350
- * Unexpected error. Every error this API returns carries this body.
17351
- */
17352
- default: ErrorResponse;
17353
- };
17354
- export type KnowledgeDeleteError = KnowledgeDeleteErrors[keyof KnowledgeDeleteErrors];
17355
- export type KnowledgeDeleteResults = {
17356
- /**
17357
- * Successful Response
17358
- */
17359
- 200: OkResponse;
17360
- };
17361
- export type KnowledgeDeleteResult = KnowledgeDeleteResults[keyof KnowledgeDeleteResults];
17362
- export type KnowledgeGetData = {
17363
- body?: never;
17364
- path: {
16989
+ limit?: number;
17365
16990
  /**
17366
- * Kb Id
16991
+ * Offset
17367
16992
  */
17368
- kb_id: string;
16993
+ offset?: number;
17369
16994
  };
17370
- query?: never;
17371
- url: '/v1/knowledge/{kb_id}';
16995
+ url: '/v1/integrations/catalog';
17372
16996
  };
17373
- export type KnowledgeGetErrors = {
16997
+ export type IntegrationsCatalogErrors = {
17374
16998
  /**
17375
16999
  * Missing credential, or one that is revoked or no longer a member of this organization.
17376
17000
  */
17377
17001
  401: ErrorResponse;
17378
- /**
17379
- * No such resource in this organization.
17380
- */
17381
- 404: ErrorResponse;
17382
17002
  /**
17383
17003
  * The request did not match this operation's schema; `detail.errors` lists each field.
17384
17004
  */
@@ -17388,26 +17008,26 @@ export type KnowledgeGetErrors = {
17388
17008
  */
17389
17009
  default: ErrorResponse;
17390
17010
  };
17391
- export type KnowledgeGetError = KnowledgeGetErrors[keyof KnowledgeGetErrors];
17392
- export type KnowledgeGetResults = {
17011
+ export type IntegrationsCatalogError = IntegrationsCatalogErrors[keyof IntegrationsCatalogErrors];
17012
+ export type IntegrationsCatalogResults = {
17393
17013
  /**
17394
17014
  * Successful Response
17395
17015
  */
17396
- 200: KBDetail;
17016
+ 200: PageIntegrationCatalogItem;
17397
17017
  };
17398
- export type KnowledgeGetResult = KnowledgeGetResults[keyof KnowledgeGetResults];
17399
- export type KnowledgeBuildData = {
17400
- body: BuildKBRequest;
17018
+ export type IntegrationsCatalogResult = IntegrationsCatalogResults[keyof IntegrationsCatalogResults];
17019
+ export type IntegrationsDeleteData = {
17020
+ body?: never;
17401
17021
  path: {
17402
17022
  /**
17403
- * Kb Id
17023
+ * Integration Id
17404
17024
  */
17405
- kb_id: string;
17025
+ integration_id: string;
17406
17026
  };
17407
17027
  query?: never;
17408
- url: '/v1/knowledge/{kb_id}/build';
17028
+ url: '/v1/integrations/{integration_id}';
17409
17029
  };
17410
- export type KnowledgeBuildErrors = {
17030
+ export type IntegrationsDeleteErrors = {
17411
17031
  /**
17412
17032
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17413
17033
  */
@@ -17437,26 +17057,26 @@ export type KnowledgeBuildErrors = {
17437
17057
  */
17438
17058
  default: ErrorResponse;
17439
17059
  };
17440
- export type KnowledgeBuildError = KnowledgeBuildErrors[keyof KnowledgeBuildErrors];
17441
- export type KnowledgeBuildResults = {
17060
+ export type IntegrationsDeleteError = IntegrationsDeleteErrors[keyof IntegrationsDeleteErrors];
17061
+ export type IntegrationsDeleteResults = {
17442
17062
  /**
17443
17063
  * Successful Response
17444
17064
  */
17445
- 200: BuildResultResponse;
17065
+ 200: OkResponse;
17446
17066
  };
17447
- export type KnowledgeBuildResult = KnowledgeBuildResults[keyof KnowledgeBuildResults];
17448
- export type KnowledgeEventsData = {
17067
+ export type IntegrationsDeleteResult = IntegrationsDeleteResults[keyof IntegrationsDeleteResults];
17068
+ export type IntegrationsGetData = {
17449
17069
  body?: never;
17450
17070
  path: {
17451
17071
  /**
17452
- * Kb Id
17072
+ * Integration Id
17453
17073
  */
17454
- kb_id: string;
17074
+ integration_id: string;
17455
17075
  };
17456
17076
  query?: never;
17457
- url: '/v1/knowledge/{kb_id}/events';
17077
+ url: '/v1/integrations/{integration_id}';
17458
17078
  };
17459
- export type KnowledgeEventsErrors = {
17079
+ export type IntegrationsGetErrors = {
17460
17080
  /**
17461
17081
  * Missing credential, or one that is revoked or no longer a member of this organization.
17462
17082
  */
@@ -17474,38 +17094,26 @@ export type KnowledgeEventsErrors = {
17474
17094
  */
17475
17095
  default: ErrorResponse;
17476
17096
  };
17477
- export type KnowledgeEventsError = KnowledgeEventsErrors[keyof KnowledgeEventsErrors];
17478
- export type KnowledgeEventsResults = {
17097
+ export type IntegrationsGetError = IntegrationsGetErrors[keyof IntegrationsGetErrors];
17098
+ export type IntegrationsGetResults = {
17479
17099
  /**
17480
- * Response 200 Knowledge.Events
17481
- *
17482
- * A `text/event-stream` that stays open. Each frame is `event: <name>` followed by `data: <json>`, and the JSON repeats the name in its `event` field so one value identifies the frame. A line starting `:` is a keep-alive, sent every 15s so idle proxies do not close the connection. Read it with an SSE client (`EventSource`, `httpx-sse`) — the body is never a single JSON document.
17100
+ * Successful Response
17483
17101
  */
17484
- 200: ({
17485
- event: 'snapshot';
17486
- } & KbSnapshotEvent) | ({
17487
- event: 'progress';
17488
- } & KbProgressEvent) | ({
17489
- event: 'status';
17490
- } & KbStatusEvent);
17491
- };
17492
- export type KnowledgeEventsResult = KnowledgeEventsResults[keyof KnowledgeEventsResults];
17493
- export type KnowledgeNodesDeleteData = {
17494
- body?: never;
17102
+ 200: IntegrationResponse;
17103
+ };
17104
+ export type IntegrationsGetResult = IntegrationsGetResults[keyof IntegrationsGetResults];
17105
+ export type IntegrationsUpdateData = {
17106
+ body: PatchIntegrationRequest;
17495
17107
  path: {
17496
17108
  /**
17497
- * Kb Id
17498
- */
17499
- kb_id: string;
17500
- /**
17501
- * Node Id
17109
+ * Integration Id
17502
17110
  */
17503
- node_id: string;
17111
+ integration_id: string;
17504
17112
  };
17505
17113
  query?: never;
17506
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}';
17114
+ url: '/v1/integrations/{integration_id}';
17507
17115
  };
17508
- export type KnowledgeNodesDeleteErrors = {
17116
+ export type IntegrationsUpdateErrors = {
17509
17117
  /**
17510
17118
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17511
17119
  */
@@ -17535,30 +17143,26 @@ export type KnowledgeNodesDeleteErrors = {
17535
17143
  */
17536
17144
  default: ErrorResponse;
17537
17145
  };
17538
- export type KnowledgeNodesDeleteError = KnowledgeNodesDeleteErrors[keyof KnowledgeNodesDeleteErrors];
17539
- export type KnowledgeNodesDeleteResults = {
17146
+ export type IntegrationsUpdateError = IntegrationsUpdateErrors[keyof IntegrationsUpdateErrors];
17147
+ export type IntegrationsUpdateResults = {
17540
17148
  /**
17541
17149
  * Successful Response
17542
17150
  */
17543
- 200: OkResponse;
17151
+ 200: IntegrationResponse;
17544
17152
  };
17545
- export type KnowledgeNodesDeleteResult = KnowledgeNodesDeleteResults[keyof KnowledgeNodesDeleteResults];
17546
- export type KnowledgeNodesGetData = {
17153
+ export type IntegrationsUpdateResult = IntegrationsUpdateResults[keyof IntegrationsUpdateResults];
17154
+ export type IntegrationsMcpToolsListData = {
17547
17155
  body?: never;
17548
17156
  path: {
17549
17157
  /**
17550
- * Kb Id
17551
- */
17552
- kb_id: string;
17553
- /**
17554
- * Node Id
17158
+ * Integration Id
17555
17159
  */
17556
- node_id: string;
17160
+ integration_id: string;
17557
17161
  };
17558
17162
  query?: never;
17559
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}';
17163
+ url: '/v1/integrations/{integration_id}/mcp-tools';
17560
17164
  };
17561
- export type KnowledgeNodesGetErrors = {
17165
+ export type IntegrationsMcpToolsListErrors = {
17562
17166
  /**
17563
17167
  * Missing credential, or one that is revoked or no longer a member of this organization.
17564
17168
  */
@@ -17576,50 +17180,43 @@ export type KnowledgeNodesGetErrors = {
17576
17180
  */
17577
17181
  default: ErrorResponse;
17578
17182
  };
17579
- export type KnowledgeNodesGetError = KnowledgeNodesGetErrors[keyof KnowledgeNodesGetErrors];
17580
- export type KnowledgeNodesGetResults = {
17183
+ export type IntegrationsMcpToolsListError = IntegrationsMcpToolsListErrors[keyof IntegrationsMcpToolsListErrors];
17184
+ export type IntegrationsMcpToolsListResults = {
17581
17185
  /**
17582
17186
  * Successful Response
17583
17187
  */
17584
- 200: NodeContentResponse;
17188
+ 200: IntegrationMcpToolsResponse;
17585
17189
  };
17586
- export type KnowledgeNodesGetResult = KnowledgeNodesGetResults[keyof KnowledgeNodesGetResults];
17587
- export type KnowledgeNodesUpdateData = {
17588
- body: PatchNodeRequest;
17190
+ export type IntegrationsMcpToolsListResult = IntegrationsMcpToolsListResults[keyof IntegrationsMcpToolsListResults];
17191
+ export type IntegrationsTriggersListData = {
17192
+ body?: never;
17589
17193
  path: {
17590
17194
  /**
17591
- * Kb Id
17195
+ * Integration Id
17196
+ */
17197
+ integration_id: string;
17198
+ };
17199
+ query?: {
17200
+ /**
17201
+ * Limit
17592
17202
  */
17593
- kb_id: string;
17203
+ limit?: number;
17594
17204
  /**
17595
- * Node Id
17205
+ * Offset
17596
17206
  */
17597
- node_id: string;
17207
+ offset?: number;
17598
17208
  };
17599
- query?: never;
17600
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}';
17209
+ url: '/v1/integrations/{integration_id}/triggers';
17601
17210
  };
17602
- export type KnowledgeNodesUpdateErrors = {
17603
- /**
17604
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17605
- */
17606
- 400: ErrorResponse;
17211
+ export type IntegrationsTriggersListErrors = {
17607
17212
  /**
17608
17213
  * Missing credential, or one that is revoked or no longer a member of this organization.
17609
17214
  */
17610
17215
  401: ErrorResponse;
17611
- /**
17612
- * Authenticated, but this organization role may not perform the operation.
17613
- */
17614
- 403: ErrorResponse;
17615
17216
  /**
17616
17217
  * No such resource in this organization.
17617
17218
  */
17618
17219
  404: ErrorResponse;
17619
- /**
17620
- * The resource's current state forbids this — a name already taken, a job already running.
17621
- */
17622
- 409: ErrorResponse;
17623
17220
  /**
17624
17221
  * The request did not match this operation's schema; `detail.errors` lists each field.
17625
17222
  */
@@ -17629,43 +17226,46 @@ export type KnowledgeNodesUpdateErrors = {
17629
17226
  */
17630
17227
  default: ErrorResponse;
17631
17228
  };
17632
- export type KnowledgeNodesUpdateError = KnowledgeNodesUpdateErrors[keyof KnowledgeNodesUpdateErrors];
17633
- export type KnowledgeNodesUpdateResults = {
17229
+ export type IntegrationsTriggersListError = IntegrationsTriggersListErrors[keyof IntegrationsTriggersListErrors];
17230
+ export type IntegrationsTriggersListResults = {
17634
17231
  /**
17635
17232
  * Successful Response
17636
17233
  */
17637
- 200: OkResponse;
17234
+ 200: PageIntegrationTriggerResponse;
17638
17235
  };
17639
- export type KnowledgeNodesUpdateResult = KnowledgeNodesUpdateResults[keyof KnowledgeNodesUpdateResults];
17640
- export type KnowledgePagesListData = {
17641
- body?: never;
17236
+ export type IntegrationsTriggersListResult = IntegrationsTriggersListResults[keyof IntegrationsTriggersListResults];
17237
+ export type IntegrationsTriggersCreateData = {
17238
+ body: CreateIntegrationTriggerRequest;
17642
17239
  path: {
17643
17240
  /**
17644
- * Kb Id
17645
- */
17646
- kb_id: string;
17647
- };
17648
- query?: {
17649
- /**
17650
- * Limit
17651
- */
17652
- limit?: number;
17653
- /**
17654
- * Offset
17241
+ * Integration Id
17655
17242
  */
17656
- offset?: number;
17243
+ integration_id: string;
17657
17244
  };
17658
- url: '/v1/knowledge/{kb_id}/pages';
17245
+ query?: never;
17246
+ url: '/v1/integrations/{integration_id}/triggers';
17659
17247
  };
17660
- export type KnowledgePagesListErrors = {
17248
+ export type IntegrationsTriggersCreateErrors = {
17249
+ /**
17250
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17251
+ */
17252
+ 400: ErrorResponse;
17661
17253
  /**
17662
17254
  * Missing credential, or one that is revoked or no longer a member of this organization.
17663
17255
  */
17664
17256
  401: ErrorResponse;
17257
+ /**
17258
+ * Authenticated, but this organization role may not perform the operation.
17259
+ */
17260
+ 403: ErrorResponse;
17665
17261
  /**
17666
17262
  * No such resource in this organization.
17667
17263
  */
17668
17264
  404: ErrorResponse;
17265
+ /**
17266
+ * The resource's current state forbids this — a name already taken, a job already running.
17267
+ */
17268
+ 409: ErrorResponse;
17669
17269
  /**
17670
17270
  * The request did not match this operation's schema; `detail.errors` lists each field.
17671
17271
  */
@@ -17675,34 +17275,50 @@ export type KnowledgePagesListErrors = {
17675
17275
  */
17676
17276
  default: ErrorResponse;
17677
17277
  };
17678
- export type KnowledgePagesListError = KnowledgePagesListErrors[keyof KnowledgePagesListErrors];
17679
- export type KnowledgePagesListResults = {
17278
+ export type IntegrationsTriggersCreateError = IntegrationsTriggersCreateErrors[keyof IntegrationsTriggersCreateErrors];
17279
+ export type IntegrationsTriggersCreateResults = {
17680
17280
  /**
17681
17281
  * Successful Response
17682
17282
  */
17683
- 200: PageKBPageResponse;
17283
+ 201: IntegrationTriggerResponse;
17684
17284
  };
17685
- export type KnowledgePagesListResult = KnowledgePagesListResults[keyof KnowledgePagesListResults];
17686
- export type KnowledgePromptData = {
17285
+ export type IntegrationsTriggersCreateResult = IntegrationsTriggersCreateResults[keyof IntegrationsTriggersCreateResults];
17286
+ export type IntegrationsTriggersDeleteData = {
17687
17287
  body?: never;
17688
17288
  path: {
17689
17289
  /**
17690
- * Kb Id
17290
+ * Integration Id
17291
+ */
17292
+ integration_id: string;
17293
+ /**
17294
+ * Trigger Id
17691
17295
  */
17692
- kb_id: string;
17296
+ trigger_id: string;
17693
17297
  };
17694
17298
  query?: never;
17695
- url: '/v1/knowledge/{kb_id}/prompt';
17299
+ url: '/v1/integrations/{integration_id}/triggers/{trigger_id}';
17696
17300
  };
17697
- export type KnowledgePromptErrors = {
17301
+ export type IntegrationsTriggersDeleteErrors = {
17302
+ /**
17303
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17304
+ */
17305
+ 400: ErrorResponse;
17698
17306
  /**
17699
17307
  * Missing credential, or one that is revoked or no longer a member of this organization.
17700
17308
  */
17701
17309
  401: ErrorResponse;
17310
+ /**
17311
+ * Authenticated, but this organization role may not perform the operation.
17312
+ */
17313
+ 403: ErrorResponse;
17702
17314
  /**
17703
17315
  * No such resource in this organization.
17704
17316
  */
17705
17317
  404: ErrorResponse;
17318
+ /**
17319
+ * The resource's current state forbids this — a name already taken, a job already running.
17320
+ */
17321
+ 409: ErrorResponse;
17706
17322
  /**
17707
17323
  * The request did not match this operation's schema; `detail.errors` lists each field.
17708
17324
  */
@@ -17712,26 +17328,30 @@ export type KnowledgePromptErrors = {
17712
17328
  */
17713
17329
  default: ErrorResponse;
17714
17330
  };
17715
- export type KnowledgePromptError = KnowledgePromptErrors[keyof KnowledgePromptErrors];
17716
- export type KnowledgePromptResults = {
17331
+ export type IntegrationsTriggersDeleteError = IntegrationsTriggersDeleteErrors[keyof IntegrationsTriggersDeleteErrors];
17332
+ export type IntegrationsTriggersDeleteResults = {
17717
17333
  /**
17718
17334
  * Successful Response
17719
17335
  */
17720
- 200: PromptResponse;
17336
+ 200: OkResponse;
17721
17337
  };
17722
- export type KnowledgePromptResult = KnowledgePromptResults[keyof KnowledgePromptResults];
17723
- export type KnowledgeRegenerateTocData = {
17724
- body?: never;
17338
+ export type IntegrationsTriggersDeleteResult = IntegrationsTriggersDeleteResults[keyof IntegrationsTriggersDeleteResults];
17339
+ export type IntegrationsTriggersUpdateData = {
17340
+ body: PatchIntegrationTriggerRequest;
17725
17341
  path: {
17726
17342
  /**
17727
- * Kb Id
17343
+ * Integration Id
17344
+ */
17345
+ integration_id: string;
17346
+ /**
17347
+ * Trigger Id
17728
17348
  */
17729
- kb_id: string;
17349
+ trigger_id: string;
17730
17350
  };
17731
17351
  query?: never;
17732
- url: '/v1/knowledge/{kb_id}/toc';
17352
+ url: '/v1/integrations/{integration_id}/triggers/{trigger_id}';
17733
17353
  };
17734
- export type KnowledgeRegenerateTocErrors = {
17354
+ export type IntegrationsTriggersUpdateErrors = {
17735
17355
  /**
17736
17356
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17737
17357
  */
@@ -17761,14 +17381,14 @@ export type KnowledgeRegenerateTocErrors = {
17761
17381
  */
17762
17382
  default: ErrorResponse;
17763
17383
  };
17764
- export type KnowledgeRegenerateTocError = KnowledgeRegenerateTocErrors[keyof KnowledgeRegenerateTocErrors];
17765
- export type KnowledgeRegenerateTocResults = {
17384
+ export type IntegrationsTriggersUpdateError = IntegrationsTriggersUpdateErrors[keyof IntegrationsTriggersUpdateErrors];
17385
+ export type IntegrationsTriggersUpdateResults = {
17766
17386
  /**
17767
17387
  * Successful Response
17768
17388
  */
17769
- 200: TocResultResponse;
17389
+ 200: IntegrationTriggerResponse;
17770
17390
  };
17771
- export type KnowledgeRegenerateTocResult = KnowledgeRegenerateTocResults[keyof KnowledgeRegenerateTocResults];
17391
+ export type IntegrationsTriggersUpdateResult = IntegrationsTriggersUpdateResults[keyof IntegrationsTriggersUpdateResults];
17772
17392
  export type ObservabilityGetData = {
17773
17393
  body?: never;
17774
17394
  path?: never;