@naturali/sdk 0.71.1 → 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.cjs +462 -1
- package/dist/index.d.cts +2473 -458
- package/dist/index.d.mts +2473 -458
- package/dist/index.mjs +458 -2
- package/package.json +2 -2
package/dist/index.d.mts
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
|
*/
|
|
@@ -1889,9 +1990,11 @@ type DatasetItemInput = Array<{
|
|
|
1889
1990
|
*
|
|
1890
1991
|
* `llm_judge` grades the output with a model completion, returning a continuous score plus its `reasoning`. Its `pass_threshold` is required: a continuous score says nothing about where "good enough" is, and a defaulted cutoff would silently decide the gate.
|
|
1891
1992
|
*
|
|
1993
|
+
* `embedding_similarity` embeds the output text and `expected_output` with the platform's configured embedding model (`EMBEDDING_PROVIDER` / `EMBEDDING_MODEL` — the same stack document ingestion uses) and scores their cosine similarity, clamped to 0-1. Its `pass_threshold` is required for the same reason as the judge's. An item without an `expected_output` scores 0; an embedding backend failure marks the **item** errored, never a score of 0.
|
|
1994
|
+
*
|
|
1892
1995
|
* `tool` runs a custom scoring algorithm: a server-callable project tool the engine invokes once per item with the item's context. Unlike the built-in types it may appear several times, each under a distinct `name` — outcomes and aggregates key on the name.
|
|
1893
1996
|
*/
|
|
1894
|
-
type Scorers = Array<ExactMatchScorer | ContainsScorer | JsonLogicScorer | OutputSchemaScorer | LlmJudgeScorer | ToolScorer>;
|
|
1997
|
+
type Scorers = Array<ExactMatchScorer | ContainsScorer | JsonLogicScorer | OutputSchemaScorer | EmbeddingSimilarityScorer | LlmJudgeScorer | ToolScorer>;
|
|
1895
1998
|
type ExactMatchScorer = {
|
|
1896
1999
|
type: 'exact_match';
|
|
1897
2000
|
};
|
|
@@ -1918,6 +2021,13 @@ type OutputSchemaScorer = {
|
|
|
1918
2021
|
[key: string]: unknown;
|
|
1919
2022
|
};
|
|
1920
2023
|
};
|
|
2024
|
+
type EmbeddingSimilarityScorer = {
|
|
2025
|
+
type: 'embedding_similarity';
|
|
2026
|
+
/**
|
|
2027
|
+
* The item passes this scorer when the cosine similarity between the embeddings of the output text and `expected_output` is greater than or equal to this value. Required.
|
|
2028
|
+
*/
|
|
2029
|
+
pass_threshold: number;
|
|
2030
|
+
};
|
|
1921
2031
|
type LlmJudgeScorer = {
|
|
1922
2032
|
type: 'llm_judge';
|
|
1923
2033
|
/**
|
|
@@ -2114,6 +2224,75 @@ type EvalResult = {
|
|
|
2114
2224
|
error?: string | null;
|
|
2115
2225
|
created_at?: Date;
|
|
2116
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
|
+
};
|
|
2117
2296
|
type Generation = {
|
|
2118
2297
|
/**
|
|
2119
2298
|
* Public ID of the generation
|
|
@@ -2427,6 +2606,144 @@ type GenerationTranscript = {
|
|
|
2427
2606
|
*/
|
|
2428
2607
|
content_redacted_by_principal_id?: string | null;
|
|
2429
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
|
+
};
|
|
2430
2747
|
type ModelRouteTarget = {
|
|
2431
2748
|
/**
|
|
2432
2749
|
* AI provider in the route's project
|
|
@@ -4350,6 +4667,45 @@ type RestoreWorkflowVersionRequest = {
|
|
|
4350
4667
|
*/
|
|
4351
4668
|
label?: string;
|
|
4352
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
|
+
};
|
|
4353
4709
|
/**
|
|
4354
4710
|
* Project public ID (proj_ prefix).
|
|
4355
4711
|
*/
|
|
@@ -5283,7 +5639,7 @@ type CreateAgentGenerationErrors = {
|
|
|
5283
5639
|
*/
|
|
5284
5640
|
404: ErrorResponse;
|
|
5285
5641
|
/**
|
|
5286
|
-
* Upstream AI provider error (AI_PROVIDER_ERROR); model output that does not satisfy the agent's `output_schema` (OUTPUT_SCHEMA_VALIDATION_FAILED — the violated field is named in the message); or a model that wrote a tool invocation out as plain assistant text instead of calling the tool, so the tool never ran (TEXT_ENCODED_TOOL_CALL — `meta.tool_name` names the tool). The error `meta` includes the `generation_id` and `trace_id` of the failed generation for post-mortem debugging via GET /v1/projects/{project_id}/generations/{generation_id}.
|
|
5642
|
+
* Upstream AI provider error (AI_PROVIDER_ERROR); model output that does not satisfy the agent's `output_schema` (OUTPUT_SCHEMA_VALIDATION_FAILED — the violated field is named in the message); or a model that wrote a tool invocation out as plain assistant text instead of calling the tool, so the tool never ran (TEXT_ENCODED_TOOL_CALL — `meta.tool_name` names the tool). The error `meta` includes the `generation_id` and `trace_id` of the failed generation for post-mortem debugging via GET /v1/projects/{project_id}/generations/{generation_id}. Streaming requests report the provider error in a terminal SSE frame instead, since their status line is already on the wire.
|
|
5287
5643
|
*
|
|
5288
5644
|
*/
|
|
5289
5645
|
502: ErrorResponse;
|
|
@@ -7688,7 +8044,7 @@ type ReplaceConversationTagsResponses = {
|
|
|
7688
8044
|
};
|
|
7689
8045
|
};
|
|
7690
8046
|
type ReplaceConversationTagsResponse = ReplaceConversationTagsResponses[keyof ReplaceConversationTagsResponses];
|
|
7691
|
-
type
|
|
8047
|
+
type ListDocumentsData = {
|
|
7692
8048
|
body?: never;
|
|
7693
8049
|
path: {
|
|
7694
8050
|
/**
|
|
@@ -7697,6 +8053,10 @@ type ListDatasetsData = {
|
|
|
7697
8053
|
project_id: string;
|
|
7698
8054
|
};
|
|
7699
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;
|
|
7700
8060
|
/**
|
|
7701
8061
|
* Maximum number of results to return
|
|
7702
8062
|
*/
|
|
@@ -7706,120 +8066,177 @@ type ListDatasetsData = {
|
|
|
7706
8066
|
*/
|
|
7707
8067
|
offset?: number;
|
|
7708
8068
|
};
|
|
7709
|
-
url: '/v1/projects/{project_id}/
|
|
8069
|
+
url: '/v1/projects/{project_id}/documents';
|
|
7710
8070
|
};
|
|
7711
|
-
type
|
|
8071
|
+
type ListDocumentsErrors = {
|
|
7712
8072
|
/**
|
|
7713
8073
|
* Unauthorized
|
|
7714
8074
|
*/
|
|
7715
|
-
401:
|
|
8075
|
+
401: ErrorResponse;
|
|
7716
8076
|
/**
|
|
7717
8077
|
* Forbidden
|
|
7718
8078
|
*/
|
|
7719
|
-
403:
|
|
7720
|
-
/**
|
|
7721
|
-
* Internal server error
|
|
7722
|
-
*/
|
|
7723
|
-
500: unknown;
|
|
8079
|
+
403: ErrorResponse;
|
|
7724
8080
|
};
|
|
7725
|
-
type
|
|
8081
|
+
type ListDocumentsError = ListDocumentsErrors[keyof ListDocumentsErrors];
|
|
8082
|
+
type ListDocumentsResponses = {
|
|
7726
8083
|
/**
|
|
7727
|
-
* List of
|
|
8084
|
+
* List of documents
|
|
7728
8085
|
*/
|
|
7729
8086
|
200: {
|
|
7730
|
-
data
|
|
7731
|
-
total
|
|
7732
|
-
limit
|
|
7733
|
-
offset
|
|
8087
|
+
data?: Array<DocumentRecord>;
|
|
8088
|
+
total?: number;
|
|
8089
|
+
limit?: number;
|
|
8090
|
+
offset?: number;
|
|
7734
8091
|
};
|
|
7735
8092
|
};
|
|
7736
|
-
type
|
|
7737
|
-
type
|
|
8093
|
+
type ListDocumentsResponse = ListDocumentsResponses[keyof ListDocumentsResponses];
|
|
8094
|
+
type CreateDocumentData = {
|
|
7738
8095
|
body: {
|
|
8096
|
+
content: string;
|
|
7739
8097
|
/**
|
|
7740
|
-
*
|
|
8098
|
+
* Logical path within the project (e.g. /reports/q1.txt). Defaults to /filename if omitted.
|
|
7741
8099
|
*/
|
|
7742
|
-
|
|
8100
|
+
path?: string;
|
|
8101
|
+
filename?: string;
|
|
7743
8102
|
/**
|
|
7744
|
-
*
|
|
8103
|
+
* Document title
|
|
7745
8104
|
*/
|
|
7746
|
-
|
|
7747
|
-
};
|
|
7748
|
-
path: {
|
|
8105
|
+
title?: string;
|
|
7749
8106
|
/**
|
|
7750
|
-
*
|
|
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.
|
|
7751
8108
|
*/
|
|
7752
|
-
|
|
7753
|
-
|
|
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
|
+
};
|
|
7754
8137
|
query?: never;
|
|
7755
|
-
url: '/v1/projects/{project_id}/
|
|
8138
|
+
url: '/v1/projects/{project_id}/documents';
|
|
7756
8139
|
};
|
|
7757
|
-
type
|
|
8140
|
+
type CreateDocumentErrors = {
|
|
7758
8141
|
/**
|
|
7759
|
-
*
|
|
8142
|
+
* Invalid request body
|
|
7760
8143
|
*/
|
|
7761
|
-
400:
|
|
8144
|
+
400: ErrorResponse;
|
|
7762
8145
|
/**
|
|
7763
8146
|
* Unauthorized
|
|
7764
8147
|
*/
|
|
7765
|
-
401:
|
|
8148
|
+
401: ErrorResponse;
|
|
7766
8149
|
/**
|
|
7767
8150
|
* Forbidden
|
|
7768
8151
|
*/
|
|
7769
|
-
403:
|
|
7770
|
-
/**
|
|
7771
|
-
* A dataset with that name already exists in the project
|
|
7772
|
-
*/
|
|
7773
|
-
409: unknown;
|
|
7774
|
-
/**
|
|
7775
|
-
* Internal server error
|
|
7776
|
-
*/
|
|
7777
|
-
500: unknown;
|
|
8152
|
+
403: ErrorResponse;
|
|
7778
8153
|
};
|
|
7779
|
-
type
|
|
8154
|
+
type CreateDocumentError = CreateDocumentErrors[keyof CreateDocumentErrors];
|
|
8155
|
+
type CreateDocumentResponses = {
|
|
7780
8156
|
/**
|
|
7781
|
-
*
|
|
8157
|
+
* Document created
|
|
7782
8158
|
*/
|
|
7783
|
-
201:
|
|
8159
|
+
201: DocumentRecord;
|
|
7784
8160
|
};
|
|
7785
|
-
type
|
|
7786
|
-
type
|
|
7787
|
-
body
|
|
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
|
+
};
|
|
7788
8191
|
path: {
|
|
7789
8192
|
/**
|
|
7790
8193
|
* Project public ID (proj_ prefix).
|
|
7791
8194
|
*/
|
|
7792
8195
|
project_id: string;
|
|
8196
|
+
};
|
|
8197
|
+
query?: {
|
|
7793
8198
|
/**
|
|
7794
|
-
*
|
|
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`.
|
|
7795
8200
|
*/
|
|
7796
|
-
|
|
8201
|
+
wait?: boolean;
|
|
7797
8202
|
};
|
|
7798
|
-
|
|
7799
|
-
url: '/v1/projects/{project_id}/datasets/{dataset_id}';
|
|
8203
|
+
url: '/v1/projects/{project_id}/documents/ingest';
|
|
7800
8204
|
};
|
|
7801
|
-
type
|
|
8205
|
+
type IngestDocumentErrors = {
|
|
8206
|
+
/**
|
|
8207
|
+
* Invalid request, file not found, or unsupported content type
|
|
8208
|
+
*/
|
|
8209
|
+
400: ErrorResponse;
|
|
7802
8210
|
/**
|
|
7803
8211
|
* Unauthorized
|
|
7804
8212
|
*/
|
|
7805
|
-
401:
|
|
8213
|
+
401: ErrorResponse;
|
|
7806
8214
|
/**
|
|
7807
8215
|
* Forbidden
|
|
7808
8216
|
*/
|
|
7809
|
-
403:
|
|
8217
|
+
403: ErrorResponse;
|
|
7810
8218
|
/**
|
|
7811
|
-
*
|
|
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.
|
|
7812
8220
|
*/
|
|
7813
|
-
|
|
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;
|
|
7814
8226
|
};
|
|
7815
|
-
type
|
|
8227
|
+
type IngestDocumentError = IngestDocumentErrors[keyof IngestDocumentErrors];
|
|
8228
|
+
type IngestDocumentResponses = {
|
|
7816
8229
|
/**
|
|
7817
|
-
*
|
|
8230
|
+
* Ingestion completed synchronously (only when `?wait=true`). The document is fully indexed and ready for search.
|
|
7818
8231
|
*/
|
|
7819
|
-
|
|
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;
|
|
7820
8237
|
};
|
|
7821
|
-
type
|
|
7822
|
-
type
|
|
8238
|
+
type IngestDocumentResponse = IngestDocumentResponses[keyof IngestDocumentResponses];
|
|
8239
|
+
type DeleteDocumentData = {
|
|
7823
8240
|
body?: never;
|
|
7824
8241
|
path: {
|
|
7825
8242
|
/**
|
|
@@ -7827,199 +8244,185 @@ type GetDatasetData = {
|
|
|
7827
8244
|
*/
|
|
7828
8245
|
project_id: string;
|
|
7829
8246
|
/**
|
|
7830
|
-
*
|
|
8247
|
+
* Document ID
|
|
7831
8248
|
*/
|
|
7832
|
-
|
|
8249
|
+
document_id: string;
|
|
7833
8250
|
};
|
|
7834
8251
|
query?: never;
|
|
7835
|
-
url: '/v1/projects/{project_id}/
|
|
8252
|
+
url: '/v1/projects/{project_id}/documents/{document_id}';
|
|
7836
8253
|
};
|
|
7837
|
-
type
|
|
8254
|
+
type DeleteDocumentErrors = {
|
|
7838
8255
|
/**
|
|
7839
8256
|
* Unauthorized
|
|
7840
8257
|
*/
|
|
7841
|
-
401:
|
|
8258
|
+
401: ErrorResponse;
|
|
7842
8259
|
/**
|
|
7843
8260
|
* Forbidden
|
|
7844
8261
|
*/
|
|
7845
|
-
403:
|
|
8262
|
+
403: ErrorResponse;
|
|
7846
8263
|
/**
|
|
7847
|
-
*
|
|
8264
|
+
* Document not found
|
|
7848
8265
|
*/
|
|
7849
|
-
404:
|
|
8266
|
+
404: ErrorResponse;
|
|
7850
8267
|
};
|
|
7851
|
-
type
|
|
8268
|
+
type DeleteDocumentError = DeleteDocumentErrors[keyof DeleteDocumentErrors];
|
|
8269
|
+
type DeleteDocumentResponses = {
|
|
7852
8270
|
/**
|
|
7853
|
-
*
|
|
8271
|
+
* Document deleted
|
|
7854
8272
|
*/
|
|
7855
|
-
|
|
8273
|
+
204: void;
|
|
7856
8274
|
};
|
|
7857
|
-
type
|
|
7858
|
-
type
|
|
7859
|
-
body
|
|
7860
|
-
name?: string;
|
|
7861
|
-
description?: string | null;
|
|
7862
|
-
};
|
|
8275
|
+
type DeleteDocumentResponse = DeleteDocumentResponses[keyof DeleteDocumentResponses];
|
|
8276
|
+
type GetDocumentData = {
|
|
8277
|
+
body?: never;
|
|
7863
8278
|
path: {
|
|
7864
8279
|
/**
|
|
7865
8280
|
* Project public ID (proj_ prefix).
|
|
7866
8281
|
*/
|
|
7867
8282
|
project_id: string;
|
|
7868
8283
|
/**
|
|
7869
|
-
*
|
|
8284
|
+
* Document ID
|
|
7870
8285
|
*/
|
|
7871
|
-
|
|
8286
|
+
document_id: string;
|
|
7872
8287
|
};
|
|
7873
8288
|
query?: never;
|
|
7874
|
-
url: '/v1/projects/{project_id}/
|
|
8289
|
+
url: '/v1/projects/{project_id}/documents/{document_id}';
|
|
7875
8290
|
};
|
|
7876
|
-
type
|
|
7877
|
-
/**
|
|
7878
|
-
* Bad request
|
|
7879
|
-
*/
|
|
7880
|
-
400: unknown;
|
|
8291
|
+
type GetDocumentErrors = {
|
|
7881
8292
|
/**
|
|
7882
8293
|
* Unauthorized
|
|
7883
8294
|
*/
|
|
7884
|
-
401:
|
|
8295
|
+
401: ErrorResponse;
|
|
7885
8296
|
/**
|
|
7886
8297
|
* Forbidden
|
|
7887
8298
|
*/
|
|
7888
|
-
403:
|
|
7889
|
-
/**
|
|
7890
|
-
* Dataset not found
|
|
7891
|
-
*/
|
|
7892
|
-
404: unknown;
|
|
8299
|
+
403: ErrorResponse;
|
|
7893
8300
|
/**
|
|
7894
|
-
*
|
|
8301
|
+
* Document not found
|
|
7895
8302
|
*/
|
|
7896
|
-
|
|
8303
|
+
404: ErrorResponse;
|
|
7897
8304
|
};
|
|
7898
|
-
type
|
|
8305
|
+
type GetDocumentError = GetDocumentErrors[keyof GetDocumentErrors];
|
|
8306
|
+
type GetDocumentResponses = {
|
|
7899
8307
|
/**
|
|
7900
|
-
*
|
|
8308
|
+
* Document found
|
|
7901
8309
|
*/
|
|
7902
|
-
200:
|
|
8310
|
+
200: DocumentRecord;
|
|
7903
8311
|
};
|
|
7904
|
-
type
|
|
7905
|
-
type
|
|
7906
|
-
body
|
|
7907
|
-
path: {
|
|
8312
|
+
type GetDocumentResponse = GetDocumentResponses[keyof GetDocumentResponses];
|
|
8313
|
+
type UpdateDocumentData = {
|
|
8314
|
+
body: {
|
|
7908
8315
|
/**
|
|
7909
|
-
*
|
|
8316
|
+
* New text content
|
|
7910
8317
|
*/
|
|
7911
|
-
|
|
8318
|
+
content?: string;
|
|
7912
8319
|
/**
|
|
7913
|
-
*
|
|
8320
|
+
* New title
|
|
7914
8321
|
*/
|
|
7915
|
-
|
|
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
|
+
};
|
|
7916
8339
|
};
|
|
7917
|
-
|
|
8340
|
+
path: {
|
|
7918
8341
|
/**
|
|
7919
|
-
*
|
|
8342
|
+
* Project public ID (proj_ prefix).
|
|
7920
8343
|
*/
|
|
7921
|
-
|
|
8344
|
+
project_id: string;
|
|
7922
8345
|
/**
|
|
7923
|
-
*
|
|
8346
|
+
* Document ID
|
|
7924
8347
|
*/
|
|
7925
|
-
|
|
8348
|
+
document_id: string;
|
|
7926
8349
|
};
|
|
7927
|
-
|
|
8350
|
+
query?: never;
|
|
8351
|
+
url: '/v1/projects/{project_id}/documents/{document_id}';
|
|
7928
8352
|
};
|
|
7929
|
-
type
|
|
8353
|
+
type UpdateDocumentErrors = {
|
|
7930
8354
|
/**
|
|
7931
8355
|
* Unauthorized
|
|
7932
8356
|
*/
|
|
7933
|
-
401:
|
|
8357
|
+
401: ErrorResponse;
|
|
7934
8358
|
/**
|
|
7935
8359
|
* Forbidden
|
|
7936
8360
|
*/
|
|
7937
|
-
403:
|
|
8361
|
+
403: ErrorResponse;
|
|
7938
8362
|
/**
|
|
7939
|
-
*
|
|
8363
|
+
* Document not found
|
|
7940
8364
|
*/
|
|
7941
|
-
404:
|
|
8365
|
+
404: ErrorResponse;
|
|
7942
8366
|
};
|
|
7943
|
-
type
|
|
8367
|
+
type UpdateDocumentError = UpdateDocumentErrors[keyof UpdateDocumentErrors];
|
|
8368
|
+
type UpdateDocumentResponses = {
|
|
7944
8369
|
/**
|
|
7945
|
-
*
|
|
8370
|
+
* Document updated
|
|
7946
8371
|
*/
|
|
7947
|
-
200:
|
|
7948
|
-
data: Array<DatasetItem>;
|
|
7949
|
-
total: number;
|
|
7950
|
-
limit: number;
|
|
7951
|
-
offset: number;
|
|
7952
|
-
};
|
|
8372
|
+
200: DocumentRecord;
|
|
7953
8373
|
};
|
|
7954
|
-
type
|
|
7955
|
-
type
|
|
7956
|
-
body
|
|
7957
|
-
input: DatasetItemInput;
|
|
7958
|
-
/**
|
|
7959
|
-
* Reference answer for exact_match / llm_judge scorers
|
|
7960
|
-
*/
|
|
7961
|
-
expected_output?: string | null;
|
|
7962
|
-
/**
|
|
7963
|
-
* Free-form tags, opaque to the platform
|
|
7964
|
-
*/
|
|
7965
|
-
metadata?: {
|
|
7966
|
-
[key: string]: unknown;
|
|
7967
|
-
} | null;
|
|
7968
|
-
};
|
|
8374
|
+
type UpdateDocumentResponse = UpdateDocumentResponses[keyof UpdateDocumentResponses];
|
|
8375
|
+
type GetDocumentStatusData = {
|
|
8376
|
+
body?: never;
|
|
7969
8377
|
path: {
|
|
7970
8378
|
/**
|
|
7971
8379
|
* Project public ID (proj_ prefix).
|
|
7972
8380
|
*/
|
|
7973
8381
|
project_id: string;
|
|
7974
8382
|
/**
|
|
7975
|
-
*
|
|
8383
|
+
* Document ID
|
|
7976
8384
|
*/
|
|
7977
|
-
|
|
8385
|
+
document_id: string;
|
|
7978
8386
|
};
|
|
7979
8387
|
query?: never;
|
|
7980
|
-
url: '/v1/projects/{project_id}/
|
|
8388
|
+
url: '/v1/projects/{project_id}/documents/{document_id}/status';
|
|
7981
8389
|
};
|
|
7982
|
-
type
|
|
7983
|
-
/**
|
|
7984
|
-
* Bad request (input is not message-shaped)
|
|
7985
|
-
*/
|
|
7986
|
-
400: unknown;
|
|
8390
|
+
type GetDocumentStatusErrors = {
|
|
7987
8391
|
/**
|
|
7988
8392
|
* Unauthorized
|
|
7989
8393
|
*/
|
|
7990
|
-
401:
|
|
8394
|
+
401: ErrorResponse;
|
|
7991
8395
|
/**
|
|
7992
8396
|
* Forbidden
|
|
7993
8397
|
*/
|
|
7994
|
-
403:
|
|
8398
|
+
403: ErrorResponse;
|
|
7995
8399
|
/**
|
|
7996
|
-
*
|
|
8400
|
+
* Document not found
|
|
7997
8401
|
*/
|
|
7998
|
-
404:
|
|
8402
|
+
404: ErrorResponse;
|
|
7999
8403
|
};
|
|
8000
|
-
type
|
|
8404
|
+
type GetDocumentStatusError = GetDocumentStatusErrors[keyof GetDocumentStatusErrors];
|
|
8405
|
+
type GetDocumentStatusResponses = {
|
|
8001
8406
|
/**
|
|
8002
|
-
*
|
|
8407
|
+
* Document ingestion status
|
|
8003
8408
|
*/
|
|
8004
|
-
|
|
8409
|
+
200: DocumentStatusRecord;
|
|
8005
8410
|
};
|
|
8006
|
-
type
|
|
8007
|
-
type
|
|
8008
|
-
body
|
|
8411
|
+
type GetDocumentStatusResponse = GetDocumentStatusResponses[keyof GetDocumentStatusResponses];
|
|
8412
|
+
type ReingestDocumentData = {
|
|
8413
|
+
body?: {
|
|
8009
8414
|
/**
|
|
8010
|
-
*
|
|
8415
|
+
* How to split the source into chunks. Defaults to `page`.
|
|
8011
8416
|
*/
|
|
8012
|
-
|
|
8417
|
+
chunk_strategy?: 'page' | 'whole' | 'size';
|
|
8013
8418
|
/**
|
|
8014
|
-
*
|
|
8419
|
+
* Window size in characters when `chunk_strategy=size`. Defaults to 1000.
|
|
8015
8420
|
*/
|
|
8016
|
-
|
|
8421
|
+
chunk_size?: number;
|
|
8017
8422
|
/**
|
|
8018
|
-
*
|
|
8423
|
+
* Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.
|
|
8019
8424
|
*/
|
|
8020
|
-
|
|
8021
|
-
[key: string]: unknown;
|
|
8022
|
-
} | null;
|
|
8425
|
+
chunk_overlap?: number;
|
|
8023
8426
|
};
|
|
8024
8427
|
path: {
|
|
8025
8428
|
/**
|
|
@@ -8027,43 +8430,49 @@ type CreateDatasetItemFromGenerationData = {
|
|
|
8027
8430
|
*/
|
|
8028
8431
|
project_id: string;
|
|
8029
8432
|
/**
|
|
8030
|
-
*
|
|
8433
|
+
* Document ID
|
|
8031
8434
|
*/
|
|
8032
|
-
|
|
8435
|
+
document_id: string;
|
|
8033
8436
|
};
|
|
8034
|
-
query?:
|
|
8035
|
-
|
|
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';
|
|
8036
8444
|
};
|
|
8037
|
-
type
|
|
8038
|
-
/**
|
|
8039
|
-
* Bad request (generation_id missing, or the generation belongs to a different project than the dataset)
|
|
8040
|
-
*/
|
|
8041
|
-
400: unknown;
|
|
8445
|
+
type ReingestDocumentErrors = {
|
|
8042
8446
|
/**
|
|
8043
8447
|
* Unauthorized
|
|
8044
8448
|
*/
|
|
8045
|
-
401:
|
|
8449
|
+
401: ErrorResponse;
|
|
8046
8450
|
/**
|
|
8047
8451
|
* Forbidden
|
|
8048
8452
|
*/
|
|
8049
|
-
403:
|
|
8453
|
+
403: ErrorResponse;
|
|
8050
8454
|
/**
|
|
8051
|
-
*
|
|
8455
|
+
* Document not found
|
|
8052
8456
|
*/
|
|
8053
|
-
404:
|
|
8457
|
+
404: ErrorResponse;
|
|
8054
8458
|
/**
|
|
8055
|
-
* The
|
|
8459
|
+
* The file is too large to re-ingest synchronously (`?wait=true`). Retry in background mode.
|
|
8056
8460
|
*/
|
|
8057
|
-
|
|
8461
|
+
413: ErrorResponse;
|
|
8058
8462
|
};
|
|
8059
|
-
type
|
|
8463
|
+
type ReingestDocumentError = ReingestDocumentErrors[keyof ReingestDocumentErrors];
|
|
8464
|
+
type ReingestDocumentResponses = {
|
|
8060
8465
|
/**
|
|
8061
|
-
*
|
|
8466
|
+
* Re-ingestion completed synchronously (only when `?wait=true`).
|
|
8062
8467
|
*/
|
|
8063
|
-
201:
|
|
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;
|
|
8064
8473
|
};
|
|
8065
|
-
type
|
|
8066
|
-
type
|
|
8474
|
+
type ReingestDocumentResponse = ReingestDocumentResponses[keyof ReingestDocumentResponses];
|
|
8475
|
+
type GetDocumentTagsData = {
|
|
8067
8476
|
body?: never;
|
|
8068
8477
|
path: {
|
|
8069
8478
|
/**
|
|
@@ -8071,45 +8480,81 @@ type DeleteDatasetItemData = {
|
|
|
8071
8480
|
*/
|
|
8072
8481
|
project_id: string;
|
|
8073
8482
|
/**
|
|
8074
|
-
*
|
|
8483
|
+
* Document ID
|
|
8075
8484
|
*/
|
|
8076
|
-
|
|
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: {
|
|
8077
8519
|
/**
|
|
8078
|
-
*
|
|
8520
|
+
* Project public ID (proj_ prefix).
|
|
8079
8521
|
*/
|
|
8080
|
-
|
|
8522
|
+
project_id: string;
|
|
8523
|
+
/**
|
|
8524
|
+
* Document ID
|
|
8525
|
+
*/
|
|
8526
|
+
document_id: string;
|
|
8081
8527
|
};
|
|
8082
8528
|
query?: never;
|
|
8083
|
-
url: '/v1/projects/{project_id}/
|
|
8529
|
+
url: '/v1/projects/{project_id}/documents/{document_id}/tags';
|
|
8084
8530
|
};
|
|
8085
|
-
type
|
|
8531
|
+
type MergeDocumentTagsErrors = {
|
|
8086
8532
|
/**
|
|
8087
8533
|
* Unauthorized
|
|
8088
8534
|
*/
|
|
8089
|
-
401:
|
|
8535
|
+
401: ErrorResponse;
|
|
8090
8536
|
/**
|
|
8091
8537
|
* Forbidden
|
|
8092
8538
|
*/
|
|
8093
|
-
403:
|
|
8539
|
+
403: ErrorResponse;
|
|
8094
8540
|
/**
|
|
8095
|
-
*
|
|
8541
|
+
* Document not found
|
|
8096
8542
|
*/
|
|
8097
|
-
404:
|
|
8543
|
+
404: ErrorResponse;
|
|
8098
8544
|
};
|
|
8099
|
-
type
|
|
8545
|
+
type MergeDocumentTagsError = MergeDocumentTagsErrors[keyof MergeDocumentTagsErrors];
|
|
8546
|
+
type MergeDocumentTagsResponses = {
|
|
8100
8547
|
/**
|
|
8101
|
-
*
|
|
8548
|
+
* Tags merged
|
|
8102
8549
|
*/
|
|
8103
|
-
|
|
8550
|
+
200: {
|
|
8551
|
+
[key: string]: string;
|
|
8552
|
+
};
|
|
8104
8553
|
};
|
|
8105
|
-
type
|
|
8106
|
-
type
|
|
8554
|
+
type MergeDocumentTagsResponse = MergeDocumentTagsResponses[keyof MergeDocumentTagsResponses];
|
|
8555
|
+
type ReplaceDocumentTagsData = {
|
|
8107
8556
|
body: {
|
|
8108
|
-
|
|
8109
|
-
expected_output?: string | null;
|
|
8110
|
-
metadata?: {
|
|
8111
|
-
[key: string]: unknown;
|
|
8112
|
-
} | null;
|
|
8557
|
+
[key: string]: string;
|
|
8113
8558
|
};
|
|
8114
8559
|
path: {
|
|
8115
8560
|
/**
|
|
@@ -8117,43 +8562,80 @@ type UpdateDatasetItemData = {
|
|
|
8117
8562
|
*/
|
|
8118
8563
|
project_id: string;
|
|
8119
8564
|
/**
|
|
8120
|
-
*
|
|
8565
|
+
* Document ID
|
|
8121
8566
|
*/
|
|
8122
|
-
|
|
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: {
|
|
8123
8598
|
/**
|
|
8124
|
-
*
|
|
8599
|
+
* Single text to embed.
|
|
8125
8600
|
*/
|
|
8126
|
-
|
|
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;
|
|
8127
8612
|
};
|
|
8128
8613
|
query?: never;
|
|
8129
|
-
url: '/v1/projects/{project_id}/
|
|
8614
|
+
url: '/v1/projects/{project_id}/embeddings';
|
|
8130
8615
|
};
|
|
8131
|
-
type
|
|
8616
|
+
type CreateEmbeddingsErrors = {
|
|
8132
8617
|
/**
|
|
8133
|
-
*
|
|
8618
|
+
* Invalid request body
|
|
8134
8619
|
*/
|
|
8135
|
-
400:
|
|
8620
|
+
400: ErrorResponse;
|
|
8136
8621
|
/**
|
|
8137
8622
|
* Unauthorized
|
|
8138
8623
|
*/
|
|
8139
|
-
401:
|
|
8140
|
-
/**
|
|
8141
|
-
* Forbidden
|
|
8142
|
-
*/
|
|
8143
|
-
403: unknown;
|
|
8624
|
+
401: ErrorResponse;
|
|
8144
8625
|
/**
|
|
8145
|
-
*
|
|
8626
|
+
* Embedding service not configured
|
|
8146
8627
|
*/
|
|
8147
|
-
|
|
8628
|
+
503: ErrorResponse;
|
|
8148
8629
|
};
|
|
8149
|
-
type
|
|
8630
|
+
type CreateEmbeddingsError = CreateEmbeddingsErrors[keyof CreateEmbeddingsErrors];
|
|
8631
|
+
type CreateEmbeddingsResponses = {
|
|
8150
8632
|
/**
|
|
8151
|
-
*
|
|
8633
|
+
* Embeddings generated successfully
|
|
8152
8634
|
*/
|
|
8153
|
-
200:
|
|
8635
|
+
200: EmbeddingsResponse;
|
|
8154
8636
|
};
|
|
8155
|
-
type
|
|
8156
|
-
type
|
|
8637
|
+
type CreateEmbeddingsResponse = CreateEmbeddingsResponses[keyof CreateEmbeddingsResponses];
|
|
8638
|
+
type ListDatasetsData = {
|
|
8157
8639
|
body?: never;
|
|
8158
8640
|
path: {
|
|
8159
8641
|
/**
|
|
@@ -8171,9 +8653,9 @@ type ListEvalsData = {
|
|
|
8171
8653
|
*/
|
|
8172
8654
|
offset?: number;
|
|
8173
8655
|
};
|
|
8174
|
-
url: '/v1/projects/{project_id}/
|
|
8656
|
+
url: '/v1/projects/{project_id}/datasets';
|
|
8175
8657
|
};
|
|
8176
|
-
type
|
|
8658
|
+
type ListDatasetsErrors = {
|
|
8177
8659
|
/**
|
|
8178
8660
|
* Unauthorized
|
|
8179
8661
|
*/
|
|
@@ -8187,37 +8669,28 @@ type ListEvalsErrors = {
|
|
|
8187
8669
|
*/
|
|
8188
8670
|
500: unknown;
|
|
8189
8671
|
};
|
|
8190
|
-
type
|
|
8672
|
+
type ListDatasetsResponses = {
|
|
8191
8673
|
/**
|
|
8192
|
-
* List of
|
|
8674
|
+
* List of datasets
|
|
8193
8675
|
*/
|
|
8194
8676
|
200: {
|
|
8195
|
-
data: Array<
|
|
8677
|
+
data: Array<Dataset>;
|
|
8196
8678
|
total: number;
|
|
8197
8679
|
limit: number;
|
|
8198
8680
|
offset: number;
|
|
8199
8681
|
};
|
|
8200
8682
|
};
|
|
8201
|
-
type
|
|
8202
|
-
type
|
|
8683
|
+
type ListDatasetsResponse = ListDatasetsResponses[keyof ListDatasetsResponses];
|
|
8684
|
+
type CreateDatasetData = {
|
|
8203
8685
|
body: {
|
|
8204
8686
|
/**
|
|
8205
8687
|
* Unique name within the project
|
|
8206
8688
|
*/
|
|
8207
8689
|
name: string;
|
|
8208
8690
|
/**
|
|
8209
|
-
*
|
|
8210
|
-
*/
|
|
8211
|
-
agent_id: string;
|
|
8212
|
-
/**
|
|
8213
|
-
* The dataset to run it against
|
|
8214
|
-
*/
|
|
8215
|
-
dataset_id: string;
|
|
8216
|
-
scorers: Scorers;
|
|
8217
|
-
/**
|
|
8218
|
-
* 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
|
|
8219
8692
|
*/
|
|
8220
|
-
|
|
8693
|
+
description?: string | null;
|
|
8221
8694
|
};
|
|
8222
8695
|
path: {
|
|
8223
8696
|
/**
|
|
@@ -8226,11 +8699,11 @@ type CreateEvalData = {
|
|
|
8226
8699
|
project_id: string;
|
|
8227
8700
|
};
|
|
8228
8701
|
query?: never;
|
|
8229
|
-
url: '/v1/projects/{project_id}/
|
|
8702
|
+
url: '/v1/projects/{project_id}/datasets';
|
|
8230
8703
|
};
|
|
8231
|
-
type
|
|
8704
|
+
type CreateDatasetErrors = {
|
|
8232
8705
|
/**
|
|
8233
|
-
* Bad request (
|
|
8706
|
+
* Bad request (missing or invalid name)
|
|
8234
8707
|
*/
|
|
8235
8708
|
400: unknown;
|
|
8236
8709
|
/**
|
|
@@ -8242,7 +8715,7 @@ type CreateEvalErrors = {
|
|
|
8242
8715
|
*/
|
|
8243
8716
|
403: unknown;
|
|
8244
8717
|
/**
|
|
8245
|
-
*
|
|
8718
|
+
* A dataset with that name already exists in the project
|
|
8246
8719
|
*/
|
|
8247
8720
|
409: unknown;
|
|
8248
8721
|
/**
|
|
@@ -8250,14 +8723,14 @@ type CreateEvalErrors = {
|
|
|
8250
8723
|
*/
|
|
8251
8724
|
500: unknown;
|
|
8252
8725
|
};
|
|
8253
|
-
type
|
|
8726
|
+
type CreateDatasetResponses = {
|
|
8254
8727
|
/**
|
|
8255
|
-
*
|
|
8728
|
+
* Dataset created successfully
|
|
8256
8729
|
*/
|
|
8257
|
-
201:
|
|
8730
|
+
201: Dataset;
|
|
8258
8731
|
};
|
|
8259
|
-
type
|
|
8260
|
-
type
|
|
8732
|
+
type CreateDatasetResponse = CreateDatasetResponses[keyof CreateDatasetResponses];
|
|
8733
|
+
type DeleteDatasetData = {
|
|
8261
8734
|
body?: never;
|
|
8262
8735
|
path: {
|
|
8263
8736
|
/**
|
|
@@ -8265,14 +8738,14 @@ type DeleteEvalData = {
|
|
|
8265
8738
|
*/
|
|
8266
8739
|
project_id: string;
|
|
8267
8740
|
/**
|
|
8268
|
-
*
|
|
8741
|
+
* Dataset ID
|
|
8269
8742
|
*/
|
|
8270
|
-
|
|
8743
|
+
dataset_id: string;
|
|
8271
8744
|
};
|
|
8272
8745
|
query?: never;
|
|
8273
|
-
url: '/v1/projects/{project_id}/
|
|
8746
|
+
url: '/v1/projects/{project_id}/datasets/{dataset_id}';
|
|
8274
8747
|
};
|
|
8275
|
-
type
|
|
8748
|
+
type DeleteDatasetErrors = {
|
|
8276
8749
|
/**
|
|
8277
8750
|
* Unauthorized
|
|
8278
8751
|
*/
|
|
@@ -8282,18 +8755,18 @@ type DeleteEvalErrors = {
|
|
|
8282
8755
|
*/
|
|
8283
8756
|
403: unknown;
|
|
8284
8757
|
/**
|
|
8285
|
-
*
|
|
8758
|
+
* Dataset not found
|
|
8286
8759
|
*/
|
|
8287
8760
|
404: unknown;
|
|
8288
8761
|
};
|
|
8289
|
-
type
|
|
8762
|
+
type DeleteDatasetResponses = {
|
|
8290
8763
|
/**
|
|
8291
|
-
*
|
|
8764
|
+
* Dataset deleted successfully
|
|
8292
8765
|
*/
|
|
8293
8766
|
204: void;
|
|
8294
8767
|
};
|
|
8295
|
-
type
|
|
8296
|
-
type
|
|
8768
|
+
type DeleteDatasetResponse = DeleteDatasetResponses[keyof DeleteDatasetResponses];
|
|
8769
|
+
type GetDatasetData = {
|
|
8297
8770
|
body?: never;
|
|
8298
8771
|
path: {
|
|
8299
8772
|
/**
|
|
@@ -8301,14 +8774,14 @@ type GetEvalData = {
|
|
|
8301
8774
|
*/
|
|
8302
8775
|
project_id: string;
|
|
8303
8776
|
/**
|
|
8304
|
-
*
|
|
8777
|
+
* Dataset ID
|
|
8305
8778
|
*/
|
|
8306
|
-
|
|
8779
|
+
dataset_id: string;
|
|
8307
8780
|
};
|
|
8308
8781
|
query?: never;
|
|
8309
|
-
url: '/v1/projects/{project_id}/
|
|
8782
|
+
url: '/v1/projects/{project_id}/datasets/{dataset_id}';
|
|
8310
8783
|
};
|
|
8311
|
-
type
|
|
8784
|
+
type GetDatasetErrors = {
|
|
8312
8785
|
/**
|
|
8313
8786
|
* Unauthorized
|
|
8314
8787
|
*/
|
|
@@ -8318,24 +8791,21 @@ type GetEvalErrors = {
|
|
|
8318
8791
|
*/
|
|
8319
8792
|
403: unknown;
|
|
8320
8793
|
/**
|
|
8321
|
-
*
|
|
8794
|
+
* Dataset not found
|
|
8322
8795
|
*/
|
|
8323
8796
|
404: unknown;
|
|
8324
8797
|
};
|
|
8325
|
-
type
|
|
8798
|
+
type GetDatasetResponses = {
|
|
8326
8799
|
/**
|
|
8327
|
-
*
|
|
8800
|
+
* Dataset details
|
|
8328
8801
|
*/
|
|
8329
|
-
200:
|
|
8802
|
+
200: Dataset;
|
|
8330
8803
|
};
|
|
8331
|
-
type
|
|
8332
|
-
type
|
|
8804
|
+
type GetDatasetResponse = GetDatasetResponses[keyof GetDatasetResponses];
|
|
8805
|
+
type UpdateDatasetData = {
|
|
8333
8806
|
body: {
|
|
8334
8807
|
name?: string;
|
|
8335
|
-
|
|
8336
|
-
dataset_id?: string;
|
|
8337
|
-
scorers?: Scorers;
|
|
8338
|
-
pass_threshold?: number | null;
|
|
8808
|
+
description?: string | null;
|
|
8339
8809
|
};
|
|
8340
8810
|
path: {
|
|
8341
8811
|
/**
|
|
@@ -8343,14 +8813,14 @@ type UpdateEvalData = {
|
|
|
8343
8813
|
*/
|
|
8344
8814
|
project_id: string;
|
|
8345
8815
|
/**
|
|
8346
|
-
*
|
|
8816
|
+
* Dataset ID
|
|
8347
8817
|
*/
|
|
8348
|
-
|
|
8818
|
+
dataset_id: string;
|
|
8349
8819
|
};
|
|
8350
8820
|
query?: never;
|
|
8351
|
-
url: '/v1/projects/{project_id}/
|
|
8821
|
+
url: '/v1/projects/{project_id}/datasets/{dataset_id}';
|
|
8352
8822
|
};
|
|
8353
|
-
type
|
|
8823
|
+
type UpdateDatasetErrors = {
|
|
8354
8824
|
/**
|
|
8355
8825
|
* Bad request
|
|
8356
8826
|
*/
|
|
@@ -8364,22 +8834,22 @@ type UpdateEvalErrors = {
|
|
|
8364
8834
|
*/
|
|
8365
8835
|
403: unknown;
|
|
8366
8836
|
/**
|
|
8367
|
-
*
|
|
8837
|
+
* Dataset not found
|
|
8368
8838
|
*/
|
|
8369
8839
|
404: unknown;
|
|
8370
8840
|
/**
|
|
8371
|
-
*
|
|
8841
|
+
* A dataset with that name already exists in the project
|
|
8372
8842
|
*/
|
|
8373
8843
|
409: unknown;
|
|
8374
8844
|
};
|
|
8375
|
-
type
|
|
8845
|
+
type UpdateDatasetResponses = {
|
|
8376
8846
|
/**
|
|
8377
|
-
*
|
|
8847
|
+
* Dataset updated successfully
|
|
8378
8848
|
*/
|
|
8379
|
-
200:
|
|
8849
|
+
200: Dataset;
|
|
8380
8850
|
};
|
|
8381
|
-
type
|
|
8382
|
-
type
|
|
8851
|
+
type UpdateDatasetResponse = UpdateDatasetResponses[keyof UpdateDatasetResponses];
|
|
8852
|
+
type ListDatasetItemsData = {
|
|
8383
8853
|
body?: never;
|
|
8384
8854
|
path: {
|
|
8385
8855
|
/**
|
|
@@ -8387,9 +8857,9 @@ type ListEvalRunsData = {
|
|
|
8387
8857
|
*/
|
|
8388
8858
|
project_id: string;
|
|
8389
8859
|
/**
|
|
8390
|
-
*
|
|
8860
|
+
* Dataset ID
|
|
8391
8861
|
*/
|
|
8392
|
-
|
|
8862
|
+
dataset_id: string;
|
|
8393
8863
|
};
|
|
8394
8864
|
query?: {
|
|
8395
8865
|
/**
|
|
@@ -8401,9 +8871,9 @@ type ListEvalRunsData = {
|
|
|
8401
8871
|
*/
|
|
8402
8872
|
offset?: number;
|
|
8403
8873
|
};
|
|
8404
|
-
url: '/v1/projects/{project_id}/
|
|
8874
|
+
url: '/v1/projects/{project_id}/datasets/{dataset_id}/items';
|
|
8405
8875
|
};
|
|
8406
|
-
type
|
|
8876
|
+
type ListDatasetItemsErrors = {
|
|
8407
8877
|
/**
|
|
8408
8878
|
* Unauthorized
|
|
8409
8879
|
*/
|
|
@@ -8413,36 +8883,90 @@ type ListEvalRunsErrors = {
|
|
|
8413
8883
|
*/
|
|
8414
8884
|
403: unknown;
|
|
8415
8885
|
/**
|
|
8416
|
-
*
|
|
8886
|
+
* Dataset not found
|
|
8417
8887
|
*/
|
|
8418
8888
|
404: unknown;
|
|
8419
8889
|
};
|
|
8420
|
-
type
|
|
8890
|
+
type ListDatasetItemsResponses = {
|
|
8421
8891
|
/**
|
|
8422
|
-
* List of
|
|
8892
|
+
* List of dataset items
|
|
8423
8893
|
*/
|
|
8424
8894
|
200: {
|
|
8425
|
-
data: Array<
|
|
8895
|
+
data: Array<DatasetItem>;
|
|
8426
8896
|
total: number;
|
|
8427
8897
|
limit: number;
|
|
8428
8898
|
offset: number;
|
|
8429
8899
|
};
|
|
8430
8900
|
};
|
|
8431
|
-
type
|
|
8432
|
-
type
|
|
8901
|
+
type ListDatasetItemsResponse = ListDatasetItemsResponses[keyof ListDatasetItemsResponses];
|
|
8902
|
+
type CreateDatasetItemData = {
|
|
8433
8903
|
body: {
|
|
8904
|
+
input: DatasetItemInput;
|
|
8434
8905
|
/**
|
|
8435
|
-
*
|
|
8906
|
+
* Reference answer for exact_match / embedding_similarity / llm_judge scorers
|
|
8436
8907
|
*/
|
|
8437
|
-
|
|
8908
|
+
expected_output?: string | null;
|
|
8438
8909
|
/**
|
|
8439
|
-
*
|
|
8910
|
+
* Free-form tags, opaque to the platform
|
|
8440
8911
|
*/
|
|
8441
|
-
|
|
8912
|
+
metadata?: {
|
|
8913
|
+
[key: string]: unknown;
|
|
8914
|
+
} | null;
|
|
8915
|
+
};
|
|
8916
|
+
path: {
|
|
8442
8917
|
/**
|
|
8443
|
-
*
|
|
8918
|
+
* Project public ID (proj_ prefix).
|
|
8444
8919
|
*/
|
|
8445
|
-
|
|
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;
|
|
8446
8970
|
};
|
|
8447
8971
|
path: {
|
|
8448
8972
|
/**
|
|
@@ -8450,16 +8974,16 @@ type StartEvalRunData = {
|
|
|
8450
8974
|
*/
|
|
8451
8975
|
project_id: string;
|
|
8452
8976
|
/**
|
|
8453
|
-
*
|
|
8977
|
+
* Dataset ID
|
|
8454
8978
|
*/
|
|
8455
|
-
|
|
8979
|
+
dataset_id: string;
|
|
8456
8980
|
};
|
|
8457
8981
|
query?: never;
|
|
8458
|
-
url: '/v1/projects/{project_id}/
|
|
8982
|
+
url: '/v1/projects/{project_id}/datasets/{dataset_id}/items/from-generation';
|
|
8459
8983
|
};
|
|
8460
|
-
type
|
|
8984
|
+
type CreateDatasetItemFromGenerationErrors = {
|
|
8461
8985
|
/**
|
|
8462
|
-
* Bad request (
|
|
8986
|
+
* Bad request (generation_id missing, or the generation belongs to a different project than the dataset)
|
|
8463
8987
|
*/
|
|
8464
8988
|
400: unknown;
|
|
8465
8989
|
/**
|
|
@@ -8471,22 +8995,22 @@ type StartEvalRunErrors = {
|
|
|
8471
8995
|
*/
|
|
8472
8996
|
403: unknown;
|
|
8473
8997
|
/**
|
|
8474
|
-
*
|
|
8998
|
+
* Dataset or generation not found
|
|
8475
8999
|
*/
|
|
8476
9000
|
404: unknown;
|
|
8477
9001
|
/**
|
|
8478
|
-
*
|
|
9002
|
+
* The generation has not completed, or its content was never stored or has been purged
|
|
8479
9003
|
*/
|
|
8480
|
-
|
|
9004
|
+
409: unknown;
|
|
8481
9005
|
};
|
|
8482
|
-
type
|
|
9006
|
+
type CreateDatasetItemFromGenerationResponses = {
|
|
8483
9007
|
/**
|
|
8484
|
-
*
|
|
9008
|
+
* Dataset item created from the generation
|
|
8485
9009
|
*/
|
|
8486
|
-
201:
|
|
9010
|
+
201: DatasetItem;
|
|
8487
9011
|
};
|
|
8488
|
-
type
|
|
8489
|
-
type
|
|
9012
|
+
type CreateDatasetItemFromGenerationResponse = CreateDatasetItemFromGenerationResponses[keyof CreateDatasetItemFromGenerationResponses];
|
|
9013
|
+
type DeleteDatasetItemData = {
|
|
8490
9014
|
body?: never;
|
|
8491
9015
|
path: {
|
|
8492
9016
|
/**
|
|
@@ -8494,18 +9018,18 @@ type GetEvalRunData = {
|
|
|
8494
9018
|
*/
|
|
8495
9019
|
project_id: string;
|
|
8496
9020
|
/**
|
|
8497
|
-
*
|
|
9021
|
+
* Dataset ID
|
|
8498
9022
|
*/
|
|
8499
|
-
|
|
9023
|
+
dataset_id: string;
|
|
8500
9024
|
/**
|
|
8501
|
-
*
|
|
9025
|
+
* Dataset item ID
|
|
8502
9026
|
*/
|
|
8503
|
-
|
|
9027
|
+
item_id: string;
|
|
8504
9028
|
};
|
|
8505
9029
|
query?: never;
|
|
8506
|
-
url: '/v1/projects/{project_id}/
|
|
9030
|
+
url: '/v1/projects/{project_id}/datasets/{dataset_id}/items/{item_id}';
|
|
8507
9031
|
};
|
|
8508
|
-
type
|
|
9032
|
+
type DeleteDatasetItemErrors = {
|
|
8509
9033
|
/**
|
|
8510
9034
|
* Unauthorized
|
|
8511
9035
|
*/
|
|
@@ -8515,32 +9039,74 @@ type GetEvalRunErrors = {
|
|
|
8515
9039
|
*/
|
|
8516
9040
|
403: unknown;
|
|
8517
9041
|
/**
|
|
8518
|
-
*
|
|
9042
|
+
* Dataset or item not found
|
|
8519
9043
|
*/
|
|
8520
9044
|
404: unknown;
|
|
8521
9045
|
};
|
|
8522
|
-
type
|
|
9046
|
+
type DeleteDatasetItemResponses = {
|
|
8523
9047
|
/**
|
|
8524
|
-
*
|
|
9048
|
+
* Dataset item deleted successfully
|
|
8525
9049
|
*/
|
|
8526
|
-
|
|
9050
|
+
204: void;
|
|
8527
9051
|
};
|
|
8528
|
-
type
|
|
8529
|
-
type
|
|
8530
|
-
body
|
|
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
|
+
};
|
|
8531
9061
|
path: {
|
|
8532
9062
|
/**
|
|
8533
9063
|
* Project public ID (proj_ prefix).
|
|
8534
9064
|
*/
|
|
8535
9065
|
project_id: string;
|
|
8536
9066
|
/**
|
|
8537
|
-
*
|
|
9067
|
+
* Dataset ID
|
|
8538
9068
|
*/
|
|
8539
|
-
|
|
9069
|
+
dataset_id: string;
|
|
8540
9070
|
/**
|
|
8541
|
-
*
|
|
9071
|
+
* Dataset item ID
|
|
8542
9072
|
*/
|
|
8543
|
-
|
|
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;
|
|
8544
9110
|
};
|
|
8545
9111
|
query?: {
|
|
8546
9112
|
/**
|
|
@@ -8552,9 +9118,9 @@ type ListEvalResultsData = {
|
|
|
8552
9118
|
*/
|
|
8553
9119
|
offset?: number;
|
|
8554
9120
|
};
|
|
8555
|
-
url: '/v1/projects/{project_id}/evals
|
|
9121
|
+
url: '/v1/projects/{project_id}/evals';
|
|
8556
9122
|
};
|
|
8557
|
-
type
|
|
9123
|
+
type ListEvalsErrors = {
|
|
8558
9124
|
/**
|
|
8559
9125
|
* Unauthorized
|
|
8560
9126
|
*/
|
|
@@ -8564,44 +9130,54 @@ type ListEvalResultsErrors = {
|
|
|
8564
9130
|
*/
|
|
8565
9131
|
403: unknown;
|
|
8566
9132
|
/**
|
|
8567
|
-
*
|
|
9133
|
+
* Internal server error
|
|
8568
9134
|
*/
|
|
8569
|
-
|
|
9135
|
+
500: unknown;
|
|
8570
9136
|
};
|
|
8571
|
-
type
|
|
9137
|
+
type ListEvalsResponses = {
|
|
8572
9138
|
/**
|
|
8573
|
-
* List of
|
|
9139
|
+
* List of evals
|
|
8574
9140
|
*/
|
|
8575
9141
|
200: {
|
|
8576
|
-
data: Array<
|
|
9142
|
+
data: Array<Eval>;
|
|
8577
9143
|
total: number;
|
|
8578
9144
|
limit: number;
|
|
8579
9145
|
offset: number;
|
|
8580
9146
|
};
|
|
8581
9147
|
};
|
|
8582
|
-
type
|
|
8583
|
-
type
|
|
8584
|
-
body
|
|
8585
|
-
path: {
|
|
9148
|
+
type ListEvalsResponse = ListEvalsResponses[keyof ListEvalsResponses];
|
|
9149
|
+
type CreateEvalData = {
|
|
9150
|
+
body: {
|
|
8586
9151
|
/**
|
|
8587
|
-
*
|
|
9152
|
+
* Unique name within the project
|
|
8588
9153
|
*/
|
|
8589
|
-
|
|
9154
|
+
name: string;
|
|
8590
9155
|
/**
|
|
8591
|
-
*
|
|
9156
|
+
* The agent under test
|
|
8592
9157
|
*/
|
|
8593
|
-
|
|
9158
|
+
agent_id: string;
|
|
8594
9159
|
/**
|
|
8595
|
-
*
|
|
9160
|
+
* The dataset to run it against
|
|
8596
9161
|
*/
|
|
8597
|
-
|
|
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;
|
|
8598
9174
|
};
|
|
8599
9175
|
query?: never;
|
|
8600
|
-
url: '/v1/projects/{project_id}/evals
|
|
9176
|
+
url: '/v1/projects/{project_id}/evals';
|
|
8601
9177
|
};
|
|
8602
|
-
type
|
|
9178
|
+
type CreateEvalErrors = {
|
|
8603
9179
|
/**
|
|
8604
|
-
*
|
|
9180
|
+
* Bad request (unknown scorer type, cross-project reference, invalid threshold)
|
|
8605
9181
|
*/
|
|
8606
9182
|
400: unknown;
|
|
8607
9183
|
/**
|
|
@@ -8613,76 +9189,1246 @@ type CancelEvalRunErrors = {
|
|
|
8613
9189
|
*/
|
|
8614
9190
|
403: unknown;
|
|
8615
9191
|
/**
|
|
8616
|
-
*
|
|
9192
|
+
* An eval with that name already exists in the project
|
|
8617
9193
|
*/
|
|
8618
|
-
|
|
9194
|
+
409: unknown;
|
|
8619
9195
|
/**
|
|
8620
9196
|
* Internal server error
|
|
8621
9197
|
*/
|
|
8622
9198
|
500: unknown;
|
|
8623
9199
|
};
|
|
8624
|
-
type
|
|
9200
|
+
type CreateEvalResponses = {
|
|
8625
9201
|
/**
|
|
8626
|
-
* Eval
|
|
9202
|
+
* Eval created successfully
|
|
8627
9203
|
*/
|
|
8628
|
-
|
|
9204
|
+
201: Eval;
|
|
8629
9205
|
};
|
|
8630
|
-
type
|
|
8631
|
-
type
|
|
9206
|
+
type CreateEvalResponse = CreateEvalResponses[keyof CreateEvalResponses];
|
|
9207
|
+
type DeleteEvalData = {
|
|
8632
9208
|
body?: never;
|
|
8633
9209
|
path: {
|
|
8634
9210
|
/**
|
|
8635
9211
|
* Project public ID (proj_ prefix).
|
|
8636
9212
|
*/
|
|
8637
9213
|
project_id: string;
|
|
8638
|
-
};
|
|
8639
|
-
query?: {
|
|
8640
|
-
/**
|
|
8641
|
-
* Filter by agent public ID
|
|
8642
|
-
*/
|
|
8643
|
-
agent_id?: string;
|
|
8644
9214
|
/**
|
|
8645
|
-
*
|
|
8646
|
-
*/
|
|
8647
|
-
trace_id?: string;
|
|
8648
|
-
/**
|
|
8649
|
-
* 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.
|
|
8650
|
-
*
|
|
9215
|
+
* Eval ID
|
|
8651
9216
|
*/
|
|
8652
|
-
|
|
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: {
|
|
8653
10394
|
/**
|
|
8654
|
-
*
|
|
10395
|
+
* Project public ID (proj_ prefix).
|
|
8655
10396
|
*/
|
|
8656
|
-
|
|
8657
|
-
limit?: number;
|
|
8658
|
-
offset?: number;
|
|
10397
|
+
project_id: string;
|
|
8659
10398
|
};
|
|
8660
|
-
|
|
10399
|
+
query?: never;
|
|
10400
|
+
url: '/v1/projects/{project_id}/ingestion-rules';
|
|
8661
10401
|
};
|
|
8662
|
-
type
|
|
10402
|
+
type CreateIngestionRuleErrors = {
|
|
10403
|
+
/**
|
|
10404
|
+
* Validation failed (e.g. tool_id and agent_id both set or both missing)
|
|
10405
|
+
*/
|
|
10406
|
+
400: unknown;
|
|
8663
10407
|
/**
|
|
8664
10408
|
* Unauthorized
|
|
8665
10409
|
*/
|
|
8666
|
-
401:
|
|
10410
|
+
401: unknown;
|
|
8667
10411
|
/**
|
|
8668
10412
|
* Forbidden
|
|
8669
10413
|
*/
|
|
8670
|
-
403:
|
|
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;
|
|
8671
10423
|
};
|
|
8672
|
-
type
|
|
8673
|
-
type ListGenerationsResponses = {
|
|
10424
|
+
type CreateIngestionRuleResponses = {
|
|
8674
10425
|
/**
|
|
8675
|
-
*
|
|
10426
|
+
* Ingestion rule created
|
|
8676
10427
|
*/
|
|
8677
|
-
|
|
8678
|
-
data?: Array<Generation>;
|
|
8679
|
-
total?: number;
|
|
8680
|
-
limit?: number;
|
|
8681
|
-
offset?: number;
|
|
8682
|
-
};
|
|
10428
|
+
201: IngestionRule;
|
|
8683
10429
|
};
|
|
8684
|
-
type
|
|
8685
|
-
type
|
|
10430
|
+
type CreateIngestionRuleResponse = CreateIngestionRuleResponses[keyof CreateIngestionRuleResponses];
|
|
10431
|
+
type DeleteIngestionRuleData = {
|
|
8686
10432
|
body?: never;
|
|
8687
10433
|
path: {
|
|
8688
10434
|
/**
|
|
@@ -8690,129 +10436,178 @@ type GetGenerationData = {
|
|
|
8690
10436
|
*/
|
|
8691
10437
|
project_id: string;
|
|
8692
10438
|
/**
|
|
8693
|
-
*
|
|
10439
|
+
* Ingestion rule ID
|
|
8694
10440
|
*/
|
|
8695
|
-
|
|
10441
|
+
ingestion_rule_id: string;
|
|
8696
10442
|
};
|
|
8697
10443
|
query?: never;
|
|
8698
|
-
url: '/v1/projects/{project_id}/
|
|
10444
|
+
url: '/v1/projects/{project_id}/ingestion-rules/{ingestion_rule_id}';
|
|
8699
10445
|
};
|
|
8700
|
-
type
|
|
10446
|
+
type DeleteIngestionRuleErrors = {
|
|
8701
10447
|
/**
|
|
8702
10448
|
* Unauthorized
|
|
8703
10449
|
*/
|
|
8704
|
-
401:
|
|
10450
|
+
401: unknown;
|
|
8705
10451
|
/**
|
|
8706
10452
|
* Forbidden
|
|
8707
10453
|
*/
|
|
8708
|
-
403:
|
|
10454
|
+
403: unknown;
|
|
8709
10455
|
/**
|
|
8710
|
-
*
|
|
10456
|
+
* Ingestion rule not found
|
|
8711
10457
|
*/
|
|
8712
|
-
404:
|
|
10458
|
+
404: unknown;
|
|
8713
10459
|
};
|
|
8714
|
-
type
|
|
8715
|
-
type GetGenerationResponses = {
|
|
10460
|
+
type DeleteIngestionRuleResponses = {
|
|
8716
10461
|
/**
|
|
8717
|
-
*
|
|
10462
|
+
* Ingestion rule deleted
|
|
8718
10463
|
*/
|
|
8719
|
-
|
|
10464
|
+
204: void;
|
|
8720
10465
|
};
|
|
8721
|
-
type
|
|
8722
|
-
type
|
|
8723
|
-
body
|
|
10466
|
+
type DeleteIngestionRuleResponse = DeleteIngestionRuleResponses[keyof DeleteIngestionRuleResponses];
|
|
10467
|
+
type GetIngestionRuleData = {
|
|
10468
|
+
body?: never;
|
|
8724
10469
|
path: {
|
|
8725
10470
|
/**
|
|
8726
10471
|
* Project public ID (proj_ prefix).
|
|
8727
10472
|
*/
|
|
8728
10473
|
project_id: string;
|
|
8729
10474
|
/**
|
|
8730
|
-
*
|
|
10475
|
+
* Ingestion rule ID
|
|
8731
10476
|
*/
|
|
8732
|
-
|
|
10477
|
+
ingestion_rule_id: string;
|
|
8733
10478
|
};
|
|
8734
10479
|
query?: never;
|
|
8735
|
-
url: '/v1/projects/{project_id}/
|
|
10480
|
+
url: '/v1/projects/{project_id}/ingestion-rules/{ingestion_rule_id}';
|
|
8736
10481
|
};
|
|
8737
|
-
type
|
|
8738
|
-
/**
|
|
8739
|
-
* Bad Request (e.g. metadata is not a JSON object)
|
|
8740
|
-
*/
|
|
8741
|
-
400: ErrorResponse;
|
|
10482
|
+
type GetIngestionRuleErrors = {
|
|
8742
10483
|
/**
|
|
8743
10484
|
* Unauthorized
|
|
8744
10485
|
*/
|
|
8745
|
-
401:
|
|
10486
|
+
401: unknown;
|
|
8746
10487
|
/**
|
|
8747
10488
|
* Forbidden
|
|
8748
10489
|
*/
|
|
8749
|
-
403:
|
|
10490
|
+
403: unknown;
|
|
8750
10491
|
/**
|
|
8751
|
-
*
|
|
10492
|
+
* Ingestion rule not found
|
|
8752
10493
|
*/
|
|
8753
|
-
404:
|
|
10494
|
+
404: unknown;
|
|
8754
10495
|
};
|
|
8755
|
-
type
|
|
8756
|
-
type UpdateGenerationResponses = {
|
|
10496
|
+
type GetIngestionRuleResponses = {
|
|
8757
10497
|
/**
|
|
8758
|
-
*
|
|
10498
|
+
* Ingestion rule details
|
|
8759
10499
|
*/
|
|
8760
|
-
200:
|
|
10500
|
+
200: IngestionRule;
|
|
8761
10501
|
};
|
|
8762
|
-
type
|
|
8763
|
-
type
|
|
8764
|
-
body
|
|
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
|
+
};
|
|
8765
10524
|
path: {
|
|
8766
10525
|
/**
|
|
8767
10526
|
* Project public ID (proj_ prefix).
|
|
8768
10527
|
*/
|
|
8769
10528
|
project_id: string;
|
|
8770
10529
|
/**
|
|
8771
|
-
*
|
|
10530
|
+
* Ingestion rule ID
|
|
8772
10531
|
*/
|
|
8773
|
-
|
|
10532
|
+
ingestion_rule_id: string;
|
|
8774
10533
|
};
|
|
8775
10534
|
query?: never;
|
|
8776
|
-
url: '/v1/projects/{project_id}/
|
|
10535
|
+
url: '/v1/projects/{project_id}/ingestion-rules/{ingestion_rule_id}';
|
|
8777
10536
|
};
|
|
8778
|
-
type
|
|
10537
|
+
type UpdateIngestionRuleErrors = {
|
|
10538
|
+
/**
|
|
10539
|
+
* Validation failed
|
|
10540
|
+
*/
|
|
10541
|
+
400: unknown;
|
|
8779
10542
|
/**
|
|
8780
10543
|
* Unauthorized
|
|
8781
10544
|
*/
|
|
8782
|
-
401:
|
|
10545
|
+
401: unknown;
|
|
8783
10546
|
/**
|
|
8784
10547
|
* Forbidden
|
|
8785
10548
|
*/
|
|
8786
|
-
403:
|
|
10549
|
+
403: unknown;
|
|
8787
10550
|
/**
|
|
8788
|
-
*
|
|
10551
|
+
* Ingestion rule not found
|
|
8789
10552
|
*/
|
|
8790
|
-
404:
|
|
10553
|
+
404: unknown;
|
|
10554
|
+
/**
|
|
10555
|
+
* A rule for this content_type_glob already exists in the project
|
|
10556
|
+
*/
|
|
10557
|
+
409: unknown;
|
|
8791
10558
|
};
|
|
8792
|
-
type
|
|
8793
|
-
type PurgeGenerationContentResponses = {
|
|
10559
|
+
type UpdateIngestionRuleResponses = {
|
|
8794
10560
|
/**
|
|
8795
|
-
*
|
|
10561
|
+
* Ingestion rule updated
|
|
8796
10562
|
*/
|
|
8797
|
-
200:
|
|
10563
|
+
200: IngestionRule;
|
|
8798
10564
|
};
|
|
8799
|
-
type
|
|
8800
|
-
type
|
|
8801
|
-
body
|
|
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
|
+
};
|
|
8802
10597
|
path: {
|
|
8803
10598
|
/**
|
|
8804
10599
|
* Project public ID (proj_ prefix).
|
|
8805
10600
|
*/
|
|
8806
10601
|
project_id: string;
|
|
8807
|
-
/**
|
|
8808
|
-
* Public ID of the generation
|
|
8809
|
-
*/
|
|
8810
|
-
generation_id: string;
|
|
8811
10602
|
};
|
|
8812
10603
|
query?: never;
|
|
8813
|
-
url: '/v1/projects/{project_id}/
|
|
10604
|
+
url: '/v1/projects/{project_id}/knowledge/search';
|
|
8814
10605
|
};
|
|
8815
|
-
type
|
|
10606
|
+
type SearchKnowledgeErrors = {
|
|
10607
|
+
/**
|
|
10608
|
+
* Bad request — at least one search parameter is required
|
|
10609
|
+
*/
|
|
10610
|
+
400: ErrorResponse;
|
|
8816
10611
|
/**
|
|
8817
10612
|
* Unauthorized
|
|
8818
10613
|
*/
|
|
@@ -8821,19 +10616,17 @@ type GetGenerationTranscriptErrors = {
|
|
|
8821
10616
|
* Forbidden
|
|
8822
10617
|
*/
|
|
8823
10618
|
403: ErrorResponse;
|
|
8824
|
-
/**
|
|
8825
|
-
* Generation not found
|
|
8826
|
-
*/
|
|
8827
|
-
404: ErrorResponse;
|
|
8828
10619
|
};
|
|
8829
|
-
type
|
|
8830
|
-
type
|
|
10620
|
+
type SearchKnowledgeError = SearchKnowledgeErrors[keyof SearchKnowledgeErrors];
|
|
10621
|
+
type SearchKnowledgeResponses = {
|
|
8831
10622
|
/**
|
|
8832
|
-
*
|
|
10623
|
+
* Search results
|
|
8833
10624
|
*/
|
|
8834
|
-
200:
|
|
10625
|
+
200: {
|
|
10626
|
+
results: Array<KnowledgeResult>;
|
|
10627
|
+
};
|
|
8835
10628
|
};
|
|
8836
|
-
type
|
|
10629
|
+
type SearchKnowledgeResponse = SearchKnowledgeResponses[keyof SearchKnowledgeResponses];
|
|
8837
10630
|
type ListModelRoutesData = {
|
|
8838
10631
|
body?: never;
|
|
8839
10632
|
path: {
|
|
@@ -12957,7 +14750,8 @@ declare class AiProviders {
|
|
|
12957
14750
|
* Which models are reachable is a property of the credential, not of the provider type: a Vertex provider sees only the publisher models its Google Cloud project and location serve, and a Bedrock provider only the foundation models enabled in its region. Reading the list is how a caller avoids pinning a model that fails at generation time.
|
|
12958
14751
|
* Not every provider type can answer. `azure` lists deployments an operator named rather than models, and `ollama` lists whatever was pulled onto that host, so both return `400 MODEL_LISTING_UNSUPPORTED`.
|
|
12959
14752
|
* Listing resolves credentials the same way generation does, so a record that can generate can list. The API-key types (`openai`, `groq`, `xai`, `gateway`, `custom`, `anthropic`, `google`) use the record's linked secret and cannot list without one. `bedrock` and `vertex` use the linked secret when there is one — IAM keys or a Bedrock API key, a Google service-account key — and otherwise fall back to the server environment (the AWS default credential chain, Google Application Default Credentials), so a record with no `secret_id` can still list.
|
|
12960
|
-
* A Vertex record needs no `config.project` when its secret is a service-account key, since the key file names its own project. A Vertex record in express mode (API key) cannot list at all:
|
|
14753
|
+
* A Vertex record needs no `config.project` when its secret is a service-account key, since the key file names its own project. A Vertex record in express mode (API key) cannot list at all: the publisher-model listing rejects API keys and needs a credential that asserts a principal, so it returns `400 MODEL_LISTING_UNSUPPORTED`.
|
|
14754
|
+
* The Vertex answer is the publisher catalogue the record's `config.location` region serves. The project behind the credential is billed and quota'd for the call but does not filter the result, so a listed model may still be unavailable to that project at generation time.
|
|
12961
14755
|
*
|
|
12962
14756
|
*/
|
|
12963
14757
|
static listAiProviderModels<ThrowOnError extends boolean = false>(options: Options<ListAiProviderModelsData, ThrowOnError>): RequestResult<ListAiProviderModelsResponses, ListAiProviderModelsErrors, ThrowOnError>;
|
|
@@ -13163,6 +14957,108 @@ declare class Conversations {
|
|
|
13163
14957
|
*/
|
|
13164
14958
|
static replaceConversationTags<ThrowOnError extends boolean = false>(options: Options<ReplaceConversationTagsData, ThrowOnError>): RequestResult<ReplaceConversationTagsResponses, ReplaceConversationTagsErrors, ThrowOnError>;
|
|
13165
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
|
+
}
|
|
13166
15062
|
declare class Evaluations {
|
|
13167
15063
|
/**
|
|
13168
15064
|
* List datasets
|
|
@@ -13307,6 +15203,80 @@ declare class Evaluations {
|
|
|
13307
15203
|
*/
|
|
13308
15204
|
static cancelEvalRun<ThrowOnError extends boolean = false>(options: Options<CancelEvalRunData, ThrowOnError>): RequestResult<CancelEvalRunResponses, CancelEvalRunErrors, ThrowOnError>;
|
|
13309
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
|
+
}
|
|
13310
15280
|
declare class Generations {
|
|
13311
15281
|
/**
|
|
13312
15282
|
* List generations
|
|
@@ -13354,6 +15324,46 @@ declare class Generations {
|
|
|
13354
15324
|
*/
|
|
13355
15325
|
static getGenerationTranscript<ThrowOnError extends boolean = false>(options: Options<GetGenerationTranscriptData, ThrowOnError>): RequestResult<GetGenerationTranscriptResponses, GetGenerationTranscriptErrors, ThrowOnError>;
|
|
13356
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
|
+
}
|
|
13357
15367
|
declare class ModelRoutes {
|
|
13358
15368
|
/**
|
|
13359
15369
|
* List model routes
|
|
@@ -14058,8 +16068,13 @@ declare class NaturaliClient {
|
|
|
14058
16068
|
readonly channels: typeof Channels;
|
|
14059
16069
|
readonly auth: typeof Auth;
|
|
14060
16070
|
readonly conversations: typeof Conversations;
|
|
16071
|
+
readonly documents: typeof Documents;
|
|
16072
|
+
readonly embeddings: typeof Embeddings;
|
|
14061
16073
|
readonly evaluations: typeof Evaluations;
|
|
16074
|
+
readonly files: typeof Files;
|
|
14062
16075
|
readonly generations: typeof Generations;
|
|
16076
|
+
readonly ingestionRules: typeof IngestionRules;
|
|
16077
|
+
readonly knowledge: typeof Knowledge;
|
|
14063
16078
|
readonly modelRoutes: typeof ModelRoutes;
|
|
14064
16079
|
readonly models: typeof Models;
|
|
14065
16080
|
readonly orchestrations: typeof Orchestrations;
|
|
@@ -14078,4 +16093,4 @@ declare class NaturaliClient {
|
|
|
14078
16093
|
constructor({ token, headers }?: NaturaliClientOptions);
|
|
14079
16094
|
}
|
|
14080
16095
|
//#endregion
|
|
14081
|
-
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 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 };
|