@agent-os-sdk/client 0.4.4 → 0.4.6

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.
@@ -527,6 +527,101 @@ export interface paths {
527
527
  patch?: never;
528
528
  trace?: never;
529
529
  };
530
+ "/v1/api/agents/{id}/draft/graph": {
531
+ parameters: {
532
+ query?: never;
533
+ header?: never;
534
+ path?: never;
535
+ cookie?: never;
536
+ };
537
+ get?: never;
538
+ /**
539
+ * Updates the draft graph specification for an agent (autosave/resume).
540
+ * @description **IMPORTANT:** Draft is for UI autosave only. Publish does NOT read from draft.
541
+ * Publish continues to use `request.GraphSpec` as the canonical source.
542
+ *
543
+ * Requires `If-Match` header with ETag from previous GET/PUT.
544
+ *
545
+ * **ETag Format:**
546
+ * - Header: `"agentId:ticks"` (with quotes)
547
+ * - Body: `agentId:ticks` (no quotes)
548
+ *
549
+ * **Hints (in ProblemDetails.Extensions):**
550
+ * - 428: `include_if_match` - SDK should auto-fetch ETag
551
+ * - 412: `reload_and_retry` - Front should refetch and confirm
552
+ * - 400: `fix_payload` - Editor should show validation error
553
+ */
554
+ put: {
555
+ parameters: {
556
+ query?: never;
557
+ header?: never;
558
+ path: {
559
+ id: string;
560
+ };
561
+ cookie?: never;
562
+ };
563
+ requestBody?: {
564
+ content: {
565
+ "application/json": components["schemas"]["UpdateDraftGraphRequest"];
566
+ "text/json": components["schemas"]["UpdateDraftGraphRequest"];
567
+ "application/*+json": components["schemas"]["UpdateDraftGraphRequest"];
568
+ };
569
+ };
570
+ responses: {
571
+ /** @description OK */
572
+ 200: {
573
+ headers: {
574
+ [name: string]: unknown;
575
+ };
576
+ content: {
577
+ "application/json": components["schemas"]["AgentDraftResponse"];
578
+ };
579
+ };
580
+ /** @description Bad Request */
581
+ 400: {
582
+ headers: {
583
+ [name: string]: unknown;
584
+ };
585
+ content: {
586
+ "application/json": components["schemas"]["ProblemDetails"];
587
+ };
588
+ };
589
+ /** @description Not Found */
590
+ 404: {
591
+ headers: {
592
+ [name: string]: unknown;
593
+ };
594
+ content: {
595
+ "application/json": components["schemas"]["ProblemDetails"];
596
+ };
597
+ };
598
+ /** @description Precondition Failed */
599
+ 412: {
600
+ headers: {
601
+ [name: string]: unknown;
602
+ };
603
+ content: {
604
+ "application/json": components["schemas"]["ProblemDetails"];
605
+ };
606
+ };
607
+ /** @description Precondition Required */
608
+ 428: {
609
+ headers: {
610
+ [name: string]: unknown;
611
+ };
612
+ content: {
613
+ "application/json": components["schemas"]["ProblemDetails"];
614
+ };
615
+ };
616
+ };
617
+ };
618
+ post?: never;
619
+ delete?: never;
620
+ options?: never;
621
+ head?: never;
622
+ patch?: never;
623
+ trace?: never;
624
+ };
530
625
  "/v1/api/agents/{id}/graph": {
531
626
  parameters: {
532
627
  query?: never;
@@ -1956,6 +2051,353 @@ export interface paths {
1956
2051
  patch?: never;
1957
2052
  trace?: never;
1958
2053
  };
2054
+ "/v1/api/datasets": {
2055
+ parameters: {
2056
+ query?: never;
2057
+ header?: never;
2058
+ path?: never;
2059
+ cookie?: never;
2060
+ };
2061
+ /** Lists datasets in the workspace. */
2062
+ get: {
2063
+ parameters: {
2064
+ query?: {
2065
+ skip?: number;
2066
+ take?: number;
2067
+ };
2068
+ header?: never;
2069
+ path?: never;
2070
+ cookie?: never;
2071
+ };
2072
+ requestBody?: never;
2073
+ responses: {
2074
+ /** @description OK */
2075
+ 200: {
2076
+ headers: {
2077
+ [name: string]: unknown;
2078
+ };
2079
+ content: {
2080
+ "application/json": components["schemas"]["DatasetResponse"][];
2081
+ };
2082
+ };
2083
+ /** @description Bad Request */
2084
+ 400: {
2085
+ headers: {
2086
+ [name: string]: unknown;
2087
+ };
2088
+ content: {
2089
+ "application/json": components["schemas"]["ProblemDetails"];
2090
+ };
2091
+ };
2092
+ /** @description Unauthorized */
2093
+ 401: {
2094
+ headers: {
2095
+ [name: string]: unknown;
2096
+ };
2097
+ content: {
2098
+ "application/json": components["schemas"]["ProblemDetails"];
2099
+ };
2100
+ };
2101
+ };
2102
+ };
2103
+ put?: never;
2104
+ /** Creates a new evaluation dataset. */
2105
+ post: {
2106
+ parameters: {
2107
+ query?: never;
2108
+ header?: never;
2109
+ path?: never;
2110
+ cookie?: never;
2111
+ };
2112
+ requestBody?: {
2113
+ content: {
2114
+ "application/json": components["schemas"]["CreateDatasetRequest"];
2115
+ "text/json": components["schemas"]["CreateDatasetRequest"];
2116
+ "application/*+json": components["schemas"]["CreateDatasetRequest"];
2117
+ };
2118
+ };
2119
+ responses: {
2120
+ /** @description Created */
2121
+ 201: {
2122
+ headers: {
2123
+ [name: string]: unknown;
2124
+ };
2125
+ content: {
2126
+ "application/json": components["schemas"]["DatasetResponse"];
2127
+ };
2128
+ };
2129
+ /** @description Bad Request */
2130
+ 400: {
2131
+ headers: {
2132
+ [name: string]: unknown;
2133
+ };
2134
+ content: {
2135
+ "application/json": components["schemas"]["ProblemDetails"];
2136
+ };
2137
+ };
2138
+ /** @description Unauthorized */
2139
+ 401: {
2140
+ headers: {
2141
+ [name: string]: unknown;
2142
+ };
2143
+ content: {
2144
+ "application/json": components["schemas"]["ProblemDetails"];
2145
+ };
2146
+ };
2147
+ };
2148
+ };
2149
+ delete?: never;
2150
+ options?: never;
2151
+ head?: never;
2152
+ patch?: never;
2153
+ trace?: never;
2154
+ };
2155
+ "/v1/api/datasets/{id}": {
2156
+ parameters: {
2157
+ query?: never;
2158
+ header?: never;
2159
+ path?: never;
2160
+ cookie?: never;
2161
+ };
2162
+ /** Gets a specific dataset by ID. */
2163
+ get: {
2164
+ parameters: {
2165
+ query?: never;
2166
+ header?: never;
2167
+ path: {
2168
+ id: string;
2169
+ };
2170
+ cookie?: never;
2171
+ };
2172
+ requestBody?: never;
2173
+ responses: {
2174
+ /** @description OK */
2175
+ 200: {
2176
+ headers: {
2177
+ [name: string]: unknown;
2178
+ };
2179
+ content: {
2180
+ "application/json": components["schemas"]["DatasetResponse"];
2181
+ };
2182
+ };
2183
+ /** @description Unauthorized */
2184
+ 401: {
2185
+ headers: {
2186
+ [name: string]: unknown;
2187
+ };
2188
+ content: {
2189
+ "application/json": components["schemas"]["ProblemDetails"];
2190
+ };
2191
+ };
2192
+ /** @description Not Found */
2193
+ 404: {
2194
+ headers: {
2195
+ [name: string]: unknown;
2196
+ };
2197
+ content: {
2198
+ "application/json": components["schemas"]["ProblemDetails"];
2199
+ };
2200
+ };
2201
+ };
2202
+ };
2203
+ put?: never;
2204
+ post?: never;
2205
+ /** Soft deletes a dataset. */
2206
+ delete: {
2207
+ parameters: {
2208
+ query?: never;
2209
+ header?: never;
2210
+ path: {
2211
+ id: string;
2212
+ };
2213
+ cookie?: never;
2214
+ };
2215
+ requestBody?: never;
2216
+ responses: {
2217
+ /** @description No Content */
2218
+ 204: {
2219
+ headers: {
2220
+ [name: string]: unknown;
2221
+ };
2222
+ content?: never;
2223
+ };
2224
+ /** @description Not Found */
2225
+ 404: {
2226
+ headers: {
2227
+ [name: string]: unknown;
2228
+ };
2229
+ content: {
2230
+ "application/json": components["schemas"]["ProblemDetails"];
2231
+ };
2232
+ };
2233
+ };
2234
+ };
2235
+ options?: never;
2236
+ head?: never;
2237
+ /** Updates a dataset (Partial Update). */
2238
+ patch: {
2239
+ parameters: {
2240
+ query?: never;
2241
+ header?: never;
2242
+ path: {
2243
+ id: string;
2244
+ };
2245
+ cookie?: never;
2246
+ };
2247
+ requestBody?: {
2248
+ content: {
2249
+ "application/json": components["schemas"]["UpdateDatasetRequest"];
2250
+ "text/json": components["schemas"]["UpdateDatasetRequest"];
2251
+ "application/*+json": components["schemas"]["UpdateDatasetRequest"];
2252
+ };
2253
+ };
2254
+ responses: {
2255
+ /** @description OK */
2256
+ 200: {
2257
+ headers: {
2258
+ [name: string]: unknown;
2259
+ };
2260
+ content: {
2261
+ "application/json": components["schemas"]["DatasetResponse"];
2262
+ };
2263
+ };
2264
+ /** @description Not Found */
2265
+ 404: {
2266
+ headers: {
2267
+ [name: string]: unknown;
2268
+ };
2269
+ content: {
2270
+ "application/json": components["schemas"]["ProblemDetails"];
2271
+ };
2272
+ };
2273
+ };
2274
+ };
2275
+ trace?: never;
2276
+ };
2277
+ "/v1/api/datasets/{id}/examples": {
2278
+ parameters: {
2279
+ query?: never;
2280
+ header?: never;
2281
+ path?: never;
2282
+ cookie?: never;
2283
+ };
2284
+ /** Lists examples for a dataset. */
2285
+ get: {
2286
+ parameters: {
2287
+ query?: {
2288
+ skip?: number;
2289
+ take?: number;
2290
+ };
2291
+ header?: never;
2292
+ path: {
2293
+ id: string;
2294
+ };
2295
+ cookie?: never;
2296
+ };
2297
+ requestBody?: never;
2298
+ responses: {
2299
+ /** @description OK */
2300
+ 200: {
2301
+ headers: {
2302
+ [name: string]: unknown;
2303
+ };
2304
+ content: {
2305
+ "application/json": components["schemas"]["ExampleResponse"][];
2306
+ };
2307
+ };
2308
+ };
2309
+ };
2310
+ put?: never;
2311
+ /** Adds examples to a dataset (Batch). */
2312
+ post: {
2313
+ parameters: {
2314
+ query?: never;
2315
+ header?: never;
2316
+ path: {
2317
+ id: string;
2318
+ };
2319
+ cookie?: never;
2320
+ };
2321
+ requestBody?: {
2322
+ content: {
2323
+ "application/json": components["schemas"]["CreateExampleRequest"];
2324
+ "text/json": components["schemas"]["CreateExampleRequest"];
2325
+ "application/*+json": components["schemas"]["CreateExampleRequest"];
2326
+ };
2327
+ };
2328
+ responses: {
2329
+ /** @description Created */
2330
+ 201: {
2331
+ headers: {
2332
+ [name: string]: unknown;
2333
+ };
2334
+ content: {
2335
+ "application/json": components["schemas"]["ExampleResponse"][];
2336
+ };
2337
+ };
2338
+ /** @description Not Found */
2339
+ 404: {
2340
+ headers: {
2341
+ [name: string]: unknown;
2342
+ };
2343
+ content: {
2344
+ "application/json": components["schemas"]["ProblemDetails"];
2345
+ };
2346
+ };
2347
+ };
2348
+ };
2349
+ delete?: never;
2350
+ options?: never;
2351
+ head?: never;
2352
+ patch?: never;
2353
+ trace?: never;
2354
+ };
2355
+ "/v1/api/datasets/{id}/examples/{exampleId}": {
2356
+ parameters: {
2357
+ query?: never;
2358
+ header?: never;
2359
+ path?: never;
2360
+ cookie?: never;
2361
+ };
2362
+ get?: never;
2363
+ put?: never;
2364
+ post?: never;
2365
+ /** Deletes a specific example. */
2366
+ delete: {
2367
+ parameters: {
2368
+ query?: never;
2369
+ header?: never;
2370
+ path: {
2371
+ id: string;
2372
+ exampleId: string;
2373
+ };
2374
+ cookie?: never;
2375
+ };
2376
+ requestBody?: never;
2377
+ responses: {
2378
+ /** @description No Content */
2379
+ 204: {
2380
+ headers: {
2381
+ [name: string]: unknown;
2382
+ };
2383
+ content?: never;
2384
+ };
2385
+ /** @description Not Found */
2386
+ 404: {
2387
+ headers: {
2388
+ [name: string]: unknown;
2389
+ };
2390
+ content: {
2391
+ "application/json": components["schemas"]["ProblemDetails"];
2392
+ };
2393
+ };
2394
+ };
2395
+ };
2396
+ options?: never;
2397
+ head?: never;
2398
+ patch?: never;
2399
+ trace?: never;
2400
+ };
1959
2401
  "/v1/api/runs/dlq": {
1960
2402
  parameters: {
1961
2403
  query?: never;
@@ -6752,7 +7194,32 @@ export interface paths {
6752
7194
  path?: never;
6753
7195
  cookie?: never;
6754
7196
  };
6755
- get?: never;
7197
+ /** List files in a vector store. */
7198
+ get: {
7199
+ parameters: {
7200
+ query?: {
7201
+ skip?: number;
7202
+ take?: number;
7203
+ };
7204
+ header?: never;
7205
+ path: {
7206
+ vectorStoreId: string;
7207
+ };
7208
+ cookie?: never;
7209
+ };
7210
+ requestBody?: never;
7211
+ responses: {
7212
+ /** @description OK */
7213
+ 200: {
7214
+ headers: {
7215
+ [name: string]: unknown;
7216
+ };
7217
+ content: {
7218
+ "application/json": components["schemas"]["VectorStoreFileResponse"][];
7219
+ };
7220
+ };
7221
+ };
7222
+ };
6756
7223
  put?: never;
6757
7224
  /** Attach a file to a vector store for embedding. */
6758
7225
  post: {
@@ -6807,6 +7274,59 @@ export interface paths {
6807
7274
  patch?: never;
6808
7275
  trace?: never;
6809
7276
  };
7277
+ "/v1/api/vector-stores/{vectorStoreId}/files/{fileId}": {
7278
+ parameters: {
7279
+ query?: never;
7280
+ header?: never;
7281
+ path?: never;
7282
+ cookie?: never;
7283
+ };
7284
+ get?: never;
7285
+ put?: never;
7286
+ post?: never;
7287
+ /**
7288
+ * Detach a file from a vector store.
7289
+ * @description Removes the file association from the vector store.
7290
+ * **Important:** This does NOT delete the file from storage (S3), only checks out the link.
7291
+ * Embeddings related to this file are NOT immediately cleaned up (future work).
7292
+ */
7293
+ delete: {
7294
+ parameters: {
7295
+ query?: never;
7296
+ header?: never;
7297
+ path: {
7298
+ /** @description Vector Store ID */
7299
+ vectorStoreId: string;
7300
+ /** @description The StoredFile ID (not the join record ID) */
7301
+ fileId: string;
7302
+ };
7303
+ cookie?: never;
7304
+ };
7305
+ requestBody?: never;
7306
+ responses: {
7307
+ /** @description No Content */
7308
+ 204: {
7309
+ headers: {
7310
+ [name: string]: unknown;
7311
+ };
7312
+ content?: never;
7313
+ };
7314
+ /** @description Not Found */
7315
+ 404: {
7316
+ headers: {
7317
+ [name: string]: unknown;
7318
+ };
7319
+ content: {
7320
+ "application/json": components["schemas"]["ProblemDetails"];
7321
+ };
7322
+ };
7323
+ };
7324
+ };
7325
+ options?: never;
7326
+ head?: never;
7327
+ patch?: never;
7328
+ trace?: never;
7329
+ };
6810
7330
  "/v1/api/vector-stores/{vectorStoreId}/query": {
6811
7331
  parameters: {
6812
7332
  query?: never;
@@ -7189,6 +7709,17 @@ export interface components {
7189
7709
  /** Format: date-time */
7190
7710
  created_at?: string;
7191
7711
  };
7712
+ AgentDraftResponse: {
7713
+ /** Format: uuid */
7714
+ id?: string;
7715
+ name?: string | null;
7716
+ draft_graph_json?: string | null;
7717
+ /** Format: date-time */
7718
+ draft_updated_at?: string | null;
7719
+ /** Format: uuid */
7720
+ live_bundle_id?: string | null;
7721
+ e_tag?: string | null;
7722
+ };
7192
7723
  AgentExportAgent: {
7193
7724
  /** Format: uuid */
7194
7725
  id?: string;
@@ -7376,6 +7907,9 @@ export interface components {
7376
7907
  /** Format: uuid */
7377
7908
  agent_id?: string | null;
7378
7909
  };
7910
+ CreateExampleRequest: {
7911
+ examples?: components["schemas"]["ExampleDto"][] | null;
7912
+ };
7379
7913
  CreateExperimentRequest: {
7380
7914
  /** Format: uuid */
7381
7915
  dataset_id?: string;
@@ -7475,6 +8009,20 @@ export interface components {
7475
8009
  CreateWorkspaceRequest: {
7476
8010
  name?: string | null;
7477
8011
  };
8012
+ DatasetResponse: {
8013
+ /** Format: uuid */
8014
+ id?: string;
8015
+ name?: string | null;
8016
+ description?: string | null;
8017
+ /** Format: uuid */
8018
+ agentId?: string | null;
8019
+ /** Format: int32 */
8020
+ exampleCount?: number;
8021
+ /** Format: date-time */
8022
+ createdAt?: string;
8023
+ /** Format: date-time */
8024
+ updatedAt?: string;
8025
+ };
7478
8026
  DryRunRequest: {
7479
8027
  /** Format: uuid */
7480
8028
  agent_id?: string;
@@ -7497,6 +8045,22 @@ export interface components {
7497
8045
  [key: string]: unknown;
7498
8046
  } | null;
7499
8047
  };
8048
+ ExampleDto: {
8049
+ input?: unknown;
8050
+ expectedOutput?: unknown;
8051
+ metadata?: unknown;
8052
+ };
8053
+ ExampleResponse: {
8054
+ /** Format: uuid */
8055
+ id?: string;
8056
+ /** Format: uuid */
8057
+ datasetId?: string;
8058
+ input?: unknown;
8059
+ expectedOutput?: unknown;
8060
+ metadata?: unknown;
8061
+ /** Format: date-time */
8062
+ createdAt?: string;
8063
+ };
7500
8064
  FileConfirmResponse: {
7501
8065
  /** Format: uuid */
7502
8066
  file_id?: string;
@@ -7909,6 +8473,15 @@ export interface components {
7909
8473
  enabled?: boolean | null;
7910
8474
  input?: unknown;
7911
8475
  };
8476
+ UpdateDatasetRequest: {
8477
+ name?: string | null;
8478
+ description?: string | null;
8479
+ /** Format: uuid */
8480
+ agentId?: string | null;
8481
+ };
8482
+ UpdateDraftGraphRequest: {
8483
+ graphJson?: unknown;
8484
+ };
7912
8485
  UpdateMemberRequest: {
7913
8486
  /** Format: uuid */
7914
8487
  role_id?: string | null;