Skip to content

Commit bdcd0b8

Browse files
author
LaunchDarklyReleaseBot
committed
Version 20.0.0 automatically generated from ld-openapi.
1 parent d13b3c5 commit bdcd0b8

15 files changed

+666
-8
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ docs/ActionOutput.md
4646
docs/AgentGraph.md
4747
docs/AgentGraphEdge.md
4848
docs/AgentGraphEdgePost.md
49+
docs/AgentGraphPatch.md
4950
docs/AgentGraphPost.md
5051
docs/AgentGraphs.md
5152
docs/AiConfigsAccess.md
@@ -746,6 +747,7 @@ src/model/ActionOutput.js
746747
src/model/AgentGraph.js
747748
src/model/AgentGraphEdge.js
748749
src/model/AgentGraphEdgePost.js
750+
src/model/AgentGraphPatch.js
749751
src/model/AgentGraphPost.js
750752
src/model/AgentGraphs.js
751753
src/model/AiConfigsAccess.js
@@ -1390,6 +1392,7 @@ test/model/ActionOutput.spec.js
13901392
test/model/AgentGraph.spec.js
13911393
test/model/AgentGraphEdge.spec.js
13921394
test/model/AgentGraphEdgePost.spec.js
1395+
test/model/AgentGraphPatch.spec.js
13931396
test/model/AgentGraphPost.spec.js
13941397
test/model/AgentGraphs.spec.js
13951398
test/model/AiConfigsAccess.spec.js

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ Class | Method | HTTP request | Description
576576
*LaunchDarklyApi.AIConfigsBetaApi* | [**deleteAIConfig**](docs/AIConfigsBetaApi.md#deleteAIConfig) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Delete AI Config
577577
*LaunchDarklyApi.AIConfigsBetaApi* | [**deleteAIConfigVariation**](docs/AIConfigsBetaApi.md#deleteAIConfigVariation) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Delete AI Config variation
578578
*LaunchDarklyApi.AIConfigsBetaApi* | [**deleteAITool**](docs/AIConfigsBetaApi.md#deleteAITool) | **DELETE** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Delete AI tool
579+
*LaunchDarklyApi.AIConfigsBetaApi* | [**deleteAgentGraph**](docs/AIConfigsBetaApi.md#deleteAgentGraph) | **DELETE** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Delete agent graph
579580
*LaunchDarklyApi.AIConfigsBetaApi* | [**deleteModelConfig**](docs/AIConfigsBetaApi.md#deleteModelConfig) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Delete an AI model config
580581
*LaunchDarklyApi.AIConfigsBetaApi* | [**deleteRestrictedModels**](docs/AIConfigsBetaApi.md#deleteRestrictedModels) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/restricted | Remove AI models from the restricted list
581582
*LaunchDarklyApi.AIConfigsBetaApi* | [**getAIConfig**](docs/AIConfigsBetaApi.md#getAIConfig) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Get AI Config
@@ -585,6 +586,7 @@ Class | Method | HTTP request | Description
585586
*LaunchDarklyApi.AIConfigsBetaApi* | [**getAIConfigVariation**](docs/AIConfigsBetaApi.md#getAIConfigVariation) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Get AI Config variation
586587
*LaunchDarklyApi.AIConfigsBetaApi* | [**getAIConfigs**](docs/AIConfigsBetaApi.md#getAIConfigs) | **GET** /api/v2/projects/{projectKey}/ai-configs | List AI Configs
587588
*LaunchDarklyApi.AIConfigsBetaApi* | [**getAITool**](docs/AIConfigsBetaApi.md#getAITool) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Get AI tool
589+
*LaunchDarklyApi.AIConfigsBetaApi* | [**getAgentGraph**](docs/AIConfigsBetaApi.md#getAgentGraph) | **GET** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Get agent graph
588590
*LaunchDarklyApi.AIConfigsBetaApi* | [**getModelConfig**](docs/AIConfigsBetaApi.md#getModelConfig) | **GET** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Get AI model config
589591
*LaunchDarklyApi.AIConfigsBetaApi* | [**listAIToolVersions**](docs/AIConfigsBetaApi.md#listAIToolVersions) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey}/versions | List AI tool versions
590592
*LaunchDarklyApi.AIConfigsBetaApi* | [**listAITools**](docs/AIConfigsBetaApi.md#listAITools) | **GET** /api/v2/projects/{projectKey}/ai-tools | List AI tools
@@ -594,6 +596,7 @@ Class | Method | HTTP request | Description
594596
*LaunchDarklyApi.AIConfigsBetaApi* | [**patchAIConfigTargeting**](docs/AIConfigsBetaApi.md#patchAIConfigTargeting) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting | Update AI Config targeting
595597
*LaunchDarklyApi.AIConfigsBetaApi* | [**patchAIConfigVariation**](docs/AIConfigsBetaApi.md#patchAIConfigVariation) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Update AI Config variation
596598
*LaunchDarklyApi.AIConfigsBetaApi* | [**patchAITool**](docs/AIConfigsBetaApi.md#patchAITool) | **PATCH** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Update AI tool
599+
*LaunchDarklyApi.AIConfigsBetaApi* | [**patchAgentGraph**](docs/AIConfigsBetaApi.md#patchAgentGraph) | **PATCH** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Update agent graph
597600
*LaunchDarklyApi.AIConfigsBetaApi* | [**postAIConfig**](docs/AIConfigsBetaApi.md#postAIConfig) | **POST** /api/v2/projects/{projectKey}/ai-configs | Create new AI Config
598601
*LaunchDarklyApi.AIConfigsBetaApi* | [**postAIConfigVariation**](docs/AIConfigsBetaApi.md#postAIConfigVariation) | **POST** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations | Create AI Config variation
599602
*LaunchDarklyApi.AIConfigsBetaApi* | [**postAITool**](docs/AIConfigsBetaApi.md#postAITool) | **POST** /api/v2/projects/{projectKey}/ai-tools | Create an AI tool
@@ -958,6 +961,7 @@ Class | Method | HTTP request | Description
958961
- [LaunchDarklyApi.AgentGraph](docs/AgentGraph.md)
959962
- [LaunchDarklyApi.AgentGraphEdge](docs/AgentGraphEdge.md)
960963
- [LaunchDarklyApi.AgentGraphEdgePost](docs/AgentGraphEdgePost.md)
964+
- [LaunchDarklyApi.AgentGraphPatch](docs/AgentGraphPatch.md)
961965
- [LaunchDarklyApi.AgentGraphPost](docs/AgentGraphPost.md)
962966
- [LaunchDarklyApi.AgentGraphs](docs/AgentGraphs.md)
963967
- [LaunchDarklyApi.AiConfigsAccess](docs/AiConfigsAccess.md)

docs/AIConfigsBetaApi.md

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Method | HTTP request | Description
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 @@ Method | HTTP request | Description
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 @@ Method | HTTP request | Description
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
@@ -201,6 +204,61 @@ null (empty response body)
201204
- **Accept**: application/json
202205

203206

207+
## deleteAgentGraph
208+
209+
> deleteAgentGraph(lDAPIVersion, projectKey, graphKey)
210+
211+
Delete agent graph
212+
213+
Delete an existing agent graph and all of its edges.
214+
215+
### Example
216+
217+
```javascript
218+
import LaunchDarklyApi from 'launchdarkly-api';
219+
let defaultClient = LaunchDarklyApi.ApiClient.instance;
220+
// Configure API key authorization: ApiKey
221+
let ApiKey = defaultClient.authentications['ApiKey'];
222+
ApiKey.apiKey = 'YOUR API KEY';
223+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
224+
//ApiKey.apiKeyPrefix = 'Token';
225+
226+
let apiInstance = new LaunchDarklyApi.AIConfigsBetaApi();
227+
let lDAPIVersion = "lDAPIVersion_example"; // String | Version of the endpoint.
228+
let projectKey = "projectKey_example"; // String |
229+
let graphKey = "graphKey_example"; // String |
230+
apiInstance.deleteAgentGraph(lDAPIVersion, projectKey, graphKey, (error, data, response) => {
231+
if (error) {
232+
console.error(error);
233+
} else {
234+
console.log('API called successfully.');
235+
}
236+
});
237+
```
238+
239+
### Parameters
240+
241+
242+
Name | Type | Description | Notes
243+
------------- | ------------- | ------------- | -------------
244+
**lDAPIVersion** | **String**| Version of the endpoint. |
245+
**projectKey** | **String**| |
246+
**graphKey** | **String**| |
247+
248+
### Return type
249+
250+
null (empty response body)
251+
252+
### Authorization
253+
254+
[ApiKey](../README.md#ApiKey)
255+
256+
### HTTP request headers
257+
258+
- **Content-Type**: Not defined
259+
- **Accept**: application/json
260+
261+
204262
## deleteModelConfig
205263

206264
> deleteModelConfig(lDAPIVersion, projectKey, modelConfigKey)
@@ -718,6 +776,61 @@ Name | Type | Description | Notes
718776
- **Accept**: application/json
719777

720778

779+
## getAgentGraph
780+
781+
> AgentGraph getAgentGraph(lDAPIVersion, projectKey, graphKey)
782+
783+
Get agent graph
784+
785+
Retrieve a specific agent graph by its key, including its edges.
786+
787+
### Example
788+
789+
```javascript
790+
import LaunchDarklyApi from 'launchdarkly-api';
791+
let defaultClient = LaunchDarklyApi.ApiClient.instance;
792+
// Configure API key authorization: ApiKey
793+
let ApiKey = defaultClient.authentications['ApiKey'];
794+
ApiKey.apiKey = 'YOUR API KEY';
795+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
796+
//ApiKey.apiKeyPrefix = 'Token';
797+
798+
let apiInstance = new LaunchDarklyApi.AIConfigsBetaApi();
799+
let lDAPIVersion = "lDAPIVersion_example"; // String | Version of the endpoint.
800+
let projectKey = "projectKey_example"; // String |
801+
let graphKey = "graphKey_example"; // String |
802+
apiInstance.getAgentGraph(lDAPIVersion, projectKey, graphKey, (error, data, response) => {
803+
if (error) {
804+
console.error(error);
805+
} else {
806+
console.log('API called successfully. Returned data: ' + data);
807+
}
808+
});
809+
```
810+
811+
### Parameters
812+
813+
814+
Name | Type | Description | Notes
815+
------------- | ------------- | ------------- | -------------
816+
**lDAPIVersion** | **String**| Version of the endpoint. |
817+
**projectKey** | **String**| |
818+
**graphKey** | **String**| |
819+
820+
### Return type
821+
822+
[**AgentGraph**](AgentGraph.md)
823+
824+
### Authorization
825+
826+
[ApiKey](../README.md#ApiKey)
827+
828+
### HTTP request headers
829+
830+
- **Content-Type**: Not defined
831+
- **Accept**: application/json
832+
833+
721834
## getModelConfig
722835

723836
> ModelConfig getModelConfig(lDAPIVersion, projectKey, modelConfigKey)
@@ -1253,6 +1366,65 @@ Name | Type | Description | Notes
12531366
- **Accept**: application/json
12541367

12551368

1369+
## patchAgentGraph
1370+
1371+
> AgentGraph patchAgentGraph(lDAPIVersion, projectKey, graphKey, opts)
1372+
1373+
Update agent graph
1374+
1375+
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.
1376+
1377+
### Example
1378+
1379+
```javascript
1380+
import LaunchDarklyApi from 'launchdarkly-api';
1381+
let defaultClient = LaunchDarklyApi.ApiClient.instance;
1382+
// Configure API key authorization: ApiKey
1383+
let ApiKey = defaultClient.authentications['ApiKey'];
1384+
ApiKey.apiKey = 'YOUR API KEY';
1385+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
1386+
//ApiKey.apiKeyPrefix = 'Token';
1387+
1388+
let apiInstance = new LaunchDarklyApi.AIConfigsBetaApi();
1389+
let lDAPIVersion = "lDAPIVersion_example"; // String | Version of the endpoint.
1390+
let projectKey = "projectKey_example"; // String |
1391+
let graphKey = "graphKey_example"; // String |
1392+
let opts = {
1393+
'agentGraphPatch': new LaunchDarklyApi.AgentGraphPatch() // AgentGraphPatch | Agent graph object to update
1394+
};
1395+
apiInstance.patchAgentGraph(lDAPIVersion, projectKey, graphKey, opts, (error, data, response) => {
1396+
if (error) {
1397+
console.error(error);
1398+
} else {
1399+
console.log('API called successfully. Returned data: ' + data);
1400+
}
1401+
});
1402+
```
1403+
1404+
### Parameters
1405+
1406+
1407+
Name | Type | Description | Notes
1408+
------------- | ------------- | ------------- | -------------
1409+
**lDAPIVersion** | **String**| Version of the endpoint. |
1410+
**projectKey** | **String**| |
1411+
**graphKey** | **String**| |
1412+
**agentGraphPatch** | [**AgentGraphPatch**](AgentGraphPatch.md)| Agent graph object to update | [optional]
1413+
1414+
### Return type
1415+
1416+
[**AgentGraph**](AgentGraph.md)
1417+
1418+
### Authorization
1419+
1420+
[ApiKey](../README.md#ApiKey)
1421+
1422+
### HTTP request headers
1423+
1424+
- **Content-Type**: application/json
1425+
- **Accept**: application/json
1426+
1427+
12561428
## postAIConfig
12571429

12581430
> AIConfig postAIConfig(lDAPIVersion, projectKey, aIConfigPost)

docs/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
**sourceConfig** | **String** | The AI Config key that is the source of this edge |
89
**targetConfig** | **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/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
**sourceConfig** | **String** | The AI Config key that is the source of this edge |
89
**targetConfig** | **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/AgentGraphPatch.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# LaunchDarklyApi.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+
**rootConfigKey** | **String** | The AI Config key of the root node. If present, edges must also be present. | [optional]
10+
**edges** | [**[AgentGraphEdge]**](AgentGraphEdge.md) | The edges in the graph. If present, rootConfigKey must also be present. Replaces all existing edges. | [optional]
11+
12+

0 commit comments

Comments
 (0)