@naturali/sdk 0.71.2 → 0.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1872,6 +1872,107 @@ type GenerateConversationMessageResponse = ({
1872
1872
  } & GenerateConversationMessageCompleted) | ({
1873
1873
  status: 'requires_action';
1874
1874
  } & GenerateConversationMessageRequiresAction);
1875
+ type DocumentRecord = {
1876
+ /**
1877
+ * Document ID
1878
+ */
1879
+ id?: string;
1880
+ /**
1881
+ * Underlying file ID
1882
+ */
1883
+ file_id?: string;
1884
+ /**
1885
+ * Project ID
1886
+ */
1887
+ project_id?: string;
1888
+ /**
1889
+ * Logical path of the document within the project (e.g. /reports/q1.txt)
1890
+ */
1891
+ path?: string | null;
1892
+ /**
1893
+ * Original filename
1894
+ */
1895
+ filename?: string;
1896
+ /**
1897
+ * Media type of the source file the document was ingested from. Absent when the underlying file is gone.
1898
+ */
1899
+ content_type?: string;
1900
+ /**
1901
+ * File size in bytes
1902
+ */
1903
+ size?: number;
1904
+ /**
1905
+ * Ingestion lifecycle state. `pending` — enqueued; `processing` — chunks being extracted and embedded; `ready` — fully indexed; `failed` — processing error (see the `error` field on `GET /documents/{id}/status`).
1906
+ */
1907
+ status?: 'pending' | 'processing' | 'ready' | 'failed';
1908
+ /**
1909
+ * Text content (only present on getDocument, and only when status is ready)
1910
+ */
1911
+ content?: string | null;
1912
+ /**
1913
+ * The chunk strategy the document was last (re-)ingested with. Absent when the default (`whole`) was used — the mapper omits the key rather than sending `null`.
1914
+ */
1915
+ chunk_strategy?: 'page' | 'whole' | 'size';
1916
+ /**
1917
+ * Window size in characters used when `chunk_strategy=size`. Absent otherwise.
1918
+ */
1919
+ chunk_size?: number;
1920
+ /**
1921
+ * Overlap in characters between consecutive windows used when `chunk_strategy=size`. Absent otherwise.
1922
+ */
1923
+ chunk_overlap?: number;
1924
+ created_at?: Date;
1925
+ updated_at?: Date;
1926
+ };
1927
+ type IngestedDocumentRecord = DocumentRecord & {
1928
+ /**
1929
+ * Number of chunks created from the file.
1930
+ */
1931
+ chunk_count?: number;
1932
+ };
1933
+ type DocumentStatusRecord = {
1934
+ /**
1935
+ * Document ID
1936
+ */
1937
+ id?: string;
1938
+ /**
1939
+ * Ingestion lifecycle state.
1940
+ */
1941
+ status?: 'pending' | 'processing' | 'ready' | 'failed';
1942
+ /**
1943
+ * Number of chunks **currently indexed** for this document (a live count). Grows while `status=processing` and equals the final total once `ready`; `0` while `pending`.
1944
+ */
1945
+ chunk_count?: number;
1946
+ /**
1947
+ * Planned total number of chunks, known once chunking begins. `null` until then. Used as the denominator for `progress`.
1948
+ */
1949
+ total_chunks?: number | null;
1950
+ /**
1951
+ * Number of source pages extracted. Only known after extraction, so it is `null` until `status` is `ready` or `failed` (not the same as zero pages).
1952
+ */
1953
+ total_pages?: number | null;
1954
+ /**
1955
+ * Ingestion progress as a percentage (`chunk_count / total_chunks`). `0` while `pending`, climbs while `processing` (capped at 99), `100` when `ready`, and `null` when `failed` or not yet computable.
1956
+ */
1957
+ progress?: number | null;
1958
+ /**
1959
+ * Failure reason when `status` is `failed` (e.g. `FILE_PARSE_FAILED`, `INGESTION_TIMEOUT`).
1960
+ */
1961
+ error?: string | null;
1962
+ };
1963
+ /**
1964
+ * Response containing generated embeddings. Fields present depend on whether `input` or `inputs` was provided.
1965
+ */
1966
+ type EmbeddingsResponse = {
1967
+ /**
1968
+ * Embedding vector for the single `input` text.
1969
+ */
1970
+ embedding?: Array<number>;
1971
+ /**
1972
+ * Embedding vectors for each item in the `inputs` batch.
1973
+ */
1974
+ embeddings?: Array<Array<number>>;
1975
+ };
1875
1976
  /**
1876
1977
  * Messages replayed verbatim as the generation's input
1877
1978
  */
@@ -2123,6 +2224,75 @@ type EvalResult = {
2123
2224
  error?: string | null;
2124
2225
  created_at?: Date;
2125
2226
  };
2227
+ type UploadFileBase64Request = {
2228
+ /**
2229
+ * Base64-encoded file content
2230
+ */
2231
+ content: string;
2232
+ /**
2233
+ * Directory within the project (e.g. /documents). Optional; defaults to / (root).
2234
+ */
2235
+ prefix?: string;
2236
+ /**
2237
+ * Original / download name and the key's leaf segment.
2238
+ */
2239
+ filename?: string;
2240
+ /**
2241
+ * MIME type of the file
2242
+ */
2243
+ content_type?: string;
2244
+ /**
2245
+ * JSON string with additional metadata
2246
+ */
2247
+ metadata?: string;
2248
+ };
2249
+ /**
2250
+ * Stored file metadata
2251
+ */
2252
+ type FileRecord = {
2253
+ /**
2254
+ * Unique file identifier
2255
+ */
2256
+ id?: string;
2257
+ /**
2258
+ * Directory of the file (the `path` without its last segment). Read-only — set it via `prefix` on write.
2259
+ */
2260
+ readonly prefix?: string;
2261
+ /**
2262
+ * Original / download name and the key's leaf segment.
2263
+ */
2264
+ filename?: string;
2265
+ /**
2266
+ * Full key of the file within the project — `prefix` + `/` + `filename` (e.g. /images/logo.png). Read-only; unique per project; the file's identity and policy-SRN target.
2267
+ */
2268
+ readonly path?: string | null;
2269
+ /**
2270
+ * MIME type of the file
2271
+ */
2272
+ content_type?: string | null;
2273
+ /**
2274
+ * File size in bytes
2275
+ */
2276
+ size?: number | null;
2277
+ /**
2278
+ * JSON string with additional metadata
2279
+ */
2280
+ metadata?: string | null;
2281
+ /**
2282
+ * Key-value tags attached to the file.
2283
+ */
2284
+ tags?: {
2285
+ [key: string]: string;
2286
+ };
2287
+ /**
2288
+ * Creation timestamp
2289
+ */
2290
+ created_at?: Date;
2291
+ /**
2292
+ * Last update timestamp
2293
+ */
2294
+ updated_at?: Date;
2295
+ };
2126
2296
  type Generation = {
2127
2297
  /**
2128
2298
  * Public ID of the generation
@@ -2436,6 +2606,144 @@ type GenerationTranscript = {
2436
2606
  */
2437
2607
  content_redacted_by_principal_id?: string | null;
2438
2608
  };
2609
+ type IngestionRule = {
2610
+ id?: string;
2611
+ project_id?: string;
2612
+ content_type_glob?: string;
2613
+ tool_id?: string | null;
2614
+ agent_id?: string | null;
2615
+ action?: string | null;
2616
+ preset_parameters?: {
2617
+ [key: string]: unknown;
2618
+ } | null;
2619
+ native_extraction?: 'first' | 'skip';
2620
+ file_delivery?: 'base64' | 'download_url';
2621
+ chunk_strategy?: string | null;
2622
+ chunk_size?: number | null;
2623
+ chunk_overlap?: number | null;
2624
+ metadata?: {
2625
+ [key: string]: unknown;
2626
+ } | null;
2627
+ created_at?: Date;
2628
+ updated_at?: Date;
2629
+ };
2630
+ type KnowledgeResult = ({
2631
+ source_type: 'document';
2632
+ } & DocumentKnowledgeResult) | ({
2633
+ source_type: 'memory';
2634
+ } & MemoryKnowledgeResult);
2635
+ type DocumentKnowledgeResult = {
2636
+ /**
2637
+ * The type of knowledge source this result comes from
2638
+ */
2639
+ source_type: 'document';
2640
+ /**
2641
+ * Public ID of the document
2642
+ */
2643
+ document_id: string;
2644
+ /**
2645
+ * Public ID of the document chunk that matched the query
2646
+ */
2647
+ chunk_id?: string;
2648
+ /**
2649
+ * Page number within the source PDF (1-indexed). Null for plain-text documents.
2650
+ */
2651
+ page?: number | null;
2652
+ /**
2653
+ * Public ID of the underlying file
2654
+ */
2655
+ file_id?: string;
2656
+ /**
2657
+ * Public ID of the project the document belongs to
2658
+ */
2659
+ project_id?: string;
2660
+ /**
2661
+ * Logical path of the file within the project
2662
+ */
2663
+ path?: string;
2664
+ /**
2665
+ * Filename of the underlying file
2666
+ */
2667
+ filename?: string;
2668
+ /**
2669
+ * File size in bytes
2670
+ */
2671
+ size?: number;
2672
+ /**
2673
+ * Document title
2674
+ */
2675
+ title?: string;
2676
+ /**
2677
+ * Arbitrary metadata attached to the document, returned verbatim in the casing it was written with at create/update time (e.g. a key written as `strapiDocumentId` is returned as `strapiDocumentId`, not `strapi_document_id`) — it is not converted between snake_case and camelCase like other response fields.
2678
+ */
2679
+ metadata?: {
2680
+ [key: string]: unknown;
2681
+ };
2682
+ /**
2683
+ * Key-value tags
2684
+ */
2685
+ tags?: {
2686
+ [key: string]: string;
2687
+ };
2688
+ /**
2689
+ * Full text content of the document
2690
+ */
2691
+ content: string | null;
2692
+ /**
2693
+ * Implementation-defined relevance ranking — higher is better. The **ordering** it produces is the contract; the absolute value is not, and the formula behind it may change (a future hybrid ranking would fuse several signals here). It is the field `min_score` filters on and the field results are sorted by. Only present when `query` was provided. Use `similarity_score` when you need the raw cosine value.
2694
+ */
2695
+ score?: number;
2696
+ /**
2697
+ * Raw cosine similarity (0–1) between the query and this result. Pinned to that meaning — unlike `score`, it is never redefined. Only present when `query` was provided.
2698
+ */
2699
+ similarity_score?: number;
2700
+ /**
2701
+ * Creation timestamp
2702
+ */
2703
+ created_at: Date;
2704
+ /**
2705
+ * Last updated timestamp
2706
+ */
2707
+ updated_at: Date;
2708
+ };
2709
+ type MemoryKnowledgeResult = {
2710
+ /**
2711
+ * The type of knowledge source this result comes from
2712
+ */
2713
+ source_type: 'memory';
2714
+ /**
2715
+ * Public ID of the memory entry
2716
+ */
2717
+ entry_id: string;
2718
+ /**
2719
+ * Public ID of the parent memory
2720
+ */
2721
+ memory_id: string;
2722
+ /**
2723
+ * Human-readable name of the parent memory
2724
+ */
2725
+ memory_name: string;
2726
+ /**
2727
+ * Text content of the memory entry
2728
+ */
2729
+ content: string;
2730
+ /**
2731
+ * Implementation-defined relevance ranking — higher is better. The **ordering** it produces is the contract; the absolute value is not, and the formula behind it may change (a future hybrid ranking would fuse several signals here). It is the field `min_score` filters on and the field results are sorted by. Only present when `query` was provided. Use `similarity_score` when you need the raw cosine value.
2732
+ */
2733
+ score?: number;
2734
+ /**
2735
+ * Raw cosine similarity (0–1) between the query and this result. Pinned to that meaning — unlike `score`, it is never redefined. Only present when `query` was provided.
2736
+ */
2737
+ similarity_score?: number;
2738
+ /**
2739
+ * Creation timestamp
2740
+ */
2741
+ created_at: Date;
2742
+ /**
2743
+ * Last updated timestamp
2744
+ */
2745
+ updated_at: Date;
2746
+ };
2439
2747
  type ModelRouteTarget = {
2440
2748
  /**
2441
2749
  * AI provider in the route's project
@@ -4359,6 +4667,45 @@ type RestoreWorkflowVersionRequest = {
4359
4667
  */
4360
4668
  label?: string;
4361
4669
  };
4670
+ /**
4671
+ * Stored file metadata
4672
+ */
4673
+ type FileRecordWritable = {
4674
+ /**
4675
+ * Unique file identifier
4676
+ */
4677
+ id?: string;
4678
+ /**
4679
+ * Original / download name and the key's leaf segment.
4680
+ */
4681
+ filename?: string;
4682
+ /**
4683
+ * MIME type of the file
4684
+ */
4685
+ content_type?: string | null;
4686
+ /**
4687
+ * File size in bytes
4688
+ */
4689
+ size?: number | null;
4690
+ /**
4691
+ * JSON string with additional metadata
4692
+ */
4693
+ metadata?: string | null;
4694
+ /**
4695
+ * Key-value tags attached to the file.
4696
+ */
4697
+ tags?: {
4698
+ [key: string]: string;
4699
+ };
4700
+ /**
4701
+ * Creation timestamp
4702
+ */
4703
+ created_at?: Date;
4704
+ /**
4705
+ * Last update timestamp
4706
+ */
4707
+ updated_at?: Date;
4708
+ };
4362
4709
  /**
4363
4710
  * Project public ID (proj_ prefix).
4364
4711
  */
@@ -7697,7 +8044,7 @@ type ReplaceConversationTagsResponses = {
7697
8044
  };
7698
8045
  };
7699
8046
  type ReplaceConversationTagsResponse = ReplaceConversationTagsResponses[keyof ReplaceConversationTagsResponses];
7700
- type ListDatasetsData = {
8047
+ type ListDocumentsData = {
7701
8048
  body?: never;
7702
8049
  path: {
7703
8050
  /**
@@ -7706,6 +8053,10 @@ type ListDatasetsData = {
7706
8053
  project_id: string;
7707
8054
  };
7708
8055
  query?: {
8056
+ /**
8057
+ * Only documents filed under this directory. The prefix is a path boundary, not a substring: `/reports` returns `/reports/q1.txt` and never `/reports-archive/q1.txt`, and `/` selects the whole project. A leading slash is optional and a trailing one is ignored, so `reports`, `/reports` and `/reports/` are the same filter. `%` and `_` are literal characters, not wildcards.
8058
+ */
8059
+ path_prefix?: string;
7709
8060
  /**
7710
8061
  * Maximum number of results to return
7711
8062
  */
@@ -7715,120 +8066,177 @@ type ListDatasetsData = {
7715
8066
  */
7716
8067
  offset?: number;
7717
8068
  };
7718
- url: '/v1/projects/{project_id}/datasets';
8069
+ url: '/v1/projects/{project_id}/documents';
7719
8070
  };
7720
- type ListDatasetsErrors = {
8071
+ type ListDocumentsErrors = {
7721
8072
  /**
7722
8073
  * Unauthorized
7723
8074
  */
7724
- 401: unknown;
8075
+ 401: ErrorResponse;
7725
8076
  /**
7726
8077
  * Forbidden
7727
8078
  */
7728
- 403: unknown;
7729
- /**
7730
- * Internal server error
7731
- */
7732
- 500: unknown;
8079
+ 403: ErrorResponse;
7733
8080
  };
7734
- type ListDatasetsResponses = {
8081
+ type ListDocumentsError = ListDocumentsErrors[keyof ListDocumentsErrors];
8082
+ type ListDocumentsResponses = {
7735
8083
  /**
7736
- * List of datasets
8084
+ * List of documents
7737
8085
  */
7738
8086
  200: {
7739
- data: Array<Dataset>;
7740
- total: number;
7741
- limit: number;
7742
- offset: number;
8087
+ data?: Array<DocumentRecord>;
8088
+ total?: number;
8089
+ limit?: number;
8090
+ offset?: number;
7743
8091
  };
7744
8092
  };
7745
- type ListDatasetsResponse = ListDatasetsResponses[keyof ListDatasetsResponses];
7746
- type CreateDatasetData = {
8093
+ type ListDocumentsResponse = ListDocumentsResponses[keyof ListDocumentsResponses];
8094
+ type CreateDocumentData = {
7747
8095
  body: {
8096
+ content: string;
7748
8097
  /**
7749
- * Unique name within the project
8098
+ * Logical path within the project (e.g. /reports/q1.txt). Defaults to /filename if omitted.
7750
8099
  */
7751
- name: string;
8100
+ path?: string;
8101
+ filename?: string;
7752
8102
  /**
7753
- * What this suite covers
8103
+ * Document title
7754
8104
  */
7755
- description?: string | null;
7756
- };
7757
- path: {
8105
+ title?: string;
7758
8106
  /**
7759
- * Project public ID (proj_ prefix).
8107
+ * Arbitrary metadata object. Unlike other body fields, keys are stored and returned verbatim in the casing supplied — they are not converted between snake_case and camelCase.
7760
8108
  */
7761
- project_id: string;
7762
- };
7763
- query?: never;
7764
- url: '/v1/projects/{project_id}/datasets';
7765
- };
7766
- type CreateDatasetErrors = {
7767
- /**
7768
- * Bad request (missing or invalid name)
8109
+ metadata?: {
8110
+ [key: string]: unknown;
8111
+ };
8112
+ /**
8113
+ * Key-value tags
8114
+ */
8115
+ tags?: {
8116
+ [key: string]: string;
8117
+ };
8118
+ /**
8119
+ * How to split the content into embeddable chunks. `whole` (default) stores the content as a single chunk; `size` splits into fixed-size character windows with overlap. `page` is equivalent to `whole` for plain text.
8120
+ */
8121
+ chunk_strategy?: 'page' | 'whole' | 'size';
8122
+ /**
8123
+ * Window size in characters when `chunk_strategy=size`. Defaults to 1000.
8124
+ */
8125
+ chunk_size?: number;
8126
+ /**
8127
+ * Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.
8128
+ */
8129
+ chunk_overlap?: number;
8130
+ };
8131
+ path: {
8132
+ /**
8133
+ * Project public ID (proj_ prefix).
8134
+ */
8135
+ project_id: string;
8136
+ };
8137
+ query?: never;
8138
+ url: '/v1/projects/{project_id}/documents';
8139
+ };
8140
+ type CreateDocumentErrors = {
8141
+ /**
8142
+ * Invalid request body
7769
8143
  */
7770
- 400: unknown;
8144
+ 400: ErrorResponse;
7771
8145
  /**
7772
8146
  * Unauthorized
7773
8147
  */
7774
- 401: unknown;
8148
+ 401: ErrorResponse;
7775
8149
  /**
7776
8150
  * Forbidden
7777
8151
  */
7778
- 403: unknown;
7779
- /**
7780
- * A dataset with that name already exists in the project
7781
- */
7782
- 409: unknown;
7783
- /**
7784
- * Internal server error
7785
- */
7786
- 500: unknown;
8152
+ 403: ErrorResponse;
7787
8153
  };
7788
- type CreateDatasetResponses = {
8154
+ type CreateDocumentError = CreateDocumentErrors[keyof CreateDocumentErrors];
8155
+ type CreateDocumentResponses = {
7789
8156
  /**
7790
- * Dataset created successfully
8157
+ * Document created
7791
8158
  */
7792
- 201: Dataset;
8159
+ 201: DocumentRecord;
7793
8160
  };
7794
- type CreateDatasetResponse = CreateDatasetResponses[keyof CreateDatasetResponses];
7795
- type DeleteDatasetData = {
7796
- body?: never;
8161
+ type CreateDocumentResponse = CreateDocumentResponses[keyof CreateDocumentResponses];
8162
+ type IngestDocumentData = {
8163
+ body: {
8164
+ /**
8165
+ * ID of the uploaded file. Must be one of application/pdf, text/plain, text/markdown.
8166
+ */
8167
+ file_id: string;
8168
+ /**
8169
+ * Path prefix under which to store the document (e.g. /docs/). The filename is appended automatically.
8170
+ */
8171
+ path_prefix?: string;
8172
+ /**
8173
+ * Key-value tags to attach to the document.
8174
+ */
8175
+ tags?: {
8176
+ [key: string]: string;
8177
+ };
8178
+ /**
8179
+ * How to split the source into chunks. `page` (default) creates one chunk per non-empty page (PDF); for non-paged sources it yields a single chunk. `whole` joins everything into one chunk. `size` splits into fixed-size character windows with overlap.
8180
+ */
8181
+ chunk_strategy?: 'page' | 'whole' | 'size';
8182
+ /**
8183
+ * Window size in characters when `chunk_strategy=size`. Defaults to 1000.
8184
+ */
8185
+ chunk_size?: number;
8186
+ /**
8187
+ * Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.
8188
+ */
8189
+ chunk_overlap?: number;
8190
+ };
7797
8191
  path: {
7798
8192
  /**
7799
8193
  * Project public ID (proj_ prefix).
7800
8194
  */
7801
8195
  project_id: string;
8196
+ };
8197
+ query?: {
7802
8198
  /**
7803
- * Dataset ID
8199
+ * When omitted or `false` (default), processing runs in the background and `202 Accepted` is returned immediately with `status=pending`. Pass `true` to block until processing completes and receive `201 Created` with `status=ready`.
7804
8200
  */
7805
- dataset_id: string;
8201
+ wait?: boolean;
7806
8202
  };
7807
- query?: never;
7808
- url: '/v1/projects/{project_id}/datasets/{dataset_id}';
8203
+ url: '/v1/projects/{project_id}/documents/ingest';
7809
8204
  };
7810
- type DeleteDatasetErrors = {
8205
+ type IngestDocumentErrors = {
8206
+ /**
8207
+ * Invalid request, file not found, or unsupported content type
8208
+ */
8209
+ 400: ErrorResponse;
7811
8210
  /**
7812
8211
  * Unauthorized
7813
8212
  */
7814
- 401: unknown;
8213
+ 401: ErrorResponse;
7815
8214
  /**
7816
8215
  * Forbidden
7817
8216
  */
7818
- 403: unknown;
8217
+ 403: ErrorResponse;
7819
8218
  /**
7820
- * Dataset not found
8219
+ * The file already backs a Document (a file can only be ingested once). Use `POST /documents/{document_id}/ingest` to re-process the existing document, or upload a new copy of the file to ingest it separately.
7821
8220
  */
7822
- 404: unknown;
8221
+ 409: ErrorResponse;
8222
+ /**
8223
+ * The file is too large to ingest synchronously (`?wait=true`). Retry in background mode and poll the document status.
8224
+ */
8225
+ 413: ErrorResponse;
7823
8226
  };
7824
- type DeleteDatasetResponses = {
8227
+ type IngestDocumentError = IngestDocumentErrors[keyof IngestDocumentErrors];
8228
+ type IngestDocumentResponses = {
7825
8229
  /**
7826
- * Dataset deleted successfully
8230
+ * Ingestion completed synchronously (only when `?wait=true`). The document is fully indexed and ready for search.
7827
8231
  */
7828
- 204: void;
8232
+ 201: IngestedDocumentRecord;
8233
+ /**
8234
+ * Ingestion accepted. The document record has been created with `status=pending` and processing runs in the background. Poll `GET /v1/projects/{project_id}/documents/{document_id}` until `status` is `ready` or `failed`.
8235
+ */
8236
+ 202: IngestedDocumentRecord;
7829
8237
  };
7830
- type DeleteDatasetResponse = DeleteDatasetResponses[keyof DeleteDatasetResponses];
7831
- type GetDatasetData = {
8238
+ type IngestDocumentResponse = IngestDocumentResponses[keyof IngestDocumentResponses];
8239
+ type DeleteDocumentData = {
7832
8240
  body?: never;
7833
8241
  path: {
7834
8242
  /**
@@ -7836,199 +8244,185 @@ type GetDatasetData = {
7836
8244
  */
7837
8245
  project_id: string;
7838
8246
  /**
7839
- * Dataset ID
8247
+ * Document ID
7840
8248
  */
7841
- dataset_id: string;
8249
+ document_id: string;
7842
8250
  };
7843
8251
  query?: never;
7844
- url: '/v1/projects/{project_id}/datasets/{dataset_id}';
8252
+ url: '/v1/projects/{project_id}/documents/{document_id}';
7845
8253
  };
7846
- type GetDatasetErrors = {
8254
+ type DeleteDocumentErrors = {
7847
8255
  /**
7848
8256
  * Unauthorized
7849
8257
  */
7850
- 401: unknown;
8258
+ 401: ErrorResponse;
7851
8259
  /**
7852
8260
  * Forbidden
7853
8261
  */
7854
- 403: unknown;
8262
+ 403: ErrorResponse;
7855
8263
  /**
7856
- * Dataset not found
8264
+ * Document not found
7857
8265
  */
7858
- 404: unknown;
8266
+ 404: ErrorResponse;
7859
8267
  };
7860
- type GetDatasetResponses = {
8268
+ type DeleteDocumentError = DeleteDocumentErrors[keyof DeleteDocumentErrors];
8269
+ type DeleteDocumentResponses = {
7861
8270
  /**
7862
- * Dataset details
8271
+ * Document deleted
7863
8272
  */
7864
- 200: Dataset;
8273
+ 204: void;
7865
8274
  };
7866
- type GetDatasetResponse = GetDatasetResponses[keyof GetDatasetResponses];
7867
- type UpdateDatasetData = {
7868
- body: {
7869
- name?: string;
7870
- description?: string | null;
7871
- };
8275
+ type DeleteDocumentResponse = DeleteDocumentResponses[keyof DeleteDocumentResponses];
8276
+ type GetDocumentData = {
8277
+ body?: never;
7872
8278
  path: {
7873
8279
  /**
7874
8280
  * Project public ID (proj_ prefix).
7875
8281
  */
7876
8282
  project_id: string;
7877
8283
  /**
7878
- * Dataset ID
8284
+ * Document ID
7879
8285
  */
7880
- dataset_id: string;
8286
+ document_id: string;
7881
8287
  };
7882
8288
  query?: never;
7883
- url: '/v1/projects/{project_id}/datasets/{dataset_id}';
8289
+ url: '/v1/projects/{project_id}/documents/{document_id}';
7884
8290
  };
7885
- type UpdateDatasetErrors = {
7886
- /**
7887
- * Bad request
7888
- */
7889
- 400: unknown;
8291
+ type GetDocumentErrors = {
7890
8292
  /**
7891
8293
  * Unauthorized
7892
8294
  */
7893
- 401: unknown;
8295
+ 401: ErrorResponse;
7894
8296
  /**
7895
8297
  * Forbidden
7896
8298
  */
7897
- 403: unknown;
7898
- /**
7899
- * Dataset not found
7900
- */
7901
- 404: unknown;
8299
+ 403: ErrorResponse;
7902
8300
  /**
7903
- * A dataset with that name already exists in the project
8301
+ * Document not found
7904
8302
  */
7905
- 409: unknown;
8303
+ 404: ErrorResponse;
7906
8304
  };
7907
- type UpdateDatasetResponses = {
8305
+ type GetDocumentError = GetDocumentErrors[keyof GetDocumentErrors];
8306
+ type GetDocumentResponses = {
7908
8307
  /**
7909
- * Dataset updated successfully
8308
+ * Document found
7910
8309
  */
7911
- 200: Dataset;
8310
+ 200: DocumentRecord;
7912
8311
  };
7913
- type UpdateDatasetResponse = UpdateDatasetResponses[keyof UpdateDatasetResponses];
7914
- type ListDatasetItemsData = {
7915
- body?: never;
7916
- path: {
8312
+ type GetDocumentResponse = GetDocumentResponses[keyof GetDocumentResponses];
8313
+ type UpdateDocumentData = {
8314
+ body: {
7917
8315
  /**
7918
- * Project public ID (proj_ prefix).
8316
+ * New text content
7919
8317
  */
7920
- project_id: string;
8318
+ content?: string;
7921
8319
  /**
7922
- * Dataset ID
8320
+ * New title
7923
8321
  */
7924
- dataset_id: string;
8322
+ title?: string;
8323
+ /**
8324
+ * Logical path within the project (e.g. /reports/q1.txt). Pass null to clear.
8325
+ */
8326
+ path?: string | null;
8327
+ /**
8328
+ * Arbitrary metadata object. Unlike other body fields, keys are stored and returned verbatim in the casing supplied — they are not converted between snake_case and camelCase.
8329
+ */
8330
+ metadata?: {
8331
+ [key: string]: unknown;
8332
+ };
8333
+ /**
8334
+ * Key-value tags
8335
+ */
8336
+ tags?: {
8337
+ [key: string]: string;
8338
+ };
7925
8339
  };
7926
- query?: {
8340
+ path: {
7927
8341
  /**
7928
- * Maximum number of results to return
8342
+ * Project public ID (proj_ prefix).
7929
8343
  */
7930
- limit?: number;
8344
+ project_id: string;
7931
8345
  /**
7932
- * Number of results to skip
8346
+ * Document ID
7933
8347
  */
7934
- offset?: number;
8348
+ document_id: string;
7935
8349
  };
7936
- url: '/v1/projects/{project_id}/datasets/{dataset_id}/items';
8350
+ query?: never;
8351
+ url: '/v1/projects/{project_id}/documents/{document_id}';
7937
8352
  };
7938
- type ListDatasetItemsErrors = {
8353
+ type UpdateDocumentErrors = {
7939
8354
  /**
7940
8355
  * Unauthorized
7941
8356
  */
7942
- 401: unknown;
8357
+ 401: ErrorResponse;
7943
8358
  /**
7944
8359
  * Forbidden
7945
8360
  */
7946
- 403: unknown;
8361
+ 403: ErrorResponse;
7947
8362
  /**
7948
- * Dataset not found
8363
+ * Document not found
7949
8364
  */
7950
- 404: unknown;
8365
+ 404: ErrorResponse;
7951
8366
  };
7952
- type ListDatasetItemsResponses = {
8367
+ type UpdateDocumentError = UpdateDocumentErrors[keyof UpdateDocumentErrors];
8368
+ type UpdateDocumentResponses = {
7953
8369
  /**
7954
- * List of dataset items
8370
+ * Document updated
7955
8371
  */
7956
- 200: {
7957
- data: Array<DatasetItem>;
7958
- total: number;
7959
- limit: number;
7960
- offset: number;
7961
- };
8372
+ 200: DocumentRecord;
7962
8373
  };
7963
- type ListDatasetItemsResponse = ListDatasetItemsResponses[keyof ListDatasetItemsResponses];
7964
- type CreateDatasetItemData = {
7965
- body: {
7966
- input: DatasetItemInput;
7967
- /**
7968
- * Reference answer for exact_match / embedding_similarity / llm_judge scorers
7969
- */
7970
- expected_output?: string | null;
7971
- /**
7972
- * Free-form tags, opaque to the platform
7973
- */
7974
- metadata?: {
7975
- [key: string]: unknown;
7976
- } | null;
7977
- };
8374
+ type UpdateDocumentResponse = UpdateDocumentResponses[keyof UpdateDocumentResponses];
8375
+ type GetDocumentStatusData = {
8376
+ body?: never;
7978
8377
  path: {
7979
8378
  /**
7980
8379
  * Project public ID (proj_ prefix).
7981
8380
  */
7982
8381
  project_id: string;
7983
8382
  /**
7984
- * Dataset ID
8383
+ * Document ID
7985
8384
  */
7986
- dataset_id: string;
8385
+ document_id: string;
7987
8386
  };
7988
8387
  query?: never;
7989
- url: '/v1/projects/{project_id}/datasets/{dataset_id}/items';
8388
+ url: '/v1/projects/{project_id}/documents/{document_id}/status';
7990
8389
  };
7991
- type CreateDatasetItemErrors = {
7992
- /**
7993
- * Bad request (input is not message-shaped)
7994
- */
7995
- 400: unknown;
8390
+ type GetDocumentStatusErrors = {
7996
8391
  /**
7997
8392
  * Unauthorized
7998
8393
  */
7999
- 401: unknown;
8394
+ 401: ErrorResponse;
8000
8395
  /**
8001
8396
  * Forbidden
8002
8397
  */
8003
- 403: unknown;
8398
+ 403: ErrorResponse;
8004
8399
  /**
8005
- * Dataset not found
8400
+ * Document not found
8006
8401
  */
8007
- 404: unknown;
8402
+ 404: ErrorResponse;
8008
8403
  };
8009
- type CreateDatasetItemResponses = {
8404
+ type GetDocumentStatusError = GetDocumentStatusErrors[keyof GetDocumentStatusErrors];
8405
+ type GetDocumentStatusResponses = {
8010
8406
  /**
8011
- * Dataset item created successfully
8407
+ * Document ingestion status
8012
8408
  */
8013
- 201: DatasetItem;
8409
+ 200: DocumentStatusRecord;
8014
8410
  };
8015
- type CreateDatasetItemResponse = CreateDatasetItemResponses[keyof CreateDatasetItemResponses];
8016
- type CreateDatasetItemFromGenerationData = {
8017
- body: {
8411
+ type GetDocumentStatusResponse = GetDocumentStatusResponses[keyof GetDocumentStatusResponses];
8412
+ type ReingestDocumentData = {
8413
+ body?: {
8018
8414
  /**
8019
- * The completed generation to promote. Must belong to the same project as the dataset.
8415
+ * How to split the source into chunks. Defaults to `page`.
8020
8416
  */
8021
- generation_id: string;
8417
+ chunk_strategy?: 'page' | 'whole' | 'size';
8022
8418
  /**
8023
- * Reference answer. Omit to use the generation's own answer; pass `null` to store the item with no reference answer.
8419
+ * Window size in characters when `chunk_strategy=size`. Defaults to 1000.
8024
8420
  */
8025
- expected_output?: string | null;
8421
+ chunk_size?: number;
8026
8422
  /**
8027
- * Free-form tags, opaque to the platform
8423
+ * Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.
8028
8424
  */
8029
- metadata?: {
8030
- [key: string]: unknown;
8031
- } | null;
8425
+ chunk_overlap?: number;
8032
8426
  };
8033
8427
  path: {
8034
8428
  /**
@@ -8036,43 +8430,49 @@ type CreateDatasetItemFromGenerationData = {
8036
8430
  */
8037
8431
  project_id: string;
8038
8432
  /**
8039
- * Dataset ID
8433
+ * Document ID
8040
8434
  */
8041
- dataset_id: string;
8435
+ document_id: string;
8042
8436
  };
8043
- query?: never;
8044
- url: '/v1/projects/{project_id}/datasets/{dataset_id}/items/from-generation';
8437
+ query?: {
8438
+ /**
8439
+ * When omitted or `false` (default), processing runs in the background and `202 Accepted` is returned immediately with `status=pending`. Pass `true` to block until processing completes and receive `201 Created` with `status=ready`.
8440
+ */
8441
+ wait?: boolean;
8442
+ };
8443
+ url: '/v1/projects/{project_id}/documents/{document_id}/ingest';
8045
8444
  };
8046
- type CreateDatasetItemFromGenerationErrors = {
8047
- /**
8048
- * Bad request (generation_id missing, or the generation belongs to a different project than the dataset)
8049
- */
8050
- 400: unknown;
8445
+ type ReingestDocumentErrors = {
8051
8446
  /**
8052
8447
  * Unauthorized
8053
8448
  */
8054
- 401: unknown;
8449
+ 401: ErrorResponse;
8055
8450
  /**
8056
8451
  * Forbidden
8057
8452
  */
8058
- 403: unknown;
8453
+ 403: ErrorResponse;
8059
8454
  /**
8060
- * Dataset or generation not found
8455
+ * Document not found
8061
8456
  */
8062
- 404: unknown;
8457
+ 404: ErrorResponse;
8063
8458
  /**
8064
- * The generation has not completed, or its content was never stored or has been purged
8459
+ * The file is too large to re-ingest synchronously (`?wait=true`). Retry in background mode.
8065
8460
  */
8066
- 409: unknown;
8461
+ 413: ErrorResponse;
8067
8462
  };
8068
- type CreateDatasetItemFromGenerationResponses = {
8463
+ type ReingestDocumentError = ReingestDocumentErrors[keyof ReingestDocumentErrors];
8464
+ type ReingestDocumentResponses = {
8069
8465
  /**
8070
- * Dataset item created from the generation
8466
+ * Re-ingestion completed synchronously (only when `?wait=true`).
8071
8467
  */
8072
- 201: DatasetItem;
8468
+ 201: IngestedDocumentRecord;
8469
+ /**
8470
+ * Re-ingestion accepted. The document was reset to `status=pending` and processing runs in the background. Poll `GET /v1/projects/{project_id}/documents/{document_id}/status`.
8471
+ */
8472
+ 202: IngestedDocumentRecord;
8073
8473
  };
8074
- type CreateDatasetItemFromGenerationResponse = CreateDatasetItemFromGenerationResponses[keyof CreateDatasetItemFromGenerationResponses];
8075
- type DeleteDatasetItemData = {
8474
+ type ReingestDocumentResponse = ReingestDocumentResponses[keyof ReingestDocumentResponses];
8475
+ type GetDocumentTagsData = {
8076
8476
  body?: never;
8077
8477
  path: {
8078
8478
  /**
@@ -8080,45 +8480,81 @@ type DeleteDatasetItemData = {
8080
8480
  */
8081
8481
  project_id: string;
8082
8482
  /**
8083
- * Dataset ID
8483
+ * Document ID
8084
8484
  */
8085
- dataset_id: string;
8485
+ document_id: string;
8486
+ };
8487
+ query?: never;
8488
+ url: '/v1/projects/{project_id}/documents/{document_id}/tags';
8489
+ };
8490
+ type GetDocumentTagsErrors = {
8491
+ /**
8492
+ * Unauthorized
8493
+ */
8494
+ 401: ErrorResponse;
8495
+ /**
8496
+ * Forbidden
8497
+ */
8498
+ 403: ErrorResponse;
8499
+ /**
8500
+ * Document not found
8501
+ */
8502
+ 404: ErrorResponse;
8503
+ };
8504
+ type GetDocumentTagsError = GetDocumentTagsErrors[keyof GetDocumentTagsErrors];
8505
+ type GetDocumentTagsResponses = {
8506
+ /**
8507
+ * Document tags
8508
+ */
8509
+ 200: {
8510
+ [key: string]: string;
8511
+ };
8512
+ };
8513
+ type GetDocumentTagsResponse = GetDocumentTagsResponses[keyof GetDocumentTagsResponses];
8514
+ type MergeDocumentTagsData = {
8515
+ body: {
8516
+ [key: string]: string;
8517
+ };
8518
+ path: {
8086
8519
  /**
8087
- * Dataset item ID
8520
+ * Project public ID (proj_ prefix).
8088
8521
  */
8089
- item_id: string;
8522
+ project_id: string;
8523
+ /**
8524
+ * Document ID
8525
+ */
8526
+ document_id: string;
8090
8527
  };
8091
8528
  query?: never;
8092
- url: '/v1/projects/{project_id}/datasets/{dataset_id}/items/{item_id}';
8529
+ url: '/v1/projects/{project_id}/documents/{document_id}/tags';
8093
8530
  };
8094
- type DeleteDatasetItemErrors = {
8531
+ type MergeDocumentTagsErrors = {
8095
8532
  /**
8096
8533
  * Unauthorized
8097
8534
  */
8098
- 401: unknown;
8535
+ 401: ErrorResponse;
8099
8536
  /**
8100
8537
  * Forbidden
8101
8538
  */
8102
- 403: unknown;
8539
+ 403: ErrorResponse;
8103
8540
  /**
8104
- * Dataset or item not found
8541
+ * Document not found
8105
8542
  */
8106
- 404: unknown;
8543
+ 404: ErrorResponse;
8107
8544
  };
8108
- type DeleteDatasetItemResponses = {
8545
+ type MergeDocumentTagsError = MergeDocumentTagsErrors[keyof MergeDocumentTagsErrors];
8546
+ type MergeDocumentTagsResponses = {
8109
8547
  /**
8110
- * Dataset item deleted successfully
8548
+ * Tags merged
8111
8549
  */
8112
- 204: void;
8550
+ 200: {
8551
+ [key: string]: string;
8552
+ };
8113
8553
  };
8114
- type DeleteDatasetItemResponse = DeleteDatasetItemResponses[keyof DeleteDatasetItemResponses];
8115
- type UpdateDatasetItemData = {
8554
+ type MergeDocumentTagsResponse = MergeDocumentTagsResponses[keyof MergeDocumentTagsResponses];
8555
+ type ReplaceDocumentTagsData = {
8116
8556
  body: {
8117
- input?: DatasetItemInput;
8118
- expected_output?: string | null;
8119
- metadata?: {
8120
- [key: string]: unknown;
8121
- } | null;
8557
+ [key: string]: string;
8122
8558
  };
8123
8559
  path: {
8124
8560
  /**
@@ -8126,43 +8562,80 @@ type UpdateDatasetItemData = {
8126
8562
  */
8127
8563
  project_id: string;
8128
8564
  /**
8129
- * Dataset ID
8565
+ * Document ID
8130
8566
  */
8131
- dataset_id: string;
8567
+ document_id: string;
8568
+ };
8569
+ query?: never;
8570
+ url: '/v1/projects/{project_id}/documents/{document_id}/tags';
8571
+ };
8572
+ type ReplaceDocumentTagsErrors = {
8573
+ /**
8574
+ * Unauthorized
8575
+ */
8576
+ 401: ErrorResponse;
8577
+ /**
8578
+ * Forbidden
8579
+ */
8580
+ 403: ErrorResponse;
8581
+ /**
8582
+ * Document not found
8583
+ */
8584
+ 404: ErrorResponse;
8585
+ };
8586
+ type ReplaceDocumentTagsError = ReplaceDocumentTagsErrors[keyof ReplaceDocumentTagsErrors];
8587
+ type ReplaceDocumentTagsResponses = {
8588
+ /**
8589
+ * Tags replaced
8590
+ */
8591
+ 200: {
8592
+ [key: string]: string;
8593
+ };
8594
+ };
8595
+ type ReplaceDocumentTagsResponse = ReplaceDocumentTagsResponses[keyof ReplaceDocumentTagsResponses];
8596
+ type CreateEmbeddingsData = {
8597
+ body: {
8132
8598
  /**
8133
- * Dataset item ID
8599
+ * Single text to embed.
8134
8600
  */
8135
- item_id: string;
8601
+ input?: string;
8602
+ /**
8603
+ * Batch of texts to embed.
8604
+ */
8605
+ inputs?: Array<string>;
8606
+ };
8607
+ path: {
8608
+ /**
8609
+ * Project public ID (proj_ prefix).
8610
+ */
8611
+ project_id: string;
8136
8612
  };
8137
8613
  query?: never;
8138
- url: '/v1/projects/{project_id}/datasets/{dataset_id}/items/{item_id}';
8614
+ url: '/v1/projects/{project_id}/embeddings';
8139
8615
  };
8140
- type UpdateDatasetItemErrors = {
8616
+ type CreateEmbeddingsErrors = {
8141
8617
  /**
8142
- * Bad request
8618
+ * Invalid request body
8143
8619
  */
8144
- 400: unknown;
8620
+ 400: ErrorResponse;
8145
8621
  /**
8146
8622
  * Unauthorized
8147
8623
  */
8148
- 401: unknown;
8149
- /**
8150
- * Forbidden
8151
- */
8152
- 403: unknown;
8624
+ 401: ErrorResponse;
8153
8625
  /**
8154
- * Dataset or item not found
8626
+ * Embedding service not configured
8155
8627
  */
8156
- 404: unknown;
8628
+ 503: ErrorResponse;
8157
8629
  };
8158
- type UpdateDatasetItemResponses = {
8630
+ type CreateEmbeddingsError = CreateEmbeddingsErrors[keyof CreateEmbeddingsErrors];
8631
+ type CreateEmbeddingsResponses = {
8159
8632
  /**
8160
- * Dataset item updated successfully
8633
+ * Embeddings generated successfully
8161
8634
  */
8162
- 200: DatasetItem;
8635
+ 200: EmbeddingsResponse;
8163
8636
  };
8164
- type UpdateDatasetItemResponse = UpdateDatasetItemResponses[keyof UpdateDatasetItemResponses];
8165
- type ListEvalsData = {
8637
+ type CreateEmbeddingsResponse = CreateEmbeddingsResponses[keyof CreateEmbeddingsResponses];
8638
+ type ListDatasetsData = {
8166
8639
  body?: never;
8167
8640
  path: {
8168
8641
  /**
@@ -8180,9 +8653,9 @@ type ListEvalsData = {
8180
8653
  */
8181
8654
  offset?: number;
8182
8655
  };
8183
- url: '/v1/projects/{project_id}/evals';
8656
+ url: '/v1/projects/{project_id}/datasets';
8184
8657
  };
8185
- type ListEvalsErrors = {
8658
+ type ListDatasetsErrors = {
8186
8659
  /**
8187
8660
  * Unauthorized
8188
8661
  */
@@ -8196,37 +8669,28 @@ type ListEvalsErrors = {
8196
8669
  */
8197
8670
  500: unknown;
8198
8671
  };
8199
- type ListEvalsResponses = {
8672
+ type ListDatasetsResponses = {
8200
8673
  /**
8201
- * List of evals
8674
+ * List of datasets
8202
8675
  */
8203
8676
  200: {
8204
- data: Array<Eval>;
8677
+ data: Array<Dataset>;
8205
8678
  total: number;
8206
8679
  limit: number;
8207
8680
  offset: number;
8208
8681
  };
8209
8682
  };
8210
- type ListEvalsResponse = ListEvalsResponses[keyof ListEvalsResponses];
8211
- type CreateEvalData = {
8683
+ type ListDatasetsResponse = ListDatasetsResponses[keyof ListDatasetsResponses];
8684
+ type CreateDatasetData = {
8212
8685
  body: {
8213
8686
  /**
8214
8687
  * Unique name within the project
8215
8688
  */
8216
8689
  name: string;
8217
8690
  /**
8218
- * The agent under test
8219
- */
8220
- agent_id: string;
8221
- /**
8222
- * The dataset to run it against
8223
- */
8224
- dataset_id: string;
8225
- scorers: Scorers;
8226
- /**
8227
- * 0–1. The run passes iff its pass rate — passed items over non-errored items — is at least this. Null reports scores without gating on them.
8691
+ * What this suite covers
8228
8692
  */
8229
- pass_threshold?: number | null;
8693
+ description?: string | null;
8230
8694
  };
8231
8695
  path: {
8232
8696
  /**
@@ -8235,11 +8699,11 @@ type CreateEvalData = {
8235
8699
  project_id: string;
8236
8700
  };
8237
8701
  query?: never;
8238
- url: '/v1/projects/{project_id}/evals';
8702
+ url: '/v1/projects/{project_id}/datasets';
8239
8703
  };
8240
- type CreateEvalErrors = {
8704
+ type CreateDatasetErrors = {
8241
8705
  /**
8242
- * Bad request (unknown scorer type, cross-project reference, invalid threshold)
8706
+ * Bad request (missing or invalid name)
8243
8707
  */
8244
8708
  400: unknown;
8245
8709
  /**
@@ -8251,7 +8715,7 @@ type CreateEvalErrors = {
8251
8715
  */
8252
8716
  403: unknown;
8253
8717
  /**
8254
- * An eval with that name already exists in the project
8718
+ * A dataset with that name already exists in the project
8255
8719
  */
8256
8720
  409: unknown;
8257
8721
  /**
@@ -8259,14 +8723,14 @@ type CreateEvalErrors = {
8259
8723
  */
8260
8724
  500: unknown;
8261
8725
  };
8262
- type CreateEvalResponses = {
8726
+ type CreateDatasetResponses = {
8263
8727
  /**
8264
- * Eval created successfully
8728
+ * Dataset created successfully
8265
8729
  */
8266
- 201: Eval;
8730
+ 201: Dataset;
8267
8731
  };
8268
- type CreateEvalResponse = CreateEvalResponses[keyof CreateEvalResponses];
8269
- type DeleteEvalData = {
8732
+ type CreateDatasetResponse = CreateDatasetResponses[keyof CreateDatasetResponses];
8733
+ type DeleteDatasetData = {
8270
8734
  body?: never;
8271
8735
  path: {
8272
8736
  /**
@@ -8274,14 +8738,14 @@ type DeleteEvalData = {
8274
8738
  */
8275
8739
  project_id: string;
8276
8740
  /**
8277
- * Eval ID
8741
+ * Dataset ID
8278
8742
  */
8279
- eval_id: string;
8743
+ dataset_id: string;
8280
8744
  };
8281
8745
  query?: never;
8282
- url: '/v1/projects/{project_id}/evals/{eval_id}';
8746
+ url: '/v1/projects/{project_id}/datasets/{dataset_id}';
8283
8747
  };
8284
- type DeleteEvalErrors = {
8748
+ type DeleteDatasetErrors = {
8285
8749
  /**
8286
8750
  * Unauthorized
8287
8751
  */
@@ -8291,18 +8755,18 @@ type DeleteEvalErrors = {
8291
8755
  */
8292
8756
  403: unknown;
8293
8757
  /**
8294
- * Eval not found
8758
+ * Dataset not found
8295
8759
  */
8296
8760
  404: unknown;
8297
8761
  };
8298
- type DeleteEvalResponses = {
8762
+ type DeleteDatasetResponses = {
8299
8763
  /**
8300
- * Eval deleted successfully
8764
+ * Dataset deleted successfully
8301
8765
  */
8302
8766
  204: void;
8303
8767
  };
8304
- type DeleteEvalResponse = DeleteEvalResponses[keyof DeleteEvalResponses];
8305
- type GetEvalData = {
8768
+ type DeleteDatasetResponse = DeleteDatasetResponses[keyof DeleteDatasetResponses];
8769
+ type GetDatasetData = {
8306
8770
  body?: never;
8307
8771
  path: {
8308
8772
  /**
@@ -8310,14 +8774,14 @@ type GetEvalData = {
8310
8774
  */
8311
8775
  project_id: string;
8312
8776
  /**
8313
- * Eval ID
8777
+ * Dataset ID
8314
8778
  */
8315
- eval_id: string;
8779
+ dataset_id: string;
8316
8780
  };
8317
8781
  query?: never;
8318
- url: '/v1/projects/{project_id}/evals/{eval_id}';
8782
+ url: '/v1/projects/{project_id}/datasets/{dataset_id}';
8319
8783
  };
8320
- type GetEvalErrors = {
8784
+ type GetDatasetErrors = {
8321
8785
  /**
8322
8786
  * Unauthorized
8323
8787
  */
@@ -8327,24 +8791,21 @@ type GetEvalErrors = {
8327
8791
  */
8328
8792
  403: unknown;
8329
8793
  /**
8330
- * Eval not found
8794
+ * Dataset not found
8331
8795
  */
8332
8796
  404: unknown;
8333
8797
  };
8334
- type GetEvalResponses = {
8798
+ type GetDatasetResponses = {
8335
8799
  /**
8336
- * Eval details
8800
+ * Dataset details
8337
8801
  */
8338
- 200: Eval;
8802
+ 200: Dataset;
8339
8803
  };
8340
- type GetEvalResponse = GetEvalResponses[keyof GetEvalResponses];
8341
- type UpdateEvalData = {
8804
+ type GetDatasetResponse = GetDatasetResponses[keyof GetDatasetResponses];
8805
+ type UpdateDatasetData = {
8342
8806
  body: {
8343
8807
  name?: string;
8344
- agent_id?: string;
8345
- dataset_id?: string;
8346
- scorers?: Scorers;
8347
- pass_threshold?: number | null;
8808
+ description?: string | null;
8348
8809
  };
8349
8810
  path: {
8350
8811
  /**
@@ -8352,14 +8813,14 @@ type UpdateEvalData = {
8352
8813
  */
8353
8814
  project_id: string;
8354
8815
  /**
8355
- * Eval ID
8816
+ * Dataset ID
8356
8817
  */
8357
- eval_id: string;
8818
+ dataset_id: string;
8358
8819
  };
8359
8820
  query?: never;
8360
- url: '/v1/projects/{project_id}/evals/{eval_id}';
8821
+ url: '/v1/projects/{project_id}/datasets/{dataset_id}';
8361
8822
  };
8362
- type UpdateEvalErrors = {
8823
+ type UpdateDatasetErrors = {
8363
8824
  /**
8364
8825
  * Bad request
8365
8826
  */
@@ -8373,22 +8834,22 @@ type UpdateEvalErrors = {
8373
8834
  */
8374
8835
  403: unknown;
8375
8836
  /**
8376
- * Eval not found
8837
+ * Dataset not found
8377
8838
  */
8378
8839
  404: unknown;
8379
8840
  /**
8380
- * An eval with that name already exists in the project
8841
+ * A dataset with that name already exists in the project
8381
8842
  */
8382
8843
  409: unknown;
8383
8844
  };
8384
- type UpdateEvalResponses = {
8845
+ type UpdateDatasetResponses = {
8385
8846
  /**
8386
- * Eval updated successfully
8847
+ * Dataset updated successfully
8387
8848
  */
8388
- 200: Eval;
8849
+ 200: Dataset;
8389
8850
  };
8390
- type UpdateEvalResponse = UpdateEvalResponses[keyof UpdateEvalResponses];
8391
- type ListEvalRunsData = {
8851
+ type UpdateDatasetResponse = UpdateDatasetResponses[keyof UpdateDatasetResponses];
8852
+ type ListDatasetItemsData = {
8392
8853
  body?: never;
8393
8854
  path: {
8394
8855
  /**
@@ -8396,9 +8857,9 @@ type ListEvalRunsData = {
8396
8857
  */
8397
8858
  project_id: string;
8398
8859
  /**
8399
- * Eval ID
8860
+ * Dataset ID
8400
8861
  */
8401
- eval_id: string;
8862
+ dataset_id: string;
8402
8863
  };
8403
8864
  query?: {
8404
8865
  /**
@@ -8410,9 +8871,9 @@ type ListEvalRunsData = {
8410
8871
  */
8411
8872
  offset?: number;
8412
8873
  };
8413
- url: '/v1/projects/{project_id}/evals/{eval_id}/runs';
8874
+ url: '/v1/projects/{project_id}/datasets/{dataset_id}/items';
8414
8875
  };
8415
- type ListEvalRunsErrors = {
8876
+ type ListDatasetItemsErrors = {
8416
8877
  /**
8417
8878
  * Unauthorized
8418
8879
  */
@@ -8422,36 +8883,90 @@ type ListEvalRunsErrors = {
8422
8883
  */
8423
8884
  403: unknown;
8424
8885
  /**
8425
- * Eval not found
8886
+ * Dataset not found
8426
8887
  */
8427
8888
  404: unknown;
8428
8889
  };
8429
- type ListEvalRunsResponses = {
8890
+ type ListDatasetItemsResponses = {
8430
8891
  /**
8431
- * List of eval runs
8892
+ * List of dataset items
8432
8893
  */
8433
8894
  200: {
8434
- data: Array<EvalRun>;
8895
+ data: Array<DatasetItem>;
8435
8896
  total: number;
8436
8897
  limit: number;
8437
8898
  offset: number;
8438
8899
  };
8439
8900
  };
8440
- type ListEvalRunsResponse = ListEvalRunsResponses[keyof ListEvalRunsResponses];
8441
- type StartEvalRunData = {
8901
+ type ListDatasetItemsResponse = ListDatasetItemsResponses[keyof ListDatasetItemsResponses];
8902
+ type CreateDatasetItemData = {
8442
8903
  body: {
8904
+ input: DatasetItemInput;
8443
8905
  /**
8444
- * True runs the eval synchronously (25-item cap) and returns a terminal run with its scores. False — the default — enqueues the items and returns a `queued` run immediately.
8906
+ * Reference answer for exact_match / embedding_similarity / llm_judge scorers
8445
8907
  */
8446
- wait?: boolean;
8908
+ expected_output?: string | null;
8447
8909
  /**
8448
- * An archived agent version to evaluate. Defaults to the active release's stable version, or the live draft version when no release is in effect.
8910
+ * Free-form tags, opaque to the platform
8449
8911
  */
8450
- agent_version?: number | null;
8912
+ metadata?: {
8913
+ [key: string]: unknown;
8914
+ } | null;
8915
+ };
8916
+ path: {
8451
8917
  /**
8452
- * A terminal run of the same eval to compare against. The finished run's `aggregate_scores.baseline` reports per-scorer deltas over the item intersection. A run of a different eval is rejected with 400.
8918
+ * Project public ID (proj_ prefix).
8453
8919
  */
8454
- baseline_run_id?: string | null;
8920
+ project_id: string;
8921
+ /**
8922
+ * Dataset ID
8923
+ */
8924
+ dataset_id: string;
8925
+ };
8926
+ query?: never;
8927
+ url: '/v1/projects/{project_id}/datasets/{dataset_id}/items';
8928
+ };
8929
+ type CreateDatasetItemErrors = {
8930
+ /**
8931
+ * Bad request (input is not message-shaped)
8932
+ */
8933
+ 400: unknown;
8934
+ /**
8935
+ * Unauthorized
8936
+ */
8937
+ 401: unknown;
8938
+ /**
8939
+ * Forbidden
8940
+ */
8941
+ 403: unknown;
8942
+ /**
8943
+ * Dataset not found
8944
+ */
8945
+ 404: unknown;
8946
+ };
8947
+ type CreateDatasetItemResponses = {
8948
+ /**
8949
+ * Dataset item created successfully
8950
+ */
8951
+ 201: DatasetItem;
8952
+ };
8953
+ type CreateDatasetItemResponse = CreateDatasetItemResponses[keyof CreateDatasetItemResponses];
8954
+ type CreateDatasetItemFromGenerationData = {
8955
+ body: {
8956
+ /**
8957
+ * The completed generation to promote. Must belong to the same project as the dataset.
8958
+ */
8959
+ generation_id: string;
8960
+ /**
8961
+ * Reference answer. Omit to use the generation's own answer; pass `null` to store the item with no reference answer.
8962
+ */
8963
+ expected_output?: string | null;
8964
+ /**
8965
+ * Free-form tags, opaque to the platform
8966
+ */
8967
+ metadata?: {
8968
+ [key: string]: unknown;
8969
+ } | null;
8455
8970
  };
8456
8971
  path: {
8457
8972
  /**
@@ -8459,16 +8974,16 @@ type StartEvalRunData = {
8459
8974
  */
8460
8975
  project_id: string;
8461
8976
  /**
8462
- * Eval ID
8977
+ * Dataset ID
8463
8978
  */
8464
- eval_id: string;
8979
+ dataset_id: string;
8465
8980
  };
8466
8981
  query?: never;
8467
- url: '/v1/projects/{project_id}/evals/{eval_id}/runs';
8982
+ url: '/v1/projects/{project_id}/datasets/{dataset_id}/items/from-generation';
8468
8983
  };
8469
- type StartEvalRunErrors = {
8984
+ type CreateDatasetItemFromGenerationErrors = {
8470
8985
  /**
8471
- * Bad request (non-boolean wait, dataset empty or over the synchronous cap, unknown agent_version, invalid baseline, scorers no longer valid against the agent)
8986
+ * Bad request (generation_id missing, or the generation belongs to a different project than the dataset)
8472
8987
  */
8473
8988
  400: unknown;
8474
8989
  /**
@@ -8480,22 +8995,22 @@ type StartEvalRunErrors = {
8480
8995
  */
8481
8996
  403: unknown;
8482
8997
  /**
8483
- * Eval not found
8998
+ * Dataset or generation not found
8484
8999
  */
8485
9000
  404: unknown;
8486
9001
  /**
8487
- * Internal server error
9002
+ * The generation has not completed, or its content was never stored or has been purged
8488
9003
  */
8489
- 500: unknown;
9004
+ 409: unknown;
8490
9005
  };
8491
- type StartEvalRunResponses = {
9006
+ type CreateDatasetItemFromGenerationResponses = {
8492
9007
  /**
8493
- * Eval run finished (`wait: true`) or queued (`wait: false`)
9008
+ * Dataset item created from the generation
8494
9009
  */
8495
- 201: EvalRun;
9010
+ 201: DatasetItem;
8496
9011
  };
8497
- type StartEvalRunResponse = StartEvalRunResponses[keyof StartEvalRunResponses];
8498
- type GetEvalRunData = {
9012
+ type CreateDatasetItemFromGenerationResponse = CreateDatasetItemFromGenerationResponses[keyof CreateDatasetItemFromGenerationResponses];
9013
+ type DeleteDatasetItemData = {
8499
9014
  body?: never;
8500
9015
  path: {
8501
9016
  /**
@@ -8503,18 +9018,18 @@ type GetEvalRunData = {
8503
9018
  */
8504
9019
  project_id: string;
8505
9020
  /**
8506
- * Eval ID
9021
+ * Dataset ID
8507
9022
  */
8508
- eval_id: string;
9023
+ dataset_id: string;
8509
9024
  /**
8510
- * Eval run ID
9025
+ * Dataset item ID
8511
9026
  */
8512
- eval_run_id: string;
9027
+ item_id: string;
8513
9028
  };
8514
9029
  query?: never;
8515
- url: '/v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}';
9030
+ url: '/v1/projects/{project_id}/datasets/{dataset_id}/items/{item_id}';
8516
9031
  };
8517
- type GetEvalRunErrors = {
9032
+ type DeleteDatasetItemErrors = {
8518
9033
  /**
8519
9034
  * Unauthorized
8520
9035
  */
@@ -8524,32 +9039,74 @@ type GetEvalRunErrors = {
8524
9039
  */
8525
9040
  403: unknown;
8526
9041
  /**
8527
- * Eval or run not found
9042
+ * Dataset or item not found
8528
9043
  */
8529
9044
  404: unknown;
8530
9045
  };
8531
- type GetEvalRunResponses = {
9046
+ type DeleteDatasetItemResponses = {
8532
9047
  /**
8533
- * Eval run details
9048
+ * Dataset item deleted successfully
8534
9049
  */
8535
- 200: EvalRun;
9050
+ 204: void;
8536
9051
  };
8537
- type GetEvalRunResponse = GetEvalRunResponses[keyof GetEvalRunResponses];
8538
- type ListEvalResultsData = {
8539
- body?: never;
9052
+ type DeleteDatasetItemResponse = DeleteDatasetItemResponses[keyof DeleteDatasetItemResponses];
9053
+ type UpdateDatasetItemData = {
9054
+ body: {
9055
+ input?: DatasetItemInput;
9056
+ expected_output?: string | null;
9057
+ metadata?: {
9058
+ [key: string]: unknown;
9059
+ } | null;
9060
+ };
8540
9061
  path: {
8541
9062
  /**
8542
9063
  * Project public ID (proj_ prefix).
8543
9064
  */
8544
9065
  project_id: string;
8545
9066
  /**
8546
- * Eval ID
9067
+ * Dataset ID
8547
9068
  */
8548
- eval_id: string;
9069
+ dataset_id: string;
8549
9070
  /**
8550
- * Eval run ID
9071
+ * Dataset item ID
8551
9072
  */
8552
- eval_run_id: string;
9073
+ item_id: string;
9074
+ };
9075
+ query?: never;
9076
+ url: '/v1/projects/{project_id}/datasets/{dataset_id}/items/{item_id}';
9077
+ };
9078
+ type UpdateDatasetItemErrors = {
9079
+ /**
9080
+ * Bad request
9081
+ */
9082
+ 400: unknown;
9083
+ /**
9084
+ * Unauthorized
9085
+ */
9086
+ 401: unknown;
9087
+ /**
9088
+ * Forbidden
9089
+ */
9090
+ 403: unknown;
9091
+ /**
9092
+ * Dataset or item not found
9093
+ */
9094
+ 404: unknown;
9095
+ };
9096
+ type UpdateDatasetItemResponses = {
9097
+ /**
9098
+ * Dataset item updated successfully
9099
+ */
9100
+ 200: DatasetItem;
9101
+ };
9102
+ type UpdateDatasetItemResponse = UpdateDatasetItemResponses[keyof UpdateDatasetItemResponses];
9103
+ type ListEvalsData = {
9104
+ body?: never;
9105
+ path: {
9106
+ /**
9107
+ * Project public ID (proj_ prefix).
9108
+ */
9109
+ project_id: string;
8553
9110
  };
8554
9111
  query?: {
8555
9112
  /**
@@ -8561,9 +9118,9 @@ type ListEvalResultsData = {
8561
9118
  */
8562
9119
  offset?: number;
8563
9120
  };
8564
- url: '/v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/results';
9121
+ url: '/v1/projects/{project_id}/evals';
8565
9122
  };
8566
- type ListEvalResultsErrors = {
9123
+ type ListEvalsErrors = {
8567
9124
  /**
8568
9125
  * Unauthorized
8569
9126
  */
@@ -8573,44 +9130,54 @@ type ListEvalResultsErrors = {
8573
9130
  */
8574
9131
  403: unknown;
8575
9132
  /**
8576
- * Eval or run not found
9133
+ * Internal server error
8577
9134
  */
8578
- 404: unknown;
9135
+ 500: unknown;
8579
9136
  };
8580
- type ListEvalResultsResponses = {
9137
+ type ListEvalsResponses = {
8581
9138
  /**
8582
- * List of eval results
9139
+ * List of evals
8583
9140
  */
8584
9141
  200: {
8585
- data: Array<EvalResult>;
9142
+ data: Array<Eval>;
8586
9143
  total: number;
8587
9144
  limit: number;
8588
9145
  offset: number;
8589
9146
  };
8590
9147
  };
8591
- type ListEvalResultsResponse = ListEvalResultsResponses[keyof ListEvalResultsResponses];
8592
- type CancelEvalRunData = {
8593
- body?: never;
8594
- path: {
9148
+ type ListEvalsResponse = ListEvalsResponses[keyof ListEvalsResponses];
9149
+ type CreateEvalData = {
9150
+ body: {
8595
9151
  /**
8596
- * Project public ID (proj_ prefix).
9152
+ * Unique name within the project
8597
9153
  */
8598
- project_id: string;
9154
+ name: string;
8599
9155
  /**
8600
- * Eval ID
9156
+ * The agent under test
8601
9157
  */
8602
- eval_id: string;
9158
+ agent_id: string;
8603
9159
  /**
8604
- * Eval run ID
9160
+ * The dataset to run it against
8605
9161
  */
8606
- eval_run_id: string;
9162
+ dataset_id: string;
9163
+ scorers: Scorers;
9164
+ /**
9165
+ * 0–1. The run passes iff its pass rate — passed items over non-errored items — is at least this. Null reports scores without gating on them.
9166
+ */
9167
+ pass_threshold?: number | null;
9168
+ };
9169
+ path: {
9170
+ /**
9171
+ * Project public ID (proj_ prefix).
9172
+ */
9173
+ project_id: string;
8607
9174
  };
8608
9175
  query?: never;
8609
- url: '/v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/cancel';
9176
+ url: '/v1/projects/{project_id}/evals';
8610
9177
  };
8611
- type CancelEvalRunErrors = {
9178
+ type CreateEvalErrors = {
8612
9179
  /**
8613
- * The run has already finished
9180
+ * Bad request (unknown scorer type, cross-project reference, invalid threshold)
8614
9181
  */
8615
9182
  400: unknown;
8616
9183
  /**
@@ -8622,76 +9189,1246 @@ type CancelEvalRunErrors = {
8622
9189
  */
8623
9190
  403: unknown;
8624
9191
  /**
8625
- * Eval or run not found
9192
+ * An eval with that name already exists in the project
8626
9193
  */
8627
- 404: unknown;
9194
+ 409: unknown;
8628
9195
  /**
8629
9196
  * Internal server error
8630
9197
  */
8631
9198
  500: unknown;
8632
9199
  };
8633
- type CancelEvalRunResponses = {
9200
+ type CreateEvalResponses = {
8634
9201
  /**
8635
- * Eval run canceled
9202
+ * Eval created successfully
8636
9203
  */
8637
- 200: EvalRun;
9204
+ 201: Eval;
8638
9205
  };
8639
- type CancelEvalRunResponse = CancelEvalRunResponses[keyof CancelEvalRunResponses];
8640
- type ListGenerationsData = {
9206
+ type CreateEvalResponse = CreateEvalResponses[keyof CreateEvalResponses];
9207
+ type DeleteEvalData = {
8641
9208
  body?: never;
8642
9209
  path: {
8643
9210
  /**
8644
9211
  * Project public ID (proj_ prefix).
8645
9212
  */
8646
9213
  project_id: string;
8647
- };
8648
- query?: {
8649
- /**
8650
- * Filter by agent public ID
8651
- */
8652
- agent_id?: string;
8653
- /**
8654
- * Filter by trace public ID
8655
- */
8656
- trace_id?: string;
8657
9214
  /**
8658
- * Filter by the public ID of the parent generation. Returns all generations triggered by that generation — sub-agent invocations. Null-initiated (top-level) generations are not returned.
8659
- *
9215
+ * Eval ID
8660
9216
  */
8661
- initiator_generation_id?: string;
9217
+ eval_id: string;
9218
+ };
9219
+ query?: never;
9220
+ url: '/v1/projects/{project_id}/evals/{eval_id}';
9221
+ };
9222
+ type DeleteEvalErrors = {
9223
+ /**
9224
+ * Unauthorized
9225
+ */
9226
+ 401: unknown;
9227
+ /**
9228
+ * Forbidden
9229
+ */
9230
+ 403: unknown;
9231
+ /**
9232
+ * Eval not found
9233
+ */
9234
+ 404: unknown;
9235
+ };
9236
+ type DeleteEvalResponses = {
9237
+ /**
9238
+ * Eval deleted successfully
9239
+ */
9240
+ 204: void;
9241
+ };
9242
+ type DeleteEvalResponse = DeleteEvalResponses[keyof DeleteEvalResponses];
9243
+ type GetEvalData = {
9244
+ body?: never;
9245
+ path: {
9246
+ /**
9247
+ * Project public ID (proj_ prefix).
9248
+ */
9249
+ project_id: string;
9250
+ /**
9251
+ * Eval ID
9252
+ */
9253
+ eval_id: string;
9254
+ };
9255
+ query?: never;
9256
+ url: '/v1/projects/{project_id}/evals/{eval_id}';
9257
+ };
9258
+ type GetEvalErrors = {
9259
+ /**
9260
+ * Unauthorized
9261
+ */
9262
+ 401: unknown;
9263
+ /**
9264
+ * Forbidden
9265
+ */
9266
+ 403: unknown;
9267
+ /**
9268
+ * Eval not found
9269
+ */
9270
+ 404: unknown;
9271
+ };
9272
+ type GetEvalResponses = {
9273
+ /**
9274
+ * Eval details
9275
+ */
9276
+ 200: Eval;
9277
+ };
9278
+ type GetEvalResponse = GetEvalResponses[keyof GetEvalResponses];
9279
+ type UpdateEvalData = {
9280
+ body: {
9281
+ name?: string;
9282
+ agent_id?: string;
9283
+ dataset_id?: string;
9284
+ scorers?: Scorers;
9285
+ pass_threshold?: number | null;
9286
+ };
9287
+ path: {
9288
+ /**
9289
+ * Project public ID (proj_ prefix).
9290
+ */
9291
+ project_id: string;
9292
+ /**
9293
+ * Eval ID
9294
+ */
9295
+ eval_id: string;
9296
+ };
9297
+ query?: never;
9298
+ url: '/v1/projects/{project_id}/evals/{eval_id}';
9299
+ };
9300
+ type UpdateEvalErrors = {
9301
+ /**
9302
+ * Bad request
9303
+ */
9304
+ 400: unknown;
9305
+ /**
9306
+ * Unauthorized
9307
+ */
9308
+ 401: unknown;
9309
+ /**
9310
+ * Forbidden
9311
+ */
9312
+ 403: unknown;
9313
+ /**
9314
+ * Eval not found
9315
+ */
9316
+ 404: unknown;
9317
+ /**
9318
+ * An eval with that name already exists in the project
9319
+ */
9320
+ 409: unknown;
9321
+ };
9322
+ type UpdateEvalResponses = {
9323
+ /**
9324
+ * Eval updated successfully
9325
+ */
9326
+ 200: Eval;
9327
+ };
9328
+ type UpdateEvalResponse = UpdateEvalResponses[keyof UpdateEvalResponses];
9329
+ type ListEvalRunsData = {
9330
+ body?: never;
9331
+ path: {
9332
+ /**
9333
+ * Project public ID (proj_ prefix).
9334
+ */
9335
+ project_id: string;
9336
+ /**
9337
+ * Eval ID
9338
+ */
9339
+ eval_id: string;
9340
+ };
9341
+ query?: {
9342
+ /**
9343
+ * Maximum number of results to return
9344
+ */
9345
+ limit?: number;
9346
+ /**
9347
+ * Number of results to skip
9348
+ */
9349
+ offset?: number;
9350
+ };
9351
+ url: '/v1/projects/{project_id}/evals/{eval_id}/runs';
9352
+ };
9353
+ type ListEvalRunsErrors = {
9354
+ /**
9355
+ * Unauthorized
9356
+ */
9357
+ 401: unknown;
9358
+ /**
9359
+ * Forbidden
9360
+ */
9361
+ 403: unknown;
9362
+ /**
9363
+ * Eval not found
9364
+ */
9365
+ 404: unknown;
9366
+ };
9367
+ type ListEvalRunsResponses = {
9368
+ /**
9369
+ * List of eval runs
9370
+ */
9371
+ 200: {
9372
+ data: Array<EvalRun>;
9373
+ total: number;
9374
+ limit: number;
9375
+ offset: number;
9376
+ };
9377
+ };
9378
+ type ListEvalRunsResponse = ListEvalRunsResponses[keyof ListEvalRunsResponses];
9379
+ type StartEvalRunData = {
9380
+ body: {
9381
+ /**
9382
+ * True runs the eval synchronously (25-item cap) and returns a terminal run with its scores. False — the default — enqueues the items and returns a `queued` run immediately.
9383
+ */
9384
+ wait?: boolean;
9385
+ /**
9386
+ * An archived agent version to evaluate. Defaults to the active release's stable version, or the live draft version when no release is in effect.
9387
+ */
9388
+ agent_version?: number | null;
9389
+ /**
9390
+ * A terminal run of the same eval to compare against. The finished run's `aggregate_scores.baseline` reports per-scorer deltas over the item intersection. A run of a different eval is rejected with 400.
9391
+ */
9392
+ baseline_run_id?: string | null;
9393
+ };
9394
+ path: {
9395
+ /**
9396
+ * Project public ID (proj_ prefix).
9397
+ */
9398
+ project_id: string;
9399
+ /**
9400
+ * Eval ID
9401
+ */
9402
+ eval_id: string;
9403
+ };
9404
+ query?: never;
9405
+ url: '/v1/projects/{project_id}/evals/{eval_id}/runs';
9406
+ };
9407
+ type StartEvalRunErrors = {
9408
+ /**
9409
+ * Bad request (non-boolean wait, dataset empty or over the synchronous cap, unknown agent_version, invalid baseline, scorers no longer valid against the agent)
9410
+ */
9411
+ 400: unknown;
9412
+ /**
9413
+ * Unauthorized
9414
+ */
9415
+ 401: unknown;
9416
+ /**
9417
+ * Forbidden
9418
+ */
9419
+ 403: unknown;
9420
+ /**
9421
+ * Eval not found
9422
+ */
9423
+ 404: unknown;
9424
+ /**
9425
+ * Internal server error
9426
+ */
9427
+ 500: unknown;
9428
+ };
9429
+ type StartEvalRunResponses = {
9430
+ /**
9431
+ * Eval run finished (`wait: true`) or queued (`wait: false`)
9432
+ */
9433
+ 201: EvalRun;
9434
+ };
9435
+ type StartEvalRunResponse = StartEvalRunResponses[keyof StartEvalRunResponses];
9436
+ type GetEvalRunData = {
9437
+ body?: never;
9438
+ path: {
9439
+ /**
9440
+ * Project public ID (proj_ prefix).
9441
+ */
9442
+ project_id: string;
9443
+ /**
9444
+ * Eval ID
9445
+ */
9446
+ eval_id: string;
9447
+ /**
9448
+ * Eval run ID
9449
+ */
9450
+ eval_run_id: string;
9451
+ };
9452
+ query?: never;
9453
+ url: '/v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}';
9454
+ };
9455
+ type GetEvalRunErrors = {
9456
+ /**
9457
+ * Unauthorized
9458
+ */
9459
+ 401: unknown;
9460
+ /**
9461
+ * Forbidden
9462
+ */
9463
+ 403: unknown;
9464
+ /**
9465
+ * Eval or run not found
9466
+ */
9467
+ 404: unknown;
9468
+ };
9469
+ type GetEvalRunResponses = {
9470
+ /**
9471
+ * Eval run details
9472
+ */
9473
+ 200: EvalRun;
9474
+ };
9475
+ type GetEvalRunResponse = GetEvalRunResponses[keyof GetEvalRunResponses];
9476
+ type ListEvalResultsData = {
9477
+ body?: never;
9478
+ path: {
9479
+ /**
9480
+ * Project public ID (proj_ prefix).
9481
+ */
9482
+ project_id: string;
9483
+ /**
9484
+ * Eval ID
9485
+ */
9486
+ eval_id: string;
9487
+ /**
9488
+ * Eval run ID
9489
+ */
9490
+ eval_run_id: string;
9491
+ };
9492
+ query?: {
9493
+ /**
9494
+ * Maximum number of results to return
9495
+ */
9496
+ limit?: number;
9497
+ /**
9498
+ * Number of results to skip
9499
+ */
9500
+ offset?: number;
9501
+ };
9502
+ url: '/v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/results';
9503
+ };
9504
+ type ListEvalResultsErrors = {
9505
+ /**
9506
+ * Unauthorized
9507
+ */
9508
+ 401: unknown;
9509
+ /**
9510
+ * Forbidden
9511
+ */
9512
+ 403: unknown;
9513
+ /**
9514
+ * Eval or run not found
9515
+ */
9516
+ 404: unknown;
9517
+ };
9518
+ type ListEvalResultsResponses = {
9519
+ /**
9520
+ * List of eval results
9521
+ */
9522
+ 200: {
9523
+ data: Array<EvalResult>;
9524
+ total: number;
9525
+ limit: number;
9526
+ offset: number;
9527
+ };
9528
+ };
9529
+ type ListEvalResultsResponse = ListEvalResultsResponses[keyof ListEvalResultsResponses];
9530
+ type CancelEvalRunData = {
9531
+ body?: never;
9532
+ path: {
9533
+ /**
9534
+ * Project public ID (proj_ prefix).
9535
+ */
9536
+ project_id: string;
9537
+ /**
9538
+ * Eval ID
9539
+ */
9540
+ eval_id: string;
9541
+ /**
9542
+ * Eval run ID
9543
+ */
9544
+ eval_run_id: string;
9545
+ };
9546
+ query?: never;
9547
+ url: '/v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/cancel';
9548
+ };
9549
+ type CancelEvalRunErrors = {
9550
+ /**
9551
+ * The run has already finished
9552
+ */
9553
+ 400: unknown;
9554
+ /**
9555
+ * Unauthorized
9556
+ */
9557
+ 401: unknown;
9558
+ /**
9559
+ * Forbidden
9560
+ */
9561
+ 403: unknown;
9562
+ /**
9563
+ * Eval or run not found
9564
+ */
9565
+ 404: unknown;
9566
+ /**
9567
+ * Internal server error
9568
+ */
9569
+ 500: unknown;
9570
+ };
9571
+ type CancelEvalRunResponses = {
9572
+ /**
9573
+ * Eval run canceled
9574
+ */
9575
+ 200: EvalRun;
9576
+ };
9577
+ type CancelEvalRunResponse = CancelEvalRunResponses[keyof CancelEvalRunResponses];
9578
+ type ListFilesData = {
9579
+ body?: never;
9580
+ path: {
9581
+ /**
9582
+ * Project public ID (proj_ prefix).
9583
+ */
9584
+ project_id: string;
9585
+ };
9586
+ query?: {
9587
+ /**
9588
+ * Maximum number of results to return
9589
+ */
9590
+ limit?: number;
9591
+ /**
9592
+ * Number of results to skip
9593
+ */
9594
+ offset?: number;
9595
+ };
9596
+ url: '/v1/projects/{project_id}/files';
9597
+ };
9598
+ type ListFilesErrors = {
9599
+ /**
9600
+ * Internal server error
9601
+ */
9602
+ 500: ErrorResponse;
9603
+ };
9604
+ type ListFilesError = ListFilesErrors[keyof ListFilesErrors];
9605
+ type ListFilesResponses = {
9606
+ /**
9607
+ * List of files returned successfully
9608
+ */
9609
+ 200: {
9610
+ data?: Array<FileRecord>;
9611
+ total?: number;
9612
+ limit?: number;
9613
+ offset?: number;
9614
+ };
9615
+ };
9616
+ type ListFilesResponse = ListFilesResponses[keyof ListFilesResponses];
9617
+ type CreateFileData = {
9618
+ body: {
9619
+ /**
9620
+ * Directory within the project (e.g. /images). Optional; defaults to / (root). Combined with filename to form the file's key (path).
9621
+ */
9622
+ prefix?: string;
9623
+ /**
9624
+ * Original / download name and the key's leaf segment (e.g. logo.png).
9625
+ */
9626
+ filename?: string;
9627
+ /**
9628
+ * MIME type of the file
9629
+ */
9630
+ content_type?: string;
9631
+ /**
9632
+ * File size in bytes
9633
+ */
9634
+ size?: number | null;
9635
+ /**
9636
+ * JSON string with additional metadata
9637
+ */
9638
+ metadata?: string;
9639
+ };
9640
+ path: {
9641
+ /**
9642
+ * Project public ID (proj_ prefix).
9643
+ */
9644
+ project_id: string;
9645
+ };
9646
+ query?: never;
9647
+ url: '/v1/projects/{project_id}/files';
9648
+ };
9649
+ type CreateFileErrors = {
9650
+ /**
9651
+ * Internal server error
9652
+ */
9653
+ 500: ErrorResponse;
9654
+ };
9655
+ type CreateFileError = CreateFileErrors[keyof CreateFileErrors];
9656
+ type CreateFileResponses = {
9657
+ /**
9658
+ * File created successfully
9659
+ */
9660
+ 201: FileRecord;
9661
+ };
9662
+ type CreateFileResponse = CreateFileResponses[keyof CreateFileResponses];
9663
+ type UploadFileData = {
9664
+ body: {
9665
+ /**
9666
+ * File content
9667
+ */
9668
+ file: Blob | File;
9669
+ /**
9670
+ * Project ID to associate the file with. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.
9671
+ */
9672
+ project_id?: string;
9673
+ /**
9674
+ * Directory within the project (e.g. /images). Optional; defaults to / (root).
9675
+ */
9676
+ prefix?: string;
9677
+ /**
9678
+ * Original / download name. Optional; defaults to the uploaded file's name.
9679
+ */
9680
+ filename?: string;
9681
+ /**
9682
+ * Additional metadata as a JSON string
9683
+ */
9684
+ metadata?: string;
9685
+ };
9686
+ path: {
9687
+ /**
9688
+ * Project public ID (proj_ prefix).
9689
+ */
9690
+ project_id: string;
9691
+ };
9692
+ query?: never;
9693
+ url: '/v1/projects/{project_id}/files/upload';
9694
+ };
9695
+ type UploadFileErrors = {
9696
+ /**
9697
+ * Missing file or invalid project
9698
+ */
9699
+ 400: ErrorResponse;
9700
+ /**
9701
+ * Missing or invalid credentials.
9702
+ */
9703
+ 401: ErrorResponse;
9704
+ /**
9705
+ * The caller's role in the project does not carry this action, or the credential is scoped to a different project.
9706
+ *
9707
+ */
9708
+ 403: ErrorResponse;
9709
+ };
9710
+ type UploadFileError = UploadFileErrors[keyof UploadFileErrors];
9711
+ type UploadFileResponses = {
9712
+ /**
9713
+ * File uploaded successfully
9714
+ */
9715
+ 201: FileRecord;
9716
+ };
9717
+ type UploadFileResponse = UploadFileResponses[keyof UploadFileResponses];
9718
+ type UploadFileBase64Data = {
9719
+ body: UploadFileBase64Request;
9720
+ path: {
9721
+ /**
9722
+ * Project public ID (proj_ prefix).
9723
+ */
9724
+ project_id: string;
9725
+ };
9726
+ query?: never;
9727
+ url: '/v1/projects/{project_id}/files/upload/base64';
9728
+ };
9729
+ type UploadFileBase64Errors = {
9730
+ /**
9731
+ * Missing content or invalid project
9732
+ */
9733
+ 400: ErrorResponse;
9734
+ /**
9735
+ * Missing or invalid credentials.
9736
+ */
9737
+ 401: ErrorResponse;
9738
+ /**
9739
+ * The caller's role in the project does not carry this action, or the credential is scoped to a different project.
9740
+ *
9741
+ */
9742
+ 403: ErrorResponse;
9743
+ };
9744
+ type UploadFileBase64Error = UploadFileBase64Errors[keyof UploadFileBase64Errors];
9745
+ type UploadFileBase64Responses = {
9746
+ /**
9747
+ * File uploaded successfully
9748
+ */
9749
+ 201: FileRecord;
9750
+ };
9751
+ type UploadFileBase64Response = UploadFileBase64Responses[keyof UploadFileBase64Responses];
9752
+ type DeleteFileData = {
9753
+ body?: never;
9754
+ path: {
9755
+ /**
9756
+ * Project public ID (proj_ prefix).
9757
+ */
9758
+ project_id: string;
9759
+ /**
9760
+ * ID of the file to delete
9761
+ */
9762
+ file_id: string;
9763
+ };
9764
+ query?: never;
9765
+ url: '/v1/projects/{project_id}/files/{file_id}';
9766
+ };
9767
+ type DeleteFileErrors = {
9768
+ /**
9769
+ * File not found
9770
+ */
9771
+ 404: ErrorResponse;
9772
+ /**
9773
+ * Internal server error
9774
+ */
9775
+ 500: ErrorResponse;
9776
+ };
9777
+ type DeleteFileError = DeleteFileErrors[keyof DeleteFileErrors];
9778
+ type DeleteFileResponses = {
9779
+ /**
9780
+ * File deleted successfully
9781
+ */
9782
+ 204: void;
9783
+ };
9784
+ type DeleteFileResponse = DeleteFileResponses[keyof DeleteFileResponses];
9785
+ type GetFileData = {
9786
+ body?: never;
9787
+ path: {
9788
+ /**
9789
+ * Project public ID (proj_ prefix).
9790
+ */
9791
+ project_id: string;
9792
+ /**
9793
+ * File ID
9794
+ */
9795
+ file_id: string;
9796
+ };
9797
+ query?: never;
9798
+ url: '/v1/projects/{project_id}/files/{file_id}';
9799
+ };
9800
+ type GetFileErrors = {
9801
+ /**
9802
+ * File not found
9803
+ */
9804
+ 404: ErrorResponse;
9805
+ /**
9806
+ * Internal server error
9807
+ */
9808
+ 500: ErrorResponse;
9809
+ };
9810
+ type GetFileError = GetFileErrors[keyof GetFileErrors];
9811
+ type GetFileResponses = {
9812
+ /**
9813
+ * File found
9814
+ */
9815
+ 200: FileRecord;
9816
+ };
9817
+ type GetFileResponse = GetFileResponses[keyof GetFileResponses];
9818
+ type DownloadFileData = {
9819
+ body?: never;
9820
+ path: {
9821
+ /**
9822
+ * Project public ID (proj_ prefix).
9823
+ */
9824
+ project_id: string;
9825
+ /**
9826
+ * File ID
9827
+ */
9828
+ file_id: string;
9829
+ };
9830
+ query?: never;
9831
+ url: '/v1/projects/{project_id}/files/{file_id}/download';
9832
+ };
9833
+ type DownloadFileErrors = {
9834
+ /**
9835
+ * Missing or invalid credentials.
9836
+ */
9837
+ 401: ErrorResponse;
9838
+ /**
9839
+ * The caller's role in the project does not carry this action, or the credential is scoped to a different project.
9840
+ *
9841
+ */
9842
+ 403: ErrorResponse;
9843
+ /**
9844
+ * File not found
9845
+ */
9846
+ 404: ErrorResponse;
9847
+ };
9848
+ type DownloadFileError = DownloadFileErrors[keyof DownloadFileErrors];
9849
+ type DownloadFileResponses = {
9850
+ /**
9851
+ * File content
9852
+ */
9853
+ 200: Blob | File;
9854
+ };
9855
+ type DownloadFileResponse = DownloadFileResponses[keyof DownloadFileResponses];
9856
+ type UpdateFileMetadataData = {
9857
+ body: {
9858
+ /**
9859
+ * New metadata as a JSON string
9860
+ */
9861
+ metadata?: string;
9862
+ /**
9863
+ * New directory — moves the file. The resulting path (prefix + filename) must be unique within the project.
9864
+ */
9865
+ prefix?: string;
9866
+ /**
9867
+ * New filename — renames the key's leaf and the download name.
9868
+ */
9869
+ filename?: string;
9870
+ };
9871
+ path: {
9872
+ /**
9873
+ * Project public ID (proj_ prefix).
9874
+ */
9875
+ project_id: string;
9876
+ /**
9877
+ * File ID
9878
+ */
9879
+ file_id: string;
9880
+ };
9881
+ query?: never;
9882
+ url: '/v1/projects/{project_id}/files/{file_id}/metadata';
9883
+ };
9884
+ type UpdateFileMetadataErrors = {
9885
+ /**
9886
+ * Missing or invalid credentials.
9887
+ */
9888
+ 401: ErrorResponse;
9889
+ /**
9890
+ * The caller's role in the project does not carry this action, or the credential is scoped to a different project.
9891
+ *
9892
+ */
9893
+ 403: ErrorResponse;
9894
+ /**
9895
+ * File not found
9896
+ */
9897
+ 404: ErrorResponse;
9898
+ /**
9899
+ * A file already exists at the target path in this project
9900
+ */
9901
+ 409: ErrorResponse;
9902
+ };
9903
+ type UpdateFileMetadataError = UpdateFileMetadataErrors[keyof UpdateFileMetadataErrors];
9904
+ type UpdateFileMetadataResponses = {
9905
+ /**
9906
+ * Metadata updated successfully
9907
+ */
9908
+ 200: FileRecord;
9909
+ };
9910
+ type UpdateFileMetadataResponse = UpdateFileMetadataResponses[keyof UpdateFileMetadataResponses];
9911
+ type DownloadFileBase64Data = {
9912
+ body?: never;
9913
+ path: {
9914
+ /**
9915
+ * Project public ID (proj_ prefix).
9916
+ */
9917
+ project_id: string;
9918
+ /**
9919
+ * File ID
9920
+ */
9921
+ file_id: string;
9922
+ };
9923
+ query?: never;
9924
+ url: '/v1/projects/{project_id}/files/{file_id}/download/base64';
9925
+ };
9926
+ type DownloadFileBase64Errors = {
9927
+ /**
9928
+ * Missing or invalid credentials.
9929
+ */
9930
+ 401: ErrorResponse;
9931
+ /**
9932
+ * The caller's role in the project does not carry this action, or the credential is scoped to a different project.
9933
+ *
9934
+ */
9935
+ 403: ErrorResponse;
9936
+ /**
9937
+ * File not found
9938
+ */
9939
+ 404: ErrorResponse;
9940
+ };
9941
+ type DownloadFileBase64Error = DownloadFileBase64Errors[keyof DownloadFileBase64Errors];
9942
+ type DownloadFileBase64Responses = {
9943
+ /**
9944
+ * File content as base64
9945
+ */
9946
+ 200: {
9947
+ /**
9948
+ * Base64-encoded file content
9949
+ */
9950
+ content?: string;
9951
+ /**
9952
+ * Original filename
9953
+ */
9954
+ filename?: string;
9955
+ /**
9956
+ * MIME type of the file
9957
+ */
9958
+ content_type?: string;
9959
+ /**
9960
+ * File size in bytes
9961
+ */
9962
+ size?: number | null;
9963
+ };
9964
+ };
9965
+ type DownloadFileBase64Response = DownloadFileBase64Responses[keyof DownloadFileBase64Responses];
9966
+ type GetFileTagsData = {
9967
+ body?: never;
9968
+ path: {
9969
+ /**
9970
+ * Project public ID (proj_ prefix).
9971
+ */
9972
+ project_id: string;
9973
+ /**
9974
+ * File ID
9975
+ */
9976
+ file_id: string;
9977
+ };
9978
+ query?: never;
9979
+ url: '/v1/projects/{project_id}/files/{file_id}/tags';
9980
+ };
9981
+ type GetFileTagsErrors = {
9982
+ /**
9983
+ * Missing or invalid credentials.
9984
+ */
9985
+ 401: ErrorResponse;
9986
+ /**
9987
+ * The caller's role in the project does not carry this action, or the credential is scoped to a different project.
9988
+ *
9989
+ */
9990
+ 403: ErrorResponse;
9991
+ /**
9992
+ * File not found
9993
+ */
9994
+ 404: ErrorResponse;
9995
+ };
9996
+ type GetFileTagsError = GetFileTagsErrors[keyof GetFileTagsErrors];
9997
+ type GetFileTagsResponses = {
9998
+ /**
9999
+ * File tags
10000
+ */
10001
+ 200: {
10002
+ [key: string]: string;
10003
+ };
10004
+ };
10005
+ type GetFileTagsResponse = GetFileTagsResponses[keyof GetFileTagsResponses];
10006
+ type MergeFileTagsData = {
10007
+ body: {
10008
+ [key: string]: string;
10009
+ };
10010
+ path: {
10011
+ /**
10012
+ * Project public ID (proj_ prefix).
10013
+ */
10014
+ project_id: string;
10015
+ /**
10016
+ * File ID
10017
+ */
10018
+ file_id: string;
10019
+ };
10020
+ query?: never;
10021
+ url: '/v1/projects/{project_id}/files/{file_id}/tags';
10022
+ };
10023
+ type MergeFileTagsErrors = {
10024
+ /**
10025
+ * Missing or invalid credentials.
10026
+ */
10027
+ 401: ErrorResponse;
10028
+ /**
10029
+ * The caller's role in the project does not carry this action, or the credential is scoped to a different project.
10030
+ *
10031
+ */
10032
+ 403: ErrorResponse;
10033
+ /**
10034
+ * File not found
10035
+ */
10036
+ 404: ErrorResponse;
10037
+ };
10038
+ type MergeFileTagsError = MergeFileTagsErrors[keyof MergeFileTagsErrors];
10039
+ type MergeFileTagsResponses = {
10040
+ /**
10041
+ * Tags merged
10042
+ */
10043
+ 200: {
10044
+ [key: string]: string;
10045
+ };
10046
+ };
10047
+ type MergeFileTagsResponse = MergeFileTagsResponses[keyof MergeFileTagsResponses];
10048
+ type ReplaceFileTagsData = {
10049
+ body: {
10050
+ [key: string]: string;
10051
+ };
10052
+ path: {
10053
+ /**
10054
+ * Project public ID (proj_ prefix).
10055
+ */
10056
+ project_id: string;
10057
+ /**
10058
+ * File ID
10059
+ */
10060
+ file_id: string;
10061
+ };
10062
+ query?: never;
10063
+ url: '/v1/projects/{project_id}/files/{file_id}/tags';
10064
+ };
10065
+ type ReplaceFileTagsErrors = {
10066
+ /**
10067
+ * Missing or invalid credentials.
10068
+ */
10069
+ 401: ErrorResponse;
10070
+ /**
10071
+ * The caller's role in the project does not carry this action, or the credential is scoped to a different project.
10072
+ *
10073
+ */
10074
+ 403: ErrorResponse;
10075
+ /**
10076
+ * File not found
10077
+ */
10078
+ 404: ErrorResponse;
10079
+ };
10080
+ type ReplaceFileTagsError = ReplaceFileTagsErrors[keyof ReplaceFileTagsErrors];
10081
+ type ReplaceFileTagsResponses = {
10082
+ /**
10083
+ * Tags replaced
10084
+ */
10085
+ 200: {
10086
+ [key: string]: string;
10087
+ };
10088
+ };
10089
+ type ReplaceFileTagsResponse = ReplaceFileTagsResponses[keyof ReplaceFileTagsResponses];
10090
+ type ListGenerationsData = {
10091
+ body?: never;
10092
+ path: {
10093
+ /**
10094
+ * Project public ID (proj_ prefix).
10095
+ */
10096
+ project_id: string;
10097
+ };
10098
+ query?: {
10099
+ /**
10100
+ * Filter by agent public ID
10101
+ */
10102
+ agent_id?: string;
10103
+ /**
10104
+ * Filter by trace public ID
10105
+ */
10106
+ trace_id?: string;
10107
+ /**
10108
+ * Filter by the public ID of the parent generation. Returns all generations triggered by that generation — sub-agent invocations. Null-initiated (top-level) generations are not returned.
10109
+ *
10110
+ */
10111
+ initiator_generation_id?: string;
10112
+ /**
10113
+ * Filter by lifecycle status
10114
+ */
10115
+ status?: 'in_progress' | 'requires_action' | 'completed' | 'failed';
10116
+ limit?: number;
10117
+ offset?: number;
10118
+ };
10119
+ url: '/v1/projects/{project_id}/generations';
10120
+ };
10121
+ type ListGenerationsErrors = {
10122
+ /**
10123
+ * Unauthorized
10124
+ */
10125
+ 401: ErrorResponse;
10126
+ /**
10127
+ * Forbidden
10128
+ */
10129
+ 403: ErrorResponse;
10130
+ };
10131
+ type ListGenerationsError = ListGenerationsErrors[keyof ListGenerationsErrors];
10132
+ type ListGenerationsResponses = {
10133
+ /**
10134
+ * Paginated list of generations
10135
+ */
10136
+ 200: {
10137
+ data?: Array<Generation>;
10138
+ total?: number;
10139
+ limit?: number;
10140
+ offset?: number;
10141
+ };
10142
+ };
10143
+ type ListGenerationsResponse = ListGenerationsResponses[keyof ListGenerationsResponses];
10144
+ type GetGenerationData = {
10145
+ body?: never;
10146
+ path: {
10147
+ /**
10148
+ * Project public ID (proj_ prefix).
10149
+ */
10150
+ project_id: string;
10151
+ /**
10152
+ * Public ID of the generation
10153
+ */
10154
+ generation_id: string;
10155
+ };
10156
+ query?: never;
10157
+ url: '/v1/projects/{project_id}/generations/{generation_id}';
10158
+ };
10159
+ type GetGenerationErrors = {
10160
+ /**
10161
+ * Unauthorized
10162
+ */
10163
+ 401: ErrorResponse;
10164
+ /**
10165
+ * Forbidden
10166
+ */
10167
+ 403: ErrorResponse;
10168
+ /**
10169
+ * Generation not found
10170
+ */
10171
+ 404: ErrorResponse;
10172
+ };
10173
+ type GetGenerationError = GetGenerationErrors[keyof GetGenerationErrors];
10174
+ type GetGenerationResponses = {
10175
+ /**
10176
+ * Generation details
10177
+ */
10178
+ 200: Generation;
10179
+ };
10180
+ type GetGenerationResponse = GetGenerationResponses[keyof GetGenerationResponses];
10181
+ type UpdateGenerationData = {
10182
+ body: UpdateGenerationRequest;
10183
+ path: {
10184
+ /**
10185
+ * Project public ID (proj_ prefix).
10186
+ */
10187
+ project_id: string;
10188
+ /**
10189
+ * Public ID of the generation
10190
+ */
10191
+ generation_id: string;
10192
+ };
10193
+ query?: never;
10194
+ url: '/v1/projects/{project_id}/generations/{generation_id}';
10195
+ };
10196
+ type UpdateGenerationErrors = {
10197
+ /**
10198
+ * Bad Request (e.g. metadata is not a JSON object)
10199
+ */
10200
+ 400: ErrorResponse;
10201
+ /**
10202
+ * Unauthorized
10203
+ */
10204
+ 401: ErrorResponse;
10205
+ /**
10206
+ * Forbidden
10207
+ */
10208
+ 403: ErrorResponse;
10209
+ /**
10210
+ * Generation not found
10211
+ */
10212
+ 404: ErrorResponse;
10213
+ };
10214
+ type UpdateGenerationError = UpdateGenerationErrors[keyof UpdateGenerationErrors];
10215
+ type UpdateGenerationResponses = {
10216
+ /**
10217
+ * Updated generation
10218
+ */
10219
+ 200: Generation;
10220
+ };
10221
+ type UpdateGenerationResponse = UpdateGenerationResponses[keyof UpdateGenerationResponses];
10222
+ type PurgeGenerationContentData = {
10223
+ body?: never;
10224
+ path: {
10225
+ /**
10226
+ * Project public ID (proj_ prefix).
10227
+ */
10228
+ project_id: string;
10229
+ /**
10230
+ * Public ID of the generation
10231
+ */
10232
+ generation_id: string;
10233
+ };
10234
+ query?: never;
10235
+ url: '/v1/projects/{project_id}/generations/{generation_id}/content';
10236
+ };
10237
+ type PurgeGenerationContentErrors = {
10238
+ /**
10239
+ * Unauthorized
10240
+ */
10241
+ 401: ErrorResponse;
10242
+ /**
10243
+ * Forbidden
10244
+ */
10245
+ 403: ErrorResponse;
10246
+ /**
10247
+ * Generation not found
10248
+ */
10249
+ 404: ErrorResponse;
10250
+ };
10251
+ type PurgeGenerationContentError = PurgeGenerationContentErrors[keyof PurgeGenerationContentErrors];
10252
+ type PurgeGenerationContentResponses = {
10253
+ /**
10254
+ * The purged generation skeleton
10255
+ */
10256
+ 200: Generation;
10257
+ };
10258
+ type PurgeGenerationContentResponse = PurgeGenerationContentResponses[keyof PurgeGenerationContentResponses];
10259
+ type GetGenerationTranscriptData = {
10260
+ body?: never;
10261
+ path: {
10262
+ /**
10263
+ * Project public ID (proj_ prefix).
10264
+ */
10265
+ project_id: string;
10266
+ /**
10267
+ * Public ID of the generation
10268
+ */
10269
+ generation_id: string;
10270
+ };
10271
+ query?: never;
10272
+ url: '/v1/projects/{project_id}/generations/{generation_id}/transcript';
10273
+ };
10274
+ type GetGenerationTranscriptErrors = {
10275
+ /**
10276
+ * Unauthorized
10277
+ */
10278
+ 401: ErrorResponse;
10279
+ /**
10280
+ * Forbidden
10281
+ */
10282
+ 403: ErrorResponse;
10283
+ /**
10284
+ * Generation not found
10285
+ */
10286
+ 404: ErrorResponse;
10287
+ };
10288
+ type GetGenerationTranscriptError = GetGenerationTranscriptErrors[keyof GetGenerationTranscriptErrors];
10289
+ type GetGenerationTranscriptResponses = {
10290
+ /**
10291
+ * The generation's transcript
10292
+ */
10293
+ 200: GenerationTranscript;
10294
+ };
10295
+ type GetGenerationTranscriptResponse = GetGenerationTranscriptResponses[keyof GetGenerationTranscriptResponses];
10296
+ type ListIngestionRulesData = {
10297
+ body?: never;
10298
+ path: {
10299
+ /**
10300
+ * Project public ID (proj_ prefix).
10301
+ */
10302
+ project_id: string;
10303
+ };
10304
+ query?: {
10305
+ /**
10306
+ * Number of results per page
10307
+ */
10308
+ limit?: number;
10309
+ /**
10310
+ * Number of results to skip
10311
+ */
10312
+ offset?: number;
10313
+ };
10314
+ url: '/v1/projects/{project_id}/ingestion-rules';
10315
+ };
10316
+ type ListIngestionRulesErrors = {
10317
+ /**
10318
+ * Unauthorized
10319
+ */
10320
+ 401: unknown;
10321
+ /**
10322
+ * Forbidden
10323
+ */
10324
+ 403: unknown;
10325
+ /**
10326
+ * Internal server error
10327
+ */
10328
+ 500: unknown;
10329
+ };
10330
+ type ListIngestionRulesResponses = {
10331
+ /**
10332
+ * List of ingestion rules
10333
+ */
10334
+ 200: {
10335
+ data: Array<IngestionRule>;
10336
+ total: number;
10337
+ limit: number;
10338
+ offset: number;
10339
+ };
10340
+ };
10341
+ type ListIngestionRulesResponse = ListIngestionRulesResponses[keyof ListIngestionRulesResponses];
10342
+ type CreateIngestionRuleData = {
10343
+ body: {
10344
+ /**
10345
+ * MIME type glob matched against a file's content_type
10346
+ */
10347
+ content_type_glob: string;
10348
+ /**
10349
+ * Converter tool id (mutually exclusive with agent_id)
10350
+ */
10351
+ tool_id?: string;
10352
+ /**
10353
+ * Converter agent id (mutually exclusive with tool_id)
10354
+ */
10355
+ agent_id?: string;
10356
+ /**
10357
+ * Operation id, required for mcp tool converters
10358
+ */
10359
+ action?: string;
10360
+ /**
10361
+ * Merged into the tool input before invocation (tool converters only)
10362
+ */
10363
+ preset_parameters?: {
10364
+ [key: string]: unknown;
10365
+ };
10366
+ /**
10367
+ * For native types (PDF/text): `first` (default) converts only when native extraction yields no text; `skip` always converts.
10368
+ */
10369
+ native_extraction?: 'first' | 'skip';
10370
+ /**
10371
+ * How the file reaches a tool converter (default base64)
10372
+ */
10373
+ file_delivery?: 'base64' | 'download_url';
10374
+ /**
10375
+ * Default chunk strategy, overridable per ingest request
10376
+ */
10377
+ chunk_strategy?: 'page' | 'whole' | 'size';
10378
+ /**
10379
+ * Default window size in characters for the size strategy
10380
+ */
10381
+ chunk_size?: number;
10382
+ /**
10383
+ * Default overlap in characters for the size strategy
10384
+ */
10385
+ chunk_overlap?: number;
10386
+ /**
10387
+ * Arbitrary JSON metadata
10388
+ */
10389
+ metadata?: {
10390
+ [key: string]: unknown;
10391
+ };
10392
+ };
10393
+ path: {
8662
10394
  /**
8663
- * Filter by lifecycle status
10395
+ * Project public ID (proj_ prefix).
8664
10396
  */
8665
- status?: 'in_progress' | 'requires_action' | 'completed' | 'failed';
8666
- limit?: number;
8667
- offset?: number;
10397
+ project_id: string;
8668
10398
  };
8669
- url: '/v1/projects/{project_id}/generations';
10399
+ query?: never;
10400
+ url: '/v1/projects/{project_id}/ingestion-rules';
8670
10401
  };
8671
- type ListGenerationsErrors = {
10402
+ type CreateIngestionRuleErrors = {
10403
+ /**
10404
+ * Validation failed (e.g. tool_id and agent_id both set or both missing)
10405
+ */
10406
+ 400: unknown;
8672
10407
  /**
8673
10408
  * Unauthorized
8674
10409
  */
8675
- 401: ErrorResponse;
10410
+ 401: unknown;
8676
10411
  /**
8677
10412
  * Forbidden
8678
10413
  */
8679
- 403: ErrorResponse;
10414
+ 403: unknown;
10415
+ /**
10416
+ * A rule for this content_type_glob already exists in the project
10417
+ */
10418
+ 409: unknown;
10419
+ /**
10420
+ * Internal server error
10421
+ */
10422
+ 500: unknown;
8680
10423
  };
8681
- type ListGenerationsError = ListGenerationsErrors[keyof ListGenerationsErrors];
8682
- type ListGenerationsResponses = {
10424
+ type CreateIngestionRuleResponses = {
8683
10425
  /**
8684
- * Paginated list of generations
10426
+ * Ingestion rule created
8685
10427
  */
8686
- 200: {
8687
- data?: Array<Generation>;
8688
- total?: number;
8689
- limit?: number;
8690
- offset?: number;
8691
- };
10428
+ 201: IngestionRule;
8692
10429
  };
8693
- type ListGenerationsResponse = ListGenerationsResponses[keyof ListGenerationsResponses];
8694
- type GetGenerationData = {
10430
+ type CreateIngestionRuleResponse = CreateIngestionRuleResponses[keyof CreateIngestionRuleResponses];
10431
+ type DeleteIngestionRuleData = {
8695
10432
  body?: never;
8696
10433
  path: {
8697
10434
  /**
@@ -8699,129 +10436,178 @@ type GetGenerationData = {
8699
10436
  */
8700
10437
  project_id: string;
8701
10438
  /**
8702
- * Public ID of the generation
10439
+ * Ingestion rule ID
8703
10440
  */
8704
- generation_id: string;
10441
+ ingestion_rule_id: string;
8705
10442
  };
8706
10443
  query?: never;
8707
- url: '/v1/projects/{project_id}/generations/{generation_id}';
10444
+ url: '/v1/projects/{project_id}/ingestion-rules/{ingestion_rule_id}';
8708
10445
  };
8709
- type GetGenerationErrors = {
10446
+ type DeleteIngestionRuleErrors = {
8710
10447
  /**
8711
10448
  * Unauthorized
8712
10449
  */
8713
- 401: ErrorResponse;
10450
+ 401: unknown;
8714
10451
  /**
8715
10452
  * Forbidden
8716
10453
  */
8717
- 403: ErrorResponse;
10454
+ 403: unknown;
8718
10455
  /**
8719
- * Generation not found
10456
+ * Ingestion rule not found
8720
10457
  */
8721
- 404: ErrorResponse;
10458
+ 404: unknown;
8722
10459
  };
8723
- type GetGenerationError = GetGenerationErrors[keyof GetGenerationErrors];
8724
- type GetGenerationResponses = {
10460
+ type DeleteIngestionRuleResponses = {
8725
10461
  /**
8726
- * Generation details
10462
+ * Ingestion rule deleted
8727
10463
  */
8728
- 200: Generation;
10464
+ 204: void;
8729
10465
  };
8730
- type GetGenerationResponse = GetGenerationResponses[keyof GetGenerationResponses];
8731
- type UpdateGenerationData = {
8732
- body: UpdateGenerationRequest;
10466
+ type DeleteIngestionRuleResponse = DeleteIngestionRuleResponses[keyof DeleteIngestionRuleResponses];
10467
+ type GetIngestionRuleData = {
10468
+ body?: never;
8733
10469
  path: {
8734
10470
  /**
8735
10471
  * Project public ID (proj_ prefix).
8736
10472
  */
8737
10473
  project_id: string;
8738
10474
  /**
8739
- * Public ID of the generation
10475
+ * Ingestion rule ID
8740
10476
  */
8741
- generation_id: string;
10477
+ ingestion_rule_id: string;
8742
10478
  };
8743
10479
  query?: never;
8744
- url: '/v1/projects/{project_id}/generations/{generation_id}';
10480
+ url: '/v1/projects/{project_id}/ingestion-rules/{ingestion_rule_id}';
8745
10481
  };
8746
- type UpdateGenerationErrors = {
8747
- /**
8748
- * Bad Request (e.g. metadata is not a JSON object)
8749
- */
8750
- 400: ErrorResponse;
10482
+ type GetIngestionRuleErrors = {
8751
10483
  /**
8752
10484
  * Unauthorized
8753
10485
  */
8754
- 401: ErrorResponse;
10486
+ 401: unknown;
8755
10487
  /**
8756
10488
  * Forbidden
8757
10489
  */
8758
- 403: ErrorResponse;
10490
+ 403: unknown;
8759
10491
  /**
8760
- * Generation not found
10492
+ * Ingestion rule not found
8761
10493
  */
8762
- 404: ErrorResponse;
10494
+ 404: unknown;
8763
10495
  };
8764
- type UpdateGenerationError = UpdateGenerationErrors[keyof UpdateGenerationErrors];
8765
- type UpdateGenerationResponses = {
10496
+ type GetIngestionRuleResponses = {
8766
10497
  /**
8767
- * Updated generation
10498
+ * Ingestion rule details
8768
10499
  */
8769
- 200: Generation;
10500
+ 200: IngestionRule;
8770
10501
  };
8771
- type UpdateGenerationResponse = UpdateGenerationResponses[keyof UpdateGenerationResponses];
8772
- type PurgeGenerationContentData = {
8773
- body?: never;
10502
+ type GetIngestionRuleResponse = GetIngestionRuleResponses[keyof GetIngestionRuleResponses];
10503
+ type UpdateIngestionRuleData = {
10504
+ body: {
10505
+ content_type_glob?: string;
10506
+ tool_id?: string | null;
10507
+ agent_id?: string | null;
10508
+ action?: string | null;
10509
+ preset_parameters?: {
10510
+ [key: string]: unknown;
10511
+ } | null;
10512
+ native_extraction?: 'first' | 'skip';
10513
+ file_delivery?: 'base64' | 'download_url';
10514
+ /**
10515
+ * Send `null` to clear the rule's override and fall back to the per-request default.
10516
+ */
10517
+ chunk_strategy?: 'page' | 'whole' | 'size' | null;
10518
+ chunk_size?: number | null;
10519
+ chunk_overlap?: number | null;
10520
+ metadata?: {
10521
+ [key: string]: unknown;
10522
+ } | null;
10523
+ };
8774
10524
  path: {
8775
10525
  /**
8776
10526
  * Project public ID (proj_ prefix).
8777
10527
  */
8778
10528
  project_id: string;
8779
10529
  /**
8780
- * Public ID of the generation
10530
+ * Ingestion rule ID
8781
10531
  */
8782
- generation_id: string;
10532
+ ingestion_rule_id: string;
8783
10533
  };
8784
10534
  query?: never;
8785
- url: '/v1/projects/{project_id}/generations/{generation_id}/content';
10535
+ url: '/v1/projects/{project_id}/ingestion-rules/{ingestion_rule_id}';
8786
10536
  };
8787
- type PurgeGenerationContentErrors = {
10537
+ type UpdateIngestionRuleErrors = {
10538
+ /**
10539
+ * Validation failed
10540
+ */
10541
+ 400: unknown;
8788
10542
  /**
8789
10543
  * Unauthorized
8790
10544
  */
8791
- 401: ErrorResponse;
10545
+ 401: unknown;
8792
10546
  /**
8793
10547
  * Forbidden
8794
10548
  */
8795
- 403: ErrorResponse;
10549
+ 403: unknown;
8796
10550
  /**
8797
- * Generation not found
10551
+ * Ingestion rule not found
8798
10552
  */
8799
- 404: ErrorResponse;
10553
+ 404: unknown;
10554
+ /**
10555
+ * A rule for this content_type_glob already exists in the project
10556
+ */
10557
+ 409: unknown;
8800
10558
  };
8801
- type PurgeGenerationContentError = PurgeGenerationContentErrors[keyof PurgeGenerationContentErrors];
8802
- type PurgeGenerationContentResponses = {
10559
+ type UpdateIngestionRuleResponses = {
8803
10560
  /**
8804
- * The purged generation skeleton
10561
+ * Ingestion rule updated
8805
10562
  */
8806
- 200: Generation;
10563
+ 200: IngestionRule;
8807
10564
  };
8808
- type PurgeGenerationContentResponse = PurgeGenerationContentResponses[keyof PurgeGenerationContentResponses];
8809
- type GetGenerationTranscriptData = {
8810
- body?: never;
10565
+ type UpdateIngestionRuleResponse = UpdateIngestionRuleResponses[keyof UpdateIngestionRuleResponses];
10566
+ type SearchKnowledgeData = {
10567
+ body: {
10568
+ /**
10569
+ * Semantic search query text
10570
+ */
10571
+ query?: string;
10572
+ /**
10573
+ * Minimum `score` a result must reach to be returned. Filters on the implementation-defined `score`, not on `similarity_score`, so the cutoff follows the ranking. Only applies when `query` is provided. Because the scale behind `score` is not part of the contract, treat a tuned value as tied to the deployment rather than portable.
10574
+ */
10575
+ min_score?: number;
10576
+ /**
10577
+ * Maximum number of results to return (default 10)
10578
+ */
10579
+ limit?: number;
10580
+ /**
10581
+ * Search entries within these specific memories
10582
+ */
10583
+ memory_ids?: Array<string>;
10584
+ /**
10585
+ * Search entries in memories whose tags match any of these patterns (glob supported)
10586
+ */
10587
+ memory_tags?: Array<string>;
10588
+ /**
10589
+ * Filter results to documents whose file path starts with one of these prefixes
10590
+ */
10591
+ document_paths?: Array<string>;
10592
+ /**
10593
+ * Filter results to specific document IDs
10594
+ */
10595
+ document_ids?: Array<string>;
10596
+ };
8811
10597
  path: {
8812
10598
  /**
8813
10599
  * Project public ID (proj_ prefix).
8814
10600
  */
8815
10601
  project_id: string;
8816
- /**
8817
- * Public ID of the generation
8818
- */
8819
- generation_id: string;
8820
10602
  };
8821
10603
  query?: never;
8822
- url: '/v1/projects/{project_id}/generations/{generation_id}/transcript';
10604
+ url: '/v1/projects/{project_id}/knowledge/search';
8823
10605
  };
8824
- type GetGenerationTranscriptErrors = {
10606
+ type SearchKnowledgeErrors = {
10607
+ /**
10608
+ * Bad request — at least one search parameter is required
10609
+ */
10610
+ 400: ErrorResponse;
8825
10611
  /**
8826
10612
  * Unauthorized
8827
10613
  */
@@ -8830,19 +10616,17 @@ type GetGenerationTranscriptErrors = {
8830
10616
  * Forbidden
8831
10617
  */
8832
10618
  403: ErrorResponse;
8833
- /**
8834
- * Generation not found
8835
- */
8836
- 404: ErrorResponse;
8837
10619
  };
8838
- type GetGenerationTranscriptError = GetGenerationTranscriptErrors[keyof GetGenerationTranscriptErrors];
8839
- type GetGenerationTranscriptResponses = {
10620
+ type SearchKnowledgeError = SearchKnowledgeErrors[keyof SearchKnowledgeErrors];
10621
+ type SearchKnowledgeResponses = {
8840
10622
  /**
8841
- * The generation's transcript
10623
+ * Search results
8842
10624
  */
8843
- 200: GenerationTranscript;
10625
+ 200: {
10626
+ results: Array<KnowledgeResult>;
10627
+ };
8844
10628
  };
8845
- type GetGenerationTranscriptResponse = GetGenerationTranscriptResponses[keyof GetGenerationTranscriptResponses];
10629
+ type SearchKnowledgeResponse = SearchKnowledgeResponses[keyof SearchKnowledgeResponses];
8846
10630
  type ListModelRoutesData = {
8847
10631
  body?: never;
8848
10632
  path: {
@@ -13173,6 +14957,108 @@ declare class Conversations {
13173
14957
  */
13174
14958
  static replaceConversationTags<ThrowOnError extends boolean = false>(options: Options<ReplaceConversationTagsData, ThrowOnError>): RequestResult<ReplaceConversationTagsResponses, ReplaceConversationTagsErrors, ThrowOnError>;
13175
14959
  }
14960
+ declare class Documents {
14961
+ /**
14962
+ * List documents
14963
+ *
14964
+ * Returns all documents the caller has access to. If projectId is provided, returns only documents in that project. project keys are scoped to a single project automatically. JWT users without projectId receive documents across all their accessible projects.
14965
+ */
14966
+ static listDocuments<ThrowOnError extends boolean = false>(options: Options<ListDocumentsData, ThrowOnError>): RequestResult<ListDocumentsResponses, ListDocumentsErrors, ThrowOnError>;
14967
+ /**
14968
+ * Create a document
14969
+ *
14970
+ * Creates a new text document and generates an embedding vector for semantic search. project keys automatically infer the project from the key's scope; JWT callers must supply projectId.
14971
+ */
14972
+ static createDocument<ThrowOnError extends boolean = false>(options: Options<CreateDocumentData, ThrowOnError>): RequestResult<CreateDocumentResponses, CreateDocumentErrors, ThrowOnError>;
14973
+ /**
14974
+ * Ingest a file into a chunked document
14975
+ *
14976
+ * Parses an already-uploaded file and creates one Document split into one or
14977
+ * more embedded chunks. The source format is detected from the file's content
14978
+ * type: PDFs are parsed page-by-page; `text/plain` and `text/markdown` files
14979
+ * are read as a single source. How the source is chunked is controlled by
14980
+ * `chunk_strategy`.
14981
+ *
14982
+ * A file can only back one Document — a second call with the same `file_id`
14983
+ * returns `409 FILE_ALREADY_INGESTED`. To re-process an already-ingested file
14984
+ * (e.g. with a different `chunk_strategy`), use
14985
+ * `POST /documents/{document_id}/ingest`; to ingest the same source under a
14986
+ * different path, upload a new copy of the file first.
14987
+ *
14988
+ */
14989
+ static ingestDocument<ThrowOnError extends boolean = false>(options: Options<IngestDocumentData, ThrowOnError>): RequestResult<IngestDocumentResponses, IngestDocumentErrors, ThrowOnError>;
14990
+ /**
14991
+ * Delete a document
14992
+ *
14993
+ * Deletes a document and its underlying file
14994
+ */
14995
+ static deleteDocument<ThrowOnError extends boolean = false>(options: Options<DeleteDocumentData, ThrowOnError>): RequestResult<DeleteDocumentResponses, DeleteDocumentErrors, ThrowOnError>;
14996
+ /**
14997
+ * Get a document by ID
14998
+ *
14999
+ * Returns a document with its text content
15000
+ */
15001
+ static getDocument<ThrowOnError extends boolean = false>(options: Options<GetDocumentData, ThrowOnError>): RequestResult<GetDocumentResponses, GetDocumentErrors, ThrowOnError>;
15002
+ /**
15003
+ * Update a document
15004
+ *
15005
+ * Updates document content, title, path, metadata, or tags. Supplying `path` moves the document to a new logical path within the project.
15006
+ */
15007
+ static updateDocument<ThrowOnError extends boolean = false>(options: Options<UpdateDocumentData, ThrowOnError>): RequestResult<UpdateDocumentResponses, UpdateDocumentErrors, ThrowOnError>;
15008
+ /**
15009
+ * Get document ingestion status
15010
+ *
15011
+ * Returns a lightweight ingestion status payload for polling — `status`,
15012
+ * `chunk_count`, `total_pages`, and (when failed) `error`. Unlike
15013
+ * `GET /documents/{document_id}`, it never returns the assembled chunk
15014
+ * content, so it is cheap to poll on large documents. A document whose
15015
+ * ingestion has stalled (no progress past the configured timeout) is
15016
+ * transitioned to `failed` with `error=INGESTION_TIMEOUT` on read.
15017
+ *
15018
+ */
15019
+ static getDocumentStatus<ThrowOnError extends boolean = false>(options: Options<GetDocumentStatusData, ThrowOnError>): RequestResult<GetDocumentStatusResponses, GetDocumentStatusErrors, ThrowOnError>;
15020
+ /**
15021
+ * Re-ingest an existing document
15022
+ *
15023
+ * Re-runs ingestion for an existing document against its already-stored
15024
+ * source file. Existing chunks are discarded and the document is reset to
15025
+ * `status=pending` before re-processing. Use this to recover a document
15026
+ * stuck in `processing`/`failed` or to re-chunk with a different strategy
15027
+ * without re-uploading the file. Background by default (`202`); pass
15028
+ * `?wait=true` to run synchronously (`201`).
15029
+ *
15030
+ */
15031
+ static reingestDocument<ThrowOnError extends boolean = false>(options: Options<ReingestDocumentData, ThrowOnError>): RequestResult<ReingestDocumentResponses, ReingestDocumentErrors, ThrowOnError>;
15032
+ /**
15033
+ * Get document tags
15034
+ *
15035
+ * Returns all tags attached to the document
15036
+ */
15037
+ static getDocumentTags<ThrowOnError extends boolean = false>(options: Options<GetDocumentTagsData, ThrowOnError>): RequestResult<GetDocumentTagsResponses, GetDocumentTagsErrors, ThrowOnError>;
15038
+ /**
15039
+ * Merge document tags
15040
+ *
15041
+ * Merges provided tags with existing tags (existing tags are preserved unless overridden)
15042
+ */
15043
+ static mergeDocumentTags<ThrowOnError extends boolean = false>(options: Options<MergeDocumentTagsData, ThrowOnError>): RequestResult<MergeDocumentTagsResponses, MergeDocumentTagsErrors, ThrowOnError>;
15044
+ /**
15045
+ * Replace document tags
15046
+ *
15047
+ * Replaces all tags on the document with the provided tags (not merged)
15048
+ */
15049
+ static replaceDocumentTags<ThrowOnError extends boolean = false>(options: Options<ReplaceDocumentTagsData, ThrowOnError>): RequestResult<ReplaceDocumentTagsResponses, ReplaceDocumentTagsErrors, ThrowOnError>;
15050
+ }
15051
+ declare class Embeddings {
15052
+ /**
15053
+ * Create embeddings
15054
+ *
15055
+ * Generates embedding vectors for one or more text inputs using the server's configured embedding model.
15056
+ * Provide `input` for a single text or `inputs` for a batch. At least one is required.
15057
+ * Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.
15058
+ *
15059
+ */
15060
+ static createEmbeddings<ThrowOnError extends boolean = false>(options: Options<CreateEmbeddingsData, ThrowOnError>): RequestResult<CreateEmbeddingsResponses, CreateEmbeddingsErrors, ThrowOnError>;
15061
+ }
13176
15062
  declare class Evaluations {
13177
15063
  /**
13178
15064
  * List datasets
@@ -13317,6 +15203,80 @@ declare class Evaluations {
13317
15203
  */
13318
15204
  static cancelEvalRun<ThrowOnError extends boolean = false>(options: Options<CancelEvalRunData, ThrowOnError>): RequestResult<CancelEvalRunResponses, CancelEvalRunErrors, ThrowOnError>;
13319
15205
  }
15206
+ declare class Files {
15207
+ /**
15208
+ * List all files
15209
+ *
15210
+ * Returns a list of all stored files
15211
+ */
15212
+ static listFiles<ThrowOnError extends boolean = false>(options: Options<ListFilesData, ThrowOnError>): RequestResult<ListFilesResponses, ListFilesErrors, ThrowOnError>;
15213
+ /**
15214
+ * Create a file
15215
+ *
15216
+ * Creates a new file record in the system
15217
+ */
15218
+ static createFile<ThrowOnError extends boolean = false>(options: Options<CreateFileData, ThrowOnError>): RequestResult<CreateFileResponses, CreateFileErrors, ThrowOnError>;
15219
+ /**
15220
+ * Upload a file
15221
+ *
15222
+ * Uploads a file to the server and stores it in the configured storage directory
15223
+ */
15224
+ static uploadFile<ThrowOnError extends boolean = false>(options: Options<UploadFileData, ThrowOnError>): RequestResult<UploadFileResponses, UploadFileErrors, ThrowOnError>;
15225
+ /**
15226
+ * Upload a file using base64 encoding
15227
+ *
15228
+ * Uploads a file to the server using base64-encoded content
15229
+ */
15230
+ static uploadFileBase64<ThrowOnError extends boolean = false>(options: Options<UploadFileBase64Data, ThrowOnError>): RequestResult<UploadFileBase64Responses, UploadFileBase64Errors, ThrowOnError>;
15231
+ /**
15232
+ * Delete a file
15233
+ *
15234
+ * Removes a file from the system by ID
15235
+ */
15236
+ static deleteFile<ThrowOnError extends boolean = false>(options: Options<DeleteFileData, ThrowOnError>): RequestResult<DeleteFileResponses, DeleteFileErrors, ThrowOnError>;
15237
+ /**
15238
+ * Get a file by ID
15239
+ *
15240
+ * Returns the data and metadata of a specific file
15241
+ */
15242
+ static getFile<ThrowOnError extends boolean = false>(options: Options<GetFileData, ThrowOnError>): RequestResult<GetFileResponses, GetFileErrors, ThrowOnError>;
15243
+ /**
15244
+ * Download a file
15245
+ *
15246
+ * Streams the file content to the client
15247
+ */
15248
+ static downloadFile<ThrowOnError extends boolean = false>(options: Options<DownloadFileData, ThrowOnError>): RequestResult<DownloadFileResponses, DownloadFileErrors, ThrowOnError>;
15249
+ /**
15250
+ * Update file metadata
15251
+ *
15252
+ * Updates the metadata field of a file
15253
+ */
15254
+ static updateFileMetadata<ThrowOnError extends boolean = false>(options: Options<UpdateFileMetadataData, ThrowOnError>): RequestResult<UpdateFileMetadataResponses, UpdateFileMetadataErrors, ThrowOnError>;
15255
+ /**
15256
+ * Download file as base64
15257
+ *
15258
+ * Returns the file content encoded as base64
15259
+ */
15260
+ static downloadFileBase64<ThrowOnError extends boolean = false>(options: Options<DownloadFileBase64Data, ThrowOnError>): RequestResult<DownloadFileBase64Responses, DownloadFileBase64Errors, ThrowOnError>;
15261
+ /**
15262
+ * Get file tags
15263
+ *
15264
+ * Returns all tags attached to the file
15265
+ */
15266
+ static getFileTags<ThrowOnError extends boolean = false>(options: Options<GetFileTagsData, ThrowOnError>): RequestResult<GetFileTagsResponses, GetFileTagsErrors, ThrowOnError>;
15267
+ /**
15268
+ * Merge file tags
15269
+ *
15270
+ * Merges provided tags with existing tags
15271
+ */
15272
+ static mergeFileTags<ThrowOnError extends boolean = false>(options: Options<MergeFileTagsData, ThrowOnError>): RequestResult<MergeFileTagsResponses, MergeFileTagsErrors, ThrowOnError>;
15273
+ /**
15274
+ * Replace file tags
15275
+ *
15276
+ * Replaces all tags on the file with the provided tags
15277
+ */
15278
+ static replaceFileTags<ThrowOnError extends boolean = false>(options: Options<ReplaceFileTagsData, ThrowOnError>): RequestResult<ReplaceFileTagsResponses, ReplaceFileTagsErrors, ThrowOnError>;
15279
+ }
13320
15280
  declare class Generations {
13321
15281
  /**
13322
15282
  * List generations
@@ -13364,6 +15324,46 @@ declare class Generations {
13364
15324
  */
13365
15325
  static getGenerationTranscript<ThrowOnError extends boolean = false>(options: Options<GetGenerationTranscriptData, ThrowOnError>): RequestResult<GetGenerationTranscriptResponses, GetGenerationTranscriptErrors, ThrowOnError>;
13366
15326
  }
15327
+ declare class IngestionRules {
15328
+ /**
15329
+ * List ingestion rules
15330
+ *
15331
+ * Returns the ingestion rules for a project
15332
+ */
15333
+ static listIngestionRules<ThrowOnError extends boolean = false>(options: Options<ListIngestionRulesData, ThrowOnError>): RequestResult<ListIngestionRulesResponses, ListIngestionRulesErrors, ThrowOnError>;
15334
+ /**
15335
+ * Create an ingestion rule
15336
+ *
15337
+ * Creates a rule mapping a content_type glob to a converter. Exactly one of tool_id or agent_id must be set.
15338
+ */
15339
+ static createIngestionRule<ThrowOnError extends boolean = false>(options: Options<CreateIngestionRuleData, ThrowOnError>): RequestResult<CreateIngestionRuleResponses, CreateIngestionRuleErrors, ThrowOnError>;
15340
+ /**
15341
+ * Delete an ingestion rule
15342
+ *
15343
+ * Deletes an ingestion rule
15344
+ */
15345
+ static deleteIngestionRule<ThrowOnError extends boolean = false>(options: Options<DeleteIngestionRuleData, ThrowOnError>): RequestResult<DeleteIngestionRuleResponses, DeleteIngestionRuleErrors, ThrowOnError>;
15346
+ /**
15347
+ * Get an ingestion rule
15348
+ *
15349
+ * Returns a specific ingestion rule
15350
+ */
15351
+ static getIngestionRule<ThrowOnError extends boolean = false>(options: Options<GetIngestionRuleData, ThrowOnError>): RequestResult<GetIngestionRuleResponses, GetIngestionRuleErrors, ThrowOnError>;
15352
+ /**
15353
+ * Update an ingestion rule
15354
+ *
15355
+ * Updates fields of an ingestion rule
15356
+ */
15357
+ static updateIngestionRule<ThrowOnError extends boolean = false>(options: Options<UpdateIngestionRuleData, ThrowOnError>): RequestResult<UpdateIngestionRuleResponses, UpdateIngestionRuleErrors, ThrowOnError>;
15358
+ }
15359
+ declare class Knowledge {
15360
+ /**
15361
+ * Search knowledge
15362
+ *
15363
+ * Searches across documents and memory entries using semantic search, file paths, document IDs, or memory IDs/tags. At least one of `query`, `document_paths`, `document_ids`, `memory_ids`, or `memory_tags` must be provided.
15364
+ */
15365
+ static searchKnowledge<ThrowOnError extends boolean = false>(options: Options<SearchKnowledgeData, ThrowOnError>): RequestResult<SearchKnowledgeResponses, SearchKnowledgeErrors, ThrowOnError>;
15366
+ }
13367
15367
  declare class ModelRoutes {
13368
15368
  /**
13369
15369
  * List model routes
@@ -14068,8 +16068,13 @@ declare class NaturaliClient {
14068
16068
  readonly channels: typeof Channels;
14069
16069
  readonly auth: typeof Auth;
14070
16070
  readonly conversations: typeof Conversations;
16071
+ readonly documents: typeof Documents;
16072
+ readonly embeddings: typeof Embeddings;
14071
16073
  readonly evaluations: typeof Evaluations;
16074
+ readonly files: typeof Files;
14072
16075
  readonly generations: typeof Generations;
16076
+ readonly ingestionRules: typeof IngestionRules;
16077
+ readonly knowledge: typeof Knowledge;
14073
16078
  readonly modelRoutes: typeof ModelRoutes;
14074
16079
  readonly models: typeof Models;
14075
16080
  readonly orchestrations: typeof Orchestrations;
@@ -14088,4 +16093,4 @@ declare class NaturaliClient {
14088
16093
  constructor({ token, headers }?: NaturaliClientOptions);
14089
16094
  }
14090
16095
  //#endregion
14091
- export { type AbortAgentReleaseData, type AbortAgentReleaseError, type AbortAgentReleaseErrors, type AbortAgentReleaseResponse, type AbortAgentReleaseResponses, type AcceptedGenerationResponse, type Acknowledgement, type ActorRecord, Actors, type AddConversationMessageData, type AddConversationMessageError, type AddConversationMessageErrors, type AddConversationMessageResponse, type AddConversationMessageResponses, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageRequest, type AddSessionMessageResponse, type AddSessionMessageResponse2, type AddSessionMessageResponses, type AddSessionMessageSaved, type Address, type AddressActionSet, type AddressList, type Agent, type AgentGenerationResponse, type AgentRelease, type AgentVersion, AgentVersions, Agents, type AggregateScores, AiProviders, type ApiKeyCreate, type ApiKeyCreated, type ApiKeyId, type ApiKeyList, type ApiKeyRecord, type ApiKeyUpdate, ApiKeys, Assistant, type AssistantChannel, type AssistantGrant, type AssistantGrantList, type AssistantLinkPreview, type AssistantLinkRedeem, type AssistantScope, Auth, type AuthSession, type BaselineComparison, type CallToolData, type CallToolError, type CallToolErrors, type CallToolRequest, type CallToolResponses, type CancelEvalRunData, type CancelEvalRunErrors, type CancelEvalRunResponse, type CancelEvalRunResponses, type CancelOrchestrationRunData, type CancelOrchestrationRunErrors, type CancelOrchestrationRunResponse, type CancelOrchestrationRunResponses, type Channel, type ChannelCreate, type ChannelDefaultAction, type ChannelDefaultActionInput, type ChannelId, type ChannelKind, type ChannelKindList, type ChannelList, type ChannelPredicate, type ChannelRoute, type ChannelRouteList, type ChannelRouteWrite, type ChannelSurface, type ChannelUpdate, Channels, type ClientOptions, type ContainsScorer, type Conversation, type ConversationId, type ConversationList, type ConversationMessage, type ConversationMessageList, type ConversationMessageRecord, type ConversationRecord, Conversations, type CreateActorData, type CreateActorError, type CreateActorErrors, type CreateActorResponse, type CreateActorResponses, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentGenerationData, type CreateAgentGenerationError, type CreateAgentGenerationErrors, type CreateAgentGenerationRequest, type CreateAgentGenerationResponse, type CreateAgentGenerationResponses, type CreateAgentRequest, type CreateAgentResponse, type CreateAgentResponses, type CreateAiProviderData, type CreateAiProviderErrors, type CreateAiProviderResponse, type CreateAiProviderResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateChannelRouteData, type CreateChannelRouteError, type CreateChannelRouteErrors, type CreateChannelRouteResponse, type CreateChannelRouteResponses, type CreateConversationData, type CreateConversationError, type CreateConversationErrors, type CreateConversationResponse, type CreateConversationResponses, type CreateDatasetData, type CreateDatasetErrors, type CreateDatasetItemData, type CreateDatasetItemErrors, type CreateDatasetItemFromGenerationData, type CreateDatasetItemFromGenerationErrors, type CreateDatasetItemFromGenerationResponse, type CreateDatasetItemFromGenerationResponses, type CreateDatasetItemResponse, type CreateDatasetItemResponses, type CreateDatasetResponse, type CreateDatasetResponses, type CreateEvalData, type CreateEvalErrors, type CreateEvalResponse, type CreateEvalResponses, type CreateModelRouteData, type CreateModelRouteErrors, type CreateModelRouteResponse, type CreateModelRouteResponses, type CreateOrchestrationData, type CreateOrchestrationErrors, type CreateOrchestrationRequest, type CreateOrchestrationResponse, type CreateOrchestrationResponses, type CreateProjectData, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateSecretData, type CreateSecretErrors, type CreateSecretResponse, type CreateSecretResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionRequest, type CreateSessionResponse, type CreateSessionResponses, type CreateTaskData, type CreateTaskErrors, type CreateTaskRequest, type CreateTaskResponse, type CreateTaskResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolRequest, type CreateToolResponse, type CreateToolResponses, type CreateTriggerData, type CreateTriggerErrors, type CreateTriggerRequest, type CreateTriggerResponse, type CreateTriggerResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type CreateWorkflowData, type CreateWorkflowErrors, type CreateWorkflowRequest, type CreateWorkflowResponse, type CreateWorkflowResponses, type Cursor, type Dataset, type DatasetItem, type DatasetItemInput, type DeleteActorData, type DeleteActorError, type DeleteActorErrors, type DeleteActorResponse, type DeleteActorResponses, type DeleteAddressData, type DeleteAddressError, type DeleteAddressErrors, type DeleteAddressResponse, type DeleteAddressResponses, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteAiProviderData, type DeleteAiProviderErrors, type DeleteAiProviderResponse, type DeleteAiProviderResponses, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteChannelRouteData, type DeleteChannelRouteError, type DeleteChannelRouteErrors, type DeleteChannelRouteResponse, type DeleteChannelRouteResponses, type DeleteConversationData, type DeleteConversationError, type DeleteConversationErrors, type DeleteConversationResponse, type DeleteConversationResponses, type DeleteDatasetData, type DeleteDatasetErrors, type DeleteDatasetItemData, type DeleteDatasetItemErrors, type DeleteDatasetItemResponse, type DeleteDatasetItemResponses, type DeleteDatasetResponse, type DeleteDatasetResponses, type DeleteEvalData, type DeleteEvalErrors, type DeleteEvalResponse, type DeleteEvalResponses, type DeleteModelRouteData, type DeleteModelRouteErrors, type DeleteModelRouteResponse, type DeleteModelRouteResponses, type DeleteOrchestrationData, type DeleteOrchestrationErrors, type DeleteOrchestrationResponse, type DeleteOrchestrationResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteSecretData, type DeleteSecretErrors, type DeleteSecretResponses, type DeleteSessionData, type DeleteSessionError, type DeleteSessionErrors, type DeleteSessionResponse, type DeleteSessionResponses, type DeleteTaskData, type DeleteTaskErrors, type DeleteTaskResponse, type DeleteTaskResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteTriggerData, type DeleteTriggerErrors, type DeleteTriggerResponse, type DeleteTriggerResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeleteWorkflowData, type DeleteWorkflowErrors, type DeleteWorkflowResponse, type DeleteWorkflowResponses, type DeliveryId, type DiscordModes, type DocumentMessageContent, type EmbeddingSimilarityScorer, type EnableManagedModelsData, type EnableManagedModelsError, type EnableManagedModelsErrors, type EnableManagedModelsResponse, type EnableManagedModelsResponses, type ErrorResponse, type Eval, type EvalResult, type EvalRun, Evaluations, type Event, type EventSubscription, type EventType, type ExactMatchScorer, type FireTriggerData, type FireTriggerErrors, type FireTriggerRequest, type FireTriggerResponse, type FireTriggerResponses, type Force, type ForkSessionData, type ForkSessionError, type ForkSessionErrors, type ForkSessionRequest, type ForkSessionResponse, type ForkSessionResponses, type GenerateConversationMessageCompleted, type GenerateConversationMessageData, type GenerateConversationMessageError, type GenerateConversationMessageErrors, type GenerateConversationMessageRequiresAction, type GenerateConversationMessageResponse, type GenerateConversationMessageResponse2, type GenerateConversationMessageResponses, type GenerateSessionRequest, type GenerateSessionResponse, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, type GenerationTranscript, Generations, type GetActorData, type GetActorError, type GetActorErrors, type GetActorResponse, type GetActorResponses, type GetActorTagsData, type GetActorTagsError, type GetActorTagsErrors, type GetActorTagsResponse, type GetActorTagsResponses, type GetAddressData, type GetAddressError, type GetAddressErrors, type GetAddressResponse, type GetAddressResponses, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetAgentVersionData, type GetAgentVersionError, type GetAgentVersionErrors, type GetAgentVersionResponse, type GetAgentVersionResponses, type GetAiProviderData, type GetAiProviderErrors, type GetAiProviderPricesData, type GetAiProviderPricesErrors, type GetAiProviderPricesResponse, type GetAiProviderPricesResponses, type GetAiProviderResponse, type GetAiProviderResponses, type GetApiKeyData, type GetApiKeyError, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetChannelConversationData, type GetChannelConversationError, type GetChannelConversationErrors, type GetChannelConversationResponse, type GetChannelConversationResponses, type GetChannelData, type GetChannelError, type GetChannelErrors, type GetChannelResponse, type GetChannelResponses, type GetChannelRouteData, type GetChannelRouteError, type GetChannelRouteErrors, type GetChannelRouteResponse, type GetChannelRouteResponses, type GetConversationData, type GetConversationError, type GetConversationErrors, type GetConversationResponse, type GetConversationResponses, type GetConversationTagsData, type GetConversationTagsError, type GetConversationTagsErrors, type GetConversationTagsResponse, type GetConversationTagsResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetDatasetData, type GetDatasetErrors, type GetDatasetResponse, type GetDatasetResponses, type GetEvalData, type GetEvalErrors, type GetEvalResponse, type GetEvalResponses, type GetEvalRunData, type GetEvalRunErrors, type GetEvalRunResponse, type GetEvalRunResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetGenerationTranscriptData, type GetGenerationTranscriptError, type GetGenerationTranscriptErrors, type GetGenerationTranscriptResponse, type GetGenerationTranscriptResponses, type GetModelData, type GetModelError, type GetModelErrors, type GetModelResponse, type GetModelResponses, type GetModelRouteData, type GetModelRouteErrors, type GetModelRouteResponse, type GetModelRouteResponses, type GetOrchestrationData, type GetOrchestrationErrors, type GetOrchestrationResponse, type GetOrchestrationResponses, type GetOrchestrationRunData, type GetOrchestrationRunErrors, type GetOrchestrationRunResponse, type GetOrchestrationRunResponses, type GetOrchestrationVersionData, type GetOrchestrationVersionErrors, type GetOrchestrationVersionResponse, type GetOrchestrationVersionResponses, type GetProjectData, type GetProjectError, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetProjectUsageData, type GetProjectUsageError, type GetProjectUsageErrors, type GetProjectUsageResponse, type GetProjectUsageResponses, type GetQueueStatsData, type GetQueueStatsErrors, type GetQueueStatsResponse, type GetQueueStatsResponses, type GetSecretData, type GetSecretErrors, type GetSecretResponse, type GetSecretResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetSessionTagsData, type GetSessionTagsError, type GetSessionTagsErrors, type GetSessionTagsResponse, type GetSessionTagsResponses, type GetTaskData, type GetTaskErrors, type GetTaskHistoryData, type GetTaskHistoryErrors, type GetTaskHistoryResponse, type GetTaskHistoryResponses, 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 GetTriggerData, type GetTriggerErrors, type GetTriggerFiringData, type GetTriggerFiringErrors, type GetTriggerFiringResponse, type GetTriggerFiringResponses, type GetTriggerResponse, type GetTriggerResponses, type GetTriggerSecretData, type GetTriggerSecretErrors, type GetTriggerSecretResponse, type GetTriggerSecretResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryError, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GetWorkflowData, type GetWorkflowErrors, type GetWorkflowResponse, type GetWorkflowResponses, type GetWorkflowVersionData, type GetWorkflowVersionErrors, type GetWorkflowVersionResponse, type GetWorkflowVersionResponses, type GrantId, type HumanInputRequest, type IdempotencyKey, type Identifier, type JsonLogicScorer, type Limit, type LinkToken, type ListActorsData, type ListActorsError, type ListActorsErrors, type ListActorsResponse, type ListActorsResponses, type ListAddressConversationsData, type ListAddressConversationsError, type ListAddressConversationsErrors, type ListAddressConversationsResponse, type ListAddressConversationsResponses, type ListAddressesData, type ListAddressesError, type ListAddressesErrors, type ListAddressesResponse, type ListAddressesResponses, type ListAgentVersionsData, type ListAgentVersionsError, type ListAgentVersionsErrors, type ListAgentVersionsResponse, type ListAgentVersionsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListAiProviderModelsData, type ListAiProviderModelsErrors, type ListAiProviderModelsResponse, type ListAiProviderModelsResponses, type ListAiProvidersData, type ListAiProvidersErrors, type ListAiProvidersResponse, type ListAiProvidersResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListAssistantGrantsData, type ListAssistantGrantsError, type ListAssistantGrantsErrors, type ListAssistantGrantsResponse, type ListAssistantGrantsResponses, type ListChannelConversationMessagesData, type ListChannelConversationMessagesError, type ListChannelConversationMessagesErrors, type ListChannelConversationMessagesResponse, type ListChannelConversationMessagesResponses, type ListChannelConversationsData, type ListChannelConversationsError, type ListChannelConversationsErrors, type ListChannelConversationsResponse, type ListChannelConversationsResponses, type ListChannelKindsData, type ListChannelKindsError, type ListChannelKindsErrors, type ListChannelKindsResponse, type ListChannelKindsResponses, type ListChannelRoutesData, type ListChannelRoutesError, type ListChannelRoutesErrors, type ListChannelRoutesResponse, type ListChannelRoutesResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListConversationMessagesData, type ListConversationMessagesError, type ListConversationMessagesErrors, type ListConversationMessagesResponse, type ListConversationMessagesResponses, type ListConversationsData, type ListConversationsError, type ListConversationsErrors, type ListConversationsResponse, type ListConversationsResponses, type ListDatasetItemsData, type ListDatasetItemsErrors, type ListDatasetItemsResponse, type ListDatasetItemsResponses, type ListDatasetsData, type ListDatasetsErrors, type ListDatasetsResponse, type ListDatasetsResponses, type ListEvalResultsData, type ListEvalResultsErrors, type ListEvalResultsResponse, type ListEvalResultsResponses, type ListEvalRunsData, type ListEvalRunsErrors, type ListEvalRunsResponse, type ListEvalRunsResponses, type ListEvalsData, type ListEvalsErrors, type ListEvalsResponse, type ListEvalsResponses, type ListGenerationsData, type ListGenerationsError, type ListGenerationsErrors, type ListGenerationsResponse, type ListGenerationsResponses, type ListModelRoutesData, type ListModelRoutesErrors, type ListModelRoutesResponse, type ListModelRoutesResponses, type ListModelsData, type ListModelsError, type ListModelsErrors, type ListModelsResponse, type ListModelsResponses, type ListOrchestrationRunsData, type ListOrchestrationRunsErrors, type ListOrchestrationRunsResponse, type ListOrchestrationRunsResponses, type ListOrchestrationVersionsData, type ListOrchestrationVersionsErrors, type ListOrchestrationVersionsResponse, type ListOrchestrationVersionsResponses, type ListOrchestrationsData, type ListOrchestrationsErrors, type ListOrchestrationsResponse, type ListOrchestrationsResponses, type ListProjectChannelRoutesData, type ListProjectChannelRoutesError, type ListProjectChannelRoutesErrors, type ListProjectChannelRoutesResponse, type ListProjectChannelRoutesResponses, type ListProjectMembersData, type ListProjectMembersError, type ListProjectMembersErrors, type ListProjectMembersResponse, type ListProjectMembersResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListSecretsData, type ListSecretsErrors, type ListSecretsResponse, type ListSecretsResponses, type ListSessionForksData, type ListSessionForksError, type ListSessionForksErrors, type ListSessionForksResponse, type ListSessionForksResponses, type ListSessionsData, type ListSessionsError, type ListSessionsErrors, type ListSessionsResponse, type ListSessionsResponses, type ListTasksData, type ListTasksErrors, type ListTasksResponse, type ListTasksResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListTriggerFiringsData, type ListTriggerFiringsErrors, type ListTriggerFiringsResponse, type ListTriggerFiringsResponses, type ListTriggersData, type ListTriggersErrors, type ListTriggersResponse, type ListTriggersResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesError, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type ListWorkflowVersionsData, type ListWorkflowVersionsErrors, type ListWorkflowVersionsResponse, type ListWorkflowVersionsResponses, type ListWorkflowsData, type ListWorkflowsErrors, type ListWorkflowsResponse, type ListWorkflowsResponses, type LlmJudgeScorer, type LogoutData, type LogoutError, type LogoutErrors, type LogoutRequest, type LogoutResponse, type LogoutResponses, type ManagedProvider, type MergeActorTagsData, type MergeActorTagsError, type MergeActorTagsErrors, type MergeActorTagsResponse, type MergeActorTagsResponses, type MergeConversationTagsData, type MergeConversationTagsError, type MergeConversationTagsErrors, type MergeConversationTagsResponse, type MergeConversationTagsResponses, type MergeSessionTagsData, type MergeSessionTagsError, type MergeSessionTagsErrors, type MergeSessionTagsResponse, type MergeSessionTagsResponses, type MessagesLimit, type Model, type ModelId, type ModelList, type ModelRoute, type ModelRouteTarget, ModelRoutes, Models, NaturaliClient, type NaturaliClientOptions, type NodeExecution, type Offset, type OpenChannelConversationData, type OpenChannelConversationError, type OpenChannelConversationErrors, type OpenChannelConversationResponse, type OpenChannelConversationResponses, type Options, type Orchestration, type OrchestrationEdge, type OrchestrationId, type OrchestrationNode, type OrchestrationRun, type OrchestrationRunId, type OrchestrationVersion, Orchestrations, type OutputSchemaScorer, type PatchAgentData, type PatchAgentError, type PatchAgentErrors, type PatchAgentResponse, type PatchAgentResponses, type PreviewAssistantLinkData, type PreviewAssistantLinkError, type PreviewAssistantLinkErrors, type PreviewAssistantLinkResponse, type PreviewAssistantLinkResponses, type Project, type ProjectCreate, type ProjectId, type ProjectList, type ProjectMember, type ProjectMemberList, type ProjectRole, type ProjectUpdate, type ProjectUsage, Projects, type PromoteAgentReleaseData, type PromoteAgentReleaseError, type PromoteAgentReleaseErrors, type PromoteAgentReleaseResponse, type PromoteAgentReleaseResponses, type ProviderModelsResponse, type ProviderPrice, type ProviderPricesResponse, type PurgeGenerationContentData, type PurgeGenerationContentError, type PurgeGenerationContentErrors, type PurgeGenerationContentResponse, type PurgeGenerationContentResponses, type PurgeTraceContentData, type PurgeTraceContentError, type PurgeTraceContentErrors, type PurgeTraceContentResponse, type PurgeTraceContentResponses, type QueueStats, type RedeemAssistantLinkData, type RedeemAssistantLinkError, type RedeemAssistantLinkErrors, type RedeemAssistantLinkResponse, type RedeemAssistantLinkResponses, type RedeliverWebhookDeliveryData, type RedeliverWebhookDeliveryError, type RedeliverWebhookDeliveryErrors, type RedeliverWebhookDeliveryResponse, type RedeliverWebhookDeliveryResponses, type RefreshRequest, type RefreshSessionData, type RefreshSessionError, type RefreshSessionErrors, type RefreshSessionResponse, type RefreshSessionResponses, type RemoveConversationMessageData, type RemoveConversationMessageError, type RemoveConversationMessageErrors, type RemoveConversationMessageResponse, type RemoveConversationMessageResponses, type ReplaceActorTagsData, type ReplaceActorTagsError, type ReplaceActorTagsErrors, type ReplaceActorTagsResponse, type ReplaceActorTagsResponses, type ReplaceConversationTagsData, type ReplaceConversationTagsError, type ReplaceConversationTagsErrors, type ReplaceConversationTagsResponse, type ReplaceConversationTagsResponses, type ReplaceSessionTagsData, type ReplaceSessionTagsError, type ReplaceSessionTagsErrors, type ReplaceSessionTagsResponse, type ReplaceSessionTagsResponses, type RequestSignInCodeData, type RequestSignInCodeError, type RequestSignInCodeErrors, type RequestSignInCodeResponse, type RequestSignInCodeResponses, type RequiredAction, type RestoreAgentVersionData, type RestoreAgentVersionError, type RestoreAgentVersionErrors, type RestoreAgentVersionRequest, type RestoreAgentVersionResponse, type RestoreAgentVersionResponses, type RestoreOrchestrationVersionData, type RestoreOrchestrationVersionErrors, type RestoreOrchestrationVersionRequest, type RestoreOrchestrationVersionResponse, type RestoreOrchestrationVersionResponses, type RestoreWorkflowVersionData, type RestoreWorkflowVersionErrors, type RestoreWorkflowVersionRequest, type RestoreWorkflowVersionResponse, type RestoreWorkflowVersionResponses, type ResumeOrchestrationRunData, type ResumeOrchestrationRunErrors, type ResumeOrchestrationRunResponse, type ResumeOrchestrationRunResponses, type RevokeAssistantGrantData, type RevokeAssistantGrantError, type RevokeAssistantGrantErrors, type RevokeAssistantGrantResponse, type RevokeAssistantGrantResponses, type RotateApiKeyData, type RotateApiKeyError, type RotateApiKeyErrors, type RotateApiKeyResponse, type RotateApiKeyResponses, type RotateTriggerSecretData, type RotateTriggerSecretErrors, type RotateTriggerSecretResponse, type RotateTriggerSecretResponses, type RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type RouteId, type RunUsageTotals, type ScorerResult, type Scorers, Secrets, type SendSessionMessageResponse, type SessionId, type SessionRecord, Sessions, type SetAddressActionData, type SetAddressActionError, type SetAddressActionErrors, type SetAddressActionResponse, type SetAddressActionResponses, type SetAgentReleaseData, type SetAgentReleaseError, type SetAgentReleaseErrors, type SetAgentReleaseRequest, type SetAgentReleaseResponse, type SetAgentReleaseResponses, type SignInCodeRequest, type SignInCodeVerify, type StartEvalRunData, type StartEvalRunErrors, type StartEvalRunResponse, type StartEvalRunResponses, type StartOrchestrationRunData, type StartOrchestrationRunErrors, type StartOrchestrationRunResponse, type StartOrchestrationRunResponses, type StartRunRequest, type SubmitAgentToolOutputsData, type SubmitAgentToolOutputsError, type SubmitAgentToolOutputsErrors, type SubmitAgentToolOutputsResponse, type SubmitAgentToolOutputsResponses, type SubmitHumanInputData, type SubmitHumanInputErrors, type SubmitHumanInputResponse, type SubmitHumanInputResponses, type SubmitSessionToolOutputsData, type SubmitSessionToolOutputsError, type SubmitSessionToolOutputsErrors, type SubmitSessionToolOutputsRequest, type SubmitSessionToolOutputsResponse, type SubmitSessionToolOutputsResponses, type SubmitToolOutputsRequest, type Task, type TaskTransition, Tasks, type Tool, type ToolBinding, type ToolOutputMessageContent, type ToolScorer, Tools, type Trace, type TraceTreeNode, Traces, type TranscriptStep, type TranscriptToolCall, type TranscriptToolResult, type TranscriptUsage, type TransitionTaskData, type TransitionTaskErrors, type TransitionTaskRequest, type TransitionTaskResponse, type TransitionTaskResponses, type Trigger, type TriggerFiring, type TriggerFiringListResponse, type TriggerSecretResponse, type TriggerWithSecret, Triggers, type UpdateActorData, type UpdateActorError, type UpdateActorErrors, type UpdateActorResponse, type UpdateActorResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentRequest, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateAiProviderData, type UpdateAiProviderErrors, type UpdateAiProviderPricesData, type UpdateAiProviderPricesErrors, type UpdateAiProviderPricesResponse, type UpdateAiProviderPricesResponses, type UpdateAiProviderResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateChannelRouteData, type UpdateChannelRouteError, type UpdateChannelRouteErrors, type UpdateChannelRouteResponse, type UpdateChannelRouteResponses, type UpdateConversationData, type UpdateConversationError, type UpdateConversationErrors, type UpdateConversationResponse, type UpdateConversationResponses, type UpdateCurrentUserData, type UpdateCurrentUserError, type UpdateCurrentUserErrors, type UpdateCurrentUserResponse, type UpdateCurrentUserResponses, type UpdateDatasetData, type UpdateDatasetErrors, type UpdateDatasetItemData, type UpdateDatasetItemErrors, type UpdateDatasetItemResponse, type UpdateDatasetItemResponses, type UpdateDatasetResponse, type UpdateDatasetResponses, type UpdateEvalData, type UpdateEvalErrors, type UpdateEvalResponse, type UpdateEvalResponses, type UpdateGenerationData, type UpdateGenerationError, type UpdateGenerationErrors, type UpdateGenerationRequest, type UpdateGenerationResponse, type UpdateGenerationResponses, type UpdateModelRouteData, type UpdateModelRouteErrors, type UpdateModelRouteResponse, type UpdateModelRouteResponses, type UpdateOrchestrationData, type UpdateOrchestrationErrors, type UpdateOrchestrationRequest, type UpdateOrchestrationResponse, type UpdateOrchestrationResponses, type UpdateProjectData, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateSecretData, type UpdateSecretErrors, type UpdateSecretResponses, type UpdateSessionData, type UpdateSessionError, type UpdateSessionErrors, type UpdateSessionRequest, type UpdateSessionResponse, type UpdateSessionResponses, type UpdateTaskData, type UpdateTaskErrors, type UpdateTaskRequest, type UpdateTaskResponse, type UpdateTaskResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolRequest, type UpdateToolResponse, type UpdateToolResponses, type UpdateTriggerData, type UpdateTriggerErrors, type UpdateTriggerRequest, type UpdateTriggerResponse, type UpdateTriggerResponses, type UpdateWebhookData, type UpdateWebhookError, type UpdateWebhookErrors, type UpdateWebhookResponse, type UpdateWebhookResponses, type UpdateWorkflowData, type UpdateWorkflowErrors, type UpdateWorkflowRequest, type UpdateWorkflowResponse, type UpdateWorkflowResponses, type UpsertProviderPricesRequest, type UsageComponent, type UsageComponents, type UsageGroup, type UsageTokens, type User, type UserUpdate, Users, type ValidateOrchestrationData, type ValidateOrchestrationErrors, type ValidateOrchestrationRequest, type ValidateOrchestrationResponse, type ValidateOrchestrationResponses, type ValidationError, type ValidationResult, 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, type Workflow, type WorkflowState, type WorkflowTransition, type WorkflowVersion, Workflows, createClient, createConfig };
16096
+ export { type AbortAgentReleaseData, type AbortAgentReleaseError, type AbortAgentReleaseErrors, type AbortAgentReleaseResponse, type AbortAgentReleaseResponses, type AcceptedGenerationResponse, type Acknowledgement, type ActorRecord, Actors, type AddConversationMessageData, type AddConversationMessageError, type AddConversationMessageErrors, type AddConversationMessageResponse, type AddConversationMessageResponses, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageRequest, type AddSessionMessageResponse, type AddSessionMessageResponse2, type AddSessionMessageResponses, type AddSessionMessageSaved, type Address, type AddressActionSet, type AddressList, type Agent, type AgentGenerationResponse, type AgentRelease, type AgentVersion, AgentVersions, Agents, type AggregateScores, AiProviders, type ApiKeyCreate, type ApiKeyCreated, type ApiKeyId, type ApiKeyList, type ApiKeyRecord, type ApiKeyUpdate, ApiKeys, Assistant, type AssistantChannel, type AssistantGrant, type AssistantGrantList, type AssistantLinkPreview, type AssistantLinkRedeem, type AssistantScope, Auth, type AuthSession, type BaselineComparison, type CallToolData, type CallToolError, type CallToolErrors, type CallToolRequest, type CallToolResponses, type CancelEvalRunData, type CancelEvalRunErrors, type CancelEvalRunResponse, type CancelEvalRunResponses, type CancelOrchestrationRunData, type CancelOrchestrationRunErrors, type CancelOrchestrationRunResponse, type CancelOrchestrationRunResponses, type Channel, type ChannelCreate, type ChannelDefaultAction, type ChannelDefaultActionInput, type ChannelId, type ChannelKind, type ChannelKindList, type ChannelList, type ChannelPredicate, type ChannelRoute, type ChannelRouteList, type ChannelRouteWrite, type ChannelSurface, type ChannelUpdate, Channels, type ClientOptions, type ContainsScorer, type Conversation, type ConversationId, type ConversationList, type ConversationMessage, type ConversationMessageList, type ConversationMessageRecord, type ConversationRecord, Conversations, type CreateActorData, type CreateActorError, type CreateActorErrors, type CreateActorResponse, type CreateActorResponses, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentGenerationData, type CreateAgentGenerationError, type CreateAgentGenerationErrors, type CreateAgentGenerationRequest, type CreateAgentGenerationResponse, type CreateAgentGenerationResponses, type CreateAgentRequest, type CreateAgentResponse, type CreateAgentResponses, type CreateAiProviderData, type CreateAiProviderErrors, type CreateAiProviderResponse, type CreateAiProviderResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateChannelRouteData, type CreateChannelRouteError, type CreateChannelRouteErrors, type CreateChannelRouteResponse, type CreateChannelRouteResponses, type CreateConversationData, type CreateConversationError, type CreateConversationErrors, type CreateConversationResponse, type CreateConversationResponses, type CreateDatasetData, type CreateDatasetErrors, type CreateDatasetItemData, type CreateDatasetItemErrors, type CreateDatasetItemFromGenerationData, type CreateDatasetItemFromGenerationErrors, type CreateDatasetItemFromGenerationResponse, type CreateDatasetItemFromGenerationResponses, type CreateDatasetItemResponse, type CreateDatasetItemResponses, type CreateDatasetResponse, type CreateDatasetResponses, type CreateDocumentData, type CreateDocumentError, type CreateDocumentErrors, type CreateDocumentResponse, type CreateDocumentResponses, type CreateEmbeddingsData, type CreateEmbeddingsError, type CreateEmbeddingsErrors, type CreateEmbeddingsResponse, type CreateEmbeddingsResponses, type CreateEvalData, type CreateEvalErrors, type CreateEvalResponse, type CreateEvalResponses, type CreateFileData, type CreateFileError, type CreateFileErrors, type CreateFileResponse, type CreateFileResponses, type CreateIngestionRuleData, type CreateIngestionRuleErrors, type CreateIngestionRuleResponse, type CreateIngestionRuleResponses, type CreateModelRouteData, type CreateModelRouteErrors, type CreateModelRouteResponse, type CreateModelRouteResponses, type CreateOrchestrationData, type CreateOrchestrationErrors, type CreateOrchestrationRequest, type CreateOrchestrationResponse, type CreateOrchestrationResponses, type CreateProjectData, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateSecretData, type CreateSecretErrors, type CreateSecretResponse, type CreateSecretResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionRequest, type CreateSessionResponse, type CreateSessionResponses, type CreateTaskData, type CreateTaskErrors, type CreateTaskRequest, type CreateTaskResponse, type CreateTaskResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolRequest, type CreateToolResponse, type CreateToolResponses, type CreateTriggerData, type CreateTriggerErrors, type CreateTriggerRequest, type CreateTriggerResponse, type CreateTriggerResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type CreateWorkflowData, type CreateWorkflowErrors, type CreateWorkflowRequest, type CreateWorkflowResponse, type CreateWorkflowResponses, type Cursor, type Dataset, type DatasetItem, type DatasetItemInput, type DeleteActorData, type DeleteActorError, type DeleteActorErrors, type DeleteActorResponse, type DeleteActorResponses, type DeleteAddressData, type DeleteAddressError, type DeleteAddressErrors, type DeleteAddressResponse, type DeleteAddressResponses, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteAiProviderData, type DeleteAiProviderErrors, type DeleteAiProviderResponse, type DeleteAiProviderResponses, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteChannelRouteData, type DeleteChannelRouteError, type DeleteChannelRouteErrors, type DeleteChannelRouteResponse, type DeleteChannelRouteResponses, type DeleteConversationData, type DeleteConversationError, type DeleteConversationErrors, type DeleteConversationResponse, type DeleteConversationResponses, type DeleteDatasetData, type DeleteDatasetErrors, type DeleteDatasetItemData, type DeleteDatasetItemErrors, type DeleteDatasetItemResponse, type DeleteDatasetItemResponses, type DeleteDatasetResponse, type DeleteDatasetResponses, type DeleteDocumentData, type DeleteDocumentError, type DeleteDocumentErrors, type DeleteDocumentResponse, type DeleteDocumentResponses, type DeleteEvalData, type DeleteEvalErrors, type DeleteEvalResponse, type DeleteEvalResponses, type DeleteFileData, type DeleteFileError, type DeleteFileErrors, type DeleteFileResponse, type DeleteFileResponses, type DeleteIngestionRuleData, type DeleteIngestionRuleErrors, type DeleteIngestionRuleResponse, type DeleteIngestionRuleResponses, type DeleteModelRouteData, type DeleteModelRouteErrors, type DeleteModelRouteResponse, type DeleteModelRouteResponses, type DeleteOrchestrationData, type DeleteOrchestrationErrors, type DeleteOrchestrationResponse, type DeleteOrchestrationResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteSecretData, type DeleteSecretErrors, type DeleteSecretResponses, type DeleteSessionData, type DeleteSessionError, type DeleteSessionErrors, type DeleteSessionResponse, type DeleteSessionResponses, type DeleteTaskData, type DeleteTaskErrors, type DeleteTaskResponse, type DeleteTaskResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteTriggerData, type DeleteTriggerErrors, type DeleteTriggerResponse, type DeleteTriggerResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeleteWorkflowData, type DeleteWorkflowErrors, type DeleteWorkflowResponse, type DeleteWorkflowResponses, type DeliveryId, type DiscordModes, type DocumentKnowledgeResult, type DocumentMessageContent, type DocumentRecord, type DocumentStatusRecord, Documents, type DownloadFileBase64Data, type DownloadFileBase64Error, type DownloadFileBase64Errors, type DownloadFileBase64Response, type DownloadFileBase64Responses, type DownloadFileData, type DownloadFileError, type DownloadFileErrors, type DownloadFileResponse, type DownloadFileResponses, type EmbeddingSimilarityScorer, Embeddings, type EmbeddingsResponse, type EnableManagedModelsData, type EnableManagedModelsError, type EnableManagedModelsErrors, type EnableManagedModelsResponse, type EnableManagedModelsResponses, type ErrorResponse, type Eval, type EvalResult, type EvalRun, Evaluations, type Event, type EventSubscription, type EventType, type ExactMatchScorer, type FileRecord, type FileRecordWritable, Files, type FireTriggerData, type FireTriggerErrors, type FireTriggerRequest, type FireTriggerResponse, type FireTriggerResponses, type Force, type ForkSessionData, type ForkSessionError, type ForkSessionErrors, type ForkSessionRequest, type ForkSessionResponse, type ForkSessionResponses, type GenerateConversationMessageCompleted, type GenerateConversationMessageData, type GenerateConversationMessageError, type GenerateConversationMessageErrors, type GenerateConversationMessageRequiresAction, type GenerateConversationMessageResponse, type GenerateConversationMessageResponse2, type GenerateConversationMessageResponses, type GenerateSessionRequest, type GenerateSessionResponse, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, type GenerationTranscript, Generations, type GetActorData, type GetActorError, type GetActorErrors, type GetActorResponse, type GetActorResponses, type GetActorTagsData, type GetActorTagsError, type GetActorTagsErrors, type GetActorTagsResponse, type GetActorTagsResponses, type GetAddressData, type GetAddressError, type GetAddressErrors, type GetAddressResponse, type GetAddressResponses, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetAgentVersionData, type GetAgentVersionError, type GetAgentVersionErrors, type GetAgentVersionResponse, type GetAgentVersionResponses, type GetAiProviderData, type GetAiProviderErrors, type GetAiProviderPricesData, type GetAiProviderPricesErrors, type GetAiProviderPricesResponse, type GetAiProviderPricesResponses, type GetAiProviderResponse, type GetAiProviderResponses, type GetApiKeyData, type GetApiKeyError, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetChannelConversationData, type GetChannelConversationError, type GetChannelConversationErrors, type GetChannelConversationResponse, type GetChannelConversationResponses, type GetChannelData, type GetChannelError, type GetChannelErrors, type GetChannelResponse, type GetChannelResponses, type GetChannelRouteData, type GetChannelRouteError, type GetChannelRouteErrors, type GetChannelRouteResponse, type GetChannelRouteResponses, type GetConversationData, type GetConversationError, type GetConversationErrors, type GetConversationResponse, type GetConversationResponses, type GetConversationTagsData, type GetConversationTagsError, type GetConversationTagsErrors, type GetConversationTagsResponse, type GetConversationTagsResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetDatasetData, type GetDatasetErrors, type GetDatasetResponse, type GetDatasetResponses, type GetDocumentData, type GetDocumentError, type GetDocumentErrors, type GetDocumentResponse, type GetDocumentResponses, type GetDocumentStatusData, type GetDocumentStatusError, type GetDocumentStatusErrors, type GetDocumentStatusResponse, type GetDocumentStatusResponses, type GetDocumentTagsData, type GetDocumentTagsError, type GetDocumentTagsErrors, type GetDocumentTagsResponse, type GetDocumentTagsResponses, type GetEvalData, type GetEvalErrors, type GetEvalResponse, type GetEvalResponses, type GetEvalRunData, type GetEvalRunErrors, type GetEvalRunResponse, type GetEvalRunResponses, type GetFileData, type GetFileError, type GetFileErrors, type GetFileResponse, type GetFileResponses, type GetFileTagsData, type GetFileTagsError, type GetFileTagsErrors, type GetFileTagsResponse, type GetFileTagsResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetGenerationTranscriptData, type GetGenerationTranscriptError, type GetGenerationTranscriptErrors, type GetGenerationTranscriptResponse, type GetGenerationTranscriptResponses, type GetIngestionRuleData, type GetIngestionRuleErrors, type GetIngestionRuleResponse, type GetIngestionRuleResponses, type GetModelData, type GetModelError, type GetModelErrors, type GetModelResponse, type GetModelResponses, type GetModelRouteData, type GetModelRouteErrors, type GetModelRouteResponse, type GetModelRouteResponses, type GetOrchestrationData, type GetOrchestrationErrors, type GetOrchestrationResponse, type GetOrchestrationResponses, type GetOrchestrationRunData, type GetOrchestrationRunErrors, type GetOrchestrationRunResponse, type GetOrchestrationRunResponses, type GetOrchestrationVersionData, type GetOrchestrationVersionErrors, type GetOrchestrationVersionResponse, type GetOrchestrationVersionResponses, type GetProjectData, type GetProjectError, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetProjectUsageData, type GetProjectUsageError, type GetProjectUsageErrors, type GetProjectUsageResponse, type GetProjectUsageResponses, type GetQueueStatsData, type GetQueueStatsErrors, type GetQueueStatsResponse, type GetQueueStatsResponses, type GetSecretData, type GetSecretErrors, type GetSecretResponse, type GetSecretResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetSessionTagsData, type GetSessionTagsError, type GetSessionTagsErrors, type GetSessionTagsResponse, type GetSessionTagsResponses, type GetTaskData, type GetTaskErrors, type GetTaskHistoryData, type GetTaskHistoryErrors, type GetTaskHistoryResponse, type GetTaskHistoryResponses, 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 GetTriggerData, type GetTriggerErrors, type GetTriggerFiringData, type GetTriggerFiringErrors, type GetTriggerFiringResponse, type GetTriggerFiringResponses, type GetTriggerResponse, type GetTriggerResponses, type GetTriggerSecretData, type GetTriggerSecretErrors, type GetTriggerSecretResponse, type GetTriggerSecretResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryError, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GetWorkflowData, type GetWorkflowErrors, type GetWorkflowResponse, type GetWorkflowResponses, type GetWorkflowVersionData, type GetWorkflowVersionErrors, type GetWorkflowVersionResponse, type GetWorkflowVersionResponses, type GrantId, type HumanInputRequest, type IdempotencyKey, type Identifier, type IngestDocumentData, type IngestDocumentError, type IngestDocumentErrors, type IngestDocumentResponse, type IngestDocumentResponses, type IngestedDocumentRecord, type IngestionRule, IngestionRules, type JsonLogicScorer, Knowledge, type KnowledgeResult, type Limit, type LinkToken, type ListActorsData, type ListActorsError, type ListActorsErrors, type ListActorsResponse, type ListActorsResponses, type ListAddressConversationsData, type ListAddressConversationsError, type ListAddressConversationsErrors, type ListAddressConversationsResponse, type ListAddressConversationsResponses, type ListAddressesData, type ListAddressesError, type ListAddressesErrors, type ListAddressesResponse, type ListAddressesResponses, type ListAgentVersionsData, type ListAgentVersionsError, type ListAgentVersionsErrors, type ListAgentVersionsResponse, type ListAgentVersionsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListAiProviderModelsData, type ListAiProviderModelsErrors, type ListAiProviderModelsResponse, type ListAiProviderModelsResponses, type ListAiProvidersData, type ListAiProvidersErrors, type ListAiProvidersResponse, type ListAiProvidersResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListAssistantGrantsData, type ListAssistantGrantsError, type ListAssistantGrantsErrors, type ListAssistantGrantsResponse, type ListAssistantGrantsResponses, type ListChannelConversationMessagesData, type ListChannelConversationMessagesError, type ListChannelConversationMessagesErrors, type ListChannelConversationMessagesResponse, type ListChannelConversationMessagesResponses, type ListChannelConversationsData, type ListChannelConversationsError, type ListChannelConversationsErrors, type ListChannelConversationsResponse, type ListChannelConversationsResponses, type ListChannelKindsData, type ListChannelKindsError, type ListChannelKindsErrors, type ListChannelKindsResponse, type ListChannelKindsResponses, type ListChannelRoutesData, type ListChannelRoutesError, type ListChannelRoutesErrors, type ListChannelRoutesResponse, type ListChannelRoutesResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListConversationMessagesData, type ListConversationMessagesError, type ListConversationMessagesErrors, type ListConversationMessagesResponse, type ListConversationMessagesResponses, type ListConversationsData, type ListConversationsError, type ListConversationsErrors, type ListConversationsResponse, type ListConversationsResponses, type ListDatasetItemsData, type ListDatasetItemsErrors, type ListDatasetItemsResponse, type ListDatasetItemsResponses, type ListDatasetsData, type ListDatasetsErrors, type ListDatasetsResponse, type ListDatasetsResponses, type ListDocumentsData, type ListDocumentsError, type ListDocumentsErrors, type ListDocumentsResponse, type ListDocumentsResponses, type ListEvalResultsData, type ListEvalResultsErrors, type ListEvalResultsResponse, type ListEvalResultsResponses, type ListEvalRunsData, type ListEvalRunsErrors, type ListEvalRunsResponse, type ListEvalRunsResponses, type ListEvalsData, type ListEvalsErrors, type ListEvalsResponse, type ListEvalsResponses, type ListFilesData, type ListFilesError, type ListFilesErrors, type ListFilesResponse, type ListFilesResponses, type ListGenerationsData, type ListGenerationsError, type ListGenerationsErrors, type ListGenerationsResponse, type ListGenerationsResponses, type ListIngestionRulesData, type ListIngestionRulesErrors, type ListIngestionRulesResponse, type ListIngestionRulesResponses, type ListModelRoutesData, type ListModelRoutesErrors, type ListModelRoutesResponse, type ListModelRoutesResponses, type ListModelsData, type ListModelsError, type ListModelsErrors, type ListModelsResponse, type ListModelsResponses, type ListOrchestrationRunsData, type ListOrchestrationRunsErrors, type ListOrchestrationRunsResponse, type ListOrchestrationRunsResponses, type ListOrchestrationVersionsData, type ListOrchestrationVersionsErrors, type ListOrchestrationVersionsResponse, type ListOrchestrationVersionsResponses, type ListOrchestrationsData, type ListOrchestrationsErrors, type ListOrchestrationsResponse, type ListOrchestrationsResponses, type ListProjectChannelRoutesData, type ListProjectChannelRoutesError, type ListProjectChannelRoutesErrors, type ListProjectChannelRoutesResponse, type ListProjectChannelRoutesResponses, type ListProjectMembersData, type ListProjectMembersError, type ListProjectMembersErrors, type ListProjectMembersResponse, type ListProjectMembersResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListSecretsData, type ListSecretsErrors, type ListSecretsResponse, type ListSecretsResponses, type ListSessionForksData, type ListSessionForksError, type ListSessionForksErrors, type ListSessionForksResponse, type ListSessionForksResponses, type ListSessionsData, type ListSessionsError, type ListSessionsErrors, type ListSessionsResponse, type ListSessionsResponses, type ListTasksData, type ListTasksErrors, type ListTasksResponse, type ListTasksResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListTriggerFiringsData, type ListTriggerFiringsErrors, type ListTriggerFiringsResponse, type ListTriggerFiringsResponses, type ListTriggersData, type ListTriggersErrors, type ListTriggersResponse, type ListTriggersResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesError, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type ListWorkflowVersionsData, type ListWorkflowVersionsErrors, type ListWorkflowVersionsResponse, type ListWorkflowVersionsResponses, type ListWorkflowsData, type ListWorkflowsErrors, type ListWorkflowsResponse, type ListWorkflowsResponses, type LlmJudgeScorer, type LogoutData, type LogoutError, type LogoutErrors, type LogoutRequest, type LogoutResponse, type LogoutResponses, type ManagedProvider, type MemoryKnowledgeResult, type MergeActorTagsData, type MergeActorTagsError, type MergeActorTagsErrors, type MergeActorTagsResponse, type MergeActorTagsResponses, type MergeConversationTagsData, type MergeConversationTagsError, type MergeConversationTagsErrors, type MergeConversationTagsResponse, type MergeConversationTagsResponses, type MergeDocumentTagsData, type MergeDocumentTagsError, type MergeDocumentTagsErrors, type MergeDocumentTagsResponse, type MergeDocumentTagsResponses, type MergeFileTagsData, type MergeFileTagsError, type MergeFileTagsErrors, type MergeFileTagsResponse, type MergeFileTagsResponses, type MergeSessionTagsData, type MergeSessionTagsError, type MergeSessionTagsErrors, type MergeSessionTagsResponse, type MergeSessionTagsResponses, type MessagesLimit, type Model, type ModelId, type ModelList, type ModelRoute, type ModelRouteTarget, ModelRoutes, Models, NaturaliClient, type NaturaliClientOptions, type NodeExecution, type Offset, type OpenChannelConversationData, type OpenChannelConversationError, type OpenChannelConversationErrors, type OpenChannelConversationResponse, type OpenChannelConversationResponses, type Options, type Orchestration, type OrchestrationEdge, type OrchestrationId, type OrchestrationNode, type OrchestrationRun, type OrchestrationRunId, type OrchestrationVersion, Orchestrations, type OutputSchemaScorer, type PatchAgentData, type PatchAgentError, type PatchAgentErrors, type PatchAgentResponse, type PatchAgentResponses, type PreviewAssistantLinkData, type PreviewAssistantLinkError, type PreviewAssistantLinkErrors, type PreviewAssistantLinkResponse, type PreviewAssistantLinkResponses, type Project, type ProjectCreate, type ProjectId, type ProjectList, type ProjectMember, type ProjectMemberList, type ProjectRole, type ProjectUpdate, type ProjectUsage, Projects, type PromoteAgentReleaseData, type PromoteAgentReleaseError, type PromoteAgentReleaseErrors, type PromoteAgentReleaseResponse, type PromoteAgentReleaseResponses, type ProviderModelsResponse, type ProviderPrice, type ProviderPricesResponse, type PurgeGenerationContentData, type PurgeGenerationContentError, type PurgeGenerationContentErrors, type PurgeGenerationContentResponse, type PurgeGenerationContentResponses, type PurgeTraceContentData, type PurgeTraceContentError, type PurgeTraceContentErrors, type PurgeTraceContentResponse, type PurgeTraceContentResponses, type QueueStats, type RedeemAssistantLinkData, type RedeemAssistantLinkError, type RedeemAssistantLinkErrors, type RedeemAssistantLinkResponse, type RedeemAssistantLinkResponses, type RedeliverWebhookDeliveryData, type RedeliverWebhookDeliveryError, type RedeliverWebhookDeliveryErrors, type RedeliverWebhookDeliveryResponse, type RedeliverWebhookDeliveryResponses, type RefreshRequest, type RefreshSessionData, type RefreshSessionError, type RefreshSessionErrors, type RefreshSessionResponse, type RefreshSessionResponses, type ReingestDocumentData, type ReingestDocumentError, type ReingestDocumentErrors, type ReingestDocumentResponse, type ReingestDocumentResponses, type RemoveConversationMessageData, type RemoveConversationMessageError, type RemoveConversationMessageErrors, type RemoveConversationMessageResponse, type RemoveConversationMessageResponses, type ReplaceActorTagsData, type ReplaceActorTagsError, type ReplaceActorTagsErrors, type ReplaceActorTagsResponse, type ReplaceActorTagsResponses, type ReplaceConversationTagsData, type ReplaceConversationTagsError, type ReplaceConversationTagsErrors, type ReplaceConversationTagsResponse, type ReplaceConversationTagsResponses, type ReplaceDocumentTagsData, type ReplaceDocumentTagsError, type ReplaceDocumentTagsErrors, type ReplaceDocumentTagsResponse, type ReplaceDocumentTagsResponses, type ReplaceFileTagsData, type ReplaceFileTagsError, type ReplaceFileTagsErrors, type ReplaceFileTagsResponse, type ReplaceFileTagsResponses, type ReplaceSessionTagsData, type ReplaceSessionTagsError, type ReplaceSessionTagsErrors, type ReplaceSessionTagsResponse, type ReplaceSessionTagsResponses, type RequestSignInCodeData, type RequestSignInCodeError, type RequestSignInCodeErrors, type RequestSignInCodeResponse, type RequestSignInCodeResponses, type RequiredAction, type RestoreAgentVersionData, type RestoreAgentVersionError, type RestoreAgentVersionErrors, type RestoreAgentVersionRequest, type RestoreAgentVersionResponse, type RestoreAgentVersionResponses, type RestoreOrchestrationVersionData, type RestoreOrchestrationVersionErrors, type RestoreOrchestrationVersionRequest, type RestoreOrchestrationVersionResponse, type RestoreOrchestrationVersionResponses, type RestoreWorkflowVersionData, type RestoreWorkflowVersionErrors, type RestoreWorkflowVersionRequest, type RestoreWorkflowVersionResponse, type RestoreWorkflowVersionResponses, type ResumeOrchestrationRunData, type ResumeOrchestrationRunErrors, type ResumeOrchestrationRunResponse, type ResumeOrchestrationRunResponses, type RevokeAssistantGrantData, type RevokeAssistantGrantError, type RevokeAssistantGrantErrors, type RevokeAssistantGrantResponse, type RevokeAssistantGrantResponses, type RotateApiKeyData, type RotateApiKeyError, type RotateApiKeyErrors, type RotateApiKeyResponse, type RotateApiKeyResponses, type RotateTriggerSecretData, type RotateTriggerSecretErrors, type RotateTriggerSecretResponse, type RotateTriggerSecretResponses, type RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type RouteId, type RunUsageTotals, type ScorerResult, type Scorers, type SearchKnowledgeData, type SearchKnowledgeError, type SearchKnowledgeErrors, type SearchKnowledgeResponse, type SearchKnowledgeResponses, Secrets, type SendSessionMessageResponse, type SessionId, type SessionRecord, Sessions, type SetAddressActionData, type SetAddressActionError, type SetAddressActionErrors, type SetAddressActionResponse, type SetAddressActionResponses, type SetAgentReleaseData, type SetAgentReleaseError, type SetAgentReleaseErrors, type SetAgentReleaseRequest, type SetAgentReleaseResponse, type SetAgentReleaseResponses, type SignInCodeRequest, type SignInCodeVerify, type StartEvalRunData, type StartEvalRunErrors, type StartEvalRunResponse, type StartEvalRunResponses, type StartOrchestrationRunData, type StartOrchestrationRunErrors, type StartOrchestrationRunResponse, type StartOrchestrationRunResponses, type StartRunRequest, type SubmitAgentToolOutputsData, type SubmitAgentToolOutputsError, type SubmitAgentToolOutputsErrors, type SubmitAgentToolOutputsResponse, type SubmitAgentToolOutputsResponses, type SubmitHumanInputData, type SubmitHumanInputErrors, type SubmitHumanInputResponse, type SubmitHumanInputResponses, type SubmitSessionToolOutputsData, type SubmitSessionToolOutputsError, type SubmitSessionToolOutputsErrors, type SubmitSessionToolOutputsRequest, type SubmitSessionToolOutputsResponse, type SubmitSessionToolOutputsResponses, type SubmitToolOutputsRequest, type Task, type TaskTransition, Tasks, type Tool, type ToolBinding, type ToolOutputMessageContent, type ToolScorer, Tools, type Trace, type TraceTreeNode, Traces, type TranscriptStep, type TranscriptToolCall, type TranscriptToolResult, type TranscriptUsage, type TransitionTaskData, type TransitionTaskErrors, type TransitionTaskRequest, type TransitionTaskResponse, type TransitionTaskResponses, type Trigger, type TriggerFiring, type TriggerFiringListResponse, type TriggerSecretResponse, type TriggerWithSecret, Triggers, type UpdateActorData, type UpdateActorError, type UpdateActorErrors, type UpdateActorResponse, type UpdateActorResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentRequest, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateAiProviderData, type UpdateAiProviderErrors, type UpdateAiProviderPricesData, type UpdateAiProviderPricesErrors, type UpdateAiProviderPricesResponse, type UpdateAiProviderPricesResponses, type UpdateAiProviderResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateChannelRouteData, type UpdateChannelRouteError, type UpdateChannelRouteErrors, type UpdateChannelRouteResponse, type UpdateChannelRouteResponses, type UpdateConversationData, type UpdateConversationError, type UpdateConversationErrors, type UpdateConversationResponse, type UpdateConversationResponses, type UpdateCurrentUserData, type UpdateCurrentUserError, type UpdateCurrentUserErrors, type UpdateCurrentUserResponse, type UpdateCurrentUserResponses, type UpdateDatasetData, type UpdateDatasetErrors, type UpdateDatasetItemData, type UpdateDatasetItemErrors, type UpdateDatasetItemResponse, type UpdateDatasetItemResponses, type UpdateDatasetResponse, type UpdateDatasetResponses, type UpdateDocumentData, type UpdateDocumentError, type UpdateDocumentErrors, type UpdateDocumentResponse, type UpdateDocumentResponses, type UpdateEvalData, type UpdateEvalErrors, type UpdateEvalResponse, type UpdateEvalResponses, type UpdateFileMetadataData, type UpdateFileMetadataError, type UpdateFileMetadataErrors, type UpdateFileMetadataResponse, type UpdateFileMetadataResponses, type UpdateGenerationData, type UpdateGenerationError, type UpdateGenerationErrors, type UpdateGenerationRequest, type UpdateGenerationResponse, type UpdateGenerationResponses, type UpdateIngestionRuleData, type UpdateIngestionRuleErrors, type UpdateIngestionRuleResponse, type UpdateIngestionRuleResponses, type UpdateModelRouteData, type UpdateModelRouteErrors, type UpdateModelRouteResponse, type UpdateModelRouteResponses, type UpdateOrchestrationData, type UpdateOrchestrationErrors, type UpdateOrchestrationRequest, type UpdateOrchestrationResponse, type UpdateOrchestrationResponses, type UpdateProjectData, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateSecretData, type UpdateSecretErrors, type UpdateSecretResponses, type UpdateSessionData, type UpdateSessionError, type UpdateSessionErrors, type UpdateSessionRequest, type UpdateSessionResponse, type UpdateSessionResponses, type UpdateTaskData, type UpdateTaskErrors, type UpdateTaskRequest, type UpdateTaskResponse, type UpdateTaskResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolRequest, type UpdateToolResponse, type UpdateToolResponses, type UpdateTriggerData, type UpdateTriggerErrors, type UpdateTriggerRequest, type UpdateTriggerResponse, type UpdateTriggerResponses, type UpdateWebhookData, type UpdateWebhookError, type UpdateWebhookErrors, type UpdateWebhookResponse, type UpdateWebhookResponses, type UpdateWorkflowData, type UpdateWorkflowErrors, type UpdateWorkflowRequest, type UpdateWorkflowResponse, type UpdateWorkflowResponses, type UploadFileBase64Data, type UploadFileBase64Error, type UploadFileBase64Errors, type UploadFileBase64Request, type UploadFileBase64Response, type UploadFileBase64Responses, type UploadFileData, type UploadFileError, type UploadFileErrors, type UploadFileResponse, type UploadFileResponses, type UpsertProviderPricesRequest, type UsageComponent, type UsageComponents, type UsageGroup, type UsageTokens, type User, type UserUpdate, Users, type ValidateOrchestrationData, type ValidateOrchestrationErrors, type ValidateOrchestrationRequest, type ValidateOrchestrationResponse, type ValidateOrchestrationResponses, type ValidationError, type ValidationResult, 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, type Workflow, type WorkflowState, type WorkflowTransition, type WorkflowVersion, Workflows, createClient, createConfig };