launchdarkly_api 19.0.0 → 20.0.0

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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -10
  3. data/docs/AIConfigPost.md +3 -1
  4. data/docs/AIConfigsBetaApi.md +387 -0
  5. data/docs/AccountUsageBetaApi.md +182 -0
  6. data/docs/AgentGraph.md +30 -0
  7. data/docs/AgentGraphEdge.md +24 -0
  8. data/docs/AgentGraphEdgePost.md +24 -0
  9. data/docs/AgentGraphPatch.md +24 -0
  10. data/docs/AgentGraphPost.md +26 -0
  11. data/docs/AgentGraphs.md +22 -0
  12. data/docs/FeatureFlagsApi.md +3 -1
  13. data/docs/GuardedReleaseConfig.md +10 -2
  14. data/docs/IterationInput.md +0 -2
  15. data/docs/IterationRep.md +1 -3
  16. data/docs/PostReleasePolicyRequest.md +2 -2
  17. data/docs/ProgressiveReleaseConfig.md +20 -0
  18. data/docs/PutReleasePolicyRequest.md +2 -2
  19. data/docs/ReleasePolicy.md +2 -2
  20. data/docs/ReleasePolicyScope.md +3 -1
  21. data/docs/ReleasePolicyStage.md +20 -0
  22. data/docs/Rule.md +2 -0
  23. data/docs/SegmentsApi.md +8 -4
  24. data/docs/TagsApi.md +2 -2
  25. data/lib/launchdarkly_api/api/account_usage_beta_api.rb +171 -0
  26. data/lib/launchdarkly_api/api/ai_configs_beta_api.rb +417 -0
  27. data/lib/launchdarkly_api/api/feature_flags_api.rb +3 -0
  28. data/lib/launchdarkly_api/api/segments_api.rb +3 -0
  29. data/lib/launchdarkly_api/api/tags_api.rb +2 -2
  30. data/lib/launchdarkly_api/models/agent_graph.rb +350 -0
  31. data/lib/launchdarkly_api/models/agent_graph_edge.rb +303 -0
  32. data/lib/launchdarkly_api/models/agent_graph_edge_post.rb +303 -0
  33. data/lib/launchdarkly_api/models/agent_graph_patch.rb +254 -0
  34. data/lib/launchdarkly_api/models/agent_graph_post.rb +298 -0
  35. data/lib/launchdarkly_api/models/{covariance_info_rep.rb → agent_graphs.rb} +43 -59
  36. data/lib/launchdarkly_api/models/ai_config_post.rb +13 -4
  37. data/lib/launchdarkly_api/models/guarded_release_config.rb +50 -21
  38. data/lib/launchdarkly_api/models/iteration_input.rb +1 -11
  39. data/lib/launchdarkly_api/models/iteration_rep.rb +4 -13
  40. data/lib/launchdarkly_api/models/post_release_policy_request.rb +1 -2
  41. data/lib/launchdarkly_api/models/progressive_release_config.rb +234 -0
  42. data/lib/launchdarkly_api/models/put_release_policy_request.rb +1 -2
  43. data/lib/launchdarkly_api/models/release_policy.rb +1 -2
  44. data/lib/launchdarkly_api/models/release_policy_scope.rb +16 -4
  45. data/lib/launchdarkly_api/models/release_policy_stage.rb +263 -0
  46. data/lib/launchdarkly_api/models/rule.rb +11 -1
  47. data/lib/launchdarkly_api/version.rb +1 -1
  48. data/lib/launchdarkly_api.rb +8 -1
  49. data/spec/api/account_usage_beta_api_spec.rb +41 -0
  50. data/spec/api/ai_configs_beta_api_spec.rb +72 -0
  51. data/spec/api/feature_flags_api_spec.rb +1 -0
  52. data/spec/api/segments_api_spec.rb +1 -0
  53. data/spec/api/tags_api_spec.rb +1 -1
  54. data/spec/models/agent_graph_edge_post_spec.rb +54 -0
  55. data/spec/models/agent_graph_edge_spec.rb +54 -0
  56. data/spec/models/agent_graph_patch_spec.rb +54 -0
  57. data/spec/models/agent_graph_post_spec.rb +60 -0
  58. data/spec/models/agent_graph_spec.rb +72 -0
  59. data/spec/models/{covariance_info_rep_spec.rb → agent_graphs_spec.rb} +9 -9
  60. data/spec/models/ai_config_post_spec.rb +6 -0
  61. data/spec/models/guarded_release_config_spec.rb +24 -0
  62. data/spec/models/iteration_input_spec.rb +0 -6
  63. data/spec/models/iteration_rep_spec.rb +0 -6
  64. data/spec/models/progressive_release_config_spec.rb +42 -0
  65. data/spec/models/release_policy_scope_spec.rb +6 -0
  66. data/spec/models/release_policy_stage_spec.rb +42 -0
  67. data/spec/models/rule_spec.rb +6 -0
  68. metadata +34 -6
  69. data/docs/CovarianceInfoRep.md +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad93d6895baf203aae44ab7fdac20097c1414688f896a63bd11a433af4ef13c9
4
- data.tar.gz: baf83e9e847b9058059d685f63a7032b1e8b9e25702e92ba8b562f9a04df3ca4
3
+ metadata.gz: c760de7e0536123e8a5cab89605419344b73380ec556564f15d375c0b38bd90b
4
+ data.tar.gz: 9ce8656b4ef787506288a70c852f09c177f7839041e24cc60a958cded17ab2e2
5
5
  SHA512:
6
- metadata.gz: f95a953790d14f0a9bdbc8cfef428f30e827946f2213e129fdb7ace95595f32f5ad9cc02b32f24b9ea1704f96730594c3297f6125461b4f1c7861e925c66e69b
7
- data.tar.gz: 96f51a5b63fac69eac67397d6965193573c89158c53c23083871c3e3d7111a907ffdec399a5b1a86cf3f2bbea276bbdb6751b9e2302f6a619e4d8dd76547594b
6
+ metadata.gz: '0852ce9653926fe1e7ffd40d253a4dc6db7370df551ded78a24556b26aceaa3af4d2d33dae16b1955f2a12600aa875f9be07f9db42bed5a5dda12e109d8686dd'
7
+ data.tar.gz: 7a409b14e55627de6e102dfb93a59e802503379886bb160ee7e61228924cd9402629740a2f2e5e705c2ecb211c45c3d1b8138a6a24952d3c01ea5663cb2e2fa1
data/README.md CHANGED
@@ -450,7 +450,7 @@ To learn more about how EOL is determined, read LaunchDarkly's [End of Life (EOL
450
450
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
451
451
 
452
452
  - API version: 2.0
453
- - Package version: 19.0.0
453
+ - Package version: 20.0.0
454
454
  - Generator version: 7.16.0
455
455
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
456
456
  For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
@@ -468,16 +468,16 @@ gem build launchdarkly_api.gemspec
468
468
  Then either install the gem locally:
469
469
 
470
470
  ```shell
471
- gem install ./launchdarkly_api-19.0.0.gem
471
+ gem install ./launchdarkly_api-20.0.0.gem
472
472
  ```
473
473
 
474
- (for development, run `gem install --dev ./launchdarkly_api-19.0.0.gem` to install the development dependencies)
474
+ (for development, run `gem install --dev ./launchdarkly_api-20.0.0.gem` to install the development dependencies)
475
475
 
476
476
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
477
477
 
478
478
  Finally add this to the Gemfile:
479
479
 
480
- gem 'launchdarkly_api', '~> 19.0.0'
480
+ gem 'launchdarkly_api', '~> 20.0.0'
481
481
 
482
482
  ### Install from Git
483
483
 
@@ -511,14 +511,14 @@ end
511
511
 
512
512
  api_instance = LaunchDarklyApi::AIConfigsBetaApi.new
513
513
  ld_api_version = 'beta' # String | Version of the endpoint.
514
- project_key = 'default' # String |
515
- config_key = 'config_key_example' # String |
514
+ project_key = 'project_key_example' # String |
515
+ graph_key = 'graph_key_example' # String |
516
516
 
517
517
  begin
518
- #Delete AI Config
519
- api_instance.delete_ai_config(ld_api_version, project_key, config_key)
518
+ #Delete agent graph
519
+ api_instance.delete_agent_graph(ld_api_version, project_key, graph_key)
520
520
  rescue LaunchDarklyApi::ApiError => e
521
- puts "Exception when calling AIConfigsBetaApi->delete_ai_config: #{e}"
521
+ puts "Exception when calling AIConfigsBetaApi->delete_agent_graph: #{e}"
522
522
  end
523
523
 
524
524
  ```
@@ -529,11 +529,13 @@ All URIs are relative to *https://app.launchdarkly.com*
529
529
 
530
530
  Class | Method | HTTP request | Description
531
531
  ------------ | ------------- | ------------- | -------------
532
+ *LaunchDarklyApi::AIConfigsBetaApi* | [**delete_agent_graph**](docs/AIConfigsBetaApi.md#delete_agent_graph) | **DELETE** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Delete agent graph
532
533
  *LaunchDarklyApi::AIConfigsBetaApi* | [**delete_ai_config**](docs/AIConfigsBetaApi.md#delete_ai_config) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Delete AI Config
533
534
  *LaunchDarklyApi::AIConfigsBetaApi* | [**delete_ai_config_variation**](docs/AIConfigsBetaApi.md#delete_ai_config_variation) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Delete AI Config variation
534
535
  *LaunchDarklyApi::AIConfigsBetaApi* | [**delete_ai_tool**](docs/AIConfigsBetaApi.md#delete_ai_tool) | **DELETE** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Delete AI tool
535
536
  *LaunchDarklyApi::AIConfigsBetaApi* | [**delete_model_config**](docs/AIConfigsBetaApi.md#delete_model_config) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Delete an AI model config
536
537
  *LaunchDarklyApi::AIConfigsBetaApi* | [**delete_restricted_models**](docs/AIConfigsBetaApi.md#delete_restricted_models) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/restricted | Remove AI models from the restricted list
538
+ *LaunchDarklyApi::AIConfigsBetaApi* | [**get_agent_graph**](docs/AIConfigsBetaApi.md#get_agent_graph) | **GET** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Get agent graph
537
539
  *LaunchDarklyApi::AIConfigsBetaApi* | [**get_ai_config**](docs/AIConfigsBetaApi.md#get_ai_config) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Get AI Config
538
540
  *LaunchDarklyApi::AIConfigsBetaApi* | [**get_ai_config_metrics**](docs/AIConfigsBetaApi.md#get_ai_config_metrics) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics | Get AI Config metrics
539
541
  *LaunchDarklyApi::AIConfigsBetaApi* | [**get_ai_config_metrics_by_variation**](docs/AIConfigsBetaApi.md#get_ai_config_metrics_by_variation) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics-by-variation | Get AI Config metrics by variation
@@ -542,13 +544,16 @@ Class | Method | HTTP request | Description
542
544
  *LaunchDarklyApi::AIConfigsBetaApi* | [**get_ai_configs**](docs/AIConfigsBetaApi.md#get_ai_configs) | **GET** /api/v2/projects/{projectKey}/ai-configs | List AI Configs
543
545
  *LaunchDarklyApi::AIConfigsBetaApi* | [**get_ai_tool**](docs/AIConfigsBetaApi.md#get_ai_tool) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Get AI tool
544
546
  *LaunchDarklyApi::AIConfigsBetaApi* | [**get_model_config**](docs/AIConfigsBetaApi.md#get_model_config) | **GET** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Get AI model config
547
+ *LaunchDarklyApi::AIConfigsBetaApi* | [**list_agent_graphs**](docs/AIConfigsBetaApi.md#list_agent_graphs) | **GET** /api/v2/projects/{projectKey}/agent-graphs | List agent graphs
545
548
  *LaunchDarklyApi::AIConfigsBetaApi* | [**list_ai_tool_versions**](docs/AIConfigsBetaApi.md#list_ai_tool_versions) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey}/versions | List AI tool versions
546
549
  *LaunchDarklyApi::AIConfigsBetaApi* | [**list_ai_tools**](docs/AIConfigsBetaApi.md#list_ai_tools) | **GET** /api/v2/projects/{projectKey}/ai-tools | List AI tools
547
550
  *LaunchDarklyApi::AIConfigsBetaApi* | [**list_model_configs**](docs/AIConfigsBetaApi.md#list_model_configs) | **GET** /api/v2/projects/{projectKey}/ai-configs/model-configs | List AI model configs
551
+ *LaunchDarklyApi::AIConfigsBetaApi* | [**patch_agent_graph**](docs/AIConfigsBetaApi.md#patch_agent_graph) | **PATCH** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Update agent graph
548
552
  *LaunchDarklyApi::AIConfigsBetaApi* | [**patch_ai_config**](docs/AIConfigsBetaApi.md#patch_ai_config) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Update AI Config
549
553
  *LaunchDarklyApi::AIConfigsBetaApi* | [**patch_ai_config_targeting**](docs/AIConfigsBetaApi.md#patch_ai_config_targeting) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting | Update AI Config targeting
550
554
  *LaunchDarklyApi::AIConfigsBetaApi* | [**patch_ai_config_variation**](docs/AIConfigsBetaApi.md#patch_ai_config_variation) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Update AI Config variation
551
555
  *LaunchDarklyApi::AIConfigsBetaApi* | [**patch_ai_tool**](docs/AIConfigsBetaApi.md#patch_ai_tool) | **PATCH** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Update AI tool
556
+ *LaunchDarklyApi::AIConfigsBetaApi* | [**post_agent_graph**](docs/AIConfigsBetaApi.md#post_agent_graph) | **POST** /api/v2/projects/{projectKey}/agent-graphs | Create new agent graph
552
557
  *LaunchDarklyApi::AIConfigsBetaApi* | [**post_ai_config**](docs/AIConfigsBetaApi.md#post_ai_config) | **POST** /api/v2/projects/{projectKey}/ai-configs | Create new AI Config
553
558
  *LaunchDarklyApi::AIConfigsBetaApi* | [**post_ai_config_variation**](docs/AIConfigsBetaApi.md#post_ai_config_variation) | **POST** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations | Create AI Config variation
554
559
  *LaunchDarklyApi::AIConfigsBetaApi* | [**post_ai_tool**](docs/AIConfigsBetaApi.md#post_ai_tool) | **POST** /api/v2/projects/{projectKey}/ai-tools | Create an AI tool
@@ -575,7 +580,9 @@ Class | Method | HTTP request | Description
575
580
  *LaunchDarklyApi::AccountUsageBetaApi* | [**get_events_usage**](docs/AccountUsageBetaApi.md#get_events_usage) | **GET** /api/v2/usage/events/{type} | Get events usage
576
581
  *LaunchDarklyApi::AccountUsageBetaApi* | [**get_experimentation_events_usage**](docs/AccountUsageBetaApi.md#get_experimentation_events_usage) | **GET** /api/v2/usage/experimentation-events | Get experimentation events usage
577
582
  *LaunchDarklyApi::AccountUsageBetaApi* | [**get_experimentation_keys_usage**](docs/AccountUsageBetaApi.md#get_experimentation_keys_usage) | **GET** /api/v2/usage/experimentation-keys | Get experimentation keys usage
583
+ *LaunchDarklyApi::AccountUsageBetaApi* | [**get_mau_clientside_usage**](docs/AccountUsageBetaApi.md#get_mau_clientside_usage) | **GET** /api/v2/usage/clientside-mau | Get MAU clientside usage
578
584
  *LaunchDarklyApi::AccountUsageBetaApi* | [**get_mau_sdks_by_type**](docs/AccountUsageBetaApi.md#get_mau_sdks_by_type) | **GET** /api/v2/usage/mau/sdks | Get MAU SDKs by type
585
+ *LaunchDarklyApi::AccountUsageBetaApi* | [**get_mau_total_usage**](docs/AccountUsageBetaApi.md#get_mau_total_usage) | **GET** /api/v2/usage/total-mau | Get MAU total usage
579
586
  *LaunchDarklyApi::AccountUsageBetaApi* | [**get_mau_usage**](docs/AccountUsageBetaApi.md#get_mau_usage) | **GET** /api/v2/usage/mau | Get MAU usage
580
587
  *LaunchDarklyApi::AccountUsageBetaApi* | [**get_mau_usage_by_category**](docs/AccountUsageBetaApi.md#get_mau_usage_by_category) | **GET** /api/v2/usage/mau/bycategory | Get MAU usage by category
581
588
  *LaunchDarklyApi::AccountUsageBetaApi* | [**get_observability_errors_usage**](docs/AccountUsageBetaApi.md#get_observability_errors_usage) | **GET** /api/v2/usage/observability/errors | Get observability errors usage
@@ -907,6 +914,12 @@ Class | Method | HTTP request | Description
907
914
  - [LaunchDarklyApi::AccessTokenPost](docs/AccessTokenPost.md)
908
915
  - [LaunchDarklyApi::ActionInput](docs/ActionInput.md)
909
916
  - [LaunchDarklyApi::ActionOutput](docs/ActionOutput.md)
917
+ - [LaunchDarklyApi::AgentGraph](docs/AgentGraph.md)
918
+ - [LaunchDarklyApi::AgentGraphEdge](docs/AgentGraphEdge.md)
919
+ - [LaunchDarklyApi::AgentGraphEdgePost](docs/AgentGraphEdgePost.md)
920
+ - [LaunchDarklyApi::AgentGraphPatch](docs/AgentGraphPatch.md)
921
+ - [LaunchDarklyApi::AgentGraphPost](docs/AgentGraphPost.md)
922
+ - [LaunchDarklyApi::AgentGraphs](docs/AgentGraphs.md)
910
923
  - [LaunchDarklyApi::AiConfigsAccess](docs/AiConfigsAccess.md)
911
924
  - [LaunchDarklyApi::AiConfigsAccessAllowedReason](docs/AiConfigsAccessAllowedReason.md)
912
925
  - [LaunchDarklyApi::AiConfigsAccessAllowedRep](docs/AiConfigsAccessAllowedRep.md)
@@ -1002,7 +1015,6 @@ Class | Method | HTTP request | Description
1002
1015
  - [LaunchDarklyApi::Contexts](docs/Contexts.md)
1003
1016
  - [LaunchDarklyApi::CopiedFromEnv](docs/CopiedFromEnv.md)
1004
1017
  - [LaunchDarklyApi::CoreLink](docs/CoreLink.md)
1005
- - [LaunchDarklyApi::CovarianceInfoRep](docs/CovarianceInfoRep.md)
1006
1018
  - [LaunchDarklyApi::CreateAnnouncementBody](docs/CreateAnnouncementBody.md)
1007
1019
  - [LaunchDarklyApi::CreateApprovalRequestRequest](docs/CreateApprovalRequestRequest.md)
1008
1020
  - [LaunchDarklyApi::CreateCopyFlagConfigApprovalRequestRequest](docs/CreateCopyFlagConfigApprovalRequestRequest.md)
@@ -1284,6 +1296,7 @@ Class | Method | HTTP request | Description
1284
1296
  - [LaunchDarklyApi::PostInsightGroupParams](docs/PostInsightGroupParams.md)
1285
1297
  - [LaunchDarklyApi::PostReleasePolicyRequest](docs/PostReleasePolicyRequest.md)
1286
1298
  - [LaunchDarklyApi::Prerequisite](docs/Prerequisite.md)
1299
+ - [LaunchDarklyApi::ProgressiveReleaseConfig](docs/ProgressiveReleaseConfig.md)
1287
1300
  - [LaunchDarklyApi::Project](docs/Project.md)
1288
1301
  - [LaunchDarklyApi::ProjectPost](docs/ProjectPost.md)
1289
1302
  - [LaunchDarklyApi::ProjectRep](docs/ProjectRep.md)
@@ -1323,6 +1336,7 @@ Class | Method | HTTP request | Description
1323
1336
  - [LaunchDarklyApi::ReleasePoliciesResponse](docs/ReleasePoliciesResponse.md)
1324
1337
  - [LaunchDarklyApi::ReleasePolicy](docs/ReleasePolicy.md)
1325
1338
  - [LaunchDarklyApi::ReleasePolicyScope](docs/ReleasePolicyScope.md)
1339
+ - [LaunchDarklyApi::ReleasePolicyStage](docs/ReleasePolicyStage.md)
1326
1340
  - [LaunchDarklyApi::ReleaseProgression](docs/ReleaseProgression.md)
1327
1341
  - [LaunchDarklyApi::ReleaseProgressionCollection](docs/ReleaseProgressionCollection.md)
1328
1342
  - [LaunchDarklyApi::ReleaserAudienceConfigInput](docs/ReleaserAudienceConfigInput.md)
data/docs/AIConfigPost.md CHANGED
@@ -11,6 +11,7 @@
11
11
  | **mode** | **String** | | [optional][default to 'completion'] |
12
12
  | **name** | **String** | | |
13
13
  | **tags** | **Array<String>** | | [optional] |
14
+ | **default_variation** | [**AIConfigVariationPost**](AIConfigVariationPost.md) | | [optional] |
14
15
 
15
16
  ## Example
16
17
 
@@ -24,7 +25,8 @@ instance = LaunchDarklyApi::AIConfigPost.new(
24
25
  maintainer_team_key: null,
25
26
  mode: null,
26
27
  name: null,
27
- tags: null
28
+ tags: null,
29
+ default_variation: null
28
30
  )
29
31
  ```
30
32
 
@@ -4,11 +4,13 @@ All URIs are relative to *https://app.launchdarkly.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**delete_agent_graph**](AIConfigsBetaApi.md#delete_agent_graph) | **DELETE** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Delete agent graph |
7
8
  | [**delete_ai_config**](AIConfigsBetaApi.md#delete_ai_config) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Delete AI Config |
8
9
  | [**delete_ai_config_variation**](AIConfigsBetaApi.md#delete_ai_config_variation) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Delete AI Config variation |
9
10
  | [**delete_ai_tool**](AIConfigsBetaApi.md#delete_ai_tool) | **DELETE** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Delete AI tool |
10
11
  | [**delete_model_config**](AIConfigsBetaApi.md#delete_model_config) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Delete an AI model config |
11
12
  | [**delete_restricted_models**](AIConfigsBetaApi.md#delete_restricted_models) | **DELETE** /api/v2/projects/{projectKey}/ai-configs/model-configs/restricted | Remove AI models from the restricted list |
13
+ | [**get_agent_graph**](AIConfigsBetaApi.md#get_agent_graph) | **GET** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Get agent graph |
12
14
  | [**get_ai_config**](AIConfigsBetaApi.md#get_ai_config) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Get AI Config |
13
15
  | [**get_ai_config_metrics**](AIConfigsBetaApi.md#get_ai_config_metrics) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics | Get AI Config metrics |
14
16
  | [**get_ai_config_metrics_by_variation**](AIConfigsBetaApi.md#get_ai_config_metrics_by_variation) | **GET** /api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics-by-variation | Get AI Config metrics by variation |
@@ -17,13 +19,16 @@ All URIs are relative to *https://app.launchdarkly.com*
17
19
  | [**get_ai_configs**](AIConfigsBetaApi.md#get_ai_configs) | **GET** /api/v2/projects/{projectKey}/ai-configs | List AI Configs |
18
20
  | [**get_ai_tool**](AIConfigsBetaApi.md#get_ai_tool) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Get AI tool |
19
21
  | [**get_model_config**](AIConfigsBetaApi.md#get_model_config) | **GET** /api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey} | Get AI model config |
22
+ | [**list_agent_graphs**](AIConfigsBetaApi.md#list_agent_graphs) | **GET** /api/v2/projects/{projectKey}/agent-graphs | List agent graphs |
20
23
  | [**list_ai_tool_versions**](AIConfigsBetaApi.md#list_ai_tool_versions) | **GET** /api/v2/projects/{projectKey}/ai-tools/{toolKey}/versions | List AI tool versions |
21
24
  | [**list_ai_tools**](AIConfigsBetaApi.md#list_ai_tools) | **GET** /api/v2/projects/{projectKey}/ai-tools | List AI tools |
22
25
  | [**list_model_configs**](AIConfigsBetaApi.md#list_model_configs) | **GET** /api/v2/projects/{projectKey}/ai-configs/model-configs | List AI model configs |
26
+ | [**patch_agent_graph**](AIConfigsBetaApi.md#patch_agent_graph) | **PATCH** /api/v2/projects/{projectKey}/agent-graphs/{graphKey} | Update agent graph |
23
27
  | [**patch_ai_config**](AIConfigsBetaApi.md#patch_ai_config) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey} | Update AI Config |
24
28
  | [**patch_ai_config_targeting**](AIConfigsBetaApi.md#patch_ai_config_targeting) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting | Update AI Config targeting |
25
29
  | [**patch_ai_config_variation**](AIConfigsBetaApi.md#patch_ai_config_variation) | **PATCH** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey} | Update AI Config variation |
26
30
  | [**patch_ai_tool**](AIConfigsBetaApi.md#patch_ai_tool) | **PATCH** /api/v2/projects/{projectKey}/ai-tools/{toolKey} | Update AI tool |
31
+ | [**post_agent_graph**](AIConfigsBetaApi.md#post_agent_graph) | **POST** /api/v2/projects/{projectKey}/agent-graphs | Create new agent graph |
27
32
  | [**post_ai_config**](AIConfigsBetaApi.md#post_ai_config) | **POST** /api/v2/projects/{projectKey}/ai-configs | Create new AI Config |
28
33
  | [**post_ai_config_variation**](AIConfigsBetaApi.md#post_ai_config_variation) | **POST** /api/v2/projects/{projectKey}/ai-configs/{configKey}/variations | Create AI Config variation |
29
34
  | [**post_ai_tool**](AIConfigsBetaApi.md#post_ai_tool) | **POST** /api/v2/projects/{projectKey}/ai-tools | Create an AI tool |
@@ -31,6 +36,80 @@ All URIs are relative to *https://app.launchdarkly.com*
31
36
  | [**post_restricted_models**](AIConfigsBetaApi.md#post_restricted_models) | **POST** /api/v2/projects/{projectKey}/ai-configs/model-configs/restricted | Add AI models to the restricted list |
32
37
 
33
38
 
39
+ ## delete_agent_graph
40
+
41
+ > delete_agent_graph(ld_api_version, project_key, graph_key)
42
+
43
+ Delete agent graph
44
+
45
+ Delete an existing agent graph and all of its edges.
46
+
47
+ ### Examples
48
+
49
+ ```ruby
50
+ require 'time'
51
+ require 'launchdarkly_api'
52
+ # setup authorization
53
+ LaunchDarklyApi.configure do |config|
54
+ # Configure API key authorization: ApiKey
55
+ config.api_key['Authorization'] = 'YOUR API KEY'
56
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
57
+ # config.api_key_prefix['Authorization'] = 'Bearer'
58
+ end
59
+
60
+ api_instance = LaunchDarklyApi::AIConfigsBetaApi.new
61
+ ld_api_version = 'beta' # String | Version of the endpoint.
62
+ project_key = 'project_key_example' # String |
63
+ graph_key = 'graph_key_example' # String |
64
+
65
+ begin
66
+ # Delete agent graph
67
+ api_instance.delete_agent_graph(ld_api_version, project_key, graph_key)
68
+ rescue LaunchDarklyApi::ApiError => e
69
+ puts "Error when calling AIConfigsBetaApi->delete_agent_graph: #{e}"
70
+ end
71
+ ```
72
+
73
+ #### Using the delete_agent_graph_with_http_info variant
74
+
75
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
76
+
77
+ > <Array(nil, Integer, Hash)> delete_agent_graph_with_http_info(ld_api_version, project_key, graph_key)
78
+
79
+ ```ruby
80
+ begin
81
+ # Delete agent graph
82
+ data, status_code, headers = api_instance.delete_agent_graph_with_http_info(ld_api_version, project_key, graph_key)
83
+ p status_code # => 2xx
84
+ p headers # => { ... }
85
+ p data # => nil
86
+ rescue LaunchDarklyApi::ApiError => e
87
+ puts "Error when calling AIConfigsBetaApi->delete_agent_graph_with_http_info: #{e}"
88
+ end
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ | Name | Type | Description | Notes |
94
+ | ---- | ---- | ----------- | ----- |
95
+ | **ld_api_version** | **String** | Version of the endpoint. | |
96
+ | **project_key** | **String** | | |
97
+ | **graph_key** | **String** | | |
98
+
99
+ ### Return type
100
+
101
+ nil (empty response body)
102
+
103
+ ### Authorization
104
+
105
+ [ApiKey](../README.md#ApiKey)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: Not defined
110
+ - **Accept**: application/json
111
+
112
+
34
113
  ## delete_ai_config
35
114
 
36
115
  > delete_ai_config(ld_api_version, project_key, config_key)
@@ -403,6 +482,81 @@ nil (empty response body)
403
482
  - **Accept**: application/json
404
483
 
405
484
 
485
+ ## get_agent_graph
486
+
487
+ > <AgentGraph> get_agent_graph(ld_api_version, project_key, graph_key)
488
+
489
+ Get agent graph
490
+
491
+ Retrieve a specific agent graph by its key, including its edges.
492
+
493
+ ### Examples
494
+
495
+ ```ruby
496
+ require 'time'
497
+ require 'launchdarkly_api'
498
+ # setup authorization
499
+ LaunchDarklyApi.configure do |config|
500
+ # Configure API key authorization: ApiKey
501
+ config.api_key['Authorization'] = 'YOUR API KEY'
502
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
503
+ # config.api_key_prefix['Authorization'] = 'Bearer'
504
+ end
505
+
506
+ api_instance = LaunchDarklyApi::AIConfigsBetaApi.new
507
+ ld_api_version = 'beta' # String | Version of the endpoint.
508
+ project_key = 'project_key_example' # String |
509
+ graph_key = 'graph_key_example' # String |
510
+
511
+ begin
512
+ # Get agent graph
513
+ result = api_instance.get_agent_graph(ld_api_version, project_key, graph_key)
514
+ p result
515
+ rescue LaunchDarklyApi::ApiError => e
516
+ puts "Error when calling AIConfigsBetaApi->get_agent_graph: #{e}"
517
+ end
518
+ ```
519
+
520
+ #### Using the get_agent_graph_with_http_info variant
521
+
522
+ This returns an Array which contains the response data, status code and headers.
523
+
524
+ > <Array(<AgentGraph>, Integer, Hash)> get_agent_graph_with_http_info(ld_api_version, project_key, graph_key)
525
+
526
+ ```ruby
527
+ begin
528
+ # Get agent graph
529
+ data, status_code, headers = api_instance.get_agent_graph_with_http_info(ld_api_version, project_key, graph_key)
530
+ p status_code # => 2xx
531
+ p headers # => { ... }
532
+ p data # => <AgentGraph>
533
+ rescue LaunchDarklyApi::ApiError => e
534
+ puts "Error when calling AIConfigsBetaApi->get_agent_graph_with_http_info: #{e}"
535
+ end
536
+ ```
537
+
538
+ ### Parameters
539
+
540
+ | Name | Type | Description | Notes |
541
+ | ---- | ---- | ----------- | ----- |
542
+ | **ld_api_version** | **String** | Version of the endpoint. | |
543
+ | **project_key** | **String** | | |
544
+ | **graph_key** | **String** | | |
545
+
546
+ ### Return type
547
+
548
+ [**AgentGraph**](AgentGraph.md)
549
+
550
+ ### Authorization
551
+
552
+ [ApiKey](../README.md#ApiKey)
553
+
554
+ ### HTTP request headers
555
+
556
+ - **Content-Type**: Not defined
557
+ - **Accept**: application/json
558
+
559
+
406
560
  ## get_ai_config
407
561
 
408
562
  > <AIConfig> get_ai_config(ld_api_version, project_key, config_key)
@@ -1025,6 +1179,85 @@ end
1025
1179
  - **Accept**: application/json
1026
1180
 
1027
1181
 
1182
+ ## list_agent_graphs
1183
+
1184
+ > <AgentGraphs> list_agent_graphs(ld_api_version, project_key, opts)
1185
+
1186
+ List agent graphs
1187
+
1188
+ Get a list of all agent graphs in the given project. Returns metadata only, without edge data.
1189
+
1190
+ ### Examples
1191
+
1192
+ ```ruby
1193
+ require 'time'
1194
+ require 'launchdarkly_api'
1195
+ # setup authorization
1196
+ LaunchDarklyApi.configure do |config|
1197
+ # Configure API key authorization: ApiKey
1198
+ config.api_key['Authorization'] = 'YOUR API KEY'
1199
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1200
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1201
+ end
1202
+
1203
+ api_instance = LaunchDarklyApi::AIConfigsBetaApi.new
1204
+ ld_api_version = 'beta' # String | Version of the endpoint.
1205
+ project_key = 'project_key_example' # String |
1206
+ opts = {
1207
+ limit: 56, # Integer | The number of AI Configs to return.
1208
+ offset: 56 # Integer | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`.
1209
+ }
1210
+
1211
+ begin
1212
+ # List agent graphs
1213
+ result = api_instance.list_agent_graphs(ld_api_version, project_key, opts)
1214
+ p result
1215
+ rescue LaunchDarklyApi::ApiError => e
1216
+ puts "Error when calling AIConfigsBetaApi->list_agent_graphs: #{e}"
1217
+ end
1218
+ ```
1219
+
1220
+ #### Using the list_agent_graphs_with_http_info variant
1221
+
1222
+ This returns an Array which contains the response data, status code and headers.
1223
+
1224
+ > <Array(<AgentGraphs>, Integer, Hash)> list_agent_graphs_with_http_info(ld_api_version, project_key, opts)
1225
+
1226
+ ```ruby
1227
+ begin
1228
+ # List agent graphs
1229
+ data, status_code, headers = api_instance.list_agent_graphs_with_http_info(ld_api_version, project_key, opts)
1230
+ p status_code # => 2xx
1231
+ p headers # => { ... }
1232
+ p data # => <AgentGraphs>
1233
+ rescue LaunchDarklyApi::ApiError => e
1234
+ puts "Error when calling AIConfigsBetaApi->list_agent_graphs_with_http_info: #{e}"
1235
+ end
1236
+ ```
1237
+
1238
+ ### Parameters
1239
+
1240
+ | Name | Type | Description | Notes |
1241
+ | ---- | ---- | ----------- | ----- |
1242
+ | **ld_api_version** | **String** | Version of the endpoint. | |
1243
+ | **project_key** | **String** | | |
1244
+ | **limit** | **Integer** | The number of AI Configs to return. | [optional] |
1245
+ | **offset** | **Integer** | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query &#x60;limit&#x60;. | [optional] |
1246
+
1247
+ ### Return type
1248
+
1249
+ [**AgentGraphs**](AgentGraphs.md)
1250
+
1251
+ ### Authorization
1252
+
1253
+ [ApiKey](../README.md#ApiKey)
1254
+
1255
+ ### HTTP request headers
1256
+
1257
+ - **Content-Type**: Not defined
1258
+ - **Accept**: application/json
1259
+
1260
+
1028
1261
  ## list_ai_tool_versions
1029
1262
 
1030
1263
  > <AITools> list_ai_tool_versions(ld_api_version, project_key, tool_key, opts)
@@ -1268,6 +1501,85 @@ end
1268
1501
  - **Accept**: application/json
1269
1502
 
1270
1503
 
1504
+ ## patch_agent_graph
1505
+
1506
+ > <AgentGraph> patch_agent_graph(ld_api_version, project_key, graph_key, opts)
1507
+
1508
+ Update agent graph
1509
+
1510
+ 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.
1511
+
1512
+ ### Examples
1513
+
1514
+ ```ruby
1515
+ require 'time'
1516
+ require 'launchdarkly_api'
1517
+ # setup authorization
1518
+ LaunchDarklyApi.configure do |config|
1519
+ # Configure API key authorization: ApiKey
1520
+ config.api_key['Authorization'] = 'YOUR API KEY'
1521
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1522
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1523
+ end
1524
+
1525
+ api_instance = LaunchDarklyApi::AIConfigsBetaApi.new
1526
+ ld_api_version = 'beta' # String | Version of the endpoint.
1527
+ project_key = 'project_key_example' # String |
1528
+ graph_key = 'graph_key_example' # String |
1529
+ opts = {
1530
+ agent_graph_patch: LaunchDarklyApi::AgentGraphPatch.new # AgentGraphPatch | Agent graph object to update
1531
+ }
1532
+
1533
+ begin
1534
+ # Update agent graph
1535
+ result = api_instance.patch_agent_graph(ld_api_version, project_key, graph_key, opts)
1536
+ p result
1537
+ rescue LaunchDarklyApi::ApiError => e
1538
+ puts "Error when calling AIConfigsBetaApi->patch_agent_graph: #{e}"
1539
+ end
1540
+ ```
1541
+
1542
+ #### Using the patch_agent_graph_with_http_info variant
1543
+
1544
+ This returns an Array which contains the response data, status code and headers.
1545
+
1546
+ > <Array(<AgentGraph>, Integer, Hash)> patch_agent_graph_with_http_info(ld_api_version, project_key, graph_key, opts)
1547
+
1548
+ ```ruby
1549
+ begin
1550
+ # Update agent graph
1551
+ data, status_code, headers = api_instance.patch_agent_graph_with_http_info(ld_api_version, project_key, graph_key, opts)
1552
+ p status_code # => 2xx
1553
+ p headers # => { ... }
1554
+ p data # => <AgentGraph>
1555
+ rescue LaunchDarklyApi::ApiError => e
1556
+ puts "Error when calling AIConfigsBetaApi->patch_agent_graph_with_http_info: #{e}"
1557
+ end
1558
+ ```
1559
+
1560
+ ### Parameters
1561
+
1562
+ | Name | Type | Description | Notes |
1563
+ | ---- | ---- | ----------- | ----- |
1564
+ | **ld_api_version** | **String** | Version of the endpoint. | |
1565
+ | **project_key** | **String** | | |
1566
+ | **graph_key** | **String** | | |
1567
+ | **agent_graph_patch** | [**AgentGraphPatch**](AgentGraphPatch.md) | Agent graph object to update | [optional] |
1568
+
1569
+ ### Return type
1570
+
1571
+ [**AgentGraph**](AgentGraph.md)
1572
+
1573
+ ### Authorization
1574
+
1575
+ [ApiKey](../README.md#ApiKey)
1576
+
1577
+ ### HTTP request headers
1578
+
1579
+ - **Content-Type**: application/json
1580
+ - **Accept**: application/json
1581
+
1582
+
1271
1583
  ## patch_ai_config
1272
1584
 
1273
1585
  > <AIConfig> patch_ai_config(ld_api_version, project_key, config_key, opts)
@@ -1586,6 +1898,81 @@ end
1586
1898
  - **Accept**: application/json
1587
1899
 
1588
1900
 
1901
+ ## post_agent_graph
1902
+
1903
+ > <AgentGraph> post_agent_graph(ld_api_version, project_key, agent_graph_post)
1904
+
1905
+ Create new agent graph
1906
+
1907
+ Create a new agent graph within the given project.
1908
+
1909
+ ### Examples
1910
+
1911
+ ```ruby
1912
+ require 'time'
1913
+ require 'launchdarkly_api'
1914
+ # setup authorization
1915
+ LaunchDarklyApi.configure do |config|
1916
+ # Configure API key authorization: ApiKey
1917
+ config.api_key['Authorization'] = 'YOUR API KEY'
1918
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1919
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1920
+ end
1921
+
1922
+ api_instance = LaunchDarklyApi::AIConfigsBetaApi.new
1923
+ ld_api_version = 'beta' # String | Version of the endpoint.
1924
+ project_key = 'project_key_example' # String |
1925
+ agent_graph_post = LaunchDarklyApi::AgentGraphPost.new({key: 'key_example', name: 'name_example'}) # AgentGraphPost | Agent graph object to create
1926
+
1927
+ begin
1928
+ # Create new agent graph
1929
+ result = api_instance.post_agent_graph(ld_api_version, project_key, agent_graph_post)
1930
+ p result
1931
+ rescue LaunchDarklyApi::ApiError => e
1932
+ puts "Error when calling AIConfigsBetaApi->post_agent_graph: #{e}"
1933
+ end
1934
+ ```
1935
+
1936
+ #### Using the post_agent_graph_with_http_info variant
1937
+
1938
+ This returns an Array which contains the response data, status code and headers.
1939
+
1940
+ > <Array(<AgentGraph>, Integer, Hash)> post_agent_graph_with_http_info(ld_api_version, project_key, agent_graph_post)
1941
+
1942
+ ```ruby
1943
+ begin
1944
+ # Create new agent graph
1945
+ data, status_code, headers = api_instance.post_agent_graph_with_http_info(ld_api_version, project_key, agent_graph_post)
1946
+ p status_code # => 2xx
1947
+ p headers # => { ... }
1948
+ p data # => <AgentGraph>
1949
+ rescue LaunchDarklyApi::ApiError => e
1950
+ puts "Error when calling AIConfigsBetaApi->post_agent_graph_with_http_info: #{e}"
1951
+ end
1952
+ ```
1953
+
1954
+ ### Parameters
1955
+
1956
+ | Name | Type | Description | Notes |
1957
+ | ---- | ---- | ----------- | ----- |
1958
+ | **ld_api_version** | **String** | Version of the endpoint. | |
1959
+ | **project_key** | **String** | | |
1960
+ | **agent_graph_post** | [**AgentGraphPost**](AgentGraphPost.md) | Agent graph object to create | |
1961
+
1962
+ ### Return type
1963
+
1964
+ [**AgentGraph**](AgentGraph.md)
1965
+
1966
+ ### Authorization
1967
+
1968
+ [ApiKey](../README.md#ApiKey)
1969
+
1970
+ ### HTTP request headers
1971
+
1972
+ - **Content-Type**: application/json
1973
+ - **Accept**: application/json
1974
+
1975
+
1589
1976
  ## post_ai_config
1590
1977
 
1591
1978
  > <AIConfig> post_ai_config(ld_api_version, project_key, ai_config_post)