@upon-ai/sdk 0.1.0 → 0.1.2

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.
@@ -1933,4 +1933,1101 @@ export declare const metadata: {
1933
1933
  readonly $ref: "#/components/schemas/CallActionWorkspaceRequest";
1934
1934
  };
1935
1935
  };
1936
+ readonly listVoiceSimulationTemplates: {
1937
+ readonly path: "/api/v1/voice-simulations/templates";
1938
+ readonly method: "get";
1939
+ readonly summary: "List voice simulation templates";
1940
+ readonly parameters: readonly [{
1941
+ readonly name: "workspaceId";
1942
+ readonly in: "query";
1943
+ readonly required: true;
1944
+ readonly schema: {
1945
+ readonly type: "integer";
1946
+ };
1947
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1948
+ }];
1949
+ readonly bodyRequired: false;
1950
+ readonly bodyType: null;
1951
+ readonly bodySchema: null;
1952
+ };
1953
+ readonly getVoiceSimulationSettings: {
1954
+ readonly path: "/api/v1/voice-simulations/settings";
1955
+ readonly method: "get";
1956
+ readonly summary: "Get voice simulation access and prices";
1957
+ readonly parameters: readonly [{
1958
+ readonly name: "workspaceId";
1959
+ readonly in: "query";
1960
+ readonly required: true;
1961
+ readonly schema: {
1962
+ readonly type: "integer";
1963
+ };
1964
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1965
+ }];
1966
+ readonly bodyRequired: false;
1967
+ readonly bodyType: null;
1968
+ readonly bodySchema: null;
1969
+ };
1970
+ readonly listVoiceSimulationSourceAgents: {
1971
+ readonly path: "/api/v1/voice-simulations/agents";
1972
+ readonly method: "get";
1973
+ readonly summary: "List editable simulation source agents";
1974
+ readonly parameters: readonly [{
1975
+ readonly name: "workspaceId";
1976
+ readonly in: "query";
1977
+ readonly required: true;
1978
+ readonly schema: {
1979
+ readonly type: "integer";
1980
+ };
1981
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1982
+ }];
1983
+ readonly bodyRequired: false;
1984
+ readonly bodyType: null;
1985
+ readonly bodySchema: null;
1986
+ };
1987
+ readonly listVoiceSimulationProjects: {
1988
+ readonly path: "/api/v1/voice-simulations/projects";
1989
+ readonly method: "get";
1990
+ readonly summary: "List voice simulation projects";
1991
+ readonly parameters: readonly [{
1992
+ readonly name: "workspaceId";
1993
+ readonly in: "query";
1994
+ readonly required: true;
1995
+ readonly schema: {
1996
+ readonly type: "integer";
1997
+ };
1998
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
1999
+ }];
2000
+ readonly bodyRequired: false;
2001
+ readonly bodyType: null;
2002
+ readonly bodySchema: null;
2003
+ };
2004
+ readonly createVoiceSimulationProject: {
2005
+ readonly path: "/api/v1/voice-simulations/projects";
2006
+ readonly method: "post";
2007
+ readonly summary: "Create a voice simulation project";
2008
+ readonly parameters: readonly [{
2009
+ readonly name: "workspaceId";
2010
+ readonly in: "query";
2011
+ readonly required: true;
2012
+ readonly schema: {
2013
+ readonly type: "integer";
2014
+ };
2015
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2016
+ }];
2017
+ readonly bodyRequired: true;
2018
+ readonly bodyType: "application/json";
2019
+ readonly bodySchema: {
2020
+ readonly type: "object";
2021
+ readonly properties: {
2022
+ readonly name: {
2023
+ readonly type: "string";
2024
+ readonly maxLength: 160;
2025
+ };
2026
+ readonly description: {
2027
+ readonly type: "string";
2028
+ readonly maxLength: 5000;
2029
+ };
2030
+ readonly source_agent_id: {
2031
+ readonly type: "string";
2032
+ };
2033
+ readonly copy_project_id: {
2034
+ readonly type: "string";
2035
+ readonly format: "uuid";
2036
+ readonly description: "Optional existing project to duplicate within the same workspace.";
2037
+ };
2038
+ readonly automation_mode: {
2039
+ readonly type: "string";
2040
+ readonly enum: readonly ["automated", "manual"];
2041
+ readonly default: "automated";
2042
+ readonly description: "How the project runs. A copy keeps the original's mode unless this is set.";
2043
+ };
2044
+ };
2045
+ readonly required: readonly ["name", "source_agent_id"];
2046
+ };
2047
+ };
2048
+ readonly getVoiceSimulationProject: {
2049
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}";
2050
+ readonly method: "get";
2051
+ readonly summary: "Get a voice simulation project";
2052
+ readonly parameters: readonly [{
2053
+ readonly name: "workspaceId";
2054
+ readonly in: "query";
2055
+ readonly required: true;
2056
+ readonly schema: {
2057
+ readonly type: "integer";
2058
+ };
2059
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2060
+ }, {
2061
+ readonly in: "path";
2062
+ readonly name: "projectId";
2063
+ readonly required: true;
2064
+ readonly schema: {
2065
+ readonly type: "string";
2066
+ readonly format: "uuid";
2067
+ };
2068
+ }];
2069
+ readonly bodyRequired: false;
2070
+ readonly bodyType: null;
2071
+ readonly bodySchema: null;
2072
+ };
2073
+ readonly updateVoiceSimulationProject: {
2074
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}";
2075
+ readonly method: "patch";
2076
+ readonly summary: "Update a voice simulation project";
2077
+ readonly parameters: readonly [{
2078
+ readonly name: "workspaceId";
2079
+ readonly in: "query";
2080
+ readonly required: true;
2081
+ readonly schema: {
2082
+ readonly type: "integer";
2083
+ };
2084
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2085
+ }, {
2086
+ readonly in: "path";
2087
+ readonly name: "projectId";
2088
+ readonly required: true;
2089
+ readonly schema: {
2090
+ readonly type: "string";
2091
+ readonly format: "uuid";
2092
+ };
2093
+ }];
2094
+ readonly bodyRequired: true;
2095
+ readonly bodyType: "application/json";
2096
+ readonly bodySchema: {
2097
+ readonly type: "object";
2098
+ readonly properties: {
2099
+ readonly automation_mode: {
2100
+ readonly type: "string";
2101
+ readonly enum: readonly ["automated", "manual"];
2102
+ };
2103
+ };
2104
+ readonly required: readonly ["automation_mode"];
2105
+ };
2106
+ };
2107
+ readonly listVoiceSimulationScenarios: {
2108
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/scenarios";
2109
+ readonly method: "get";
2110
+ readonly summary: "List project scenarios";
2111
+ readonly parameters: readonly [{
2112
+ readonly name: "workspaceId";
2113
+ readonly in: "query";
2114
+ readonly required: true;
2115
+ readonly schema: {
2116
+ readonly type: "integer";
2117
+ };
2118
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2119
+ }, {
2120
+ readonly in: "path";
2121
+ readonly name: "projectId";
2122
+ readonly required: true;
2123
+ readonly schema: {
2124
+ readonly type: "string";
2125
+ readonly format: "uuid";
2126
+ };
2127
+ }];
2128
+ readonly bodyRequired: false;
2129
+ readonly bodyType: null;
2130
+ readonly bodySchema: null;
2131
+ };
2132
+ readonly createVoiceSimulationScenario: {
2133
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/scenarios";
2134
+ readonly method: "post";
2135
+ readonly summary: "Create a voice simulation scenario";
2136
+ readonly parameters: readonly [{
2137
+ readonly name: "workspaceId";
2138
+ readonly in: "query";
2139
+ readonly required: true;
2140
+ readonly schema: {
2141
+ readonly type: "integer";
2142
+ };
2143
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2144
+ }, {
2145
+ readonly in: "path";
2146
+ readonly name: "projectId";
2147
+ readonly required: true;
2148
+ readonly schema: {
2149
+ readonly type: "string";
2150
+ readonly format: "uuid";
2151
+ };
2152
+ }];
2153
+ readonly bodyRequired: true;
2154
+ readonly bodyType: "application/json";
2155
+ readonly bodySchema: {
2156
+ readonly type: "object";
2157
+ readonly properties: {
2158
+ readonly definition: {
2159
+ readonly $ref: "#/components/schemas/VoiceSimulationScenarioDefinition";
2160
+ };
2161
+ };
2162
+ readonly required: readonly ["definition"];
2163
+ };
2164
+ };
2165
+ readonly updateVoiceSimulationScenario: {
2166
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/scenarios/{scenarioId}";
2167
+ readonly method: "put";
2168
+ readonly summary: "Update a voice simulation scenario";
2169
+ readonly parameters: readonly [{
2170
+ readonly name: "workspaceId";
2171
+ readonly in: "query";
2172
+ readonly required: true;
2173
+ readonly schema: {
2174
+ readonly type: "integer";
2175
+ };
2176
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2177
+ }, {
2178
+ readonly in: "path";
2179
+ readonly name: "projectId";
2180
+ readonly required: true;
2181
+ readonly schema: {
2182
+ readonly type: "string";
2183
+ readonly format: "uuid";
2184
+ };
2185
+ }, {
2186
+ readonly in: "path";
2187
+ readonly name: "scenarioId";
2188
+ readonly required: true;
2189
+ readonly schema: {
2190
+ readonly type: "string";
2191
+ readonly format: "uuid";
2192
+ };
2193
+ }];
2194
+ readonly bodyRequired: true;
2195
+ readonly bodyType: "application/json";
2196
+ readonly bodySchema: {
2197
+ readonly type: "object";
2198
+ readonly properties: {
2199
+ readonly definition: {
2200
+ readonly $ref: "#/components/schemas/VoiceSimulationScenarioDefinition";
2201
+ };
2202
+ readonly revision: {
2203
+ readonly type: "integer";
2204
+ readonly minimum: 1;
2205
+ };
2206
+ };
2207
+ readonly required: readonly ["definition", "revision"];
2208
+ };
2209
+ };
2210
+ readonly generateVoiceSimulationScenarios: {
2211
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/generate-scenarios";
2212
+ readonly method: "post";
2213
+ readonly summary: "Generate scenarios with Agent IQ";
2214
+ readonly parameters: readonly [{
2215
+ readonly name: "workspaceId";
2216
+ readonly in: "query";
2217
+ readonly required: true;
2218
+ readonly schema: {
2219
+ readonly type: "integer";
2220
+ };
2221
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2222
+ }, {
2223
+ readonly in: "path";
2224
+ readonly name: "projectId";
2225
+ readonly required: true;
2226
+ readonly schema: {
2227
+ readonly type: "string";
2228
+ readonly format: "uuid";
2229
+ };
2230
+ }];
2231
+ readonly bodyRequired: true;
2232
+ readonly bodyType: "application/json";
2233
+ readonly bodySchema: {
2234
+ readonly type: "object";
2235
+ readonly properties: {
2236
+ readonly ai_model: {
2237
+ readonly type: "string";
2238
+ readonly description: "Allowed Agent IQ model key from workspace model_options.";
2239
+ };
2240
+ readonly instruction: {
2241
+ readonly type: "string";
2242
+ readonly maxLength: 12000;
2243
+ readonly description: "What to test. Omit or leave empty to let Agent IQ recommend scenarios.";
2244
+ };
2245
+ readonly count: {
2246
+ readonly type: "integer";
2247
+ readonly minimum: 1;
2248
+ readonly maximum: 10;
2249
+ };
2250
+ readonly use_call_history: {
2251
+ readonly type: "boolean";
2252
+ readonly default: true;
2253
+ readonly description: "Include recent real calls as evidence.";
2254
+ };
2255
+ };
2256
+ };
2257
+ };
2258
+ readonly estimateVoiceSimulationSession: {
2259
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/estimate";
2260
+ readonly method: "post";
2261
+ readonly summary: "Estimate a simulation session";
2262
+ readonly parameters: readonly [{
2263
+ readonly name: "workspaceId";
2264
+ readonly in: "query";
2265
+ readonly required: true;
2266
+ readonly schema: {
2267
+ readonly type: "integer";
2268
+ };
2269
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2270
+ }, {
2271
+ readonly in: "path";
2272
+ readonly name: "projectId";
2273
+ readonly required: true;
2274
+ readonly schema: {
2275
+ readonly type: "string";
2276
+ readonly format: "uuid";
2277
+ };
2278
+ }];
2279
+ readonly bodyRequired: true;
2280
+ readonly bodyType: "application/json";
2281
+ readonly bodySchema: {
2282
+ readonly type: "object";
2283
+ readonly properties: {
2284
+ readonly scenario_ids: {
2285
+ readonly type: "array";
2286
+ readonly items: {
2287
+ readonly type: "string";
2288
+ readonly format: "uuid";
2289
+ };
2290
+ readonly minItems: 1;
2291
+ readonly maxItems: 100;
2292
+ };
2293
+ readonly repetitions: {
2294
+ readonly type: "integer";
2295
+ readonly minimum: 1;
2296
+ readonly maximum: 10;
2297
+ };
2298
+ };
2299
+ readonly required: readonly ["scenario_ids"];
2300
+ };
2301
+ };
2302
+ readonly listVoiceSimulationSessions: {
2303
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/sessions";
2304
+ readonly method: "get";
2305
+ readonly summary: "List simulation sessions";
2306
+ readonly parameters: readonly [{
2307
+ readonly name: "workspaceId";
2308
+ readonly in: "query";
2309
+ readonly required: true;
2310
+ readonly schema: {
2311
+ readonly type: "integer";
2312
+ };
2313
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2314
+ }, {
2315
+ readonly in: "path";
2316
+ readonly name: "projectId";
2317
+ readonly required: true;
2318
+ readonly schema: {
2319
+ readonly type: "string";
2320
+ readonly format: "uuid";
2321
+ };
2322
+ }];
2323
+ readonly bodyRequired: false;
2324
+ readonly bodyType: null;
2325
+ readonly bodySchema: null;
2326
+ };
2327
+ readonly launchVoiceSimulationSession: {
2328
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/sessions";
2329
+ readonly method: "post";
2330
+ readonly summary: "Launch a voice simulation session";
2331
+ readonly parameters: readonly [{
2332
+ readonly name: "workspaceId";
2333
+ readonly in: "query";
2334
+ readonly required: true;
2335
+ readonly schema: {
2336
+ readonly type: "integer";
2337
+ };
2338
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2339
+ }, {
2340
+ readonly in: "path";
2341
+ readonly name: "projectId";
2342
+ readonly required: true;
2343
+ readonly schema: {
2344
+ readonly type: "string";
2345
+ readonly format: "uuid";
2346
+ };
2347
+ }];
2348
+ readonly bodyRequired: true;
2349
+ readonly bodyType: "application/json";
2350
+ readonly bodySchema: {
2351
+ readonly $ref: "#/components/schemas/VoiceSimulationLaunchInput";
2352
+ };
2353
+ };
2354
+ readonly getVoiceSimulationSession: {
2355
+ readonly path: "/api/v1/voice-simulations/sessions/{sessionId}";
2356
+ readonly method: "get";
2357
+ readonly summary: "Get a simulation session and report";
2358
+ readonly parameters: readonly [{
2359
+ readonly name: "workspaceId";
2360
+ readonly in: "query";
2361
+ readonly required: true;
2362
+ readonly schema: {
2363
+ readonly type: "integer";
2364
+ };
2365
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2366
+ }, {
2367
+ readonly in: "path";
2368
+ readonly name: "sessionId";
2369
+ readonly required: true;
2370
+ readonly schema: {
2371
+ readonly type: "string";
2372
+ readonly format: "uuid";
2373
+ };
2374
+ }];
2375
+ readonly bodyRequired: false;
2376
+ readonly bodyType: null;
2377
+ readonly bodySchema: null;
2378
+ };
2379
+ readonly cancelVoiceSimulationSession: {
2380
+ readonly path: "/api/v1/voice-simulations/sessions/{sessionId}/cancel";
2381
+ readonly method: "post";
2382
+ readonly summary: "Cancel a voice simulation session";
2383
+ readonly parameters: readonly [{
2384
+ readonly name: "workspaceId";
2385
+ readonly in: "query";
2386
+ readonly required: true;
2387
+ readonly schema: {
2388
+ readonly type: "integer";
2389
+ };
2390
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2391
+ }, {
2392
+ readonly in: "path";
2393
+ readonly name: "sessionId";
2394
+ readonly required: true;
2395
+ readonly schema: {
2396
+ readonly type: "string";
2397
+ readonly format: "uuid";
2398
+ };
2399
+ }];
2400
+ readonly bodyRequired: true;
2401
+ readonly bodyType: "application/json";
2402
+ readonly bodySchema: {
2403
+ readonly type: "object";
2404
+ readonly properties: {};
2405
+ };
2406
+ };
2407
+ readonly proposeVoiceSimulationImprovement: {
2408
+ readonly path: "/api/v1/voice-simulations/sessions/{sessionId}/improvements";
2409
+ readonly method: "post";
2410
+ readonly summary: "Propose a simulation improvement";
2411
+ readonly parameters: readonly [{
2412
+ readonly name: "workspaceId";
2413
+ readonly in: "query";
2414
+ readonly required: true;
2415
+ readonly schema: {
2416
+ readonly type: "integer";
2417
+ };
2418
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2419
+ }, {
2420
+ readonly in: "path";
2421
+ readonly name: "sessionId";
2422
+ readonly required: true;
2423
+ readonly schema: {
2424
+ readonly type: "string";
2425
+ readonly format: "uuid";
2426
+ };
2427
+ }];
2428
+ readonly bodyRequired: true;
2429
+ readonly bodyType: "application/json";
2430
+ readonly bodySchema: {
2431
+ readonly type: "object";
2432
+ readonly properties: {
2433
+ readonly change_scope: {
2434
+ readonly $ref: "#/components/schemas/VoiceSimulationChangeScope";
2435
+ };
2436
+ readonly ai_model: {
2437
+ readonly type: "string";
2438
+ readonly description: "Allowed Agent IQ model key from workspace model_options.";
2439
+ };
2440
+ };
2441
+ };
2442
+ };
2443
+ readonly applyVoiceSimulationImprovement: {
2444
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/improvements/{improvementId}/apply";
2445
+ readonly method: "post";
2446
+ readonly summary: "Apply an improvement to a simulation draft";
2447
+ readonly parameters: readonly [{
2448
+ readonly name: "workspaceId";
2449
+ readonly in: "query";
2450
+ readonly required: true;
2451
+ readonly schema: {
2452
+ readonly type: "integer";
2453
+ };
2454
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2455
+ }, {
2456
+ readonly in: "path";
2457
+ readonly name: "projectId";
2458
+ readonly required: true;
2459
+ readonly schema: {
2460
+ readonly type: "string";
2461
+ readonly format: "uuid";
2462
+ };
2463
+ }, {
2464
+ readonly in: "path";
2465
+ readonly name: "improvementId";
2466
+ readonly required: true;
2467
+ readonly schema: {
2468
+ readonly type: "string";
2469
+ readonly format: "uuid";
2470
+ };
2471
+ }];
2472
+ readonly bodyRequired: true;
2473
+ readonly bodyType: "application/json";
2474
+ readonly bodySchema: {
2475
+ readonly type: "object";
2476
+ readonly properties: {
2477
+ readonly confirm: {
2478
+ readonly type: "boolean";
2479
+ readonly const: true;
2480
+ };
2481
+ };
2482
+ readonly required: readonly ["confirm"];
2483
+ };
2484
+ };
2485
+ readonly getVoiceSimulationRecording: {
2486
+ readonly path: "/api/v1/voice-simulations/sessions/{sessionId}/runs/{runId}/recording";
2487
+ readonly method: "get";
2488
+ readonly summary: "Get a voice simulation recording";
2489
+ readonly parameters: readonly [{
2490
+ readonly name: "workspaceId";
2491
+ readonly in: "query";
2492
+ readonly required: true;
2493
+ readonly schema: {
2494
+ readonly type: "integer";
2495
+ };
2496
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2497
+ }, {
2498
+ readonly in: "path";
2499
+ readonly name: "sessionId";
2500
+ readonly required: true;
2501
+ readonly schema: {
2502
+ readonly type: "string";
2503
+ readonly format: "uuid";
2504
+ };
2505
+ }, {
2506
+ readonly name: "runId";
2507
+ readonly in: "path";
2508
+ readonly required: true;
2509
+ readonly schema: {
2510
+ readonly type: "string";
2511
+ readonly format: "uuid";
2512
+ };
2513
+ }];
2514
+ readonly bodyRequired: false;
2515
+ readonly bodyType: null;
2516
+ readonly bodySchema: null;
2517
+ };
2518
+ readonly archiveVoiceSimulationProject: {
2519
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/archive";
2520
+ readonly method: "post";
2521
+ readonly summary: "Archive a voice simulation project";
2522
+ readonly parameters: readonly [{
2523
+ readonly name: "workspaceId";
2524
+ readonly in: "query";
2525
+ readonly required: true;
2526
+ readonly schema: {
2527
+ readonly type: "integer";
2528
+ };
2529
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2530
+ }, {
2531
+ readonly in: "path";
2532
+ readonly name: "projectId";
2533
+ readonly required: true;
2534
+ readonly schema: {
2535
+ readonly type: "string";
2536
+ readonly format: "uuid";
2537
+ };
2538
+ }];
2539
+ readonly bodyRequired: false;
2540
+ readonly bodyType: null;
2541
+ readonly bodySchema: null;
2542
+ };
2543
+ readonly archiveVoiceSimulationScenario: {
2544
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/scenarios/{scenarioId}/archive";
2545
+ readonly method: "post";
2546
+ readonly summary: "Archive a voice simulation scenario";
2547
+ readonly parameters: readonly [{
2548
+ readonly name: "workspaceId";
2549
+ readonly in: "query";
2550
+ readonly required: true;
2551
+ readonly schema: {
2552
+ readonly type: "integer";
2553
+ };
2554
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2555
+ }, {
2556
+ readonly in: "path";
2557
+ readonly name: "projectId";
2558
+ readonly required: true;
2559
+ readonly schema: {
2560
+ readonly type: "string";
2561
+ readonly format: "uuid";
2562
+ };
2563
+ }, {
2564
+ readonly name: "scenarioId";
2565
+ readonly in: "path";
2566
+ readonly required: true;
2567
+ readonly schema: {
2568
+ readonly type: "string";
2569
+ readonly format: "uuid";
2570
+ };
2571
+ }];
2572
+ readonly bodyRequired: false;
2573
+ readonly bodyType: null;
2574
+ readonly bodySchema: null;
2575
+ };
2576
+ readonly listVoiceSimulationImprovements: {
2577
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/improvements";
2578
+ readonly method: "get";
2579
+ readonly summary: "List voice simulation improvement history";
2580
+ readonly parameters: readonly [{
2581
+ readonly name: "workspaceId";
2582
+ readonly in: "query";
2583
+ readonly required: true;
2584
+ readonly schema: {
2585
+ readonly type: "integer";
2586
+ };
2587
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2588
+ }, {
2589
+ readonly in: "path";
2590
+ readonly name: "projectId";
2591
+ readonly required: true;
2592
+ readonly schema: {
2593
+ readonly type: "string";
2594
+ readonly format: "uuid";
2595
+ };
2596
+ }];
2597
+ readonly bodyRequired: false;
2598
+ readonly bodyType: null;
2599
+ readonly bodySchema: null;
2600
+ };
2601
+ readonly listVoiceSimulationSpeechVoices: {
2602
+ readonly path: "/api/v1/voice-simulations/speech/voices";
2603
+ readonly method: "get";
2604
+ readonly summary: "List voices for IVR recordings";
2605
+ readonly parameters: readonly [{
2606
+ readonly name: "workspaceId";
2607
+ readonly in: "query";
2608
+ readonly required: true;
2609
+ readonly schema: {
2610
+ readonly type: "integer";
2611
+ };
2612
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2613
+ }, {
2614
+ readonly name: "provider";
2615
+ readonly in: "query";
2616
+ readonly required: true;
2617
+ readonly schema: {
2618
+ readonly type: "string";
2619
+ readonly enum: readonly ["cartesia", "elevenlabs"];
2620
+ };
2621
+ }];
2622
+ readonly bodyRequired: false;
2623
+ readonly bodyType: null;
2624
+ readonly bodySchema: null;
2625
+ };
2626
+ readonly generateVoiceSimulationIvrAudio: {
2627
+ readonly path: "/api/v1/voice-simulations/ivr/audio";
2628
+ readonly method: "post";
2629
+ readonly summary: "Generate recordings for IVR prompts";
2630
+ readonly parameters: readonly [{
2631
+ readonly name: "workspaceId";
2632
+ readonly in: "query";
2633
+ readonly required: true;
2634
+ readonly schema: {
2635
+ readonly type: "integer";
2636
+ };
2637
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2638
+ }];
2639
+ readonly bodyRequired: true;
2640
+ readonly bodyType: "application/json";
2641
+ readonly bodySchema: {
2642
+ readonly type: "object";
2643
+ readonly properties: {
2644
+ readonly ivr: {
2645
+ readonly $ref: "#/components/schemas/VoiceSimulationIvr";
2646
+ };
2647
+ readonly provider: {
2648
+ readonly type: "string";
2649
+ readonly enum: readonly ["cartesia", "elevenlabs"];
2650
+ };
2651
+ readonly voice_id: {
2652
+ readonly type: "string";
2653
+ };
2654
+ };
2655
+ readonly required: readonly ["ivr", "provider"];
2656
+ };
2657
+ };
2658
+ readonly getVoiceSimulationIvrAudio: {
2659
+ readonly path: "/api/v1/voice-simulations/audio/{audioId}";
2660
+ readonly method: "get";
2661
+ readonly summary: "Download an IVR recording";
2662
+ readonly parameters: readonly [{
2663
+ readonly name: "workspaceId";
2664
+ readonly in: "query";
2665
+ readonly required: true;
2666
+ readonly schema: {
2667
+ readonly type: "integer";
2668
+ };
2669
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2670
+ }, {
2671
+ readonly name: "audioId";
2672
+ readonly in: "path";
2673
+ readonly required: true;
2674
+ readonly schema: {
2675
+ readonly type: "string";
2676
+ readonly format: "uuid";
2677
+ };
2678
+ }];
2679
+ readonly bodyRequired: false;
2680
+ readonly bodyType: null;
2681
+ readonly bodySchema: null;
2682
+ };
2683
+ readonly listVoiceSimulationImprovementRuns: {
2684
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/improvement-runs";
2685
+ readonly method: "get";
2686
+ readonly summary: "List self-improving runs";
2687
+ readonly parameters: readonly [{
2688
+ readonly name: "workspaceId";
2689
+ readonly in: "query";
2690
+ readonly required: true;
2691
+ readonly schema: {
2692
+ readonly type: "integer";
2693
+ };
2694
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2695
+ }, {
2696
+ readonly name: "projectId";
2697
+ readonly in: "path";
2698
+ readonly required: true;
2699
+ readonly schema: {
2700
+ readonly type: "string";
2701
+ readonly format: "uuid";
2702
+ };
2703
+ }];
2704
+ readonly bodyRequired: false;
2705
+ readonly bodyType: null;
2706
+ readonly bodySchema: null;
2707
+ };
2708
+ readonly createVoiceSimulationImprovementRun: {
2709
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/improvement-runs";
2710
+ readonly method: "post";
2711
+ readonly summary: "Create a self-improving run";
2712
+ readonly parameters: readonly [{
2713
+ readonly name: "workspaceId";
2714
+ readonly in: "query";
2715
+ readonly required: true;
2716
+ readonly schema: {
2717
+ readonly type: "integer";
2718
+ };
2719
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2720
+ }, {
2721
+ readonly name: "projectId";
2722
+ readonly in: "path";
2723
+ readonly required: true;
2724
+ readonly schema: {
2725
+ readonly type: "string";
2726
+ readonly format: "uuid";
2727
+ };
2728
+ }];
2729
+ readonly bodyRequired: true;
2730
+ readonly bodyType: "application/json";
2731
+ readonly bodySchema: {
2732
+ readonly type: "object";
2733
+ readonly properties: {
2734
+ readonly max_calls: {
2735
+ readonly type: "integer";
2736
+ readonly minimum: 1;
2737
+ readonly maximum: 100;
2738
+ readonly description: "Total simulation runs allowed, including prior reserved calls; workspace cap may be lower.";
2739
+ };
2740
+ readonly max_ai: {
2741
+ readonly type: "integer";
2742
+ readonly minimum: 1;
2743
+ readonly maximum: 200;
2744
+ readonly description: "Total logical Agent IQ interactions, including execution planning, scenario generation, scoring and draft improvements. Multi-scenario execution plans consume one interaction each; single-scenario runs skip planning. Model fallback belongs to the same interaction. Workspace cap may be lower.";
2745
+ };
2746
+ readonly max_surcharge: {
2747
+ readonly type: "number";
2748
+ readonly minimum: 0;
2749
+ readonly description: "Maximum cumulative per-run surcharges. Voice usage, Agent IQ pricing and monthly access remain separate.";
2750
+ };
2751
+ readonly scenario_ids: {
2752
+ readonly type: "array";
2753
+ readonly items: {
2754
+ readonly type: "string";
2755
+ readonly format: "uuid";
2756
+ };
2757
+ readonly maxItems: 100;
2758
+ };
2759
+ readonly ai_model: {
2760
+ readonly type: "string";
2761
+ };
2762
+ };
2763
+ };
2764
+ };
2765
+ readonly getVoiceSimulationImprovementRun: {
2766
+ readonly path: "/api/v1/voice-simulations/improvement-runs/{id}";
2767
+ readonly method: "get";
2768
+ readonly summary: "Review a self-improving run";
2769
+ readonly parameters: readonly [{
2770
+ readonly name: "workspaceId";
2771
+ readonly in: "query";
2772
+ readonly required: true;
2773
+ readonly schema: {
2774
+ readonly type: "integer";
2775
+ };
2776
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2777
+ }, {
2778
+ readonly name: "id";
2779
+ readonly in: "path";
2780
+ readonly required: true;
2781
+ readonly schema: {
2782
+ readonly type: "string";
2783
+ readonly format: "uuid";
2784
+ };
2785
+ }];
2786
+ readonly bodyRequired: false;
2787
+ readonly bodyType: null;
2788
+ readonly bodySchema: null;
2789
+ };
2790
+ readonly updateVoiceSimulationImprovementRun: {
2791
+ readonly path: "/api/v1/voice-simulations/improvement-runs/{id}";
2792
+ readonly method: "patch";
2793
+ readonly summary: "Choose scenarios before improvement approval";
2794
+ readonly parameters: readonly [{
2795
+ readonly name: "workspaceId";
2796
+ readonly in: "query";
2797
+ readonly required: true;
2798
+ readonly schema: {
2799
+ readonly type: "integer";
2800
+ };
2801
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2802
+ }, {
2803
+ readonly name: "id";
2804
+ readonly in: "path";
2805
+ readonly required: true;
2806
+ readonly schema: {
2807
+ readonly type: "string";
2808
+ readonly format: "uuid";
2809
+ };
2810
+ }];
2811
+ readonly bodyRequired: true;
2812
+ readonly bodyType: "application/json";
2813
+ readonly bodySchema: {
2814
+ readonly type: "object";
2815
+ readonly required: readonly ["scenario_ids"];
2816
+ readonly properties: {
2817
+ readonly scenario_ids: {
2818
+ readonly type: "array";
2819
+ readonly maxItems: 100;
2820
+ readonly items: {
2821
+ readonly type: "string";
2822
+ readonly format: "uuid";
2823
+ };
2824
+ };
2825
+ };
2826
+ };
2827
+ };
2828
+ readonly generateVoiceSimulationImprovementScenarios: {
2829
+ readonly path: "/api/v1/voice-simulations/improvement-runs/{id}/generate";
2830
+ readonly method: "post";
2831
+ readonly summary: "Generate and save an improvement test suite";
2832
+ readonly parameters: readonly [{
2833
+ readonly name: "workspaceId";
2834
+ readonly in: "query";
2835
+ readonly required: true;
2836
+ readonly schema: {
2837
+ readonly type: "integer";
2838
+ };
2839
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2840
+ }, {
2841
+ readonly name: "id";
2842
+ readonly in: "path";
2843
+ readonly required: true;
2844
+ readonly schema: {
2845
+ readonly type: "string";
2846
+ readonly format: "uuid";
2847
+ };
2848
+ }];
2849
+ readonly bodyRequired: true;
2850
+ readonly bodyType: "application/json";
2851
+ readonly bodySchema: {
2852
+ readonly type: "object";
2853
+ readonly properties: {
2854
+ readonly instruction: {
2855
+ readonly type: "string";
2856
+ readonly maxLength: 12000;
2857
+ };
2858
+ readonly count: {
2859
+ readonly type: "integer";
2860
+ readonly minimum: 1;
2861
+ readonly maximum: 10;
2862
+ };
2863
+ };
2864
+ readonly required: readonly ["instruction"];
2865
+ };
2866
+ };
2867
+ readonly approveVoiceSimulationImprovementRun: {
2868
+ readonly path: "/api/v1/voice-simulations/improvement-runs/{id}/approve";
2869
+ readonly method: "post";
2870
+ readonly summary: "Approve or renew an improvement budget";
2871
+ readonly parameters: readonly [{
2872
+ readonly name: "workspaceId";
2873
+ readonly in: "query";
2874
+ readonly required: true;
2875
+ readonly schema: {
2876
+ readonly type: "integer";
2877
+ };
2878
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2879
+ }, {
2880
+ readonly name: "id";
2881
+ readonly in: "path";
2882
+ readonly required: true;
2883
+ readonly schema: {
2884
+ readonly type: "string";
2885
+ readonly format: "uuid";
2886
+ };
2887
+ }];
2888
+ readonly bodyRequired: true;
2889
+ readonly bodyType: "application/json";
2890
+ readonly bodySchema: {
2891
+ readonly type: "object";
2892
+ readonly properties: {
2893
+ readonly change_scope: {
2894
+ readonly $ref: "#/components/schemas/VoiceSimulationChangeScope";
2895
+ };
2896
+ readonly ai_model: {
2897
+ readonly type: "string";
2898
+ readonly description: "Allowed Agent IQ model key for future improvement steps (provider/model). Saved atomically with approval. Omit to retain the run model, or resolve the workspace default for an older run without a model. May be changed when approving a draft or renewing a paused run; scenario scoring and counterpart models are unchanged.";
2899
+ };
2900
+ readonly max_calls: {
2901
+ readonly type: "integer";
2902
+ readonly minimum: 1;
2903
+ readonly maximum: 100;
2904
+ readonly description: "Total simulation runs allowed, including prior reserved calls; workspace cap may be lower.";
2905
+ };
2906
+ readonly max_ai: {
2907
+ readonly type: "integer";
2908
+ readonly minimum: 1;
2909
+ readonly maximum: 200;
2910
+ readonly description: "Total logical Agent IQ interactions, including execution planning, scenario generation, scoring and draft improvements. Multi-scenario execution plans consume one interaction each; single-scenario runs skip planning. Model fallback belongs to the same interaction. Workspace cap may be lower.";
2911
+ };
2912
+ readonly max_surcharge: {
2913
+ readonly type: "number";
2914
+ readonly minimum: 0;
2915
+ readonly description: "Maximum cumulative per-run surcharges. Voice usage, Agent IQ pricing and monthly access remain separate.";
2916
+ };
2917
+ readonly confirm: {
2918
+ readonly type: "boolean";
2919
+ readonly const: true;
2920
+ };
2921
+ readonly review_fingerprint: {
2922
+ readonly type: "string";
2923
+ };
2924
+ };
2925
+ readonly required: readonly ["confirm", "review_fingerprint", "max_calls", "max_ai", "max_surcharge"];
2926
+ };
2927
+ };
2928
+ readonly stopVoiceSimulationImprovementRun: {
2929
+ readonly path: "/api/v1/voice-simulations/improvement-runs/{id}/stop";
2930
+ readonly method: "post";
2931
+ readonly summary: "Stop a self-improving run";
2932
+ readonly parameters: readonly [{
2933
+ readonly name: "workspaceId";
2934
+ readonly in: "query";
2935
+ readonly required: true;
2936
+ readonly schema: {
2937
+ readonly type: "integer";
2938
+ };
2939
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2940
+ }, {
2941
+ readonly name: "id";
2942
+ readonly in: "path";
2943
+ readonly required: true;
2944
+ readonly schema: {
2945
+ readonly type: "string";
2946
+ readonly format: "uuid";
2947
+ };
2948
+ }];
2949
+ readonly bodyRequired: true;
2950
+ readonly bodyType: "application/json";
2951
+ readonly bodySchema: {
2952
+ readonly type: "object";
2953
+ readonly properties: {};
2954
+ };
2955
+ };
2956
+ readonly getVoiceSimulationSchedule: {
2957
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/improvement-schedule";
2958
+ readonly method: "get";
2959
+ readonly summary: "Get recurring improvement policy";
2960
+ readonly parameters: readonly [{
2961
+ readonly name: "workspaceId";
2962
+ readonly in: "query";
2963
+ readonly required: true;
2964
+ readonly schema: {
2965
+ readonly type: "integer";
2966
+ };
2967
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2968
+ }, {
2969
+ readonly name: "projectId";
2970
+ readonly in: "path";
2971
+ readonly required: true;
2972
+ readonly schema: {
2973
+ readonly type: "string";
2974
+ readonly format: "uuid";
2975
+ };
2976
+ }];
2977
+ readonly bodyRequired: false;
2978
+ readonly bodyType: null;
2979
+ readonly bodySchema: null;
2980
+ };
2981
+ readonly saveVoiceSimulationSchedule: {
2982
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/improvement-schedule";
2983
+ readonly method: "put";
2984
+ readonly summary: "Approve or renew recurring improvement cycles";
2985
+ readonly parameters: readonly [{
2986
+ readonly name: "workspaceId";
2987
+ readonly in: "query";
2988
+ readonly required: true;
2989
+ readonly schema: {
2990
+ readonly type: "integer";
2991
+ };
2992
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
2993
+ }, {
2994
+ readonly name: "projectId";
2995
+ readonly in: "path";
2996
+ readonly required: true;
2997
+ readonly schema: {
2998
+ readonly type: "string";
2999
+ readonly format: "uuid";
3000
+ };
3001
+ }];
3002
+ readonly bodyRequired: true;
3003
+ readonly bodyType: "application/json";
3004
+ readonly bodySchema: {
3005
+ readonly $ref: "#/components/schemas/VoiceSimulationScheduleApproval";
3006
+ };
3007
+ };
3008
+ readonly pauseVoiceSimulationSchedule: {
3009
+ readonly path: "/api/v1/voice-simulations/projects/{projectId}/improvement-schedule/pause";
3010
+ readonly method: "post";
3011
+ readonly summary: "Pause future improvement cycles";
3012
+ readonly parameters: readonly [{
3013
+ readonly name: "workspaceId";
3014
+ readonly in: "query";
3015
+ readonly required: true;
3016
+ readonly schema: {
3017
+ readonly type: "integer";
3018
+ };
3019
+ readonly description: "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token.";
3020
+ }, {
3021
+ readonly name: "projectId";
3022
+ readonly in: "path";
3023
+ readonly required: true;
3024
+ readonly schema: {
3025
+ readonly type: "string";
3026
+ readonly format: "uuid";
3027
+ };
3028
+ }];
3029
+ readonly bodyRequired: false;
3030
+ readonly bodyType: null;
3031
+ readonly bodySchema: null;
3032
+ };
1936
3033
  };