@talqing/sdk 0.8.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // This file is auto-generated by @hey-api/openapi-ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Runs = exports.Telephony = exports.Providers = exports.PhoneNumbers = exports.Accounts = exports.Streams = exports.Secrets = exports.Schemas = exports.Functions = exports.Observability = exports.Knowledge2 = exports.Pages = exports.Nodes = exports.Integrations = exports.Triggers = exports.McpTools = exports.Email = exports.Senders = exports.Batches2 = exports.Sends = exports.Recipients2 = exports.Copilot = exports.Tools = exports.Tasks = exports.Knowledge = exports.Agents2 = exports.Conversations = exports.Sessions = exports.Items2 = exports.Chats = exports.Tokens = exports.Messages = exports.Items = exports.Analysis2 = exports.Catalog = exports.Voices = exports.Elevenlabs = exports.Models = exports.Avatars = exports.Calls = exports.ScreenRecording = exports.Recording = exports.Batches = exports.Recipients = exports.Analysis = exports.ProviderKeys = exports.Billing = exports.Credits = exports.Agents = exports.Versions = void 0;
5
- exports.TalqingApi = exports.Whatsapp = exports.TwilioSenders = exports.Templates = exports.Batches3 = exports.Recipients3 = exports.Webhooks = exports.Tools2 = exports.Versions3 = exports.Tasks2 = exports.Versions2 = void 0;
4
+ exports.Tasks2 = exports.Versions2 = exports.Runs = exports.Telephony = exports.Providers = exports.PhoneNumbers = exports.Accounts = exports.Streams = exports.Secrets = exports.Schemas = exports.Functions = exports.Observability = exports.Integrations = exports.Triggers = exports.McpTools = exports.Faqs = exports.Entries = exports.Email = exports.Senders = exports.Batches2 = exports.Sends = exports.Recipients2 = exports.Copilot = exports.Tools = exports.Tasks = exports.Agents2 = exports.Conversations = exports.Sessions = exports.Items2 = exports.Chats = exports.Tokens = exports.Messages = exports.Items = exports.Analysis2 = exports.Catalog = exports.Voices = exports.Elevenlabs = exports.Models = exports.Avatars = exports.Calls = exports.ScreenRecording = exports.Recording = exports.Batches = exports.Recipients = exports.Analysis = exports.ProviderKeys = exports.Billing = exports.Credits = exports.Agents = exports.Versions = void 0;
5
+ exports.TalqingApi = exports.Whatsapp = exports.TwilioSenders = exports.Templates = exports.Batches3 = exports.Recipients3 = exports.Webhooks = exports.Tools2 = exports.Versions3 = void 0;
6
6
  const client_gen_js_1 = require("./client.gen.js");
7
7
  const index_js_1 = require("./client/index.js");
8
8
  class HeyApiClient {
@@ -261,20 +261,10 @@ class Credits extends HeyApiClient {
261
261
  /**
262
262
  * Get Credits
263
263
  *
264
- * This workspace's credit balance in this region, what it buys, and what a
265
- * top-up costs.
264
+ * This workspace's credit balance, what it buys, and what a top-up costs.
266
265
  *
267
266
  * Readable by every role: a VIEWER can start a web call, so a VIEWER must be
268
267
  * able to see why one was refused.
269
- *
270
- * This is also where credit the control plane could not deliver lands. Anything
271
- * it has issued for this workspace here — a purchase, a signup grant, a
272
- * reversal — that this region has not written yet is applied before the balance
273
- * is read. That is the backstop for a failed push, and it is a reconcile on
274
- * demand rather than a timer: the moment someone cares is the moment this page
275
- * loads, whether they arrived from the payment processor or from the "out of
276
- * credits" banner. It costs nothing when there is nothing to apply, which is
277
- * almost always.
278
268
  */
279
269
  get(parameters, options) {
280
270
  const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'topup' }] }]);
@@ -297,11 +287,6 @@ class Credits extends HeyApiClient {
297
287
  *
298
288
  * Organization admins only — spending the workspace's money is an admin act,
299
289
  * the same as storing a secret or a provider key.
300
- *
301
- * The credit lands in THIS region, and that is decided by which region's API
302
- * you called rather than by anything in the request. A slug in a body could be
303
- * pointed at the other region, where the money would then be stuck: balances
304
- * are per region and there is no transfer between them.
305
290
  */
306
291
  checkout(parameters, options) {
307
292
  const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ key: 'creditCheckoutRequest', map: 'body' }] }]);
@@ -325,7 +310,7 @@ class Credits extends HeyApiClient {
325
310
  /**
326
311
  * List Credit Ledger
327
312
  *
328
- * Every movement of this region's balance, newest first, with what caused each.
313
+ * Every movement of this workspace's balance, newest first, with what caused each.
329
314
  */
330
315
  ledger(parameters, options) {
331
316
  const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
@@ -543,6 +528,30 @@ class Recipients extends HeyApiClient {
543
528
  }
544
529
  });
545
530
  }
531
+ /**
532
+ * Delete Call Batch Recipients
533
+ *
534
+ * Remove rows that were never dialled. Not reversible; a dialled row is refused in `rejected`.
535
+ */
536
+ delete(parameters, options) {
537
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'deleteRecipientsRequest', map: 'body' }] }]);
538
+ return (options?.client ?? this.client).post({
539
+ responseStyle: 'data',
540
+ security: [{ scheme: 'bearer', type: 'http' }, {
541
+ in: 'cookie',
542
+ name: 'talqing_session',
543
+ type: 'apiKey'
544
+ }],
545
+ url: '/v1/calls/batches/{batch_id}/recipients/delete',
546
+ ...options,
547
+ ...params,
548
+ headers: {
549
+ 'Content-Type': 'application/json',
550
+ ...options?.headers,
551
+ ...params.headers
552
+ }
553
+ });
554
+ }
546
555
  }
547
556
  exports.Recipients = Recipients;
548
557
  class Batches extends HeyApiClient {
@@ -1866,59 +1875,6 @@ class Agents2 extends HeyApiClient {
1866
1875
  }
1867
1876
  }
1868
1877
  exports.Agents2 = Agents2;
1869
- class Knowledge extends HeyApiClient {
1870
- /**
1871
- * Knowledge Copilot Send Message
1872
- *
1873
- * Say something to KnowledgeCoPilot. The reply arrives on the stream, not here.
1874
- *
1875
- * Returns as soon as the turn is queued; watch `turn` and `message` frames
1876
- * on the matching `/stream` for what it does.
1877
- */
1878
- send(parameters, options) {
1879
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'kb_id' }, { key: 'sendMessageRequest', map: 'body' }] }]);
1880
- return (options?.client ?? this.client).post({
1881
- responseStyle: 'data',
1882
- security: [{ scheme: 'bearer', type: 'http' }, {
1883
- in: 'cookie',
1884
- name: 'talqing_session',
1885
- type: 'apiKey'
1886
- }],
1887
- url: '/v1/copilot/knowledge/{kb_id}/messages',
1888
- ...options,
1889
- ...params,
1890
- headers: {
1891
- 'Content-Type': 'application/json',
1892
- ...options?.headers,
1893
- ...params.headers
1894
- }
1895
- });
1896
- }
1897
- /**
1898
- * Knowledge Copilot Stream
1899
- *
1900
- * KnowledgeCoPilot's curation chat for one knowledge base.
1901
- *
1902
- * Frames: `snapshot` (the whole conversation, sent first and on every
1903
- * reconnect), `message` (one new message), `turn` (that turn's lifecycle —
1904
- * `running`, `done`, `error`, `canceled`).
1905
- */
1906
- stream(parameters, options) {
1907
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
1908
- return (options?.client ?? this.client).sse.get({
1909
- responseStyle: 'data',
1910
- security: [{ scheme: 'bearer', type: 'http' }, {
1911
- in: 'cookie',
1912
- name: 'talqing_session',
1913
- type: 'apiKey'
1914
- }],
1915
- url: '/v1/copilot/knowledge/{kb_id}/stream',
1916
- ...options,
1917
- ...params
1918
- });
1919
- }
1920
- }
1921
- exports.Knowledge = Knowledge;
1922
1878
  class Tasks extends HeyApiClient {
1923
1879
  /**
1924
1880
  * Task Copilot Send Message
@@ -2029,9 +1985,6 @@ class Copilot extends HeyApiClient {
2029
1985
  get agents() {
2030
1986
  return this._agents ?? (this._agents = new Agents2({ client: this.client }));
2031
1987
  }
2032
- get knowledge() {
2033
- return this._knowledge ?? (this._knowledge = new Knowledge({ client: this.client }));
2034
- }
2035
1988
  get tasks() {
2036
1989
  return this._tasks ?? (this._tasks = new Tasks({ client: this.client }));
2037
1990
  }
@@ -2097,6 +2050,30 @@ class Recipients2 extends HeyApiClient {
2097
2050
  }
2098
2051
  });
2099
2052
  }
2053
+ /**
2054
+ * Delete Email Batch Recipients
2055
+ *
2056
+ * Remove rows that were never sent. Not reversible; a sent row is refused in `rejected`.
2057
+ */
2058
+ delete(parameters, options) {
2059
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'deleteRecipientsRequest', map: 'body' }] }]);
2060
+ return (options?.client ?? this.client).post({
2061
+ responseStyle: 'data',
2062
+ security: [{ scheme: 'bearer', type: 'http' }, {
2063
+ in: 'cookie',
2064
+ name: 'talqing_session',
2065
+ type: 'apiKey'
2066
+ }],
2067
+ url: '/v1/email/batches/{batch_id}/recipients/delete',
2068
+ ...options,
2069
+ ...params,
2070
+ headers: {
2071
+ 'Content-Type': 'application/json',
2072
+ ...options?.headers,
2073
+ ...params.headers
2074
+ }
2075
+ });
2076
+ }
2100
2077
  /**
2101
2078
  * Patch Email Batch Recipient
2102
2079
  *
@@ -2164,58 +2141,6 @@ class Recipients2 extends HeyApiClient {
2164
2141
  }
2165
2142
  });
2166
2143
  }
2167
- /**
2168
- * Restore Email Batch Recipients
2169
- *
2170
- * Put skipped rows back. `selection: "all_eligible"` means every row a person
2171
- * skipped; an `unfillable` row is restored by filling in its cell instead.
2172
- */
2173
- restore(parameters, options) {
2174
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'selectRecipientsRequest', map: 'body' }] }]);
2175
- return (options?.client ?? this.client).post({
2176
- responseStyle: 'data',
2177
- security: [{ scheme: 'bearer', type: 'http' }, {
2178
- in: 'cookie',
2179
- name: 'talqing_session',
2180
- type: 'apiKey'
2181
- }],
2182
- url: '/v1/email/batches/{batch_id}/restore',
2183
- ...options,
2184
- ...params,
2185
- headers: {
2186
- 'Content-Type': 'application/json',
2187
- ...options?.headers,
2188
- ...params.headers
2189
- }
2190
- });
2191
- }
2192
- /**
2193
- * Skip Email Batch Recipients
2194
- *
2195
- * Take rows out of consideration. Reversible with `restore`.
2196
- *
2197
- * Accepts drafted rows and rows whose drafting failed. Takes either
2198
- * `recipient_ids` or `selection: "all_eligible"`, which here means both.
2199
- */
2200
- skip(parameters, options) {
2201
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'selectRecipientsRequest', map: 'body' }] }]);
2202
- return (options?.client ?? this.client).post({
2203
- responseStyle: 'data',
2204
- security: [{ scheme: 'bearer', type: 'http' }, {
2205
- in: 'cookie',
2206
- name: 'talqing_session',
2207
- type: 'apiKey'
2208
- }],
2209
- url: '/v1/email/batches/{batch_id}/skip',
2210
- ...options,
2211
- ...params,
2212
- headers: {
2213
- 'Content-Type': 'application/json',
2214
- ...options?.headers,
2215
- ...params.headers
2216
- }
2217
- });
2218
- }
2219
2144
  }
2220
2145
  exports.Recipients2 = Recipients2;
2221
2146
  class Sends extends HeyApiClient {
@@ -2646,75 +2571,15 @@ class Email extends HeyApiClient {
2646
2571
  }
2647
2572
  }
2648
2573
  exports.Email = Email;
2649
- class McpTools extends HeyApiClient {
2574
+ class Entries extends HeyApiClient {
2650
2575
  /**
2651
- * List Integration Mcp Tools
2652
- *
2653
- * Connect to the integration's MCP server and list every tool it offers.
2576
+ * Create Faq Entries
2654
2577
  *
2655
- * A live call to the provider, so it also proves the connection works. The
2656
- * list is unfiltered — it is what tool approval is chosen from. Which of these
2657
- * an attached agent can actually call is the integration's `allowed_tools`
2658
- * (null there means all of them). Fails if the integration is not active or
2659
- * the server is unreachable.
2660
- */
2661
- list(parameters, options) {
2662
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'integration_id' }] }]);
2663
- return (options?.client ?? this.client).get({
2664
- responseStyle: 'data',
2665
- security: [{ scheme: 'bearer', type: 'http' }, {
2666
- in: 'cookie',
2667
- name: 'talqing_session',
2668
- type: 'apiKey'
2669
- }],
2670
- url: '/v1/integrations/{integration_id}/mcp-tools',
2671
- ...options,
2672
- ...params
2673
- });
2674
- }
2675
- }
2676
- exports.McpTools = McpTools;
2677
- class Triggers extends HeyApiClient {
2678
- /**
2679
- * List Integration Triggers
2680
- *
2681
- * List the trigger deployments under an integration.
2682
- *
2683
- * A trigger binds an inbound provider event — a Telegram message — to a
2684
- * published agent version.
2685
- */
2686
- list(parameters, options) {
2687
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [
2688
- { in: 'path', key: 'integration_id' },
2689
- { in: 'query', key: 'limit' },
2690
- { in: 'query', key: 'offset' }
2691
- ] }]);
2692
- return (options?.client ?? this.client).get({
2693
- responseStyle: 'data',
2694
- security: [{ scheme: 'bearer', type: 'http' }, {
2695
- in: 'cookie',
2696
- name: 'talqing_session',
2697
- type: 'apiKey'
2698
- }],
2699
- url: '/v1/integrations/{integration_id}/triggers',
2700
- ...options,
2701
- ...params
2702
- });
2703
- }
2704
- /**
2705
- * Create Integration Trigger
2706
- *
2707
- * Deploy an agent to an inbound provider event.
2708
- *
2709
- * `reply_mode` decides what happens with the agent's answer: `public_reply`
2710
- * sends it to the customer, `internal_note` posts it privately where the
2711
- * provider supports that, `none` generates without sending.
2712
- *
2713
- * Enabling validates that the integration is active and the assigned agent is
2714
- * a published text agent, so create disabled while still wiring things up.
2578
+ * Append question/answer entries to an FAQ, all or nothing. Live at once:
2579
+ * agents using the FAQ read them from their next session.
2715
2580
  */
2716
2581
  create(parameters, options) {
2717
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'integration_id' }, { key: 'createIntegrationTriggerRequest', map: 'body' }] }]);
2582
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'faq_id' }, { key: 'createFaqEntriesRequest', map: 'body' }] }]);
2718
2583
  return (options?.client ?? this.client).post({
2719
2584
  responseStyle: 'data',
2720
2585
  security: [{ scheme: 'bearer', type: 'http' }, {
@@ -2722,7 +2587,7 @@ class Triggers extends HeyApiClient {
2722
2587
  name: 'talqing_session',
2723
2588
  type: 'apiKey'
2724
2589
  }],
2725
- url: '/v1/integrations/{integration_id}/triggers',
2590
+ url: '/v1/faqs/{faq_id}/entries',
2726
2591
  ...options,
2727
2592
  ...params,
2728
2593
  headers: {
@@ -2733,12 +2598,12 @@ class Triggers extends HeyApiClient {
2733
2598
  });
2734
2599
  }
2735
2600
  /**
2736
- * Delete Integration Trigger
2601
+ * Delete Faq Entry
2737
2602
  *
2738
- * Delete a trigger permanently. The agent stops receiving that event.
2603
+ * Delete one entry from an FAQ.
2739
2604
  */
2740
2605
  delete(parameters, options) {
2741
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'integration_id' }, { in: 'path', key: 'trigger_id' }] }]);
2606
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'faq_id' }, { in: 'path', key: 'entry_id' }] }]);
2742
2607
  return (options?.client ?? this.client).delete({
2743
2608
  responseStyle: 'data',
2744
2609
  security: [{ scheme: 'bearer', type: 'http' }, {
@@ -2746,25 +2611,21 @@ class Triggers extends HeyApiClient {
2746
2611
  name: 'talqing_session',
2747
2612
  type: 'apiKey'
2748
2613
  }],
2749
- url: '/v1/integrations/{integration_id}/triggers/{trigger_id}',
2614
+ url: '/v1/faqs/{faq_id}/entries/{entry_id}',
2750
2615
  ...options,
2751
2616
  ...params
2752
2617
  });
2753
2618
  }
2754
2619
  /**
2755
- * Patch Integration Trigger
2756
- *
2757
- * Update a trigger: reassign the agent, change reply mode, enable or
2758
- * disable it.
2620
+ * Update Faq Entry
2759
2621
  *
2760
- * Omitted fields are left unchanged, and enabling one runs the same checks
2761
- * creating it did.
2622
+ * Change one entry's question, answer or both. Live from the next session.
2762
2623
  */
2763
2624
  update(parameters, options) {
2764
2625
  const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [
2765
- { in: 'path', key: 'integration_id' },
2766
- { in: 'path', key: 'trigger_id' },
2767
- { key: 'patchIntegrationTriggerRequest', map: 'body' }
2626
+ { in: 'path', key: 'faq_id' },
2627
+ { in: 'path', key: 'entry_id' },
2628
+ { key: 'updateFaqEntryRequest', map: 'body' }
2768
2629
  ] }]);
2769
2630
  return (options?.client ?? this.client).patch({
2770
2631
  responseStyle: 'data',
@@ -2773,7 +2634,7 @@ class Triggers extends HeyApiClient {
2773
2634
  name: 'talqing_session',
2774
2635
  type: 'apiKey'
2775
2636
  }],
2776
- url: '/v1/integrations/{integration_id}/triggers/{trigger_id}',
2637
+ url: '/v1/faqs/{faq_id}/entries/{entry_id}',
2777
2638
  ...options,
2778
2639
  ...params,
2779
2640
  headers: {
@@ -2784,15 +2645,12 @@ class Triggers extends HeyApiClient {
2784
2645
  });
2785
2646
  }
2786
2647
  }
2787
- exports.Triggers = Triggers;
2788
- class Integrations extends HeyApiClient {
2648
+ exports.Entries = Entries;
2649
+ class Faqs extends HeyApiClient {
2789
2650
  /**
2790
- * List Integrations
2651
+ * List Faqs
2791
2652
  *
2792
- * List the workspace's integrations with their provider, status and config.
2793
- *
2794
- * Secret values are never returned — credential fields come back as
2795
- * `{{secrets.NAME}}` references.
2653
+ * List the workspace's FAQs by name, with how many questions each holds.
2796
2654
  */
2797
2655
  list(parameters, options) {
2798
2656
  const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
@@ -2803,26 +2661,18 @@ class Integrations extends HeyApiClient {
2803
2661
  name: 'talqing_session',
2804
2662
  type: 'apiKey'
2805
2663
  }],
2806
- url: '/v1/integrations',
2664
+ url: '/v1/faqs',
2807
2665
  ...options,
2808
2666
  ...params
2809
2667
  });
2810
2668
  }
2811
2669
  /**
2812
- * Create Integration
2813
- *
2814
- * Create a manual integration, fully configured.
2670
+ * Create Faq
2815
2671
  *
2816
- * Which of `credentials_ref`, `provider_account_info`, `mcp_config` and
2817
- * `webhook_config` a provider needs is described by its `setup_fields` in the
2818
- * integration catalog. Secret-bearing fields take a plaintext value — stored
2819
- * as a workspace secret — or an existing `{{secrets.NAME}}` reference.
2820
- *
2821
- * Leave `allowed_tools` unset to expose every tool the server lists. OAuth
2822
- * providers are connected from the dashboard instead.
2672
+ * Create an FAQ, optionally with its first question/answer entries.
2823
2673
  */
2824
2674
  create(parameters, options) {
2825
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ key: 'createIntegrationRequest', map: 'body' }] }]);
2675
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ key: 'faqDefinition', map: 'body' }] }]);
2826
2676
  return (options?.client ?? this.client).post({
2827
2677
  responseStyle: 'data',
2828
2678
  security: [{ scheme: 'bearer', type: 'http' }, {
@@ -2830,7 +2680,7 @@ class Integrations extends HeyApiClient {
2830
2680
  name: 'talqing_session',
2831
2681
  type: 'apiKey'
2832
2682
  }],
2833
- url: '/v1/integrations',
2683
+ url: '/v1/faqs',
2834
2684
  ...options,
2835
2685
  ...params,
2836
2686
  headers: {
@@ -2841,36 +2691,13 @@ class Integrations extends HeyApiClient {
2841
2691
  });
2842
2692
  }
2843
2693
  /**
2844
- * Integration Catalog
2845
- *
2846
- * List the providers that can be integrated, and how to connect each one.
2847
- *
2848
- * `auth_type` says which path a provider takes: `manual` through this API,
2849
- * `oauth` from the dashboard. `setup_fields` is the authoritative list of what
2850
- * each manual provider requires — read it rather than guessing. `capabilities`
2851
- * says whether it serves tools (MCP) or a messaging channel (triggers).
2852
- */
2853
- catalog(parameters, options) {
2854
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
2855
- return (options?.client ?? this.client).get({
2856
- responseStyle: 'data',
2857
- security: [{ scheme: 'bearer', type: 'http' }, {
2858
- in: 'cookie',
2859
- name: 'talqing_session',
2860
- type: 'apiKey'
2861
- }],
2862
- url: '/v1/integrations/catalog',
2863
- ...options,
2864
- ...params
2865
- });
2866
- }
2867
- /**
2868
- * Delete Integration
2694
+ * Delete Faq
2869
2695
  *
2870
- * Delete an integration and its triggers permanently.
2696
+ * Delete an FAQ and its entries. Refused with 409 while an agent or task
2697
+ * still attaches it.
2871
2698
  */
2872
2699
  delete(parameters, options) {
2873
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'integration_id' }] }]);
2700
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'faq_id' }] }]);
2874
2701
  return (options?.client ?? this.client).delete({
2875
2702
  responseStyle: 'data',
2876
2703
  security: [{ scheme: 'bearer', type: 'http' }, {
@@ -2878,19 +2705,18 @@ class Integrations extends HeyApiClient {
2878
2705
  name: 'talqing_session',
2879
2706
  type: 'apiKey'
2880
2707
  }],
2881
- url: '/v1/integrations/{integration_id}',
2708
+ url: '/v1/faqs/{faq_id}',
2882
2709
  ...options,
2883
2710
  ...params
2884
2711
  });
2885
2712
  }
2886
2713
  /**
2887
- * Get Integration
2714
+ * Get Faq
2888
2715
  *
2889
- * Fetch one integration: provider, status, structured config, trigger
2890
- * capabilities and inbound webhook setup state.
2716
+ * Get one FAQ with every entry, in the order they were added.
2891
2717
  */
2892
2718
  get(parameters, options) {
2893
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'integration_id' }] }]);
2719
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'faq_id' }] }]);
2894
2720
  return (options?.client ?? this.client).get({
2895
2721
  responseStyle: 'data',
2896
2722
  security: [{ scheme: 'bearer', type: 'http' }, {
@@ -2898,26 +2724,18 @@ class Integrations extends HeyApiClient {
2898
2724
  name: 'talqing_session',
2899
2725
  type: 'apiKey'
2900
2726
  }],
2901
- url: '/v1/integrations/{integration_id}',
2727
+ url: '/v1/faqs/{faq_id}',
2902
2728
  ...options,
2903
2729
  ...params
2904
2730
  });
2905
2731
  }
2906
2732
  /**
2907
- * Patch Integration
2908
- *
2909
- * Update an integration. Omitted fields are left unchanged.
2910
- *
2911
- * Sending `credentials_ref` rotates the credential. Only `active` integrations
2912
- * can be attached to agents or serve triggers.
2733
+ * Update Faq
2913
2734
  *
2914
- * `allowed_tools` replaces the approved list wholesale: exactly those tools
2915
- * become callable by every agent this integration is attached to. It cannot be
2916
- * emptied — an agent that should call nothing is an integration that should be
2917
- * disabled.
2735
+ * Rename an FAQ.
2918
2736
  */
2919
2737
  update(parameters, options) {
2920
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'integration_id' }, { key: 'patchIntegrationRequest', map: 'body' }] }]);
2738
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'faq_id' }, { key: 'updateFaqRequest', map: 'body' }] }]);
2921
2739
  return (options?.client ?? this.client).patch({
2922
2740
  responseStyle: 'data',
2923
2741
  security: [{ scheme: 'bearer', type: 'http' }, {
@@ -2925,7 +2743,7 @@ class Integrations extends HeyApiClient {
2925
2743
  name: 'talqing_session',
2926
2744
  type: 'apiKey'
2927
2745
  }],
2928
- url: '/v1/integrations/{integration_id}',
2746
+ url: '/v1/faqs/{faq_id}',
2929
2747
  ...options,
2930
2748
  ...params,
2931
2749
  headers: {
@@ -2935,46 +2753,54 @@ class Integrations extends HeyApiClient {
2935
2753
  }
2936
2754
  });
2937
2755
  }
2938
- get mcpTools() {
2939
- return this._mcpTools ?? (this._mcpTools = new McpTools({ client: this.client }));
2940
- }
2941
- get triggers() {
2942
- return this._triggers ?? (this._triggers = new Triggers({ client: this.client }));
2756
+ get entries() {
2757
+ return this._entries ?? (this._entries = new Entries({ client: this.client }));
2943
2758
  }
2944
2759
  }
2945
- exports.Integrations = Integrations;
2946
- class Nodes extends HeyApiClient {
2760
+ exports.Faqs = Faqs;
2761
+ class McpTools extends HeyApiClient {
2947
2762
  /**
2948
- * Delete Node
2763
+ * List Integration Mcp Tools
2949
2764
  *
2950
- * Drop one entry from the table of contents, permanently.
2765
+ * Connect to the integration's MCP server and list every tool it offers.
2951
2766
  *
2952
- * Its children go with it, and agents can no longer retrieve any of it.
2767
+ * A live call to the provider, so it also proves the connection works. The
2768
+ * list is unfiltered — it is what tool approval is chosen from. Which of these
2769
+ * an attached agent can actually call is the integration's `allowed_tools`
2770
+ * (null there means all of them). Fails if the integration is not active or
2771
+ * the server is unreachable.
2953
2772
  */
2954
- delete(parameters, options) {
2955
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'kb_id' }, { in: 'path', key: 'node_id' }] }]);
2956
- return (options?.client ?? this.client).delete({
2773
+ list(parameters, options) {
2774
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'integration_id' }] }]);
2775
+ return (options?.client ?? this.client).get({
2957
2776
  responseStyle: 'data',
2958
2777
  security: [{ scheme: 'bearer', type: 'http' }, {
2959
2778
  in: 'cookie',
2960
2779
  name: 'talqing_session',
2961
2780
  type: 'apiKey'
2962
2781
  }],
2963
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}',
2782
+ url: '/v1/integrations/{integration_id}/mcp-tools',
2964
2783
  ...options,
2965
2784
  ...params
2966
2785
  });
2967
2786
  }
2787
+ }
2788
+ exports.McpTools = McpTools;
2789
+ class Triggers extends HeyApiClient {
2968
2790
  /**
2969
- * Get Node
2791
+ * List Integration Triggers
2970
2792
  *
2971
- * Read one entry of the table of contents, with its full content.
2793
+ * List the trigger deployments under an integration.
2972
2794
  *
2973
- * This is the text an agent retrieves when it fetches this node. `version` is
2974
- * what `patch_node` needs for a safe edit.
2795
+ * A trigger binds an inbound provider event — a Telegram message — to a
2796
+ * published agent version.
2975
2797
  */
2976
- get(parameters, options) {
2977
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'kb_id' }, { in: 'path', key: 'node_id' }] }]);
2798
+ list(parameters, options) {
2799
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [
2800
+ { in: 'path', key: 'integration_id' },
2801
+ { in: 'query', key: 'limit' },
2802
+ { in: 'query', key: 'offset' }
2803
+ ] }]);
2978
2804
  return (options?.client ?? this.client).get({
2979
2805
  responseStyle: 'data',
2980
2806
  security: [{ scheme: 'bearer', type: 'http' }, {
@@ -2982,37 +2808,33 @@ class Nodes extends HeyApiClient {
2982
2808
  name: 'talqing_session',
2983
2809
  type: 'apiKey'
2984
2810
  }],
2985
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}',
2811
+ url: '/v1/integrations/{integration_id}/triggers',
2986
2812
  ...options,
2987
2813
  ...params
2988
2814
  });
2989
2815
  }
2990
2816
  /**
2991
- * Patch Node
2817
+ * Create Integration Trigger
2992
2818
  *
2993
- * Correct one entry's title, summary or content by hand — the way to fix a
2994
- * fact the crawl got wrong without rebuilding.
2819
+ * Deploy an agent to an inbound provider event.
2995
2820
  *
2996
- * `title` and `summary` are what the agent sees in the table of contents and
2997
- * decide whether it ever fetches this node, so keep them accurate.
2821
+ * `reply_mode` decides what happens with the agent's answer: `public_reply`
2822
+ * sends it to the customer, `internal_note` posts it privately where the
2823
+ * provider supports that, `none` generates without sending.
2998
2824
  *
2999
- * Send the `version` you read from `get_node`; a mismatch is rejected rather
3000
- * than overwriting someone else's edit.
2825
+ * Enabling validates that the integration is active and the assigned agent is
2826
+ * a published text agent, so create disabled while still wiring things up.
3001
2827
  */
3002
- update(parameters, options) {
3003
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [
3004
- { in: 'path', key: 'kb_id' },
3005
- { in: 'path', key: 'node_id' },
3006
- { key: 'patchNodeRequest', map: 'body' }
3007
- ] }]);
3008
- return (options?.client ?? this.client).patch({
2828
+ create(parameters, options) {
2829
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'integration_id' }, { key: 'createIntegrationTriggerRequest', map: 'body' }] }]);
2830
+ return (options?.client ?? this.client).post({
3009
2831
  responseStyle: 'data',
3010
2832
  security: [{ scheme: 'bearer', type: 'http' }, {
3011
2833
  in: 'cookie',
3012
2834
  name: 'talqing_session',
3013
2835
  type: 'apiKey'
3014
2836
  }],
3015
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}',
2837
+ url: '/v1/integrations/{integration_id}/triggers',
3016
2838
  ...options,
3017
2839
  ...params,
3018
2840
  headers: {
@@ -3022,82 +2844,48 @@ class Nodes extends HeyApiClient {
3022
2844
  }
3023
2845
  });
3024
2846
  }
3025
- }
3026
- exports.Nodes = Nodes;
3027
- class Pages extends HeyApiClient {
3028
- /**
3029
- * List Pages
3030
- *
3031
- * List the crawled pages and how each one transcribed.
3032
- *
3033
- * Where you look when a knowledge base is missing something: a page with a
3034
- * non-`done` status and an `error` never made it in, and `content_len` of 0
3035
- * means the URL yielded nothing worth indexing.
3036
- */
3037
- list(parameters, options) {
3038
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [
3039
- { in: 'path', key: 'kb_id' },
3040
- { in: 'query', key: 'limit' },
3041
- { in: 'query', key: 'offset' }
3042
- ] }]);
3043
- return (options?.client ?? this.client).get({
3044
- responseStyle: 'data',
3045
- security: [{ scheme: 'bearer', type: 'http' }, {
3046
- in: 'cookie',
3047
- name: 'talqing_session',
3048
- type: 'apiKey'
3049
- }],
3050
- url: '/v1/knowledge/{kb_id}/pages',
3051
- ...options,
3052
- ...params
3053
- });
3054
- }
3055
- }
3056
- exports.Pages = Pages;
3057
- class Knowledge2 extends HeyApiClient {
3058
2847
  /**
3059
- * List Kbs
3060
- *
3061
- * List the workspace's knowledge bases with their build status.
2848
+ * Delete Integration Trigger
3062
2849
  *
3063
- * A knowledge base gives an agent grounded answers over crawled content. Only
3064
- * one with status `ready` can be attached to an agent, through the agent
3065
- * config's `kb_ids`.
2850
+ * Delete a trigger permanently. The agent stops receiving that event.
3066
2851
  */
3067
- list(parameters, options) {
3068
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
3069
- return (options?.client ?? this.client).get({
2852
+ delete(parameters, options) {
2853
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'integration_id' }, { in: 'path', key: 'trigger_id' }] }]);
2854
+ return (options?.client ?? this.client).delete({
3070
2855
  responseStyle: 'data',
3071
2856
  security: [{ scheme: 'bearer', type: 'http' }, {
3072
2857
  in: 'cookie',
3073
2858
  name: 'talqing_session',
3074
2859
  type: 'apiKey'
3075
2860
  }],
3076
- url: '/v1/knowledge',
2861
+ url: '/v1/integrations/{integration_id}/triggers/{trigger_id}',
3077
2862
  ...options,
3078
2863
  ...params
3079
2864
  });
3080
2865
  }
3081
2866
  /**
3082
- * Create Kb
2867
+ * Patch Integration Trigger
3083
2868
  *
3084
- * Start a knowledge base by crawling one or more websites.
2869
+ * Update a trigger: reassign the agent, change reply mode, enable or
2870
+ * disable it.
3085
2871
  *
3086
- * Returns immediately with `status: discovering` — crawling takes minutes.
3087
- * Poll `get_kb` until `review`, then pass the URLs worth indexing to
3088
- * `build_kb`. `max_pages` caps how many discovery may find (default 1000) and
3089
- * `notes` guides how the content is transcribed and organized.
2872
+ * Omitted fields are left unchanged, and enabling one runs the same checks
2873
+ * creating it did.
3090
2874
  */
3091
- create(parameters, options) {
3092
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ key: 'createKbRequest', map: 'body' }] }]);
3093
- return (options?.client ?? this.client).post({
2875
+ update(parameters, options) {
2876
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [
2877
+ { in: 'path', key: 'integration_id' },
2878
+ { in: 'path', key: 'trigger_id' },
2879
+ { key: 'patchIntegrationTriggerRequest', map: 'body' }
2880
+ ] }]);
2881
+ return (options?.client ?? this.client).patch({
3094
2882
  responseStyle: 'data',
3095
2883
  security: [{ scheme: 'bearer', type: 'http' }, {
3096
2884
  in: 'cookie',
3097
2885
  name: 'talqing_session',
3098
2886
  type: 'apiKey'
3099
2887
  }],
3100
- url: '/v1/knowledge',
2888
+ url: '/v1/integrations/{integration_id}/triggers/{trigger_id}',
3101
2889
  ...options,
3102
2890
  ...params,
3103
2891
  headers: {
@@ -3107,115 +2895,114 @@ class Knowledge2 extends HeyApiClient {
3107
2895
  }
3108
2896
  });
3109
2897
  }
2898
+ }
2899
+ exports.Triggers = Triggers;
2900
+ class Integrations extends HeyApiClient {
3110
2901
  /**
3111
- * Delete Kb
2902
+ * List Integrations
3112
2903
  *
3113
- * Delete a knowledge base and everything crawled into it, permanently.
2904
+ * List the workspace's integrations with their provider, status and config.
3114
2905
  *
3115
- * Rebuilding means crawling the site again. Agents that list it in `kb_ids`
3116
- * lose those grounded answers, so detach it there first.
2906
+ * Secret values are never returned — credential fields come back as
2907
+ * `{{secrets.NAME}}` references.
3117
2908
  */
3118
- delete(parameters, options) {
3119
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3120
- return (options?.client ?? this.client).delete({
2909
+ list(parameters, options) {
2910
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
2911
+ return (options?.client ?? this.client).get({
3121
2912
  responseStyle: 'data',
3122
2913
  security: [{ scheme: 'bearer', type: 'http' }, {
3123
2914
  in: 'cookie',
3124
2915
  name: 'talqing_session',
3125
2916
  type: 'apiKey'
3126
2917
  }],
3127
- url: '/v1/knowledge/{kb_id}',
2918
+ url: '/v1/integrations',
3128
2919
  ...options,
3129
2920
  ...params
3130
2921
  });
3131
2922
  }
3132
2923
  /**
3133
- * Get Kb
2924
+ * Create Integration
2925
+ *
2926
+ * Create a manual integration, fully configured.
3134
2927
  *
3135
- * Read one knowledge base: build status, progress and content tree.
2928
+ * Which of `credentials_ref`, `provider_account_info`, `mcp_config` and
2929
+ * `webhook_config` a provider needs is described by its `setup_fields` in the
2930
+ * integration catalog. Secret-bearing fields take a plaintext value — stored
2931
+ * as a workspace secret — or an existing `{{secrets.NAME}}` reference.
3136
2932
  *
3137
- * `status` walks `discovering` -> `review` -> `transcribing` -> `generating`
3138
- * -> `ready`, with `error` set if it stopped. At `review`, `discovered` holds
3139
- * the crawled URLs awaiting your selection; once ready, `tree` is the table of
3140
- * contents. This is the endpoint to poll while a build runs.
2933
+ * Leave `allowed_tools` unset to expose every tool the server lists. OAuth
2934
+ * providers are connected from the dashboard instead.
3141
2935
  */
3142
- get(parameters, options) {
3143
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3144
- return (options?.client ?? this.client).get({
2936
+ create(parameters, options) {
2937
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ key: 'createIntegrationRequest', map: 'body' }] }]);
2938
+ return (options?.client ?? this.client).post({
3145
2939
  responseStyle: 'data',
3146
2940
  security: [{ scheme: 'bearer', type: 'http' }, {
3147
2941
  in: 'cookie',
3148
2942
  name: 'talqing_session',
3149
2943
  type: 'apiKey'
3150
2944
  }],
3151
- url: '/v1/knowledge/{kb_id}',
2945
+ url: '/v1/integrations',
3152
2946
  ...options,
3153
- ...params
2947
+ ...params,
2948
+ headers: {
2949
+ 'Content-Type': 'application/json',
2950
+ ...options?.headers,
2951
+ ...params.headers
2952
+ }
3154
2953
  });
3155
2954
  }
3156
2955
  /**
3157
- * Build Kb
2956
+ * Integration Catalog
3158
2957
  *
3159
- * Index the chosen pages, then write the table of contents.
2958
+ * List the providers that can be integrated, and how to connect each one.
3160
2959
  *
3161
- * Call this once the knowledge base reaches `review`, passing the subset of
3162
- * `discovered` URLs worth indexing — the KB is only as good as that choice.
3163
- * Returns as soon as the work is queued; poll `get_kb` until `ready`, which is
3164
- * when it can be attached to an agent.
2960
+ * `auth_type` says which path a provider takes: `manual` through this API,
2961
+ * `oauth` from the dashboard. `setup_fields` is the authoritative list of what
2962
+ * each manual provider requires — read it rather than guessing. `capabilities`
2963
+ * says whether it serves tools (MCP) or a messaging channel (triggers).
3165
2964
  */
3166
- build(parameters, options) {
3167
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'kb_id' }, { key: 'buildKbRequest', map: 'body' }] }]);
3168
- return (options?.client ?? this.client).post({
2965
+ catalog(parameters, options) {
2966
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
2967
+ return (options?.client ?? this.client).get({
3169
2968
  responseStyle: 'data',
3170
2969
  security: [{ scheme: 'bearer', type: 'http' }, {
3171
2970
  in: 'cookie',
3172
2971
  name: 'talqing_session',
3173
2972
  type: 'apiKey'
3174
2973
  }],
3175
- url: '/v1/knowledge/{kb_id}/build',
2974
+ url: '/v1/integrations/catalog',
3176
2975
  ...options,
3177
- ...params,
3178
- headers: {
3179
- 'Content-Type': 'application/json',
3180
- ...options?.headers,
3181
- ...params.headers
3182
- }
2976
+ ...params
3183
2977
  });
3184
2978
  }
3185
2979
  /**
3186
- * Events
3187
- *
3188
- * Watch one knowledge base build: `snapshot` first, then `progress` and `status`.
2980
+ * Delete Integration
3189
2981
  *
3190
- * `progress` carries the per-stage counts, `status` the terminal verdict
3191
- * (`ready`, or an `error`). The same state is readable at any time with
3192
- * `get_kb`; this is the live view of it.
2982
+ * Delete an integration and its triggers permanently.
3193
2983
  */
3194
- events(parameters, options) {
3195
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3196
- return (options?.client ?? this.client).sse.get({
2984
+ delete(parameters, options) {
2985
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'integration_id' }] }]);
2986
+ return (options?.client ?? this.client).delete({
3197
2987
  responseStyle: 'data',
3198
2988
  security: [{ scheme: 'bearer', type: 'http' }, {
3199
2989
  in: 'cookie',
3200
2990
  name: 'talqing_session',
3201
2991
  type: 'apiKey'
3202
2992
  }],
3203
- url: '/v1/knowledge/{kb_id}/events',
2993
+ url: '/v1/integrations/{integration_id}',
3204
2994
  ...options,
3205
2995
  ...params
3206
2996
  });
3207
2997
  }
3208
2998
  /**
3209
- * Get Kb Prompt
3210
- *
3211
- * The table of contents exactly as an agent using this KB is given it.
2999
+ * Get Integration
3212
3000
  *
3213
- * Read it to judge what the agent can actually find — if a topic reads
3214
- * vaguely here, the agent will not know to fetch it. `chars` is how much of
3215
- * the agent's context this KB occupies.
3001
+ * Fetch one integration: provider, status, structured config, trigger
3002
+ * capabilities and inbound webhook setup state.
3216
3003
  */
3217
- prompt(parameters, options) {
3218
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3004
+ get(parameters, options) {
3005
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'integration_id' }] }]);
3219
3006
  return (options?.client ?? this.client).get({
3220
3007
  responseStyle: 'data',
3221
3008
  security: [{ scheme: 'bearer', type: 'http' }, {
@@ -3223,42 +3010,51 @@ class Knowledge2 extends HeyApiClient {
3223
3010
  name: 'talqing_session',
3224
3011
  type: 'apiKey'
3225
3012
  }],
3226
- url: '/v1/knowledge/{kb_id}/prompt',
3013
+ url: '/v1/integrations/{integration_id}',
3227
3014
  ...options,
3228
3015
  ...params
3229
3016
  });
3230
3017
  }
3231
3018
  /**
3232
- * Regenerate Toc
3019
+ * Patch Integration
3020
+ *
3021
+ * Update an integration. Omitted fields are left unchanged.
3233
3022
  *
3234
- * Rewrite the table of contents from the pages already indexed.
3023
+ * Sending `credentials_ref` rotates the credential. Only `active` integrations
3024
+ * can be attached to agents or serve triggers.
3235
3025
  *
3236
- * The repair for a knowledge base whose structure came out wrong, or whose
3237
- * build failed at the last stage: it re-runs only that stage, so the site is
3238
- * not crawled or transcribed again.
3026
+ * `allowed_tools` replaces the approved list wholesale: exactly those tools
3027
+ * become callable by every agent this integration is attached to. It cannot be
3028
+ * emptied — an agent that should call nothing is an integration that should be
3029
+ * disabled.
3239
3030
  */
3240
- regenerateToc(parameters, options) {
3241
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3242
- return (options?.client ?? this.client).post({
3031
+ update(parameters, options) {
3032
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'integration_id' }, { key: 'patchIntegrationRequest', map: 'body' }] }]);
3033
+ return (options?.client ?? this.client).patch({
3243
3034
  responseStyle: 'data',
3244
3035
  security: [{ scheme: 'bearer', type: 'http' }, {
3245
3036
  in: 'cookie',
3246
3037
  name: 'talqing_session',
3247
3038
  type: 'apiKey'
3248
3039
  }],
3249
- url: '/v1/knowledge/{kb_id}/toc',
3040
+ url: '/v1/integrations/{integration_id}',
3250
3041
  ...options,
3251
- ...params
3042
+ ...params,
3043
+ headers: {
3044
+ 'Content-Type': 'application/json',
3045
+ ...options?.headers,
3046
+ ...params.headers
3047
+ }
3252
3048
  });
3253
3049
  }
3254
- get nodes() {
3255
- return this._nodes ?? (this._nodes = new Nodes({ client: this.client }));
3050
+ get mcpTools() {
3051
+ return this._mcpTools ?? (this._mcpTools = new McpTools({ client: this.client }));
3256
3052
  }
3257
- get pages() {
3258
- return this._pages ?? (this._pages = new Pages({ client: this.client }));
3053
+ get triggers() {
3054
+ return this._triggers ?? (this._triggers = new Triggers({ client: this.client }));
3259
3055
  }
3260
3056
  }
3261
- exports.Knowledge2 = Knowledge2;
3057
+ exports.Integrations = Integrations;
3262
3058
  class Observability extends HeyApiClient {
3263
3059
  /**
3264
3060
  * Get Observability
@@ -4765,36 +4561,12 @@ class Recipients3 extends HeyApiClient {
4765
4561
  });
4766
4562
  }
4767
4563
  /**
4768
- * Restore Whatsapp Batch Recipients
4769
- *
4770
- * Put rows a person skipped back. A row skipped for its cells returns when they are fixed.
4771
- */
4772
- restore(parameters, options) {
4773
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'selectRecipientsRequest', map: 'body' }] }]);
4774
- return (options?.client ?? this.client).post({
4775
- responseStyle: 'data',
4776
- security: [{ scheme: 'bearer', type: 'http' }, {
4777
- in: 'cookie',
4778
- name: 'talqing_session',
4779
- type: 'apiKey'
4780
- }],
4781
- url: '/v1/whatsapp/batches/{batch_id}/recipients/restore',
4782
- ...options,
4783
- ...params,
4784
- headers: {
4785
- 'Content-Type': 'application/json',
4786
- ...options?.headers,
4787
- ...params.headers
4788
- }
4789
- });
4790
- }
4791
- /**
4792
- * Skip Whatsapp Batch Recipients
4564
+ * Delete Whatsapp Batch Recipients
4793
4565
  *
4794
- * Take ready rows out of the send. Reversible with restore.
4566
+ * Remove rows that were never sent. Not reversible; a sent row is refused in `rejected`.
4795
4567
  */
4796
- skip(parameters, options) {
4797
- const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'selectRecipientsRequest', map: 'body' }] }]);
4568
+ delete(parameters, options) {
4569
+ const params = (0, index_js_1.buildClientParams)([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'deleteRecipientsRequest', map: 'body' }] }]);
4798
4570
  return (options?.client ?? this.client).post({
4799
4571
  responseStyle: 'data',
4800
4572
  security: [{ scheme: 'bearer', type: 'http' }, {
@@ -4802,7 +4574,7 @@ class Recipients3 extends HeyApiClient {
4802
4574
  name: 'talqing_session',
4803
4575
  type: 'apiKey'
4804
4576
  }],
4805
- url: '/v1/whatsapp/batches/{batch_id}/recipients/skip',
4577
+ url: '/v1/whatsapp/batches/{batch_id}/recipients/delete',
4806
4578
  ...options,
4807
4579
  ...params,
4808
4580
  headers: {
@@ -5164,12 +4936,12 @@ class TalqingApi extends HeyApiClient {
5164
4936
  get email() {
5165
4937
  return this._email ?? (this._email = new Email({ client: this.client }));
5166
4938
  }
4939
+ get faqs() {
4940
+ return this._faqs ?? (this._faqs = new Faqs({ client: this.client }));
4941
+ }
5167
4942
  get integrations() {
5168
4943
  return this._integrations ?? (this._integrations = new Integrations({ client: this.client }));
5169
4944
  }
5170
- get knowledge() {
5171
- return this._knowledge ?? (this._knowledge = new Knowledge2({ client: this.client }));
5172
- }
5173
4945
  get observability() {
5174
4946
  return this._observability ?? (this._observability = new Observability({ client: this.client }));
5175
4947
  }