@talqing/sdk 0.8.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
  *
@@ -3113,6 +3091,15 @@ export type CreateEmailSendResponse = {
3113
3091
  rejected: Array<RejectedRecipient>;
3114
3092
  send: EmailSendResponse;
3115
3093
  };
3094
+ /**
3095
+ * CreateFaqEntriesRequest
3096
+ */
3097
+ export type CreateFaqEntriesRequest = {
3098
+ /**
3099
+ * Entries
3100
+ */
3101
+ entries: Array<FaqEntryInput>;
3102
+ };
3116
3103
  /**
3117
3104
  * CreateIntegrationRequest
3118
3105
  */
@@ -3193,27 +3180,6 @@ export type CreateIntegrationTriggerRequest = {
3193
3180
  */
3194
3181
  trigger_type: 'telegram.message.inbound' | 'whatsapp.message.inbound' | 'whatsapp.call.inbound';
3195
3182
  };
3196
- /**
3197
- * CreateKBRequest
3198
- */
3199
- export type CreateKBRequest = {
3200
- /**
3201
- * Max Pages
3202
- */
3203
- max_pages?: number;
3204
- /**
3205
- * Name
3206
- */
3207
- name: string;
3208
- /**
3209
- * Notes
3210
- */
3211
- notes?: string;
3212
- /**
3213
- * Urls
3214
- */
3215
- urls?: Array<string>;
3216
- };
3217
3183
  /**
3218
3184
  * CreateSecretRequest
3219
3185
  */
@@ -4228,6 +4194,142 @@ export type ExpressiveDialect = {
4228
4194
  */
4229
4195
  prompt: string;
4230
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
+ };
4231
4333
  /**
4232
4334
  * FieldMap
4233
4335
  *
@@ -4813,6 +4915,24 @@ export type InboundImage = {
4813
4915
  */
4814
4916
  filename?: string | null;
4815
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
+ };
4816
4936
  /**
4817
4937
  * InlineMcpServer
4818
4938
  *
@@ -5411,434 +5531,133 @@ export type ItemDeliveryUpdatedEvent = {
5411
5531
  provider_message_id: string | null;
5412
5532
  };
5413
5533
  /**
5414
- * KBDetail
5534
+ * KeypadInputSpec
5535
+ *
5536
+ * Digits the caller types, delivered as a turn the agent can answer.
5415
5537
  *
5416
- * The full single-KB view: the ToC tree + stage-specific curation data.
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.
5417
5541
  */
5418
- export type KBDetail = {
5542
+ export type KeypadInputSpec = {
5419
5543
  /**
5420
- * 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.
5421
5547
  */
5422
- all_data_summary?: string | null;
5548
+ enabled?: boolean;
5423
5549
  /**
5424
- * 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.
5425
5553
  */
5426
- created_at: string;
5554
+ terminator?: '#' | '*' | '';
5427
5555
  /**
5428
- * 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.
5429
5559
  */
5430
- 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 = {
5431
5568
  /**
5432
- * 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.
5433
5572
  */
5434
- discovered?: Array<string> | null;
5573
+ enabled?: boolean | null;
5435
5574
  /**
5436
- * 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.
5437
5578
  */
5438
- error?: string | null;
5579
+ terminator?: '#' | '*' | '' | null;
5439
5580
  /**
5440
- * Id
5581
+ * Timeout
5582
+ *
5583
+ * Seconds of quiet before an entry is taken as finished. 0 waits for the terminator however long it takes.
5441
5584
  */
5442
- id: string;
5585
+ timeout?: number | null;
5586
+ };
5587
+ /**
5588
+ * LLMCatalogEntryResponse
5589
+ */
5590
+ export type LLMCatalogEntryResponse = {
5443
5591
  /**
5444
- * Max Pages
5592
+ * Base Url
5445
5593
  */
5446
- max_pages?: number;
5594
+ base_url: string | null;
5447
5595
  /**
5448
- * Name
5596
+ * Builtin Tools
5449
5597
  */
5450
- name: string;
5598
+ builtin_tools: Array<BuiltinTool>;
5451
5599
  /**
5452
- * Node Count
5600
+ * Channel
5453
5601
  */
5454
- node_count?: number | null;
5602
+ channel: Array<string>;
5455
5603
  /**
5456
- * Notes
5604
+ * Context Length
5457
5605
  */
5458
- notes?: string;
5606
+ context_length: number | null;
5459
5607
  /**
5460
- * Parents
5608
+ * Label
5461
5609
  */
5462
- parents?: {
5463
- [key: string]: string | null;
5464
- } | null;
5465
- progress?: KbProgress;
5610
+ label: string | null;
5466
5611
  /**
5467
- * Seeds
5612
+ * Logo Url
5468
5613
  */
5469
- seeds?: Array<string>;
5614
+ logo_url: string | null;
5470
5615
  /**
5471
- * Status
5616
+ * Model
5472
5617
  */
5473
- status: 'discovering' | 'review' | 'transcribing' | 'generating' | 'ready' | 'error';
5618
+ model: string;
5619
+ /**
5620
+ * Note
5621
+ */
5622
+ note: string | null;
5474
5623
  /**
5475
- * Tree
5624
+ * Pricing
5476
5625
  */
5477
- tree?: Array<KbTreeNode> | null;
5626
+ pricing: {
5627
+ [key: string]: unknown;
5628
+ };
5629
+ priority: PriorityTier | null;
5478
5630
  /**
5479
- * Unplaced
5631
+ * Provider
5480
5632
  */
5481
- unplaced?: Array<string> | null;
5633
+ provider: string;
5482
5634
  /**
5483
- * Updated At
5635
+ * Reasoning Efforts
5484
5636
  */
5485
- updated_at: string;
5637
+ reasoning_efforts: Array<'none' | 'minimal' | 'low' | 'medium' | 'high'>;
5486
5638
  /**
5487
- * Url Count
5639
+ * Vision
5488
5640
  */
5489
- url_count?: number | null;
5641
+ vision: boolean;
5642
+ [key: string]: unknown;
5490
5643
  };
5491
5644
  /**
5492
- * KBPageResponse
5645
+ * LLMModelSearchResponse
5646
+ *
5647
+ * One page of a searched provider's language models — never the whole
5648
+ * registry.
5649
+ *
5650
+ * Ordered by real-world popularity when `q` is empty (OpenRouter ranks its own
5651
+ * list by tokens processed, so the first screen is the models people actually
5652
+ * run) and by match quality when it is not, popularity breaking the ties.
5493
5653
  */
5494
- export type KBPageResponse = {
5654
+ export type LLMModelSearchResponse = {
5495
5655
  /**
5496
- * Content Len
5656
+ * Kind
5497
5657
  */
5498
- content_len: number;
5658
+ kind: 'llm';
5499
5659
  /**
5500
- * Error
5501
- */
5502
- error?: string | null;
5503
- /**
5504
- * Kind
5505
- */
5506
- kind?: string | null;
5507
- /**
5508
- * Parent Url
5509
- */
5510
- parent_url?: string | null;
5511
- /**
5512
- * Status
5513
- */
5514
- status: string;
5515
- /**
5516
- * Summary
5517
- */
5518
- summary?: string | null;
5519
- /**
5520
- * Title
5521
- */
5522
- title?: string | null;
5523
- /**
5524
- * Updated At
5525
- */
5526
- updated_at: string;
5527
- /**
5528
- * Url
5529
- */
5530
- url: string;
5531
- };
5532
- /**
5533
- * KBSummary
5534
- *
5535
- * The KB header — what the list view needs (no tree / curation detail).
5536
- */
5537
- export type KBSummary = {
5538
- /**
5539
- * Created At
5540
- */
5541
- created_at: string;
5542
- /**
5543
- * Created By
5544
- */
5545
- created_by?: string | null;
5546
- /**
5547
- * Error
5548
- */
5549
- error?: string | null;
5550
- /**
5551
- * Id
5552
- */
5553
- id: string;
5554
- /**
5555
- * Name
5556
- */
5557
- name: string;
5558
- /**
5559
- * Node Count
5560
- */
5561
- node_count?: number | null;
5562
- progress?: KbProgress;
5563
- /**
5564
- * Seeds
5565
- */
5566
- seeds?: Array<string>;
5567
- /**
5568
- * Status
5569
- */
5570
- status: 'discovering' | 'review' | 'transcribing' | 'generating' | 'ready' | 'error';
5571
- /**
5572
- * Updated At
5573
- */
5574
- updated_at: string;
5575
- /**
5576
- * Url Count
5577
- */
5578
- url_count?: number | null;
5579
- };
5580
- /**
5581
- * KbProgress
5582
- *
5583
- * Build-stage progress written to knowledge_bases.progress JSONB.
5584
- */
5585
- export type KbProgress = {
5586
- /**
5587
- * Done
5588
- */
5589
- done: number | null;
5590
- /**
5591
- * Failed
5592
- */
5593
- failed: number | null;
5594
- /**
5595
- * Message
5596
- */
5597
- message: string | null;
5598
- /**
5599
- * Phase
5600
- */
5601
- phase: string;
5602
- /**
5603
- * Total
5604
- */
5605
- total: number | null;
5606
- };
5607
- /**
5608
- * KbProgressEvent
5609
- *
5610
- * One step of the running build. Purely advisory — the canonical progress
5611
- * is on the knowledge base itself, which `get_kb` returns.
5612
- */
5613
- export type KbProgressEvent = {
5614
- /**
5615
- * Done
5616
- */
5617
- done: number | null;
5618
- /**
5619
- * Event
5620
- */
5621
- event: 'progress';
5622
- /**
5623
- * Failed
5624
- */
5625
- failed: number | null;
5626
- /**
5627
- * Message
5628
- */
5629
- message: string | null;
5630
- /**
5631
- * Phase
5632
- */
5633
- phase: string;
5634
- /**
5635
- * Total
5636
- */
5637
- total: number | null;
5638
- };
5639
- /**
5640
- * KbSnapshotEvent
5641
- *
5642
- * Where the build stands. First frame, and again on every reconnect.
5643
- */
5644
- export type KbSnapshotEvent = {
5645
- /**
5646
- * Error
5647
- */
5648
- error: string | null;
5649
- /**
5650
- * Event
5651
- */
5652
- event: 'snapshot';
5653
- progress: KbProgress;
5654
- /**
5655
- * Status
5656
- */
5657
- status: string;
5658
- };
5659
- /**
5660
- * KbStatusEvent
5661
- *
5662
- * The build reached a new state. `error` is set only when `status` is
5663
- * `error`, and says what stopped it.
5664
- */
5665
- export type KbStatusEvent = {
5666
- /**
5667
- * Error
5668
- */
5669
- error: string | null;
5670
- /**
5671
- * Event
5672
- */
5673
- event: 'status';
5674
- /**
5675
- * Status
5676
- */
5677
- status: 'discovering' | 'review' | 'transcribing' | 'generating' | 'ready' | 'error';
5678
- };
5679
- /**
5680
- * KbTreeNode
5681
- *
5682
- * One ToC node in the dashboard tree (content omitted; has_content flag only).
5683
- */
5684
- export type KbTreeNode = {
5685
- /**
5686
- * Children
5687
- */
5688
- children?: Array<KbTreeNode>;
5689
- /**
5690
- * Has Content
5691
- */
5692
- has_content?: boolean;
5693
- /**
5694
- * Id
5695
- */
5696
- id: string;
5697
- /**
5698
- * Kind
5699
- */
5700
- kind?: string | null;
5701
- /**
5702
- * Source Url
5703
- */
5704
- source_url?: string | null;
5705
- /**
5706
- * Summary
5707
- */
5708
- summary?: string | null;
5709
- /**
5710
- * Title
5711
- */
5712
- title?: string | null;
5713
- };
5714
- /**
5715
- * KeypadInputSpec
5716
- *
5717
- * Digits the caller types, delivered as a turn the agent can answer.
5718
- *
5719
- * Phone and stream calls only, and only where the platform sends DTMF as an
5720
- * event — tones inside the audio are not detected. `voice` agents only:
5721
- * enabling it on `video` or `text` is refused.
5722
- */
5723
- export type KeypadInputSpec = {
5724
- /**
5725
- * Enabled
5726
- *
5727
- * 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.
5728
- */
5729
- enabled?: boolean;
5730
- /**
5731
- * Terminator
5732
- *
5733
- * 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.
5734
- */
5735
- terminator?: '#' | '*' | '';
5736
- /**
5737
- * Timeout
5738
- *
5739
- * Seconds of quiet before an entry is taken as finished. 0 waits for the terminator however long it takes.
5740
- */
5741
- timeout?: number;
5742
- };
5743
- /**
5744
- * KeypadInputSpecOverride
5745
- *
5746
- * 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.
5747
- */
5748
- export type KeypadInputSpecOverride = {
5749
- /**
5750
- * Enabled
5751
- *
5752
- * 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.
5753
- */
5754
- enabled?: boolean | null;
5755
- /**
5756
- * Terminator
5757
- *
5758
- * 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.
5759
- */
5760
- terminator?: '#' | '*' | '' | null;
5761
- /**
5762
- * Timeout
5763
- *
5764
- * Seconds of quiet before an entry is taken as finished. 0 waits for the terminator however long it takes.
5765
- */
5766
- timeout?: number | null;
5767
- };
5768
- /**
5769
- * LLMCatalogEntryResponse
5770
- */
5771
- export type LLMCatalogEntryResponse = {
5772
- /**
5773
- * Base Url
5774
- */
5775
- base_url: string | null;
5776
- /**
5777
- * Builtin Tools
5778
- */
5779
- builtin_tools: Array<BuiltinTool>;
5780
- /**
5781
- * Channel
5782
- */
5783
- channel: Array<string>;
5784
- /**
5785
- * Context Length
5786
- */
5787
- context_length: number | null;
5788
- /**
5789
- * Label
5790
- */
5791
- label: string | null;
5792
- /**
5793
- * Logo Url
5794
- */
5795
- logo_url: string | null;
5796
- /**
5797
- * Model
5798
- */
5799
- model: string;
5800
- /**
5801
- * Note
5802
- */
5803
- note: string | null;
5804
- /**
5805
- * Pricing
5806
- */
5807
- pricing: {
5808
- [key: string]: unknown;
5809
- };
5810
- priority: PriorityTier | null;
5811
- /**
5812
- * Provider
5813
- */
5814
- provider: string;
5815
- /**
5816
- * Reasoning Efforts
5817
- */
5818
- reasoning_efforts: Array<'none' | 'minimal' | 'low' | 'medium' | 'high'>;
5819
- /**
5820
- * Vision
5821
- */
5822
- vision: boolean;
5823
- [key: string]: unknown;
5824
- };
5825
- /**
5826
- * LLMModelSearchResponse
5827
- *
5828
- * One page of a searched provider's language models — never the whole
5829
- * registry.
5830
- *
5831
- * Ordered by real-world popularity when `q` is empty (OpenRouter ranks its own
5832
- * list by tokens processed, so the first screen is the models people actually
5833
- * run) and by match quality when it is not, popularity breaking the ties.
5834
- */
5835
- export type LLMModelSearchResponse = {
5836
- /**
5837
- * Kind
5838
- */
5839
- kind: 'llm';
5840
- /**
5841
- * Models
5660
+ * Models
5842
5661
  */
5843
5662
  models: Array<LLMCatalogEntryResponse>;
5844
5663
  /**
@@ -6307,39 +6126,6 @@ export type ModelRegistryHealth = {
6307
6126
  */
6308
6127
  models: number;
6309
6128
  };
6310
- /**
6311
- * NodeContentResponse
6312
- */
6313
- export type NodeContentResponse = {
6314
- /**
6315
- * Content
6316
- */
6317
- content: string;
6318
- /**
6319
- * Id
6320
- */
6321
- id: string;
6322
- /**
6323
- * Kind
6324
- */
6325
- kind?: string | null;
6326
- /**
6327
- * Source Url
6328
- */
6329
- source_url?: string | null;
6330
- /**
6331
- * Summary
6332
- */
6333
- summary?: string | null;
6334
- /**
6335
- * Title
6336
- */
6337
- title?: string | null;
6338
- /**
6339
- * Version
6340
- */
6341
- version?: number;
6342
- };
6343
6129
  /**
6344
6130
  * NoiseCancellationCatalogEntryResponse
6345
6131
  */
@@ -7384,9 +7170,9 @@ export type PageEmailSendResponse = {
7384
7170
  offset: number;
7385
7171
  };
7386
7172
  /**
7387
- * Page[IntegrationCatalogItem]
7173
+ * Page[FaqSummary]
7388
7174
  */
7389
- export type PageIntegrationCatalogItem = {
7175
+ export type PageFaqSummary = {
7390
7176
  /**
7391
7177
  * Has More
7392
7178
  */
@@ -7394,28 +7180,7 @@ export type PageIntegrationCatalogItem = {
7394
7180
  /**
7395
7181
  * Items
7396
7182
  */
7397
- items: Array<IntegrationCatalogItem>;
7398
- /**
7399
- * Limit
7400
- */
7401
- limit: number;
7402
- /**
7403
- * Offset
7404
- */
7405
- offset: number;
7406
- };
7407
- /**
7408
- * Page[IntegrationResponse]
7409
- */
7410
- export type PageIntegrationResponse = {
7411
- /**
7412
- * Has More
7413
- */
7414
- has_more: boolean;
7415
- /**
7416
- * Items
7417
- */
7418
- items: Array<IntegrationResponse>;
7183
+ items: Array<FaqSummary>;
7419
7184
  /**
7420
7185
  * Limit
7421
7186
  */
@@ -7426,9 +7191,9 @@ export type PageIntegrationResponse = {
7426
7191
  offset: number;
7427
7192
  };
7428
7193
  /**
7429
- * Page[IntegrationTriggerResponse]
7194
+ * Page[IntegrationCatalogItem]
7430
7195
  */
7431
- export type PageIntegrationTriggerResponse = {
7196
+ export type PageIntegrationCatalogItem = {
7432
7197
  /**
7433
7198
  * Has More
7434
7199
  */
@@ -7436,7 +7201,7 @@ export type PageIntegrationTriggerResponse = {
7436
7201
  /**
7437
7202
  * Items
7438
7203
  */
7439
- items: Array<IntegrationTriggerResponse>;
7204
+ items: Array<IntegrationCatalogItem>;
7440
7205
  /**
7441
7206
  * Limit
7442
7207
  */
@@ -7447,9 +7212,9 @@ export type PageIntegrationTriggerResponse = {
7447
7212
  offset: number;
7448
7213
  };
7449
7214
  /**
7450
- * Page[KBPageResponse]
7215
+ * Page[IntegrationResponse]
7451
7216
  */
7452
- export type PageKBPageResponse = {
7217
+ export type PageIntegrationResponse = {
7453
7218
  /**
7454
7219
  * Has More
7455
7220
  */
@@ -7457,7 +7222,7 @@ export type PageKBPageResponse = {
7457
7222
  /**
7458
7223
  * Items
7459
7224
  */
7460
- items: Array<KBPageResponse>;
7225
+ items: Array<IntegrationResponse>;
7461
7226
  /**
7462
7227
  * Limit
7463
7228
  */
@@ -7468,9 +7233,9 @@ export type PageKBPageResponse = {
7468
7233
  offset: number;
7469
7234
  };
7470
7235
  /**
7471
- * Page[KBSummary]
7236
+ * Page[IntegrationTriggerResponse]
7472
7237
  */
7473
- export type PageKBSummary = {
7238
+ export type PageIntegrationTriggerResponse = {
7474
7239
  /**
7475
7240
  * Has More
7476
7241
  */
@@ -7478,7 +7243,7 @@ export type PageKBSummary = {
7478
7243
  /**
7479
7244
  * Items
7480
7245
  */
7481
- items: Array<KBSummary>;
7246
+ items: Array<IntegrationTriggerResponse>;
7482
7247
  /**
7483
7248
  * Limit
7484
7249
  */
@@ -8046,27 +7811,6 @@ export type PatchIntegrationTriggerRequest = {
8046
7811
  */
8047
7812
  trigger_type?: 'telegram.message.inbound' | 'whatsapp.message.inbound' | 'whatsapp.call.inbound' | null;
8048
7813
  };
8049
- /**
8050
- * PatchNodeRequest
8051
- */
8052
- export type PatchNodeRequest = {
8053
- /**
8054
- * Content
8055
- */
8056
- content?: string | null;
8057
- /**
8058
- * Summary
8059
- */
8060
- summary?: string | null;
8061
- /**
8062
- * Title
8063
- */
8064
- title?: string | null;
8065
- /**
8066
- * Version
8067
- */
8068
- version?: number | null;
8069
- };
8070
7814
  /**
8071
7815
  * PatchPhoneNumberRequest
8072
7816
  */
@@ -8537,23 +8281,6 @@ export type PriorityTier = {
8537
8281
  */
8538
8282
  value?: string;
8539
8283
  };
8540
- /**
8541
- * PromptResponse
8542
- */
8543
- export type PromptResponse = {
8544
- /**
8545
- * Chars
8546
- */
8547
- chars: number;
8548
- /**
8549
- * Node Count
8550
- */
8551
- node_count: number;
8552
- /**
8553
- * Prompt
8554
- */
8555
- prompt: string;
8556
- };
8557
8284
  /**
8558
8285
  * ProviderEntryResponse
8559
8286
  */
@@ -8620,7 +8347,7 @@ export type ProviderKeysResponse = {
8620
8347
  /**
8621
8348
  * PublicMessage
8622
8349
  *
8623
- * Dashboard SSE/message payload for one CoPilot / KB Builder timeline row.
8350
+ * Dashboard SSE/message payload for one CoPilot timeline row.
8624
8351
  */
8625
8352
  export type PublicMessage = {
8626
8353
  /**
@@ -10656,17 +10383,17 @@ export type TTSUsageResponse = {
10656
10383
  */
10657
10384
  export type TaskConfig = {
10658
10385
  /**
10659
- * Finish Without Result Description
10386
+ * Faqs
10660
10387
  *
10661
- * 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.
10662
10389
  */
10663
- finish_without_result_description?: string;
10390
+ faqs?: Array<FaqSelection>;
10664
10391
  /**
10665
- * Kb Ids
10392
+ * Finish Without Result Description
10666
10393
  *
10667
- * 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.
10668
10395
  */
10669
- kb_ids?: Array<string>;
10396
+ finish_without_result_description?: string;
10670
10397
  llm?: LLMSpec;
10671
10398
  /**
10672
10399
  * Max Steps
@@ -10772,17 +10499,17 @@ export type TaskOutputField = {
10772
10499
  */
10773
10500
  export type TaskPatch = {
10774
10501
  /**
10775
- * Finish Without Result Description
10502
+ * Faqs
10776
10503
  *
10777
- * 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.
10778
10505
  */
10779
- finish_without_result_description?: string | null;
10506
+ faqs?: Array<FaqSelection> | null;
10780
10507
  /**
10781
- * Kb Ids
10508
+ * Finish Without Result Description
10782
10509
  *
10783
- * 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.
10784
10511
  */
10785
- kb_ids?: Array<string> | null;
10512
+ finish_without_result_description?: string | null;
10786
10513
  llm?: LLMSpecOverride | null;
10787
10514
  /**
10788
10515
  * Max Steps
@@ -11343,19 +11070,6 @@ export type TimeWindow = {
11343
11070
  */
11344
11071
  start: string;
11345
11072
  };
11346
- /**
11347
- * TocResultResponse
11348
- */
11349
- export type TocResultResponse = {
11350
- /**
11351
- * Ok
11352
- */
11353
- ok?: boolean;
11354
- /**
11355
- * Pages
11356
- */
11357
- pages: number;
11358
- };
11359
11073
  /**
11360
11074
  * TokenRequest
11361
11075
  *
@@ -11808,7 +11522,7 @@ export type TurnMetrics = {
11808
11522
  /**
11809
11523
  * TurnPayload
11810
11524
  *
11811
- * Shared turn lifecycle for tenant conversation, CoPilot, and KB Builder SSE.
11525
+ * Shared turn lifecycle for tenant conversation and CoPilot SSE.
11812
11526
  *
11813
11527
  * The `event` field is the discriminator every SSE payload on this API carries:
11814
11528
  * it repeats the frame's `event:` line inside the JSON, so a generated client
@@ -11881,22 +11595,44 @@ export type TwilioSendersRequest = {
11881
11595
  auth_token: string;
11882
11596
  };
11883
11597
  /**
11884
- * TwilioSendersResponse
11598
+ * TwilioSendersResponse
11599
+ */
11600
+ export type TwilioSendersResponse = {
11601
+ /**
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
11885
11617
  */
11886
- export type TwilioSendersResponse = {
11618
+ export type UpdateFaqEntryRequest = {
11887
11619
  /**
11888
- * Senders
11620
+ * Answer
11889
11621
  */
11890
- senders: Array<TwilioSender>;
11622
+ answer?: string | null;
11623
+ /**
11624
+ * Question
11625
+ */
11626
+ question?: string | null;
11891
11627
  };
11892
11628
  /**
11893
- * UpdateAgentRequest
11629
+ * UpdateFaqRequest
11894
11630
  */
11895
- export type UpdateAgentRequest = {
11631
+ export type UpdateFaqRequest = {
11896
11632
  /**
11897
- * Only the fields to change.
11633
+ * Name
11898
11634
  */
11899
- config: AgentOverride;
11635
+ name: string;
11900
11636
  };
11901
11637
  /**
11902
11638
  * UsageResponse
@@ -15566,100 +15302,6 @@ export type CopilotAgentsStreamResults = {
15566
15302
  } & TurnPayload);
15567
15303
  };
15568
15304
  export type CopilotAgentsStreamResult = CopilotAgentsStreamResults[keyof CopilotAgentsStreamResults];
15569
- export type CopilotKnowledgeSendData = {
15570
- body: SendMessageRequest;
15571
- path: {
15572
- /**
15573
- * Kb Id
15574
- */
15575
- kb_id: string;
15576
- };
15577
- query?: never;
15578
- url: '/v1/copilot/knowledge/{kb_id}/messages';
15579
- };
15580
- export type CopilotKnowledgeSendErrors = {
15581
- /**
15582
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15583
- */
15584
- 400: ErrorResponse;
15585
- /**
15586
- * Missing credential, or one that is revoked or no longer a member of this organization.
15587
- */
15588
- 401: ErrorResponse;
15589
- /**
15590
- * Authenticated, but this organization role may not perform the operation.
15591
- */
15592
- 403: ErrorResponse;
15593
- /**
15594
- * No such resource in this organization.
15595
- */
15596
- 404: ErrorResponse;
15597
- /**
15598
- * The resource's current state forbids this — a name already taken, a job already running.
15599
- */
15600
- 409: ErrorResponse;
15601
- /**
15602
- * The request did not match this operation's schema; `detail.errors` lists each field.
15603
- */
15604
- 422: ErrorResponse;
15605
- /**
15606
- * Unexpected error. Every error this API returns carries this body.
15607
- */
15608
- default: ErrorResponse;
15609
- };
15610
- export type CopilotKnowledgeSendError = CopilotKnowledgeSendErrors[keyof CopilotKnowledgeSendErrors];
15611
- export type CopilotKnowledgeSendResults = {
15612
- /**
15613
- * Successful Response
15614
- */
15615
- 200: SendMessageResponse;
15616
- };
15617
- export type CopilotKnowledgeSendResult = CopilotKnowledgeSendResults[keyof CopilotKnowledgeSendResults];
15618
- export type CopilotKnowledgeStreamData = {
15619
- body?: never;
15620
- path: {
15621
- /**
15622
- * Kb Id
15623
- */
15624
- kb_id: string;
15625
- };
15626
- query?: never;
15627
- url: '/v1/copilot/knowledge/{kb_id}/stream';
15628
- };
15629
- export type CopilotKnowledgeStreamErrors = {
15630
- /**
15631
- * Missing credential, or one that is revoked or no longer a member of this organization.
15632
- */
15633
- 401: ErrorResponse;
15634
- /**
15635
- * No such resource in this organization.
15636
- */
15637
- 404: ErrorResponse;
15638
- /**
15639
- * The request did not match this operation's schema; `detail.errors` lists each field.
15640
- */
15641
- 422: ErrorResponse;
15642
- /**
15643
- * Unexpected error. Every error this API returns carries this body.
15644
- */
15645
- default: ErrorResponse;
15646
- };
15647
- export type CopilotKnowledgeStreamError = CopilotKnowledgeStreamErrors[keyof CopilotKnowledgeStreamErrors];
15648
- export type CopilotKnowledgeStreamResults = {
15649
- /**
15650
- * Response 200 Copilot.Knowledge.Stream
15651
- *
15652
- * 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.
15653
- */
15654
- 200: ({
15655
- event: 'snapshot';
15656
- } & CopilotSnapshotEvent) | ({
15657
- event: 'message';
15658
- } & CopilotMessageEvent) | ({
15659
- event: 'turn';
15660
- } & TurnPayload);
15661
- };
15662
- export type CopilotKnowledgeStreamResult = CopilotKnowledgeStreamResults[keyof CopilotKnowledgeStreamResults];
15663
15305
  export type CopilotTasksSendData = {
15664
15306
  body: SendMessageRequest;
15665
15307
  path: {
@@ -16893,7 +16535,7 @@ export type EmailSendersListResults = {
16893
16535
  200: VerifiedSendersResponse;
16894
16536
  };
16895
16537
  export type EmailSendersListResult = EmailSendersListResults[keyof EmailSendersListResults];
16896
- export type IntegrationsListData = {
16538
+ export type FaqsListData = {
16897
16539
  body?: never;
16898
16540
  path?: never;
16899
16541
  query?: {
@@ -16906,9 +16548,9 @@ export type IntegrationsListData = {
16906
16548
  */
16907
16549
  offset?: number;
16908
16550
  };
16909
- url: '/v1/integrations';
16551
+ url: '/v1/faqs';
16910
16552
  };
16911
- export type IntegrationsListErrors = {
16553
+ export type FaqsListErrors = {
16912
16554
  /**
16913
16555
  * Missing credential, or one that is revoked or no longer a member of this organization.
16914
16556
  */
@@ -16922,21 +16564,21 @@ export type IntegrationsListErrors = {
16922
16564
  */
16923
16565
  default: ErrorResponse;
16924
16566
  };
16925
- export type IntegrationsListError = IntegrationsListErrors[keyof IntegrationsListErrors];
16926
- export type IntegrationsListResults = {
16567
+ export type FaqsListError = FaqsListErrors[keyof FaqsListErrors];
16568
+ export type FaqsListResults = {
16927
16569
  /**
16928
16570
  * Successful Response
16929
16571
  */
16930
- 200: PageIntegrationResponse;
16572
+ 200: PageFaqSummary;
16931
16573
  };
16932
- export type IntegrationsListResult = IntegrationsListResults[keyof IntegrationsListResults];
16933
- export type IntegrationsCreateData = {
16934
- body: CreateIntegrationRequest;
16574
+ export type FaqsListResult = FaqsListResults[keyof FaqsListResults];
16575
+ export type FaqsCreateData = {
16576
+ body: FaqDefinition;
16935
16577
  path?: never;
16936
16578
  query?: never;
16937
- url: '/v1/integrations';
16579
+ url: '/v1/faqs';
16938
16580
  };
16939
- export type IntegrationsCreateErrors = {
16581
+ export type FaqsCreateErrors = {
16940
16582
  /**
16941
16583
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16942
16584
  */
@@ -16962,63 +16604,26 @@ export type IntegrationsCreateErrors = {
16962
16604
  */
16963
16605
  default: ErrorResponse;
16964
16606
  };
16965
- export type IntegrationsCreateError = IntegrationsCreateErrors[keyof IntegrationsCreateErrors];
16966
- export type IntegrationsCreateResults = {
16967
- /**
16968
- * Successful Response
16969
- */
16970
- 201: IntegrationResponse;
16971
- };
16972
- export type IntegrationsCreateResult = IntegrationsCreateResults[keyof IntegrationsCreateResults];
16973
- export type IntegrationsCatalogData = {
16974
- body?: never;
16975
- path?: never;
16976
- query?: {
16977
- /**
16978
- * Limit
16979
- */
16980
- limit?: number;
16981
- /**
16982
- * Offset
16983
- */
16984
- offset?: number;
16985
- };
16986
- url: '/v1/integrations/catalog';
16987
- };
16988
- export type IntegrationsCatalogErrors = {
16989
- /**
16990
- * Missing credential, or one that is revoked or no longer a member of this organization.
16991
- */
16992
- 401: ErrorResponse;
16993
- /**
16994
- * The request did not match this operation's schema; `detail.errors` lists each field.
16995
- */
16996
- 422: ErrorResponse;
16997
- /**
16998
- * Unexpected error. Every error this API returns carries this body.
16999
- */
17000
- default: ErrorResponse;
17001
- };
17002
- export type IntegrationsCatalogError = IntegrationsCatalogErrors[keyof IntegrationsCatalogErrors];
17003
- export type IntegrationsCatalogResults = {
16607
+ export type FaqsCreateError = FaqsCreateErrors[keyof FaqsCreateErrors];
16608
+ export type FaqsCreateResults = {
17004
16609
  /**
17005
16610
  * Successful Response
17006
16611
  */
17007
- 200: PageIntegrationCatalogItem;
16612
+ 201: FaqDetail;
17008
16613
  };
17009
- export type IntegrationsCatalogResult = IntegrationsCatalogResults[keyof IntegrationsCatalogResults];
17010
- export type IntegrationsDeleteData = {
16614
+ export type FaqsCreateResult = FaqsCreateResults[keyof FaqsCreateResults];
16615
+ export type FaqsDeleteData = {
17011
16616
  body?: never;
17012
16617
  path: {
17013
16618
  /**
17014
- * Integration Id
16619
+ * Faq Id
17015
16620
  */
17016
- integration_id: string;
16621
+ faq_id: string;
17017
16622
  };
17018
16623
  query?: never;
17019
- url: '/v1/integrations/{integration_id}';
16624
+ url: '/v1/faqs/{faq_id}';
17020
16625
  };
17021
- export type IntegrationsDeleteErrors = {
16626
+ export type FaqsDeleteErrors = {
17022
16627
  /**
17023
16628
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17024
16629
  */
@@ -17048,26 +16653,26 @@ export type IntegrationsDeleteErrors = {
17048
16653
  */
17049
16654
  default: ErrorResponse;
17050
16655
  };
17051
- export type IntegrationsDeleteError = IntegrationsDeleteErrors[keyof IntegrationsDeleteErrors];
17052
- export type IntegrationsDeleteResults = {
16656
+ export type FaqsDeleteError = FaqsDeleteErrors[keyof FaqsDeleteErrors];
16657
+ export type FaqsDeleteResults = {
17053
16658
  /**
17054
16659
  * Successful Response
17055
16660
  */
17056
16661
  200: OkResponse;
17057
16662
  };
17058
- export type IntegrationsDeleteResult = IntegrationsDeleteResults[keyof IntegrationsDeleteResults];
17059
- export type IntegrationsGetData = {
16663
+ export type FaqsDeleteResult = FaqsDeleteResults[keyof FaqsDeleteResults];
16664
+ export type FaqsGetData = {
17060
16665
  body?: never;
17061
16666
  path: {
17062
16667
  /**
17063
- * Integration Id
16668
+ * Faq Id
17064
16669
  */
17065
- integration_id: string;
16670
+ faq_id: string;
17066
16671
  };
17067
16672
  query?: never;
17068
- url: '/v1/integrations/{integration_id}';
16673
+ url: '/v1/faqs/{faq_id}';
17069
16674
  };
17070
- export type IntegrationsGetErrors = {
16675
+ export type FaqsGetErrors = {
17071
16676
  /**
17072
16677
  * Missing credential, or one that is revoked or no longer a member of this organization.
17073
16678
  */
@@ -17085,26 +16690,26 @@ export type IntegrationsGetErrors = {
17085
16690
  */
17086
16691
  default: ErrorResponse;
17087
16692
  };
17088
- export type IntegrationsGetError = IntegrationsGetErrors[keyof IntegrationsGetErrors];
17089
- export type IntegrationsGetResults = {
16693
+ export type FaqsGetError = FaqsGetErrors[keyof FaqsGetErrors];
16694
+ export type FaqsGetResults = {
17090
16695
  /**
17091
16696
  * Successful Response
17092
16697
  */
17093
- 200: IntegrationResponse;
16698
+ 200: FaqDetail;
17094
16699
  };
17095
- export type IntegrationsGetResult = IntegrationsGetResults[keyof IntegrationsGetResults];
17096
- export type IntegrationsUpdateData = {
17097
- body: PatchIntegrationRequest;
16700
+ export type FaqsGetResult = FaqsGetResults[keyof FaqsGetResults];
16701
+ export type FaqsUpdateData = {
16702
+ body: UpdateFaqRequest;
17098
16703
  path: {
17099
16704
  /**
17100
- * Integration Id
16705
+ * Faq Id
17101
16706
  */
17102
- integration_id: string;
16707
+ faq_id: string;
17103
16708
  };
17104
16709
  query?: never;
17105
- url: '/v1/integrations/{integration_id}';
16710
+ url: '/v1/faqs/{faq_id}';
17106
16711
  };
17107
- export type IntegrationsUpdateErrors = {
16712
+ export type FaqsUpdateErrors = {
17108
16713
  /**
17109
16714
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17110
16715
  */
@@ -17134,109 +16739,26 @@ export type IntegrationsUpdateErrors = {
17134
16739
  */
17135
16740
  default: ErrorResponse;
17136
16741
  };
17137
- export type IntegrationsUpdateError = IntegrationsUpdateErrors[keyof IntegrationsUpdateErrors];
17138
- export type IntegrationsUpdateResults = {
17139
- /**
17140
- * Successful Response
17141
- */
17142
- 200: IntegrationResponse;
17143
- };
17144
- export type IntegrationsUpdateResult = IntegrationsUpdateResults[keyof IntegrationsUpdateResults];
17145
- export type IntegrationsMcpToolsListData = {
17146
- body?: never;
17147
- path: {
17148
- /**
17149
- * Integration Id
17150
- */
17151
- integration_id: string;
17152
- };
17153
- query?: never;
17154
- url: '/v1/integrations/{integration_id}/mcp-tools';
17155
- };
17156
- export type IntegrationsMcpToolsListErrors = {
17157
- /**
17158
- * Missing credential, or one that is revoked or no longer a member of this organization.
17159
- */
17160
- 401: ErrorResponse;
17161
- /**
17162
- * No such resource in this organization.
17163
- */
17164
- 404: ErrorResponse;
17165
- /**
17166
- * The request did not match this operation's schema; `detail.errors` lists each field.
17167
- */
17168
- 422: ErrorResponse;
17169
- /**
17170
- * Unexpected error. Every error this API returns carries this body.
17171
- */
17172
- default: ErrorResponse;
17173
- };
17174
- export type IntegrationsMcpToolsListError = IntegrationsMcpToolsListErrors[keyof IntegrationsMcpToolsListErrors];
17175
- export type IntegrationsMcpToolsListResults = {
17176
- /**
17177
- * Successful Response
17178
- */
17179
- 200: IntegrationMcpToolsResponse;
17180
- };
17181
- export type IntegrationsMcpToolsListResult = IntegrationsMcpToolsListResults[keyof IntegrationsMcpToolsListResults];
17182
- export type IntegrationsTriggersListData = {
17183
- body?: never;
17184
- path: {
17185
- /**
17186
- * Integration Id
17187
- */
17188
- integration_id: string;
17189
- };
17190
- query?: {
17191
- /**
17192
- * Limit
17193
- */
17194
- limit?: number;
17195
- /**
17196
- * Offset
17197
- */
17198
- offset?: number;
17199
- };
17200
- url: '/v1/integrations/{integration_id}/triggers';
17201
- };
17202
- export type IntegrationsTriggersListErrors = {
17203
- /**
17204
- * Missing credential, or one that is revoked or no longer a member of this organization.
17205
- */
17206
- 401: ErrorResponse;
17207
- /**
17208
- * No such resource in this organization.
17209
- */
17210
- 404: ErrorResponse;
17211
- /**
17212
- * The request did not match this operation's schema; `detail.errors` lists each field.
17213
- */
17214
- 422: ErrorResponse;
17215
- /**
17216
- * Unexpected error. Every error this API returns carries this body.
17217
- */
17218
- default: ErrorResponse;
17219
- };
17220
- export type IntegrationsTriggersListError = IntegrationsTriggersListErrors[keyof IntegrationsTriggersListErrors];
17221
- export type IntegrationsTriggersListResults = {
16742
+ export type FaqsUpdateError = FaqsUpdateErrors[keyof FaqsUpdateErrors];
16743
+ export type FaqsUpdateResults = {
17222
16744
  /**
17223
16745
  * Successful Response
17224
16746
  */
17225
- 200: PageIntegrationTriggerResponse;
16747
+ 200: FaqSummary;
17226
16748
  };
17227
- export type IntegrationsTriggersListResult = IntegrationsTriggersListResults[keyof IntegrationsTriggersListResults];
17228
- export type IntegrationsTriggersCreateData = {
17229
- body: CreateIntegrationTriggerRequest;
16749
+ export type FaqsUpdateResult = FaqsUpdateResults[keyof FaqsUpdateResults];
16750
+ export type FaqsEntriesCreateData = {
16751
+ body: CreateFaqEntriesRequest;
17230
16752
  path: {
17231
16753
  /**
17232
- * Integration Id
16754
+ * Faq Id
17233
16755
  */
17234
- integration_id: string;
16756
+ faq_id: string;
17235
16757
  };
17236
16758
  query?: never;
17237
- url: '/v1/integrations/{integration_id}/triggers';
16759
+ url: '/v1/faqs/{faq_id}/entries';
17238
16760
  };
17239
- export type IntegrationsTriggersCreateErrors = {
16761
+ export type FaqsEntriesCreateErrors = {
17240
16762
  /**
17241
16763
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17242
16764
  */
@@ -17266,30 +16788,30 @@ export type IntegrationsTriggersCreateErrors = {
17266
16788
  */
17267
16789
  default: ErrorResponse;
17268
16790
  };
17269
- export type IntegrationsTriggersCreateError = IntegrationsTriggersCreateErrors[keyof IntegrationsTriggersCreateErrors];
17270
- export type IntegrationsTriggersCreateResults = {
16791
+ export type FaqsEntriesCreateError = FaqsEntriesCreateErrors[keyof FaqsEntriesCreateErrors];
16792
+ export type FaqsEntriesCreateResults = {
17271
16793
  /**
17272
16794
  * Successful Response
17273
16795
  */
17274
- 201: IntegrationTriggerResponse;
16796
+ 201: FaqEntriesResponse;
17275
16797
  };
17276
- export type IntegrationsTriggersCreateResult = IntegrationsTriggersCreateResults[keyof IntegrationsTriggersCreateResults];
17277
- export type IntegrationsTriggersDeleteData = {
16798
+ export type FaqsEntriesCreateResult = FaqsEntriesCreateResults[keyof FaqsEntriesCreateResults];
16799
+ export type FaqsEntriesDeleteData = {
17278
16800
  body?: never;
17279
16801
  path: {
17280
16802
  /**
17281
- * Integration Id
16803
+ * Faq Id
17282
16804
  */
17283
- integration_id: string;
16805
+ faq_id: string;
17284
16806
  /**
17285
- * Trigger Id
16807
+ * Entry Id
17286
16808
  */
17287
- trigger_id: string;
16809
+ entry_id: string;
17288
16810
  };
17289
16811
  query?: never;
17290
- url: '/v1/integrations/{integration_id}/triggers/{trigger_id}';
16812
+ url: '/v1/faqs/{faq_id}/entries/{entry_id}';
17291
16813
  };
17292
- export type IntegrationsTriggersDeleteErrors = {
16814
+ export type FaqsEntriesDeleteErrors = {
17293
16815
  /**
17294
16816
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17295
16817
  */
@@ -17319,30 +16841,30 @@ export type IntegrationsTriggersDeleteErrors = {
17319
16841
  */
17320
16842
  default: ErrorResponse;
17321
16843
  };
17322
- export type IntegrationsTriggersDeleteError = IntegrationsTriggersDeleteErrors[keyof IntegrationsTriggersDeleteErrors];
17323
- export type IntegrationsTriggersDeleteResults = {
16844
+ export type FaqsEntriesDeleteError = FaqsEntriesDeleteErrors[keyof FaqsEntriesDeleteErrors];
16845
+ export type FaqsEntriesDeleteResults = {
17324
16846
  /**
17325
16847
  * Successful Response
17326
16848
  */
17327
16849
  200: OkResponse;
17328
16850
  };
17329
- export type IntegrationsTriggersDeleteResult = IntegrationsTriggersDeleteResults[keyof IntegrationsTriggersDeleteResults];
17330
- export type IntegrationsTriggersUpdateData = {
17331
- body: PatchIntegrationTriggerRequest;
16851
+ export type FaqsEntriesDeleteResult = FaqsEntriesDeleteResults[keyof FaqsEntriesDeleteResults];
16852
+ export type FaqsEntriesUpdateData = {
16853
+ body: UpdateFaqEntryRequest;
17332
16854
  path: {
17333
16855
  /**
17334
- * Integration Id
16856
+ * Faq Id
17335
16857
  */
17336
- integration_id: string;
16858
+ faq_id: string;
17337
16859
  /**
17338
- * Trigger Id
16860
+ * Entry Id
17339
16861
  */
17340
- trigger_id: string;
16862
+ entry_id: string;
17341
16863
  };
17342
16864
  query?: never;
17343
- url: '/v1/integrations/{integration_id}/triggers/{trigger_id}';
16865
+ url: '/v1/faqs/{faq_id}/entries/{entry_id}';
17344
16866
  };
17345
- export type IntegrationsTriggersUpdateErrors = {
16867
+ export type FaqsEntriesUpdateErrors = {
17346
16868
  /**
17347
16869
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17348
16870
  */
@@ -17372,15 +16894,15 @@ export type IntegrationsTriggersUpdateErrors = {
17372
16894
  */
17373
16895
  default: ErrorResponse;
17374
16896
  };
17375
- export type IntegrationsTriggersUpdateError = IntegrationsTriggersUpdateErrors[keyof IntegrationsTriggersUpdateErrors];
17376
- export type IntegrationsTriggersUpdateResults = {
16897
+ export type FaqsEntriesUpdateError = FaqsEntriesUpdateErrors[keyof FaqsEntriesUpdateErrors];
16898
+ export type FaqsEntriesUpdateResults = {
17377
16899
  /**
17378
16900
  * Successful Response
17379
16901
  */
17380
- 200: IntegrationTriggerResponse;
16902
+ 200: FaqEntry;
17381
16903
  };
17382
- export type IntegrationsTriggersUpdateResult = IntegrationsTriggersUpdateResults[keyof IntegrationsTriggersUpdateResults];
17383
- export type KnowledgeListData = {
16904
+ export type FaqsEntriesUpdateResult = FaqsEntriesUpdateResults[keyof FaqsEntriesUpdateResults];
16905
+ export type IntegrationsListData = {
17384
16906
  body?: never;
17385
16907
  path?: never;
17386
16908
  query?: {
@@ -17393,9 +16915,9 @@ export type KnowledgeListData = {
17393
16915
  */
17394
16916
  offset?: number;
17395
16917
  };
17396
- url: '/v1/knowledge';
16918
+ url: '/v1/integrations';
17397
16919
  };
17398
- export type KnowledgeListErrors = {
16920
+ export type IntegrationsListErrors = {
17399
16921
  /**
17400
16922
  * Missing credential, or one that is revoked or no longer a member of this organization.
17401
16923
  */
@@ -17409,21 +16931,21 @@ export type KnowledgeListErrors = {
17409
16931
  */
17410
16932
  default: ErrorResponse;
17411
16933
  };
17412
- export type KnowledgeListError = KnowledgeListErrors[keyof KnowledgeListErrors];
17413
- export type KnowledgeListResults = {
16934
+ export type IntegrationsListError = IntegrationsListErrors[keyof IntegrationsListErrors];
16935
+ export type IntegrationsListResults = {
17414
16936
  /**
17415
16937
  * Successful Response
17416
16938
  */
17417
- 200: PageKBSummary;
16939
+ 200: PageIntegrationResponse;
17418
16940
  };
17419
- export type KnowledgeListResult = KnowledgeListResults[keyof KnowledgeListResults];
17420
- export type KnowledgeCreateData = {
17421
- body: CreateKBRequest;
16941
+ export type IntegrationsListResult = IntegrationsListResults[keyof IntegrationsListResults];
16942
+ export type IntegrationsCreateData = {
16943
+ body: CreateIntegrationRequest;
17422
16944
  path?: never;
17423
16945
  query?: never;
17424
- url: '/v1/knowledge';
16946
+ url: '/v1/integrations';
17425
16947
  };
17426
- export type KnowledgeCreateErrors = {
16948
+ export type IntegrationsCreateErrors = {
17427
16949
  /**
17428
16950
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17429
16951
  */
@@ -17449,83 +16971,34 @@ export type KnowledgeCreateErrors = {
17449
16971
  */
17450
16972
  default: ErrorResponse;
17451
16973
  };
17452
- export type KnowledgeCreateError = KnowledgeCreateErrors[keyof KnowledgeCreateErrors];
17453
- export type KnowledgeCreateResults = {
16974
+ export type IntegrationsCreateError = IntegrationsCreateErrors[keyof IntegrationsCreateErrors];
16975
+ export type IntegrationsCreateResults = {
17454
16976
  /**
17455
16977
  * Successful Response
17456
16978
  */
17457
- 201: KBSummary;
16979
+ 201: IntegrationResponse;
17458
16980
  };
17459
- export type KnowledgeCreateResult = KnowledgeCreateResults[keyof KnowledgeCreateResults];
17460
- export type KnowledgeDeleteData = {
16981
+ export type IntegrationsCreateResult = IntegrationsCreateResults[keyof IntegrationsCreateResults];
16982
+ export type IntegrationsCatalogData = {
17461
16983
  body?: never;
17462
- path: {
16984
+ path?: never;
16985
+ query?: {
17463
16986
  /**
17464
- * Kb Id
16987
+ * Limit
17465
16988
  */
17466
- kb_id: string;
17467
- };
17468
- query?: never;
17469
- url: '/v1/knowledge/{kb_id}';
17470
- };
17471
- export type KnowledgeDeleteErrors = {
17472
- /**
17473
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17474
- */
17475
- 400: ErrorResponse;
17476
- /**
17477
- * Missing credential, or one that is revoked or no longer a member of this organization.
17478
- */
17479
- 401: ErrorResponse;
17480
- /**
17481
- * Authenticated, but this organization role may not perform the operation.
17482
- */
17483
- 403: ErrorResponse;
17484
- /**
17485
- * No such resource in this organization.
17486
- */
17487
- 404: ErrorResponse;
17488
- /**
17489
- * The resource's current state forbids this — a name already taken, a job already running.
17490
- */
17491
- 409: ErrorResponse;
17492
- /**
17493
- * The request did not match this operation's schema; `detail.errors` lists each field.
17494
- */
17495
- 422: ErrorResponse;
17496
- /**
17497
- * Unexpected error. Every error this API returns carries this body.
17498
- */
17499
- default: ErrorResponse;
17500
- };
17501
- export type KnowledgeDeleteError = KnowledgeDeleteErrors[keyof KnowledgeDeleteErrors];
17502
- export type KnowledgeDeleteResults = {
17503
- /**
17504
- * Successful Response
17505
- */
17506
- 200: OkResponse;
17507
- };
17508
- export type KnowledgeDeleteResult = KnowledgeDeleteResults[keyof KnowledgeDeleteResults];
17509
- export type KnowledgeGetData = {
17510
- body?: never;
17511
- path: {
16989
+ limit?: number;
17512
16990
  /**
17513
- * Kb Id
16991
+ * Offset
17514
16992
  */
17515
- kb_id: string;
16993
+ offset?: number;
17516
16994
  };
17517
- query?: never;
17518
- url: '/v1/knowledge/{kb_id}';
16995
+ url: '/v1/integrations/catalog';
17519
16996
  };
17520
- export type KnowledgeGetErrors = {
16997
+ export type IntegrationsCatalogErrors = {
17521
16998
  /**
17522
16999
  * Missing credential, or one that is revoked or no longer a member of this organization.
17523
17000
  */
17524
17001
  401: ErrorResponse;
17525
- /**
17526
- * No such resource in this organization.
17527
- */
17528
- 404: ErrorResponse;
17529
17002
  /**
17530
17003
  * The request did not match this operation's schema; `detail.errors` lists each field.
17531
17004
  */
@@ -17535,26 +17008,26 @@ export type KnowledgeGetErrors = {
17535
17008
  */
17536
17009
  default: ErrorResponse;
17537
17010
  };
17538
- export type KnowledgeGetError = KnowledgeGetErrors[keyof KnowledgeGetErrors];
17539
- export type KnowledgeGetResults = {
17011
+ export type IntegrationsCatalogError = IntegrationsCatalogErrors[keyof IntegrationsCatalogErrors];
17012
+ export type IntegrationsCatalogResults = {
17540
17013
  /**
17541
17014
  * Successful Response
17542
17015
  */
17543
- 200: KBDetail;
17016
+ 200: PageIntegrationCatalogItem;
17544
17017
  };
17545
- export type KnowledgeGetResult = KnowledgeGetResults[keyof KnowledgeGetResults];
17546
- export type KnowledgeBuildData = {
17547
- body: BuildKBRequest;
17018
+ export type IntegrationsCatalogResult = IntegrationsCatalogResults[keyof IntegrationsCatalogResults];
17019
+ export type IntegrationsDeleteData = {
17020
+ body?: never;
17548
17021
  path: {
17549
17022
  /**
17550
- * Kb Id
17023
+ * Integration Id
17551
17024
  */
17552
- kb_id: string;
17025
+ integration_id: string;
17553
17026
  };
17554
17027
  query?: never;
17555
- url: '/v1/knowledge/{kb_id}/build';
17028
+ url: '/v1/integrations/{integration_id}';
17556
17029
  };
17557
- export type KnowledgeBuildErrors = {
17030
+ export type IntegrationsDeleteErrors = {
17558
17031
  /**
17559
17032
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17560
17033
  */
@@ -17584,26 +17057,26 @@ export type KnowledgeBuildErrors = {
17584
17057
  */
17585
17058
  default: ErrorResponse;
17586
17059
  };
17587
- export type KnowledgeBuildError = KnowledgeBuildErrors[keyof KnowledgeBuildErrors];
17588
- export type KnowledgeBuildResults = {
17060
+ export type IntegrationsDeleteError = IntegrationsDeleteErrors[keyof IntegrationsDeleteErrors];
17061
+ export type IntegrationsDeleteResults = {
17589
17062
  /**
17590
17063
  * Successful Response
17591
17064
  */
17592
- 200: BuildResultResponse;
17065
+ 200: OkResponse;
17593
17066
  };
17594
- export type KnowledgeBuildResult = KnowledgeBuildResults[keyof KnowledgeBuildResults];
17595
- export type KnowledgeEventsData = {
17067
+ export type IntegrationsDeleteResult = IntegrationsDeleteResults[keyof IntegrationsDeleteResults];
17068
+ export type IntegrationsGetData = {
17596
17069
  body?: never;
17597
17070
  path: {
17598
17071
  /**
17599
- * Kb Id
17072
+ * Integration Id
17600
17073
  */
17601
- kb_id: string;
17074
+ integration_id: string;
17602
17075
  };
17603
17076
  query?: never;
17604
- url: '/v1/knowledge/{kb_id}/events';
17077
+ url: '/v1/integrations/{integration_id}';
17605
17078
  };
17606
- export type KnowledgeEventsErrors = {
17079
+ export type IntegrationsGetErrors = {
17607
17080
  /**
17608
17081
  * Missing credential, or one that is revoked or no longer a member of this organization.
17609
17082
  */
@@ -17621,38 +17094,26 @@ export type KnowledgeEventsErrors = {
17621
17094
  */
17622
17095
  default: ErrorResponse;
17623
17096
  };
17624
- export type KnowledgeEventsError = KnowledgeEventsErrors[keyof KnowledgeEventsErrors];
17625
- export type KnowledgeEventsResults = {
17097
+ export type IntegrationsGetError = IntegrationsGetErrors[keyof IntegrationsGetErrors];
17098
+ export type IntegrationsGetResults = {
17626
17099
  /**
17627
- * Response 200 Knowledge.Events
17628
- *
17629
- * 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
17630
17101
  */
17631
- 200: ({
17632
- event: 'snapshot';
17633
- } & KbSnapshotEvent) | ({
17634
- event: 'progress';
17635
- } & KbProgressEvent) | ({
17636
- event: 'status';
17637
- } & KbStatusEvent);
17638
- };
17639
- export type KnowledgeEventsResult = KnowledgeEventsResults[keyof KnowledgeEventsResults];
17640
- export type KnowledgeNodesDeleteData = {
17641
- body?: never;
17102
+ 200: IntegrationResponse;
17103
+ };
17104
+ export type IntegrationsGetResult = IntegrationsGetResults[keyof IntegrationsGetResults];
17105
+ export type IntegrationsUpdateData = {
17106
+ body: PatchIntegrationRequest;
17642
17107
  path: {
17643
17108
  /**
17644
- * Kb Id
17645
- */
17646
- kb_id: string;
17647
- /**
17648
- * Node Id
17109
+ * Integration Id
17649
17110
  */
17650
- node_id: string;
17111
+ integration_id: string;
17651
17112
  };
17652
17113
  query?: never;
17653
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}';
17114
+ url: '/v1/integrations/{integration_id}';
17654
17115
  };
17655
- export type KnowledgeNodesDeleteErrors = {
17116
+ export type IntegrationsUpdateErrors = {
17656
17117
  /**
17657
17118
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17658
17119
  */
@@ -17682,30 +17143,26 @@ export type KnowledgeNodesDeleteErrors = {
17682
17143
  */
17683
17144
  default: ErrorResponse;
17684
17145
  };
17685
- export type KnowledgeNodesDeleteError = KnowledgeNodesDeleteErrors[keyof KnowledgeNodesDeleteErrors];
17686
- export type KnowledgeNodesDeleteResults = {
17146
+ export type IntegrationsUpdateError = IntegrationsUpdateErrors[keyof IntegrationsUpdateErrors];
17147
+ export type IntegrationsUpdateResults = {
17687
17148
  /**
17688
17149
  * Successful Response
17689
17150
  */
17690
- 200: OkResponse;
17151
+ 200: IntegrationResponse;
17691
17152
  };
17692
- export type KnowledgeNodesDeleteResult = KnowledgeNodesDeleteResults[keyof KnowledgeNodesDeleteResults];
17693
- export type KnowledgeNodesGetData = {
17153
+ export type IntegrationsUpdateResult = IntegrationsUpdateResults[keyof IntegrationsUpdateResults];
17154
+ export type IntegrationsMcpToolsListData = {
17694
17155
  body?: never;
17695
17156
  path: {
17696
17157
  /**
17697
- * Kb Id
17698
- */
17699
- kb_id: string;
17700
- /**
17701
- * Node Id
17158
+ * Integration Id
17702
17159
  */
17703
- node_id: string;
17160
+ integration_id: string;
17704
17161
  };
17705
17162
  query?: never;
17706
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}';
17163
+ url: '/v1/integrations/{integration_id}/mcp-tools';
17707
17164
  };
17708
- export type KnowledgeNodesGetErrors = {
17165
+ export type IntegrationsMcpToolsListErrors = {
17709
17166
  /**
17710
17167
  * Missing credential, or one that is revoked or no longer a member of this organization.
17711
17168
  */
@@ -17723,50 +17180,43 @@ export type KnowledgeNodesGetErrors = {
17723
17180
  */
17724
17181
  default: ErrorResponse;
17725
17182
  };
17726
- export type KnowledgeNodesGetError = KnowledgeNodesGetErrors[keyof KnowledgeNodesGetErrors];
17727
- export type KnowledgeNodesGetResults = {
17183
+ export type IntegrationsMcpToolsListError = IntegrationsMcpToolsListErrors[keyof IntegrationsMcpToolsListErrors];
17184
+ export type IntegrationsMcpToolsListResults = {
17728
17185
  /**
17729
17186
  * Successful Response
17730
17187
  */
17731
- 200: NodeContentResponse;
17188
+ 200: IntegrationMcpToolsResponse;
17732
17189
  };
17733
- export type KnowledgeNodesGetResult = KnowledgeNodesGetResults[keyof KnowledgeNodesGetResults];
17734
- export type KnowledgeNodesUpdateData = {
17735
- body: PatchNodeRequest;
17190
+ export type IntegrationsMcpToolsListResult = IntegrationsMcpToolsListResults[keyof IntegrationsMcpToolsListResults];
17191
+ export type IntegrationsTriggersListData = {
17192
+ body?: never;
17736
17193
  path: {
17737
17194
  /**
17738
- * Kb Id
17195
+ * Integration Id
17196
+ */
17197
+ integration_id: string;
17198
+ };
17199
+ query?: {
17200
+ /**
17201
+ * Limit
17739
17202
  */
17740
- kb_id: string;
17203
+ limit?: number;
17741
17204
  /**
17742
- * Node Id
17205
+ * Offset
17743
17206
  */
17744
- node_id: string;
17207
+ offset?: number;
17745
17208
  };
17746
- query?: never;
17747
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}';
17209
+ url: '/v1/integrations/{integration_id}/triggers';
17748
17210
  };
17749
- export type KnowledgeNodesUpdateErrors = {
17750
- /**
17751
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17752
- */
17753
- 400: ErrorResponse;
17211
+ export type IntegrationsTriggersListErrors = {
17754
17212
  /**
17755
17213
  * Missing credential, or one that is revoked or no longer a member of this organization.
17756
17214
  */
17757
17215
  401: ErrorResponse;
17758
- /**
17759
- * Authenticated, but this organization role may not perform the operation.
17760
- */
17761
- 403: ErrorResponse;
17762
17216
  /**
17763
17217
  * No such resource in this organization.
17764
17218
  */
17765
17219
  404: ErrorResponse;
17766
- /**
17767
- * The resource's current state forbids this — a name already taken, a job already running.
17768
- */
17769
- 409: ErrorResponse;
17770
17220
  /**
17771
17221
  * The request did not match this operation's schema; `detail.errors` lists each field.
17772
17222
  */
@@ -17776,43 +17226,46 @@ export type KnowledgeNodesUpdateErrors = {
17776
17226
  */
17777
17227
  default: ErrorResponse;
17778
17228
  };
17779
- export type KnowledgeNodesUpdateError = KnowledgeNodesUpdateErrors[keyof KnowledgeNodesUpdateErrors];
17780
- export type KnowledgeNodesUpdateResults = {
17229
+ export type IntegrationsTriggersListError = IntegrationsTriggersListErrors[keyof IntegrationsTriggersListErrors];
17230
+ export type IntegrationsTriggersListResults = {
17781
17231
  /**
17782
17232
  * Successful Response
17783
17233
  */
17784
- 200: OkResponse;
17234
+ 200: PageIntegrationTriggerResponse;
17785
17235
  };
17786
- export type KnowledgeNodesUpdateResult = KnowledgeNodesUpdateResults[keyof KnowledgeNodesUpdateResults];
17787
- export type KnowledgePagesListData = {
17788
- body?: never;
17236
+ export type IntegrationsTriggersListResult = IntegrationsTriggersListResults[keyof IntegrationsTriggersListResults];
17237
+ export type IntegrationsTriggersCreateData = {
17238
+ body: CreateIntegrationTriggerRequest;
17789
17239
  path: {
17790
17240
  /**
17791
- * Kb Id
17792
- */
17793
- kb_id: string;
17794
- };
17795
- query?: {
17796
- /**
17797
- * Limit
17798
- */
17799
- limit?: number;
17800
- /**
17801
- * Offset
17241
+ * Integration Id
17802
17242
  */
17803
- offset?: number;
17243
+ integration_id: string;
17804
17244
  };
17805
- url: '/v1/knowledge/{kb_id}/pages';
17245
+ query?: never;
17246
+ url: '/v1/integrations/{integration_id}/triggers';
17806
17247
  };
17807
- 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;
17808
17253
  /**
17809
17254
  * Missing credential, or one that is revoked or no longer a member of this organization.
17810
17255
  */
17811
17256
  401: ErrorResponse;
17257
+ /**
17258
+ * Authenticated, but this organization role may not perform the operation.
17259
+ */
17260
+ 403: ErrorResponse;
17812
17261
  /**
17813
17262
  * No such resource in this organization.
17814
17263
  */
17815
17264
  404: ErrorResponse;
17265
+ /**
17266
+ * The resource's current state forbids this — a name already taken, a job already running.
17267
+ */
17268
+ 409: ErrorResponse;
17816
17269
  /**
17817
17270
  * The request did not match this operation's schema; `detail.errors` lists each field.
17818
17271
  */
@@ -17822,34 +17275,50 @@ export type KnowledgePagesListErrors = {
17822
17275
  */
17823
17276
  default: ErrorResponse;
17824
17277
  };
17825
- export type KnowledgePagesListError = KnowledgePagesListErrors[keyof KnowledgePagesListErrors];
17826
- export type KnowledgePagesListResults = {
17278
+ export type IntegrationsTriggersCreateError = IntegrationsTriggersCreateErrors[keyof IntegrationsTriggersCreateErrors];
17279
+ export type IntegrationsTriggersCreateResults = {
17827
17280
  /**
17828
17281
  * Successful Response
17829
17282
  */
17830
- 200: PageKBPageResponse;
17283
+ 201: IntegrationTriggerResponse;
17831
17284
  };
17832
- export type KnowledgePagesListResult = KnowledgePagesListResults[keyof KnowledgePagesListResults];
17833
- export type KnowledgePromptData = {
17285
+ export type IntegrationsTriggersCreateResult = IntegrationsTriggersCreateResults[keyof IntegrationsTriggersCreateResults];
17286
+ export type IntegrationsTriggersDeleteData = {
17834
17287
  body?: never;
17835
17288
  path: {
17836
17289
  /**
17837
- * Kb Id
17290
+ * Integration Id
17291
+ */
17292
+ integration_id: string;
17293
+ /**
17294
+ * Trigger Id
17838
17295
  */
17839
- kb_id: string;
17296
+ trigger_id: string;
17840
17297
  };
17841
17298
  query?: never;
17842
- url: '/v1/knowledge/{kb_id}/prompt';
17299
+ url: '/v1/integrations/{integration_id}/triggers/{trigger_id}';
17843
17300
  };
17844
- 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;
17845
17306
  /**
17846
17307
  * Missing credential, or one that is revoked or no longer a member of this organization.
17847
17308
  */
17848
17309
  401: ErrorResponse;
17310
+ /**
17311
+ * Authenticated, but this organization role may not perform the operation.
17312
+ */
17313
+ 403: ErrorResponse;
17849
17314
  /**
17850
17315
  * No such resource in this organization.
17851
17316
  */
17852
17317
  404: ErrorResponse;
17318
+ /**
17319
+ * The resource's current state forbids this — a name already taken, a job already running.
17320
+ */
17321
+ 409: ErrorResponse;
17853
17322
  /**
17854
17323
  * The request did not match this operation's schema; `detail.errors` lists each field.
17855
17324
  */
@@ -17859,26 +17328,30 @@ export type KnowledgePromptErrors = {
17859
17328
  */
17860
17329
  default: ErrorResponse;
17861
17330
  };
17862
- export type KnowledgePromptError = KnowledgePromptErrors[keyof KnowledgePromptErrors];
17863
- export type KnowledgePromptResults = {
17331
+ export type IntegrationsTriggersDeleteError = IntegrationsTriggersDeleteErrors[keyof IntegrationsTriggersDeleteErrors];
17332
+ export type IntegrationsTriggersDeleteResults = {
17864
17333
  /**
17865
17334
  * Successful Response
17866
17335
  */
17867
- 200: PromptResponse;
17336
+ 200: OkResponse;
17868
17337
  };
17869
- export type KnowledgePromptResult = KnowledgePromptResults[keyof KnowledgePromptResults];
17870
- export type KnowledgeRegenerateTocData = {
17871
- body?: never;
17338
+ export type IntegrationsTriggersDeleteResult = IntegrationsTriggersDeleteResults[keyof IntegrationsTriggersDeleteResults];
17339
+ export type IntegrationsTriggersUpdateData = {
17340
+ body: PatchIntegrationTriggerRequest;
17872
17341
  path: {
17873
17342
  /**
17874
- * Kb Id
17343
+ * Integration Id
17344
+ */
17345
+ integration_id: string;
17346
+ /**
17347
+ * Trigger Id
17875
17348
  */
17876
- kb_id: string;
17349
+ trigger_id: string;
17877
17350
  };
17878
17351
  query?: never;
17879
- url: '/v1/knowledge/{kb_id}/toc';
17352
+ url: '/v1/integrations/{integration_id}/triggers/{trigger_id}';
17880
17353
  };
17881
- export type KnowledgeRegenerateTocErrors = {
17354
+ export type IntegrationsTriggersUpdateErrors = {
17882
17355
  /**
17883
17356
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17884
17357
  */
@@ -17908,14 +17381,14 @@ export type KnowledgeRegenerateTocErrors = {
17908
17381
  */
17909
17382
  default: ErrorResponse;
17910
17383
  };
17911
- export type KnowledgeRegenerateTocError = KnowledgeRegenerateTocErrors[keyof KnowledgeRegenerateTocErrors];
17912
- export type KnowledgeRegenerateTocResults = {
17384
+ export type IntegrationsTriggersUpdateError = IntegrationsTriggersUpdateErrors[keyof IntegrationsTriggersUpdateErrors];
17385
+ export type IntegrationsTriggersUpdateResults = {
17913
17386
  /**
17914
17387
  * Successful Response
17915
17388
  */
17916
- 200: TocResultResponse;
17389
+ 200: IntegrationTriggerResponse;
17917
17390
  };
17918
- export type KnowledgeRegenerateTocResult = KnowledgeRegenerateTocResults[keyof KnowledgeRegenerateTocResults];
17391
+ export type IntegrationsTriggersUpdateResult = IntegrationsTriggersUpdateResults[keyof IntegrationsTriggersUpdateResults];
17919
17392
  export type ObservabilityGetData = {
17920
17393
  body?: never;
17921
17394
  path?: never;