@upon-ai/sdk 0.1.1 → 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.
package/dist/metadata.js CHANGED
@@ -2138,5 +2138,1244 @@ export const metadata = {
2138
2138
  "bodySchema": {
2139
2139
  "$ref": "#/components/schemas/CallActionWorkspaceRequest"
2140
2140
  }
2141
+ },
2142
+ "listVoiceSimulationTemplates": {
2143
+ "path": "/api/v1/voice-simulations/templates",
2144
+ "method": "get",
2145
+ "summary": "List voice simulation templates",
2146
+ "parameters": [
2147
+ {
2148
+ "name": "workspaceId",
2149
+ "in": "query",
2150
+ "required": true,
2151
+ "schema": {
2152
+ "type": "integer"
2153
+ },
2154
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2155
+ }
2156
+ ],
2157
+ "bodyRequired": false,
2158
+ "bodyType": null,
2159
+ "bodySchema": null
2160
+ },
2161
+ "getVoiceSimulationSettings": {
2162
+ "path": "/api/v1/voice-simulations/settings",
2163
+ "method": "get",
2164
+ "summary": "Get voice simulation access and prices",
2165
+ "parameters": [
2166
+ {
2167
+ "name": "workspaceId",
2168
+ "in": "query",
2169
+ "required": true,
2170
+ "schema": {
2171
+ "type": "integer"
2172
+ },
2173
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2174
+ }
2175
+ ],
2176
+ "bodyRequired": false,
2177
+ "bodyType": null,
2178
+ "bodySchema": null
2179
+ },
2180
+ "listVoiceSimulationSourceAgents": {
2181
+ "path": "/api/v1/voice-simulations/agents",
2182
+ "method": "get",
2183
+ "summary": "List editable simulation source agents",
2184
+ "parameters": [
2185
+ {
2186
+ "name": "workspaceId",
2187
+ "in": "query",
2188
+ "required": true,
2189
+ "schema": {
2190
+ "type": "integer"
2191
+ },
2192
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2193
+ }
2194
+ ],
2195
+ "bodyRequired": false,
2196
+ "bodyType": null,
2197
+ "bodySchema": null
2198
+ },
2199
+ "listVoiceSimulationProjects": {
2200
+ "path": "/api/v1/voice-simulations/projects",
2201
+ "method": "get",
2202
+ "summary": "List voice simulation projects",
2203
+ "parameters": [
2204
+ {
2205
+ "name": "workspaceId",
2206
+ "in": "query",
2207
+ "required": true,
2208
+ "schema": {
2209
+ "type": "integer"
2210
+ },
2211
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2212
+ }
2213
+ ],
2214
+ "bodyRequired": false,
2215
+ "bodyType": null,
2216
+ "bodySchema": null
2217
+ },
2218
+ "createVoiceSimulationProject": {
2219
+ "path": "/api/v1/voice-simulations/projects",
2220
+ "method": "post",
2221
+ "summary": "Create a voice simulation project",
2222
+ "parameters": [
2223
+ {
2224
+ "name": "workspaceId",
2225
+ "in": "query",
2226
+ "required": true,
2227
+ "schema": {
2228
+ "type": "integer"
2229
+ },
2230
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2231
+ }
2232
+ ],
2233
+ "bodyRequired": true,
2234
+ "bodyType": "application/json",
2235
+ "bodySchema": {
2236
+ "type": "object",
2237
+ "properties": {
2238
+ "name": {
2239
+ "type": "string",
2240
+ "maxLength": 160
2241
+ },
2242
+ "description": {
2243
+ "type": "string",
2244
+ "maxLength": 5000
2245
+ },
2246
+ "source_agent_id": {
2247
+ "type": "string"
2248
+ },
2249
+ "copy_project_id": {
2250
+ "type": "string",
2251
+ "format": "uuid",
2252
+ "description": "Optional existing project to duplicate within the same workspace."
2253
+ },
2254
+ "automation_mode": {
2255
+ "type": "string",
2256
+ "enum": [
2257
+ "automated",
2258
+ "manual"
2259
+ ],
2260
+ "default": "automated",
2261
+ "description": "How the project runs. A copy keeps the original's mode unless this is set."
2262
+ }
2263
+ },
2264
+ "required": [
2265
+ "name",
2266
+ "source_agent_id"
2267
+ ]
2268
+ }
2269
+ },
2270
+ "getVoiceSimulationProject": {
2271
+ "path": "/api/v1/voice-simulations/projects/{projectId}",
2272
+ "method": "get",
2273
+ "summary": "Get a voice simulation project",
2274
+ "parameters": [
2275
+ {
2276
+ "name": "workspaceId",
2277
+ "in": "query",
2278
+ "required": true,
2279
+ "schema": {
2280
+ "type": "integer"
2281
+ },
2282
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2283
+ },
2284
+ {
2285
+ "in": "path",
2286
+ "name": "projectId",
2287
+ "required": true,
2288
+ "schema": {
2289
+ "type": "string",
2290
+ "format": "uuid"
2291
+ }
2292
+ }
2293
+ ],
2294
+ "bodyRequired": false,
2295
+ "bodyType": null,
2296
+ "bodySchema": null
2297
+ },
2298
+ "updateVoiceSimulationProject": {
2299
+ "path": "/api/v1/voice-simulations/projects/{projectId}",
2300
+ "method": "patch",
2301
+ "summary": "Update a voice simulation project",
2302
+ "parameters": [
2303
+ {
2304
+ "name": "workspaceId",
2305
+ "in": "query",
2306
+ "required": true,
2307
+ "schema": {
2308
+ "type": "integer"
2309
+ },
2310
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2311
+ },
2312
+ {
2313
+ "in": "path",
2314
+ "name": "projectId",
2315
+ "required": true,
2316
+ "schema": {
2317
+ "type": "string",
2318
+ "format": "uuid"
2319
+ }
2320
+ }
2321
+ ],
2322
+ "bodyRequired": true,
2323
+ "bodyType": "application/json",
2324
+ "bodySchema": {
2325
+ "type": "object",
2326
+ "properties": {
2327
+ "automation_mode": {
2328
+ "type": "string",
2329
+ "enum": [
2330
+ "automated",
2331
+ "manual"
2332
+ ]
2333
+ }
2334
+ },
2335
+ "required": [
2336
+ "automation_mode"
2337
+ ]
2338
+ }
2339
+ },
2340
+ "listVoiceSimulationScenarios": {
2341
+ "path": "/api/v1/voice-simulations/projects/{projectId}/scenarios",
2342
+ "method": "get",
2343
+ "summary": "List project scenarios",
2344
+ "parameters": [
2345
+ {
2346
+ "name": "workspaceId",
2347
+ "in": "query",
2348
+ "required": true,
2349
+ "schema": {
2350
+ "type": "integer"
2351
+ },
2352
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2353
+ },
2354
+ {
2355
+ "in": "path",
2356
+ "name": "projectId",
2357
+ "required": true,
2358
+ "schema": {
2359
+ "type": "string",
2360
+ "format": "uuid"
2361
+ }
2362
+ }
2363
+ ],
2364
+ "bodyRequired": false,
2365
+ "bodyType": null,
2366
+ "bodySchema": null
2367
+ },
2368
+ "createVoiceSimulationScenario": {
2369
+ "path": "/api/v1/voice-simulations/projects/{projectId}/scenarios",
2370
+ "method": "post",
2371
+ "summary": "Create a voice simulation scenario",
2372
+ "parameters": [
2373
+ {
2374
+ "name": "workspaceId",
2375
+ "in": "query",
2376
+ "required": true,
2377
+ "schema": {
2378
+ "type": "integer"
2379
+ },
2380
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2381
+ },
2382
+ {
2383
+ "in": "path",
2384
+ "name": "projectId",
2385
+ "required": true,
2386
+ "schema": {
2387
+ "type": "string",
2388
+ "format": "uuid"
2389
+ }
2390
+ }
2391
+ ],
2392
+ "bodyRequired": true,
2393
+ "bodyType": "application/json",
2394
+ "bodySchema": {
2395
+ "type": "object",
2396
+ "properties": {
2397
+ "definition": {
2398
+ "$ref": "#/components/schemas/VoiceSimulationScenarioDefinition"
2399
+ }
2400
+ },
2401
+ "required": [
2402
+ "definition"
2403
+ ]
2404
+ }
2405
+ },
2406
+ "updateVoiceSimulationScenario": {
2407
+ "path": "/api/v1/voice-simulations/projects/{projectId}/scenarios/{scenarioId}",
2408
+ "method": "put",
2409
+ "summary": "Update a voice simulation scenario",
2410
+ "parameters": [
2411
+ {
2412
+ "name": "workspaceId",
2413
+ "in": "query",
2414
+ "required": true,
2415
+ "schema": {
2416
+ "type": "integer"
2417
+ },
2418
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2419
+ },
2420
+ {
2421
+ "in": "path",
2422
+ "name": "projectId",
2423
+ "required": true,
2424
+ "schema": {
2425
+ "type": "string",
2426
+ "format": "uuid"
2427
+ }
2428
+ },
2429
+ {
2430
+ "in": "path",
2431
+ "name": "scenarioId",
2432
+ "required": true,
2433
+ "schema": {
2434
+ "type": "string",
2435
+ "format": "uuid"
2436
+ }
2437
+ }
2438
+ ],
2439
+ "bodyRequired": true,
2440
+ "bodyType": "application/json",
2441
+ "bodySchema": {
2442
+ "type": "object",
2443
+ "properties": {
2444
+ "definition": {
2445
+ "$ref": "#/components/schemas/VoiceSimulationScenarioDefinition"
2446
+ },
2447
+ "revision": {
2448
+ "type": "integer",
2449
+ "minimum": 1
2450
+ }
2451
+ },
2452
+ "required": [
2453
+ "definition",
2454
+ "revision"
2455
+ ]
2456
+ }
2457
+ },
2458
+ "generateVoiceSimulationScenarios": {
2459
+ "path": "/api/v1/voice-simulations/projects/{projectId}/generate-scenarios",
2460
+ "method": "post",
2461
+ "summary": "Generate scenarios with Agent IQ",
2462
+ "parameters": [
2463
+ {
2464
+ "name": "workspaceId",
2465
+ "in": "query",
2466
+ "required": true,
2467
+ "schema": {
2468
+ "type": "integer"
2469
+ },
2470
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2471
+ },
2472
+ {
2473
+ "in": "path",
2474
+ "name": "projectId",
2475
+ "required": true,
2476
+ "schema": {
2477
+ "type": "string",
2478
+ "format": "uuid"
2479
+ }
2480
+ }
2481
+ ],
2482
+ "bodyRequired": true,
2483
+ "bodyType": "application/json",
2484
+ "bodySchema": {
2485
+ "type": "object",
2486
+ "properties": {
2487
+ "ai_model": {
2488
+ "type": "string",
2489
+ "description": "Allowed Agent IQ model key from workspace model_options."
2490
+ },
2491
+ "instruction": {
2492
+ "type": "string",
2493
+ "maxLength": 12000,
2494
+ "description": "What to test. Omit or leave empty to let Agent IQ recommend scenarios."
2495
+ },
2496
+ "count": {
2497
+ "type": "integer",
2498
+ "minimum": 1,
2499
+ "maximum": 10
2500
+ },
2501
+ "use_call_history": {
2502
+ "type": "boolean",
2503
+ "default": true,
2504
+ "description": "Include recent real calls as evidence."
2505
+ }
2506
+ }
2507
+ }
2508
+ },
2509
+ "estimateVoiceSimulationSession": {
2510
+ "path": "/api/v1/voice-simulations/projects/{projectId}/estimate",
2511
+ "method": "post",
2512
+ "summary": "Estimate a simulation session",
2513
+ "parameters": [
2514
+ {
2515
+ "name": "workspaceId",
2516
+ "in": "query",
2517
+ "required": true,
2518
+ "schema": {
2519
+ "type": "integer"
2520
+ },
2521
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2522
+ },
2523
+ {
2524
+ "in": "path",
2525
+ "name": "projectId",
2526
+ "required": true,
2527
+ "schema": {
2528
+ "type": "string",
2529
+ "format": "uuid"
2530
+ }
2531
+ }
2532
+ ],
2533
+ "bodyRequired": true,
2534
+ "bodyType": "application/json",
2535
+ "bodySchema": {
2536
+ "type": "object",
2537
+ "properties": {
2538
+ "scenario_ids": {
2539
+ "type": "array",
2540
+ "items": {
2541
+ "type": "string",
2542
+ "format": "uuid"
2543
+ },
2544
+ "minItems": 1,
2545
+ "maxItems": 100
2546
+ },
2547
+ "repetitions": {
2548
+ "type": "integer",
2549
+ "minimum": 1,
2550
+ "maximum": 10
2551
+ }
2552
+ },
2553
+ "required": [
2554
+ "scenario_ids"
2555
+ ]
2556
+ }
2557
+ },
2558
+ "listVoiceSimulationSessions": {
2559
+ "path": "/api/v1/voice-simulations/projects/{projectId}/sessions",
2560
+ "method": "get",
2561
+ "summary": "List simulation sessions",
2562
+ "parameters": [
2563
+ {
2564
+ "name": "workspaceId",
2565
+ "in": "query",
2566
+ "required": true,
2567
+ "schema": {
2568
+ "type": "integer"
2569
+ },
2570
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2571
+ },
2572
+ {
2573
+ "in": "path",
2574
+ "name": "projectId",
2575
+ "required": true,
2576
+ "schema": {
2577
+ "type": "string",
2578
+ "format": "uuid"
2579
+ }
2580
+ }
2581
+ ],
2582
+ "bodyRequired": false,
2583
+ "bodyType": null,
2584
+ "bodySchema": null
2585
+ },
2586
+ "launchVoiceSimulationSession": {
2587
+ "path": "/api/v1/voice-simulations/projects/{projectId}/sessions",
2588
+ "method": "post",
2589
+ "summary": "Launch a voice simulation session",
2590
+ "parameters": [
2591
+ {
2592
+ "name": "workspaceId",
2593
+ "in": "query",
2594
+ "required": true,
2595
+ "schema": {
2596
+ "type": "integer"
2597
+ },
2598
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2599
+ },
2600
+ {
2601
+ "in": "path",
2602
+ "name": "projectId",
2603
+ "required": true,
2604
+ "schema": {
2605
+ "type": "string",
2606
+ "format": "uuid"
2607
+ }
2608
+ }
2609
+ ],
2610
+ "bodyRequired": true,
2611
+ "bodyType": "application/json",
2612
+ "bodySchema": {
2613
+ "$ref": "#/components/schemas/VoiceSimulationLaunchInput"
2614
+ }
2615
+ },
2616
+ "getVoiceSimulationSession": {
2617
+ "path": "/api/v1/voice-simulations/sessions/{sessionId}",
2618
+ "method": "get",
2619
+ "summary": "Get a simulation session and report",
2620
+ "parameters": [
2621
+ {
2622
+ "name": "workspaceId",
2623
+ "in": "query",
2624
+ "required": true,
2625
+ "schema": {
2626
+ "type": "integer"
2627
+ },
2628
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2629
+ },
2630
+ {
2631
+ "in": "path",
2632
+ "name": "sessionId",
2633
+ "required": true,
2634
+ "schema": {
2635
+ "type": "string",
2636
+ "format": "uuid"
2637
+ }
2638
+ }
2639
+ ],
2640
+ "bodyRequired": false,
2641
+ "bodyType": null,
2642
+ "bodySchema": null
2643
+ },
2644
+ "cancelVoiceSimulationSession": {
2645
+ "path": "/api/v1/voice-simulations/sessions/{sessionId}/cancel",
2646
+ "method": "post",
2647
+ "summary": "Cancel a voice simulation session",
2648
+ "parameters": [
2649
+ {
2650
+ "name": "workspaceId",
2651
+ "in": "query",
2652
+ "required": true,
2653
+ "schema": {
2654
+ "type": "integer"
2655
+ },
2656
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2657
+ },
2658
+ {
2659
+ "in": "path",
2660
+ "name": "sessionId",
2661
+ "required": true,
2662
+ "schema": {
2663
+ "type": "string",
2664
+ "format": "uuid"
2665
+ }
2666
+ }
2667
+ ],
2668
+ "bodyRequired": true,
2669
+ "bodyType": "application/json",
2670
+ "bodySchema": {
2671
+ "type": "object",
2672
+ "properties": {}
2673
+ }
2674
+ },
2675
+ "proposeVoiceSimulationImprovement": {
2676
+ "path": "/api/v1/voice-simulations/sessions/{sessionId}/improvements",
2677
+ "method": "post",
2678
+ "summary": "Propose a simulation improvement",
2679
+ "parameters": [
2680
+ {
2681
+ "name": "workspaceId",
2682
+ "in": "query",
2683
+ "required": true,
2684
+ "schema": {
2685
+ "type": "integer"
2686
+ },
2687
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2688
+ },
2689
+ {
2690
+ "in": "path",
2691
+ "name": "sessionId",
2692
+ "required": true,
2693
+ "schema": {
2694
+ "type": "string",
2695
+ "format": "uuid"
2696
+ }
2697
+ }
2698
+ ],
2699
+ "bodyRequired": true,
2700
+ "bodyType": "application/json",
2701
+ "bodySchema": {
2702
+ "type": "object",
2703
+ "properties": {
2704
+ "change_scope": {
2705
+ "$ref": "#/components/schemas/VoiceSimulationChangeScope"
2706
+ },
2707
+ "ai_model": {
2708
+ "type": "string",
2709
+ "description": "Allowed Agent IQ model key from workspace model_options."
2710
+ }
2711
+ }
2712
+ }
2713
+ },
2714
+ "applyVoiceSimulationImprovement": {
2715
+ "path": "/api/v1/voice-simulations/projects/{projectId}/improvements/{improvementId}/apply",
2716
+ "method": "post",
2717
+ "summary": "Apply an improvement to a simulation draft",
2718
+ "parameters": [
2719
+ {
2720
+ "name": "workspaceId",
2721
+ "in": "query",
2722
+ "required": true,
2723
+ "schema": {
2724
+ "type": "integer"
2725
+ },
2726
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2727
+ },
2728
+ {
2729
+ "in": "path",
2730
+ "name": "projectId",
2731
+ "required": true,
2732
+ "schema": {
2733
+ "type": "string",
2734
+ "format": "uuid"
2735
+ }
2736
+ },
2737
+ {
2738
+ "in": "path",
2739
+ "name": "improvementId",
2740
+ "required": true,
2741
+ "schema": {
2742
+ "type": "string",
2743
+ "format": "uuid"
2744
+ }
2745
+ }
2746
+ ],
2747
+ "bodyRequired": true,
2748
+ "bodyType": "application/json",
2749
+ "bodySchema": {
2750
+ "type": "object",
2751
+ "properties": {
2752
+ "confirm": {
2753
+ "type": "boolean",
2754
+ "const": true
2755
+ }
2756
+ },
2757
+ "required": [
2758
+ "confirm"
2759
+ ]
2760
+ }
2761
+ },
2762
+ "getVoiceSimulationRecording": {
2763
+ "path": "/api/v1/voice-simulations/sessions/{sessionId}/runs/{runId}/recording",
2764
+ "method": "get",
2765
+ "summary": "Get a voice simulation recording",
2766
+ "parameters": [
2767
+ {
2768
+ "name": "workspaceId",
2769
+ "in": "query",
2770
+ "required": true,
2771
+ "schema": {
2772
+ "type": "integer"
2773
+ },
2774
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2775
+ },
2776
+ {
2777
+ "in": "path",
2778
+ "name": "sessionId",
2779
+ "required": true,
2780
+ "schema": {
2781
+ "type": "string",
2782
+ "format": "uuid"
2783
+ }
2784
+ },
2785
+ {
2786
+ "name": "runId",
2787
+ "in": "path",
2788
+ "required": true,
2789
+ "schema": {
2790
+ "type": "string",
2791
+ "format": "uuid"
2792
+ }
2793
+ }
2794
+ ],
2795
+ "bodyRequired": false,
2796
+ "bodyType": null,
2797
+ "bodySchema": null
2798
+ },
2799
+ "archiveVoiceSimulationProject": {
2800
+ "path": "/api/v1/voice-simulations/projects/{projectId}/archive",
2801
+ "method": "post",
2802
+ "summary": "Archive a voice simulation project",
2803
+ "parameters": [
2804
+ {
2805
+ "name": "workspaceId",
2806
+ "in": "query",
2807
+ "required": true,
2808
+ "schema": {
2809
+ "type": "integer"
2810
+ },
2811
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2812
+ },
2813
+ {
2814
+ "in": "path",
2815
+ "name": "projectId",
2816
+ "required": true,
2817
+ "schema": {
2818
+ "type": "string",
2819
+ "format": "uuid"
2820
+ }
2821
+ }
2822
+ ],
2823
+ "bodyRequired": false,
2824
+ "bodyType": null,
2825
+ "bodySchema": null
2826
+ },
2827
+ "archiveVoiceSimulationScenario": {
2828
+ "path": "/api/v1/voice-simulations/projects/{projectId}/scenarios/{scenarioId}/archive",
2829
+ "method": "post",
2830
+ "summary": "Archive a voice simulation scenario",
2831
+ "parameters": [
2832
+ {
2833
+ "name": "workspaceId",
2834
+ "in": "query",
2835
+ "required": true,
2836
+ "schema": {
2837
+ "type": "integer"
2838
+ },
2839
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2840
+ },
2841
+ {
2842
+ "in": "path",
2843
+ "name": "projectId",
2844
+ "required": true,
2845
+ "schema": {
2846
+ "type": "string",
2847
+ "format": "uuid"
2848
+ }
2849
+ },
2850
+ {
2851
+ "name": "scenarioId",
2852
+ "in": "path",
2853
+ "required": true,
2854
+ "schema": {
2855
+ "type": "string",
2856
+ "format": "uuid"
2857
+ }
2858
+ }
2859
+ ],
2860
+ "bodyRequired": false,
2861
+ "bodyType": null,
2862
+ "bodySchema": null
2863
+ },
2864
+ "listVoiceSimulationImprovements": {
2865
+ "path": "/api/v1/voice-simulations/projects/{projectId}/improvements",
2866
+ "method": "get",
2867
+ "summary": "List voice simulation improvement history",
2868
+ "parameters": [
2869
+ {
2870
+ "name": "workspaceId",
2871
+ "in": "query",
2872
+ "required": true,
2873
+ "schema": {
2874
+ "type": "integer"
2875
+ },
2876
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2877
+ },
2878
+ {
2879
+ "in": "path",
2880
+ "name": "projectId",
2881
+ "required": true,
2882
+ "schema": {
2883
+ "type": "string",
2884
+ "format": "uuid"
2885
+ }
2886
+ }
2887
+ ],
2888
+ "bodyRequired": false,
2889
+ "bodyType": null,
2890
+ "bodySchema": null
2891
+ },
2892
+ "listVoiceSimulationSpeechVoices": {
2893
+ "path": "/api/v1/voice-simulations/speech/voices",
2894
+ "method": "get",
2895
+ "summary": "List voices for IVR recordings",
2896
+ "parameters": [
2897
+ {
2898
+ "name": "workspaceId",
2899
+ "in": "query",
2900
+ "required": true,
2901
+ "schema": {
2902
+ "type": "integer"
2903
+ },
2904
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2905
+ },
2906
+ {
2907
+ "name": "provider",
2908
+ "in": "query",
2909
+ "required": true,
2910
+ "schema": {
2911
+ "type": "string",
2912
+ "enum": [
2913
+ "cartesia",
2914
+ "elevenlabs"
2915
+ ]
2916
+ }
2917
+ }
2918
+ ],
2919
+ "bodyRequired": false,
2920
+ "bodyType": null,
2921
+ "bodySchema": null
2922
+ },
2923
+ "generateVoiceSimulationIvrAudio": {
2924
+ "path": "/api/v1/voice-simulations/ivr/audio",
2925
+ "method": "post",
2926
+ "summary": "Generate recordings for IVR prompts",
2927
+ "parameters": [
2928
+ {
2929
+ "name": "workspaceId",
2930
+ "in": "query",
2931
+ "required": true,
2932
+ "schema": {
2933
+ "type": "integer"
2934
+ },
2935
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2936
+ }
2937
+ ],
2938
+ "bodyRequired": true,
2939
+ "bodyType": "application/json",
2940
+ "bodySchema": {
2941
+ "type": "object",
2942
+ "properties": {
2943
+ "ivr": {
2944
+ "$ref": "#/components/schemas/VoiceSimulationIvr"
2945
+ },
2946
+ "provider": {
2947
+ "type": "string",
2948
+ "enum": [
2949
+ "cartesia",
2950
+ "elevenlabs"
2951
+ ]
2952
+ },
2953
+ "voice_id": {
2954
+ "type": "string"
2955
+ }
2956
+ },
2957
+ "required": [
2958
+ "ivr",
2959
+ "provider"
2960
+ ]
2961
+ }
2962
+ },
2963
+ "getVoiceSimulationIvrAudio": {
2964
+ "path": "/api/v1/voice-simulations/audio/{audioId}",
2965
+ "method": "get",
2966
+ "summary": "Download an IVR recording",
2967
+ "parameters": [
2968
+ {
2969
+ "name": "workspaceId",
2970
+ "in": "query",
2971
+ "required": true,
2972
+ "schema": {
2973
+ "type": "integer"
2974
+ },
2975
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
2976
+ },
2977
+ {
2978
+ "name": "audioId",
2979
+ "in": "path",
2980
+ "required": true,
2981
+ "schema": {
2982
+ "type": "string",
2983
+ "format": "uuid"
2984
+ }
2985
+ }
2986
+ ],
2987
+ "bodyRequired": false,
2988
+ "bodyType": null,
2989
+ "bodySchema": null
2990
+ },
2991
+ "listVoiceSimulationImprovementRuns": {
2992
+ "path": "/api/v1/voice-simulations/projects/{projectId}/improvement-runs",
2993
+ "method": "get",
2994
+ "summary": "List self-improving runs",
2995
+ "parameters": [
2996
+ {
2997
+ "name": "workspaceId",
2998
+ "in": "query",
2999
+ "required": true,
3000
+ "schema": {
3001
+ "type": "integer"
3002
+ },
3003
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
3004
+ },
3005
+ {
3006
+ "name": "projectId",
3007
+ "in": "path",
3008
+ "required": true,
3009
+ "schema": {
3010
+ "type": "string",
3011
+ "format": "uuid"
3012
+ }
3013
+ }
3014
+ ],
3015
+ "bodyRequired": false,
3016
+ "bodyType": null,
3017
+ "bodySchema": null
3018
+ },
3019
+ "createVoiceSimulationImprovementRun": {
3020
+ "path": "/api/v1/voice-simulations/projects/{projectId}/improvement-runs",
3021
+ "method": "post",
3022
+ "summary": "Create a self-improving run",
3023
+ "parameters": [
3024
+ {
3025
+ "name": "workspaceId",
3026
+ "in": "query",
3027
+ "required": true,
3028
+ "schema": {
3029
+ "type": "integer"
3030
+ },
3031
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
3032
+ },
3033
+ {
3034
+ "name": "projectId",
3035
+ "in": "path",
3036
+ "required": true,
3037
+ "schema": {
3038
+ "type": "string",
3039
+ "format": "uuid"
3040
+ }
3041
+ }
3042
+ ],
3043
+ "bodyRequired": true,
3044
+ "bodyType": "application/json",
3045
+ "bodySchema": {
3046
+ "type": "object",
3047
+ "properties": {
3048
+ "max_calls": {
3049
+ "type": "integer",
3050
+ "minimum": 1,
3051
+ "maximum": 100,
3052
+ "description": "Total simulation runs allowed, including prior reserved calls; workspace cap may be lower."
3053
+ },
3054
+ "max_ai": {
3055
+ "type": "integer",
3056
+ "minimum": 1,
3057
+ "maximum": 200,
3058
+ "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."
3059
+ },
3060
+ "max_surcharge": {
3061
+ "type": "number",
3062
+ "minimum": 0,
3063
+ "description": "Maximum cumulative per-run surcharges. Voice usage, Agent IQ pricing and monthly access remain separate."
3064
+ },
3065
+ "scenario_ids": {
3066
+ "type": "array",
3067
+ "items": {
3068
+ "type": "string",
3069
+ "format": "uuid"
3070
+ },
3071
+ "maxItems": 100
3072
+ },
3073
+ "ai_model": {
3074
+ "type": "string"
3075
+ }
3076
+ }
3077
+ }
3078
+ },
3079
+ "getVoiceSimulationImprovementRun": {
3080
+ "path": "/api/v1/voice-simulations/improvement-runs/{id}",
3081
+ "method": "get",
3082
+ "summary": "Review a self-improving run",
3083
+ "parameters": [
3084
+ {
3085
+ "name": "workspaceId",
3086
+ "in": "query",
3087
+ "required": true,
3088
+ "schema": {
3089
+ "type": "integer"
3090
+ },
3091
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
3092
+ },
3093
+ {
3094
+ "name": "id",
3095
+ "in": "path",
3096
+ "required": true,
3097
+ "schema": {
3098
+ "type": "string",
3099
+ "format": "uuid"
3100
+ }
3101
+ }
3102
+ ],
3103
+ "bodyRequired": false,
3104
+ "bodyType": null,
3105
+ "bodySchema": null
3106
+ },
3107
+ "updateVoiceSimulationImprovementRun": {
3108
+ "path": "/api/v1/voice-simulations/improvement-runs/{id}",
3109
+ "method": "patch",
3110
+ "summary": "Choose scenarios before improvement approval",
3111
+ "parameters": [
3112
+ {
3113
+ "name": "workspaceId",
3114
+ "in": "query",
3115
+ "required": true,
3116
+ "schema": {
3117
+ "type": "integer"
3118
+ },
3119
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
3120
+ },
3121
+ {
3122
+ "name": "id",
3123
+ "in": "path",
3124
+ "required": true,
3125
+ "schema": {
3126
+ "type": "string",
3127
+ "format": "uuid"
3128
+ }
3129
+ }
3130
+ ],
3131
+ "bodyRequired": true,
3132
+ "bodyType": "application/json",
3133
+ "bodySchema": {
3134
+ "type": "object",
3135
+ "required": [
3136
+ "scenario_ids"
3137
+ ],
3138
+ "properties": {
3139
+ "scenario_ids": {
3140
+ "type": "array",
3141
+ "maxItems": 100,
3142
+ "items": {
3143
+ "type": "string",
3144
+ "format": "uuid"
3145
+ }
3146
+ }
3147
+ }
3148
+ }
3149
+ },
3150
+ "generateVoiceSimulationImprovementScenarios": {
3151
+ "path": "/api/v1/voice-simulations/improvement-runs/{id}/generate",
3152
+ "method": "post",
3153
+ "summary": "Generate and save an improvement test suite",
3154
+ "parameters": [
3155
+ {
3156
+ "name": "workspaceId",
3157
+ "in": "query",
3158
+ "required": true,
3159
+ "schema": {
3160
+ "type": "integer"
3161
+ },
3162
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
3163
+ },
3164
+ {
3165
+ "name": "id",
3166
+ "in": "path",
3167
+ "required": true,
3168
+ "schema": {
3169
+ "type": "string",
3170
+ "format": "uuid"
3171
+ }
3172
+ }
3173
+ ],
3174
+ "bodyRequired": true,
3175
+ "bodyType": "application/json",
3176
+ "bodySchema": {
3177
+ "type": "object",
3178
+ "properties": {
3179
+ "instruction": {
3180
+ "type": "string",
3181
+ "maxLength": 12000
3182
+ },
3183
+ "count": {
3184
+ "type": "integer",
3185
+ "minimum": 1,
3186
+ "maximum": 10
3187
+ }
3188
+ },
3189
+ "required": [
3190
+ "instruction"
3191
+ ]
3192
+ }
3193
+ },
3194
+ "approveVoiceSimulationImprovementRun": {
3195
+ "path": "/api/v1/voice-simulations/improvement-runs/{id}/approve",
3196
+ "method": "post",
3197
+ "summary": "Approve or renew an improvement budget",
3198
+ "parameters": [
3199
+ {
3200
+ "name": "workspaceId",
3201
+ "in": "query",
3202
+ "required": true,
3203
+ "schema": {
3204
+ "type": "integer"
3205
+ },
3206
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
3207
+ },
3208
+ {
3209
+ "name": "id",
3210
+ "in": "path",
3211
+ "required": true,
3212
+ "schema": {
3213
+ "type": "string",
3214
+ "format": "uuid"
3215
+ }
3216
+ }
3217
+ ],
3218
+ "bodyRequired": true,
3219
+ "bodyType": "application/json",
3220
+ "bodySchema": {
3221
+ "type": "object",
3222
+ "properties": {
3223
+ "change_scope": {
3224
+ "$ref": "#/components/schemas/VoiceSimulationChangeScope"
3225
+ },
3226
+ "ai_model": {
3227
+ "type": "string",
3228
+ "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."
3229
+ },
3230
+ "max_calls": {
3231
+ "type": "integer",
3232
+ "minimum": 1,
3233
+ "maximum": 100,
3234
+ "description": "Total simulation runs allowed, including prior reserved calls; workspace cap may be lower."
3235
+ },
3236
+ "max_ai": {
3237
+ "type": "integer",
3238
+ "minimum": 1,
3239
+ "maximum": 200,
3240
+ "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."
3241
+ },
3242
+ "max_surcharge": {
3243
+ "type": "number",
3244
+ "minimum": 0,
3245
+ "description": "Maximum cumulative per-run surcharges. Voice usage, Agent IQ pricing and monthly access remain separate."
3246
+ },
3247
+ "confirm": {
3248
+ "type": "boolean",
3249
+ "const": true
3250
+ },
3251
+ "review_fingerprint": {
3252
+ "type": "string"
3253
+ }
3254
+ },
3255
+ "required": [
3256
+ "confirm",
3257
+ "review_fingerprint",
3258
+ "max_calls",
3259
+ "max_ai",
3260
+ "max_surcharge"
3261
+ ]
3262
+ }
3263
+ },
3264
+ "stopVoiceSimulationImprovementRun": {
3265
+ "path": "/api/v1/voice-simulations/improvement-runs/{id}/stop",
3266
+ "method": "post",
3267
+ "summary": "Stop a self-improving run",
3268
+ "parameters": [
3269
+ {
3270
+ "name": "workspaceId",
3271
+ "in": "query",
3272
+ "required": true,
3273
+ "schema": {
3274
+ "type": "integer"
3275
+ },
3276
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
3277
+ },
3278
+ {
3279
+ "name": "id",
3280
+ "in": "path",
3281
+ "required": true,
3282
+ "schema": {
3283
+ "type": "string",
3284
+ "format": "uuid"
3285
+ }
3286
+ }
3287
+ ],
3288
+ "bodyRequired": true,
3289
+ "bodyType": "application/json",
3290
+ "bodySchema": {
3291
+ "type": "object",
3292
+ "properties": {}
3293
+ }
3294
+ },
3295
+ "getVoiceSimulationSchedule": {
3296
+ "path": "/api/v1/voice-simulations/projects/{projectId}/improvement-schedule",
3297
+ "method": "get",
3298
+ "summary": "Get recurring improvement policy",
3299
+ "parameters": [
3300
+ {
3301
+ "name": "workspaceId",
3302
+ "in": "query",
3303
+ "required": true,
3304
+ "schema": {
3305
+ "type": "integer"
3306
+ },
3307
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
3308
+ },
3309
+ {
3310
+ "name": "projectId",
3311
+ "in": "path",
3312
+ "required": true,
3313
+ "schema": {
3314
+ "type": "string",
3315
+ "format": "uuid"
3316
+ }
3317
+ }
3318
+ ],
3319
+ "bodyRequired": false,
3320
+ "bodyType": null,
3321
+ "bodySchema": null
3322
+ },
3323
+ "saveVoiceSimulationSchedule": {
3324
+ "path": "/api/v1/voice-simulations/projects/{projectId}/improvement-schedule",
3325
+ "method": "put",
3326
+ "summary": "Approve or renew recurring improvement cycles",
3327
+ "parameters": [
3328
+ {
3329
+ "name": "workspaceId",
3330
+ "in": "query",
3331
+ "required": true,
3332
+ "schema": {
3333
+ "type": "integer"
3334
+ },
3335
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
3336
+ },
3337
+ {
3338
+ "name": "projectId",
3339
+ "in": "path",
3340
+ "required": true,
3341
+ "schema": {
3342
+ "type": "string",
3343
+ "format": "uuid"
3344
+ }
3345
+ }
3346
+ ],
3347
+ "bodyRequired": true,
3348
+ "bodyType": "application/json",
3349
+ "bodySchema": {
3350
+ "$ref": "#/components/schemas/VoiceSimulationScheduleApproval"
3351
+ }
3352
+ },
3353
+ "pauseVoiceSimulationSchedule": {
3354
+ "path": "/api/v1/voice-simulations/projects/{projectId}/improvement-schedule/pause",
3355
+ "method": "post",
3356
+ "summary": "Pause future improvement cycles",
3357
+ "parameters": [
3358
+ {
3359
+ "name": "workspaceId",
3360
+ "in": "query",
3361
+ "required": true,
3362
+ "schema": {
3363
+ "type": "integer"
3364
+ },
3365
+ "description": "Workspace identifier. Call GET /api/v1/workspaces to list workspaces accessible to your token."
3366
+ },
3367
+ {
3368
+ "name": "projectId",
3369
+ "in": "path",
3370
+ "required": true,
3371
+ "schema": {
3372
+ "type": "string",
3373
+ "format": "uuid"
3374
+ }
3375
+ }
3376
+ ],
3377
+ "bodyRequired": false,
3378
+ "bodyType": null,
3379
+ "bodySchema": null
2141
3380
  }
2142
3381
  };