@naturali/sdk 0.41.0 → 0.42.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.
package/dist/index.cjs CHANGED
@@ -1344,7 +1344,11 @@ var Knowledge = class {
1344
1344
  /**
1345
1345
  * Create a document
1346
1346
  *
1347
- * Add an inline-text document to the collection. The platform ingests the content (chunk + embed) and records the document's ingestion status. File upload (PDF/binary) is a deliberate follow-up.
1347
+ * Add a document to the collection, from **inline text** (`content`) or from an **uploaded file** (`file`, base64, plus `content_type` and `filename`) exactly one of the two.
1348
+ *
1349
+ * `application/pdf`, `text/plain` and `text/markdown` are extracted natively. Any other media type needs a converter (`POST /v1/projects/{project_id}/knowledge/converters`) registered for it in the project; without one the request is rejected with `unsupported_content_type` and no document is created.
1350
+ *
1351
+ * Ingestion (extract → chunk → embed) runs in the background: the document comes back `pending` and becomes `indexed` or `failed`, which is announced by the `knowledge.document_ingested` / `knowledge.ingest_failed` webhook events.
1348
1352
  *
1349
1353
  */
1350
1354
  static createKnowledgeDocument(options) {
@@ -1389,6 +1393,86 @@ var Knowledge = class {
1389
1393
  ...options
1390
1394
  });
1391
1395
  }
1396
+ /**
1397
+ * List converters
1398
+ *
1399
+ * Lists the media converters registered in the project.
1400
+ */
1401
+ static listKnowledgeConverters(options) {
1402
+ return (options.client ?? client).get({
1403
+ url: "/v1/projects/{project_id}/knowledge/converters",
1404
+ ...options
1405
+ });
1406
+ }
1407
+ /**
1408
+ * Create a converter
1409
+ *
1410
+ * Register a converter for a media type the platform cannot extract natively, so files of that type become ingestable documents like any other. A converter maps a `content_type` glob (`image*`, `audio/mpeg`, …) onto one of two workers:
1411
+ *
1412
+ * - an **agent** (`agent_id`) — the file is handed to a
1413
+ * multimodal model with a fixed "extract all the text" instruction and
1414
+ * its answer becomes the document text. The shortest path for images
1415
+ * and scanned PDFs; nothing to map.
1416
+ *
1417
+ * - a **tool** (`tool_id`) — the file is passed to an
1418
+ * `http` tool as `{ content_type, filename, data_base64 }`, and
1419
+ * whatever string the tool returns becomes the document text. The path
1420
+ * for dedicated non-chat APIs (speech-to-text, a specialist OCR
1421
+ * engine); use the tool's `execute.body_mode: multipart` for
1422
+ * form-data endpoints and its `output_mapping` to reduce a JSON
1423
+ * response to the bare string.
1424
+ *
1425
+ *
1426
+ * Exactly one of `agent_id` / `tool_id`, and one converter per `content_type` in a project.
1427
+ *
1428
+ */
1429
+ static createKnowledgeConverter(options) {
1430
+ return (options.client ?? client).post({
1431
+ url: "/v1/projects/{project_id}/knowledge/converters",
1432
+ ...options,
1433
+ headers: {
1434
+ "Content-Type": "application/json",
1435
+ ...options.headers
1436
+ }
1437
+ });
1438
+ }
1439
+ /**
1440
+ * Delete a converter
1441
+ *
1442
+ * Removes the converter. Documents already ingested through it are untouched; new files of that media type stop being ingestable until another converter covers them.
1443
+ *
1444
+ */
1445
+ static deleteKnowledgeConverter(options) {
1446
+ return (options.client ?? client).delete({
1447
+ url: "/v1/projects/{project_id}/knowledge/converters/{converter_id}",
1448
+ ...options
1449
+ });
1450
+ }
1451
+ /**
1452
+ * Get a converter
1453
+ */
1454
+ static getKnowledgeConverter(options) {
1455
+ return (options.client ?? client).get({
1456
+ url: "/v1/projects/{project_id}/knowledge/converters/{converter_id}",
1457
+ ...options
1458
+ });
1459
+ }
1460
+ /**
1461
+ * Update a converter
1462
+ *
1463
+ * Change the worker or the chunking defaults. At least one field is required; `agent_id` and `tool_id` stay mutually exclusive, so setting one clears the other.
1464
+ *
1465
+ */
1466
+ static updateKnowledgeConverter(options) {
1467
+ return (options.client ?? client).patch({
1468
+ url: "/v1/projects/{project_id}/knowledge/converters/{converter_id}",
1469
+ ...options,
1470
+ headers: {
1471
+ "Content-Type": "application/json",
1472
+ ...options.headers
1473
+ }
1474
+ });
1475
+ }
1392
1476
  };
1393
1477
  var Models = class {
1394
1478
  /**
package/dist/index.d.cts CHANGED
@@ -1460,6 +1460,11 @@ type KnowledgeDocument = {
1460
1460
  collection_id: string;
1461
1461
  project_id: string;
1462
1462
  filename: string | null;
1463
+ /**
1464
+ * Media type of the source file; null for an inline-text document.
1465
+ *
1466
+ */
1467
+ content_type: string | null;
1463
1468
  /**
1464
1469
  * Ingestion status (API.md §4, K1). `pending` — enqueued/processing; `indexed` — fully embedded and retrievable; `failed` — ingestion error (see `error`).
1465
1470
  *
@@ -1473,6 +1478,11 @@ type KnowledgeDocument = {
1473
1478
  * Source size in bytes.
1474
1479
  */
1475
1480
  size: number | null;
1481
+ /**
1482
+ * Number of embedded chunks the document was split into; null until ingestion finishes.
1483
+ *
1484
+ */
1485
+ chunk_count: number | null;
1476
1486
  /**
1477
1487
  * Text content — present on get when indexed, null on list.
1478
1488
  */
@@ -1480,19 +1490,48 @@ type KnowledgeDocument = {
1480
1490
  created_at: Date;
1481
1491
  updated_at: Date;
1482
1492
  };
1493
+ /**
1494
+ * Exactly one of `content` (inline text) or `file` (a base64-encoded upload). `file` additionally requires `content_type` and `filename`.
1495
+ *
1496
+ */
1483
1497
  type KnowledgeDocumentCreate = {
1484
1498
  /**
1485
- * The document's text content.
1499
+ * The document's text content. Mutually exclusive with `file`.
1486
1500
  */
1487
- content: string;
1501
+ content?: string;
1502
+ /**
1503
+ * The file's bytes, base64-encoded. Mutually exclusive with `content`.
1504
+ *
1505
+ */
1506
+ file?: string;
1488
1507
  /**
1489
- * A label for the document; also its logical filename.
1508
+ * Media type of `file`. `application/pdf`, `text/plain` and `text/markdown` are extracted natively; anything else needs a matching converter in the project. Required with `file`.
1509
+ *
1510
+ */
1511
+ content_type?: string;
1512
+ /**
1513
+ * A label for the document; also its logical filename. Required with `file`.
1514
+ *
1490
1515
  */
1491
1516
  filename?: string;
1492
1517
  /**
1493
1518
  * Human-readable title.
1494
1519
  */
1495
1520
  title?: string;
1521
+ /**
1522
+ * How the extracted text is split for embedding. `page` (the default) makes one chunk per page, which is what lets a retrieved chunk cite a page number; `size` makes fixed-width character windows, which retrieves more sharply on dense pages at the cost of that citation; `whole` keeps the document as a single chunk. Ignored for inline text.
1523
+ *
1524
+ */
1525
+ chunk_strategy?: 'page' | 'size' | 'whole';
1526
+ /**
1527
+ * Window width in characters, when `chunk_strategy` is `size`.
1528
+ */
1529
+ chunk_size?: number;
1530
+ /**
1531
+ * Characters of overlap between consecutive windows, when `chunk_strategy` is `size`. Must be smaller than `chunk_size`.
1532
+ *
1533
+ */
1534
+ chunk_overlap?: number;
1496
1535
  };
1497
1536
  type KnowledgeDocumentList = {
1498
1537
  data: Array<KnowledgeDocument>;
@@ -1501,6 +1540,103 @@ type KnowledgeDocumentList = {
1501
1540
  */
1502
1541
  next_cursor: string | null;
1503
1542
  };
1543
+ type KnowledgeConverter = {
1544
+ /**
1545
+ * Public converter ID (igr_ prefix).
1546
+ */
1547
+ id: string;
1548
+ project_id: string;
1549
+ /**
1550
+ * The media-type glob this converter claims, matched against an uploaded file's `content_type`.
1551
+ *
1552
+ */
1553
+ content_type: string;
1554
+ /**
1555
+ * The agent that converts the file; null for a tool converter.
1556
+ */
1557
+ agent_id: string | null;
1558
+ /**
1559
+ * The tool that converts the file; null for an agent converter.
1560
+ */
1561
+ tool_id: string | null;
1562
+ /**
1563
+ * Fixed arguments merged into every call to a tool converter (e.g. `{ "language": "en" }`). Null for an agent converter.
1564
+ *
1565
+ */
1566
+ preset_parameters: {
1567
+ [key: string]: unknown;
1568
+ } | null;
1569
+ /**
1570
+ * What to do for a media type the platform *can* extract natively (PDF, text, markdown). `first` — try native extraction and fall back to the converter only when it yields no text, which is what makes a converter a scanned-PDF fallback; `skip` — always convert.
1571
+ *
1572
+ */
1573
+ native_extraction: 'first' | 'skip';
1574
+ /**
1575
+ * Default chunking for documents this converter produces, overridable per document at create time.
1576
+ *
1577
+ */
1578
+ chunk_strategy: 'page' | 'size' | 'whole';
1579
+ chunk_size: number | null;
1580
+ chunk_overlap: number | null;
1581
+ created_at: Date;
1582
+ updated_at: Date;
1583
+ };
1584
+ /**
1585
+ * Exactly one of `agent_id` or `tool_id` is required.
1586
+ */
1587
+ type KnowledgeConverterCreate = {
1588
+ /**
1589
+ * The media-type glob to claim — an exact type (`audio/mpeg`) or a `*` wildcard on the subtype (`image*`).
1590
+ *
1591
+ */
1592
+ content_type: string;
1593
+ /**
1594
+ * An agent in this project, used as the converter.
1595
+ */
1596
+ agent_id?: string;
1597
+ /**
1598
+ * An `http` tool in this project, used as the converter.
1599
+ */
1600
+ tool_id?: string;
1601
+ /**
1602
+ * Fixed arguments merged into every tool-converter call.
1603
+ */
1604
+ preset_parameters?: {
1605
+ [key: string]: unknown;
1606
+ };
1607
+ native_extraction?: 'first' | 'skip';
1608
+ chunk_strategy?: 'page' | 'size' | 'whole';
1609
+ chunk_size?: number;
1610
+ chunk_overlap?: number;
1611
+ };
1612
+ /**
1613
+ * At least one field must be present.
1614
+ */
1615
+ type KnowledgeConverterUpdate = {
1616
+ content_type?: string;
1617
+ /**
1618
+ * Switches the converter to this agent, clearing `tool_id`.
1619
+ */
1620
+ agent_id?: string;
1621
+ /**
1622
+ * Switches the converter to this tool, clearing `agent_id`.
1623
+ */
1624
+ tool_id?: string;
1625
+ preset_parameters?: {
1626
+ [key: string]: unknown;
1627
+ } | null;
1628
+ native_extraction?: 'first' | 'skip';
1629
+ chunk_strategy?: 'page' | 'size' | 'whole';
1630
+ chunk_size?: number;
1631
+ chunk_overlap?: number;
1632
+ };
1633
+ type KnowledgeConverterList = {
1634
+ data: Array<KnowledgeConverter>;
1635
+ /**
1636
+ * Cursor for the next page, or null at the end.
1637
+ */
1638
+ next_cursor: string | null;
1639
+ };
1504
1640
  type KnowledgeQueryRequest = {
1505
1641
  /**
1506
1642
  * The question to preview retrieval for.
@@ -2491,6 +2627,10 @@ type CollectionId = string;
2491
2627
  * Knowledge document public ID (doc_ prefix) — the runtime document id.
2492
2628
  */
2493
2629
  type DocumentId = string;
2630
+ /**
2631
+ * Knowledge converter public ID (igr_ prefix).
2632
+ */
2633
+ type ConverterId = string;
2494
2634
  /**
2495
2635
  * Provider public ID (aip_ prefix).
2496
2636
  */
@@ -4658,6 +4798,10 @@ type CreateKnowledgeDocumentErrors = {
4658
4798
  * The resource does not exist (existence is not leaked).
4659
4799
  */
4660
4800
  404: ErrorResponse;
4801
+ /**
4802
+ * The uploaded file exceeds the maximum size.
4803
+ */
4804
+ 413: ErrorResponse;
4661
4805
  /**
4662
4806
  * The upstream runtime could not complete the operation.
4663
4807
  */
@@ -4794,6 +4938,214 @@ type ReingestKnowledgeDocumentResponses = {
4794
4938
  202: KnowledgeDocument;
4795
4939
  };
4796
4940
  type ReingestKnowledgeDocumentResponse = ReingestKnowledgeDocumentResponses[keyof ReingestKnowledgeDocumentResponses];
4941
+ type ListKnowledgeConvertersData = {
4942
+ body?: never;
4943
+ path: {
4944
+ /**
4945
+ * Project public ID (proj_ prefix).
4946
+ */
4947
+ project_id: string;
4948
+ };
4949
+ query?: {
4950
+ /**
4951
+ * Maximum items per page.
4952
+ */
4953
+ limit?: number;
4954
+ /**
4955
+ * Opaque pagination cursor from a previous response's next_cursor.
4956
+ */
4957
+ cursor?: string;
4958
+ };
4959
+ url: '/v1/projects/{project_id}/knowledge/converters';
4960
+ };
4961
+ type ListKnowledgeConvertersErrors = {
4962
+ /**
4963
+ * Missing or invalid credentials.
4964
+ */
4965
+ 401: ErrorResponse;
4966
+ /**
4967
+ * The resource does not exist (existence is not leaked).
4968
+ */
4969
+ 404: ErrorResponse;
4970
+ /**
4971
+ * The upstream runtime could not complete the operation.
4972
+ */
4973
+ 502: ErrorResponse;
4974
+ };
4975
+ type ListKnowledgeConvertersError = ListKnowledgeConvertersErrors[keyof ListKnowledgeConvertersErrors];
4976
+ type ListKnowledgeConvertersResponses = {
4977
+ /**
4978
+ * A page of converters.
4979
+ */
4980
+ 200: KnowledgeConverterList;
4981
+ };
4982
+ type ListKnowledgeConvertersResponse = ListKnowledgeConvertersResponses[keyof ListKnowledgeConvertersResponses];
4983
+ type CreateKnowledgeConverterData = {
4984
+ body: KnowledgeConverterCreate;
4985
+ headers?: {
4986
+ /**
4987
+ * Client-supplied key to make this mutating POST idempotent.
4988
+ */
4989
+ 'Idempotency-Key'?: string;
4990
+ };
4991
+ path: {
4992
+ /**
4993
+ * Project public ID (proj_ prefix).
4994
+ */
4995
+ project_id: string;
4996
+ };
4997
+ query?: never;
4998
+ url: '/v1/projects/{project_id}/knowledge/converters';
4999
+ };
5000
+ type CreateKnowledgeConverterErrors = {
5001
+ /**
5002
+ * The request was malformed or failed validation.
5003
+ */
5004
+ 400: ErrorResponse;
5005
+ /**
5006
+ * Missing or invalid credentials.
5007
+ */
5008
+ 401: ErrorResponse;
5009
+ /**
5010
+ * The resource does not exist (existence is not leaked).
5011
+ */
5012
+ 404: ErrorResponse;
5013
+ /**
5014
+ * The request conflicts with the resource's current state.
5015
+ */
5016
+ 409: ErrorResponse;
5017
+ /**
5018
+ * The upstream runtime could not complete the operation.
5019
+ */
5020
+ 502: ErrorResponse;
5021
+ };
5022
+ type CreateKnowledgeConverterError = CreateKnowledgeConverterErrors[keyof CreateKnowledgeConverterErrors];
5023
+ type CreateKnowledgeConverterResponses = {
5024
+ /**
5025
+ * Converter created.
5026
+ */
5027
+ 201: KnowledgeConverter;
5028
+ };
5029
+ type CreateKnowledgeConverterResponse = CreateKnowledgeConverterResponses[keyof CreateKnowledgeConverterResponses];
5030
+ type DeleteKnowledgeConverterData = {
5031
+ body?: never;
5032
+ path: {
5033
+ /**
5034
+ * Project public ID (proj_ prefix).
5035
+ */
5036
+ project_id: string;
5037
+ /**
5038
+ * Knowledge converter public ID (igr_ prefix).
5039
+ */
5040
+ converter_id: string;
5041
+ };
5042
+ query?: never;
5043
+ url: '/v1/projects/{project_id}/knowledge/converters/{converter_id}';
5044
+ };
5045
+ type DeleteKnowledgeConverterErrors = {
5046
+ /**
5047
+ * Missing or invalid credentials.
5048
+ */
5049
+ 401: ErrorResponse;
5050
+ /**
5051
+ * The resource does not exist (existence is not leaked).
5052
+ */
5053
+ 404: ErrorResponse;
5054
+ /**
5055
+ * The upstream runtime could not complete the operation.
5056
+ */
5057
+ 502: ErrorResponse;
5058
+ };
5059
+ type DeleteKnowledgeConverterError = DeleteKnowledgeConverterErrors[keyof DeleteKnowledgeConverterErrors];
5060
+ type DeleteKnowledgeConverterResponses = {
5061
+ /**
5062
+ * Converter deleted.
5063
+ */
5064
+ 204: void;
5065
+ };
5066
+ type DeleteKnowledgeConverterResponse = DeleteKnowledgeConverterResponses[keyof DeleteKnowledgeConverterResponses];
5067
+ type GetKnowledgeConverterData = {
5068
+ body?: never;
5069
+ path: {
5070
+ /**
5071
+ * Project public ID (proj_ prefix).
5072
+ */
5073
+ project_id: string;
5074
+ /**
5075
+ * Knowledge converter public ID (igr_ prefix).
5076
+ */
5077
+ converter_id: string;
5078
+ };
5079
+ query?: never;
5080
+ url: '/v1/projects/{project_id}/knowledge/converters/{converter_id}';
5081
+ };
5082
+ type GetKnowledgeConverterErrors = {
5083
+ /**
5084
+ * Missing or invalid credentials.
5085
+ */
5086
+ 401: ErrorResponse;
5087
+ /**
5088
+ * The resource does not exist (existence is not leaked).
5089
+ */
5090
+ 404: ErrorResponse;
5091
+ /**
5092
+ * The upstream runtime could not complete the operation.
5093
+ */
5094
+ 502: ErrorResponse;
5095
+ };
5096
+ type GetKnowledgeConverterError = GetKnowledgeConverterErrors[keyof GetKnowledgeConverterErrors];
5097
+ type GetKnowledgeConverterResponses = {
5098
+ /**
5099
+ * Converter details.
5100
+ */
5101
+ 200: KnowledgeConverter;
5102
+ };
5103
+ type GetKnowledgeConverterResponse = GetKnowledgeConverterResponses[keyof GetKnowledgeConverterResponses];
5104
+ type UpdateKnowledgeConverterData = {
5105
+ body: KnowledgeConverterUpdate;
5106
+ path: {
5107
+ /**
5108
+ * Project public ID (proj_ prefix).
5109
+ */
5110
+ project_id: string;
5111
+ /**
5112
+ * Knowledge converter public ID (igr_ prefix).
5113
+ */
5114
+ converter_id: string;
5115
+ };
5116
+ query?: never;
5117
+ url: '/v1/projects/{project_id}/knowledge/converters/{converter_id}';
5118
+ };
5119
+ type UpdateKnowledgeConverterErrors = {
5120
+ /**
5121
+ * The request was malformed or failed validation.
5122
+ */
5123
+ 400: ErrorResponse;
5124
+ /**
5125
+ * Missing or invalid credentials.
5126
+ */
5127
+ 401: ErrorResponse;
5128
+ /**
5129
+ * The resource does not exist (existence is not leaked).
5130
+ */
5131
+ 404: ErrorResponse;
5132
+ /**
5133
+ * The request conflicts with the resource's current state.
5134
+ */
5135
+ 409: ErrorResponse;
5136
+ /**
5137
+ * The upstream runtime could not complete the operation.
5138
+ */
5139
+ 502: ErrorResponse;
5140
+ };
5141
+ type UpdateKnowledgeConverterError = UpdateKnowledgeConverterErrors[keyof UpdateKnowledgeConverterErrors];
5142
+ type UpdateKnowledgeConverterResponses = {
5143
+ /**
5144
+ * Converter updated.
5145
+ */
5146
+ 200: KnowledgeConverter;
5147
+ };
5148
+ type UpdateKnowledgeConverterResponse = UpdateKnowledgeConverterResponses[keyof UpdateKnowledgeConverterResponses];
4797
5149
  type ListModelsData = {
4798
5150
  body?: never;
4799
5151
  path?: never;
@@ -6904,7 +7256,11 @@ declare class Knowledge {
6904
7256
  /**
6905
7257
  * Create a document
6906
7258
  *
6907
- * Add an inline-text document to the collection. The platform ingests the content (chunk + embed) and records the document's ingestion status. File upload (PDF/binary) is a deliberate follow-up.
7259
+ * Add a document to the collection, from **inline text** (`content`) or from an **uploaded file** (`file`, base64, plus `content_type` and `filename`) exactly one of the two.
7260
+ *
7261
+ * `application/pdf`, `text/plain` and `text/markdown` are extracted natively. Any other media type needs a converter (`POST /v1/projects/{project_id}/knowledge/converters`) registered for it in the project; without one the request is rejected with `unsupported_content_type` and no document is created.
7262
+ *
7263
+ * Ingestion (extract → chunk → embed) runs in the background: the document comes back `pending` and becomes `indexed` or `failed`, which is announced by the `knowledge.document_ingested` / `knowledge.ingest_failed` webhook events.
6908
7264
  *
6909
7265
  */
6910
7266
  static createKnowledgeDocument<ThrowOnError extends boolean = false>(options: Options<CreateKnowledgeDocumentData, ThrowOnError>): RequestResult<CreateKnowledgeDocumentResponses, CreateKnowledgeDocumentErrors, ThrowOnError>;
@@ -6925,6 +7281,53 @@ declare class Knowledge {
6925
7281
  *
6926
7282
  */
6927
7283
  static reingestKnowledgeDocument<ThrowOnError extends boolean = false>(options: Options<ReingestKnowledgeDocumentData, ThrowOnError>): RequestResult<ReingestKnowledgeDocumentResponses, ReingestKnowledgeDocumentErrors, ThrowOnError>;
7284
+ /**
7285
+ * List converters
7286
+ *
7287
+ * Lists the media converters registered in the project.
7288
+ */
7289
+ static listKnowledgeConverters<ThrowOnError extends boolean = false>(options: Options<ListKnowledgeConvertersData, ThrowOnError>): RequestResult<ListKnowledgeConvertersResponses, ListKnowledgeConvertersErrors, ThrowOnError>;
7290
+ /**
7291
+ * Create a converter
7292
+ *
7293
+ * Register a converter for a media type the platform cannot extract natively, so files of that type become ingestable documents like any other. A converter maps a `content_type` glob (`image*`, `audio/mpeg`, …) onto one of two workers:
7294
+ *
7295
+ * - an **agent** (`agent_id`) — the file is handed to a
7296
+ * multimodal model with a fixed "extract all the text" instruction and
7297
+ * its answer becomes the document text. The shortest path for images
7298
+ * and scanned PDFs; nothing to map.
7299
+ *
7300
+ * - a **tool** (`tool_id`) — the file is passed to an
7301
+ * `http` tool as `{ content_type, filename, data_base64 }`, and
7302
+ * whatever string the tool returns becomes the document text. The path
7303
+ * for dedicated non-chat APIs (speech-to-text, a specialist OCR
7304
+ * engine); use the tool's `execute.body_mode: multipart` for
7305
+ * form-data endpoints and its `output_mapping` to reduce a JSON
7306
+ * response to the bare string.
7307
+ *
7308
+ *
7309
+ * Exactly one of `agent_id` / `tool_id`, and one converter per `content_type` in a project.
7310
+ *
7311
+ */
7312
+ static createKnowledgeConverter<ThrowOnError extends boolean = false>(options: Options<CreateKnowledgeConverterData, ThrowOnError>): RequestResult<CreateKnowledgeConverterResponses, CreateKnowledgeConverterErrors, ThrowOnError>;
7313
+ /**
7314
+ * Delete a converter
7315
+ *
7316
+ * Removes the converter. Documents already ingested through it are untouched; new files of that media type stop being ingestable until another converter covers them.
7317
+ *
7318
+ */
7319
+ static deleteKnowledgeConverter<ThrowOnError extends boolean = false>(options: Options<DeleteKnowledgeConverterData, ThrowOnError>): RequestResult<DeleteKnowledgeConverterResponses, DeleteKnowledgeConverterErrors, ThrowOnError>;
7320
+ /**
7321
+ * Get a converter
7322
+ */
7323
+ static getKnowledgeConverter<ThrowOnError extends boolean = false>(options: Options<GetKnowledgeConverterData, ThrowOnError>): RequestResult<GetKnowledgeConverterResponses, GetKnowledgeConverterErrors, ThrowOnError>;
7324
+ /**
7325
+ * Update a converter
7326
+ *
7327
+ * Change the worker or the chunking defaults. At least one field is required; `agent_id` and `tool_id` stay mutually exclusive, so setting one clears the other.
7328
+ *
7329
+ */
7330
+ static updateKnowledgeConverter<ThrowOnError extends boolean = false>(options: Options<UpdateKnowledgeConverterData, ThrowOnError>): RequestResult<UpdateKnowledgeConverterResponses, UpdateKnowledgeConverterErrors, ThrowOnError>;
6928
7331
  }
6929
7332
  declare class Models {
6930
7333
  /**
@@ -7286,4 +7689,4 @@ declare class NaturaliClient {
7286
7689
  constructor({ token, headers }?: NaturaliClientOptions);
7287
7690
  }
7288
7691
  //#endregion
7289
- export { type Acknowledgement, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageResponse, type AddSessionMessageResponses, type Agent, type AgentCreate, type AgentId, type AgentList, type AgentUpdate, Agents, type ApiKeyCreate, type ApiKeyCreated, type ApiKeyId, type ApiKeyList, type ApiKeyRecord, type ApiKeyUpdate, ApiKeys, type AssigneeFilter, Auth, type AuthSession, type Board, type BoardCompletionRule, type BoardCreate, type BoardDispatch, type BoardId, type BoardIdFilter, type BoardList, type BoardOnEnter, type BoardState, type BoardTransition, type BoardUpdate, Boards, type Channel, type ChannelBinding, type ChannelBindingSet, type ChannelCreate, type ChannelId, type ChannelList, type ChannelUpdate, Channels, type ClientOptions, type CollectionId, type Contact, type ContactConversation, type ContactConversationList, type ContactCreate, type ContactId, type ContactIdentity, type ContactIdentityCreate, type ContactList, type ContactMerge, type ContactMergeList, type ContactMergeRequest, type ContactMergeResult, type ContactUpdate, Contacts, type Conversation, type ConversationId, type ConversationList, type ConversationMessage, type ConversationMessageList, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentResponse, type CreateAgentResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateBoardData, type CreateBoardError, type CreateBoardErrors, type CreateBoardResponse, type CreateBoardResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateContactData, type CreateContactError, type CreateContactErrors, type CreateContactIdentityData, type CreateContactIdentityError, type CreateContactIdentityErrors, type CreateContactIdentityResponse, type CreateContactIdentityResponses, type CreateContactResponse, type CreateContactResponses, type CreateGenerationData, type CreateGenerationError, type CreateGenerationErrors, type CreateGenerationResponse, type CreateGenerationResponses, type CreateKnowledgeCollectionData, type CreateKnowledgeCollectionError, type CreateKnowledgeCollectionErrors, type CreateKnowledgeCollectionResponse, type CreateKnowledgeCollectionResponses, type CreateKnowledgeDocumentData, type CreateKnowledgeDocumentError, type CreateKnowledgeDocumentErrors, type CreateKnowledgeDocumentResponse, type CreateKnowledgeDocumentResponses, type CreateProjectData, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateProviderData, type CreateProviderError, type CreateProviderErrors, type CreateProviderResponse, type CreateProviderResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionResponse, type CreateSessionResponses, type CreateTaskData, type CreateTaskError, type CreateTaskErrors, type CreateTaskResponse, type CreateTaskResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolResponse, type CreateToolResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type Cursor, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteBoardData, type DeleteBoardError, type DeleteBoardErrors, type DeleteBoardResponse, type DeleteBoardResponses, type DeleteChannelBindingData, type DeleteChannelBindingError, type DeleteChannelBindingErrors, type DeleteChannelBindingResponse, type DeleteChannelBindingResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteContactData, type DeleteContactError, type DeleteContactErrors, type DeleteContactIdentityData, type DeleteContactIdentityError, type DeleteContactIdentityErrors, type DeleteContactIdentityResponse, type DeleteContactIdentityResponses, type DeleteContactResponse, type DeleteContactResponses, type DeleteKnowledgeCollectionData, type DeleteKnowledgeCollectionError, type DeleteKnowledgeCollectionErrors, type DeleteKnowledgeCollectionResponse, type DeleteKnowledgeCollectionResponses, type DeleteKnowledgeDocumentData, type DeleteKnowledgeDocumentError, type DeleteKnowledgeDocumentErrors, type DeleteKnowledgeDocumentResponse, type DeleteKnowledgeDocumentResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteProviderData, type DeleteProviderError, type DeleteProviderErrors, type DeleteProviderResponse, type DeleteProviderResponses, type DeleteTaskData, type DeleteTaskError, type DeleteTaskErrors, type DeleteTaskResponse, type DeleteTaskResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeliveryId, type DiscordModes, type DocumentId, type ErrorResponse, type Event, type EventSubscription, type EventType, type Force, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, type GenerationCreate, type GenerationId, type GenerationList, type GenerationResult, type GenerationStatus, type GenerationUsage, Generations, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetApiKeyData, type GetApiKeyError, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponses, type GetChannelBindingData, type GetChannelBindingError, type GetChannelBindingErrors, type GetChannelBindingResponse, type GetChannelBindingResponses, type GetChannelConversationData, type GetChannelConversationError, type GetChannelConversationErrors, type GetChannelConversationResponse, type GetChannelConversationResponses, type GetChannelData, type GetChannelError, type GetChannelErrors, type GetChannelResponse, type GetChannelResponses, type GetContactData, type GetContactError, type GetContactErrors, type GetContactResponse, type GetContactResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetGenerationUsageData, type GetGenerationUsageError, type GetGenerationUsageErrors, type GetGenerationUsageResponse, type GetGenerationUsageResponses, type GetKnowledgeCollectionData, type GetKnowledgeCollectionError, type GetKnowledgeCollectionErrors, type GetKnowledgeCollectionResponse, type GetKnowledgeCollectionResponses, type GetKnowledgeDocumentData, type GetKnowledgeDocumentError, type GetKnowledgeDocumentErrors, type GetKnowledgeDocumentResponse, type GetKnowledgeDocumentResponses, type GetModelData, type GetModelError, type GetModelErrors, type GetModelResponse, type GetModelResponses, type GetProjectData, type GetProjectError, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetProjectUsageData, type GetProjectUsageError, type GetProjectUsageErrors, type GetProjectUsageResponse, type GetProjectUsageResponses, type GetProviderData, type GetProviderError, type GetProviderErrors, type GetProviderResponse, type GetProviderResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetTaskData, type GetTaskError, type GetTaskErrors, type GetTaskResponse, type GetTaskResponses, type GetToolData, type GetToolError, type GetToolErrors, type GetToolResponse, type GetToolResponses, type GetTraceData, type GetTraceError, type GetTraceErrors, type GetTraceResponse, type GetTraceResponses, type GetTraceTreeData, type GetTraceTreeError, type GetTraceTreeErrors, type GetTraceTreeResponse, type GetTraceTreeResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryError, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type HttpExecute, type IdempotencyKey, type IdentityId, Knowledge, type KnowledgeChunk, type KnowledgeCollection, type KnowledgeCollectionCreate, type KnowledgeCollectionList, type KnowledgeCollectionUpdate, type KnowledgeDocument, type KnowledgeDocumentCreate, type KnowledgeDocumentList, type KnowledgeQueryRequest, type KnowledgeQueryResult, type Limit, type ListAgentGenerationsData, type ListAgentGenerationsError, type ListAgentGenerationsErrors, type ListAgentGenerationsResponse, type ListAgentGenerationsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListBoardsData, type ListBoardsError, type ListBoardsErrors, type ListBoardsResponse, type ListBoardsResponses, type ListChannelConversationMessagesData, type ListChannelConversationMessagesError, type ListChannelConversationMessagesErrors, type ListChannelConversationMessagesResponse, type ListChannelConversationMessagesResponses, type ListChannelConversationsData, type ListChannelConversationsError, type ListChannelConversationsErrors, type ListChannelConversationsResponse, type ListChannelConversationsResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListContactConversationsData, type ListContactConversationsError, type ListContactConversationsErrors, type ListContactConversationsResponse, type ListContactConversationsResponses, type ListContactMergesData, type ListContactMergesError, type ListContactMergesErrors, type ListContactMergesResponse, type ListContactMergesResponses, type ListContactsData, type ListContactsError, type ListContactsErrors, type ListContactsResponse, type ListContactsResponses, type ListKnowledgeCollectionsData, type ListKnowledgeCollectionsError, type ListKnowledgeCollectionsErrors, type ListKnowledgeCollectionsResponse, type ListKnowledgeCollectionsResponses, type ListKnowledgeDocumentsData, type ListKnowledgeDocumentsError, type ListKnowledgeDocumentsErrors, type ListKnowledgeDocumentsResponse, type ListKnowledgeDocumentsResponses, type ListModelsData, type ListModelsError, type ListModelsErrors, type ListModelsResponse, type ListModelsResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListProvidersData, type ListProvidersError, type ListProvidersErrors, type ListProvidersResponse, type ListProvidersResponses, type ListTaskTransitionsData, type ListTaskTransitionsError, type ListTaskTransitionsErrors, type ListTaskTransitionsResponse, type ListTaskTransitionsResponses, type ListTasksData, type ListTasksError, type ListTasksErrors, type ListTasksResponse, type ListTasksResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTraceGenerationsData, type ListTraceGenerationsError, type ListTraceGenerationsErrors, type ListTraceGenerationsResponse, type ListTraceGenerationsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesError, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type LogoutData, type LogoutError, type LogoutErrors, type LogoutRequest, type LogoutResponse, type LogoutResponses, type McpConfig, type MergeContactData, type MergeContactError, type MergeContactErrors, type MergeContactResponse, type MergeContactResponses, type MergeId, type Message, type MessagesLimit, type Model, type ModelList, Models, NaturaliClient, type NaturaliClientOptions, type Offset, type Options, type Project, type ProjectCreate, type ProjectId, type ProjectList, type ProjectUpdate, type ProjectUsage, Projects, type Provider, type ProviderCreate, type ProviderId, type ProviderList, type ProviderUpdate, Providers, type QueryKnowledgeCollectionData, type QueryKnowledgeCollectionError, type QueryKnowledgeCollectionErrors, type QueryKnowledgeCollectionResponse, type QueryKnowledgeCollectionResponses, type RedeliverWebhookDeliveryData, type RedeliverWebhookDeliveryError, type RedeliverWebhookDeliveryErrors, type RedeliverWebhookDeliveryResponse, type RedeliverWebhookDeliveryResponses, type RefreshRequest, type RefreshSessionData, type RefreshSessionError, type RefreshSessionErrors, type RefreshSessionResponse, type RefreshSessionResponses, type ReingestKnowledgeDocumentData, type ReingestKnowledgeDocumentError, type ReingestKnowledgeDocumentErrors, type ReingestKnowledgeDocumentResponse, type ReingestKnowledgeDocumentResponses, type RequestSignInCodeData, type RequestSignInCodeError, type RequestSignInCodeErrors, type RequestSignInCodeResponse, type RequestSignInCodeResponses, type RevertContactMergeData, type RevertContactMergeError, type RevertContactMergeErrors, type RevertContactMergeResponse, type RevertContactMergeResponses, type RotateApiKeyData, type RotateApiKeyError, type RotateApiKeyErrors, type RotateApiKeyResponse, type RotateApiKeyResponses, type RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type Session, type SessionCreate, type SessionGenerate, type SessionGeneration, type SessionId, type SessionMessage, type SessionMessageCreate, Sessions, type SetChannelBindingData, type SetChannelBindingError, type SetChannelBindingErrors, type SetChannelBindingResponse, type SetChannelBindingResponses, type SignInCodeRequest, type SignInCodeVerify, type StateFilter, type StatusFilter, type Task, type TaskCreate, type TaskId, type TaskList, type TaskTransitionList, type TaskTransitionRecord, type TaskTransitionRequest, type TaskUpdate, Tasks, type Tool, type ToolChoice, type ToolContext, type ToolCreate, type ToolId, type ToolList, type ToolUpdate, Tools, type Trace, type TraceId, type TraceList, type TraceTreeNode, Traces, type TransitionTaskData, type TransitionTaskError, type TransitionTaskErrors, type TransitionTaskResponse, type TransitionTaskResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateBoardData, type UpdateBoardError, type UpdateBoardErrors, type UpdateBoardResponse, type UpdateBoardResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateContactData, type UpdateContactError, type UpdateContactErrors, type UpdateContactResponse, type UpdateContactResponses, type UpdateKnowledgeCollectionData, type UpdateKnowledgeCollectionError, type UpdateKnowledgeCollectionErrors, type UpdateKnowledgeCollectionResponse, type UpdateKnowledgeCollectionResponses, type UpdateProjectData, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateProviderData, type UpdateProviderError, type UpdateProviderErrors, type UpdateProviderResponse, type UpdateProviderResponses, type UpdateTaskData, type UpdateTaskError, type UpdateTaskErrors, type UpdateTaskResponse, type UpdateTaskResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolResponse, type UpdateToolResponses, type UpdateWebhookData, type UpdateWebhookError, type UpdateWebhookErrors, type UpdateWebhookResponse, type UpdateWebhookResponses, type UsageGroup, type UsageTokens, type User, type VerifySignInCodeData, type VerifySignInCodeError, type VerifySignInCodeErrors, type VerifySignInCodeResponse, type VerifySignInCodeResponses, type Webhook, type WebhookCreate, type WebhookDelivery, type WebhookDeliveryList, type WebhookId, type WebhookList, type WebhookUpdate, type WebhookWithSecret, Webhooks, createClient, createConfig };
7692
+ export { type Acknowledgement, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageResponse, type AddSessionMessageResponses, type Agent, type AgentCreate, type AgentId, type AgentList, type AgentUpdate, Agents, type ApiKeyCreate, type ApiKeyCreated, type ApiKeyId, type ApiKeyList, type ApiKeyRecord, type ApiKeyUpdate, ApiKeys, type AssigneeFilter, Auth, type AuthSession, type Board, type BoardCompletionRule, type BoardCreate, type BoardDispatch, type BoardId, type BoardIdFilter, type BoardList, type BoardOnEnter, type BoardState, type BoardTransition, type BoardUpdate, Boards, type Channel, type ChannelBinding, type ChannelBindingSet, type ChannelCreate, type ChannelId, type ChannelList, type ChannelUpdate, Channels, type ClientOptions, type CollectionId, type Contact, type ContactConversation, type ContactConversationList, type ContactCreate, type ContactId, type ContactIdentity, type ContactIdentityCreate, type ContactList, type ContactMerge, type ContactMergeList, type ContactMergeRequest, type ContactMergeResult, type ContactUpdate, Contacts, type Conversation, type ConversationId, type ConversationList, type ConversationMessage, type ConversationMessageList, type ConverterId, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentResponse, type CreateAgentResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateBoardData, type CreateBoardError, type CreateBoardErrors, type CreateBoardResponse, type CreateBoardResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateContactData, type CreateContactError, type CreateContactErrors, type CreateContactIdentityData, type CreateContactIdentityError, type CreateContactIdentityErrors, type CreateContactIdentityResponse, type CreateContactIdentityResponses, type CreateContactResponse, type CreateContactResponses, type CreateGenerationData, type CreateGenerationError, type CreateGenerationErrors, type CreateGenerationResponse, type CreateGenerationResponses, type CreateKnowledgeCollectionData, type CreateKnowledgeCollectionError, type CreateKnowledgeCollectionErrors, type CreateKnowledgeCollectionResponse, type CreateKnowledgeCollectionResponses, type CreateKnowledgeConverterData, type CreateKnowledgeConverterError, type CreateKnowledgeConverterErrors, type CreateKnowledgeConverterResponse, type CreateKnowledgeConverterResponses, type CreateKnowledgeDocumentData, type CreateKnowledgeDocumentError, type CreateKnowledgeDocumentErrors, type CreateKnowledgeDocumentResponse, type CreateKnowledgeDocumentResponses, type CreateProjectData, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateProviderData, type CreateProviderError, type CreateProviderErrors, type CreateProviderResponse, type CreateProviderResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionResponse, type CreateSessionResponses, type CreateTaskData, type CreateTaskError, type CreateTaskErrors, type CreateTaskResponse, type CreateTaskResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolResponse, type CreateToolResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type Cursor, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteBoardData, type DeleteBoardError, type DeleteBoardErrors, type DeleteBoardResponse, type DeleteBoardResponses, type DeleteChannelBindingData, type DeleteChannelBindingError, type DeleteChannelBindingErrors, type DeleteChannelBindingResponse, type DeleteChannelBindingResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteContactData, type DeleteContactError, type DeleteContactErrors, type DeleteContactIdentityData, type DeleteContactIdentityError, type DeleteContactIdentityErrors, type DeleteContactIdentityResponse, type DeleteContactIdentityResponses, type DeleteContactResponse, type DeleteContactResponses, type DeleteKnowledgeCollectionData, type DeleteKnowledgeCollectionError, type DeleteKnowledgeCollectionErrors, type DeleteKnowledgeCollectionResponse, type DeleteKnowledgeCollectionResponses, type DeleteKnowledgeConverterData, type DeleteKnowledgeConverterError, type DeleteKnowledgeConverterErrors, type DeleteKnowledgeConverterResponse, type DeleteKnowledgeConverterResponses, type DeleteKnowledgeDocumentData, type DeleteKnowledgeDocumentError, type DeleteKnowledgeDocumentErrors, type DeleteKnowledgeDocumentResponse, type DeleteKnowledgeDocumentResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteProviderData, type DeleteProviderError, type DeleteProviderErrors, type DeleteProviderResponse, type DeleteProviderResponses, type DeleteTaskData, type DeleteTaskError, type DeleteTaskErrors, type DeleteTaskResponse, type DeleteTaskResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeliveryId, type DiscordModes, type DocumentId, type ErrorResponse, type Event, type EventSubscription, type EventType, type Force, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, type GenerationCreate, type GenerationId, type GenerationList, type GenerationResult, type GenerationStatus, type GenerationUsage, Generations, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetApiKeyData, type GetApiKeyError, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponses, type GetChannelBindingData, type GetChannelBindingError, type GetChannelBindingErrors, type GetChannelBindingResponse, type GetChannelBindingResponses, type GetChannelConversationData, type GetChannelConversationError, type GetChannelConversationErrors, type GetChannelConversationResponse, type GetChannelConversationResponses, type GetChannelData, type GetChannelError, type GetChannelErrors, type GetChannelResponse, type GetChannelResponses, type GetContactData, type GetContactError, type GetContactErrors, type GetContactResponse, type GetContactResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetGenerationUsageData, type GetGenerationUsageError, type GetGenerationUsageErrors, type GetGenerationUsageResponse, type GetGenerationUsageResponses, type GetKnowledgeCollectionData, type GetKnowledgeCollectionError, type GetKnowledgeCollectionErrors, type GetKnowledgeCollectionResponse, type GetKnowledgeCollectionResponses, type GetKnowledgeConverterData, type GetKnowledgeConverterError, type GetKnowledgeConverterErrors, type GetKnowledgeConverterResponse, type GetKnowledgeConverterResponses, type GetKnowledgeDocumentData, type GetKnowledgeDocumentError, type GetKnowledgeDocumentErrors, type GetKnowledgeDocumentResponse, type GetKnowledgeDocumentResponses, type GetModelData, type GetModelError, type GetModelErrors, type GetModelResponse, type GetModelResponses, type GetProjectData, type GetProjectError, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetProjectUsageData, type GetProjectUsageError, type GetProjectUsageErrors, type GetProjectUsageResponse, type GetProjectUsageResponses, type GetProviderData, type GetProviderError, type GetProviderErrors, type GetProviderResponse, type GetProviderResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetTaskData, type GetTaskError, type GetTaskErrors, type GetTaskResponse, type GetTaskResponses, type GetToolData, type GetToolError, type GetToolErrors, type GetToolResponse, type GetToolResponses, type GetTraceData, type GetTraceError, type GetTraceErrors, type GetTraceResponse, type GetTraceResponses, type GetTraceTreeData, type GetTraceTreeError, type GetTraceTreeErrors, type GetTraceTreeResponse, type GetTraceTreeResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryError, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type HttpExecute, type IdempotencyKey, type IdentityId, Knowledge, type KnowledgeChunk, type KnowledgeCollection, type KnowledgeCollectionCreate, type KnowledgeCollectionList, type KnowledgeCollectionUpdate, type KnowledgeConverter, type KnowledgeConverterCreate, type KnowledgeConverterList, type KnowledgeConverterUpdate, type KnowledgeDocument, type KnowledgeDocumentCreate, type KnowledgeDocumentList, type KnowledgeQueryRequest, type KnowledgeQueryResult, type Limit, type ListAgentGenerationsData, type ListAgentGenerationsError, type ListAgentGenerationsErrors, type ListAgentGenerationsResponse, type ListAgentGenerationsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListBoardsData, type ListBoardsError, type ListBoardsErrors, type ListBoardsResponse, type ListBoardsResponses, type ListChannelConversationMessagesData, type ListChannelConversationMessagesError, type ListChannelConversationMessagesErrors, type ListChannelConversationMessagesResponse, type ListChannelConversationMessagesResponses, type ListChannelConversationsData, type ListChannelConversationsError, type ListChannelConversationsErrors, type ListChannelConversationsResponse, type ListChannelConversationsResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListContactConversationsData, type ListContactConversationsError, type ListContactConversationsErrors, type ListContactConversationsResponse, type ListContactConversationsResponses, type ListContactMergesData, type ListContactMergesError, type ListContactMergesErrors, type ListContactMergesResponse, type ListContactMergesResponses, type ListContactsData, type ListContactsError, type ListContactsErrors, type ListContactsResponse, type ListContactsResponses, type ListKnowledgeCollectionsData, type ListKnowledgeCollectionsError, type ListKnowledgeCollectionsErrors, type ListKnowledgeCollectionsResponse, type ListKnowledgeCollectionsResponses, type ListKnowledgeConvertersData, type ListKnowledgeConvertersError, type ListKnowledgeConvertersErrors, type ListKnowledgeConvertersResponse, type ListKnowledgeConvertersResponses, type ListKnowledgeDocumentsData, type ListKnowledgeDocumentsError, type ListKnowledgeDocumentsErrors, type ListKnowledgeDocumentsResponse, type ListKnowledgeDocumentsResponses, type ListModelsData, type ListModelsError, type ListModelsErrors, type ListModelsResponse, type ListModelsResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListProvidersData, type ListProvidersError, type ListProvidersErrors, type ListProvidersResponse, type ListProvidersResponses, type ListTaskTransitionsData, type ListTaskTransitionsError, type ListTaskTransitionsErrors, type ListTaskTransitionsResponse, type ListTaskTransitionsResponses, type ListTasksData, type ListTasksError, type ListTasksErrors, type ListTasksResponse, type ListTasksResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTraceGenerationsData, type ListTraceGenerationsError, type ListTraceGenerationsErrors, type ListTraceGenerationsResponse, type ListTraceGenerationsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesError, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type LogoutData, type LogoutError, type LogoutErrors, type LogoutRequest, type LogoutResponse, type LogoutResponses, type McpConfig, type MergeContactData, type MergeContactError, type MergeContactErrors, type MergeContactResponse, type MergeContactResponses, type MergeId, type Message, type MessagesLimit, type Model, type ModelList, Models, NaturaliClient, type NaturaliClientOptions, type Offset, type Options, type Project, type ProjectCreate, type ProjectId, type ProjectList, type ProjectUpdate, type ProjectUsage, Projects, type Provider, type ProviderCreate, type ProviderId, type ProviderList, type ProviderUpdate, Providers, type QueryKnowledgeCollectionData, type QueryKnowledgeCollectionError, type QueryKnowledgeCollectionErrors, type QueryKnowledgeCollectionResponse, type QueryKnowledgeCollectionResponses, type RedeliverWebhookDeliveryData, type RedeliverWebhookDeliveryError, type RedeliverWebhookDeliveryErrors, type RedeliverWebhookDeliveryResponse, type RedeliverWebhookDeliveryResponses, type RefreshRequest, type RefreshSessionData, type RefreshSessionError, type RefreshSessionErrors, type RefreshSessionResponse, type RefreshSessionResponses, type ReingestKnowledgeDocumentData, type ReingestKnowledgeDocumentError, type ReingestKnowledgeDocumentErrors, type ReingestKnowledgeDocumentResponse, type ReingestKnowledgeDocumentResponses, type RequestSignInCodeData, type RequestSignInCodeError, type RequestSignInCodeErrors, type RequestSignInCodeResponse, type RequestSignInCodeResponses, type RevertContactMergeData, type RevertContactMergeError, type RevertContactMergeErrors, type RevertContactMergeResponse, type RevertContactMergeResponses, type RotateApiKeyData, type RotateApiKeyError, type RotateApiKeyErrors, type RotateApiKeyResponse, type RotateApiKeyResponses, type RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type Session, type SessionCreate, type SessionGenerate, type SessionGeneration, type SessionId, type SessionMessage, type SessionMessageCreate, Sessions, type SetChannelBindingData, type SetChannelBindingError, type SetChannelBindingErrors, type SetChannelBindingResponse, type SetChannelBindingResponses, type SignInCodeRequest, type SignInCodeVerify, type StateFilter, type StatusFilter, type Task, type TaskCreate, type TaskId, type TaskList, type TaskTransitionList, type TaskTransitionRecord, type TaskTransitionRequest, type TaskUpdate, Tasks, type Tool, type ToolChoice, type ToolContext, type ToolCreate, type ToolId, type ToolList, type ToolUpdate, Tools, type Trace, type TraceId, type TraceList, type TraceTreeNode, Traces, type TransitionTaskData, type TransitionTaskError, type TransitionTaskErrors, type TransitionTaskResponse, type TransitionTaskResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateBoardData, type UpdateBoardError, type UpdateBoardErrors, type UpdateBoardResponse, type UpdateBoardResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateContactData, type UpdateContactError, type UpdateContactErrors, type UpdateContactResponse, type UpdateContactResponses, type UpdateKnowledgeCollectionData, type UpdateKnowledgeCollectionError, type UpdateKnowledgeCollectionErrors, type UpdateKnowledgeCollectionResponse, type UpdateKnowledgeCollectionResponses, type UpdateKnowledgeConverterData, type UpdateKnowledgeConverterError, type UpdateKnowledgeConverterErrors, type UpdateKnowledgeConverterResponse, type UpdateKnowledgeConverterResponses, type UpdateProjectData, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateProviderData, type UpdateProviderError, type UpdateProviderErrors, type UpdateProviderResponse, type UpdateProviderResponses, type UpdateTaskData, type UpdateTaskError, type UpdateTaskErrors, type UpdateTaskResponse, type UpdateTaskResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolResponse, type UpdateToolResponses, type UpdateWebhookData, type UpdateWebhookError, type UpdateWebhookErrors, type UpdateWebhookResponse, type UpdateWebhookResponses, type UsageGroup, type UsageTokens, type User, type VerifySignInCodeData, type VerifySignInCodeError, type VerifySignInCodeErrors, type VerifySignInCodeResponse, type VerifySignInCodeResponses, type Webhook, type WebhookCreate, type WebhookDelivery, type WebhookDeliveryList, type WebhookId, type WebhookList, type WebhookUpdate, type WebhookWithSecret, Webhooks, createClient, createConfig };
package/dist/index.d.mts CHANGED
@@ -1460,6 +1460,11 @@ type KnowledgeDocument = {
1460
1460
  collection_id: string;
1461
1461
  project_id: string;
1462
1462
  filename: string | null;
1463
+ /**
1464
+ * Media type of the source file; null for an inline-text document.
1465
+ *
1466
+ */
1467
+ content_type: string | null;
1463
1468
  /**
1464
1469
  * Ingestion status (API.md §4, K1). `pending` — enqueued/processing; `indexed` — fully embedded and retrievable; `failed` — ingestion error (see `error`).
1465
1470
  *
@@ -1473,6 +1478,11 @@ type KnowledgeDocument = {
1473
1478
  * Source size in bytes.
1474
1479
  */
1475
1480
  size: number | null;
1481
+ /**
1482
+ * Number of embedded chunks the document was split into; null until ingestion finishes.
1483
+ *
1484
+ */
1485
+ chunk_count: number | null;
1476
1486
  /**
1477
1487
  * Text content — present on get when indexed, null on list.
1478
1488
  */
@@ -1480,19 +1490,48 @@ type KnowledgeDocument = {
1480
1490
  created_at: Date;
1481
1491
  updated_at: Date;
1482
1492
  };
1493
+ /**
1494
+ * Exactly one of `content` (inline text) or `file` (a base64-encoded upload). `file` additionally requires `content_type` and `filename`.
1495
+ *
1496
+ */
1483
1497
  type KnowledgeDocumentCreate = {
1484
1498
  /**
1485
- * The document's text content.
1499
+ * The document's text content. Mutually exclusive with `file`.
1486
1500
  */
1487
- content: string;
1501
+ content?: string;
1502
+ /**
1503
+ * The file's bytes, base64-encoded. Mutually exclusive with `content`.
1504
+ *
1505
+ */
1506
+ file?: string;
1488
1507
  /**
1489
- * A label for the document; also its logical filename.
1508
+ * Media type of `file`. `application/pdf`, `text/plain` and `text/markdown` are extracted natively; anything else needs a matching converter in the project. Required with `file`.
1509
+ *
1510
+ */
1511
+ content_type?: string;
1512
+ /**
1513
+ * A label for the document; also its logical filename. Required with `file`.
1514
+ *
1490
1515
  */
1491
1516
  filename?: string;
1492
1517
  /**
1493
1518
  * Human-readable title.
1494
1519
  */
1495
1520
  title?: string;
1521
+ /**
1522
+ * How the extracted text is split for embedding. `page` (the default) makes one chunk per page, which is what lets a retrieved chunk cite a page number; `size` makes fixed-width character windows, which retrieves more sharply on dense pages at the cost of that citation; `whole` keeps the document as a single chunk. Ignored for inline text.
1523
+ *
1524
+ */
1525
+ chunk_strategy?: 'page' | 'size' | 'whole';
1526
+ /**
1527
+ * Window width in characters, when `chunk_strategy` is `size`.
1528
+ */
1529
+ chunk_size?: number;
1530
+ /**
1531
+ * Characters of overlap between consecutive windows, when `chunk_strategy` is `size`. Must be smaller than `chunk_size`.
1532
+ *
1533
+ */
1534
+ chunk_overlap?: number;
1496
1535
  };
1497
1536
  type KnowledgeDocumentList = {
1498
1537
  data: Array<KnowledgeDocument>;
@@ -1501,6 +1540,103 @@ type KnowledgeDocumentList = {
1501
1540
  */
1502
1541
  next_cursor: string | null;
1503
1542
  };
1543
+ type KnowledgeConverter = {
1544
+ /**
1545
+ * Public converter ID (igr_ prefix).
1546
+ */
1547
+ id: string;
1548
+ project_id: string;
1549
+ /**
1550
+ * The media-type glob this converter claims, matched against an uploaded file's `content_type`.
1551
+ *
1552
+ */
1553
+ content_type: string;
1554
+ /**
1555
+ * The agent that converts the file; null for a tool converter.
1556
+ */
1557
+ agent_id: string | null;
1558
+ /**
1559
+ * The tool that converts the file; null for an agent converter.
1560
+ */
1561
+ tool_id: string | null;
1562
+ /**
1563
+ * Fixed arguments merged into every call to a tool converter (e.g. `{ "language": "en" }`). Null for an agent converter.
1564
+ *
1565
+ */
1566
+ preset_parameters: {
1567
+ [key: string]: unknown;
1568
+ } | null;
1569
+ /**
1570
+ * What to do for a media type the platform *can* extract natively (PDF, text, markdown). `first` — try native extraction and fall back to the converter only when it yields no text, which is what makes a converter a scanned-PDF fallback; `skip` — always convert.
1571
+ *
1572
+ */
1573
+ native_extraction: 'first' | 'skip';
1574
+ /**
1575
+ * Default chunking for documents this converter produces, overridable per document at create time.
1576
+ *
1577
+ */
1578
+ chunk_strategy: 'page' | 'size' | 'whole';
1579
+ chunk_size: number | null;
1580
+ chunk_overlap: number | null;
1581
+ created_at: Date;
1582
+ updated_at: Date;
1583
+ };
1584
+ /**
1585
+ * Exactly one of `agent_id` or `tool_id` is required.
1586
+ */
1587
+ type KnowledgeConverterCreate = {
1588
+ /**
1589
+ * The media-type glob to claim — an exact type (`audio/mpeg`) or a `*` wildcard on the subtype (`image*`).
1590
+ *
1591
+ */
1592
+ content_type: string;
1593
+ /**
1594
+ * An agent in this project, used as the converter.
1595
+ */
1596
+ agent_id?: string;
1597
+ /**
1598
+ * An `http` tool in this project, used as the converter.
1599
+ */
1600
+ tool_id?: string;
1601
+ /**
1602
+ * Fixed arguments merged into every tool-converter call.
1603
+ */
1604
+ preset_parameters?: {
1605
+ [key: string]: unknown;
1606
+ };
1607
+ native_extraction?: 'first' | 'skip';
1608
+ chunk_strategy?: 'page' | 'size' | 'whole';
1609
+ chunk_size?: number;
1610
+ chunk_overlap?: number;
1611
+ };
1612
+ /**
1613
+ * At least one field must be present.
1614
+ */
1615
+ type KnowledgeConverterUpdate = {
1616
+ content_type?: string;
1617
+ /**
1618
+ * Switches the converter to this agent, clearing `tool_id`.
1619
+ */
1620
+ agent_id?: string;
1621
+ /**
1622
+ * Switches the converter to this tool, clearing `agent_id`.
1623
+ */
1624
+ tool_id?: string;
1625
+ preset_parameters?: {
1626
+ [key: string]: unknown;
1627
+ } | null;
1628
+ native_extraction?: 'first' | 'skip';
1629
+ chunk_strategy?: 'page' | 'size' | 'whole';
1630
+ chunk_size?: number;
1631
+ chunk_overlap?: number;
1632
+ };
1633
+ type KnowledgeConverterList = {
1634
+ data: Array<KnowledgeConverter>;
1635
+ /**
1636
+ * Cursor for the next page, or null at the end.
1637
+ */
1638
+ next_cursor: string | null;
1639
+ };
1504
1640
  type KnowledgeQueryRequest = {
1505
1641
  /**
1506
1642
  * The question to preview retrieval for.
@@ -2491,6 +2627,10 @@ type CollectionId = string;
2491
2627
  * Knowledge document public ID (doc_ prefix) — the runtime document id.
2492
2628
  */
2493
2629
  type DocumentId = string;
2630
+ /**
2631
+ * Knowledge converter public ID (igr_ prefix).
2632
+ */
2633
+ type ConverterId = string;
2494
2634
  /**
2495
2635
  * Provider public ID (aip_ prefix).
2496
2636
  */
@@ -4658,6 +4798,10 @@ type CreateKnowledgeDocumentErrors = {
4658
4798
  * The resource does not exist (existence is not leaked).
4659
4799
  */
4660
4800
  404: ErrorResponse;
4801
+ /**
4802
+ * The uploaded file exceeds the maximum size.
4803
+ */
4804
+ 413: ErrorResponse;
4661
4805
  /**
4662
4806
  * The upstream runtime could not complete the operation.
4663
4807
  */
@@ -4794,6 +4938,214 @@ type ReingestKnowledgeDocumentResponses = {
4794
4938
  202: KnowledgeDocument;
4795
4939
  };
4796
4940
  type ReingestKnowledgeDocumentResponse = ReingestKnowledgeDocumentResponses[keyof ReingestKnowledgeDocumentResponses];
4941
+ type ListKnowledgeConvertersData = {
4942
+ body?: never;
4943
+ path: {
4944
+ /**
4945
+ * Project public ID (proj_ prefix).
4946
+ */
4947
+ project_id: string;
4948
+ };
4949
+ query?: {
4950
+ /**
4951
+ * Maximum items per page.
4952
+ */
4953
+ limit?: number;
4954
+ /**
4955
+ * Opaque pagination cursor from a previous response's next_cursor.
4956
+ */
4957
+ cursor?: string;
4958
+ };
4959
+ url: '/v1/projects/{project_id}/knowledge/converters';
4960
+ };
4961
+ type ListKnowledgeConvertersErrors = {
4962
+ /**
4963
+ * Missing or invalid credentials.
4964
+ */
4965
+ 401: ErrorResponse;
4966
+ /**
4967
+ * The resource does not exist (existence is not leaked).
4968
+ */
4969
+ 404: ErrorResponse;
4970
+ /**
4971
+ * The upstream runtime could not complete the operation.
4972
+ */
4973
+ 502: ErrorResponse;
4974
+ };
4975
+ type ListKnowledgeConvertersError = ListKnowledgeConvertersErrors[keyof ListKnowledgeConvertersErrors];
4976
+ type ListKnowledgeConvertersResponses = {
4977
+ /**
4978
+ * A page of converters.
4979
+ */
4980
+ 200: KnowledgeConverterList;
4981
+ };
4982
+ type ListKnowledgeConvertersResponse = ListKnowledgeConvertersResponses[keyof ListKnowledgeConvertersResponses];
4983
+ type CreateKnowledgeConverterData = {
4984
+ body: KnowledgeConverterCreate;
4985
+ headers?: {
4986
+ /**
4987
+ * Client-supplied key to make this mutating POST idempotent.
4988
+ */
4989
+ 'Idempotency-Key'?: string;
4990
+ };
4991
+ path: {
4992
+ /**
4993
+ * Project public ID (proj_ prefix).
4994
+ */
4995
+ project_id: string;
4996
+ };
4997
+ query?: never;
4998
+ url: '/v1/projects/{project_id}/knowledge/converters';
4999
+ };
5000
+ type CreateKnowledgeConverterErrors = {
5001
+ /**
5002
+ * The request was malformed or failed validation.
5003
+ */
5004
+ 400: ErrorResponse;
5005
+ /**
5006
+ * Missing or invalid credentials.
5007
+ */
5008
+ 401: ErrorResponse;
5009
+ /**
5010
+ * The resource does not exist (existence is not leaked).
5011
+ */
5012
+ 404: ErrorResponse;
5013
+ /**
5014
+ * The request conflicts with the resource's current state.
5015
+ */
5016
+ 409: ErrorResponse;
5017
+ /**
5018
+ * The upstream runtime could not complete the operation.
5019
+ */
5020
+ 502: ErrorResponse;
5021
+ };
5022
+ type CreateKnowledgeConverterError = CreateKnowledgeConverterErrors[keyof CreateKnowledgeConverterErrors];
5023
+ type CreateKnowledgeConverterResponses = {
5024
+ /**
5025
+ * Converter created.
5026
+ */
5027
+ 201: KnowledgeConverter;
5028
+ };
5029
+ type CreateKnowledgeConverterResponse = CreateKnowledgeConverterResponses[keyof CreateKnowledgeConverterResponses];
5030
+ type DeleteKnowledgeConverterData = {
5031
+ body?: never;
5032
+ path: {
5033
+ /**
5034
+ * Project public ID (proj_ prefix).
5035
+ */
5036
+ project_id: string;
5037
+ /**
5038
+ * Knowledge converter public ID (igr_ prefix).
5039
+ */
5040
+ converter_id: string;
5041
+ };
5042
+ query?: never;
5043
+ url: '/v1/projects/{project_id}/knowledge/converters/{converter_id}';
5044
+ };
5045
+ type DeleteKnowledgeConverterErrors = {
5046
+ /**
5047
+ * Missing or invalid credentials.
5048
+ */
5049
+ 401: ErrorResponse;
5050
+ /**
5051
+ * The resource does not exist (existence is not leaked).
5052
+ */
5053
+ 404: ErrorResponse;
5054
+ /**
5055
+ * The upstream runtime could not complete the operation.
5056
+ */
5057
+ 502: ErrorResponse;
5058
+ };
5059
+ type DeleteKnowledgeConverterError = DeleteKnowledgeConverterErrors[keyof DeleteKnowledgeConverterErrors];
5060
+ type DeleteKnowledgeConverterResponses = {
5061
+ /**
5062
+ * Converter deleted.
5063
+ */
5064
+ 204: void;
5065
+ };
5066
+ type DeleteKnowledgeConverterResponse = DeleteKnowledgeConverterResponses[keyof DeleteKnowledgeConverterResponses];
5067
+ type GetKnowledgeConverterData = {
5068
+ body?: never;
5069
+ path: {
5070
+ /**
5071
+ * Project public ID (proj_ prefix).
5072
+ */
5073
+ project_id: string;
5074
+ /**
5075
+ * Knowledge converter public ID (igr_ prefix).
5076
+ */
5077
+ converter_id: string;
5078
+ };
5079
+ query?: never;
5080
+ url: '/v1/projects/{project_id}/knowledge/converters/{converter_id}';
5081
+ };
5082
+ type GetKnowledgeConverterErrors = {
5083
+ /**
5084
+ * Missing or invalid credentials.
5085
+ */
5086
+ 401: ErrorResponse;
5087
+ /**
5088
+ * The resource does not exist (existence is not leaked).
5089
+ */
5090
+ 404: ErrorResponse;
5091
+ /**
5092
+ * The upstream runtime could not complete the operation.
5093
+ */
5094
+ 502: ErrorResponse;
5095
+ };
5096
+ type GetKnowledgeConverterError = GetKnowledgeConverterErrors[keyof GetKnowledgeConverterErrors];
5097
+ type GetKnowledgeConverterResponses = {
5098
+ /**
5099
+ * Converter details.
5100
+ */
5101
+ 200: KnowledgeConverter;
5102
+ };
5103
+ type GetKnowledgeConverterResponse = GetKnowledgeConverterResponses[keyof GetKnowledgeConverterResponses];
5104
+ type UpdateKnowledgeConverterData = {
5105
+ body: KnowledgeConverterUpdate;
5106
+ path: {
5107
+ /**
5108
+ * Project public ID (proj_ prefix).
5109
+ */
5110
+ project_id: string;
5111
+ /**
5112
+ * Knowledge converter public ID (igr_ prefix).
5113
+ */
5114
+ converter_id: string;
5115
+ };
5116
+ query?: never;
5117
+ url: '/v1/projects/{project_id}/knowledge/converters/{converter_id}';
5118
+ };
5119
+ type UpdateKnowledgeConverterErrors = {
5120
+ /**
5121
+ * The request was malformed or failed validation.
5122
+ */
5123
+ 400: ErrorResponse;
5124
+ /**
5125
+ * Missing or invalid credentials.
5126
+ */
5127
+ 401: ErrorResponse;
5128
+ /**
5129
+ * The resource does not exist (existence is not leaked).
5130
+ */
5131
+ 404: ErrorResponse;
5132
+ /**
5133
+ * The request conflicts with the resource's current state.
5134
+ */
5135
+ 409: ErrorResponse;
5136
+ /**
5137
+ * The upstream runtime could not complete the operation.
5138
+ */
5139
+ 502: ErrorResponse;
5140
+ };
5141
+ type UpdateKnowledgeConverterError = UpdateKnowledgeConverterErrors[keyof UpdateKnowledgeConverterErrors];
5142
+ type UpdateKnowledgeConverterResponses = {
5143
+ /**
5144
+ * Converter updated.
5145
+ */
5146
+ 200: KnowledgeConverter;
5147
+ };
5148
+ type UpdateKnowledgeConverterResponse = UpdateKnowledgeConverterResponses[keyof UpdateKnowledgeConverterResponses];
4797
5149
  type ListModelsData = {
4798
5150
  body?: never;
4799
5151
  path?: never;
@@ -6904,7 +7256,11 @@ declare class Knowledge {
6904
7256
  /**
6905
7257
  * Create a document
6906
7258
  *
6907
- * Add an inline-text document to the collection. The platform ingests the content (chunk + embed) and records the document's ingestion status. File upload (PDF/binary) is a deliberate follow-up.
7259
+ * Add a document to the collection, from **inline text** (`content`) or from an **uploaded file** (`file`, base64, plus `content_type` and `filename`) exactly one of the two.
7260
+ *
7261
+ * `application/pdf`, `text/plain` and `text/markdown` are extracted natively. Any other media type needs a converter (`POST /v1/projects/{project_id}/knowledge/converters`) registered for it in the project; without one the request is rejected with `unsupported_content_type` and no document is created.
7262
+ *
7263
+ * Ingestion (extract → chunk → embed) runs in the background: the document comes back `pending` and becomes `indexed` or `failed`, which is announced by the `knowledge.document_ingested` / `knowledge.ingest_failed` webhook events.
6908
7264
  *
6909
7265
  */
6910
7266
  static createKnowledgeDocument<ThrowOnError extends boolean = false>(options: Options<CreateKnowledgeDocumentData, ThrowOnError>): RequestResult<CreateKnowledgeDocumentResponses, CreateKnowledgeDocumentErrors, ThrowOnError>;
@@ -6925,6 +7281,53 @@ declare class Knowledge {
6925
7281
  *
6926
7282
  */
6927
7283
  static reingestKnowledgeDocument<ThrowOnError extends boolean = false>(options: Options<ReingestKnowledgeDocumentData, ThrowOnError>): RequestResult<ReingestKnowledgeDocumentResponses, ReingestKnowledgeDocumentErrors, ThrowOnError>;
7284
+ /**
7285
+ * List converters
7286
+ *
7287
+ * Lists the media converters registered in the project.
7288
+ */
7289
+ static listKnowledgeConverters<ThrowOnError extends boolean = false>(options: Options<ListKnowledgeConvertersData, ThrowOnError>): RequestResult<ListKnowledgeConvertersResponses, ListKnowledgeConvertersErrors, ThrowOnError>;
7290
+ /**
7291
+ * Create a converter
7292
+ *
7293
+ * Register a converter for a media type the platform cannot extract natively, so files of that type become ingestable documents like any other. A converter maps a `content_type` glob (`image*`, `audio/mpeg`, …) onto one of two workers:
7294
+ *
7295
+ * - an **agent** (`agent_id`) — the file is handed to a
7296
+ * multimodal model with a fixed "extract all the text" instruction and
7297
+ * its answer becomes the document text. The shortest path for images
7298
+ * and scanned PDFs; nothing to map.
7299
+ *
7300
+ * - a **tool** (`tool_id`) — the file is passed to an
7301
+ * `http` tool as `{ content_type, filename, data_base64 }`, and
7302
+ * whatever string the tool returns becomes the document text. The path
7303
+ * for dedicated non-chat APIs (speech-to-text, a specialist OCR
7304
+ * engine); use the tool's `execute.body_mode: multipart` for
7305
+ * form-data endpoints and its `output_mapping` to reduce a JSON
7306
+ * response to the bare string.
7307
+ *
7308
+ *
7309
+ * Exactly one of `agent_id` / `tool_id`, and one converter per `content_type` in a project.
7310
+ *
7311
+ */
7312
+ static createKnowledgeConverter<ThrowOnError extends boolean = false>(options: Options<CreateKnowledgeConverterData, ThrowOnError>): RequestResult<CreateKnowledgeConverterResponses, CreateKnowledgeConverterErrors, ThrowOnError>;
7313
+ /**
7314
+ * Delete a converter
7315
+ *
7316
+ * Removes the converter. Documents already ingested through it are untouched; new files of that media type stop being ingestable until another converter covers them.
7317
+ *
7318
+ */
7319
+ static deleteKnowledgeConverter<ThrowOnError extends boolean = false>(options: Options<DeleteKnowledgeConverterData, ThrowOnError>): RequestResult<DeleteKnowledgeConverterResponses, DeleteKnowledgeConverterErrors, ThrowOnError>;
7320
+ /**
7321
+ * Get a converter
7322
+ */
7323
+ static getKnowledgeConverter<ThrowOnError extends boolean = false>(options: Options<GetKnowledgeConverterData, ThrowOnError>): RequestResult<GetKnowledgeConverterResponses, GetKnowledgeConverterErrors, ThrowOnError>;
7324
+ /**
7325
+ * Update a converter
7326
+ *
7327
+ * Change the worker or the chunking defaults. At least one field is required; `agent_id` and `tool_id` stay mutually exclusive, so setting one clears the other.
7328
+ *
7329
+ */
7330
+ static updateKnowledgeConverter<ThrowOnError extends boolean = false>(options: Options<UpdateKnowledgeConverterData, ThrowOnError>): RequestResult<UpdateKnowledgeConverterResponses, UpdateKnowledgeConverterErrors, ThrowOnError>;
6928
7331
  }
6929
7332
  declare class Models {
6930
7333
  /**
@@ -7286,4 +7689,4 @@ declare class NaturaliClient {
7286
7689
  constructor({ token, headers }?: NaturaliClientOptions);
7287
7690
  }
7288
7691
  //#endregion
7289
- export { type Acknowledgement, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageResponse, type AddSessionMessageResponses, type Agent, type AgentCreate, type AgentId, type AgentList, type AgentUpdate, Agents, type ApiKeyCreate, type ApiKeyCreated, type ApiKeyId, type ApiKeyList, type ApiKeyRecord, type ApiKeyUpdate, ApiKeys, type AssigneeFilter, Auth, type AuthSession, type Board, type BoardCompletionRule, type BoardCreate, type BoardDispatch, type BoardId, type BoardIdFilter, type BoardList, type BoardOnEnter, type BoardState, type BoardTransition, type BoardUpdate, Boards, type Channel, type ChannelBinding, type ChannelBindingSet, type ChannelCreate, type ChannelId, type ChannelList, type ChannelUpdate, Channels, type ClientOptions, type CollectionId, type Contact, type ContactConversation, type ContactConversationList, type ContactCreate, type ContactId, type ContactIdentity, type ContactIdentityCreate, type ContactList, type ContactMerge, type ContactMergeList, type ContactMergeRequest, type ContactMergeResult, type ContactUpdate, Contacts, type Conversation, type ConversationId, type ConversationList, type ConversationMessage, type ConversationMessageList, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentResponse, type CreateAgentResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateBoardData, type CreateBoardError, type CreateBoardErrors, type CreateBoardResponse, type CreateBoardResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateContactData, type CreateContactError, type CreateContactErrors, type CreateContactIdentityData, type CreateContactIdentityError, type CreateContactIdentityErrors, type CreateContactIdentityResponse, type CreateContactIdentityResponses, type CreateContactResponse, type CreateContactResponses, type CreateGenerationData, type CreateGenerationError, type CreateGenerationErrors, type CreateGenerationResponse, type CreateGenerationResponses, type CreateKnowledgeCollectionData, type CreateKnowledgeCollectionError, type CreateKnowledgeCollectionErrors, type CreateKnowledgeCollectionResponse, type CreateKnowledgeCollectionResponses, type CreateKnowledgeDocumentData, type CreateKnowledgeDocumentError, type CreateKnowledgeDocumentErrors, type CreateKnowledgeDocumentResponse, type CreateKnowledgeDocumentResponses, type CreateProjectData, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateProviderData, type CreateProviderError, type CreateProviderErrors, type CreateProviderResponse, type CreateProviderResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionResponse, type CreateSessionResponses, type CreateTaskData, type CreateTaskError, type CreateTaskErrors, type CreateTaskResponse, type CreateTaskResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolResponse, type CreateToolResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type Cursor, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteBoardData, type DeleteBoardError, type DeleteBoardErrors, type DeleteBoardResponse, type DeleteBoardResponses, type DeleteChannelBindingData, type DeleteChannelBindingError, type DeleteChannelBindingErrors, type DeleteChannelBindingResponse, type DeleteChannelBindingResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteContactData, type DeleteContactError, type DeleteContactErrors, type DeleteContactIdentityData, type DeleteContactIdentityError, type DeleteContactIdentityErrors, type DeleteContactIdentityResponse, type DeleteContactIdentityResponses, type DeleteContactResponse, type DeleteContactResponses, type DeleteKnowledgeCollectionData, type DeleteKnowledgeCollectionError, type DeleteKnowledgeCollectionErrors, type DeleteKnowledgeCollectionResponse, type DeleteKnowledgeCollectionResponses, type DeleteKnowledgeDocumentData, type DeleteKnowledgeDocumentError, type DeleteKnowledgeDocumentErrors, type DeleteKnowledgeDocumentResponse, type DeleteKnowledgeDocumentResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteProviderData, type DeleteProviderError, type DeleteProviderErrors, type DeleteProviderResponse, type DeleteProviderResponses, type DeleteTaskData, type DeleteTaskError, type DeleteTaskErrors, type DeleteTaskResponse, type DeleteTaskResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeliveryId, type DiscordModes, type DocumentId, type ErrorResponse, type Event, type EventSubscription, type EventType, type Force, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, type GenerationCreate, type GenerationId, type GenerationList, type GenerationResult, type GenerationStatus, type GenerationUsage, Generations, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetApiKeyData, type GetApiKeyError, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponses, type GetChannelBindingData, type GetChannelBindingError, type GetChannelBindingErrors, type GetChannelBindingResponse, type GetChannelBindingResponses, type GetChannelConversationData, type GetChannelConversationError, type GetChannelConversationErrors, type GetChannelConversationResponse, type GetChannelConversationResponses, type GetChannelData, type GetChannelError, type GetChannelErrors, type GetChannelResponse, type GetChannelResponses, type GetContactData, type GetContactError, type GetContactErrors, type GetContactResponse, type GetContactResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetGenerationUsageData, type GetGenerationUsageError, type GetGenerationUsageErrors, type GetGenerationUsageResponse, type GetGenerationUsageResponses, type GetKnowledgeCollectionData, type GetKnowledgeCollectionError, type GetKnowledgeCollectionErrors, type GetKnowledgeCollectionResponse, type GetKnowledgeCollectionResponses, type GetKnowledgeDocumentData, type GetKnowledgeDocumentError, type GetKnowledgeDocumentErrors, type GetKnowledgeDocumentResponse, type GetKnowledgeDocumentResponses, type GetModelData, type GetModelError, type GetModelErrors, type GetModelResponse, type GetModelResponses, type GetProjectData, type GetProjectError, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetProjectUsageData, type GetProjectUsageError, type GetProjectUsageErrors, type GetProjectUsageResponse, type GetProjectUsageResponses, type GetProviderData, type GetProviderError, type GetProviderErrors, type GetProviderResponse, type GetProviderResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetTaskData, type GetTaskError, type GetTaskErrors, type GetTaskResponse, type GetTaskResponses, type GetToolData, type GetToolError, type GetToolErrors, type GetToolResponse, type GetToolResponses, type GetTraceData, type GetTraceError, type GetTraceErrors, type GetTraceResponse, type GetTraceResponses, type GetTraceTreeData, type GetTraceTreeError, type GetTraceTreeErrors, type GetTraceTreeResponse, type GetTraceTreeResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryError, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type HttpExecute, type IdempotencyKey, type IdentityId, Knowledge, type KnowledgeChunk, type KnowledgeCollection, type KnowledgeCollectionCreate, type KnowledgeCollectionList, type KnowledgeCollectionUpdate, type KnowledgeDocument, type KnowledgeDocumentCreate, type KnowledgeDocumentList, type KnowledgeQueryRequest, type KnowledgeQueryResult, type Limit, type ListAgentGenerationsData, type ListAgentGenerationsError, type ListAgentGenerationsErrors, type ListAgentGenerationsResponse, type ListAgentGenerationsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListBoardsData, type ListBoardsError, type ListBoardsErrors, type ListBoardsResponse, type ListBoardsResponses, type ListChannelConversationMessagesData, type ListChannelConversationMessagesError, type ListChannelConversationMessagesErrors, type ListChannelConversationMessagesResponse, type ListChannelConversationMessagesResponses, type ListChannelConversationsData, type ListChannelConversationsError, type ListChannelConversationsErrors, type ListChannelConversationsResponse, type ListChannelConversationsResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListContactConversationsData, type ListContactConversationsError, type ListContactConversationsErrors, type ListContactConversationsResponse, type ListContactConversationsResponses, type ListContactMergesData, type ListContactMergesError, type ListContactMergesErrors, type ListContactMergesResponse, type ListContactMergesResponses, type ListContactsData, type ListContactsError, type ListContactsErrors, type ListContactsResponse, type ListContactsResponses, type ListKnowledgeCollectionsData, type ListKnowledgeCollectionsError, type ListKnowledgeCollectionsErrors, type ListKnowledgeCollectionsResponse, type ListKnowledgeCollectionsResponses, type ListKnowledgeDocumentsData, type ListKnowledgeDocumentsError, type ListKnowledgeDocumentsErrors, type ListKnowledgeDocumentsResponse, type ListKnowledgeDocumentsResponses, type ListModelsData, type ListModelsError, type ListModelsErrors, type ListModelsResponse, type ListModelsResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListProvidersData, type ListProvidersError, type ListProvidersErrors, type ListProvidersResponse, type ListProvidersResponses, type ListTaskTransitionsData, type ListTaskTransitionsError, type ListTaskTransitionsErrors, type ListTaskTransitionsResponse, type ListTaskTransitionsResponses, type ListTasksData, type ListTasksError, type ListTasksErrors, type ListTasksResponse, type ListTasksResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTraceGenerationsData, type ListTraceGenerationsError, type ListTraceGenerationsErrors, type ListTraceGenerationsResponse, type ListTraceGenerationsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesError, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type LogoutData, type LogoutError, type LogoutErrors, type LogoutRequest, type LogoutResponse, type LogoutResponses, type McpConfig, type MergeContactData, type MergeContactError, type MergeContactErrors, type MergeContactResponse, type MergeContactResponses, type MergeId, type Message, type MessagesLimit, type Model, type ModelList, Models, NaturaliClient, type NaturaliClientOptions, type Offset, type Options, type Project, type ProjectCreate, type ProjectId, type ProjectList, type ProjectUpdate, type ProjectUsage, Projects, type Provider, type ProviderCreate, type ProviderId, type ProviderList, type ProviderUpdate, Providers, type QueryKnowledgeCollectionData, type QueryKnowledgeCollectionError, type QueryKnowledgeCollectionErrors, type QueryKnowledgeCollectionResponse, type QueryKnowledgeCollectionResponses, type RedeliverWebhookDeliveryData, type RedeliverWebhookDeliveryError, type RedeliverWebhookDeliveryErrors, type RedeliverWebhookDeliveryResponse, type RedeliverWebhookDeliveryResponses, type RefreshRequest, type RefreshSessionData, type RefreshSessionError, type RefreshSessionErrors, type RefreshSessionResponse, type RefreshSessionResponses, type ReingestKnowledgeDocumentData, type ReingestKnowledgeDocumentError, type ReingestKnowledgeDocumentErrors, type ReingestKnowledgeDocumentResponse, type ReingestKnowledgeDocumentResponses, type RequestSignInCodeData, type RequestSignInCodeError, type RequestSignInCodeErrors, type RequestSignInCodeResponse, type RequestSignInCodeResponses, type RevertContactMergeData, type RevertContactMergeError, type RevertContactMergeErrors, type RevertContactMergeResponse, type RevertContactMergeResponses, type RotateApiKeyData, type RotateApiKeyError, type RotateApiKeyErrors, type RotateApiKeyResponse, type RotateApiKeyResponses, type RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type Session, type SessionCreate, type SessionGenerate, type SessionGeneration, type SessionId, type SessionMessage, type SessionMessageCreate, Sessions, type SetChannelBindingData, type SetChannelBindingError, type SetChannelBindingErrors, type SetChannelBindingResponse, type SetChannelBindingResponses, type SignInCodeRequest, type SignInCodeVerify, type StateFilter, type StatusFilter, type Task, type TaskCreate, type TaskId, type TaskList, type TaskTransitionList, type TaskTransitionRecord, type TaskTransitionRequest, type TaskUpdate, Tasks, type Tool, type ToolChoice, type ToolContext, type ToolCreate, type ToolId, type ToolList, type ToolUpdate, Tools, type Trace, type TraceId, type TraceList, type TraceTreeNode, Traces, type TransitionTaskData, type TransitionTaskError, type TransitionTaskErrors, type TransitionTaskResponse, type TransitionTaskResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateBoardData, type UpdateBoardError, type UpdateBoardErrors, type UpdateBoardResponse, type UpdateBoardResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateContactData, type UpdateContactError, type UpdateContactErrors, type UpdateContactResponse, type UpdateContactResponses, type UpdateKnowledgeCollectionData, type UpdateKnowledgeCollectionError, type UpdateKnowledgeCollectionErrors, type UpdateKnowledgeCollectionResponse, type UpdateKnowledgeCollectionResponses, type UpdateProjectData, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateProviderData, type UpdateProviderError, type UpdateProviderErrors, type UpdateProviderResponse, type UpdateProviderResponses, type UpdateTaskData, type UpdateTaskError, type UpdateTaskErrors, type UpdateTaskResponse, type UpdateTaskResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolResponse, type UpdateToolResponses, type UpdateWebhookData, type UpdateWebhookError, type UpdateWebhookErrors, type UpdateWebhookResponse, type UpdateWebhookResponses, type UsageGroup, type UsageTokens, type User, type VerifySignInCodeData, type VerifySignInCodeError, type VerifySignInCodeErrors, type VerifySignInCodeResponse, type VerifySignInCodeResponses, type Webhook, type WebhookCreate, type WebhookDelivery, type WebhookDeliveryList, type WebhookId, type WebhookList, type WebhookUpdate, type WebhookWithSecret, Webhooks, createClient, createConfig };
7692
+ export { type Acknowledgement, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageResponse, type AddSessionMessageResponses, type Agent, type AgentCreate, type AgentId, type AgentList, type AgentUpdate, Agents, type ApiKeyCreate, type ApiKeyCreated, type ApiKeyId, type ApiKeyList, type ApiKeyRecord, type ApiKeyUpdate, ApiKeys, type AssigneeFilter, Auth, type AuthSession, type Board, type BoardCompletionRule, type BoardCreate, type BoardDispatch, type BoardId, type BoardIdFilter, type BoardList, type BoardOnEnter, type BoardState, type BoardTransition, type BoardUpdate, Boards, type Channel, type ChannelBinding, type ChannelBindingSet, type ChannelCreate, type ChannelId, type ChannelList, type ChannelUpdate, Channels, type ClientOptions, type CollectionId, type Contact, type ContactConversation, type ContactConversationList, type ContactCreate, type ContactId, type ContactIdentity, type ContactIdentityCreate, type ContactList, type ContactMerge, type ContactMergeList, type ContactMergeRequest, type ContactMergeResult, type ContactUpdate, Contacts, type Conversation, type ConversationId, type ConversationList, type ConversationMessage, type ConversationMessageList, type ConverterId, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentResponse, type CreateAgentResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateBoardData, type CreateBoardError, type CreateBoardErrors, type CreateBoardResponse, type CreateBoardResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateContactData, type CreateContactError, type CreateContactErrors, type CreateContactIdentityData, type CreateContactIdentityError, type CreateContactIdentityErrors, type CreateContactIdentityResponse, type CreateContactIdentityResponses, type CreateContactResponse, type CreateContactResponses, type CreateGenerationData, type CreateGenerationError, type CreateGenerationErrors, type CreateGenerationResponse, type CreateGenerationResponses, type CreateKnowledgeCollectionData, type CreateKnowledgeCollectionError, type CreateKnowledgeCollectionErrors, type CreateKnowledgeCollectionResponse, type CreateKnowledgeCollectionResponses, type CreateKnowledgeConverterData, type CreateKnowledgeConverterError, type CreateKnowledgeConverterErrors, type CreateKnowledgeConverterResponse, type CreateKnowledgeConverterResponses, type CreateKnowledgeDocumentData, type CreateKnowledgeDocumentError, type CreateKnowledgeDocumentErrors, type CreateKnowledgeDocumentResponse, type CreateKnowledgeDocumentResponses, type CreateProjectData, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateProviderData, type CreateProviderError, type CreateProviderErrors, type CreateProviderResponse, type CreateProviderResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionResponse, type CreateSessionResponses, type CreateTaskData, type CreateTaskError, type CreateTaskErrors, type CreateTaskResponse, type CreateTaskResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolResponse, type CreateToolResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type Cursor, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteBoardData, type DeleteBoardError, type DeleteBoardErrors, type DeleteBoardResponse, type DeleteBoardResponses, type DeleteChannelBindingData, type DeleteChannelBindingError, type DeleteChannelBindingErrors, type DeleteChannelBindingResponse, type DeleteChannelBindingResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteContactData, type DeleteContactError, type DeleteContactErrors, type DeleteContactIdentityData, type DeleteContactIdentityError, type DeleteContactIdentityErrors, type DeleteContactIdentityResponse, type DeleteContactIdentityResponses, type DeleteContactResponse, type DeleteContactResponses, type DeleteKnowledgeCollectionData, type DeleteKnowledgeCollectionError, type DeleteKnowledgeCollectionErrors, type DeleteKnowledgeCollectionResponse, type DeleteKnowledgeCollectionResponses, type DeleteKnowledgeConverterData, type DeleteKnowledgeConverterError, type DeleteKnowledgeConverterErrors, type DeleteKnowledgeConverterResponse, type DeleteKnowledgeConverterResponses, type DeleteKnowledgeDocumentData, type DeleteKnowledgeDocumentError, type DeleteKnowledgeDocumentErrors, type DeleteKnowledgeDocumentResponse, type DeleteKnowledgeDocumentResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteProviderData, type DeleteProviderError, type DeleteProviderErrors, type DeleteProviderResponse, type DeleteProviderResponses, type DeleteTaskData, type DeleteTaskError, type DeleteTaskErrors, type DeleteTaskResponse, type DeleteTaskResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeliveryId, type DiscordModes, type DocumentId, type ErrorResponse, type Event, type EventSubscription, type EventType, type Force, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, type GenerationCreate, type GenerationId, type GenerationList, type GenerationResult, type GenerationStatus, type GenerationUsage, Generations, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetApiKeyData, type GetApiKeyError, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponses, type GetChannelBindingData, type GetChannelBindingError, type GetChannelBindingErrors, type GetChannelBindingResponse, type GetChannelBindingResponses, type GetChannelConversationData, type GetChannelConversationError, type GetChannelConversationErrors, type GetChannelConversationResponse, type GetChannelConversationResponses, type GetChannelData, type GetChannelError, type GetChannelErrors, type GetChannelResponse, type GetChannelResponses, type GetContactData, type GetContactError, type GetContactErrors, type GetContactResponse, type GetContactResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetGenerationUsageData, type GetGenerationUsageError, type GetGenerationUsageErrors, type GetGenerationUsageResponse, type GetGenerationUsageResponses, type GetKnowledgeCollectionData, type GetKnowledgeCollectionError, type GetKnowledgeCollectionErrors, type GetKnowledgeCollectionResponse, type GetKnowledgeCollectionResponses, type GetKnowledgeConverterData, type GetKnowledgeConverterError, type GetKnowledgeConverterErrors, type GetKnowledgeConverterResponse, type GetKnowledgeConverterResponses, type GetKnowledgeDocumentData, type GetKnowledgeDocumentError, type GetKnowledgeDocumentErrors, type GetKnowledgeDocumentResponse, type GetKnowledgeDocumentResponses, type GetModelData, type GetModelError, type GetModelErrors, type GetModelResponse, type GetModelResponses, type GetProjectData, type GetProjectError, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetProjectUsageData, type GetProjectUsageError, type GetProjectUsageErrors, type GetProjectUsageResponse, type GetProjectUsageResponses, type GetProviderData, type GetProviderError, type GetProviderErrors, type GetProviderResponse, type GetProviderResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetTaskData, type GetTaskError, type GetTaskErrors, type GetTaskResponse, type GetTaskResponses, type GetToolData, type GetToolError, type GetToolErrors, type GetToolResponse, type GetToolResponses, type GetTraceData, type GetTraceError, type GetTraceErrors, type GetTraceResponse, type GetTraceResponses, type GetTraceTreeData, type GetTraceTreeError, type GetTraceTreeErrors, type GetTraceTreeResponse, type GetTraceTreeResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryError, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type HttpExecute, type IdempotencyKey, type IdentityId, Knowledge, type KnowledgeChunk, type KnowledgeCollection, type KnowledgeCollectionCreate, type KnowledgeCollectionList, type KnowledgeCollectionUpdate, type KnowledgeConverter, type KnowledgeConverterCreate, type KnowledgeConverterList, type KnowledgeConverterUpdate, type KnowledgeDocument, type KnowledgeDocumentCreate, type KnowledgeDocumentList, type KnowledgeQueryRequest, type KnowledgeQueryResult, type Limit, type ListAgentGenerationsData, type ListAgentGenerationsError, type ListAgentGenerationsErrors, type ListAgentGenerationsResponse, type ListAgentGenerationsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListBoardsData, type ListBoardsError, type ListBoardsErrors, type ListBoardsResponse, type ListBoardsResponses, type ListChannelConversationMessagesData, type ListChannelConversationMessagesError, type ListChannelConversationMessagesErrors, type ListChannelConversationMessagesResponse, type ListChannelConversationMessagesResponses, type ListChannelConversationsData, type ListChannelConversationsError, type ListChannelConversationsErrors, type ListChannelConversationsResponse, type ListChannelConversationsResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListContactConversationsData, type ListContactConversationsError, type ListContactConversationsErrors, type ListContactConversationsResponse, type ListContactConversationsResponses, type ListContactMergesData, type ListContactMergesError, type ListContactMergesErrors, type ListContactMergesResponse, type ListContactMergesResponses, type ListContactsData, type ListContactsError, type ListContactsErrors, type ListContactsResponse, type ListContactsResponses, type ListKnowledgeCollectionsData, type ListKnowledgeCollectionsError, type ListKnowledgeCollectionsErrors, type ListKnowledgeCollectionsResponse, type ListKnowledgeCollectionsResponses, type ListKnowledgeConvertersData, type ListKnowledgeConvertersError, type ListKnowledgeConvertersErrors, type ListKnowledgeConvertersResponse, type ListKnowledgeConvertersResponses, type ListKnowledgeDocumentsData, type ListKnowledgeDocumentsError, type ListKnowledgeDocumentsErrors, type ListKnowledgeDocumentsResponse, type ListKnowledgeDocumentsResponses, type ListModelsData, type ListModelsError, type ListModelsErrors, type ListModelsResponse, type ListModelsResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListProvidersData, type ListProvidersError, type ListProvidersErrors, type ListProvidersResponse, type ListProvidersResponses, type ListTaskTransitionsData, type ListTaskTransitionsError, type ListTaskTransitionsErrors, type ListTaskTransitionsResponse, type ListTaskTransitionsResponses, type ListTasksData, type ListTasksError, type ListTasksErrors, type ListTasksResponse, type ListTasksResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTraceGenerationsData, type ListTraceGenerationsError, type ListTraceGenerationsErrors, type ListTraceGenerationsResponse, type ListTraceGenerationsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesError, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type LogoutData, type LogoutError, type LogoutErrors, type LogoutRequest, type LogoutResponse, type LogoutResponses, type McpConfig, type MergeContactData, type MergeContactError, type MergeContactErrors, type MergeContactResponse, type MergeContactResponses, type MergeId, type Message, type MessagesLimit, type Model, type ModelList, Models, NaturaliClient, type NaturaliClientOptions, type Offset, type Options, type Project, type ProjectCreate, type ProjectId, type ProjectList, type ProjectUpdate, type ProjectUsage, Projects, type Provider, type ProviderCreate, type ProviderId, type ProviderList, type ProviderUpdate, Providers, type QueryKnowledgeCollectionData, type QueryKnowledgeCollectionError, type QueryKnowledgeCollectionErrors, type QueryKnowledgeCollectionResponse, type QueryKnowledgeCollectionResponses, type RedeliverWebhookDeliveryData, type RedeliverWebhookDeliveryError, type RedeliverWebhookDeliveryErrors, type RedeliverWebhookDeliveryResponse, type RedeliverWebhookDeliveryResponses, type RefreshRequest, type RefreshSessionData, type RefreshSessionError, type RefreshSessionErrors, type RefreshSessionResponse, type RefreshSessionResponses, type ReingestKnowledgeDocumentData, type ReingestKnowledgeDocumentError, type ReingestKnowledgeDocumentErrors, type ReingestKnowledgeDocumentResponse, type ReingestKnowledgeDocumentResponses, type RequestSignInCodeData, type RequestSignInCodeError, type RequestSignInCodeErrors, type RequestSignInCodeResponse, type RequestSignInCodeResponses, type RevertContactMergeData, type RevertContactMergeError, type RevertContactMergeErrors, type RevertContactMergeResponse, type RevertContactMergeResponses, type RotateApiKeyData, type RotateApiKeyError, type RotateApiKeyErrors, type RotateApiKeyResponse, type RotateApiKeyResponses, type RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type Session, type SessionCreate, type SessionGenerate, type SessionGeneration, type SessionId, type SessionMessage, type SessionMessageCreate, Sessions, type SetChannelBindingData, type SetChannelBindingError, type SetChannelBindingErrors, type SetChannelBindingResponse, type SetChannelBindingResponses, type SignInCodeRequest, type SignInCodeVerify, type StateFilter, type StatusFilter, type Task, type TaskCreate, type TaskId, type TaskList, type TaskTransitionList, type TaskTransitionRecord, type TaskTransitionRequest, type TaskUpdate, Tasks, type Tool, type ToolChoice, type ToolContext, type ToolCreate, type ToolId, type ToolList, type ToolUpdate, Tools, type Trace, type TraceId, type TraceList, type TraceTreeNode, Traces, type TransitionTaskData, type TransitionTaskError, type TransitionTaskErrors, type TransitionTaskResponse, type TransitionTaskResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateBoardData, type UpdateBoardError, type UpdateBoardErrors, type UpdateBoardResponse, type UpdateBoardResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateContactData, type UpdateContactError, type UpdateContactErrors, type UpdateContactResponse, type UpdateContactResponses, type UpdateKnowledgeCollectionData, type UpdateKnowledgeCollectionError, type UpdateKnowledgeCollectionErrors, type UpdateKnowledgeCollectionResponse, type UpdateKnowledgeCollectionResponses, type UpdateKnowledgeConverterData, type UpdateKnowledgeConverterError, type UpdateKnowledgeConverterErrors, type UpdateKnowledgeConverterResponse, type UpdateKnowledgeConverterResponses, type UpdateProjectData, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateProviderData, type UpdateProviderError, type UpdateProviderErrors, type UpdateProviderResponse, type UpdateProviderResponses, type UpdateTaskData, type UpdateTaskError, type UpdateTaskErrors, type UpdateTaskResponse, type UpdateTaskResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolResponse, type UpdateToolResponses, type UpdateWebhookData, type UpdateWebhookError, type UpdateWebhookErrors, type UpdateWebhookResponse, type UpdateWebhookResponses, type UsageGroup, type UsageTokens, type User, type VerifySignInCodeData, type VerifySignInCodeError, type VerifySignInCodeErrors, type VerifySignInCodeResponse, type VerifySignInCodeResponses, type Webhook, type WebhookCreate, type WebhookDelivery, type WebhookDeliveryList, type WebhookId, type WebhookList, type WebhookUpdate, type WebhookWithSecret, Webhooks, createClient, createConfig };
package/dist/index.mjs CHANGED
@@ -1343,7 +1343,11 @@ var Knowledge = class {
1343
1343
  /**
1344
1344
  * Create a document
1345
1345
  *
1346
- * Add an inline-text document to the collection. The platform ingests the content (chunk + embed) and records the document's ingestion status. File upload (PDF/binary) is a deliberate follow-up.
1346
+ * Add a document to the collection, from **inline text** (`content`) or from an **uploaded file** (`file`, base64, plus `content_type` and `filename`) exactly one of the two.
1347
+ *
1348
+ * `application/pdf`, `text/plain` and `text/markdown` are extracted natively. Any other media type needs a converter (`POST /v1/projects/{project_id}/knowledge/converters`) registered for it in the project; without one the request is rejected with `unsupported_content_type` and no document is created.
1349
+ *
1350
+ * Ingestion (extract → chunk → embed) runs in the background: the document comes back `pending` and becomes `indexed` or `failed`, which is announced by the `knowledge.document_ingested` / `knowledge.ingest_failed` webhook events.
1347
1351
  *
1348
1352
  */
1349
1353
  static createKnowledgeDocument(options) {
@@ -1388,6 +1392,86 @@ var Knowledge = class {
1388
1392
  ...options
1389
1393
  });
1390
1394
  }
1395
+ /**
1396
+ * List converters
1397
+ *
1398
+ * Lists the media converters registered in the project.
1399
+ */
1400
+ static listKnowledgeConverters(options) {
1401
+ return (options.client ?? client).get({
1402
+ url: "/v1/projects/{project_id}/knowledge/converters",
1403
+ ...options
1404
+ });
1405
+ }
1406
+ /**
1407
+ * Create a converter
1408
+ *
1409
+ * Register a converter for a media type the platform cannot extract natively, so files of that type become ingestable documents like any other. A converter maps a `content_type` glob (`image*`, `audio/mpeg`, …) onto one of two workers:
1410
+ *
1411
+ * - an **agent** (`agent_id`) — the file is handed to a
1412
+ * multimodal model with a fixed "extract all the text" instruction and
1413
+ * its answer becomes the document text. The shortest path for images
1414
+ * and scanned PDFs; nothing to map.
1415
+ *
1416
+ * - a **tool** (`tool_id`) — the file is passed to an
1417
+ * `http` tool as `{ content_type, filename, data_base64 }`, and
1418
+ * whatever string the tool returns becomes the document text. The path
1419
+ * for dedicated non-chat APIs (speech-to-text, a specialist OCR
1420
+ * engine); use the tool's `execute.body_mode: multipart` for
1421
+ * form-data endpoints and its `output_mapping` to reduce a JSON
1422
+ * response to the bare string.
1423
+ *
1424
+ *
1425
+ * Exactly one of `agent_id` / `tool_id`, and one converter per `content_type` in a project.
1426
+ *
1427
+ */
1428
+ static createKnowledgeConverter(options) {
1429
+ return (options.client ?? client).post({
1430
+ url: "/v1/projects/{project_id}/knowledge/converters",
1431
+ ...options,
1432
+ headers: {
1433
+ "Content-Type": "application/json",
1434
+ ...options.headers
1435
+ }
1436
+ });
1437
+ }
1438
+ /**
1439
+ * Delete a converter
1440
+ *
1441
+ * Removes the converter. Documents already ingested through it are untouched; new files of that media type stop being ingestable until another converter covers them.
1442
+ *
1443
+ */
1444
+ static deleteKnowledgeConverter(options) {
1445
+ return (options.client ?? client).delete({
1446
+ url: "/v1/projects/{project_id}/knowledge/converters/{converter_id}",
1447
+ ...options
1448
+ });
1449
+ }
1450
+ /**
1451
+ * Get a converter
1452
+ */
1453
+ static getKnowledgeConverter(options) {
1454
+ return (options.client ?? client).get({
1455
+ url: "/v1/projects/{project_id}/knowledge/converters/{converter_id}",
1456
+ ...options
1457
+ });
1458
+ }
1459
+ /**
1460
+ * Update a converter
1461
+ *
1462
+ * Change the worker or the chunking defaults. At least one field is required; `agent_id` and `tool_id` stay mutually exclusive, so setting one clears the other.
1463
+ *
1464
+ */
1465
+ static updateKnowledgeConverter(options) {
1466
+ return (options.client ?? client).patch({
1467
+ url: "/v1/projects/{project_id}/knowledge/converters/{converter_id}",
1468
+ ...options,
1469
+ headers: {
1470
+ "Content-Type": "application/json",
1471
+ ...options.headers
1472
+ }
1473
+ });
1474
+ }
1391
1475
  };
1392
1476
  var Models = class {
1393
1477
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.41.0",
3
+ "version": "0.42.1",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -37,7 +37,7 @@
37
37
  "tsx": "^4.23.1",
38
38
  "typescript": "~6.0.3",
39
39
  "vitest": "^4.1.10",
40
- "@naturali/api": "0.41.0"
40
+ "@naturali/api": "0.42.1"
41
41
  },
42
42
  "scripts": {
43
43
  "generate": "tsx scripts/generate.ts",