@naturali/sdk 0.51.1 → 0.53.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 +167 -74
- package/dist/index.d.cts +1592 -1178
- package/dist/index.d.mts +1592 -1178
- package/dist/index.mjs +167 -74
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1864,6 +1864,238 @@ type ModelList = {
|
|
|
1864
1864
|
*/
|
|
1865
1865
|
next_cursor: string | null;
|
|
1866
1866
|
};
|
|
1867
|
+
/**
|
|
1868
|
+
* A single execution unit in the graph. Required fields beyond `id` and `type` vary by node type (`agent`, `tool`, `transform`, `knowledge`, `memory_write`, `condition`, `human`, `approval`, `loop`, `poll`, `delay`, `webhook`, `emit_event`, `sub_orchestration`) — passed through exactly as sent, so it is not re-declared field by field here. Sent to (and validated by) `POST …/orchestrations/validate` before it is trusted.
|
|
1869
|
+
*
|
|
1870
|
+
*/
|
|
1871
|
+
type OrchestrationNode = {
|
|
1872
|
+
/**
|
|
1873
|
+
* Unique node identifier within this orchestration.
|
|
1874
|
+
*/
|
|
1875
|
+
id: string;
|
|
1876
|
+
/**
|
|
1877
|
+
* Node execution type.
|
|
1878
|
+
*/
|
|
1879
|
+
type: string;
|
|
1880
|
+
[key: string]: unknown;
|
|
1881
|
+
};
|
|
1882
|
+
/**
|
|
1883
|
+
* A directed connection between two nodes.
|
|
1884
|
+
*/
|
|
1885
|
+
type OrchestrationEdge = {
|
|
1886
|
+
/**
|
|
1887
|
+
* Source node ID.
|
|
1888
|
+
*/
|
|
1889
|
+
from: string;
|
|
1890
|
+
/**
|
|
1891
|
+
* Target node ID.
|
|
1892
|
+
*/
|
|
1893
|
+
to: string;
|
|
1894
|
+
[key: string]: unknown;
|
|
1895
|
+
};
|
|
1896
|
+
/**
|
|
1897
|
+
* An orchestration (pipeline) definition.
|
|
1898
|
+
*/
|
|
1899
|
+
type Orchestration = {
|
|
1900
|
+
/**
|
|
1901
|
+
* Public orchestration ID (orch_ prefix).
|
|
1902
|
+
*/
|
|
1903
|
+
id: string | null;
|
|
1904
|
+
project_id: string | null;
|
|
1905
|
+
name: string;
|
|
1906
|
+
description: string | null;
|
|
1907
|
+
nodes: Array<OrchestrationNode>;
|
|
1908
|
+
edges: Array<OrchestrationEdge>;
|
|
1909
|
+
/**
|
|
1910
|
+
* Optional JSON Schema the run's accumulated state is validated against.
|
|
1911
|
+
*/
|
|
1912
|
+
state_schema: {
|
|
1913
|
+
[key: string]: unknown;
|
|
1914
|
+
} | null;
|
|
1915
|
+
/**
|
|
1916
|
+
* Schema for a run's initial input; its top-level properties seed state.
|
|
1917
|
+
*/
|
|
1918
|
+
input_schema: {
|
|
1919
|
+
[key: string]: unknown;
|
|
1920
|
+
} | null;
|
|
1921
|
+
created_at: Date | null;
|
|
1922
|
+
updated_at: Date | null;
|
|
1923
|
+
};
|
|
1924
|
+
type CreateOrchestrationRequest = {
|
|
1925
|
+
name: string;
|
|
1926
|
+
description?: string | null;
|
|
1927
|
+
nodes: Array<OrchestrationNode>;
|
|
1928
|
+
edges: Array<OrchestrationEdge>;
|
|
1929
|
+
state_schema?: {
|
|
1930
|
+
[key: string]: unknown;
|
|
1931
|
+
} | null;
|
|
1932
|
+
input_schema?: {
|
|
1933
|
+
[key: string]: unknown;
|
|
1934
|
+
} | null;
|
|
1935
|
+
};
|
|
1936
|
+
/**
|
|
1937
|
+
* Every field is independently optional; send only what changes.
|
|
1938
|
+
*/
|
|
1939
|
+
type UpdateOrchestrationRequest = {
|
|
1940
|
+
name?: string;
|
|
1941
|
+
description?: string | null;
|
|
1942
|
+
nodes?: Array<OrchestrationNode>;
|
|
1943
|
+
edges?: Array<OrchestrationEdge>;
|
|
1944
|
+
state_schema?: {
|
|
1945
|
+
[key: string]: unknown;
|
|
1946
|
+
} | null;
|
|
1947
|
+
input_schema?: {
|
|
1948
|
+
[key: string]: unknown;
|
|
1949
|
+
} | null;
|
|
1950
|
+
};
|
|
1951
|
+
type OrchestrationList = {
|
|
1952
|
+
data: Array<Orchestration>;
|
|
1953
|
+
total: number | null;
|
|
1954
|
+
limit: number;
|
|
1955
|
+
offset: number;
|
|
1956
|
+
};
|
|
1957
|
+
type ValidateOrchestrationRequest = {
|
|
1958
|
+
nodes?: Array<OrchestrationNode>;
|
|
1959
|
+
edges?: Array<OrchestrationEdge>;
|
|
1960
|
+
input_schema?: {
|
|
1961
|
+
[key: string]: unknown;
|
|
1962
|
+
} | null;
|
|
1963
|
+
};
|
|
1964
|
+
type ValidationIssue = {
|
|
1965
|
+
/**
|
|
1966
|
+
* Location of the issue (e.g. `nodes[1].input_mapping.val`).
|
|
1967
|
+
*/
|
|
1968
|
+
path: string;
|
|
1969
|
+
message: string;
|
|
1970
|
+
};
|
|
1971
|
+
type ValidationResult = {
|
|
1972
|
+
/**
|
|
1973
|
+
* True when there are no blocking errors.
|
|
1974
|
+
*/
|
|
1975
|
+
valid: boolean;
|
|
1976
|
+
errors: Array<ValidationIssue>;
|
|
1977
|
+
warnings: Array<ValidationIssue>;
|
|
1978
|
+
};
|
|
1979
|
+
/**
|
|
1980
|
+
* Details for an `awaiting_input` run waiting on human input.
|
|
1981
|
+
*/
|
|
1982
|
+
type RequiredAction = {
|
|
1983
|
+
type: 'human_input' | 'webhook_receive';
|
|
1984
|
+
node_id: string;
|
|
1985
|
+
prompt: string;
|
|
1986
|
+
context: {
|
|
1987
|
+
[key: string]: unknown;
|
|
1988
|
+
};
|
|
1989
|
+
options?: Array<string> | null;
|
|
1990
|
+
};
|
|
1991
|
+
/**
|
|
1992
|
+
* Record of a single node execution within a run — resolved input, output, status and error — the orchestration analogue of a trace step.
|
|
1993
|
+
*
|
|
1994
|
+
*/
|
|
1995
|
+
type NodeExecution = {
|
|
1996
|
+
node_id: string;
|
|
1997
|
+
node_type?: string | null;
|
|
1998
|
+
/**
|
|
1999
|
+
* 1-based attempt number; a retried node produces one record per attempt.
|
|
2000
|
+
*/
|
|
2001
|
+
attempt: number;
|
|
2002
|
+
status: 'completed' | 'failed' | 'requires_action' | 'skipped';
|
|
2003
|
+
input?: {
|
|
2004
|
+
[key: string]: unknown;
|
|
2005
|
+
} | null;
|
|
2006
|
+
output?: {
|
|
2007
|
+
[key: string]: unknown;
|
|
2008
|
+
} | null;
|
|
2009
|
+
error?: {
|
|
2010
|
+
[key: string]: unknown;
|
|
2011
|
+
} | null;
|
|
2012
|
+
started_at?: Date | null;
|
|
2013
|
+
completed_at?: Date | null;
|
|
2014
|
+
};
|
|
2015
|
+
type OrchestrationRun = {
|
|
2016
|
+
/**
|
|
2017
|
+
* Public run ID (orch_run_ prefix).
|
|
2018
|
+
*/
|
|
2019
|
+
id: string | null;
|
|
2020
|
+
orchestration_id: string | null;
|
|
2021
|
+
project_id: string | null;
|
|
2022
|
+
/**
|
|
2023
|
+
* `queued` awaits a worker; `running` is executing; `sleeping` is parked on a delay/poll wait; `awaiting_input` is parked on a human or webhook node; `succeeded`/`failed`/`cancelled` are terminal; `expired` is a wait that passed its deadline.
|
|
2024
|
+
*/
|
|
2025
|
+
status: 'queued' | 'running' | 'sleeping' | 'awaiting_input' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
|
|
2026
|
+
/**
|
|
2027
|
+
* Current accumulated state.
|
|
2028
|
+
*/
|
|
2029
|
+
state: {
|
|
2030
|
+
[key: string]: unknown;
|
|
2031
|
+
};
|
|
2032
|
+
active_nodes: Array<string>;
|
|
2033
|
+
/**
|
|
2034
|
+
* Map of node ID to output artifact.
|
|
2035
|
+
*/
|
|
2036
|
+
artifacts: {
|
|
2037
|
+
[key: string]: unknown;
|
|
2038
|
+
};
|
|
2039
|
+
error: {
|
|
2040
|
+
[key: string]: unknown;
|
|
2041
|
+
} | null;
|
|
2042
|
+
trace_id: string | null;
|
|
2043
|
+
input: {
|
|
2044
|
+
[key: string]: unknown;
|
|
2045
|
+
} | null;
|
|
2046
|
+
/**
|
|
2047
|
+
* Terminal node artifact(s), once the run has succeeded.
|
|
2048
|
+
*/
|
|
2049
|
+
output: {
|
|
2050
|
+
[key: string]: unknown;
|
|
2051
|
+
} | null;
|
|
2052
|
+
node_executions: Array<NodeExecution>;
|
|
2053
|
+
/**
|
|
2054
|
+
* Token/cost roll-up across every metered generation the run produced. Present on the single-run read; omitted from run lists.
|
|
2055
|
+
*/
|
|
2056
|
+
usage?: {
|
|
2057
|
+
[key: string]: unknown;
|
|
2058
|
+
};
|
|
2059
|
+
required_action: RequiredAction | null;
|
|
2060
|
+
started_at: Date | null;
|
|
2061
|
+
completed_at: Date | null;
|
|
2062
|
+
created_at: Date | null;
|
|
2063
|
+
updated_at: Date | null;
|
|
2064
|
+
};
|
|
2065
|
+
type OrchestrationRunList = {
|
|
2066
|
+
data: Array<OrchestrationRun>;
|
|
2067
|
+
total: number | null;
|
|
2068
|
+
limit: number;
|
|
2069
|
+
offset: number;
|
|
2070
|
+
};
|
|
2071
|
+
type StartRunRequest = {
|
|
2072
|
+
/**
|
|
2073
|
+
* Orchestration to run.
|
|
2074
|
+
*/
|
|
2075
|
+
orchestration_id: string;
|
|
2076
|
+
/**
|
|
2077
|
+
* Initial state for the run, merged with orchestration defaults.
|
|
2078
|
+
*/
|
|
2079
|
+
input?: {
|
|
2080
|
+
[key: string]: unknown;
|
|
2081
|
+
};
|
|
2082
|
+
/**
|
|
2083
|
+
* When true, block until the run reaches a terminal or `awaiting_input` state and return the settled run. When false (default), return immediately with `status: "queued"`.
|
|
2084
|
+
*/
|
|
2085
|
+
wait?: boolean;
|
|
2086
|
+
};
|
|
2087
|
+
type HumanInputRequest = {
|
|
2088
|
+
/**
|
|
2089
|
+
* ID of the human node to satisfy.
|
|
2090
|
+
*/
|
|
2091
|
+
node_id: string;
|
|
2092
|
+
/**
|
|
2093
|
+
* Output/response provided by the human reviewer.
|
|
2094
|
+
*/
|
|
2095
|
+
output?: {
|
|
2096
|
+
[key: string]: unknown;
|
|
2097
|
+
};
|
|
2098
|
+
};
|
|
1867
2099
|
type Project = {
|
|
1868
2100
|
/**
|
|
1869
2101
|
* Public project ID (proj_ prefix).
|
|
@@ -2016,217 +2248,67 @@ type ProviderList = {
|
|
|
2016
2248
|
next_cursor: string | null;
|
|
2017
2249
|
};
|
|
2018
2250
|
/**
|
|
2019
|
-
*
|
|
2251
|
+
* Optional configuration for the session being opened.
|
|
2020
2252
|
*/
|
|
2021
|
-
type
|
|
2253
|
+
type SessionCreate = {
|
|
2022
2254
|
/**
|
|
2023
|
-
*
|
|
2255
|
+
* Human-readable label for the session.
|
|
2024
2256
|
*/
|
|
2025
|
-
|
|
2026
|
-
node_id: string;
|
|
2027
|
-
prompt: string;
|
|
2028
|
-
context: {
|
|
2029
|
-
[key: string]: unknown;
|
|
2030
|
-
};
|
|
2031
|
-
options?: Array<string> | null;
|
|
2032
|
-
};
|
|
2033
|
-
/**
|
|
2034
|
-
* One node's execution record — the orchestration analogue of an agent trace's tool-call entries (§2).
|
|
2035
|
-
*
|
|
2036
|
-
*/
|
|
2037
|
-
type NodeExecution = {
|
|
2038
|
-
node_id: string;
|
|
2039
|
-
node_type?: string | null;
|
|
2257
|
+
name?: string;
|
|
2040
2258
|
/**
|
|
2041
|
-
*
|
|
2259
|
+
* Public ID of an existing actor to attach as the user actor — a runtime id showing through the public contract.
|
|
2260
|
+
*
|
|
2042
2261
|
*/
|
|
2043
|
-
|
|
2044
|
-
status: 'completed' | 'failed' | 'requires_action' | 'skipped';
|
|
2045
|
-
input?: {
|
|
2046
|
-
[key: string]: unknown;
|
|
2047
|
-
} | null;
|
|
2048
|
-
output?: {
|
|
2049
|
-
[key: string]: unknown;
|
|
2050
|
-
} | null;
|
|
2051
|
-
error?: {
|
|
2052
|
-
[key: string]: unknown;
|
|
2053
|
-
} | null;
|
|
2054
|
-
started_at?: Date | null;
|
|
2055
|
-
completed_at?: Date | null;
|
|
2056
|
-
created_at: Date;
|
|
2057
|
-
};
|
|
2058
|
-
/**
|
|
2059
|
-
* Token and cost roll-up across every generation the run produced.
|
|
2060
|
-
*/
|
|
2061
|
-
type RunUsage = {
|
|
2062
|
-
total_input_tokens?: number;
|
|
2063
|
-
total_output_tokens?: number;
|
|
2064
|
-
total_cached_tokens?: number;
|
|
2065
|
-
total_reasoning_tokens?: number;
|
|
2066
|
-
total_cost_usd?: number | null;
|
|
2067
|
-
};
|
|
2068
|
-
type Run = {
|
|
2262
|
+
actor_id?: string;
|
|
2069
2263
|
/**
|
|
2070
|
-
*
|
|
2264
|
+
* When true, adding a user message automatically triggers a generation (unless one is already in progress).
|
|
2265
|
+
*
|
|
2071
2266
|
*/
|
|
2072
|
-
|
|
2073
|
-
|
|
2267
|
+
auto_generate?: boolean;
|
|
2268
|
+
tool_context?: ToolContext;
|
|
2074
2269
|
/**
|
|
2075
|
-
*
|
|
2270
|
+
* Seconds of inactivity after which the session expires. 0 means it never expires.
|
|
2271
|
+
*
|
|
2076
2272
|
*/
|
|
2077
|
-
|
|
2273
|
+
inactivity_ttl_seconds?: number;
|
|
2078
2274
|
/**
|
|
2079
|
-
*
|
|
2275
|
+
* Seconds to wait after the last user message before generating — a debounce that each new message resets. null means no delay.
|
|
2080
2276
|
*
|
|
2081
2277
|
*/
|
|
2082
|
-
|
|
2278
|
+
message_delay_seconds?: number | null;
|
|
2279
|
+
};
|
|
2280
|
+
type Session = {
|
|
2083
2281
|
/**
|
|
2084
|
-
*
|
|
2282
|
+
* Public session ID (sess_ prefix).
|
|
2085
2283
|
*/
|
|
2086
|
-
|
|
2087
|
-
[key: string]: unknown;
|
|
2088
|
-
};
|
|
2284
|
+
id: string;
|
|
2089
2285
|
/**
|
|
2090
|
-
*
|
|
2286
|
+
* The project that owns the session.
|
|
2091
2287
|
*/
|
|
2092
|
-
|
|
2288
|
+
project_id: string;
|
|
2093
2289
|
/**
|
|
2094
|
-
*
|
|
2290
|
+
* The agent the session runs against.
|
|
2095
2291
|
*/
|
|
2096
|
-
|
|
2097
|
-
[key: string]: unknown;
|
|
2098
|
-
};
|
|
2292
|
+
agent_id: string;
|
|
2099
2293
|
/**
|
|
2100
|
-
*
|
|
2294
|
+
* The underlying runtime conversation backing the session.
|
|
2101
2295
|
*/
|
|
2102
|
-
|
|
2103
|
-
required_action: RequiredAction | null;
|
|
2296
|
+
conversation_id?: string | null;
|
|
2104
2297
|
/**
|
|
2105
|
-
*
|
|
2298
|
+
* Session lifecycle state.
|
|
2106
2299
|
*/
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2300
|
+
status: 'open' | 'closed' | 'expired';
|
|
2301
|
+
name?: string | null;
|
|
2302
|
+
actor_id?: string | null;
|
|
2303
|
+
auto_generate?: boolean | null;
|
|
2110
2304
|
/**
|
|
2111
|
-
*
|
|
2305
|
+
* Tool-call context headers, or null when unset.
|
|
2112
2306
|
*/
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
[key: string]: unknown;
|
|
2119
|
-
} | null;
|
|
2120
|
-
/**
|
|
2121
|
-
* Terminal node artifact(s), once the run has succeeded.
|
|
2122
|
-
*/
|
|
2123
|
-
output: {
|
|
2124
|
-
[key: string]: unknown;
|
|
2125
|
-
} | null;
|
|
2126
|
-
/**
|
|
2127
|
-
* Present on a single run read; omitted from list responses.
|
|
2128
|
-
*/
|
|
2129
|
-
usage?: RunUsage | null;
|
|
2130
|
-
started_at: Date | null;
|
|
2131
|
-
completed_at: Date | null;
|
|
2132
|
-
created_at: Date;
|
|
2133
|
-
updated_at: Date;
|
|
2134
|
-
};
|
|
2135
|
-
type RunCreate = {
|
|
2136
|
-
/**
|
|
2137
|
-
* The orchestration to run.
|
|
2138
|
-
*/
|
|
2139
|
-
orchestration_id: string;
|
|
2140
|
-
/**
|
|
2141
|
-
* Initial state for the run, merged with the orchestration's own defaults.
|
|
2142
|
-
*/
|
|
2143
|
-
input?: {
|
|
2144
|
-
[key: string]: unknown;
|
|
2145
|
-
};
|
|
2146
|
-
/**
|
|
2147
|
-
* When true, block until the run reaches a terminal or `awaiting_input` state and return the settled run. When false (default), return immediately with `status: "queued"`.
|
|
2148
|
-
*
|
|
2149
|
-
*/
|
|
2150
|
-
wait?: boolean;
|
|
2151
|
-
};
|
|
2152
|
-
type RunResume = {
|
|
2153
|
-
/**
|
|
2154
|
-
* Answers a human-node pause and advances the run past it. Omit to re-drive the run without answering anything.
|
|
2155
|
-
*
|
|
2156
|
-
*/
|
|
2157
|
-
output?: {
|
|
2158
|
-
[key: string]: unknown;
|
|
2159
|
-
};
|
|
2160
|
-
};
|
|
2161
|
-
type RunList = {
|
|
2162
|
-
data: Array<Run>;
|
|
2163
|
-
/**
|
|
2164
|
-
* Cursor for the next page, or null at the end.
|
|
2165
|
-
*/
|
|
2166
|
-
next_cursor: string | null;
|
|
2167
|
-
};
|
|
2168
|
-
/**
|
|
2169
|
-
* Optional configuration for the session being opened.
|
|
2170
|
-
*/
|
|
2171
|
-
type SessionCreate = {
|
|
2172
|
-
/**
|
|
2173
|
-
* Human-readable label for the session.
|
|
2174
|
-
*/
|
|
2175
|
-
name?: string;
|
|
2176
|
-
/**
|
|
2177
|
-
* Public ID of an existing actor to attach as the user actor — a runtime id showing through the public contract.
|
|
2178
|
-
*
|
|
2179
|
-
*/
|
|
2180
|
-
actor_id?: string;
|
|
2181
|
-
/**
|
|
2182
|
-
* When true, adding a user message automatically triggers a generation (unless one is already in progress).
|
|
2183
|
-
*
|
|
2184
|
-
*/
|
|
2185
|
-
auto_generate?: boolean;
|
|
2186
|
-
tool_context?: ToolContext;
|
|
2187
|
-
/**
|
|
2188
|
-
* Seconds of inactivity after which the session expires. 0 means it never expires.
|
|
2189
|
-
*
|
|
2190
|
-
*/
|
|
2191
|
-
inactivity_ttl_seconds?: number;
|
|
2192
|
-
/**
|
|
2193
|
-
* Seconds to wait after the last user message before generating — a debounce that each new message resets. null means no delay.
|
|
2194
|
-
*
|
|
2195
|
-
*/
|
|
2196
|
-
message_delay_seconds?: number | null;
|
|
2197
|
-
};
|
|
2198
|
-
type Session = {
|
|
2199
|
-
/**
|
|
2200
|
-
* Public session ID (sess_ prefix).
|
|
2201
|
-
*/
|
|
2202
|
-
id: string;
|
|
2203
|
-
/**
|
|
2204
|
-
* The project that owns the session.
|
|
2205
|
-
*/
|
|
2206
|
-
project_id: string;
|
|
2207
|
-
/**
|
|
2208
|
-
* The agent the session runs against.
|
|
2209
|
-
*/
|
|
2210
|
-
agent_id: string;
|
|
2211
|
-
/**
|
|
2212
|
-
* The underlying runtime conversation backing the session.
|
|
2213
|
-
*/
|
|
2214
|
-
conversation_id?: string | null;
|
|
2215
|
-
/**
|
|
2216
|
-
* Session lifecycle state.
|
|
2217
|
-
*/
|
|
2218
|
-
status: 'open' | 'closed' | 'expired';
|
|
2219
|
-
name?: string | null;
|
|
2220
|
-
actor_id?: string | null;
|
|
2221
|
-
auto_generate?: boolean | null;
|
|
2222
|
-
/**
|
|
2223
|
-
* Tool-call context headers, or null when unset.
|
|
2224
|
-
*/
|
|
2225
|
-
tool_context?: {
|
|
2226
|
-
[key: string]: string;
|
|
2227
|
-
} | null;
|
|
2228
|
-
inactivity_ttl_seconds?: number | null;
|
|
2229
|
-
message_delay_seconds?: number | null;
|
|
2307
|
+
tool_context?: {
|
|
2308
|
+
[key: string]: string;
|
|
2309
|
+
} | null;
|
|
2310
|
+
inactivity_ttl_seconds?: number | null;
|
|
2311
|
+
message_delay_seconds?: number | null;
|
|
2230
2312
|
/**
|
|
2231
2313
|
* Timestamp of the last message or generation on the session.
|
|
2232
2314
|
*/
|
|
@@ -2760,10 +2842,10 @@ type TraceList = {
|
|
|
2760
2842
|
*/
|
|
2761
2843
|
type TriggerType = 'schedule';
|
|
2762
2844
|
/**
|
|
2763
|
-
*
|
|
2845
|
+
* What the trigger runs. `agent` starts an agent generation; `orchestration` starts a run of an orchestration graph. The runtime's third kind, `tool`, is not fronted here.
|
|
2764
2846
|
*
|
|
2765
2847
|
*/
|
|
2766
|
-
type TriggerTargetType = 'agent';
|
|
2848
|
+
type TriggerTargetType = 'agent' | 'orchestration';
|
|
2767
2849
|
type Trigger = {
|
|
2768
2850
|
/**
|
|
2769
2851
|
* Public trigger ID (trg_ prefix) — the runtime trigger id.
|
|
@@ -2775,11 +2857,12 @@ type Trigger = {
|
|
|
2775
2857
|
type: TriggerType;
|
|
2776
2858
|
target_type: TriggerTargetType;
|
|
2777
2859
|
/**
|
|
2778
|
-
* The agent this trigger runs
|
|
2860
|
+
* The agent or orchestration this trigger runs, per `target_type`.
|
|
2861
|
+
*
|
|
2779
2862
|
*/
|
|
2780
2863
|
target_id: string;
|
|
2781
2864
|
/**
|
|
2782
|
-
* Static input passed to the
|
|
2865
|
+
* Static input passed to the target on every fire, scheduled or manual — shallow-merged under any input a manual `…:fire` call supplies for that one run. For an `orchestration` target this is the run's initial input.
|
|
2783
2866
|
*
|
|
2784
2867
|
*/
|
|
2785
2868
|
input: {
|
|
@@ -2805,7 +2888,13 @@ type TriggerCreate = {
|
|
|
2805
2888
|
name: string;
|
|
2806
2889
|
description?: string;
|
|
2807
2890
|
/**
|
|
2808
|
-
*
|
|
2891
|
+
* Which kind of resource `target_id` names. Defaults to `agent`, so a body written before the orchestration target existed keeps its meaning.
|
|
2892
|
+
*
|
|
2893
|
+
*/
|
|
2894
|
+
target_type?: TriggerTargetType;
|
|
2895
|
+
/**
|
|
2896
|
+
* The agent or orchestration this trigger runs, per `target_type`. Must belong to this project — an id from another project is `404`.
|
|
2897
|
+
*
|
|
2809
2898
|
*/
|
|
2810
2899
|
target_id: string;
|
|
2811
2900
|
input?: {
|
|
@@ -2823,6 +2912,11 @@ type TriggerCreate = {
|
|
|
2823
2912
|
type TriggerUpdate = {
|
|
2824
2913
|
name?: string;
|
|
2825
2914
|
description?: string | null;
|
|
2915
|
+
/**
|
|
2916
|
+
* Change what kind of resource the trigger runs. Must be sent **together with `target_id`** — the kind and the id are one target, and accepting the kind alone would leave the trigger pointing at an id of the wrong kind (`400`). Sending `target_id` on its own is fine and keeps the trigger's current kind, which is the kind the new id is validated against.
|
|
2917
|
+
*
|
|
2918
|
+
*/
|
|
2919
|
+
target_type?: TriggerTargetType;
|
|
2826
2920
|
target_id?: string;
|
|
2827
2921
|
input?: {
|
|
2828
2922
|
[key: string]: unknown;
|
|
@@ -3127,18 +3221,17 @@ type DocumentId = string;
|
|
|
3127
3221
|
*/
|
|
3128
3222
|
type ConverterId = string;
|
|
3129
3223
|
/**
|
|
3130
|
-
*
|
|
3224
|
+
* Orchestration public ID (orch_ prefix).
|
|
3131
3225
|
*/
|
|
3132
|
-
type
|
|
3226
|
+
type OrchestrationId = string;
|
|
3133
3227
|
/**
|
|
3134
|
-
*
|
|
3228
|
+
* Orchestration run public ID (orch_run_ prefix).
|
|
3135
3229
|
*/
|
|
3136
3230
|
type RunId = string;
|
|
3137
3231
|
/**
|
|
3138
|
-
*
|
|
3139
|
-
*
|
|
3232
|
+
* Provider public ID (aip_ prefix).
|
|
3140
3233
|
*/
|
|
3141
|
-
type
|
|
3234
|
+
type ProviderId = string;
|
|
3142
3235
|
/**
|
|
3143
3236
|
* Session public ID (sess_ prefix).
|
|
3144
3237
|
*/
|
|
@@ -3171,6 +3264,11 @@ type ToolId = string;
|
|
|
3171
3264
|
* Trace public ID (trace_ prefix).
|
|
3172
3265
|
*/
|
|
3173
3266
|
type TraceId = string;
|
|
3267
|
+
/**
|
|
3268
|
+
* Narrow the page to one target kind. Filtered and counted upstream, so `total` is exact. Omit it to list both kinds — see the operation's note on `total`.
|
|
3269
|
+
*
|
|
3270
|
+
*/
|
|
3271
|
+
type TargetTypeFilter = TriggerTargetType;
|
|
3174
3272
|
/**
|
|
3175
3273
|
* Trigger public ID (trg_ prefix) — the runtime trigger id.
|
|
3176
3274
|
*/
|
|
@@ -4189,43 +4287,553 @@ type LogoutData = {
|
|
|
4189
4287
|
body?: LogoutRequest;
|
|
4190
4288
|
path?: never;
|
|
4191
4289
|
query?: never;
|
|
4192
|
-
url: '/v1/auth/logout';
|
|
4290
|
+
url: '/v1/auth/logout';
|
|
4291
|
+
};
|
|
4292
|
+
type LogoutErrors = {
|
|
4293
|
+
/**
|
|
4294
|
+
* Missing or invalid credentials.
|
|
4295
|
+
*/
|
|
4296
|
+
401: ErrorResponse;
|
|
4297
|
+
};
|
|
4298
|
+
type LogoutError = LogoutErrors[keyof LogoutErrors];
|
|
4299
|
+
type LogoutResponses = {
|
|
4300
|
+
/**
|
|
4301
|
+
* Session(s) revoked.
|
|
4302
|
+
*/
|
|
4303
|
+
204: void;
|
|
4304
|
+
};
|
|
4305
|
+
type LogoutResponse = LogoutResponses[keyof LogoutResponses];
|
|
4306
|
+
type GetCurrentUserData = {
|
|
4307
|
+
body?: never;
|
|
4308
|
+
path?: never;
|
|
4309
|
+
query?: never;
|
|
4310
|
+
url: '/v1/auth/me';
|
|
4311
|
+
};
|
|
4312
|
+
type GetCurrentUserErrors = {
|
|
4313
|
+
/**
|
|
4314
|
+
* Missing or invalid credentials.
|
|
4315
|
+
*/
|
|
4316
|
+
401: ErrorResponse;
|
|
4317
|
+
};
|
|
4318
|
+
type GetCurrentUserError = GetCurrentUserErrors[keyof GetCurrentUserErrors];
|
|
4319
|
+
type GetCurrentUserResponses = {
|
|
4320
|
+
/**
|
|
4321
|
+
* The authenticated user.
|
|
4322
|
+
*/
|
|
4323
|
+
200: User;
|
|
4324
|
+
};
|
|
4325
|
+
type GetCurrentUserResponse = GetCurrentUserResponses[keyof GetCurrentUserResponses];
|
|
4326
|
+
type ListBoardsData = {
|
|
4327
|
+
body?: never;
|
|
4328
|
+
path: {
|
|
4329
|
+
/**
|
|
4330
|
+
* Project public ID (proj_ prefix).
|
|
4331
|
+
*/
|
|
4332
|
+
project_id: string;
|
|
4333
|
+
};
|
|
4334
|
+
query?: {
|
|
4335
|
+
/**
|
|
4336
|
+
* Maximum items to return (1–100).
|
|
4337
|
+
*/
|
|
4338
|
+
limit?: number;
|
|
4339
|
+
/**
|
|
4340
|
+
* Opaque pagination cursor from a previous response's next_cursor.
|
|
4341
|
+
*/
|
|
4342
|
+
cursor?: string;
|
|
4343
|
+
};
|
|
4344
|
+
url: '/v1/projects/{project_id}/boards';
|
|
4345
|
+
};
|
|
4346
|
+
type ListBoardsErrors = {
|
|
4347
|
+
/**
|
|
4348
|
+
* The request was malformed or failed validation.
|
|
4349
|
+
*/
|
|
4350
|
+
400: ErrorResponse;
|
|
4351
|
+
/**
|
|
4352
|
+
* Missing or invalid credentials.
|
|
4353
|
+
*/
|
|
4354
|
+
401: ErrorResponse;
|
|
4355
|
+
/**
|
|
4356
|
+
* The resource does not exist (existence is not leaked).
|
|
4357
|
+
*/
|
|
4358
|
+
404: ErrorResponse;
|
|
4359
|
+
/**
|
|
4360
|
+
* The upstream runtime could not complete the operation.
|
|
4361
|
+
*/
|
|
4362
|
+
502: ErrorResponse;
|
|
4363
|
+
};
|
|
4364
|
+
type ListBoardsError = ListBoardsErrors[keyof ListBoardsErrors];
|
|
4365
|
+
type ListBoardsResponses = {
|
|
4366
|
+
/**
|
|
4367
|
+
* A page of boards.
|
|
4368
|
+
*/
|
|
4369
|
+
200: BoardList;
|
|
4370
|
+
};
|
|
4371
|
+
type ListBoardsResponse = ListBoardsResponses[keyof ListBoardsResponses];
|
|
4372
|
+
type CreateBoardData = {
|
|
4373
|
+
body: BoardCreate;
|
|
4374
|
+
headers?: {
|
|
4375
|
+
/**
|
|
4376
|
+
* Client-supplied key to make this mutating POST idempotent.
|
|
4377
|
+
*/
|
|
4378
|
+
'Idempotency-Key'?: string;
|
|
4379
|
+
};
|
|
4380
|
+
path: {
|
|
4381
|
+
/**
|
|
4382
|
+
* Project public ID (proj_ prefix).
|
|
4383
|
+
*/
|
|
4384
|
+
project_id: string;
|
|
4385
|
+
};
|
|
4386
|
+
query?: never;
|
|
4387
|
+
url: '/v1/projects/{project_id}/boards';
|
|
4388
|
+
};
|
|
4389
|
+
type CreateBoardErrors = {
|
|
4390
|
+
/**
|
|
4391
|
+
* The request was malformed, or the definition was rejected (`invalid_board_definition`, with the upstream validation detail).
|
|
4392
|
+
*
|
|
4393
|
+
*/
|
|
4394
|
+
400: ErrorResponse;
|
|
4395
|
+
/**
|
|
4396
|
+
* Missing or invalid credentials.
|
|
4397
|
+
*/
|
|
4398
|
+
401: ErrorResponse;
|
|
4399
|
+
/**
|
|
4400
|
+
* The resource does not exist (existence is not leaked).
|
|
4401
|
+
*/
|
|
4402
|
+
404: ErrorResponse;
|
|
4403
|
+
/**
|
|
4404
|
+
* The upstream runtime could not complete the operation.
|
|
4405
|
+
*/
|
|
4406
|
+
502: ErrorResponse;
|
|
4407
|
+
};
|
|
4408
|
+
type CreateBoardError = CreateBoardErrors[keyof CreateBoardErrors];
|
|
4409
|
+
type CreateBoardResponses = {
|
|
4410
|
+
/**
|
|
4411
|
+
* Board created.
|
|
4412
|
+
*/
|
|
4413
|
+
201: Board;
|
|
4414
|
+
};
|
|
4415
|
+
type CreateBoardResponse = CreateBoardResponses[keyof CreateBoardResponses];
|
|
4416
|
+
type DeleteBoardData = {
|
|
4417
|
+
body?: never;
|
|
4418
|
+
path: {
|
|
4419
|
+
/**
|
|
4420
|
+
* Project public ID (proj_ prefix).
|
|
4421
|
+
*/
|
|
4422
|
+
project_id: string;
|
|
4423
|
+
/**
|
|
4424
|
+
* Board public ID (brd_ prefix).
|
|
4425
|
+
*/
|
|
4426
|
+
board_id: string;
|
|
4427
|
+
};
|
|
4428
|
+
query?: never;
|
|
4429
|
+
url: '/v1/projects/{project_id}/boards/{board_id}';
|
|
4430
|
+
};
|
|
4431
|
+
type DeleteBoardErrors = {
|
|
4432
|
+
/**
|
|
4433
|
+
* Missing or invalid credentials.
|
|
4434
|
+
*/
|
|
4435
|
+
401: ErrorResponse;
|
|
4436
|
+
/**
|
|
4437
|
+
* The resource does not exist (existence is not leaked).
|
|
4438
|
+
*/
|
|
4439
|
+
404: ErrorResponse;
|
|
4440
|
+
/**
|
|
4441
|
+
* The request conflicts with the resource's current state.
|
|
4442
|
+
*/
|
|
4443
|
+
409: ErrorResponse;
|
|
4444
|
+
/**
|
|
4445
|
+
* The upstream runtime could not complete the operation.
|
|
4446
|
+
*/
|
|
4447
|
+
502: ErrorResponse;
|
|
4448
|
+
};
|
|
4449
|
+
type DeleteBoardError = DeleteBoardErrors[keyof DeleteBoardErrors];
|
|
4450
|
+
type DeleteBoardResponses = {
|
|
4451
|
+
/**
|
|
4452
|
+
* Board deleted.
|
|
4453
|
+
*/
|
|
4454
|
+
204: void;
|
|
4455
|
+
};
|
|
4456
|
+
type DeleteBoardResponse = DeleteBoardResponses[keyof DeleteBoardResponses];
|
|
4457
|
+
type GetBoardData = {
|
|
4458
|
+
body?: never;
|
|
4459
|
+
path: {
|
|
4460
|
+
/**
|
|
4461
|
+
* Project public ID (proj_ prefix).
|
|
4462
|
+
*/
|
|
4463
|
+
project_id: string;
|
|
4464
|
+
/**
|
|
4465
|
+
* Board public ID (brd_ prefix).
|
|
4466
|
+
*/
|
|
4467
|
+
board_id: string;
|
|
4468
|
+
};
|
|
4469
|
+
query?: never;
|
|
4470
|
+
url: '/v1/projects/{project_id}/boards/{board_id}';
|
|
4471
|
+
};
|
|
4472
|
+
type GetBoardErrors = {
|
|
4473
|
+
/**
|
|
4474
|
+
* Missing or invalid credentials.
|
|
4475
|
+
*/
|
|
4476
|
+
401: ErrorResponse;
|
|
4477
|
+
/**
|
|
4478
|
+
* The resource does not exist (existence is not leaked).
|
|
4479
|
+
*/
|
|
4480
|
+
404: ErrorResponse;
|
|
4481
|
+
/**
|
|
4482
|
+
* The upstream runtime could not complete the operation.
|
|
4483
|
+
*/
|
|
4484
|
+
502: ErrorResponse;
|
|
4485
|
+
};
|
|
4486
|
+
type GetBoardError = GetBoardErrors[keyof GetBoardErrors];
|
|
4487
|
+
type GetBoardResponses = {
|
|
4488
|
+
/**
|
|
4489
|
+
* Board details.
|
|
4490
|
+
*/
|
|
4491
|
+
200: Board;
|
|
4492
|
+
};
|
|
4493
|
+
type GetBoardResponse = GetBoardResponses[keyof GetBoardResponses];
|
|
4494
|
+
type UpdateBoardData = {
|
|
4495
|
+
body: BoardUpdate;
|
|
4496
|
+
path: {
|
|
4497
|
+
/**
|
|
4498
|
+
* Project public ID (proj_ prefix).
|
|
4499
|
+
*/
|
|
4500
|
+
project_id: string;
|
|
4501
|
+
/**
|
|
4502
|
+
* Board public ID (brd_ prefix).
|
|
4503
|
+
*/
|
|
4504
|
+
board_id: string;
|
|
4505
|
+
};
|
|
4506
|
+
query?: never;
|
|
4507
|
+
url: '/v1/projects/{project_id}/boards/{board_id}';
|
|
4508
|
+
};
|
|
4509
|
+
type UpdateBoardErrors = {
|
|
4510
|
+
/**
|
|
4511
|
+
* The request was malformed, or the definition was rejected (`invalid_board_definition`, with the upstream validation detail).
|
|
4512
|
+
*
|
|
4513
|
+
*/
|
|
4514
|
+
400: ErrorResponse;
|
|
4515
|
+
/**
|
|
4516
|
+
* Missing or invalid credentials.
|
|
4517
|
+
*/
|
|
4518
|
+
401: ErrorResponse;
|
|
4519
|
+
/**
|
|
4520
|
+
* The resource does not exist (existence is not leaked).
|
|
4521
|
+
*/
|
|
4522
|
+
404: ErrorResponse;
|
|
4523
|
+
/**
|
|
4524
|
+
* The upstream runtime could not complete the operation.
|
|
4525
|
+
*/
|
|
4526
|
+
502: ErrorResponse;
|
|
4527
|
+
};
|
|
4528
|
+
type UpdateBoardError = UpdateBoardErrors[keyof UpdateBoardErrors];
|
|
4529
|
+
type UpdateBoardResponses = {
|
|
4530
|
+
/**
|
|
4531
|
+
* Board updated.
|
|
4532
|
+
*/
|
|
4533
|
+
200: Board;
|
|
4534
|
+
};
|
|
4535
|
+
type UpdateBoardResponse = UpdateBoardResponses[keyof UpdateBoardResponses];
|
|
4536
|
+
type ListChannelKindsData = {
|
|
4537
|
+
body?: never;
|
|
4538
|
+
path?: never;
|
|
4539
|
+
query?: never;
|
|
4540
|
+
url: '/v1/channel-kinds';
|
|
4541
|
+
};
|
|
4542
|
+
type ListChannelKindsErrors = {
|
|
4543
|
+
/**
|
|
4544
|
+
* Missing or invalid credentials.
|
|
4545
|
+
*/
|
|
4546
|
+
401: ErrorResponse;
|
|
4547
|
+
};
|
|
4548
|
+
type ListChannelKindsError = ListChannelKindsErrors[keyof ListChannelKindsErrors];
|
|
4549
|
+
type ListChannelKindsResponses = {
|
|
4550
|
+
/**
|
|
4551
|
+
* Every channel kind.
|
|
4552
|
+
*/
|
|
4553
|
+
200: ChannelKindList;
|
|
4554
|
+
};
|
|
4555
|
+
type ListChannelKindsResponse = ListChannelKindsResponses[keyof ListChannelKindsResponses];
|
|
4556
|
+
type ListChannelRoutesData = {
|
|
4557
|
+
body?: never;
|
|
4558
|
+
path: {
|
|
4559
|
+
/**
|
|
4560
|
+
* Project public ID (proj_ prefix).
|
|
4561
|
+
*/
|
|
4562
|
+
project_id: string;
|
|
4563
|
+
/**
|
|
4564
|
+
* Channel public ID (chan_ prefix).
|
|
4565
|
+
*/
|
|
4566
|
+
channel_id: string;
|
|
4567
|
+
};
|
|
4568
|
+
query?: {
|
|
4569
|
+
/**
|
|
4570
|
+
* Maximum items to return (1–100).
|
|
4571
|
+
*/
|
|
4572
|
+
limit?: number;
|
|
4573
|
+
/**
|
|
4574
|
+
* Opaque pagination cursor from a previous response's next_cursor.
|
|
4575
|
+
*/
|
|
4576
|
+
cursor?: string;
|
|
4577
|
+
};
|
|
4578
|
+
url: '/v1/projects/{project_id}/channels/{channel_id}/routes';
|
|
4579
|
+
};
|
|
4580
|
+
type ListChannelRoutesErrors = {
|
|
4581
|
+
/**
|
|
4582
|
+
* Missing or invalid credentials.
|
|
4583
|
+
*/
|
|
4584
|
+
401: ErrorResponse;
|
|
4585
|
+
/**
|
|
4586
|
+
* The resource does not exist (existence is not leaked).
|
|
4587
|
+
*/
|
|
4588
|
+
404: ErrorResponse;
|
|
4589
|
+
};
|
|
4590
|
+
type ListChannelRoutesError = ListChannelRoutesErrors[keyof ListChannelRoutesErrors];
|
|
4591
|
+
type ListChannelRoutesResponses = {
|
|
4592
|
+
/**
|
|
4593
|
+
* A page of routes.
|
|
4594
|
+
*/
|
|
4595
|
+
200: ChannelRouteList;
|
|
4596
|
+
};
|
|
4597
|
+
type ListChannelRoutesResponse = ListChannelRoutesResponses[keyof ListChannelRoutesResponses];
|
|
4598
|
+
type CreateChannelRouteData = {
|
|
4599
|
+
body: ChannelRouteWrite;
|
|
4600
|
+
path: {
|
|
4601
|
+
/**
|
|
4602
|
+
* Project public ID (proj_ prefix).
|
|
4603
|
+
*/
|
|
4604
|
+
project_id: string;
|
|
4605
|
+
/**
|
|
4606
|
+
* Channel public ID (chan_ prefix).
|
|
4607
|
+
*/
|
|
4608
|
+
channel_id: string;
|
|
4609
|
+
};
|
|
4610
|
+
query?: never;
|
|
4611
|
+
url: '/v1/projects/{project_id}/channels/{channel_id}/routes';
|
|
4612
|
+
};
|
|
4613
|
+
type CreateChannelRouteErrors = {
|
|
4614
|
+
/**
|
|
4615
|
+
* The request was malformed or failed validation.
|
|
4616
|
+
*/
|
|
4617
|
+
400: ErrorResponse;
|
|
4618
|
+
/**
|
|
4619
|
+
* Missing or invalid credentials.
|
|
4620
|
+
*/
|
|
4621
|
+
401: ErrorResponse;
|
|
4622
|
+
/**
|
|
4623
|
+
* The resource does not exist (existence is not leaked).
|
|
4624
|
+
*/
|
|
4625
|
+
404: ErrorResponse;
|
|
4626
|
+
/**
|
|
4627
|
+
* The request conflicts with the resource's current state.
|
|
4628
|
+
*/
|
|
4629
|
+
409: ErrorResponse;
|
|
4630
|
+
};
|
|
4631
|
+
type CreateChannelRouteError = CreateChannelRouteErrors[keyof CreateChannelRouteErrors];
|
|
4632
|
+
type CreateChannelRouteResponses = {
|
|
4633
|
+
/**
|
|
4634
|
+
* Route created.
|
|
4635
|
+
*/
|
|
4636
|
+
201: ChannelRoute;
|
|
4637
|
+
};
|
|
4638
|
+
type CreateChannelRouteResponse = CreateChannelRouteResponses[keyof CreateChannelRouteResponses];
|
|
4639
|
+
type DeleteChannelRouteData = {
|
|
4640
|
+
body?: never;
|
|
4641
|
+
path: {
|
|
4642
|
+
/**
|
|
4643
|
+
* Project public ID (proj_ prefix).
|
|
4644
|
+
*/
|
|
4645
|
+
project_id: string;
|
|
4646
|
+
/**
|
|
4647
|
+
* Channel public ID (chan_ prefix).
|
|
4648
|
+
*/
|
|
4649
|
+
channel_id: string;
|
|
4650
|
+
/**
|
|
4651
|
+
* Route public ID (route_ prefix).
|
|
4652
|
+
*/
|
|
4653
|
+
route_id: string;
|
|
4654
|
+
};
|
|
4655
|
+
query?: never;
|
|
4656
|
+
url: '/v1/projects/{project_id}/channels/{channel_id}/routes/{route_id}';
|
|
4657
|
+
};
|
|
4658
|
+
type DeleteChannelRouteErrors = {
|
|
4659
|
+
/**
|
|
4660
|
+
* Missing or invalid credentials.
|
|
4661
|
+
*/
|
|
4662
|
+
401: ErrorResponse;
|
|
4663
|
+
/**
|
|
4664
|
+
* The resource does not exist (existence is not leaked).
|
|
4665
|
+
*/
|
|
4666
|
+
404: ErrorResponse;
|
|
4667
|
+
};
|
|
4668
|
+
type DeleteChannelRouteError = DeleteChannelRouteErrors[keyof DeleteChannelRouteErrors];
|
|
4669
|
+
type DeleteChannelRouteResponses = {
|
|
4670
|
+
/**
|
|
4671
|
+
* Route deleted.
|
|
4672
|
+
*/
|
|
4673
|
+
204: void;
|
|
4674
|
+
};
|
|
4675
|
+
type DeleteChannelRouteResponse = DeleteChannelRouteResponses[keyof DeleteChannelRouteResponses];
|
|
4676
|
+
type GetChannelRouteData = {
|
|
4677
|
+
body?: never;
|
|
4678
|
+
path: {
|
|
4679
|
+
/**
|
|
4680
|
+
* Project public ID (proj_ prefix).
|
|
4681
|
+
*/
|
|
4682
|
+
project_id: string;
|
|
4683
|
+
/**
|
|
4684
|
+
* Channel public ID (chan_ prefix).
|
|
4685
|
+
*/
|
|
4686
|
+
channel_id: string;
|
|
4687
|
+
/**
|
|
4688
|
+
* Route public ID (route_ prefix).
|
|
4689
|
+
*/
|
|
4690
|
+
route_id: string;
|
|
4691
|
+
};
|
|
4692
|
+
query?: never;
|
|
4693
|
+
url: '/v1/projects/{project_id}/channels/{channel_id}/routes/{route_id}';
|
|
4694
|
+
};
|
|
4695
|
+
type GetChannelRouteErrors = {
|
|
4696
|
+
/**
|
|
4697
|
+
* Missing or invalid credentials.
|
|
4698
|
+
*/
|
|
4699
|
+
401: ErrorResponse;
|
|
4700
|
+
/**
|
|
4701
|
+
* The resource does not exist (existence is not leaked).
|
|
4702
|
+
*/
|
|
4703
|
+
404: ErrorResponse;
|
|
4704
|
+
};
|
|
4705
|
+
type GetChannelRouteError = GetChannelRouteErrors[keyof GetChannelRouteErrors];
|
|
4706
|
+
type GetChannelRouteResponses = {
|
|
4707
|
+
/**
|
|
4708
|
+
* The route.
|
|
4709
|
+
*/
|
|
4710
|
+
200: ChannelRoute;
|
|
4711
|
+
};
|
|
4712
|
+
type GetChannelRouteResponse = GetChannelRouteResponses[keyof GetChannelRouteResponses];
|
|
4713
|
+
type UpdateChannelRouteData = {
|
|
4714
|
+
body: ChannelRouteWrite;
|
|
4715
|
+
path: {
|
|
4716
|
+
/**
|
|
4717
|
+
* Project public ID (proj_ prefix).
|
|
4718
|
+
*/
|
|
4719
|
+
project_id: string;
|
|
4720
|
+
/**
|
|
4721
|
+
* Channel public ID (chan_ prefix).
|
|
4722
|
+
*/
|
|
4723
|
+
channel_id: string;
|
|
4724
|
+
/**
|
|
4725
|
+
* Route public ID (route_ prefix).
|
|
4726
|
+
*/
|
|
4727
|
+
route_id: string;
|
|
4728
|
+
};
|
|
4729
|
+
query?: never;
|
|
4730
|
+
url: '/v1/projects/{project_id}/channels/{channel_id}/routes/{route_id}';
|
|
4731
|
+
};
|
|
4732
|
+
type UpdateChannelRouteErrors = {
|
|
4733
|
+
/**
|
|
4734
|
+
* The request was malformed or failed validation.
|
|
4735
|
+
*/
|
|
4736
|
+
400: ErrorResponse;
|
|
4737
|
+
/**
|
|
4738
|
+
* Missing or invalid credentials.
|
|
4739
|
+
*/
|
|
4740
|
+
401: ErrorResponse;
|
|
4741
|
+
/**
|
|
4742
|
+
* The resource does not exist (existence is not leaked).
|
|
4743
|
+
*/
|
|
4744
|
+
404: ErrorResponse;
|
|
4745
|
+
/**
|
|
4746
|
+
* The request conflicts with the resource's current state.
|
|
4747
|
+
*/
|
|
4748
|
+
409: ErrorResponse;
|
|
4749
|
+
};
|
|
4750
|
+
type UpdateChannelRouteError = UpdateChannelRouteErrors[keyof UpdateChannelRouteErrors];
|
|
4751
|
+
type UpdateChannelRouteResponses = {
|
|
4752
|
+
/**
|
|
4753
|
+
* Route replaced.
|
|
4754
|
+
*/
|
|
4755
|
+
200: ChannelRoute;
|
|
4756
|
+
};
|
|
4757
|
+
type UpdateChannelRouteResponse = UpdateChannelRouteResponses[keyof UpdateChannelRouteResponses];
|
|
4758
|
+
type ListProjectChannelRoutesData = {
|
|
4759
|
+
body?: never;
|
|
4760
|
+
path: {
|
|
4761
|
+
/**
|
|
4762
|
+
* Project public ID (proj_ prefix).
|
|
4763
|
+
*/
|
|
4764
|
+
project_id: string;
|
|
4765
|
+
};
|
|
4766
|
+
query?: never;
|
|
4767
|
+
url: '/v1/projects/{project_id}/channel-routes';
|
|
4768
|
+
};
|
|
4769
|
+
type ListProjectChannelRoutesErrors = {
|
|
4770
|
+
/**
|
|
4771
|
+
* Missing or invalid credentials.
|
|
4772
|
+
*/
|
|
4773
|
+
401: ErrorResponse;
|
|
4774
|
+
/**
|
|
4775
|
+
* The resource does not exist (existence is not leaked).
|
|
4776
|
+
*/
|
|
4777
|
+
404: ErrorResponse;
|
|
4778
|
+
};
|
|
4779
|
+
type ListProjectChannelRoutesError = ListProjectChannelRoutesErrors[keyof ListProjectChannelRoutesErrors];
|
|
4780
|
+
type ListProjectChannelRoutesResponses = {
|
|
4781
|
+
/**
|
|
4782
|
+
* Every route in the project.
|
|
4783
|
+
*/
|
|
4784
|
+
200: {
|
|
4785
|
+
data: Array<ChannelRoute>;
|
|
4786
|
+
};
|
|
4787
|
+
};
|
|
4788
|
+
type ListProjectChannelRoutesResponse = ListProjectChannelRoutesResponses[keyof ListProjectChannelRoutesResponses];
|
|
4789
|
+
type CreateConversationData = {
|
|
4790
|
+
body: {
|
|
4791
|
+
channel_id: string;
|
|
4792
|
+
/**
|
|
4793
|
+
* The bare, channel-native identifier (a phone number, a Discord user id).
|
|
4794
|
+
*/
|
|
4795
|
+
identifier: string;
|
|
4796
|
+
};
|
|
4797
|
+
path: {
|
|
4798
|
+
/**
|
|
4799
|
+
* Project public ID (proj_ prefix).
|
|
4800
|
+
*/
|
|
4801
|
+
project_id: string;
|
|
4802
|
+
};
|
|
4803
|
+
query?: never;
|
|
4804
|
+
url: '/v1/projects/{project_id}/conversations';
|
|
4193
4805
|
};
|
|
4194
|
-
type
|
|
4806
|
+
type CreateConversationErrors = {
|
|
4807
|
+
/**
|
|
4808
|
+
* The request was malformed or failed validation.
|
|
4809
|
+
*/
|
|
4810
|
+
400: ErrorResponse;
|
|
4195
4811
|
/**
|
|
4196
4812
|
* Missing or invalid credentials.
|
|
4197
4813
|
*/
|
|
4198
4814
|
401: ErrorResponse;
|
|
4199
|
-
};
|
|
4200
|
-
type LogoutError = LogoutErrors[keyof LogoutErrors];
|
|
4201
|
-
type LogoutResponses = {
|
|
4202
4815
|
/**
|
|
4203
|
-
*
|
|
4816
|
+
* The resource does not exist (existence is not leaked).
|
|
4204
4817
|
*/
|
|
4205
|
-
|
|
4206
|
-
};
|
|
4207
|
-
type LogoutResponse = LogoutResponses[keyof LogoutResponses];
|
|
4208
|
-
type GetCurrentUserData = {
|
|
4209
|
-
body?: never;
|
|
4210
|
-
path?: never;
|
|
4211
|
-
query?: never;
|
|
4212
|
-
url: '/v1/auth/me';
|
|
4213
|
-
};
|
|
4214
|
-
type GetCurrentUserErrors = {
|
|
4818
|
+
404: ErrorResponse;
|
|
4215
4819
|
/**
|
|
4216
|
-
*
|
|
4820
|
+
* The request conflicts with the resource's current state.
|
|
4217
4821
|
*/
|
|
4218
|
-
|
|
4822
|
+
409: ErrorResponse;
|
|
4823
|
+
/**
|
|
4824
|
+
* The upstream runtime could not complete the operation.
|
|
4825
|
+
*/
|
|
4826
|
+
502: ErrorResponse;
|
|
4219
4827
|
};
|
|
4220
|
-
type
|
|
4221
|
-
type
|
|
4828
|
+
type CreateConversationError = CreateConversationErrors[keyof CreateConversationErrors];
|
|
4829
|
+
type CreateConversationResponses = {
|
|
4222
4830
|
/**
|
|
4223
|
-
*
|
|
4831
|
+
* Conversation opened (or already existing).
|
|
4224
4832
|
*/
|
|
4225
|
-
|
|
4833
|
+
201: Conversation;
|
|
4226
4834
|
};
|
|
4227
|
-
type
|
|
4228
|
-
type
|
|
4835
|
+
type CreateConversationResponse = CreateConversationResponses[keyof CreateConversationResponses];
|
|
4836
|
+
type ListChannelsData = {
|
|
4229
4837
|
body?: never;
|
|
4230
4838
|
path: {
|
|
4231
4839
|
/**
|
|
@@ -4243,13 +4851,9 @@ type ListBoardsData = {
|
|
|
4243
4851
|
*/
|
|
4244
4852
|
cursor?: string;
|
|
4245
4853
|
};
|
|
4246
|
-
url: '/v1/projects/{project_id}/
|
|
4854
|
+
url: '/v1/projects/{project_id}/channels';
|
|
4247
4855
|
};
|
|
4248
|
-
type
|
|
4249
|
-
/**
|
|
4250
|
-
* The request was malformed or failed validation.
|
|
4251
|
-
*/
|
|
4252
|
-
400: ErrorResponse;
|
|
4856
|
+
type ListChannelsErrors = {
|
|
4253
4857
|
/**
|
|
4254
4858
|
* Missing or invalid credentials.
|
|
4255
4859
|
*/
|
|
@@ -4258,21 +4862,17 @@ type ListBoardsErrors = {
|
|
|
4258
4862
|
* The resource does not exist (existence is not leaked).
|
|
4259
4863
|
*/
|
|
4260
4864
|
404: ErrorResponse;
|
|
4261
|
-
/**
|
|
4262
|
-
* The upstream runtime could not complete the operation.
|
|
4263
|
-
*/
|
|
4264
|
-
502: ErrorResponse;
|
|
4265
4865
|
};
|
|
4266
|
-
type
|
|
4267
|
-
type
|
|
4866
|
+
type ListChannelsError = ListChannelsErrors[keyof ListChannelsErrors];
|
|
4867
|
+
type ListChannelsResponses = {
|
|
4268
4868
|
/**
|
|
4269
|
-
* A page of
|
|
4869
|
+
* A page of channels.
|
|
4270
4870
|
*/
|
|
4271
|
-
200:
|
|
4871
|
+
200: ChannelList;
|
|
4272
4872
|
};
|
|
4273
|
-
type
|
|
4274
|
-
type
|
|
4275
|
-
body:
|
|
4873
|
+
type ListChannelsResponse = ListChannelsResponses[keyof ListChannelsResponses];
|
|
4874
|
+
type CreateChannelData = {
|
|
4875
|
+
body: ChannelCreate;
|
|
4276
4876
|
headers?: {
|
|
4277
4877
|
/**
|
|
4278
4878
|
* Client-supplied key to make this mutating POST idempotent.
|
|
@@ -4286,12 +4886,11 @@ type CreateBoardData = {
|
|
|
4286
4886
|
project_id: string;
|
|
4287
4887
|
};
|
|
4288
4888
|
query?: never;
|
|
4289
|
-
url: '/v1/projects/{project_id}/
|
|
4889
|
+
url: '/v1/projects/{project_id}/channels';
|
|
4290
4890
|
};
|
|
4291
|
-
type
|
|
4891
|
+
type CreateChannelErrors = {
|
|
4292
4892
|
/**
|
|
4293
|
-
* The request was malformed
|
|
4294
|
-
*
|
|
4893
|
+
* The request was malformed or failed validation.
|
|
4295
4894
|
*/
|
|
4296
4895
|
400: ErrorResponse;
|
|
4297
4896
|
/**
|
|
@@ -4302,20 +4901,29 @@ type CreateBoardErrors = {
|
|
|
4302
4901
|
* The resource does not exist (existence is not leaked).
|
|
4303
4902
|
*/
|
|
4304
4903
|
404: ErrorResponse;
|
|
4904
|
+
/**
|
|
4905
|
+
* The request conflicts with the resource's current state.
|
|
4906
|
+
*/
|
|
4907
|
+
409: ErrorResponse;
|
|
4908
|
+
/**
|
|
4909
|
+
* The requested path is not enabled on this deployment (e.g. embedded signup before Meta App credentials are configured, or a Discord channel before `CHANNEL_TOKEN_KEY` is set).
|
|
4910
|
+
*
|
|
4911
|
+
*/
|
|
4912
|
+
501: ErrorResponse;
|
|
4305
4913
|
/**
|
|
4306
4914
|
* The upstream runtime could not complete the operation.
|
|
4307
4915
|
*/
|
|
4308
4916
|
502: ErrorResponse;
|
|
4309
4917
|
};
|
|
4310
|
-
type
|
|
4311
|
-
type
|
|
4918
|
+
type CreateChannelError = CreateChannelErrors[keyof CreateChannelErrors];
|
|
4919
|
+
type CreateChannelResponses = {
|
|
4312
4920
|
/**
|
|
4313
|
-
*
|
|
4921
|
+
* Channel created.
|
|
4314
4922
|
*/
|
|
4315
|
-
201:
|
|
4923
|
+
201: Channel;
|
|
4316
4924
|
};
|
|
4317
|
-
type
|
|
4318
|
-
type
|
|
4925
|
+
type CreateChannelResponse = CreateChannelResponses[keyof CreateChannelResponses];
|
|
4926
|
+
type DeleteChannelData = {
|
|
4319
4927
|
body?: never;
|
|
4320
4928
|
path: {
|
|
4321
4929
|
/**
|
|
@@ -4323,14 +4931,14 @@ type DeleteBoardData = {
|
|
|
4323
4931
|
*/
|
|
4324
4932
|
project_id: string;
|
|
4325
4933
|
/**
|
|
4326
|
-
*
|
|
4934
|
+
* Channel public ID (chan_ prefix).
|
|
4327
4935
|
*/
|
|
4328
|
-
|
|
4936
|
+
channel_id: string;
|
|
4329
4937
|
};
|
|
4330
4938
|
query?: never;
|
|
4331
|
-
url: '/v1/projects/{project_id}/
|
|
4939
|
+
url: '/v1/projects/{project_id}/channels/{channel_id}';
|
|
4332
4940
|
};
|
|
4333
|
-
type
|
|
4941
|
+
type DeleteChannelErrors = {
|
|
4334
4942
|
/**
|
|
4335
4943
|
* Missing or invalid credentials.
|
|
4336
4944
|
*/
|
|
@@ -4339,24 +4947,20 @@ type DeleteBoardErrors = {
|
|
|
4339
4947
|
* The resource does not exist (existence is not leaked).
|
|
4340
4948
|
*/
|
|
4341
4949
|
404: ErrorResponse;
|
|
4342
|
-
/**
|
|
4343
|
-
* The request conflicts with the resource's current state.
|
|
4344
|
-
*/
|
|
4345
|
-
409: ErrorResponse;
|
|
4346
4950
|
/**
|
|
4347
4951
|
* The upstream runtime could not complete the operation.
|
|
4348
4952
|
*/
|
|
4349
4953
|
502: ErrorResponse;
|
|
4350
4954
|
};
|
|
4351
|
-
type
|
|
4352
|
-
type
|
|
4955
|
+
type DeleteChannelError = DeleteChannelErrors[keyof DeleteChannelErrors];
|
|
4956
|
+
type DeleteChannelResponses = {
|
|
4353
4957
|
/**
|
|
4354
|
-
*
|
|
4958
|
+
* Channel deleted.
|
|
4355
4959
|
*/
|
|
4356
4960
|
204: void;
|
|
4357
4961
|
};
|
|
4358
|
-
type
|
|
4359
|
-
type
|
|
4962
|
+
type DeleteChannelResponse = DeleteChannelResponses[keyof DeleteChannelResponses];
|
|
4963
|
+
type GetChannelData = {
|
|
4360
4964
|
body?: never;
|
|
4361
4965
|
path: {
|
|
4362
4966
|
/**
|
|
@@ -4364,14 +4968,14 @@ type GetBoardData = {
|
|
|
4364
4968
|
*/
|
|
4365
4969
|
project_id: string;
|
|
4366
4970
|
/**
|
|
4367
|
-
*
|
|
4971
|
+
* Channel public ID (chan_ prefix).
|
|
4368
4972
|
*/
|
|
4369
|
-
|
|
4973
|
+
channel_id: string;
|
|
4370
4974
|
};
|
|
4371
4975
|
query?: never;
|
|
4372
|
-
url: '/v1/projects/{project_id}/
|
|
4976
|
+
url: '/v1/projects/{project_id}/channels/{channel_id}';
|
|
4373
4977
|
};
|
|
4374
|
-
type
|
|
4978
|
+
type GetChannelErrors = {
|
|
4375
4979
|
/**
|
|
4376
4980
|
* Missing or invalid credentials.
|
|
4377
4981
|
*/
|
|
@@ -4380,38 +4984,33 @@ type GetBoardErrors = {
|
|
|
4380
4984
|
* The resource does not exist (existence is not leaked).
|
|
4381
4985
|
*/
|
|
4382
4986
|
404: ErrorResponse;
|
|
4383
|
-
/**
|
|
4384
|
-
* The upstream runtime could not complete the operation.
|
|
4385
|
-
*/
|
|
4386
|
-
502: ErrorResponse;
|
|
4387
4987
|
};
|
|
4388
|
-
type
|
|
4389
|
-
type
|
|
4988
|
+
type GetChannelError = GetChannelErrors[keyof GetChannelErrors];
|
|
4989
|
+
type GetChannelResponses = {
|
|
4390
4990
|
/**
|
|
4391
|
-
*
|
|
4991
|
+
* Channel details.
|
|
4392
4992
|
*/
|
|
4393
|
-
200:
|
|
4993
|
+
200: Channel;
|
|
4394
4994
|
};
|
|
4395
|
-
type
|
|
4396
|
-
type
|
|
4397
|
-
body:
|
|
4995
|
+
type GetChannelResponse = GetChannelResponses[keyof GetChannelResponses];
|
|
4996
|
+
type UpdateChannelData = {
|
|
4997
|
+
body: ChannelUpdate;
|
|
4398
4998
|
path: {
|
|
4399
4999
|
/**
|
|
4400
5000
|
* Project public ID (proj_ prefix).
|
|
4401
5001
|
*/
|
|
4402
5002
|
project_id: string;
|
|
4403
5003
|
/**
|
|
4404
|
-
*
|
|
5004
|
+
* Channel public ID (chan_ prefix).
|
|
4405
5005
|
*/
|
|
4406
|
-
|
|
5006
|
+
channel_id: string;
|
|
4407
5007
|
};
|
|
4408
5008
|
query?: never;
|
|
4409
|
-
url: '/v1/projects/{project_id}/
|
|
5009
|
+
url: '/v1/projects/{project_id}/channels/{channel_id}';
|
|
4410
5010
|
};
|
|
4411
|
-
type
|
|
5011
|
+
type UpdateChannelErrors = {
|
|
4412
5012
|
/**
|
|
4413
|
-
* The request was malformed
|
|
4414
|
-
*
|
|
5013
|
+
* The request was malformed or failed validation.
|
|
4415
5014
|
*/
|
|
4416
5015
|
400: ErrorResponse;
|
|
4417
5016
|
/**
|
|
@@ -4427,35 +5026,15 @@ type UpdateBoardErrors = {
|
|
|
4427
5026
|
*/
|
|
4428
5027
|
502: ErrorResponse;
|
|
4429
5028
|
};
|
|
4430
|
-
type
|
|
4431
|
-
type
|
|
4432
|
-
/**
|
|
4433
|
-
* Board updated.
|
|
4434
|
-
*/
|
|
4435
|
-
200: Board;
|
|
4436
|
-
};
|
|
4437
|
-
type UpdateBoardResponse = UpdateBoardResponses[keyof UpdateBoardResponses];
|
|
4438
|
-
type ListChannelKindsData = {
|
|
4439
|
-
body?: never;
|
|
4440
|
-
path?: never;
|
|
4441
|
-
query?: never;
|
|
4442
|
-
url: '/v1/channel-kinds';
|
|
4443
|
-
};
|
|
4444
|
-
type ListChannelKindsErrors = {
|
|
4445
|
-
/**
|
|
4446
|
-
* Missing or invalid credentials.
|
|
4447
|
-
*/
|
|
4448
|
-
401: ErrorResponse;
|
|
4449
|
-
};
|
|
4450
|
-
type ListChannelKindsError = ListChannelKindsErrors[keyof ListChannelKindsErrors];
|
|
4451
|
-
type ListChannelKindsResponses = {
|
|
5029
|
+
type UpdateChannelError = UpdateChannelErrors[keyof UpdateChannelErrors];
|
|
5030
|
+
type UpdateChannelResponses = {
|
|
4452
5031
|
/**
|
|
4453
|
-
*
|
|
5032
|
+
* Channel updated.
|
|
4454
5033
|
*/
|
|
4455
|
-
200:
|
|
5034
|
+
200: Channel;
|
|
4456
5035
|
};
|
|
4457
|
-
type
|
|
4458
|
-
type
|
|
5036
|
+
type UpdateChannelResponse = UpdateChannelResponses[keyof UpdateChannelResponses];
|
|
5037
|
+
type ListChannelConversationsData = {
|
|
4459
5038
|
body?: never;
|
|
4460
5039
|
path: {
|
|
4461
5040
|
/**
|
|
@@ -4476,10 +5055,19 @@ type ListChannelRoutesData = {
|
|
|
4476
5055
|
* Opaque pagination cursor from a previous response's next_cursor.
|
|
4477
5056
|
*/
|
|
4478
5057
|
cursor?: string;
|
|
5058
|
+
/**
|
|
5059
|
+
* Filter to one address by its bare, channel-native identifier (a phone number on WhatsApp; a Discord user id, or `thread:<id>` for a guild thread) — the same value the channel itself reports, not the prefixed form the `identifier` field above returns. At most one row matches.
|
|
5060
|
+
*
|
|
5061
|
+
*/
|
|
5062
|
+
identifier?: string;
|
|
4479
5063
|
};
|
|
4480
|
-
url: '/v1/projects/{project_id}/channels/{channel_id}/
|
|
5064
|
+
url: '/v1/projects/{project_id}/channels/{channel_id}/conversations';
|
|
4481
5065
|
};
|
|
4482
|
-
type
|
|
5066
|
+
type ListChannelConversationsErrors = {
|
|
5067
|
+
/**
|
|
5068
|
+
* The request was malformed or failed validation.
|
|
5069
|
+
*/
|
|
5070
|
+
400: ErrorResponse;
|
|
4483
5071
|
/**
|
|
4484
5072
|
* Missing or invalid credentials.
|
|
4485
5073
|
*/
|
|
@@ -4489,16 +5077,16 @@ type ListChannelRoutesErrors = {
|
|
|
4489
5077
|
*/
|
|
4490
5078
|
404: ErrorResponse;
|
|
4491
5079
|
};
|
|
4492
|
-
type
|
|
4493
|
-
type
|
|
5080
|
+
type ListChannelConversationsError = ListChannelConversationsErrors[keyof ListChannelConversationsErrors];
|
|
5081
|
+
type ListChannelConversationsResponses = {
|
|
4494
5082
|
/**
|
|
4495
|
-
* A page of
|
|
5083
|
+
* A page of conversations.
|
|
4496
5084
|
*/
|
|
4497
|
-
200:
|
|
5085
|
+
200: ConversationList;
|
|
4498
5086
|
};
|
|
4499
|
-
type
|
|
4500
|
-
type
|
|
4501
|
-
body
|
|
5087
|
+
type ListChannelConversationsResponse = ListChannelConversationsResponses[keyof ListChannelConversationsResponses];
|
|
5088
|
+
type GetChannelConversationData = {
|
|
5089
|
+
body?: never;
|
|
4502
5090
|
path: {
|
|
4503
5091
|
/**
|
|
4504
5092
|
* Project public ID (proj_ prefix).
|
|
@@ -4508,15 +5096,15 @@ type CreateChannelRouteData = {
|
|
|
4508
5096
|
* Channel public ID (chan_ prefix).
|
|
4509
5097
|
*/
|
|
4510
5098
|
channel_id: string;
|
|
5099
|
+
/**
|
|
5100
|
+
* Conversation public ID (conv_ prefix).
|
|
5101
|
+
*/
|
|
5102
|
+
conversation_id: string;
|
|
4511
5103
|
};
|
|
4512
5104
|
query?: never;
|
|
4513
|
-
url: '/v1/projects/{project_id}/channels/{channel_id}/
|
|
5105
|
+
url: '/v1/projects/{project_id}/channels/{channel_id}/conversations/{conversation_id}';
|
|
4514
5106
|
};
|
|
4515
|
-
type
|
|
4516
|
-
/**
|
|
4517
|
-
* The request was malformed or failed validation.
|
|
4518
|
-
*/
|
|
4519
|
-
400: ErrorResponse;
|
|
5107
|
+
type GetChannelConversationErrors = {
|
|
4520
5108
|
/**
|
|
4521
5109
|
* Missing or invalid credentials.
|
|
4522
5110
|
*/
|
|
@@ -4525,20 +5113,16 @@ type CreateChannelRouteErrors = {
|
|
|
4525
5113
|
* The resource does not exist (existence is not leaked).
|
|
4526
5114
|
*/
|
|
4527
5115
|
404: ErrorResponse;
|
|
4528
|
-
/**
|
|
4529
|
-
* The request conflicts with the resource's current state.
|
|
4530
|
-
*/
|
|
4531
|
-
409: ErrorResponse;
|
|
4532
5116
|
};
|
|
4533
|
-
type
|
|
4534
|
-
type
|
|
5117
|
+
type GetChannelConversationError = GetChannelConversationErrors[keyof GetChannelConversationErrors];
|
|
5118
|
+
type GetChannelConversationResponses = {
|
|
4535
5119
|
/**
|
|
4536
|
-
*
|
|
5120
|
+
* The conversation.
|
|
4537
5121
|
*/
|
|
4538
|
-
|
|
5122
|
+
200: Conversation;
|
|
4539
5123
|
};
|
|
4540
|
-
type
|
|
4541
|
-
type
|
|
5124
|
+
type GetChannelConversationResponse = GetChannelConversationResponses[keyof GetChannelConversationResponses];
|
|
5125
|
+
type ListChannelConversationMessagesData = {
|
|
4542
5126
|
body?: never;
|
|
4543
5127
|
path: {
|
|
4544
5128
|
/**
|
|
@@ -4546,18 +5130,32 @@ type DeleteChannelRouteData = {
|
|
|
4546
5130
|
*/
|
|
4547
5131
|
project_id: string;
|
|
4548
5132
|
/**
|
|
4549
|
-
* Channel public ID (chan_ prefix).
|
|
5133
|
+
* Channel public ID (chan_ prefix).
|
|
5134
|
+
*/
|
|
5135
|
+
channel_id: string;
|
|
5136
|
+
/**
|
|
5137
|
+
* Conversation public ID (conv_ prefix).
|
|
5138
|
+
*/
|
|
5139
|
+
conversation_id: string;
|
|
5140
|
+
};
|
|
5141
|
+
query?: {
|
|
5142
|
+
/**
|
|
5143
|
+
* Maximum messages per page.
|
|
4550
5144
|
*/
|
|
4551
|
-
|
|
5145
|
+
limit?: number;
|
|
4552
5146
|
/**
|
|
4553
|
-
*
|
|
5147
|
+
* Items to skip. This list pages by offset rather than by naturali's usual opaque cursor because the upstream ordering is offset-based; a cursor here would only imitate a keyset.
|
|
5148
|
+
*
|
|
4554
5149
|
*/
|
|
4555
|
-
|
|
5150
|
+
offset?: number;
|
|
4556
5151
|
};
|
|
4557
|
-
|
|
4558
|
-
url: '/v1/projects/{project_id}/channels/{channel_id}/routes/{route_id}';
|
|
5152
|
+
url: '/v1/projects/{project_id}/channels/{channel_id}/conversations/{conversation_id}/messages';
|
|
4559
5153
|
};
|
|
4560
|
-
type
|
|
5154
|
+
type ListChannelConversationMessagesErrors = {
|
|
5155
|
+
/**
|
|
5156
|
+
* The request was malformed or failed validation.
|
|
5157
|
+
*/
|
|
5158
|
+
400: ErrorResponse;
|
|
4561
5159
|
/**
|
|
4562
5160
|
* Missing or invalid credentials.
|
|
4563
5161
|
*/
|
|
@@ -4566,16 +5164,20 @@ type DeleteChannelRouteErrors = {
|
|
|
4566
5164
|
* The resource does not exist (existence is not leaked).
|
|
4567
5165
|
*/
|
|
4568
5166
|
404: ErrorResponse;
|
|
5167
|
+
/**
|
|
5168
|
+
* The upstream runtime could not complete the operation.
|
|
5169
|
+
*/
|
|
5170
|
+
502: ErrorResponse;
|
|
4569
5171
|
};
|
|
4570
|
-
type
|
|
4571
|
-
type
|
|
5172
|
+
type ListChannelConversationMessagesError = ListChannelConversationMessagesErrors[keyof ListChannelConversationMessagesErrors];
|
|
5173
|
+
type ListChannelConversationMessagesResponses = {
|
|
4572
5174
|
/**
|
|
4573
|
-
*
|
|
5175
|
+
* A page of messages.
|
|
4574
5176
|
*/
|
|
4575
|
-
|
|
5177
|
+
200: ConversationMessageList;
|
|
4576
5178
|
};
|
|
4577
|
-
type
|
|
4578
|
-
type
|
|
5179
|
+
type ListChannelConversationMessagesResponse = ListChannelConversationMessagesResponses[keyof ListChannelConversationMessagesResponses];
|
|
5180
|
+
type ListAgentGenerationsData = {
|
|
4579
5181
|
body?: never;
|
|
4580
5182
|
path: {
|
|
4581
5183
|
/**
|
|
@@ -4583,18 +5185,32 @@ type GetChannelRouteData = {
|
|
|
4583
5185
|
*/
|
|
4584
5186
|
project_id: string;
|
|
4585
5187
|
/**
|
|
4586
|
-
*
|
|
5188
|
+
* Agent public ID (agent_ prefix).
|
|
4587
5189
|
*/
|
|
4588
|
-
|
|
5190
|
+
agent_id: string;
|
|
5191
|
+
};
|
|
5192
|
+
query?: {
|
|
4589
5193
|
/**
|
|
4590
|
-
*
|
|
5194
|
+
* Filter to one lifecycle status.
|
|
4591
5195
|
*/
|
|
4592
|
-
|
|
5196
|
+
status?: 'in_progress' | 'requires_action' | 'completed' | 'failed';
|
|
5197
|
+
/**
|
|
5198
|
+
* Maximum items to return (1–100).
|
|
5199
|
+
*/
|
|
5200
|
+
limit?: number;
|
|
5201
|
+
/**
|
|
5202
|
+
* Items to skip. This list pages by offset rather than by naturali's usual opaque cursor because the upstream ordering is offset-based; a cursor here would only imitate a keyset.
|
|
5203
|
+
*
|
|
5204
|
+
*/
|
|
5205
|
+
offset?: number;
|
|
4593
5206
|
};
|
|
4594
|
-
|
|
4595
|
-
url: '/v1/projects/{project_id}/channels/{channel_id}/routes/{route_id}';
|
|
5207
|
+
url: '/v1/projects/{project_id}/agents/{agent_id}/generations';
|
|
4596
5208
|
};
|
|
4597
|
-
type
|
|
5209
|
+
type ListAgentGenerationsErrors = {
|
|
5210
|
+
/**
|
|
5211
|
+
* The request was malformed or failed validation.
|
|
5212
|
+
*/
|
|
5213
|
+
400: ErrorResponse;
|
|
4598
5214
|
/**
|
|
4599
5215
|
* Missing or invalid credentials.
|
|
4600
5216
|
*/
|
|
@@ -4603,35 +5219,41 @@ type GetChannelRouteErrors = {
|
|
|
4603
5219
|
* The resource does not exist (existence is not leaked).
|
|
4604
5220
|
*/
|
|
4605
5221
|
404: ErrorResponse;
|
|
5222
|
+
/**
|
|
5223
|
+
* The upstream runtime could not complete the operation.
|
|
5224
|
+
*/
|
|
5225
|
+
502: ErrorResponse;
|
|
4606
5226
|
};
|
|
4607
|
-
type
|
|
4608
|
-
type
|
|
5227
|
+
type ListAgentGenerationsError = ListAgentGenerationsErrors[keyof ListAgentGenerationsErrors];
|
|
5228
|
+
type ListAgentGenerationsResponses = {
|
|
4609
5229
|
/**
|
|
4610
|
-
*
|
|
5230
|
+
* A page of generation records.
|
|
4611
5231
|
*/
|
|
4612
|
-
200:
|
|
5232
|
+
200: GenerationList;
|
|
4613
5233
|
};
|
|
4614
|
-
type
|
|
4615
|
-
type
|
|
4616
|
-
body:
|
|
5234
|
+
type ListAgentGenerationsResponse = ListAgentGenerationsResponses[keyof ListAgentGenerationsResponses];
|
|
5235
|
+
type CreateGenerationData = {
|
|
5236
|
+
body: GenerationCreate;
|
|
5237
|
+
headers?: {
|
|
5238
|
+
/**
|
|
5239
|
+
* Client-supplied key to make this mutating POST idempotent.
|
|
5240
|
+
*/
|
|
5241
|
+
'Idempotency-Key'?: string;
|
|
5242
|
+
};
|
|
4617
5243
|
path: {
|
|
4618
5244
|
/**
|
|
4619
5245
|
* Project public ID (proj_ prefix).
|
|
4620
5246
|
*/
|
|
4621
5247
|
project_id: string;
|
|
4622
5248
|
/**
|
|
4623
|
-
*
|
|
4624
|
-
*/
|
|
4625
|
-
channel_id: string;
|
|
4626
|
-
/**
|
|
4627
|
-
* Route public ID (route_ prefix).
|
|
5249
|
+
* Agent public ID (agent_ prefix).
|
|
4628
5250
|
*/
|
|
4629
|
-
|
|
5251
|
+
agent_id: string;
|
|
4630
5252
|
};
|
|
4631
5253
|
query?: never;
|
|
4632
|
-
url: '/v1/projects/{project_id}/
|
|
5254
|
+
url: '/v1/projects/{project_id}/agents/{agent_id}/generations';
|
|
4633
5255
|
};
|
|
4634
|
-
type
|
|
5256
|
+
type CreateGenerationErrors = {
|
|
4635
5257
|
/**
|
|
4636
5258
|
* The request was malformed or failed validation.
|
|
4637
5259
|
*/
|
|
@@ -4645,30 +5267,35 @@ type UpdateChannelRouteErrors = {
|
|
|
4645
5267
|
*/
|
|
4646
5268
|
404: ErrorResponse;
|
|
4647
5269
|
/**
|
|
4648
|
-
* The
|
|
5270
|
+
* The upstream runtime could not complete the operation.
|
|
4649
5271
|
*/
|
|
4650
|
-
|
|
5272
|
+
502: ErrorResponse;
|
|
4651
5273
|
};
|
|
4652
|
-
type
|
|
4653
|
-
type
|
|
5274
|
+
type CreateGenerationError = CreateGenerationErrors[keyof CreateGenerationErrors];
|
|
5275
|
+
type CreateGenerationResponses = {
|
|
4654
5276
|
/**
|
|
4655
|
-
*
|
|
5277
|
+
* The generation result — a single JSON body, or (when stream is true) a Server-Sent Events stream of generation events.
|
|
5278
|
+
*
|
|
4656
5279
|
*/
|
|
4657
|
-
200:
|
|
5280
|
+
200: GenerationResult;
|
|
4658
5281
|
};
|
|
4659
|
-
type
|
|
4660
|
-
type
|
|
5282
|
+
type CreateGenerationResponse = CreateGenerationResponses[keyof CreateGenerationResponses];
|
|
5283
|
+
type GetGenerationData = {
|
|
4661
5284
|
body?: never;
|
|
4662
5285
|
path: {
|
|
4663
5286
|
/**
|
|
4664
5287
|
* Project public ID (proj_ prefix).
|
|
4665
5288
|
*/
|
|
4666
5289
|
project_id: string;
|
|
5290
|
+
/**
|
|
5291
|
+
* Generation public ID (gen_ prefix).
|
|
5292
|
+
*/
|
|
5293
|
+
generation_id: string;
|
|
4667
5294
|
};
|
|
4668
5295
|
query?: never;
|
|
4669
|
-
url: '/v1/projects/{project_id}/
|
|
5296
|
+
url: '/v1/projects/{project_id}/generations/{generation_id}';
|
|
4670
5297
|
};
|
|
4671
|
-
type
|
|
5298
|
+
type GetGenerationErrors = {
|
|
4672
5299
|
/**
|
|
4673
5300
|
* Missing or invalid credentials.
|
|
4674
5301
|
*/
|
|
@@ -4677,39 +5304,35 @@ type ListProjectChannelRoutesErrors = {
|
|
|
4677
5304
|
* The resource does not exist (existence is not leaked).
|
|
4678
5305
|
*/
|
|
4679
5306
|
404: ErrorResponse;
|
|
5307
|
+
/**
|
|
5308
|
+
* The upstream runtime could not complete the operation.
|
|
5309
|
+
*/
|
|
5310
|
+
502: ErrorResponse;
|
|
4680
5311
|
};
|
|
4681
|
-
type
|
|
4682
|
-
type
|
|
5312
|
+
type GetGenerationError = GetGenerationErrors[keyof GetGenerationErrors];
|
|
5313
|
+
type GetGenerationResponses = {
|
|
4683
5314
|
/**
|
|
4684
|
-
*
|
|
5315
|
+
* The generation record.
|
|
4685
5316
|
*/
|
|
4686
|
-
200:
|
|
4687
|
-
data: Array<ChannelRoute>;
|
|
4688
|
-
};
|
|
5317
|
+
200: Generation;
|
|
4689
5318
|
};
|
|
4690
|
-
type
|
|
4691
|
-
type
|
|
4692
|
-
body
|
|
4693
|
-
channel_id: string;
|
|
4694
|
-
/**
|
|
4695
|
-
* The bare, channel-native identifier (a phone number, a Discord user id).
|
|
4696
|
-
*/
|
|
4697
|
-
identifier: string;
|
|
4698
|
-
};
|
|
5319
|
+
type GetGenerationResponse = GetGenerationResponses[keyof GetGenerationResponses];
|
|
5320
|
+
type GetGenerationUsageData = {
|
|
5321
|
+
body?: never;
|
|
4699
5322
|
path: {
|
|
4700
5323
|
/**
|
|
4701
5324
|
* Project public ID (proj_ prefix).
|
|
4702
5325
|
*/
|
|
4703
5326
|
project_id: string;
|
|
5327
|
+
/**
|
|
5328
|
+
* Generation public ID (gen_ prefix).
|
|
5329
|
+
*/
|
|
5330
|
+
generation_id: string;
|
|
4704
5331
|
};
|
|
4705
5332
|
query?: never;
|
|
4706
|
-
url: '/v1/projects/{project_id}/
|
|
5333
|
+
url: '/v1/projects/{project_id}/generations/{generation_id}/usage';
|
|
4707
5334
|
};
|
|
4708
|
-
type
|
|
4709
|
-
/**
|
|
4710
|
-
* The request was malformed or failed validation.
|
|
4711
|
-
*/
|
|
4712
|
-
400: ErrorResponse;
|
|
5335
|
+
type GetGenerationUsageErrors = {
|
|
4713
5336
|
/**
|
|
4714
5337
|
* Missing or invalid credentials.
|
|
4715
5338
|
*/
|
|
@@ -4718,24 +5341,20 @@ type CreateConversationErrors = {
|
|
|
4718
5341
|
* The resource does not exist (existence is not leaked).
|
|
4719
5342
|
*/
|
|
4720
5343
|
404: ErrorResponse;
|
|
4721
|
-
/**
|
|
4722
|
-
* The request conflicts with the resource's current state.
|
|
4723
|
-
*/
|
|
4724
|
-
409: ErrorResponse;
|
|
4725
5344
|
/**
|
|
4726
5345
|
* The upstream runtime could not complete the operation.
|
|
4727
5346
|
*/
|
|
4728
5347
|
502: ErrorResponse;
|
|
4729
5348
|
};
|
|
4730
|
-
type
|
|
4731
|
-
type
|
|
5349
|
+
type GetGenerationUsageError = GetGenerationUsageErrors[keyof GetGenerationUsageErrors];
|
|
5350
|
+
type GetGenerationUsageResponses = {
|
|
4732
5351
|
/**
|
|
4733
|
-
*
|
|
5352
|
+
* The generation's usage receipt.
|
|
4734
5353
|
*/
|
|
4735
|
-
|
|
5354
|
+
200: GenerationUsage;
|
|
4736
5355
|
};
|
|
4737
|
-
type
|
|
4738
|
-
type
|
|
5356
|
+
type GetGenerationUsageResponse = GetGenerationUsageResponses[keyof GetGenerationUsageResponses];
|
|
5357
|
+
type ListKnowledgeCollectionsData = {
|
|
4739
5358
|
body?: never;
|
|
4740
5359
|
path: {
|
|
4741
5360
|
/**
|
|
@@ -4753,9 +5372,9 @@ type ListChannelsData = {
|
|
|
4753
5372
|
*/
|
|
4754
5373
|
cursor?: string;
|
|
4755
5374
|
};
|
|
4756
|
-
url: '/v1/projects/{project_id}/
|
|
5375
|
+
url: '/v1/projects/{project_id}/knowledge/collections';
|
|
4757
5376
|
};
|
|
4758
|
-
type
|
|
5377
|
+
type ListKnowledgeCollectionsErrors = {
|
|
4759
5378
|
/**
|
|
4760
5379
|
* Missing or invalid credentials.
|
|
4761
5380
|
*/
|
|
@@ -4765,16 +5384,16 @@ type ListChannelsErrors = {
|
|
|
4765
5384
|
*/
|
|
4766
5385
|
404: ErrorResponse;
|
|
4767
5386
|
};
|
|
4768
|
-
type
|
|
4769
|
-
type
|
|
5387
|
+
type ListKnowledgeCollectionsError = ListKnowledgeCollectionsErrors[keyof ListKnowledgeCollectionsErrors];
|
|
5388
|
+
type ListKnowledgeCollectionsResponses = {
|
|
4770
5389
|
/**
|
|
4771
|
-
* A page of
|
|
5390
|
+
* A page of collections.
|
|
4772
5391
|
*/
|
|
4773
|
-
200:
|
|
5392
|
+
200: KnowledgeCollectionList;
|
|
4774
5393
|
};
|
|
4775
|
-
type
|
|
4776
|
-
type
|
|
4777
|
-
body:
|
|
5394
|
+
type ListKnowledgeCollectionsResponse = ListKnowledgeCollectionsResponses[keyof ListKnowledgeCollectionsResponses];
|
|
5395
|
+
type CreateKnowledgeCollectionData = {
|
|
5396
|
+
body: KnowledgeCollectionCreate;
|
|
4778
5397
|
headers?: {
|
|
4779
5398
|
/**
|
|
4780
5399
|
* Client-supplied key to make this mutating POST idempotent.
|
|
@@ -4788,9 +5407,9 @@ type CreateChannelData = {
|
|
|
4788
5407
|
project_id: string;
|
|
4789
5408
|
};
|
|
4790
5409
|
query?: never;
|
|
4791
|
-
url: '/v1/projects/{project_id}/
|
|
5410
|
+
url: '/v1/projects/{project_id}/knowledge/collections';
|
|
4792
5411
|
};
|
|
4793
|
-
type
|
|
5412
|
+
type CreateKnowledgeCollectionErrors = {
|
|
4794
5413
|
/**
|
|
4795
5414
|
* The request was malformed or failed validation.
|
|
4796
5415
|
*/
|
|
@@ -4807,62 +5426,16 @@ type CreateChannelErrors = {
|
|
|
4807
5426
|
* The request conflicts with the resource's current state.
|
|
4808
5427
|
*/
|
|
4809
5428
|
409: ErrorResponse;
|
|
4810
|
-
/**
|
|
4811
|
-
* The requested path is not enabled on this deployment (e.g. embedded signup before Meta App credentials are configured, or a Discord channel before `CHANNEL_TOKEN_KEY` is set).
|
|
4812
|
-
*
|
|
4813
|
-
*/
|
|
4814
|
-
501: ErrorResponse;
|
|
4815
|
-
/**
|
|
4816
|
-
* The upstream runtime could not complete the operation.
|
|
4817
|
-
*/
|
|
4818
|
-
502: ErrorResponse;
|
|
4819
|
-
};
|
|
4820
|
-
type CreateChannelError = CreateChannelErrors[keyof CreateChannelErrors];
|
|
4821
|
-
type CreateChannelResponses = {
|
|
4822
|
-
/**
|
|
4823
|
-
* Channel created.
|
|
4824
|
-
*/
|
|
4825
|
-
201: Channel;
|
|
4826
|
-
};
|
|
4827
|
-
type CreateChannelResponse = CreateChannelResponses[keyof CreateChannelResponses];
|
|
4828
|
-
type DeleteChannelData = {
|
|
4829
|
-
body?: never;
|
|
4830
|
-
path: {
|
|
4831
|
-
/**
|
|
4832
|
-
* Project public ID (proj_ prefix).
|
|
4833
|
-
*/
|
|
4834
|
-
project_id: string;
|
|
4835
|
-
/**
|
|
4836
|
-
* Channel public ID (chan_ prefix).
|
|
4837
|
-
*/
|
|
4838
|
-
channel_id: string;
|
|
4839
|
-
};
|
|
4840
|
-
query?: never;
|
|
4841
|
-
url: '/v1/projects/{project_id}/channels/{channel_id}';
|
|
4842
|
-
};
|
|
4843
|
-
type DeleteChannelErrors = {
|
|
4844
|
-
/**
|
|
4845
|
-
* Missing or invalid credentials.
|
|
4846
|
-
*/
|
|
4847
|
-
401: ErrorResponse;
|
|
4848
|
-
/**
|
|
4849
|
-
* The resource does not exist (existence is not leaked).
|
|
4850
|
-
*/
|
|
4851
|
-
404: ErrorResponse;
|
|
4852
|
-
/**
|
|
4853
|
-
* The upstream runtime could not complete the operation.
|
|
4854
|
-
*/
|
|
4855
|
-
502: ErrorResponse;
|
|
4856
5429
|
};
|
|
4857
|
-
type
|
|
4858
|
-
type
|
|
5430
|
+
type CreateKnowledgeCollectionError = CreateKnowledgeCollectionErrors[keyof CreateKnowledgeCollectionErrors];
|
|
5431
|
+
type CreateKnowledgeCollectionResponses = {
|
|
4859
5432
|
/**
|
|
4860
|
-
*
|
|
5433
|
+
* Collection created.
|
|
4861
5434
|
*/
|
|
4862
|
-
|
|
4863
|
-
};
|
|
4864
|
-
type
|
|
4865
|
-
type
|
|
5435
|
+
201: KnowledgeCollection;
|
|
5436
|
+
};
|
|
5437
|
+
type CreateKnowledgeCollectionResponse = CreateKnowledgeCollectionResponses[keyof CreateKnowledgeCollectionResponses];
|
|
5438
|
+
type DeleteKnowledgeCollectionData = {
|
|
4866
5439
|
body?: never;
|
|
4867
5440
|
path: {
|
|
4868
5441
|
/**
|
|
@@ -4870,14 +5443,14 @@ type GetChannelData = {
|
|
|
4870
5443
|
*/
|
|
4871
5444
|
project_id: string;
|
|
4872
5445
|
/**
|
|
4873
|
-
*
|
|
5446
|
+
* Knowledge collection public ID (kcol_ prefix).
|
|
4874
5447
|
*/
|
|
4875
|
-
|
|
5448
|
+
collection_id: string;
|
|
4876
5449
|
};
|
|
4877
5450
|
query?: never;
|
|
4878
|
-
url: '/v1/projects/{project_id}/
|
|
5451
|
+
url: '/v1/projects/{project_id}/knowledge/collections/{collection_id}';
|
|
4879
5452
|
};
|
|
4880
|
-
type
|
|
5453
|
+
type DeleteKnowledgeCollectionErrors = {
|
|
4881
5454
|
/**
|
|
4882
5455
|
* Missing or invalid credentials.
|
|
4883
5456
|
*/
|
|
@@ -4886,35 +5459,35 @@ type GetChannelErrors = {
|
|
|
4886
5459
|
* The resource does not exist (existence is not leaked).
|
|
4887
5460
|
*/
|
|
4888
5461
|
404: ErrorResponse;
|
|
5462
|
+
/**
|
|
5463
|
+
* The request conflicts with the resource's current state.
|
|
5464
|
+
*/
|
|
5465
|
+
409: ErrorResponse;
|
|
4889
5466
|
};
|
|
4890
|
-
type
|
|
4891
|
-
type
|
|
5467
|
+
type DeleteKnowledgeCollectionError = DeleteKnowledgeCollectionErrors[keyof DeleteKnowledgeCollectionErrors];
|
|
5468
|
+
type DeleteKnowledgeCollectionResponses = {
|
|
4892
5469
|
/**
|
|
4893
|
-
*
|
|
5470
|
+
* Collection deleted.
|
|
4894
5471
|
*/
|
|
4895
|
-
|
|
5472
|
+
204: void;
|
|
4896
5473
|
};
|
|
4897
|
-
type
|
|
4898
|
-
type
|
|
4899
|
-
body
|
|
5474
|
+
type DeleteKnowledgeCollectionResponse = DeleteKnowledgeCollectionResponses[keyof DeleteKnowledgeCollectionResponses];
|
|
5475
|
+
type GetKnowledgeCollectionData = {
|
|
5476
|
+
body?: never;
|
|
4900
5477
|
path: {
|
|
4901
5478
|
/**
|
|
4902
5479
|
* Project public ID (proj_ prefix).
|
|
4903
5480
|
*/
|
|
4904
5481
|
project_id: string;
|
|
4905
5482
|
/**
|
|
4906
|
-
*
|
|
5483
|
+
* Knowledge collection public ID (kcol_ prefix).
|
|
4907
5484
|
*/
|
|
4908
|
-
|
|
5485
|
+
collection_id: string;
|
|
4909
5486
|
};
|
|
4910
5487
|
query?: never;
|
|
4911
|
-
url: '/v1/projects/{project_id}/
|
|
5488
|
+
url: '/v1/projects/{project_id}/knowledge/collections/{collection_id}';
|
|
4912
5489
|
};
|
|
4913
|
-
type
|
|
4914
|
-
/**
|
|
4915
|
-
* The request was malformed or failed validation.
|
|
4916
|
-
*/
|
|
4917
|
-
400: ErrorResponse;
|
|
5490
|
+
type GetKnowledgeCollectionErrors = {
|
|
4918
5491
|
/**
|
|
4919
5492
|
* Missing or invalid credentials.
|
|
4920
5493
|
*/
|
|
@@ -4923,49 +5496,31 @@ type UpdateChannelErrors = {
|
|
|
4923
5496
|
* The resource does not exist (existence is not leaked).
|
|
4924
5497
|
*/
|
|
4925
5498
|
404: ErrorResponse;
|
|
4926
|
-
/**
|
|
4927
|
-
* The upstream runtime could not complete the operation.
|
|
4928
|
-
*/
|
|
4929
|
-
502: ErrorResponse;
|
|
4930
5499
|
};
|
|
4931
|
-
type
|
|
4932
|
-
type
|
|
5500
|
+
type GetKnowledgeCollectionError = GetKnowledgeCollectionErrors[keyof GetKnowledgeCollectionErrors];
|
|
5501
|
+
type GetKnowledgeCollectionResponses = {
|
|
4933
5502
|
/**
|
|
4934
|
-
*
|
|
5503
|
+
* Collection details.
|
|
4935
5504
|
*/
|
|
4936
|
-
200:
|
|
5505
|
+
200: KnowledgeCollection;
|
|
4937
5506
|
};
|
|
4938
|
-
type
|
|
4939
|
-
type
|
|
4940
|
-
body
|
|
5507
|
+
type GetKnowledgeCollectionResponse = GetKnowledgeCollectionResponses[keyof GetKnowledgeCollectionResponses];
|
|
5508
|
+
type UpdateKnowledgeCollectionData = {
|
|
5509
|
+
body: KnowledgeCollectionUpdate;
|
|
4941
5510
|
path: {
|
|
4942
5511
|
/**
|
|
4943
5512
|
* Project public ID (proj_ prefix).
|
|
4944
5513
|
*/
|
|
4945
5514
|
project_id: string;
|
|
4946
5515
|
/**
|
|
4947
|
-
*
|
|
4948
|
-
*/
|
|
4949
|
-
channel_id: string;
|
|
4950
|
-
};
|
|
4951
|
-
query?: {
|
|
4952
|
-
/**
|
|
4953
|
-
* Maximum items to return (1–100).
|
|
4954
|
-
*/
|
|
4955
|
-
limit?: number;
|
|
4956
|
-
/**
|
|
4957
|
-
* Opaque pagination cursor from a previous response's next_cursor.
|
|
4958
|
-
*/
|
|
4959
|
-
cursor?: string;
|
|
4960
|
-
/**
|
|
4961
|
-
* Filter to one address by its bare, channel-native identifier (a phone number on WhatsApp; a Discord user id, or `thread:<id>` for a guild thread) — the same value the channel itself reports, not the prefixed form the `identifier` field above returns. At most one row matches.
|
|
4962
|
-
*
|
|
5516
|
+
* Knowledge collection public ID (kcol_ prefix).
|
|
4963
5517
|
*/
|
|
4964
|
-
|
|
5518
|
+
collection_id: string;
|
|
4965
5519
|
};
|
|
4966
|
-
|
|
5520
|
+
query?: never;
|
|
5521
|
+
url: '/v1/projects/{project_id}/knowledge/collections/{collection_id}';
|
|
4967
5522
|
};
|
|
4968
|
-
type
|
|
5523
|
+
type UpdateKnowledgeCollectionErrors = {
|
|
4969
5524
|
/**
|
|
4970
5525
|
* The request was malformed or failed validation.
|
|
4971
5526
|
*/
|
|
@@ -4978,35 +5533,39 @@ type ListChannelConversationsErrors = {
|
|
|
4978
5533
|
* The resource does not exist (existence is not leaked).
|
|
4979
5534
|
*/
|
|
4980
5535
|
404: ErrorResponse;
|
|
5536
|
+
/**
|
|
5537
|
+
* The request conflicts with the resource's current state.
|
|
5538
|
+
*/
|
|
5539
|
+
409: ErrorResponse;
|
|
4981
5540
|
};
|
|
4982
|
-
type
|
|
4983
|
-
type
|
|
5541
|
+
type UpdateKnowledgeCollectionError = UpdateKnowledgeCollectionErrors[keyof UpdateKnowledgeCollectionErrors];
|
|
5542
|
+
type UpdateKnowledgeCollectionResponses = {
|
|
4984
5543
|
/**
|
|
4985
|
-
*
|
|
5544
|
+
* Collection updated.
|
|
4986
5545
|
*/
|
|
4987
|
-
200:
|
|
5546
|
+
200: KnowledgeCollection;
|
|
4988
5547
|
};
|
|
4989
|
-
type
|
|
4990
|
-
type
|
|
4991
|
-
body
|
|
5548
|
+
type UpdateKnowledgeCollectionResponse = UpdateKnowledgeCollectionResponses[keyof UpdateKnowledgeCollectionResponses];
|
|
5549
|
+
type QueryKnowledgeCollectionData = {
|
|
5550
|
+
body: KnowledgeQueryRequest;
|
|
4992
5551
|
path: {
|
|
4993
5552
|
/**
|
|
4994
5553
|
* Project public ID (proj_ prefix).
|
|
4995
5554
|
*/
|
|
4996
5555
|
project_id: string;
|
|
4997
5556
|
/**
|
|
4998
|
-
*
|
|
4999
|
-
*/
|
|
5000
|
-
channel_id: string;
|
|
5001
|
-
/**
|
|
5002
|
-
* Conversation public ID (conv_ prefix).
|
|
5557
|
+
* Knowledge collection public ID (kcol_ prefix).
|
|
5003
5558
|
*/
|
|
5004
|
-
|
|
5559
|
+
collection_id: string;
|
|
5005
5560
|
};
|
|
5006
5561
|
query?: never;
|
|
5007
|
-
url: '/v1/projects/{project_id}/
|
|
5562
|
+
url: '/v1/projects/{project_id}/knowledge/collections/{collection_id}:query';
|
|
5008
5563
|
};
|
|
5009
|
-
type
|
|
5564
|
+
type QueryKnowledgeCollectionErrors = {
|
|
5565
|
+
/**
|
|
5566
|
+
* The request was malformed or failed validation.
|
|
5567
|
+
*/
|
|
5568
|
+
400: ErrorResponse;
|
|
5010
5569
|
/**
|
|
5011
5570
|
* Missing or invalid credentials.
|
|
5012
5571
|
*/
|
|
@@ -5015,16 +5574,20 @@ type GetChannelConversationErrors = {
|
|
|
5015
5574
|
* The resource does not exist (existence is not leaked).
|
|
5016
5575
|
*/
|
|
5017
5576
|
404: ErrorResponse;
|
|
5577
|
+
/**
|
|
5578
|
+
* The upstream runtime could not complete the operation.
|
|
5579
|
+
*/
|
|
5580
|
+
502: ErrorResponse;
|
|
5018
5581
|
};
|
|
5019
|
-
type
|
|
5020
|
-
type
|
|
5582
|
+
type QueryKnowledgeCollectionError = QueryKnowledgeCollectionErrors[keyof QueryKnowledgeCollectionErrors];
|
|
5583
|
+
type QueryKnowledgeCollectionResponses = {
|
|
5021
5584
|
/**
|
|
5022
|
-
* The
|
|
5585
|
+
* The chunks that matched, most relevant first.
|
|
5023
5586
|
*/
|
|
5024
|
-
200:
|
|
5587
|
+
200: KnowledgeQueryResult;
|
|
5025
5588
|
};
|
|
5026
|
-
type
|
|
5027
|
-
type
|
|
5589
|
+
type QueryKnowledgeCollectionResponse = QueryKnowledgeCollectionResponses[keyof QueryKnowledgeCollectionResponses];
|
|
5590
|
+
type ListKnowledgeDocumentsData = {
|
|
5028
5591
|
body?: never;
|
|
5029
5592
|
path: {
|
|
5030
5593
|
/**
|
|
@@ -5032,32 +5595,23 @@ type ListChannelConversationMessagesData = {
|
|
|
5032
5595
|
*/
|
|
5033
5596
|
project_id: string;
|
|
5034
5597
|
/**
|
|
5035
|
-
*
|
|
5036
|
-
*/
|
|
5037
|
-
channel_id: string;
|
|
5038
|
-
/**
|
|
5039
|
-
* Conversation public ID (conv_ prefix).
|
|
5598
|
+
* Knowledge collection public ID (kcol_ prefix).
|
|
5040
5599
|
*/
|
|
5041
|
-
|
|
5600
|
+
collection_id: string;
|
|
5042
5601
|
};
|
|
5043
5602
|
query?: {
|
|
5044
5603
|
/**
|
|
5045
|
-
* Maximum
|
|
5604
|
+
* Maximum items to return (1–100).
|
|
5046
5605
|
*/
|
|
5047
5606
|
limit?: number;
|
|
5048
5607
|
/**
|
|
5049
|
-
*
|
|
5050
|
-
*
|
|
5608
|
+
* Opaque pagination cursor from a previous response's next_cursor.
|
|
5051
5609
|
*/
|
|
5052
|
-
|
|
5610
|
+
cursor?: string;
|
|
5053
5611
|
};
|
|
5054
|
-
url: '/v1/projects/{project_id}/
|
|
5612
|
+
url: '/v1/projects/{project_id}/knowledge/collections/{collection_id}/documents';
|
|
5055
5613
|
};
|
|
5056
|
-
type
|
|
5057
|
-
/**
|
|
5058
|
-
* The request was malformed or failed validation.
|
|
5059
|
-
*/
|
|
5060
|
-
400: ErrorResponse;
|
|
5614
|
+
type ListKnowledgeDocumentsErrors = {
|
|
5061
5615
|
/**
|
|
5062
5616
|
* Missing or invalid credentials.
|
|
5063
5617
|
*/
|
|
@@ -5071,44 +5625,36 @@ type ListChannelConversationMessagesErrors = {
|
|
|
5071
5625
|
*/
|
|
5072
5626
|
502: ErrorResponse;
|
|
5073
5627
|
};
|
|
5074
|
-
type
|
|
5075
|
-
type
|
|
5628
|
+
type ListKnowledgeDocumentsError = ListKnowledgeDocumentsErrors[keyof ListKnowledgeDocumentsErrors];
|
|
5629
|
+
type ListKnowledgeDocumentsResponses = {
|
|
5076
5630
|
/**
|
|
5077
|
-
* A page of
|
|
5631
|
+
* A page of documents.
|
|
5078
5632
|
*/
|
|
5079
|
-
200:
|
|
5633
|
+
200: KnowledgeDocumentList;
|
|
5080
5634
|
};
|
|
5081
|
-
type
|
|
5082
|
-
type
|
|
5083
|
-
body
|
|
5084
|
-
|
|
5085
|
-
/**
|
|
5086
|
-
* Project public ID (proj_ prefix).
|
|
5087
|
-
*/
|
|
5088
|
-
project_id: string;
|
|
5635
|
+
type ListKnowledgeDocumentsResponse = ListKnowledgeDocumentsResponses[keyof ListKnowledgeDocumentsResponses];
|
|
5636
|
+
type CreateKnowledgeDocumentData = {
|
|
5637
|
+
body: KnowledgeDocumentCreate;
|
|
5638
|
+
headers?: {
|
|
5089
5639
|
/**
|
|
5090
|
-
*
|
|
5640
|
+
* Client-supplied key to make this mutating POST idempotent.
|
|
5091
5641
|
*/
|
|
5092
|
-
|
|
5642
|
+
'Idempotency-Key'?: string;
|
|
5093
5643
|
};
|
|
5094
|
-
|
|
5095
|
-
/**
|
|
5096
|
-
* Filter to one lifecycle status.
|
|
5097
|
-
*/
|
|
5098
|
-
status?: 'in_progress' | 'requires_action' | 'completed' | 'failed';
|
|
5644
|
+
path: {
|
|
5099
5645
|
/**
|
|
5100
|
-
*
|
|
5646
|
+
* Project public ID (proj_ prefix).
|
|
5101
5647
|
*/
|
|
5102
|
-
|
|
5648
|
+
project_id: string;
|
|
5103
5649
|
/**
|
|
5104
|
-
*
|
|
5105
|
-
*
|
|
5650
|
+
* Knowledge collection public ID (kcol_ prefix).
|
|
5106
5651
|
*/
|
|
5107
|
-
|
|
5652
|
+
collection_id: string;
|
|
5108
5653
|
};
|
|
5109
|
-
|
|
5654
|
+
query?: never;
|
|
5655
|
+
url: '/v1/projects/{project_id}/knowledge/collections/{collection_id}/documents';
|
|
5110
5656
|
};
|
|
5111
|
-
type
|
|
5657
|
+
type CreateKnowledgeDocumentErrors = {
|
|
5112
5658
|
/**
|
|
5113
5659
|
* The request was malformed or failed validation.
|
|
5114
5660
|
*/
|
|
@@ -5121,45 +5667,43 @@ type ListAgentGenerationsErrors = {
|
|
|
5121
5667
|
* The resource does not exist (existence is not leaked).
|
|
5122
5668
|
*/
|
|
5123
5669
|
404: ErrorResponse;
|
|
5670
|
+
/**
|
|
5671
|
+
* The uploaded file exceeds the maximum size.
|
|
5672
|
+
*/
|
|
5673
|
+
413: ErrorResponse;
|
|
5124
5674
|
/**
|
|
5125
5675
|
* The upstream runtime could not complete the operation.
|
|
5126
5676
|
*/
|
|
5127
5677
|
502: ErrorResponse;
|
|
5128
5678
|
};
|
|
5129
|
-
type
|
|
5130
|
-
type
|
|
5679
|
+
type CreateKnowledgeDocumentError = CreateKnowledgeDocumentErrors[keyof CreateKnowledgeDocumentErrors];
|
|
5680
|
+
type CreateKnowledgeDocumentResponses = {
|
|
5131
5681
|
/**
|
|
5132
|
-
*
|
|
5682
|
+
* Document created.
|
|
5133
5683
|
*/
|
|
5134
|
-
|
|
5684
|
+
201: KnowledgeDocument;
|
|
5135
5685
|
};
|
|
5136
|
-
type
|
|
5137
|
-
type
|
|
5138
|
-
body
|
|
5139
|
-
headers?: {
|
|
5140
|
-
/**
|
|
5141
|
-
* Client-supplied key to make this mutating POST idempotent.
|
|
5142
|
-
*/
|
|
5143
|
-
'Idempotency-Key'?: string;
|
|
5144
|
-
};
|
|
5686
|
+
type CreateKnowledgeDocumentResponse = CreateKnowledgeDocumentResponses[keyof CreateKnowledgeDocumentResponses];
|
|
5687
|
+
type DeleteKnowledgeDocumentData = {
|
|
5688
|
+
body?: never;
|
|
5145
5689
|
path: {
|
|
5146
5690
|
/**
|
|
5147
5691
|
* Project public ID (proj_ prefix).
|
|
5148
5692
|
*/
|
|
5149
5693
|
project_id: string;
|
|
5150
5694
|
/**
|
|
5151
|
-
*
|
|
5695
|
+
* Knowledge collection public ID (kcol_ prefix).
|
|
5152
5696
|
*/
|
|
5153
|
-
|
|
5697
|
+
collection_id: string;
|
|
5698
|
+
/**
|
|
5699
|
+
* Knowledge document public ID (doc_ prefix) — the runtime document id.
|
|
5700
|
+
*/
|
|
5701
|
+
document_id: string;
|
|
5154
5702
|
};
|
|
5155
5703
|
query?: never;
|
|
5156
|
-
url: '/v1/projects/{project_id}/
|
|
5704
|
+
url: '/v1/projects/{project_id}/knowledge/collections/{collection_id}/documents/{document_id}';
|
|
5157
5705
|
};
|
|
5158
|
-
type
|
|
5159
|
-
/**
|
|
5160
|
-
* The request was malformed or failed validation.
|
|
5161
|
-
*/
|
|
5162
|
-
400: ErrorResponse;
|
|
5706
|
+
type DeleteKnowledgeDocumentErrors = {
|
|
5163
5707
|
/**
|
|
5164
5708
|
* Missing or invalid credentials.
|
|
5165
5709
|
*/
|
|
@@ -5173,31 +5717,34 @@ type CreateGenerationErrors = {
|
|
|
5173
5717
|
*/
|
|
5174
5718
|
502: ErrorResponse;
|
|
5175
5719
|
};
|
|
5176
|
-
type
|
|
5177
|
-
type
|
|
5720
|
+
type DeleteKnowledgeDocumentError = DeleteKnowledgeDocumentErrors[keyof DeleteKnowledgeDocumentErrors];
|
|
5721
|
+
type DeleteKnowledgeDocumentResponses = {
|
|
5178
5722
|
/**
|
|
5179
|
-
*
|
|
5180
|
-
*
|
|
5723
|
+
* Document deleted.
|
|
5181
5724
|
*/
|
|
5182
|
-
|
|
5725
|
+
204: void;
|
|
5183
5726
|
};
|
|
5184
|
-
type
|
|
5185
|
-
type
|
|
5727
|
+
type DeleteKnowledgeDocumentResponse = DeleteKnowledgeDocumentResponses[keyof DeleteKnowledgeDocumentResponses];
|
|
5728
|
+
type GetKnowledgeDocumentData = {
|
|
5186
5729
|
body?: never;
|
|
5187
5730
|
path: {
|
|
5188
5731
|
/**
|
|
5189
5732
|
* Project public ID (proj_ prefix).
|
|
5190
5733
|
*/
|
|
5191
|
-
project_id: string;
|
|
5734
|
+
project_id: string;
|
|
5735
|
+
/**
|
|
5736
|
+
* Knowledge collection public ID (kcol_ prefix).
|
|
5737
|
+
*/
|
|
5738
|
+
collection_id: string;
|
|
5192
5739
|
/**
|
|
5193
|
-
*
|
|
5740
|
+
* Knowledge document public ID (doc_ prefix) — the runtime document id.
|
|
5194
5741
|
*/
|
|
5195
|
-
|
|
5742
|
+
document_id: string;
|
|
5196
5743
|
};
|
|
5197
5744
|
query?: never;
|
|
5198
|
-
url: '/v1/projects/{project_id}/
|
|
5745
|
+
url: '/v1/projects/{project_id}/knowledge/collections/{collection_id}/documents/{document_id}';
|
|
5199
5746
|
};
|
|
5200
|
-
type
|
|
5747
|
+
type GetKnowledgeDocumentErrors = {
|
|
5201
5748
|
/**
|
|
5202
5749
|
* Missing or invalid credentials.
|
|
5203
5750
|
*/
|
|
@@ -5211,15 +5758,15 @@ type GetGenerationErrors = {
|
|
|
5211
5758
|
*/
|
|
5212
5759
|
502: ErrorResponse;
|
|
5213
5760
|
};
|
|
5214
|
-
type
|
|
5215
|
-
type
|
|
5761
|
+
type GetKnowledgeDocumentError = GetKnowledgeDocumentErrors[keyof GetKnowledgeDocumentErrors];
|
|
5762
|
+
type GetKnowledgeDocumentResponses = {
|
|
5216
5763
|
/**
|
|
5217
|
-
*
|
|
5764
|
+
* Document details.
|
|
5218
5765
|
*/
|
|
5219
|
-
200:
|
|
5766
|
+
200: KnowledgeDocument;
|
|
5220
5767
|
};
|
|
5221
|
-
type
|
|
5222
|
-
type
|
|
5768
|
+
type GetKnowledgeDocumentResponse = GetKnowledgeDocumentResponses[keyof GetKnowledgeDocumentResponses];
|
|
5769
|
+
type ReingestKnowledgeDocumentData = {
|
|
5223
5770
|
body?: never;
|
|
5224
5771
|
path: {
|
|
5225
5772
|
/**
|
|
@@ -5227,14 +5774,18 @@ type GetGenerationUsageData = {
|
|
|
5227
5774
|
*/
|
|
5228
5775
|
project_id: string;
|
|
5229
5776
|
/**
|
|
5230
|
-
*
|
|
5777
|
+
* Knowledge collection public ID (kcol_ prefix).
|
|
5231
5778
|
*/
|
|
5232
|
-
|
|
5779
|
+
collection_id: string;
|
|
5780
|
+
/**
|
|
5781
|
+
* Knowledge document public ID (doc_ prefix) — the runtime document id.
|
|
5782
|
+
*/
|
|
5783
|
+
document_id: string;
|
|
5233
5784
|
};
|
|
5234
5785
|
query?: never;
|
|
5235
|
-
url: '/v1/projects/{project_id}/
|
|
5786
|
+
url: '/v1/projects/{project_id}/knowledge/collections/{collection_id}/documents/{document_id}:reingest';
|
|
5236
5787
|
};
|
|
5237
|
-
type
|
|
5788
|
+
type ReingestKnowledgeDocumentErrors = {
|
|
5238
5789
|
/**
|
|
5239
5790
|
* Missing or invalid credentials.
|
|
5240
5791
|
*/
|
|
@@ -5248,15 +5799,15 @@ type GetGenerationUsageErrors = {
|
|
|
5248
5799
|
*/
|
|
5249
5800
|
502: ErrorResponse;
|
|
5250
5801
|
};
|
|
5251
|
-
type
|
|
5252
|
-
type
|
|
5802
|
+
type ReingestKnowledgeDocumentError = ReingestKnowledgeDocumentErrors[keyof ReingestKnowledgeDocumentErrors];
|
|
5803
|
+
type ReingestKnowledgeDocumentResponses = {
|
|
5253
5804
|
/**
|
|
5254
|
-
*
|
|
5805
|
+
* Re-ingestion accepted; poll the document for status.
|
|
5255
5806
|
*/
|
|
5256
|
-
|
|
5807
|
+
202: KnowledgeDocument;
|
|
5257
5808
|
};
|
|
5258
|
-
type
|
|
5259
|
-
type
|
|
5809
|
+
type ReingestKnowledgeDocumentResponse = ReingestKnowledgeDocumentResponses[keyof ReingestKnowledgeDocumentResponses];
|
|
5810
|
+
type ListKnowledgeConvertersData = {
|
|
5260
5811
|
body?: never;
|
|
5261
5812
|
path: {
|
|
5262
5813
|
/**
|
|
@@ -5274,9 +5825,9 @@ type ListKnowledgeCollectionsData = {
|
|
|
5274
5825
|
*/
|
|
5275
5826
|
cursor?: string;
|
|
5276
5827
|
};
|
|
5277
|
-
url: '/v1/projects/{project_id}/knowledge/
|
|
5828
|
+
url: '/v1/projects/{project_id}/knowledge/converters';
|
|
5278
5829
|
};
|
|
5279
|
-
type
|
|
5830
|
+
type ListKnowledgeConvertersErrors = {
|
|
5280
5831
|
/**
|
|
5281
5832
|
* Missing or invalid credentials.
|
|
5282
5833
|
*/
|
|
@@ -5285,17 +5836,21 @@ type ListKnowledgeCollectionsErrors = {
|
|
|
5285
5836
|
* The resource does not exist (existence is not leaked).
|
|
5286
5837
|
*/
|
|
5287
5838
|
404: ErrorResponse;
|
|
5839
|
+
/**
|
|
5840
|
+
* The upstream runtime could not complete the operation.
|
|
5841
|
+
*/
|
|
5842
|
+
502: ErrorResponse;
|
|
5288
5843
|
};
|
|
5289
|
-
type
|
|
5290
|
-
type
|
|
5844
|
+
type ListKnowledgeConvertersError = ListKnowledgeConvertersErrors[keyof ListKnowledgeConvertersErrors];
|
|
5845
|
+
type ListKnowledgeConvertersResponses = {
|
|
5291
5846
|
/**
|
|
5292
|
-
* A page of
|
|
5847
|
+
* A page of converters.
|
|
5293
5848
|
*/
|
|
5294
|
-
200:
|
|
5849
|
+
200: KnowledgeConverterList;
|
|
5295
5850
|
};
|
|
5296
|
-
type
|
|
5297
|
-
type
|
|
5298
|
-
body:
|
|
5851
|
+
type ListKnowledgeConvertersResponse = ListKnowledgeConvertersResponses[keyof ListKnowledgeConvertersResponses];
|
|
5852
|
+
type CreateKnowledgeConverterData = {
|
|
5853
|
+
body: KnowledgeConverterCreate;
|
|
5299
5854
|
headers?: {
|
|
5300
5855
|
/**
|
|
5301
5856
|
* Client-supplied key to make this mutating POST idempotent.
|
|
@@ -5309,9 +5864,9 @@ type CreateKnowledgeCollectionData = {
|
|
|
5309
5864
|
project_id: string;
|
|
5310
5865
|
};
|
|
5311
5866
|
query?: never;
|
|
5312
|
-
url: '/v1/projects/{project_id}/knowledge/
|
|
5867
|
+
url: '/v1/projects/{project_id}/knowledge/converters';
|
|
5313
5868
|
};
|
|
5314
|
-
type
|
|
5869
|
+
type CreateKnowledgeConverterErrors = {
|
|
5315
5870
|
/**
|
|
5316
5871
|
* The request was malformed or failed validation.
|
|
5317
5872
|
*/
|
|
@@ -5328,16 +5883,20 @@ type CreateKnowledgeCollectionErrors = {
|
|
|
5328
5883
|
* The request conflicts with the resource's current state.
|
|
5329
5884
|
*/
|
|
5330
5885
|
409: ErrorResponse;
|
|
5886
|
+
/**
|
|
5887
|
+
* The upstream runtime could not complete the operation.
|
|
5888
|
+
*/
|
|
5889
|
+
502: ErrorResponse;
|
|
5331
5890
|
};
|
|
5332
|
-
type
|
|
5333
|
-
type
|
|
5891
|
+
type CreateKnowledgeConverterError = CreateKnowledgeConverterErrors[keyof CreateKnowledgeConverterErrors];
|
|
5892
|
+
type CreateKnowledgeConverterResponses = {
|
|
5334
5893
|
/**
|
|
5335
|
-
*
|
|
5894
|
+
* Converter created.
|
|
5336
5895
|
*/
|
|
5337
|
-
201:
|
|
5896
|
+
201: KnowledgeConverter;
|
|
5338
5897
|
};
|
|
5339
|
-
type
|
|
5340
|
-
type
|
|
5898
|
+
type CreateKnowledgeConverterResponse = CreateKnowledgeConverterResponses[keyof CreateKnowledgeConverterResponses];
|
|
5899
|
+
type DeleteKnowledgeConverterData = {
|
|
5341
5900
|
body?: never;
|
|
5342
5901
|
path: {
|
|
5343
5902
|
/**
|
|
@@ -5345,14 +5904,14 @@ type DeleteKnowledgeCollectionData = {
|
|
|
5345
5904
|
*/
|
|
5346
5905
|
project_id: string;
|
|
5347
5906
|
/**
|
|
5348
|
-
* Knowledge
|
|
5907
|
+
* Knowledge converter public ID (igr_ prefix).
|
|
5349
5908
|
*/
|
|
5350
|
-
|
|
5909
|
+
converter_id: string;
|
|
5351
5910
|
};
|
|
5352
5911
|
query?: never;
|
|
5353
|
-
url: '/v1/projects/{project_id}/knowledge/
|
|
5912
|
+
url: '/v1/projects/{project_id}/knowledge/converters/{converter_id}';
|
|
5354
5913
|
};
|
|
5355
|
-
type
|
|
5914
|
+
type DeleteKnowledgeConverterErrors = {
|
|
5356
5915
|
/**
|
|
5357
5916
|
* Missing or invalid credentials.
|
|
5358
5917
|
*/
|
|
@@ -5362,19 +5921,19 @@ type DeleteKnowledgeCollectionErrors = {
|
|
|
5362
5921
|
*/
|
|
5363
5922
|
404: ErrorResponse;
|
|
5364
5923
|
/**
|
|
5365
|
-
* The
|
|
5924
|
+
* The upstream runtime could not complete the operation.
|
|
5366
5925
|
*/
|
|
5367
|
-
|
|
5926
|
+
502: ErrorResponse;
|
|
5368
5927
|
};
|
|
5369
|
-
type
|
|
5370
|
-
type
|
|
5928
|
+
type DeleteKnowledgeConverterError = DeleteKnowledgeConverterErrors[keyof DeleteKnowledgeConverterErrors];
|
|
5929
|
+
type DeleteKnowledgeConverterResponses = {
|
|
5371
5930
|
/**
|
|
5372
|
-
*
|
|
5931
|
+
* Converter deleted.
|
|
5373
5932
|
*/
|
|
5374
5933
|
204: void;
|
|
5375
5934
|
};
|
|
5376
|
-
type
|
|
5377
|
-
type
|
|
5935
|
+
type DeleteKnowledgeConverterResponse = DeleteKnowledgeConverterResponses[keyof DeleteKnowledgeConverterResponses];
|
|
5936
|
+
type GetKnowledgeConverterData = {
|
|
5378
5937
|
body?: never;
|
|
5379
5938
|
path: {
|
|
5380
5939
|
/**
|
|
@@ -5382,14 +5941,14 @@ type GetKnowledgeCollectionData = {
|
|
|
5382
5941
|
*/
|
|
5383
5942
|
project_id: string;
|
|
5384
5943
|
/**
|
|
5385
|
-
* Knowledge
|
|
5944
|
+
* Knowledge converter public ID (igr_ prefix).
|
|
5386
5945
|
*/
|
|
5387
|
-
|
|
5946
|
+
converter_id: string;
|
|
5388
5947
|
};
|
|
5389
5948
|
query?: never;
|
|
5390
|
-
url: '/v1/projects/{project_id}/knowledge/
|
|
5949
|
+
url: '/v1/projects/{project_id}/knowledge/converters/{converter_id}';
|
|
5391
5950
|
};
|
|
5392
|
-
type
|
|
5951
|
+
type GetKnowledgeConverterErrors = {
|
|
5393
5952
|
/**
|
|
5394
5953
|
* Missing or invalid credentials.
|
|
5395
5954
|
*/
|
|
@@ -5398,31 +5957,35 @@ type GetKnowledgeCollectionErrors = {
|
|
|
5398
5957
|
* The resource does not exist (existence is not leaked).
|
|
5399
5958
|
*/
|
|
5400
5959
|
404: ErrorResponse;
|
|
5960
|
+
/**
|
|
5961
|
+
* The upstream runtime could not complete the operation.
|
|
5962
|
+
*/
|
|
5963
|
+
502: ErrorResponse;
|
|
5401
5964
|
};
|
|
5402
|
-
type
|
|
5403
|
-
type
|
|
5965
|
+
type GetKnowledgeConverterError = GetKnowledgeConverterErrors[keyof GetKnowledgeConverterErrors];
|
|
5966
|
+
type GetKnowledgeConverterResponses = {
|
|
5404
5967
|
/**
|
|
5405
|
-
*
|
|
5968
|
+
* Converter details.
|
|
5406
5969
|
*/
|
|
5407
|
-
200:
|
|
5970
|
+
200: KnowledgeConverter;
|
|
5408
5971
|
};
|
|
5409
|
-
type
|
|
5410
|
-
type
|
|
5411
|
-
body:
|
|
5972
|
+
type GetKnowledgeConverterResponse = GetKnowledgeConverterResponses[keyof GetKnowledgeConverterResponses];
|
|
5973
|
+
type UpdateKnowledgeConverterData = {
|
|
5974
|
+
body: KnowledgeConverterUpdate;
|
|
5412
5975
|
path: {
|
|
5413
5976
|
/**
|
|
5414
5977
|
* Project public ID (proj_ prefix).
|
|
5415
5978
|
*/
|
|
5416
5979
|
project_id: string;
|
|
5417
5980
|
/**
|
|
5418
|
-
* Knowledge
|
|
5981
|
+
* Knowledge converter public ID (igr_ prefix).
|
|
5419
5982
|
*/
|
|
5420
|
-
|
|
5983
|
+
converter_id: string;
|
|
5421
5984
|
};
|
|
5422
5985
|
query?: never;
|
|
5423
|
-
url: '/v1/projects/{project_id}/knowledge/
|
|
5986
|
+
url: '/v1/projects/{project_id}/knowledge/converters/{converter_id}';
|
|
5424
5987
|
};
|
|
5425
|
-
type
|
|
5988
|
+
type UpdateKnowledgeConverterErrors = {
|
|
5426
5989
|
/**
|
|
5427
5990
|
* The request was malformed or failed validation.
|
|
5428
5991
|
*/
|
|
@@ -5439,31 +6002,125 @@ type UpdateKnowledgeCollectionErrors = {
|
|
|
5439
6002
|
* The request conflicts with the resource's current state.
|
|
5440
6003
|
*/
|
|
5441
6004
|
409: ErrorResponse;
|
|
6005
|
+
/**
|
|
6006
|
+
* The upstream runtime could not complete the operation.
|
|
6007
|
+
*/
|
|
6008
|
+
502: ErrorResponse;
|
|
5442
6009
|
};
|
|
5443
|
-
type
|
|
5444
|
-
type
|
|
6010
|
+
type UpdateKnowledgeConverterError = UpdateKnowledgeConverterErrors[keyof UpdateKnowledgeConverterErrors];
|
|
6011
|
+
type UpdateKnowledgeConverterResponses = {
|
|
5445
6012
|
/**
|
|
5446
|
-
*
|
|
6013
|
+
* Converter updated.
|
|
5447
6014
|
*/
|
|
5448
|
-
200:
|
|
6015
|
+
200: KnowledgeConverter;
|
|
5449
6016
|
};
|
|
5450
|
-
type
|
|
5451
|
-
type
|
|
5452
|
-
body
|
|
6017
|
+
type UpdateKnowledgeConverterResponse = UpdateKnowledgeConverterResponses[keyof UpdateKnowledgeConverterResponses];
|
|
6018
|
+
type ListModelsData = {
|
|
6019
|
+
body?: never;
|
|
6020
|
+
path?: never;
|
|
6021
|
+
query?: {
|
|
6022
|
+
/**
|
|
6023
|
+
* Maximum items to return (1–100).
|
|
6024
|
+
*/
|
|
6025
|
+
limit?: number;
|
|
6026
|
+
/**
|
|
6027
|
+
* Opaque pagination cursor from a previous response's next_cursor.
|
|
6028
|
+
*/
|
|
6029
|
+
cursor?: string;
|
|
6030
|
+
/**
|
|
6031
|
+
* Filter by model maker (e.g. anthropic, amazon, meta).
|
|
6032
|
+
*/
|
|
6033
|
+
vendor?: string;
|
|
6034
|
+
/**
|
|
6035
|
+
* Filter by the provider slug that serves the model.
|
|
6036
|
+
*/
|
|
6037
|
+
provider?: string;
|
|
6038
|
+
/**
|
|
6039
|
+
* Filter to models whose input or output modalities include this value (e.g. text, image, embedding, speech).
|
|
6040
|
+
*
|
|
6041
|
+
*/
|
|
6042
|
+
modality?: string;
|
|
6043
|
+
/**
|
|
6044
|
+
* Filter by lifecycle status.
|
|
6045
|
+
*/
|
|
6046
|
+
status?: 'available' | 'deprecated';
|
|
6047
|
+
/**
|
|
6048
|
+
* Filter by whether the model can back a managed provider — `managed=true` is the set you can pass to `POST /v1/projects/{project_id}/providers` with `kind: managed`. Omit to leave the catalog unfiltered on this axis; `false` returns only the BYOK-only models. Any other value is a 400.
|
|
6049
|
+
*
|
|
6050
|
+
*/
|
|
6051
|
+
managed?: boolean;
|
|
6052
|
+
};
|
|
6053
|
+
url: '/v1/models';
|
|
6054
|
+
};
|
|
6055
|
+
type ListModelsErrors = {
|
|
6056
|
+
/**
|
|
6057
|
+
* The request was malformed or failed validation.
|
|
6058
|
+
*/
|
|
6059
|
+
400: ErrorResponse;
|
|
6060
|
+
/**
|
|
6061
|
+
* Missing or invalid credentials.
|
|
6062
|
+
*/
|
|
6063
|
+
401: ErrorResponse;
|
|
6064
|
+
};
|
|
6065
|
+
type ListModelsError = ListModelsErrors[keyof ListModelsErrors];
|
|
6066
|
+
type ListModelsResponses = {
|
|
6067
|
+
/**
|
|
6068
|
+
* A page of models.
|
|
6069
|
+
*/
|
|
6070
|
+
200: ModelList;
|
|
6071
|
+
};
|
|
6072
|
+
type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses];
|
|
6073
|
+
type GetModelData = {
|
|
6074
|
+
body?: never;
|
|
6075
|
+
path: {
|
|
6076
|
+
/**
|
|
6077
|
+
* Public model id.
|
|
6078
|
+
*/
|
|
6079
|
+
model_id: string;
|
|
6080
|
+
};
|
|
6081
|
+
query?: never;
|
|
6082
|
+
url: '/v1/models/{model_id}';
|
|
6083
|
+
};
|
|
6084
|
+
type GetModelErrors = {
|
|
6085
|
+
/**
|
|
6086
|
+
* Missing or invalid credentials.
|
|
6087
|
+
*/
|
|
6088
|
+
401: ErrorResponse;
|
|
6089
|
+
/**
|
|
6090
|
+
* The resource does not exist (existence is not leaked).
|
|
6091
|
+
*/
|
|
6092
|
+
404: ErrorResponse;
|
|
6093
|
+
};
|
|
6094
|
+
type GetModelError = GetModelErrors[keyof GetModelErrors];
|
|
6095
|
+
type GetModelResponses = {
|
|
6096
|
+
/**
|
|
6097
|
+
* Model details.
|
|
6098
|
+
*/
|
|
6099
|
+
200: Model;
|
|
6100
|
+
};
|
|
6101
|
+
type GetModelResponse = GetModelResponses[keyof GetModelResponses];
|
|
6102
|
+
type ListOrchestrationsData = {
|
|
6103
|
+
body?: never;
|
|
5453
6104
|
path: {
|
|
5454
6105
|
/**
|
|
5455
6106
|
* Project public ID (proj_ prefix).
|
|
5456
6107
|
*/
|
|
5457
6108
|
project_id: string;
|
|
6109
|
+
};
|
|
6110
|
+
query?: {
|
|
5458
6111
|
/**
|
|
5459
|
-
*
|
|
6112
|
+
* Maximum items to return (1–100).
|
|
5460
6113
|
*/
|
|
5461
|
-
|
|
6114
|
+
limit?: number;
|
|
6115
|
+
/**
|
|
6116
|
+
* Items to skip. This list pages by offset rather than by naturali's usual opaque cursor because the upstream ordering is offset-based; a cursor here would only imitate a keyset.
|
|
6117
|
+
*
|
|
6118
|
+
*/
|
|
6119
|
+
offset?: number;
|
|
5462
6120
|
};
|
|
5463
|
-
|
|
5464
|
-
url: '/v1/projects/{project_id}/knowledge/collections/{collection_id}:query';
|
|
6121
|
+
url: '/v1/projects/{project_id}/orchestrations';
|
|
5465
6122
|
};
|
|
5466
|
-
type
|
|
6123
|
+
type ListOrchestrationsErrors = {
|
|
5467
6124
|
/**
|
|
5468
6125
|
* The request was malformed or failed validation.
|
|
5469
6126
|
*/
|
|
@@ -5481,39 +6138,30 @@ type QueryKnowledgeCollectionErrors = {
|
|
|
5481
6138
|
*/
|
|
5482
6139
|
502: ErrorResponse;
|
|
5483
6140
|
};
|
|
5484
|
-
type
|
|
5485
|
-
type
|
|
6141
|
+
type ListOrchestrationsError = ListOrchestrationsErrors[keyof ListOrchestrationsErrors];
|
|
6142
|
+
type ListOrchestrationsResponses = {
|
|
5486
6143
|
/**
|
|
5487
|
-
*
|
|
6144
|
+
* A page of orchestrations.
|
|
5488
6145
|
*/
|
|
5489
|
-
200:
|
|
6146
|
+
200: OrchestrationList;
|
|
5490
6147
|
};
|
|
5491
|
-
type
|
|
5492
|
-
type
|
|
5493
|
-
body
|
|
6148
|
+
type ListOrchestrationsResponse = ListOrchestrationsResponses[keyof ListOrchestrationsResponses];
|
|
6149
|
+
type CreateOrchestrationData = {
|
|
6150
|
+
body: CreateOrchestrationRequest;
|
|
5494
6151
|
path: {
|
|
5495
6152
|
/**
|
|
5496
6153
|
* Project public ID (proj_ prefix).
|
|
5497
6154
|
*/
|
|
5498
6155
|
project_id: string;
|
|
5499
|
-
/**
|
|
5500
|
-
* Knowledge collection public ID (kcol_ prefix).
|
|
5501
|
-
*/
|
|
5502
|
-
collection_id: string;
|
|
5503
|
-
};
|
|
5504
|
-
query?: {
|
|
5505
|
-
/**
|
|
5506
|
-
* Maximum items to return (1–100).
|
|
5507
|
-
*/
|
|
5508
|
-
limit?: number;
|
|
5509
|
-
/**
|
|
5510
|
-
* Opaque pagination cursor from a previous response's next_cursor.
|
|
5511
|
-
*/
|
|
5512
|
-
cursor?: string;
|
|
5513
6156
|
};
|
|
5514
|
-
|
|
6157
|
+
query?: never;
|
|
6158
|
+
url: '/v1/projects/{project_id}/orchestrations';
|
|
5515
6159
|
};
|
|
5516
|
-
type
|
|
6160
|
+
type CreateOrchestrationErrors = {
|
|
6161
|
+
/**
|
|
6162
|
+
* The request was malformed or failed validation.
|
|
6163
|
+
*/
|
|
6164
|
+
400: ErrorResponse;
|
|
5517
6165
|
/**
|
|
5518
6166
|
* Missing or invalid credentials.
|
|
5519
6167
|
*/
|
|
@@ -5527,40 +6175,26 @@ type ListKnowledgeDocumentsErrors = {
|
|
|
5527
6175
|
*/
|
|
5528
6176
|
502: ErrorResponse;
|
|
5529
6177
|
};
|
|
5530
|
-
type
|
|
5531
|
-
type
|
|
6178
|
+
type CreateOrchestrationError = CreateOrchestrationErrors[keyof CreateOrchestrationErrors];
|
|
6179
|
+
type CreateOrchestrationResponses = {
|
|
5532
6180
|
/**
|
|
5533
|
-
*
|
|
6181
|
+
* Orchestration created.
|
|
5534
6182
|
*/
|
|
5535
|
-
|
|
6183
|
+
201: Orchestration;
|
|
5536
6184
|
};
|
|
5537
|
-
type
|
|
5538
|
-
type
|
|
5539
|
-
body:
|
|
5540
|
-
headers?: {
|
|
5541
|
-
/**
|
|
5542
|
-
* Client-supplied key to make this mutating POST idempotent.
|
|
5543
|
-
*/
|
|
5544
|
-
'Idempotency-Key'?: string;
|
|
5545
|
-
};
|
|
6185
|
+
type CreateOrchestrationResponse = CreateOrchestrationResponses[keyof CreateOrchestrationResponses];
|
|
6186
|
+
type ValidateOrchestrationData = {
|
|
6187
|
+
body: ValidateOrchestrationRequest;
|
|
5546
6188
|
path: {
|
|
5547
6189
|
/**
|
|
5548
6190
|
* Project public ID (proj_ prefix).
|
|
5549
6191
|
*/
|
|
5550
6192
|
project_id: string;
|
|
5551
|
-
/**
|
|
5552
|
-
* Knowledge collection public ID (kcol_ prefix).
|
|
5553
|
-
*/
|
|
5554
|
-
collection_id: string;
|
|
5555
6193
|
};
|
|
5556
6194
|
query?: never;
|
|
5557
|
-
url: '/v1/projects/{project_id}/
|
|
6195
|
+
url: '/v1/projects/{project_id}/orchestrations/validate';
|
|
5558
6196
|
};
|
|
5559
|
-
type
|
|
5560
|
-
/**
|
|
5561
|
-
* The request was malformed or failed validation.
|
|
5562
|
-
*/
|
|
5563
|
-
400: ErrorResponse;
|
|
6197
|
+
type ValidateOrchestrationErrors = {
|
|
5564
6198
|
/**
|
|
5565
6199
|
* Missing or invalid credentials.
|
|
5566
6200
|
*/
|
|
@@ -5569,24 +6203,20 @@ type CreateKnowledgeDocumentErrors = {
|
|
|
5569
6203
|
* The resource does not exist (existence is not leaked).
|
|
5570
6204
|
*/
|
|
5571
6205
|
404: ErrorResponse;
|
|
5572
|
-
/**
|
|
5573
|
-
* The uploaded file exceeds the maximum size.
|
|
5574
|
-
*/
|
|
5575
|
-
413: ErrorResponse;
|
|
5576
6206
|
/**
|
|
5577
6207
|
* The upstream runtime could not complete the operation.
|
|
5578
6208
|
*/
|
|
5579
6209
|
502: ErrorResponse;
|
|
5580
6210
|
};
|
|
5581
|
-
type
|
|
5582
|
-
type
|
|
6211
|
+
type ValidateOrchestrationError = ValidateOrchestrationErrors[keyof ValidateOrchestrationErrors];
|
|
6212
|
+
type ValidateOrchestrationResponses = {
|
|
5583
6213
|
/**
|
|
5584
|
-
*
|
|
6214
|
+
* Validation result.
|
|
5585
6215
|
*/
|
|
5586
|
-
|
|
6216
|
+
200: ValidationResult;
|
|
5587
6217
|
};
|
|
5588
|
-
type
|
|
5589
|
-
type
|
|
6218
|
+
type ValidateOrchestrationResponse = ValidateOrchestrationResponses[keyof ValidateOrchestrationResponses];
|
|
6219
|
+
type DeleteOrchestrationData = {
|
|
5590
6220
|
body?: never;
|
|
5591
6221
|
path: {
|
|
5592
6222
|
/**
|
|
@@ -5594,18 +6224,14 @@ type DeleteKnowledgeDocumentData = {
|
|
|
5594
6224
|
*/
|
|
5595
6225
|
project_id: string;
|
|
5596
6226
|
/**
|
|
5597
|
-
*
|
|
5598
|
-
*/
|
|
5599
|
-
collection_id: string;
|
|
5600
|
-
/**
|
|
5601
|
-
* Knowledge document public ID (doc_ prefix) — the runtime document id.
|
|
6227
|
+
* Orchestration public ID (orch_ prefix).
|
|
5602
6228
|
*/
|
|
5603
|
-
|
|
6229
|
+
orchestration_id: string;
|
|
5604
6230
|
};
|
|
5605
6231
|
query?: never;
|
|
5606
|
-
url: '/v1/projects/{project_id}/
|
|
6232
|
+
url: '/v1/projects/{project_id}/orchestrations/{orchestration_id}';
|
|
5607
6233
|
};
|
|
5608
|
-
type
|
|
6234
|
+
type DeleteOrchestrationErrors = {
|
|
5609
6235
|
/**
|
|
5610
6236
|
* Missing or invalid credentials.
|
|
5611
6237
|
*/
|
|
@@ -5619,15 +6245,15 @@ type DeleteKnowledgeDocumentErrors = {
|
|
|
5619
6245
|
*/
|
|
5620
6246
|
502: ErrorResponse;
|
|
5621
6247
|
};
|
|
5622
|
-
type
|
|
5623
|
-
type
|
|
6248
|
+
type DeleteOrchestrationError = DeleteOrchestrationErrors[keyof DeleteOrchestrationErrors];
|
|
6249
|
+
type DeleteOrchestrationResponses = {
|
|
5624
6250
|
/**
|
|
5625
|
-
*
|
|
6251
|
+
* Deleted.
|
|
5626
6252
|
*/
|
|
5627
6253
|
204: void;
|
|
5628
6254
|
};
|
|
5629
|
-
type
|
|
5630
|
-
type
|
|
6255
|
+
type DeleteOrchestrationResponse = DeleteOrchestrationResponses[keyof DeleteOrchestrationResponses];
|
|
6256
|
+
type GetOrchestrationData = {
|
|
5631
6257
|
body?: never;
|
|
5632
6258
|
path: {
|
|
5633
6259
|
/**
|
|
@@ -5635,18 +6261,14 @@ type GetKnowledgeDocumentData = {
|
|
|
5635
6261
|
*/
|
|
5636
6262
|
project_id: string;
|
|
5637
6263
|
/**
|
|
5638
|
-
*
|
|
5639
|
-
*/
|
|
5640
|
-
collection_id: string;
|
|
5641
|
-
/**
|
|
5642
|
-
* Knowledge document public ID (doc_ prefix) — the runtime document id.
|
|
6264
|
+
* Orchestration public ID (orch_ prefix).
|
|
5643
6265
|
*/
|
|
5644
|
-
|
|
6266
|
+
orchestration_id: string;
|
|
5645
6267
|
};
|
|
5646
6268
|
query?: never;
|
|
5647
|
-
url: '/v1/projects/{project_id}/
|
|
6269
|
+
url: '/v1/projects/{project_id}/orchestrations/{orchestration_id}';
|
|
5648
6270
|
};
|
|
5649
|
-
type
|
|
6271
|
+
type GetOrchestrationErrors = {
|
|
5650
6272
|
/**
|
|
5651
6273
|
* Missing or invalid credentials.
|
|
5652
6274
|
*/
|
|
@@ -5660,34 +6282,34 @@ type GetKnowledgeDocumentErrors = {
|
|
|
5660
6282
|
*/
|
|
5661
6283
|
502: ErrorResponse;
|
|
5662
6284
|
};
|
|
5663
|
-
type
|
|
5664
|
-
type
|
|
6285
|
+
type GetOrchestrationError = GetOrchestrationErrors[keyof GetOrchestrationErrors];
|
|
6286
|
+
type GetOrchestrationResponses = {
|
|
5665
6287
|
/**
|
|
5666
|
-
*
|
|
6288
|
+
* Orchestration details.
|
|
5667
6289
|
*/
|
|
5668
|
-
200:
|
|
6290
|
+
200: Orchestration;
|
|
5669
6291
|
};
|
|
5670
|
-
type
|
|
5671
|
-
type
|
|
5672
|
-
body
|
|
6292
|
+
type GetOrchestrationResponse = GetOrchestrationResponses[keyof GetOrchestrationResponses];
|
|
6293
|
+
type UpdateOrchestrationData = {
|
|
6294
|
+
body: UpdateOrchestrationRequest;
|
|
5673
6295
|
path: {
|
|
5674
6296
|
/**
|
|
5675
6297
|
* Project public ID (proj_ prefix).
|
|
5676
6298
|
*/
|
|
5677
6299
|
project_id: string;
|
|
5678
6300
|
/**
|
|
5679
|
-
*
|
|
5680
|
-
*/
|
|
5681
|
-
collection_id: string;
|
|
5682
|
-
/**
|
|
5683
|
-
* Knowledge document public ID (doc_ prefix) — the runtime document id.
|
|
6301
|
+
* Orchestration public ID (orch_ prefix).
|
|
5684
6302
|
*/
|
|
5685
|
-
|
|
6303
|
+
orchestration_id: string;
|
|
5686
6304
|
};
|
|
5687
6305
|
query?: never;
|
|
5688
|
-
url: '/v1/projects/{project_id}/
|
|
6306
|
+
url: '/v1/projects/{project_id}/orchestrations/{orchestration_id}';
|
|
5689
6307
|
};
|
|
5690
|
-
type
|
|
6308
|
+
type UpdateOrchestrationErrors = {
|
|
6309
|
+
/**
|
|
6310
|
+
* The request was malformed or failed validation.
|
|
6311
|
+
*/
|
|
6312
|
+
400: ErrorResponse;
|
|
5691
6313
|
/**
|
|
5692
6314
|
* Missing or invalid credentials.
|
|
5693
6315
|
*/
|
|
@@ -5701,15 +6323,15 @@ type ReingestKnowledgeDocumentErrors = {
|
|
|
5701
6323
|
*/
|
|
5702
6324
|
502: ErrorResponse;
|
|
5703
6325
|
};
|
|
5704
|
-
type
|
|
5705
|
-
type
|
|
6326
|
+
type UpdateOrchestrationError = UpdateOrchestrationErrors[keyof UpdateOrchestrationErrors];
|
|
6327
|
+
type UpdateOrchestrationResponses = {
|
|
5706
6328
|
/**
|
|
5707
|
-
*
|
|
6329
|
+
* Updated orchestration.
|
|
5708
6330
|
*/
|
|
5709
|
-
|
|
6331
|
+
200: Orchestration;
|
|
5710
6332
|
};
|
|
5711
|
-
type
|
|
5712
|
-
type
|
|
6333
|
+
type UpdateOrchestrationResponse = UpdateOrchestrationResponses[keyof UpdateOrchestrationResponses];
|
|
6334
|
+
type ListOrchestrationRunsData = {
|
|
5713
6335
|
body?: never;
|
|
5714
6336
|
path: {
|
|
5715
6337
|
/**
|
|
@@ -5717,19 +6339,28 @@ type ListKnowledgeConvertersData = {
|
|
|
5717
6339
|
*/
|
|
5718
6340
|
project_id: string;
|
|
5719
6341
|
};
|
|
5720
|
-
query
|
|
6342
|
+
query: {
|
|
6343
|
+
/**
|
|
6344
|
+
* Orchestration public ID to list runs of.
|
|
6345
|
+
*/
|
|
6346
|
+
orchestration_id: string;
|
|
5721
6347
|
/**
|
|
5722
6348
|
* Maximum items to return (1–100).
|
|
5723
6349
|
*/
|
|
5724
6350
|
limit?: number;
|
|
5725
6351
|
/**
|
|
5726
|
-
*
|
|
6352
|
+
* Items to skip. This list pages by offset rather than by naturali's usual opaque cursor because the upstream ordering is offset-based; a cursor here would only imitate a keyset.
|
|
6353
|
+
*
|
|
5727
6354
|
*/
|
|
5728
|
-
|
|
6355
|
+
offset?: number;
|
|
5729
6356
|
};
|
|
5730
|
-
url: '/v1/projects/{project_id}/
|
|
6357
|
+
url: '/v1/projects/{project_id}/orchestration-runs';
|
|
5731
6358
|
};
|
|
5732
|
-
type
|
|
6359
|
+
type ListOrchestrationRunsErrors = {
|
|
6360
|
+
/**
|
|
6361
|
+
* The request was malformed or failed validation.
|
|
6362
|
+
*/
|
|
6363
|
+
400: ErrorResponse;
|
|
5733
6364
|
/**
|
|
5734
6365
|
* Missing or invalid credentials.
|
|
5735
6366
|
*/
|
|
@@ -5743,22 +6374,16 @@ type ListKnowledgeConvertersErrors = {
|
|
|
5743
6374
|
*/
|
|
5744
6375
|
502: ErrorResponse;
|
|
5745
6376
|
};
|
|
5746
|
-
type
|
|
5747
|
-
type
|
|
6377
|
+
type ListOrchestrationRunsError = ListOrchestrationRunsErrors[keyof ListOrchestrationRunsErrors];
|
|
6378
|
+
type ListOrchestrationRunsResponses = {
|
|
5748
6379
|
/**
|
|
5749
|
-
* A page of
|
|
6380
|
+
* A page of runs.
|
|
5750
6381
|
*/
|
|
5751
|
-
200:
|
|
6382
|
+
200: OrchestrationRunList;
|
|
5752
6383
|
};
|
|
5753
|
-
type
|
|
5754
|
-
type
|
|
5755
|
-
body:
|
|
5756
|
-
headers?: {
|
|
5757
|
-
/**
|
|
5758
|
-
* Client-supplied key to make this mutating POST idempotent.
|
|
5759
|
-
*/
|
|
5760
|
-
'Idempotency-Key'?: string;
|
|
5761
|
-
};
|
|
6384
|
+
type ListOrchestrationRunsResponse = ListOrchestrationRunsResponses[keyof ListOrchestrationRunsResponses];
|
|
6385
|
+
type StartOrchestrationRunData = {
|
|
6386
|
+
body: StartRunRequest;
|
|
5762
6387
|
path: {
|
|
5763
6388
|
/**
|
|
5764
6389
|
* Project public ID (proj_ prefix).
|
|
@@ -5766,9 +6391,9 @@ type CreateKnowledgeConverterData = {
|
|
|
5766
6391
|
project_id: string;
|
|
5767
6392
|
};
|
|
5768
6393
|
query?: never;
|
|
5769
|
-
url: '/v1/projects/{project_id}/
|
|
6394
|
+
url: '/v1/projects/{project_id}/orchestration-runs';
|
|
5770
6395
|
};
|
|
5771
|
-
type
|
|
6396
|
+
type StartOrchestrationRunErrors = {
|
|
5772
6397
|
/**
|
|
5773
6398
|
* The request was malformed or failed validation.
|
|
5774
6399
|
*/
|
|
@@ -5778,27 +6403,23 @@ type CreateKnowledgeConverterErrors = {
|
|
|
5778
6403
|
*/
|
|
5779
6404
|
401: ErrorResponse;
|
|
5780
6405
|
/**
|
|
5781
|
-
* The
|
|
6406
|
+
* The project, or the referenced orchestration, was not found.
|
|
5782
6407
|
*/
|
|
5783
6408
|
404: ErrorResponse;
|
|
5784
|
-
/**
|
|
5785
|
-
* The request conflicts with the resource's current state.
|
|
5786
|
-
*/
|
|
5787
|
-
409: ErrorResponse;
|
|
5788
6409
|
/**
|
|
5789
6410
|
* The upstream runtime could not complete the operation.
|
|
5790
6411
|
*/
|
|
5791
6412
|
502: ErrorResponse;
|
|
5792
6413
|
};
|
|
5793
|
-
type
|
|
5794
|
-
type
|
|
6414
|
+
type StartOrchestrationRunError = StartOrchestrationRunErrors[keyof StartOrchestrationRunErrors];
|
|
6415
|
+
type StartOrchestrationRunResponses = {
|
|
5795
6416
|
/**
|
|
5796
|
-
*
|
|
6417
|
+
* Run created (and, with wait: true, executed).
|
|
5797
6418
|
*/
|
|
5798
|
-
201:
|
|
6419
|
+
201: OrchestrationRun;
|
|
5799
6420
|
};
|
|
5800
|
-
type
|
|
5801
|
-
type
|
|
6421
|
+
type StartOrchestrationRunResponse = StartOrchestrationRunResponses[keyof StartOrchestrationRunResponses];
|
|
6422
|
+
type GetOrchestrationRunData = {
|
|
5802
6423
|
body?: never;
|
|
5803
6424
|
path: {
|
|
5804
6425
|
/**
|
|
@@ -5806,14 +6427,14 @@ type DeleteKnowledgeConverterData = {
|
|
|
5806
6427
|
*/
|
|
5807
6428
|
project_id: string;
|
|
5808
6429
|
/**
|
|
5809
|
-
*
|
|
6430
|
+
* Orchestration run public ID (orch_run_ prefix).
|
|
5810
6431
|
*/
|
|
5811
|
-
|
|
6432
|
+
orchestration_run_id: string;
|
|
5812
6433
|
};
|
|
5813
6434
|
query?: never;
|
|
5814
|
-
url: '/v1/projects/{project_id}/
|
|
6435
|
+
url: '/v1/projects/{project_id}/orchestration-runs/{orchestration_run_id}';
|
|
5815
6436
|
};
|
|
5816
|
-
type
|
|
6437
|
+
type GetOrchestrationRunErrors = {
|
|
5817
6438
|
/**
|
|
5818
6439
|
* Missing or invalid credentials.
|
|
5819
6440
|
*/
|
|
@@ -5827,15 +6448,15 @@ type DeleteKnowledgeConverterErrors = {
|
|
|
5827
6448
|
*/
|
|
5828
6449
|
502: ErrorResponse;
|
|
5829
6450
|
};
|
|
5830
|
-
type
|
|
5831
|
-
type
|
|
6451
|
+
type GetOrchestrationRunError = GetOrchestrationRunErrors[keyof GetOrchestrationRunErrors];
|
|
6452
|
+
type GetOrchestrationRunResponses = {
|
|
5832
6453
|
/**
|
|
5833
|
-
*
|
|
6454
|
+
* Run details.
|
|
5834
6455
|
*/
|
|
5835
|
-
|
|
6456
|
+
200: OrchestrationRun;
|
|
5836
6457
|
};
|
|
5837
|
-
type
|
|
5838
|
-
type
|
|
6458
|
+
type GetOrchestrationRunResponse = GetOrchestrationRunResponses[keyof GetOrchestrationRunResponses];
|
|
6459
|
+
type CancelOrchestrationRunData = {
|
|
5839
6460
|
body?: never;
|
|
5840
6461
|
path: {
|
|
5841
6462
|
/**
|
|
@@ -5843,14 +6464,14 @@ type GetKnowledgeConverterData = {
|
|
|
5843
6464
|
*/
|
|
5844
6465
|
project_id: string;
|
|
5845
6466
|
/**
|
|
5846
|
-
*
|
|
6467
|
+
* Orchestration run public ID (orch_run_ prefix).
|
|
5847
6468
|
*/
|
|
5848
|
-
|
|
6469
|
+
orchestration_run_id: string;
|
|
5849
6470
|
};
|
|
5850
6471
|
query?: never;
|
|
5851
|
-
url: '/v1/projects/{project_id}/
|
|
6472
|
+
url: '/v1/projects/{project_id}/orchestration-runs/{orchestration_run_id}/cancel';
|
|
5852
6473
|
};
|
|
5853
|
-
type
|
|
6474
|
+
type CancelOrchestrationRunErrors = {
|
|
5854
6475
|
/**
|
|
5855
6476
|
* Missing or invalid credentials.
|
|
5856
6477
|
*/
|
|
@@ -5859,39 +6480,39 @@ type GetKnowledgeConverterErrors = {
|
|
|
5859
6480
|
* The resource does not exist (existence is not leaked).
|
|
5860
6481
|
*/
|
|
5861
6482
|
404: ErrorResponse;
|
|
6483
|
+
/**
|
|
6484
|
+
* The run has already reached a terminal state.
|
|
6485
|
+
*/
|
|
6486
|
+
409: ErrorResponse;
|
|
5862
6487
|
/**
|
|
5863
6488
|
* The upstream runtime could not complete the operation.
|
|
5864
6489
|
*/
|
|
5865
6490
|
502: ErrorResponse;
|
|
5866
6491
|
};
|
|
5867
|
-
type
|
|
5868
|
-
type
|
|
6492
|
+
type CancelOrchestrationRunError = CancelOrchestrationRunErrors[keyof CancelOrchestrationRunErrors];
|
|
6493
|
+
type CancelOrchestrationRunResponses = {
|
|
5869
6494
|
/**
|
|
5870
|
-
*
|
|
6495
|
+
* Cancelled run.
|
|
5871
6496
|
*/
|
|
5872
|
-
200:
|
|
6497
|
+
200: OrchestrationRun;
|
|
5873
6498
|
};
|
|
5874
|
-
type
|
|
5875
|
-
type
|
|
5876
|
-
body
|
|
6499
|
+
type CancelOrchestrationRunResponse = CancelOrchestrationRunResponses[keyof CancelOrchestrationRunResponses];
|
|
6500
|
+
type ResumeOrchestrationRunData = {
|
|
6501
|
+
body?: never;
|
|
5877
6502
|
path: {
|
|
5878
6503
|
/**
|
|
5879
6504
|
* Project public ID (proj_ prefix).
|
|
5880
6505
|
*/
|
|
5881
6506
|
project_id: string;
|
|
5882
6507
|
/**
|
|
5883
|
-
*
|
|
6508
|
+
* Orchestration run public ID (orch_run_ prefix).
|
|
5884
6509
|
*/
|
|
5885
|
-
|
|
6510
|
+
orchestration_run_id: string;
|
|
5886
6511
|
};
|
|
5887
6512
|
query?: never;
|
|
5888
|
-
url: '/v1/projects/{project_id}/
|
|
6513
|
+
url: '/v1/projects/{project_id}/orchestration-runs/{orchestration_run_id}/resume';
|
|
5889
6514
|
};
|
|
5890
|
-
type
|
|
5891
|
-
/**
|
|
5892
|
-
* The request was malformed or failed validation.
|
|
5893
|
-
*/
|
|
5894
|
-
400: ErrorResponse;
|
|
6515
|
+
type ResumeOrchestrationRunErrors = {
|
|
5895
6516
|
/**
|
|
5896
6517
|
* Missing or invalid credentials.
|
|
5897
6518
|
*/
|
|
@@ -5901,7 +6522,7 @@ type UpdateKnowledgeConverterErrors = {
|
|
|
5901
6522
|
*/
|
|
5902
6523
|
404: ErrorResponse;
|
|
5903
6524
|
/**
|
|
5904
|
-
* The
|
|
6525
|
+
* The run is not awaiting input.
|
|
5905
6526
|
*/
|
|
5906
6527
|
409: ErrorResponse;
|
|
5907
6528
|
/**
|
|
@@ -5909,81 +6530,34 @@ type UpdateKnowledgeConverterErrors = {
|
|
|
5909
6530
|
*/
|
|
5910
6531
|
502: ErrorResponse;
|
|
5911
6532
|
};
|
|
5912
|
-
type
|
|
5913
|
-
type
|
|
5914
|
-
/**
|
|
5915
|
-
* Converter updated.
|
|
5916
|
-
*/
|
|
5917
|
-
200: KnowledgeConverter;
|
|
5918
|
-
};
|
|
5919
|
-
type UpdateKnowledgeConverterResponse = UpdateKnowledgeConverterResponses[keyof UpdateKnowledgeConverterResponses];
|
|
5920
|
-
type ListModelsData = {
|
|
5921
|
-
body?: never;
|
|
5922
|
-
path?: never;
|
|
5923
|
-
query?: {
|
|
5924
|
-
/**
|
|
5925
|
-
* Maximum items to return (1–100).
|
|
5926
|
-
*/
|
|
5927
|
-
limit?: number;
|
|
5928
|
-
/**
|
|
5929
|
-
* Opaque pagination cursor from a previous response's next_cursor.
|
|
5930
|
-
*/
|
|
5931
|
-
cursor?: string;
|
|
5932
|
-
/**
|
|
5933
|
-
* Filter by model maker (e.g. anthropic, amazon, meta).
|
|
5934
|
-
*/
|
|
5935
|
-
vendor?: string;
|
|
5936
|
-
/**
|
|
5937
|
-
* Filter by the provider slug that serves the model.
|
|
5938
|
-
*/
|
|
5939
|
-
provider?: string;
|
|
5940
|
-
/**
|
|
5941
|
-
* Filter to models whose input or output modalities include this value (e.g. text, image, embedding, speech).
|
|
5942
|
-
*
|
|
5943
|
-
*/
|
|
5944
|
-
modality?: string;
|
|
5945
|
-
/**
|
|
5946
|
-
* Filter by lifecycle status.
|
|
5947
|
-
*/
|
|
5948
|
-
status?: 'available' | 'deprecated';
|
|
5949
|
-
/**
|
|
5950
|
-
* Filter by whether the model can back a managed provider — `managed=true` is the set you can pass to `POST /v1/projects/{project_id}/providers` with `kind: managed`. Omit to leave the catalog unfiltered on this axis; `false` returns only the BYOK-only models. Any other value is a 400.
|
|
5951
|
-
*
|
|
5952
|
-
*/
|
|
5953
|
-
managed?: boolean;
|
|
5954
|
-
};
|
|
5955
|
-
url: '/v1/models';
|
|
5956
|
-
};
|
|
5957
|
-
type ListModelsErrors = {
|
|
5958
|
-
/**
|
|
5959
|
-
* The request was malformed or failed validation.
|
|
5960
|
-
*/
|
|
5961
|
-
400: ErrorResponse;
|
|
5962
|
-
/**
|
|
5963
|
-
* Missing or invalid credentials.
|
|
5964
|
-
*/
|
|
5965
|
-
401: ErrorResponse;
|
|
5966
|
-
};
|
|
5967
|
-
type ListModelsError = ListModelsErrors[keyof ListModelsErrors];
|
|
5968
|
-
type ListModelsResponses = {
|
|
6533
|
+
type ResumeOrchestrationRunError = ResumeOrchestrationRunErrors[keyof ResumeOrchestrationRunErrors];
|
|
6534
|
+
type ResumeOrchestrationRunResponses = {
|
|
5969
6535
|
/**
|
|
5970
|
-
*
|
|
6536
|
+
* Resumed run.
|
|
5971
6537
|
*/
|
|
5972
|
-
200:
|
|
6538
|
+
200: OrchestrationRun;
|
|
5973
6539
|
};
|
|
5974
|
-
type
|
|
5975
|
-
type
|
|
5976
|
-
body
|
|
6540
|
+
type ResumeOrchestrationRunResponse = ResumeOrchestrationRunResponses[keyof ResumeOrchestrationRunResponses];
|
|
6541
|
+
type SubmitHumanInputData = {
|
|
6542
|
+
body: HumanInputRequest;
|
|
5977
6543
|
path: {
|
|
5978
6544
|
/**
|
|
5979
|
-
*
|
|
6545
|
+
* Project public ID (proj_ prefix).
|
|
6546
|
+
*/
|
|
6547
|
+
project_id: string;
|
|
6548
|
+
/**
|
|
6549
|
+
* Orchestration run public ID (orch_run_ prefix).
|
|
5980
6550
|
*/
|
|
5981
|
-
|
|
6551
|
+
orchestration_run_id: string;
|
|
5982
6552
|
};
|
|
5983
6553
|
query?: never;
|
|
5984
|
-
url: '/v1/
|
|
6554
|
+
url: '/v1/projects/{project_id}/orchestration-runs/{orchestration_run_id}/human-input';
|
|
5985
6555
|
};
|
|
5986
|
-
type
|
|
6556
|
+
type SubmitHumanInputErrors = {
|
|
6557
|
+
/**
|
|
6558
|
+
* The request was malformed or failed validation.
|
|
6559
|
+
*/
|
|
6560
|
+
400: ErrorResponse;
|
|
5987
6561
|
/**
|
|
5988
6562
|
* Missing or invalid credentials.
|
|
5989
6563
|
*/
|
|
@@ -5992,15 +6566,23 @@ type GetModelErrors = {
|
|
|
5992
6566
|
* The resource does not exist (existence is not leaked).
|
|
5993
6567
|
*/
|
|
5994
6568
|
404: ErrorResponse;
|
|
6569
|
+
/**
|
|
6570
|
+
* The run is not awaiting input.
|
|
6571
|
+
*/
|
|
6572
|
+
409: ErrorResponse;
|
|
6573
|
+
/**
|
|
6574
|
+
* The upstream runtime could not complete the operation.
|
|
6575
|
+
*/
|
|
6576
|
+
502: ErrorResponse;
|
|
5995
6577
|
};
|
|
5996
|
-
type
|
|
5997
|
-
type
|
|
6578
|
+
type SubmitHumanInputError = SubmitHumanInputErrors[keyof SubmitHumanInputErrors];
|
|
6579
|
+
type SubmitHumanInputResponses = {
|
|
5998
6580
|
/**
|
|
5999
|
-
*
|
|
6581
|
+
* Run after processing the human input.
|
|
6000
6582
|
*/
|
|
6001
|
-
200:
|
|
6583
|
+
200: OrchestrationRun;
|
|
6002
6584
|
};
|
|
6003
|
-
type
|
|
6585
|
+
type SubmitHumanInputResponse = SubmitHumanInputResponses[keyof SubmitHumanInputResponses];
|
|
6004
6586
|
type ListProjectsData = {
|
|
6005
6587
|
body?: never;
|
|
6006
6588
|
path?: never;
|
|
@@ -6405,223 +6987,6 @@ type UpdateProviderResponses = {
|
|
|
6405
6987
|
200: Provider;
|
|
6406
6988
|
};
|
|
6407
6989
|
type UpdateProviderResponse = UpdateProviderResponses[keyof UpdateProviderResponses];
|
|
6408
|
-
type ListRunsData = {
|
|
6409
|
-
body?: never;
|
|
6410
|
-
path: {
|
|
6411
|
-
/**
|
|
6412
|
-
* Project public ID (proj_ prefix).
|
|
6413
|
-
*/
|
|
6414
|
-
project_id: string;
|
|
6415
|
-
};
|
|
6416
|
-
query: {
|
|
6417
|
-
/**
|
|
6418
|
-
* Only runs of this orchestration. Required — see the file description for why a project-wide feed is not offered. An orchestration this project does not own is a 404, not an empty page.
|
|
6419
|
-
*
|
|
6420
|
-
*/
|
|
6421
|
-
orchestration_id: string;
|
|
6422
|
-
/**
|
|
6423
|
-
* Maximum items to return (1–100).
|
|
6424
|
-
*/
|
|
6425
|
-
limit?: number;
|
|
6426
|
-
/**
|
|
6427
|
-
* Opaque pagination cursor from a previous response's next_cursor.
|
|
6428
|
-
*/
|
|
6429
|
-
cursor?: string;
|
|
6430
|
-
};
|
|
6431
|
-
url: '/v1/projects/{project_id}/runs';
|
|
6432
|
-
};
|
|
6433
|
-
type ListRunsErrors = {
|
|
6434
|
-
/**
|
|
6435
|
-
* The request was malformed or failed validation.
|
|
6436
|
-
*/
|
|
6437
|
-
400: ErrorResponse;
|
|
6438
|
-
/**
|
|
6439
|
-
* Missing or invalid credentials.
|
|
6440
|
-
*/
|
|
6441
|
-
401: ErrorResponse;
|
|
6442
|
-
/**
|
|
6443
|
-
* The resource does not exist (existence is not leaked).
|
|
6444
|
-
*/
|
|
6445
|
-
404: ErrorResponse;
|
|
6446
|
-
/**
|
|
6447
|
-
* The upstream runtime could not complete the operation.
|
|
6448
|
-
*/
|
|
6449
|
-
502: ErrorResponse;
|
|
6450
|
-
};
|
|
6451
|
-
type ListRunsError = ListRunsErrors[keyof ListRunsErrors];
|
|
6452
|
-
type ListRunsResponses = {
|
|
6453
|
-
/**
|
|
6454
|
-
* A page of runs.
|
|
6455
|
-
*/
|
|
6456
|
-
200: RunList;
|
|
6457
|
-
};
|
|
6458
|
-
type ListRunsResponse = ListRunsResponses[keyof ListRunsResponses];
|
|
6459
|
-
type StartRunData = {
|
|
6460
|
-
body: RunCreate;
|
|
6461
|
-
headers?: {
|
|
6462
|
-
/**
|
|
6463
|
-
* Client-supplied key to make this mutating POST idempotent.
|
|
6464
|
-
*/
|
|
6465
|
-
'Idempotency-Key'?: string;
|
|
6466
|
-
};
|
|
6467
|
-
path: {
|
|
6468
|
-
/**
|
|
6469
|
-
* Project public ID (proj_ prefix).
|
|
6470
|
-
*/
|
|
6471
|
-
project_id: string;
|
|
6472
|
-
};
|
|
6473
|
-
query?: never;
|
|
6474
|
-
url: '/v1/projects/{project_id}/runs';
|
|
6475
|
-
};
|
|
6476
|
-
type StartRunErrors = {
|
|
6477
|
-
/**
|
|
6478
|
-
* The request was malformed or failed validation.
|
|
6479
|
-
*/
|
|
6480
|
-
400: ErrorResponse;
|
|
6481
|
-
/**
|
|
6482
|
-
* Missing or invalid credentials.
|
|
6483
|
-
*/
|
|
6484
|
-
401: ErrorResponse;
|
|
6485
|
-
/**
|
|
6486
|
-
* The resource does not exist (existence is not leaked).
|
|
6487
|
-
*/
|
|
6488
|
-
404: ErrorResponse;
|
|
6489
|
-
/**
|
|
6490
|
-
* The upstream runtime could not complete the operation.
|
|
6491
|
-
*/
|
|
6492
|
-
502: ErrorResponse;
|
|
6493
|
-
};
|
|
6494
|
-
type StartRunError = StartRunErrors[keyof StartRunErrors];
|
|
6495
|
-
type StartRunResponses = {
|
|
6496
|
-
/**
|
|
6497
|
-
* Run created.
|
|
6498
|
-
*/
|
|
6499
|
-
201: Run;
|
|
6500
|
-
};
|
|
6501
|
-
type StartRunResponse = StartRunResponses[keyof StartRunResponses];
|
|
6502
|
-
type GetRunData = {
|
|
6503
|
-
body?: never;
|
|
6504
|
-
path: {
|
|
6505
|
-
/**
|
|
6506
|
-
* Project public ID (proj_ prefix).
|
|
6507
|
-
*/
|
|
6508
|
-
project_id: string;
|
|
6509
|
-
/**
|
|
6510
|
-
* Run public ID (orch_run_ prefix).
|
|
6511
|
-
*/
|
|
6512
|
-
run_id: string;
|
|
6513
|
-
};
|
|
6514
|
-
query?: never;
|
|
6515
|
-
url: '/v1/projects/{project_id}/runs/{run_id}';
|
|
6516
|
-
};
|
|
6517
|
-
type GetRunErrors = {
|
|
6518
|
-
/**
|
|
6519
|
-
* Missing or invalid credentials.
|
|
6520
|
-
*/
|
|
6521
|
-
401: ErrorResponse;
|
|
6522
|
-
/**
|
|
6523
|
-
* The resource does not exist (existence is not leaked).
|
|
6524
|
-
*/
|
|
6525
|
-
404: ErrorResponse;
|
|
6526
|
-
/**
|
|
6527
|
-
* The upstream runtime could not complete the operation.
|
|
6528
|
-
*/
|
|
6529
|
-
502: ErrorResponse;
|
|
6530
|
-
};
|
|
6531
|
-
type GetRunError = GetRunErrors[keyof GetRunErrors];
|
|
6532
|
-
type GetRunResponses = {
|
|
6533
|
-
/**
|
|
6534
|
-
* Run details.
|
|
6535
|
-
*/
|
|
6536
|
-
200: Run;
|
|
6537
|
-
};
|
|
6538
|
-
type GetRunResponse = GetRunResponses[keyof GetRunResponses];
|
|
6539
|
-
type CancelRunData = {
|
|
6540
|
-
body?: never;
|
|
6541
|
-
path: {
|
|
6542
|
-
/**
|
|
6543
|
-
* Project public ID (proj_ prefix).
|
|
6544
|
-
*/
|
|
6545
|
-
project_id: string;
|
|
6546
|
-
/**
|
|
6547
|
-
* Run public ID (orch_run_ prefix).
|
|
6548
|
-
*/
|
|
6549
|
-
run_id: string;
|
|
6550
|
-
};
|
|
6551
|
-
query?: never;
|
|
6552
|
-
url: '/v1/projects/{project_id}/runs/{run_id}:cancel';
|
|
6553
|
-
};
|
|
6554
|
-
type CancelRunErrors = {
|
|
6555
|
-
/**
|
|
6556
|
-
* Missing or invalid credentials.
|
|
6557
|
-
*/
|
|
6558
|
-
401: ErrorResponse;
|
|
6559
|
-
/**
|
|
6560
|
-
* The resource does not exist (existence is not leaked).
|
|
6561
|
-
*/
|
|
6562
|
-
404: ErrorResponse;
|
|
6563
|
-
/**
|
|
6564
|
-
* The request conflicts with the resource's current state.
|
|
6565
|
-
*/
|
|
6566
|
-
409: ErrorResponse;
|
|
6567
|
-
/**
|
|
6568
|
-
* The upstream runtime could not complete the operation.
|
|
6569
|
-
*/
|
|
6570
|
-
502: ErrorResponse;
|
|
6571
|
-
};
|
|
6572
|
-
type CancelRunError = CancelRunErrors[keyof CancelRunErrors];
|
|
6573
|
-
type CancelRunResponses = {
|
|
6574
|
-
/**
|
|
6575
|
-
* The cancelled run.
|
|
6576
|
-
*/
|
|
6577
|
-
200: Run;
|
|
6578
|
-
};
|
|
6579
|
-
type CancelRunResponse = CancelRunResponses[keyof CancelRunResponses];
|
|
6580
|
-
type ResumeRunData = {
|
|
6581
|
-
body?: RunResume;
|
|
6582
|
-
path: {
|
|
6583
|
-
/**
|
|
6584
|
-
* Project public ID (proj_ prefix).
|
|
6585
|
-
*/
|
|
6586
|
-
project_id: string;
|
|
6587
|
-
/**
|
|
6588
|
-
* Run public ID (orch_run_ prefix).
|
|
6589
|
-
*/
|
|
6590
|
-
run_id: string;
|
|
6591
|
-
};
|
|
6592
|
-
query?: never;
|
|
6593
|
-
url: '/v1/projects/{project_id}/runs/{run_id}:resume';
|
|
6594
|
-
};
|
|
6595
|
-
type ResumeRunErrors = {
|
|
6596
|
-
/**
|
|
6597
|
-
* The request was malformed or failed validation.
|
|
6598
|
-
*/
|
|
6599
|
-
400: ErrorResponse;
|
|
6600
|
-
/**
|
|
6601
|
-
* Missing or invalid credentials.
|
|
6602
|
-
*/
|
|
6603
|
-
401: ErrorResponse;
|
|
6604
|
-
/**
|
|
6605
|
-
* The resource does not exist (existence is not leaked).
|
|
6606
|
-
*/
|
|
6607
|
-
404: ErrorResponse;
|
|
6608
|
-
/**
|
|
6609
|
-
* The request conflicts with the resource's current state.
|
|
6610
|
-
*/
|
|
6611
|
-
409: ErrorResponse;
|
|
6612
|
-
/**
|
|
6613
|
-
* The upstream runtime could not complete the operation.
|
|
6614
|
-
*/
|
|
6615
|
-
502: ErrorResponse;
|
|
6616
|
-
};
|
|
6617
|
-
type ResumeRunError = ResumeRunErrors[keyof ResumeRunErrors];
|
|
6618
|
-
type ResumeRunResponses = {
|
|
6619
|
-
/**
|
|
6620
|
-
* The resumed run.
|
|
6621
|
-
*/
|
|
6622
|
-
200: Run;
|
|
6623
|
-
};
|
|
6624
|
-
type ResumeRunResponse = ResumeRunResponses[keyof ResumeRunResponses];
|
|
6625
6990
|
type CreateSessionData = {
|
|
6626
6991
|
body?: SessionCreate;
|
|
6627
6992
|
headers?: {
|
|
@@ -7599,6 +7964,11 @@ type ListTriggersData = {
|
|
|
7599
7964
|
project_id: string;
|
|
7600
7965
|
};
|
|
7601
7966
|
query?: {
|
|
7967
|
+
/**
|
|
7968
|
+
* Narrow the page to one target kind. Filtered and counted upstream, so `total` is exact. Omit it to list both kinds — see the operation's note on `total`.
|
|
7969
|
+
*
|
|
7970
|
+
*/
|
|
7971
|
+
target_type?: TriggerTargetType;
|
|
7602
7972
|
/**
|
|
7603
7973
|
* Maximum items to return (1–100).
|
|
7604
7974
|
*/
|
|
@@ -8784,6 +9154,83 @@ declare class Models {
|
|
|
8784
9154
|
*/
|
|
8785
9155
|
static getModel<ThrowOnError extends boolean = false>(options: Options<GetModelData, ThrowOnError>): RequestResult<GetModelResponses, GetModelErrors, ThrowOnError>;
|
|
8786
9156
|
}
|
|
9157
|
+
declare class Orchestrations {
|
|
9158
|
+
/**
|
|
9159
|
+
* List orchestrations
|
|
9160
|
+
*
|
|
9161
|
+
* Lists the project's orchestration definitions.
|
|
9162
|
+
*/
|
|
9163
|
+
static listOrchestrations<ThrowOnError extends boolean = false>(options: Options<ListOrchestrationsData, ThrowOnError>): RequestResult<ListOrchestrationsResponses, ListOrchestrationsErrors, ThrowOnError>;
|
|
9164
|
+
/**
|
|
9165
|
+
* Create an orchestration
|
|
9166
|
+
*
|
|
9167
|
+
* Creates a new orchestration (pipeline) definition in the project.
|
|
9168
|
+
*/
|
|
9169
|
+
static createOrchestration<ThrowOnError extends boolean = false>(options: Options<CreateOrchestrationData, ThrowOnError>): RequestResult<CreateOrchestrationResponses, CreateOrchestrationErrors, ThrowOnError>;
|
|
9170
|
+
/**
|
|
9171
|
+
* Validate an orchestration graph
|
|
9172
|
+
*
|
|
9173
|
+
* Statically validates a graph without persisting anything — the same checks `create`/`update` enforce (unique node ids, edges reference existing nodes, the graph is acyclic unless it contains a loop node, every `input_mapping` reference resolves). Returns blocking `errors` and non-blocking `warnings`.
|
|
9174
|
+
*
|
|
9175
|
+
*/
|
|
9176
|
+
static validateOrchestration<ThrowOnError extends boolean = false>(options: Options<ValidateOrchestrationData, ThrowOnError>): RequestResult<ValidateOrchestrationResponses, ValidateOrchestrationErrors, ThrowOnError>;
|
|
9177
|
+
/**
|
|
9178
|
+
* Delete an orchestration
|
|
9179
|
+
*
|
|
9180
|
+
* Deletes the orchestration definition and all of its runs.
|
|
9181
|
+
*/
|
|
9182
|
+
static deleteOrchestration<ThrowOnError extends boolean = false>(options: Options<DeleteOrchestrationData, ThrowOnError>): RequestResult<DeleteOrchestrationResponses, DeleteOrchestrationErrors, ThrowOnError>;
|
|
9183
|
+
/**
|
|
9184
|
+
* Get an orchestration
|
|
9185
|
+
*
|
|
9186
|
+
* Returns one orchestration with its nodes and edges. Belonging to another project responds `404`, not `403` — existence is not leaked.
|
|
9187
|
+
*
|
|
9188
|
+
*/
|
|
9189
|
+
static getOrchestration<ThrowOnError extends boolean = false>(options: Options<GetOrchestrationData, ThrowOnError>): RequestResult<GetOrchestrationResponses, GetOrchestrationErrors, ThrowOnError>;
|
|
9190
|
+
/**
|
|
9191
|
+
* Update an orchestration
|
|
9192
|
+
*
|
|
9193
|
+
* Partially updates an orchestration's definition.
|
|
9194
|
+
*/
|
|
9195
|
+
static updateOrchestration<ThrowOnError extends boolean = false>(options: Options<UpdateOrchestrationData, ThrowOnError>): RequestResult<UpdateOrchestrationResponses, UpdateOrchestrationErrors, ThrowOnError>;
|
|
9196
|
+
/**
|
|
9197
|
+
* List orchestration runs
|
|
9198
|
+
*
|
|
9199
|
+
* Lists runs of one orchestration. `orchestration_id` is required — it is what scopes the list to this project, since a run carries no cheaper project-level filter of its own.
|
|
9200
|
+
*
|
|
9201
|
+
*/
|
|
9202
|
+
static listOrchestrationRuns<ThrowOnError extends boolean = false>(options: Options<ListOrchestrationRunsData, ThrowOnError>): RequestResult<ListOrchestrationRunsResponses, ListOrchestrationRunsErrors, ThrowOnError>;
|
|
9203
|
+
/**
|
|
9204
|
+
* Start an orchestration run
|
|
9205
|
+
*
|
|
9206
|
+
* Starts a new run of the orchestration named by `orchestration_id`, which must belong to this project. By default the run executes durably in the background and this returns immediately with `status: "queued"`; pass `wait: true` to block until the run reaches a terminal or `awaiting_input` state instead.
|
|
9207
|
+
*/
|
|
9208
|
+
static startOrchestrationRun<ThrowOnError extends boolean = false>(options: Options<StartOrchestrationRunData, ThrowOnError>): RequestResult<StartOrchestrationRunResponses, StartOrchestrationRunErrors, ThrowOnError>;
|
|
9209
|
+
/**
|
|
9210
|
+
* Get an orchestration run
|
|
9211
|
+
*
|
|
9212
|
+
* Returns the status, state, and artifacts of one run.
|
|
9213
|
+
*/
|
|
9214
|
+
static getOrchestrationRun<ThrowOnError extends boolean = false>(options: Options<GetOrchestrationRunData, ThrowOnError>): RequestResult<GetOrchestrationRunResponses, GetOrchestrationRunErrors, ThrowOnError>;
|
|
9215
|
+
/**
|
|
9216
|
+
* Cancel an orchestration run
|
|
9217
|
+
*
|
|
9218
|
+
* Cancels a run that has not yet reached a terminal state.
|
|
9219
|
+
*/
|
|
9220
|
+
static cancelOrchestrationRun<ThrowOnError extends boolean = false>(options: Options<CancelOrchestrationRunData, ThrowOnError>): RequestResult<CancelOrchestrationRunResponses, CancelOrchestrationRunErrors, ThrowOnError>;
|
|
9221
|
+
/**
|
|
9222
|
+
* Resume an orchestration run
|
|
9223
|
+
*
|
|
9224
|
+
* Re-drives an `awaiting_input` run from its last checkpoint. This does not satisfy the pause itself — a run parked on a human or webhook node re-parks on the same node. Use `human-input` to supply the awaited payload and advance the run.
|
|
9225
|
+
*/
|
|
9226
|
+
static resumeOrchestrationRun<ThrowOnError extends boolean = false>(options: Options<ResumeOrchestrationRunData, ThrowOnError>): RequestResult<ResumeOrchestrationRunResponses, ResumeOrchestrationRunErrors, ThrowOnError>;
|
|
9227
|
+
/**
|
|
9228
|
+
* Submit human input
|
|
9229
|
+
*
|
|
9230
|
+
* Provides human input to a run that is `awaiting_input` at a human node, and advances it.
|
|
9231
|
+
*/
|
|
9232
|
+
static submitHumanInput<ThrowOnError extends boolean = false>(options: Options<SubmitHumanInputData, ThrowOnError>): RequestResult<SubmitHumanInputResponses, SubmitHumanInputErrors, ThrowOnError>;
|
|
9233
|
+
}
|
|
8787
9234
|
declare class Projects {
|
|
8788
9235
|
/**
|
|
8789
9236
|
* List projects
|
|
@@ -8855,43 +9302,6 @@ declare class Providers {
|
|
|
8855
9302
|
*/
|
|
8856
9303
|
static updateProvider<ThrowOnError extends boolean = false>(options: Options<UpdateProviderData, ThrowOnError>): RequestResult<UpdateProviderResponses, UpdateProviderErrors, ThrowOnError>;
|
|
8857
9304
|
}
|
|
8858
|
-
declare class Runs {
|
|
8859
|
-
/**
|
|
8860
|
-
* List runs
|
|
8861
|
-
*
|
|
8862
|
-
* Runs of one orchestration, most recent first. `orchestration_id` is required — a project-wide run feed is not offered, since the upstream runtime's own list has no project filter (see the file description).
|
|
8863
|
-
*
|
|
8864
|
-
*/
|
|
8865
|
-
static listRuns<ThrowOnError extends boolean = false>(options: Options<ListRunsData, ThrowOnError>): RequestResult<ListRunsResponses, ListRunsErrors, ThrowOnError>;
|
|
8866
|
-
/**
|
|
8867
|
-
* Start a run
|
|
8868
|
-
*
|
|
8869
|
-
* Creates a new run of the orchestration named by `orchestration_id`. By default the run executes durably in the background and this call returns immediately with status `queued`; poll `GET …/runs/{run_id}` to observe progress. Pass `wait: true` to block until the run reaches a terminal or `awaiting_input` state instead.
|
|
8870
|
-
*
|
|
8871
|
-
*/
|
|
8872
|
-
static startRun<ThrowOnError extends boolean = false>(options: Options<StartRunData, ThrowOnError>): RequestResult<StartRunResponses, StartRunErrors, ThrowOnError>;
|
|
8873
|
-
/**
|
|
8874
|
-
* Get a run
|
|
8875
|
-
*
|
|
8876
|
-
* One run's status, accumulated state, per-node artifacts and execution trace.
|
|
8877
|
-
*
|
|
8878
|
-
*/
|
|
8879
|
-
static getRun<ThrowOnError extends boolean = false>(options: Options<GetRunData, ThrowOnError>): RequestResult<GetRunResponses, GetRunErrors, ThrowOnError>;
|
|
8880
|
-
/**
|
|
8881
|
-
* Cancel a run
|
|
8882
|
-
*
|
|
8883
|
-
* Stops a run that has not yet reached a terminal state.
|
|
8884
|
-
*/
|
|
8885
|
-
static cancelRun<ThrowOnError extends boolean = false>(options: Options<CancelRunData, ThrowOnError>): RequestResult<CancelRunResponses, CancelRunErrors, ThrowOnError>;
|
|
8886
|
-
/**
|
|
8887
|
-
* Resume a run
|
|
8888
|
-
*
|
|
8889
|
-
* Moves a run parked at `awaiting_input` forward — the single door for every resume, whatever the run is parked on. Send `output` to answer a human-node pause and advance past it; omit it to re-drive a run without answering anything, which re-parks a human or webhook-receive pause on the same node (useful for a delay/poll wait, or to nudge a run after an external side effect completed out of band).
|
|
8890
|
-
* Only valid on a run whose status is `awaiting_input`; any other status answers 409.
|
|
8891
|
-
*
|
|
8892
|
-
*/
|
|
8893
|
-
static resumeRun<ThrowOnError extends boolean = false>(options: Options<ResumeRunData, ThrowOnError>): RequestResult<ResumeRunResponses, ResumeRunErrors, ThrowOnError>;
|
|
8894
|
-
}
|
|
8895
9305
|
declare class Sessions {
|
|
8896
9306
|
/**
|
|
8897
9307
|
* Open a session
|
|
@@ -9057,13 +9467,15 @@ declare class Triggers {
|
|
|
9057
9467
|
/**
|
|
9058
9468
|
* List triggers
|
|
9059
9469
|
*
|
|
9060
|
-
* The project's schedule triggers.
|
|
9470
|
+
* The project's schedule triggers, of either fronted target kind.
|
|
9471
|
+
* `total` is the runtime's count of the project's schedule triggers, so it can exceed the rows returned when a trigger was authored directly against the runtime with a target this surface doesn't front (the same bypass `getTrigger` answers `404` for). Pass `target_type` — which is filtered and counted upstream — when an exact count matters.
|
|
9472
|
+
*
|
|
9061
9473
|
*/
|
|
9062
9474
|
static listTriggers<ThrowOnError extends boolean = false>(options: Options<ListTriggersData, ThrowOnError>): RequestResult<ListTriggersResponses, ListTriggersErrors, ThrowOnError>;
|
|
9063
9475
|
/**
|
|
9064
9476
|
* Create a trigger
|
|
9065
9477
|
*
|
|
9066
|
-
* Schedules `target_id`
|
|
9478
|
+
* Schedules `target_id` — an agent or an orchestration in this project, per `target_type` — to run on `cron`, a 5-field cron expression evaluated in UTC.
|
|
9067
9479
|
*
|
|
9068
9480
|
*/
|
|
9069
9481
|
static createTrigger<ThrowOnError extends boolean = false>(options: Options<CreateTriggerData, ThrowOnError>): RequestResult<CreateTriggerResponses, CreateTriggerErrors, ThrowOnError>;
|
|
@@ -9080,7 +9492,7 @@ declare class Triggers {
|
|
|
9080
9492
|
/**
|
|
9081
9493
|
* Update a trigger
|
|
9082
9494
|
*
|
|
9083
|
-
* Retune the schedule, its target, or whether it fires at all. At least one field is required. `type`
|
|
9495
|
+
* Retune the schedule, its target, or whether it fires at all. At least one field is required. `type` is immutable; `target_type` may be changed only together with `target_id`.
|
|
9084
9496
|
*
|
|
9085
9497
|
*/
|
|
9086
9498
|
static updateTrigger<ThrowOnError extends boolean = false>(options: Options<UpdateTriggerData, ThrowOnError>): RequestResult<UpdateTriggerResponses, UpdateTriggerErrors, ThrowOnError>;
|
|
@@ -9222,16 +9634,18 @@ declare class NaturaliClient {
|
|
|
9222
9634
|
readonly generations: typeof Generations;
|
|
9223
9635
|
readonly knowledge: typeof Knowledge;
|
|
9224
9636
|
readonly models: typeof Models;
|
|
9637
|
+
readonly orchestrations: typeof Orchestrations;
|
|
9225
9638
|
readonly projects: typeof Projects;
|
|
9226
9639
|
readonly providers: typeof Providers;
|
|
9227
9640
|
readonly sessions: typeof Sessions;
|
|
9228
9641
|
readonly tasks: typeof Tasks;
|
|
9229
9642
|
readonly tools: typeof Tools;
|
|
9230
9643
|
readonly traces: typeof Traces;
|
|
9644
|
+
readonly triggers: typeof Triggers;
|
|
9231
9645
|
readonly webhooks: typeof Webhooks;
|
|
9232
9646
|
/** The underlying HTTP client, for interceptors or one-off requests. */
|
|
9233
9647
|
readonly http: Client;
|
|
9234
9648
|
constructor({ token, headers }?: NaturaliClientOptions);
|
|
9235
9649
|
}
|
|
9236
9650
|
//#endregion
|
|
9237
|
-
export { type Acknowledgement, type Actor, type ActorCreate, type ActorId, type ActorList, type ActorUpdate, Actors, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageResponse, type AddSessionMessageResponses, type Address, type AddressActionSet, type AddressList, type Agent, type AgentCreate, type AgentId, type AgentList, type AgentUpdate, Agents, type ApiKeyCreate, type ApiKeyCreated, type ApiKeyId, type ApiKeyList, type ApiKeyRecord, type ApiKeyUpdate, ApiKeys, type AssigneeFilter, Assistant, type AssistantChannel, type AssistantGrant, type AssistantGrantList, type AssistantLinkPreview, type AssistantLinkRedeem, type AssistantScope, Auth, type AuthSession, type Board, type BoardCompletionRule, type BoardCreate, type BoardDispatch, type BoardId, type BoardIdFilter, type BoardList, type BoardOnEnter, type BoardState, type BoardTransition, type BoardUpdate, Boards, type CancelRunData, type CancelRunError, type CancelRunErrors, type CancelRunResponse, type CancelRunResponses, 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 CollectionId, type Conversation, type ConversationId, type ConversationList, type ConversationMessage, type ConversationMessageList, type ConverterId, type CreateActorData, type CreateActorError, type CreateActorErrors, type CreateActorResponse, type CreateActorResponses, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentResponse, type CreateAgentResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateBoardData, type CreateBoardError, type CreateBoardErrors, type CreateBoardResponse, type CreateBoardResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateChannelRouteData, type CreateChannelRouteError, type CreateChannelRouteErrors, type CreateChannelRouteResponse, type CreateChannelRouteResponses, type CreateConversationData, type CreateConversationError, type CreateConversationErrors, type CreateConversationResponse, type CreateConversationResponses, type CreateGenerationData, type CreateGenerationError, type CreateGenerationErrors, type CreateGenerationResponse, type CreateGenerationResponses, type CreateKnowledgeCollectionData, type CreateKnowledgeCollectionError, type CreateKnowledgeCollectionErrors, type CreateKnowledgeCollectionResponse, type CreateKnowledgeCollectionResponses, type CreateKnowledgeConverterData, type CreateKnowledgeConverterError, type CreateKnowledgeConverterErrors, type CreateKnowledgeConverterResponse, type CreateKnowledgeConverterResponses, type CreateKnowledgeDocumentData, type CreateKnowledgeDocumentError, type CreateKnowledgeDocumentErrors, type CreateKnowledgeDocumentResponse, type CreateKnowledgeDocumentResponses, type CreateProjectData, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateProviderData, type CreateProviderError, type CreateProviderErrors, type CreateProviderResponse, type CreateProviderResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionResponse, type CreateSessionResponses, type CreateTaskData, type CreateTaskError, type CreateTaskErrors, type CreateTaskResponse, type CreateTaskResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolResponse, type CreateToolResponses, type CreateTriggerData, type CreateTriggerError, type CreateTriggerErrors, type CreateTriggerResponse, type CreateTriggerResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type Cursor, 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 DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteBoardData, type DeleteBoardError, type DeleteBoardErrors, type DeleteBoardResponse, type DeleteBoardResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteChannelRouteData, type DeleteChannelRouteError, type DeleteChannelRouteErrors, type DeleteChannelRouteResponse, type DeleteChannelRouteResponses, type DeleteKnowledgeCollectionData, type DeleteKnowledgeCollectionError, type DeleteKnowledgeCollectionErrors, type DeleteKnowledgeCollectionResponse, type DeleteKnowledgeCollectionResponses, type DeleteKnowledgeConverterData, type DeleteKnowledgeConverterError, type DeleteKnowledgeConverterErrors, type DeleteKnowledgeConverterResponse, type DeleteKnowledgeConverterResponses, type DeleteKnowledgeDocumentData, type DeleteKnowledgeDocumentError, type DeleteKnowledgeDocumentErrors, type DeleteKnowledgeDocumentResponse, type DeleteKnowledgeDocumentResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteProviderData, type DeleteProviderError, type DeleteProviderErrors, type DeleteProviderResponse, type DeleteProviderResponses, type DeleteTaskData, type DeleteTaskError, type DeleteTaskErrors, type DeleteTaskResponse, type DeleteTaskResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteTriggerData, type DeleteTriggerError, type DeleteTriggerErrors, type DeleteTriggerResponse, type DeleteTriggerResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeliveryId, type DiscordModes, type DocumentId, type ErrorResponse, type Event, type EventSubscription, type EventType, type ExternalIdFilter, type FireTriggerData, type FireTriggerError, type FireTriggerErrors, type FireTriggerResponse, type FireTriggerResponses, type FiringId, type Force, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, type GenerationCreate, type GenerationId, type GenerationList, type GenerationResult, type GenerationStatus, type GenerationUsage, Generations, type GetActorData, type GetActorError, type GetActorErrors, type GetActorResponse, type GetActorResponses, type GetAddressData, type GetAddressError, type GetAddressErrors, type GetAddressResponse, type GetAddressResponses, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetApiKeyData, type GetApiKeyError, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponses, type 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 GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetGenerationUsageData, type GetGenerationUsageError, type GetGenerationUsageErrors, type GetGenerationUsageResponse, type GetGenerationUsageResponses, type GetKnowledgeCollectionData, type GetKnowledgeCollectionError, type GetKnowledgeCollectionErrors, type GetKnowledgeCollectionResponse, type GetKnowledgeCollectionResponses, type GetKnowledgeConverterData, type GetKnowledgeConverterError, type GetKnowledgeConverterErrors, type GetKnowledgeConverterResponse, type GetKnowledgeConverterResponses, type GetKnowledgeDocumentData, type GetKnowledgeDocumentError, type GetKnowledgeDocumentErrors, type GetKnowledgeDocumentResponse, type GetKnowledgeDocumentResponses, type GetModelData, type GetModelError, type GetModelErrors, type GetModelResponse, type GetModelResponses, type GetProjectData, type GetProjectError, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetProjectUsageData, type GetProjectUsageError, type GetProjectUsageErrors, type GetProjectUsageResponse, type GetProjectUsageResponses, type GetProviderData, type GetProviderError, type GetProviderErrors, type GetProviderResponse, type GetProviderResponses, type GetRunData, type GetRunError, type GetRunErrors, type GetRunResponse, type GetRunResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetTaskData, type GetTaskError, type GetTaskErrors, type GetTaskResponse, type GetTaskResponses, type GetToolData, type GetToolError, type GetToolErrors, type GetToolResponse, type GetToolResponses, type GetTraceData, type GetTraceError, type GetTraceErrors, type GetTraceResponse, type GetTraceResponses, type GetTraceStepsData, type GetTraceStepsError, type GetTraceStepsErrors, type GetTraceStepsResponse, type GetTraceStepsResponses, type GetTraceTreeData, type GetTraceTreeError, type GetTraceTreeErrors, type GetTraceTreeResponse, type GetTraceTreeResponses, type GetTriggerData, type GetTriggerError, type GetTriggerErrors, type GetTriggerFiringData, type GetTriggerFiringError, type GetTriggerFiringErrors, type GetTriggerFiringResponse, type GetTriggerFiringResponses, type GetTriggerResponse, type GetTriggerResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryError, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GrantId, type HttpExecute, type IdempotencyKey, type Identifier, Knowledge, type KnowledgeChunk, type KnowledgeCollection, type KnowledgeCollectionCreate, type KnowledgeCollectionList, type KnowledgeCollectionUpdate, type KnowledgeConverter, type KnowledgeConverterCreate, type KnowledgeConverterList, type KnowledgeConverterUpdate, type KnowledgeDocument, type KnowledgeDocumentCreate, type KnowledgeDocumentList, type KnowledgeQueryRequest, type KnowledgeQueryResult, type Limit, type 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 ListAgentGenerationsData, type ListAgentGenerationsError, type ListAgentGenerationsErrors, type ListAgentGenerationsResponse, type ListAgentGenerationsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListAssistantGrantsData, type ListAssistantGrantsError, type ListAssistantGrantsErrors, type ListAssistantGrantsResponse, type ListAssistantGrantsResponses, type ListBoardsData, type ListBoardsError, type ListBoardsErrors, type ListBoardsResponse, type ListBoardsResponses, type ListChannelConversationMessagesData, type ListChannelConversationMessagesError, type ListChannelConversationMessagesErrors, type ListChannelConversationMessagesResponse, type ListChannelConversationMessagesResponses, type ListChannelConversationsData, type ListChannelConversationsError, type ListChannelConversationsErrors, type ListChannelConversationsResponse, type ListChannelConversationsResponses, type 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 ListKnowledgeCollectionsData, type ListKnowledgeCollectionsError, type ListKnowledgeCollectionsErrors, type ListKnowledgeCollectionsResponse, type ListKnowledgeCollectionsResponses, type ListKnowledgeConvertersData, type ListKnowledgeConvertersError, type ListKnowledgeConvertersErrors, type ListKnowledgeConvertersResponse, type ListKnowledgeConvertersResponses, type ListKnowledgeDocumentsData, type ListKnowledgeDocumentsError, type ListKnowledgeDocumentsErrors, type ListKnowledgeDocumentsResponse, type ListKnowledgeDocumentsResponses, type ListModelsData, type ListModelsError, type ListModelsErrors, type ListModelsResponse, type ListModelsResponses, type ListProjectChannelRoutesData, type ListProjectChannelRoutesError, type ListProjectChannelRoutesErrors, type ListProjectChannelRoutesResponse, type ListProjectChannelRoutesResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListProvidersData, type ListProvidersError, type ListProvidersErrors, type ListProvidersResponse, type ListProvidersResponses, type ListRunsData, type ListRunsError, type ListRunsErrors, type ListRunsResponse, type ListRunsResponses, type ListSessionMessagesData, type ListSessionMessagesError, type ListSessionMessagesErrors, type ListSessionMessagesResponse, type ListSessionMessagesResponses, type ListTaskTransitionsData, type ListTaskTransitionsError, type ListTaskTransitionsErrors, type ListTaskTransitionsResponse, type ListTaskTransitionsResponses, type ListTasksData, type ListTasksError, type ListTasksErrors, type ListTasksResponse, type ListTasksResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTraceGenerationsData, type ListTraceGenerationsError, type ListTraceGenerationsErrors, type ListTraceGenerationsResponse, type ListTraceGenerationsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListTriggerFiringsData, type ListTriggerFiringsError, type ListTriggerFiringsErrors, type ListTriggerFiringsResponse, type ListTriggerFiringsResponses, type ListTriggersData, type ListTriggersError, 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 LogoutData, type LogoutError, type LogoutErrors, type LogoutRequest, type LogoutResponse, type LogoutResponses, type McpConfig, type Message, type MessagesLimit, type Model, type ModelList, Models, NaturaliClient, type NaturaliClientOptions, type NodeExecution, type Offset, type Options, type OrchestrationIdFilter, type PreviewAssistantLinkData, type PreviewAssistantLinkError, type PreviewAssistantLinkErrors, type PreviewAssistantLinkResponse, type PreviewAssistantLinkResponses, type Project, type ProjectCreate, type ProjectId, type ProjectList, type ProjectUpdate, type ProjectUsage, Projects, type Provider, type ProviderCreate, type ProviderId, type ProviderList, type ProviderUpdate, Providers, type QueryKnowledgeCollectionData, type QueryKnowledgeCollectionError, type QueryKnowledgeCollectionErrors, type QueryKnowledgeCollectionResponse, type QueryKnowledgeCollectionResponses, type 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 ReingestKnowledgeDocumentData, type ReingestKnowledgeDocumentError, type ReingestKnowledgeDocumentErrors, type ReingestKnowledgeDocumentResponse, type ReingestKnowledgeDocumentResponses, type RequestSignInCodeData, type RequestSignInCodeError, type RequestSignInCodeErrors, type RequestSignInCodeResponse, type RequestSignInCodeResponses, type RequiredAction, type ResumeRunData, type ResumeRunError, type ResumeRunErrors, type ResumeRunResponse, type ResumeRunResponses, type RevokeAssistantGrantData, type RevokeAssistantGrantError, type RevokeAssistantGrantErrors, type RevokeAssistantGrantResponse, type RevokeAssistantGrantResponses, type RotateApiKeyData, type RotateApiKeyError, type RotateApiKeyErrors, type RotateApiKeyResponse, type RotateApiKeyResponses, type RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type RouteId, type Run, type RunCreate, type RunId, type RunList, type RunResume, type RunUsage, Runs, type Session, type SessionCreate, type SessionGenerate, type SessionGeneration, type SessionId, type SessionMessage, type SessionMessageCreate, type SessionMessageList, type SessionTranscriptMessage, Sessions, type SetAddressActionData, type SetAddressActionError, type SetAddressActionErrors, type SetAddressActionResponse, type SetAddressActionResponses, type SignInCodeRequest, type SignInCodeVerify, type StartRunData, type StartRunError, type StartRunErrors, type StartRunResponse, type StartRunResponses, type StateFilter, type StatusFilter, type StepRules, type Task, type TaskCreate, type TaskId, type TaskList, type TaskTransitionList, type TaskTransitionRecord, type TaskTransitionRequest, type TaskUpdate, Tasks, type Tool, type ToolChoice, type ToolContext, type ToolCreate, type ToolId, type ToolList, type ToolUpdate, Tools, type Trace, type TraceId, type TraceList, type TraceSteps, type TraceTreeNode, Traces, type TransitionTaskData, type TransitionTaskError, type TransitionTaskErrors, type TransitionTaskResponse, type TransitionTaskResponses, type Trigger, type TriggerCreate, type TriggerFire, type TriggerFiring, type TriggerFiringList, type TriggerFiringSource, type TriggerId, type TriggerList, type TriggerTargetType, type TriggerType, type TriggerUpdate, Triggers, type UpdateActorData, type UpdateActorError, type UpdateActorErrors, type UpdateActorResponse, type UpdateActorResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateBoardData, type UpdateBoardError, type UpdateBoardErrors, type UpdateBoardResponse, type UpdateBoardResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateChannelRouteData, type UpdateChannelRouteError, type UpdateChannelRouteErrors, type UpdateChannelRouteResponse, type UpdateChannelRouteResponses, type UpdateKnowledgeCollectionData, type UpdateKnowledgeCollectionError, type UpdateKnowledgeCollectionErrors, type UpdateKnowledgeCollectionResponse, type UpdateKnowledgeCollectionResponses, type UpdateKnowledgeConverterData, type UpdateKnowledgeConverterError, type UpdateKnowledgeConverterErrors, type UpdateKnowledgeConverterResponse, type UpdateKnowledgeConverterResponses, type UpdateProjectData, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateProviderData, type UpdateProviderError, type UpdateProviderErrors, type UpdateProviderResponse, type UpdateProviderResponses, type UpdateTaskData, type UpdateTaskError, type UpdateTaskErrors, type UpdateTaskResponse, type UpdateTaskResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolResponse, type UpdateToolResponses, type UpdateTriggerData, type UpdateTriggerError, type UpdateTriggerErrors, type UpdateTriggerResponse, type UpdateTriggerResponses, type UpdateWebhookData, type UpdateWebhookError, type UpdateWebhookErrors, type UpdateWebhookResponse, type UpdateWebhookResponses, type UsageGroup, type UsageTokens, type User, type VerifySignInCodeData, type VerifySignInCodeError, type VerifySignInCodeErrors, type VerifySignInCodeResponse, type VerifySignInCodeResponses, type Webhook, type WebhookCreate, type WebhookDelivery, type WebhookDeliveryList, type WebhookId, type WebhookList, type WebhookUpdate, type WebhookWithSecret, Webhooks, createClient, createConfig };
|
|
9651
|
+
export { type Acknowledgement, type Actor, type ActorCreate, type ActorId, type ActorList, type ActorUpdate, Actors, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageResponse, type AddSessionMessageResponses, type Address, type AddressActionSet, type AddressList, type Agent, type AgentCreate, type AgentId, type AgentList, type AgentUpdate, Agents, type ApiKeyCreate, type ApiKeyCreated, type ApiKeyId, type ApiKeyList, type ApiKeyRecord, type ApiKeyUpdate, ApiKeys, type AssigneeFilter, Assistant, type AssistantChannel, type AssistantGrant, type AssistantGrantList, type AssistantLinkPreview, type AssistantLinkRedeem, type AssistantScope, Auth, type AuthSession, type Board, type BoardCompletionRule, type BoardCreate, type BoardDispatch, type BoardId, type BoardIdFilter, type BoardList, type BoardOnEnter, type BoardState, type BoardTransition, type BoardUpdate, Boards, type CancelOrchestrationRunData, type CancelOrchestrationRunError, 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 CollectionId, type Conversation, type ConversationId, type ConversationList, type ConversationMessage, type ConversationMessageList, type ConverterId, type CreateActorData, type CreateActorError, type CreateActorErrors, type CreateActorResponse, type CreateActorResponses, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentResponse, type CreateAgentResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateBoardData, type CreateBoardError, type CreateBoardErrors, type CreateBoardResponse, type CreateBoardResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateChannelRouteData, type CreateChannelRouteError, type CreateChannelRouteErrors, type CreateChannelRouteResponse, type CreateChannelRouteResponses, type CreateConversationData, type CreateConversationError, type CreateConversationErrors, type CreateConversationResponse, type CreateConversationResponses, type CreateGenerationData, type CreateGenerationError, type CreateGenerationErrors, type CreateGenerationResponse, type CreateGenerationResponses, type CreateKnowledgeCollectionData, type CreateKnowledgeCollectionError, type CreateKnowledgeCollectionErrors, type CreateKnowledgeCollectionResponse, type CreateKnowledgeCollectionResponses, type CreateKnowledgeConverterData, type CreateKnowledgeConverterError, type CreateKnowledgeConverterErrors, type CreateKnowledgeConverterResponse, type CreateKnowledgeConverterResponses, type CreateKnowledgeDocumentData, type CreateKnowledgeDocumentError, type CreateKnowledgeDocumentErrors, type CreateKnowledgeDocumentResponse, type CreateKnowledgeDocumentResponses, type CreateOrchestrationData, type CreateOrchestrationError, type CreateOrchestrationErrors, type CreateOrchestrationRequest, type CreateOrchestrationResponse, type CreateOrchestrationResponses, type CreateProjectData, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateProviderData, type CreateProviderError, type CreateProviderErrors, type CreateProviderResponse, type CreateProviderResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionResponse, type CreateSessionResponses, type CreateTaskData, type CreateTaskError, type CreateTaskErrors, type CreateTaskResponse, type CreateTaskResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolResponse, type CreateToolResponses, type CreateTriggerData, type CreateTriggerError, type CreateTriggerErrors, type CreateTriggerResponse, type CreateTriggerResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type Cursor, 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 DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteBoardData, type DeleteBoardError, type DeleteBoardErrors, type DeleteBoardResponse, type DeleteBoardResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteChannelRouteData, type DeleteChannelRouteError, type DeleteChannelRouteErrors, type DeleteChannelRouteResponse, type DeleteChannelRouteResponses, type DeleteKnowledgeCollectionData, type DeleteKnowledgeCollectionError, type DeleteKnowledgeCollectionErrors, type DeleteKnowledgeCollectionResponse, type DeleteKnowledgeCollectionResponses, type DeleteKnowledgeConverterData, type DeleteKnowledgeConverterError, type DeleteKnowledgeConverterErrors, type DeleteKnowledgeConverterResponse, type DeleteKnowledgeConverterResponses, type DeleteKnowledgeDocumentData, type DeleteKnowledgeDocumentError, type DeleteKnowledgeDocumentErrors, type DeleteKnowledgeDocumentResponse, type DeleteKnowledgeDocumentResponses, type DeleteOrchestrationData, type DeleteOrchestrationError, type DeleteOrchestrationErrors, type DeleteOrchestrationResponse, type DeleteOrchestrationResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteProviderData, type DeleteProviderError, type DeleteProviderErrors, type DeleteProviderResponse, type DeleteProviderResponses, type DeleteTaskData, type DeleteTaskError, type DeleteTaskErrors, type DeleteTaskResponse, type DeleteTaskResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteTriggerData, type DeleteTriggerError, type DeleteTriggerErrors, type DeleteTriggerResponse, type DeleteTriggerResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeliveryId, type DiscordModes, type DocumentId, type ErrorResponse, type Event, type EventSubscription, type EventType, type ExternalIdFilter, type FireTriggerData, type FireTriggerError, type FireTriggerErrors, type FireTriggerResponse, type FireTriggerResponses, type FiringId, type Force, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, type GenerationCreate, type GenerationId, type GenerationList, type GenerationResult, type GenerationStatus, type GenerationUsage, Generations, type GetActorData, type GetActorError, type GetActorErrors, type GetActorResponse, type GetActorResponses, type GetAddressData, type GetAddressError, type GetAddressErrors, type GetAddressResponse, type GetAddressResponses, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetApiKeyData, type GetApiKeyError, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponses, type 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 GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetGenerationUsageData, type GetGenerationUsageError, type GetGenerationUsageErrors, type GetGenerationUsageResponse, type GetGenerationUsageResponses, type GetKnowledgeCollectionData, type GetKnowledgeCollectionError, type GetKnowledgeCollectionErrors, type GetKnowledgeCollectionResponse, type GetKnowledgeCollectionResponses, type GetKnowledgeConverterData, type GetKnowledgeConverterError, type GetKnowledgeConverterErrors, type GetKnowledgeConverterResponse, type GetKnowledgeConverterResponses, type GetKnowledgeDocumentData, type GetKnowledgeDocumentError, type GetKnowledgeDocumentErrors, type GetKnowledgeDocumentResponse, type GetKnowledgeDocumentResponses, type GetModelData, type GetModelError, type GetModelErrors, type GetModelResponse, type GetModelResponses, type GetOrchestrationData, type GetOrchestrationError, type GetOrchestrationErrors, type GetOrchestrationResponse, type GetOrchestrationResponses, type GetOrchestrationRunData, type GetOrchestrationRunError, type GetOrchestrationRunErrors, type GetOrchestrationRunResponse, type GetOrchestrationRunResponses, type GetProjectData, type GetProjectError, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetProjectUsageData, type GetProjectUsageError, type GetProjectUsageErrors, type GetProjectUsageResponse, type GetProjectUsageResponses, type GetProviderData, type GetProviderError, type GetProviderErrors, type GetProviderResponse, type GetProviderResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetTaskData, type GetTaskError, type GetTaskErrors, type GetTaskResponse, type GetTaskResponses, type GetToolData, type GetToolError, type GetToolErrors, type GetToolResponse, type GetToolResponses, type GetTraceData, type GetTraceError, type GetTraceErrors, type GetTraceResponse, type GetTraceResponses, type GetTraceStepsData, type GetTraceStepsError, type GetTraceStepsErrors, type GetTraceStepsResponse, type GetTraceStepsResponses, type GetTraceTreeData, type GetTraceTreeError, type GetTraceTreeErrors, type GetTraceTreeResponse, type GetTraceTreeResponses, type GetTriggerData, type GetTriggerError, type GetTriggerErrors, type GetTriggerFiringData, type GetTriggerFiringError, type GetTriggerFiringErrors, type GetTriggerFiringResponse, type GetTriggerFiringResponses, type GetTriggerResponse, type GetTriggerResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryError, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GrantId, type HttpExecute, type HumanInputRequest, type IdempotencyKey, type Identifier, Knowledge, type KnowledgeChunk, type KnowledgeCollection, type KnowledgeCollectionCreate, type KnowledgeCollectionList, type KnowledgeCollectionUpdate, type KnowledgeConverter, type KnowledgeConverterCreate, type KnowledgeConverterList, type KnowledgeConverterUpdate, type KnowledgeDocument, type KnowledgeDocumentCreate, type KnowledgeDocumentList, type KnowledgeQueryRequest, type KnowledgeQueryResult, type Limit, type 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 ListAgentGenerationsData, type ListAgentGenerationsError, type ListAgentGenerationsErrors, type ListAgentGenerationsResponse, type ListAgentGenerationsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListAssistantGrantsData, type ListAssistantGrantsError, type ListAssistantGrantsErrors, type ListAssistantGrantsResponse, type ListAssistantGrantsResponses, type ListBoardsData, type ListBoardsError, type ListBoardsErrors, type ListBoardsResponse, type ListBoardsResponses, type ListChannelConversationMessagesData, type ListChannelConversationMessagesError, type ListChannelConversationMessagesErrors, type ListChannelConversationMessagesResponse, type ListChannelConversationMessagesResponses, type ListChannelConversationsData, type ListChannelConversationsError, type ListChannelConversationsErrors, type ListChannelConversationsResponse, type ListChannelConversationsResponses, type 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 ListKnowledgeCollectionsData, type ListKnowledgeCollectionsError, type ListKnowledgeCollectionsErrors, type ListKnowledgeCollectionsResponse, type ListKnowledgeCollectionsResponses, type ListKnowledgeConvertersData, type ListKnowledgeConvertersError, type ListKnowledgeConvertersErrors, type ListKnowledgeConvertersResponse, type ListKnowledgeConvertersResponses, type ListKnowledgeDocumentsData, type ListKnowledgeDocumentsError, type ListKnowledgeDocumentsErrors, type ListKnowledgeDocumentsResponse, type ListKnowledgeDocumentsResponses, type ListModelsData, type ListModelsError, type ListModelsErrors, type ListModelsResponse, type ListModelsResponses, type ListOrchestrationRunsData, type ListOrchestrationRunsError, type ListOrchestrationRunsErrors, type ListOrchestrationRunsResponse, type ListOrchestrationRunsResponses, type ListOrchestrationsData, type ListOrchestrationsError, type ListOrchestrationsErrors, type ListOrchestrationsResponse, type ListOrchestrationsResponses, type ListProjectChannelRoutesData, type ListProjectChannelRoutesError, type ListProjectChannelRoutesErrors, type ListProjectChannelRoutesResponse, type ListProjectChannelRoutesResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListProvidersData, type ListProvidersError, type ListProvidersErrors, type ListProvidersResponse, type ListProvidersResponses, type ListSessionMessagesData, type ListSessionMessagesError, type ListSessionMessagesErrors, type ListSessionMessagesResponse, type ListSessionMessagesResponses, type ListTaskTransitionsData, type ListTaskTransitionsError, type ListTaskTransitionsErrors, type ListTaskTransitionsResponse, type ListTaskTransitionsResponses, type ListTasksData, type ListTasksError, type ListTasksErrors, type ListTasksResponse, type ListTasksResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTraceGenerationsData, type ListTraceGenerationsError, type ListTraceGenerationsErrors, type ListTraceGenerationsResponse, type ListTraceGenerationsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListTriggerFiringsData, type ListTriggerFiringsError, type ListTriggerFiringsErrors, type ListTriggerFiringsResponse, type ListTriggerFiringsResponses, type ListTriggersData, type ListTriggersError, 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 LogoutData, type LogoutError, type LogoutErrors, type LogoutRequest, type LogoutResponse, type LogoutResponses, type McpConfig, type Message, type MessagesLimit, type Model, type ModelList, Models, NaturaliClient, type NaturaliClientOptions, type NodeExecution, type Offset, type Options, type Orchestration, type OrchestrationEdge, type OrchestrationId, type OrchestrationList, type OrchestrationNode, type OrchestrationRun, type OrchestrationRunList, Orchestrations, type PreviewAssistantLinkData, type PreviewAssistantLinkError, type PreviewAssistantLinkErrors, type PreviewAssistantLinkResponse, type PreviewAssistantLinkResponses, type Project, type ProjectCreate, type ProjectId, type ProjectList, type ProjectUpdate, type ProjectUsage, Projects, type Provider, type ProviderCreate, type ProviderId, type ProviderList, type ProviderUpdate, Providers, type QueryKnowledgeCollectionData, type QueryKnowledgeCollectionError, type QueryKnowledgeCollectionErrors, type QueryKnowledgeCollectionResponse, type QueryKnowledgeCollectionResponses, type 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 ReingestKnowledgeDocumentData, type ReingestKnowledgeDocumentError, type ReingestKnowledgeDocumentErrors, type ReingestKnowledgeDocumentResponse, type ReingestKnowledgeDocumentResponses, type RequestSignInCodeData, type RequestSignInCodeError, type RequestSignInCodeErrors, type RequestSignInCodeResponse, type RequestSignInCodeResponses, type RequiredAction, type ResumeOrchestrationRunData, type ResumeOrchestrationRunError, 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 RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type RouteId, type RunId, type Session, type SessionCreate, type SessionGenerate, type SessionGeneration, type SessionId, type SessionMessage, type SessionMessageCreate, type SessionMessageList, type SessionTranscriptMessage, Sessions, type SetAddressActionData, type SetAddressActionError, type SetAddressActionErrors, type SetAddressActionResponse, type SetAddressActionResponses, type SignInCodeRequest, type SignInCodeVerify, type StartOrchestrationRunData, type StartOrchestrationRunError, type StartOrchestrationRunErrors, type StartOrchestrationRunResponse, type StartOrchestrationRunResponses, type StartRunRequest, type StateFilter, type StatusFilter, type StepRules, type SubmitHumanInputData, type SubmitHumanInputError, type SubmitHumanInputErrors, type SubmitHumanInputResponse, type SubmitHumanInputResponses, type TargetTypeFilter, type Task, type TaskCreate, type TaskId, type TaskList, type TaskTransitionList, type TaskTransitionRecord, type TaskTransitionRequest, type TaskUpdate, Tasks, type Tool, type ToolChoice, type ToolContext, type ToolCreate, type ToolId, type ToolList, type ToolUpdate, Tools, type Trace, type TraceId, type TraceList, type TraceSteps, type TraceTreeNode, Traces, type TransitionTaskData, type TransitionTaskError, type TransitionTaskErrors, type TransitionTaskResponse, type TransitionTaskResponses, type Trigger, type TriggerCreate, type TriggerFire, type TriggerFiring, type TriggerFiringList, type TriggerFiringSource, type TriggerId, type TriggerList, type TriggerTargetType, type TriggerType, type TriggerUpdate, Triggers, type UpdateActorData, type UpdateActorError, type UpdateActorErrors, type UpdateActorResponse, type UpdateActorResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateBoardData, type UpdateBoardError, type UpdateBoardErrors, type UpdateBoardResponse, type UpdateBoardResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateChannelRouteData, type UpdateChannelRouteError, type UpdateChannelRouteErrors, type UpdateChannelRouteResponse, type UpdateChannelRouteResponses, type UpdateKnowledgeCollectionData, type UpdateKnowledgeCollectionError, type UpdateKnowledgeCollectionErrors, type UpdateKnowledgeCollectionResponse, type UpdateKnowledgeCollectionResponses, type UpdateKnowledgeConverterData, type UpdateKnowledgeConverterError, type UpdateKnowledgeConverterErrors, type UpdateKnowledgeConverterResponse, type UpdateKnowledgeConverterResponses, type UpdateOrchestrationData, type UpdateOrchestrationError, type UpdateOrchestrationErrors, type UpdateOrchestrationRequest, type UpdateOrchestrationResponse, type UpdateOrchestrationResponses, type UpdateProjectData, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateProviderData, type UpdateProviderError, type UpdateProviderErrors, type UpdateProviderResponse, type UpdateProviderResponses, type UpdateTaskData, type UpdateTaskError, type UpdateTaskErrors, type UpdateTaskResponse, type UpdateTaskResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolResponse, type UpdateToolResponses, type UpdateTriggerData, type UpdateTriggerError, type UpdateTriggerErrors, type UpdateTriggerResponse, type UpdateTriggerResponses, type UpdateWebhookData, type UpdateWebhookError, type UpdateWebhookErrors, type UpdateWebhookResponse, type UpdateWebhookResponses, type UsageGroup, type UsageTokens, type User, type ValidateOrchestrationData, type ValidateOrchestrationError, type ValidateOrchestrationErrors, type ValidateOrchestrationRequest, type ValidateOrchestrationResponse, type ValidateOrchestrationResponses, type ValidationIssue, 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, createClient, createConfig };
|