Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Commit a434a43

Browse files
author
LaunchDarklyReleaseBot
committed
Version 20.0.0 automatically generated from ld-openapi.
1 parent 5cc6e9d commit a434a43

14 files changed

Lines changed: 3064 additions & 1039 deletions

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ docs/Model/ActionOutput.md
9898
docs/Model/AgentGraph.md
9999
docs/Model/AgentGraphEdge.md
100100
docs/Model/AgentGraphEdgePost.md
101+
docs/Model/AgentGraphPatch.md
101102
docs/Model/AgentGraphPost.md
102103
docs/Model/AgentGraphs.md
103104
docs/Model/AiConfigsAccess.md
@@ -747,6 +748,7 @@ lib/Model/ActionOutput.php
747748
lib/Model/AgentGraph.php
748749
lib/Model/AgentGraphEdge.php
749750
lib/Model/AgentGraphEdgePost.php
751+
lib/Model/AgentGraphPatch.php
750752
lib/Model/AgentGraphPost.php
751753
lib/Model/AgentGraphs.php
752754
lib/Model/AiConfigsAccess.php
@@ -1393,6 +1395,7 @@ test/Model/ActionInputTest.php
13931395
test/Model/ActionOutputTest.php
13941396
test/Model/AgentGraphEdgePostTest.php
13951397
test/Model/AgentGraphEdgeTest.php
1398+
test/Model/AgentGraphPatchTest.php
13961399
test/Model/AgentGraphPostTest.php
13971400
test/Model/AgentGraphTest.php
13981401
test/Model/AgentGraphsTest.php

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ Class | Method | HTTP request | Description
523523
*AIConfigsBetaApi* | [**deleteAIConfig**](docs/Api/AIConfigsBetaApi.md#deleteaiconfig) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Delete AI Config
524524
*AIConfigsBetaApi* | [**deleteAIConfigVariation**](docs/Api/AIConfigsBetaApi.md#deleteaiconfigvariation) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Delete AI Config variation
525525
*AIConfigsBetaApi* | [**deleteAITool**](docs/Api/AIConfigsBetaApi.md#deleteaitool) | **DELETE** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Delete AI tool
526+
*AIConfigsBetaApi* | [**deleteAgentGraph**](docs/Api/AIConfigsBetaApi.md#deleteagentgraph) | **DELETE** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Delete agent graph
526527
*AIConfigsBetaApi* | [**deleteModelConfig**](docs/Api/AIConfigsBetaApi.md#deletemodelconfig) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Delete an AI model config
527528
*AIConfigsBetaApi* | [**deleteRestrictedModels**](docs/Api/AIConfigsBetaApi.md#deleterestrictedmodels) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/restricted | Remove AI models from the restricted list
528529
*AIConfigsBetaApi* | [**getAIConfig**](docs/Api/AIConfigsBetaApi.md#getaiconfig) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Get AI Config
@@ -532,6 +533,7 @@ Class | Method | HTTP request | Description
532533
*AIConfigsBetaApi* | [**getAIConfigVariation**](docs/Api/AIConfigsBetaApi.md#getaiconfigvariation) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Get AI Config variation
533534
*AIConfigsBetaApi* | [**getAIConfigs**](docs/Api/AIConfigsBetaApi.md#getaiconfigs) | **GET** /api/v2/projects/{projectKey}/ai-configs | List AI Configs
534535
*AIConfigsBetaApi* | [**getAITool**](docs/Api/AIConfigsBetaApi.md#getaitool) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Get AI tool
536+
*AIConfigsBetaApi* | [**getAgentGraph**](docs/Api/AIConfigsBetaApi.md#getagentgraph) | **GET** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Get agent graph
535537
*AIConfigsBetaApi* | [**getModelConfig**](docs/Api/AIConfigsBetaApi.md#getmodelconfig) | **GET** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Get AI model config
536538
*AIConfigsBetaApi* | [**listAIToolVersions**](docs/Api/AIConfigsBetaApi.md#listaitoolversions) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey}/versions | List AI tool versions
537539
*AIConfigsBetaApi* | [**listAITools**](docs/Api/AIConfigsBetaApi.md#listaitools) | **GET** /api/v2/projects/{projectKey}/ai-tools | List AI tools
@@ -541,6 +543,7 @@ Class | Method | HTTP request | Description
541543
*AIConfigsBetaApi* | [**patchAIConfigTargeting**](docs/Api/AIConfigsBetaApi.md#patchaiconfigtargeting) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting | Update AI Config targeting
542544
*AIConfigsBetaApi* | [**patchAIConfigVariation**](docs/Api/AIConfigsBetaApi.md#patchaiconfigvariation) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Update AI Config variation
543545
*AIConfigsBetaApi* | [**patchAITool**](docs/Api/AIConfigsBetaApi.md#patchaitool) | **PATCH** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Update AI tool
546+
*AIConfigsBetaApi* | [**patchAgentGraph**](docs/Api/AIConfigsBetaApi.md#patchagentgraph) | **PATCH** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Update agent graph
544547
*AIConfigsBetaApi* | [**postAIConfig**](docs/Api/AIConfigsBetaApi.md#postaiconfig) | **POST** /api/v2/projects/{projectKey}/ai-configs | Create new AI Config
545548
*AIConfigsBetaApi* | [**postAIConfigVariation**](docs/Api/AIConfigsBetaApi.md#postaiconfigvariation) | **POST** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations | Create AI Config variation
546549
*AIConfigsBetaApi* | [**postAITool**](docs/Api/AIConfigsBetaApi.md#postaitool) | **POST** /api/v2/projects/{projectKey}/ai-tools | Create an AI tool
@@ -904,6 +907,7 @@ Class | Method | HTTP request | Description
904907
- [AgentGraph](docs/Model/AgentGraph.md)
905908
- [AgentGraphEdge](docs/Model/AgentGraphEdge.md)
906909
- [AgentGraphEdgePost](docs/Model/AgentGraphEdgePost.md)
910+
- [AgentGraphPatch](docs/Model/AgentGraphPatch.md)
907911
- [AgentGraphPost](docs/Model/AgentGraphPost.md)
908912
- [AgentGraphs](docs/Model/AgentGraphs.md)
909913
- [AiConfigsAccess](docs/Model/AiConfigsAccess.md)

docs/Api/AIConfigsBetaApi.md

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All URIs are relative to https://app.launchdarkly.com, except if the operation d
77
| [**deleteAIConfig()**](AIConfigsBetaApi.md#deleteAIConfig) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Delete AI Config |
88
| [**deleteAIConfigVariation()**](AIConfigsBetaApi.md#deleteAIConfigVariation) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Delete AI Config variation |
99
| [**deleteAITool()**](AIConfigsBetaApi.md#deleteAITool) | **DELETE** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Delete AI tool |
10+
| [**deleteAgentGraph()**](AIConfigsBetaApi.md#deleteAgentGraph) | **DELETE** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Delete agent graph |
1011
| [**deleteModelConfig()**](AIConfigsBetaApi.md#deleteModelConfig) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Delete an AI model config |
1112
| [**deleteRestrictedModels()**](AIConfigsBetaApi.md#deleteRestrictedModels) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/restricted | Remove AI models from the restricted list |
1213
| [**getAIConfig()**](AIConfigsBetaApi.md#getAIConfig) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Get AI Config |
@@ -16,6 +17,7 @@ All URIs are relative to https://app.launchdarkly.com, except if the operation d
1617
| [**getAIConfigVariation()**](AIConfigsBetaApi.md#getAIConfigVariation) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Get AI Config variation |
1718
| [**getAIConfigs()**](AIConfigsBetaApi.md#getAIConfigs) | **GET** /api/v2/projects/{projectKey}/ai-configs | List AI Configs |
1819
| [**getAITool()**](AIConfigsBetaApi.md#getAITool) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Get AI tool |
20+
| [**getAgentGraph()**](AIConfigsBetaApi.md#getAgentGraph) | **GET** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Get agent graph |
1921
| [**getModelConfig()**](AIConfigsBetaApi.md#getModelConfig) | **GET** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Get AI model config |
2022
| [**listAIToolVersions()**](AIConfigsBetaApi.md#listAIToolVersions) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey}/versions | List AI tool versions |
2123
| [**listAITools()**](AIConfigsBetaApi.md#listAITools) | **GET** /api/v2/projects/{projectKey}/ai-tools | List AI tools |
@@ -25,6 +27,7 @@ All URIs are relative to https://app.launchdarkly.com, except if the operation d
2527
| [**patchAIConfigTargeting()**](AIConfigsBetaApi.md#patchAIConfigTargeting) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting | Update AI Config targeting |
2628
| [**patchAIConfigVariation()**](AIConfigsBetaApi.md#patchAIConfigVariation) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Update AI Config variation |
2729
| [**patchAITool()**](AIConfigsBetaApi.md#patchAITool) | **PATCH** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Update AI tool |
30+
| [**patchAgentGraph()**](AIConfigsBetaApi.md#patchAgentGraph) | **PATCH** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Update agent graph |
2831
| [**postAIConfig()**](AIConfigsBetaApi.md#postAIConfig) | **POST** /api/v2/projects/{projectKey}/ai-configs | Create new AI Config |
2932
| [**postAIConfigVariation()**](AIConfigsBetaApi.md#postAIConfigVariation) | **POST** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations | Create AI Config variation |
3033
| [**postAITool()**](AIConfigsBetaApi.md#postAITool) | **POST** /api/v2/projects/{projectKey}/ai-tools | Create an AI tool |
@@ -230,6 +233,71 @@ void (empty response body)
230233
[[Back to Model list]](../../README.md#models)
231234
[[Back to README]](../../README.md)
232235

236+
## `deleteAgentGraph()`
237+
238+
```php
239+
deleteAgentGraph($ld_api_version, $project_key, $graph_key)
240+
```
241+
242+
Delete agent graph
243+
244+
Delete an existing agent graph and all of its edges.
245+
246+
### Example
247+
248+
```php
249+
<?php
250+
require_once(__DIR__ . '/vendor/autoload.php');
251+
252+
253+
// Configure API key authorization: ApiKey
254+
$config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
255+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
256+
// $config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
257+
258+
259+
$apiInstance = new LaunchDarklyApi\Api\AIConfigsBetaApi(
260+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
261+
// This is optional, `GuzzleHttp\Client` will be used as default.
262+
new GuzzleHttp\Client(),
263+
$config
264+
);
265+
$ld_api_version = 'ld_api_version_example'; // string | Version of the endpoint.
266+
$project_key = 'project_key_example'; // string
267+
$graph_key = 'graph_key_example'; // string
268+
269+
try {
270+
$apiInstance->deleteAgentGraph($ld_api_version, $project_key, $graph_key);
271+
} catch (Exception $e) {
272+
echo 'Exception when calling AIConfigsBetaApi->deleteAgentGraph: ', $e->getMessage(), PHP_EOL;
273+
}
274+
```
275+
276+
### Parameters
277+
278+
| Name | Type | Description | Notes |
279+
| ------------- | ------------- | ------------- | ------------- |
280+
| **ld_api_version** | **string**| Version of the endpoint. | |
281+
| **project_key** | **string**| | |
282+
| **graph_key** | **string**| | |
283+
284+
### Return type
285+
286+
void (empty response body)
287+
288+
### Authorization
289+
290+
[ApiKey](../../README.md#ApiKey)
291+
292+
### HTTP request headers
293+
294+
- **Content-Type**: Not defined
295+
- **Accept**: `application/json`
296+
297+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
298+
[[Back to Model list]](../../README.md#models)
299+
[[Back to README]](../../README.md)
300+
233301
## `deleteModelConfig()`
234302

235303
```php
@@ -842,6 +910,72 @@ try {
842910
[[Back to Model list]](../../README.md#models)
843911
[[Back to README]](../../README.md)
844912

913+
## `getAgentGraph()`
914+
915+
```php
916+
getAgentGraph($ld_api_version, $project_key, $graph_key): \LaunchDarklyApi\Model\AgentGraph
917+
```
918+
919+
Get agent graph
920+
921+
Retrieve a specific agent graph by its key, including its edges.
922+
923+
### Example
924+
925+
```php
926+
<?php
927+
require_once(__DIR__ . '/vendor/autoload.php');
928+
929+
930+
// Configure API key authorization: ApiKey
931+
$config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
932+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
933+
// $config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
934+
935+
936+
$apiInstance = new LaunchDarklyApi\Api\AIConfigsBetaApi(
937+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
938+
// This is optional, `GuzzleHttp\Client` will be used as default.
939+
new GuzzleHttp\Client(),
940+
$config
941+
);
942+
$ld_api_version = 'ld_api_version_example'; // string | Version of the endpoint.
943+
$project_key = 'project_key_example'; // string
944+
$graph_key = 'graph_key_example'; // string
945+
946+
try {
947+
$result = $apiInstance->getAgentGraph($ld_api_version, $project_key, $graph_key);
948+
print_r($result);
949+
} catch (Exception $e) {
950+
echo 'Exception when calling AIConfigsBetaApi->getAgentGraph: ', $e->getMessage(), PHP_EOL;
951+
}
952+
```
953+
954+
### Parameters
955+
956+
| Name | Type | Description | Notes |
957+
| ------------- | ------------- | ------------- | ------------- |
958+
| **ld_api_version** | **string**| Version of the endpoint. | |
959+
| **project_key** | **string**| | |
960+
| **graph_key** | **string**| | |
961+
962+
### Return type
963+
964+
[**\LaunchDarklyApi\Model\AgentGraph**](../Model/AgentGraph.md)
965+
966+
### Authorization
967+
968+
[ApiKey](../../README.md#ApiKey)
969+
970+
### HTTP request headers
971+
972+
- **Content-Type**: Not defined
973+
- **Accept**: `application/json`
974+
975+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
976+
[[Back to Model list]](../../README.md#models)
977+
[[Back to README]](../../README.md)
978+
845979
## `getModelConfig()`
846980

847981
```php
@@ -1460,6 +1594,74 @@ try {
14601594
[[Back to Model list]](../../README.md#models)
14611595
[[Back to README]](../../README.md)
14621596

1597+
## `patchAgentGraph()`
1598+
1599+
```php
1600+
patchAgentGraph($ld_api_version, $project_key, $graph_key, $agent_graph_patch): \LaunchDarklyApi\Model\AgentGraph
1601+
```
1602+
1603+
Update agent graph
1604+
1605+
Edit an existing agent graph. The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields. If the update includes `rootConfigKey` or `edges`, both must be present and will be treated as full replacements.
1606+
1607+
### Example
1608+
1609+
```php
1610+
<?php
1611+
require_once(__DIR__ . '/vendor/autoload.php');
1612+
1613+
1614+
// Configure API key authorization: ApiKey
1615+
$config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
1616+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
1617+
// $config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
1618+
1619+
1620+
$apiInstance = new LaunchDarklyApi\Api\AIConfigsBetaApi(
1621+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
1622+
// This is optional, `GuzzleHttp\Client` will be used as default.
1623+
new GuzzleHttp\Client(),
1624+
$config
1625+
);
1626+
$ld_api_version = 'ld_api_version_example'; // string | Version of the endpoint.
1627+
$project_key = 'project_key_example'; // string
1628+
$graph_key = 'graph_key_example'; // string
1629+
$agent_graph_patch = new \LaunchDarklyApi\Model\AgentGraphPatch(); // \LaunchDarklyApi\Model\AgentGraphPatch | Agent graph object to update
1630+
1631+
try {
1632+
$result = $apiInstance->patchAgentGraph($ld_api_version, $project_key, $graph_key, $agent_graph_patch);
1633+
print_r($result);
1634+
} catch (Exception $e) {
1635+
echo 'Exception when calling AIConfigsBetaApi->patchAgentGraph: ', $e->getMessage(), PHP_EOL;
1636+
}
1637+
```
1638+
1639+
### Parameters
1640+
1641+
| Name | Type | Description | Notes |
1642+
| ------------- | ------------- | ------------- | ------------- |
1643+
| **ld_api_version** | **string**| Version of the endpoint. | |
1644+
| **project_key** | **string**| | |
1645+
| **graph_key** | **string**| | |
1646+
| **agent_graph_patch** | [**\LaunchDarklyApi\Model\AgentGraphPatch**](../Model/AgentGraphPatch.md)| Agent graph object to update | [optional] |
1647+
1648+
### Return type
1649+
1650+
[**\LaunchDarklyApi\Model\AgentGraph**](../Model/AgentGraph.md)
1651+
1652+
### Authorization
1653+
1654+
[ApiKey](../../README.md#ApiKey)
1655+
1656+
### HTTP request headers
1657+
1658+
- **Content-Type**: `application/json`
1659+
- **Accept**: `application/json`
1660+
1661+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
1662+
[[Back to Model list]](../../README.md#models)
1663+
[[Back to README]](../../README.md)
1664+
14631665
## `postAIConfig()`
14641666

14651667
```php

docs/Model/AgentGraphEdge.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**key** | **string** | A unique key for this edge within the graph |
78
**source_config** | **string** | The AI Config key that is the source of this edge |
89
**target_config** | **string** | The AI Config key that is the target of this edge |
910
**handoff** | **object** | The handoff options from the source AI Config to the target AI Config | [optional]

docs/Model/AgentGraphEdgePost.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**key** | **string** | A unique key for this edge within the graph |
78
**source_config** | **string** | The AI Config key that is the source of this edge |
89
**target_config** | **string** | The AI Config key that is the target of this edge |
910
**handoff** | **object** | The handoff options from the source AI Config to the target AI Config | [optional]

docs/Model/AgentGraphPatch.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# # AgentGraphPatch
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **string** | A human-readable name for the agent graph | [optional]
8+
**description** | **string** | A description of the agent graph | [optional]
9+
**root_config_key** | **string** | The AI Config key of the root node. If present, edges must also be present. | [optional]
10+
**edges** | [**\LaunchDarklyApi\Model\AgentGraphEdge[]**](AgentGraphEdge.md) | The edges in the graph. If present, rootConfigKey must also be present. Replaces all existing edges. | [optional]
11+
12+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

0 commit comments

Comments
 (0)