launchdarkly_api 3.1.0 → 3.4.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.
- checksums.yaml +4 -4
- data/README.md +177 -163
- data/docs/AccessTokensApi.md +333 -0
- data/docs/AuditLogApi.md +4 -4
- data/docs/FeatureFlag.md +2 -2
- data/docs/FeatureFlagsApi.md +8 -8
- data/docs/SemanticPatchOperation.md +9 -0
- data/docs/SemanticPatchOperationInstructions.md +8 -0
- data/docs/StreamUsageSeries.md +2 -2
- data/docs/TeamMembersApi.md +2 -2
- data/docs/Token.md +22 -0
- data/docs/TokenBody.md +13 -0
- data/docs/Tokens.md +9 -0
- data/docs/UserSegment.md +1 -1
- data/docs/UserSegmentsApi.md +121 -0
- data/docs/UserSettingsApi.md +4 -4
- data/docs/UserTargetingExpirationForFlag.md +1 -1
- data/docs/UserTargetingExpirationForSegment.md +14 -0
- data/docs/UsersApi.md +2 -2
- data/docs/Variation.md +1 -0
- data/launchdarkly_api.gemspec +1 -1
- data/lib/launchdarkly_api.rb +8 -1
- data/lib/launchdarkly_api/api/access_tokens_api.rb +340 -0
- data/lib/launchdarkly_api/api/audit_log_api.rb +5 -5
- data/lib/launchdarkly_api/api/custom_roles_api.rb +1 -1
- data/lib/launchdarkly_api/api/customer_metrics_api.rb +1 -1
- data/lib/launchdarkly_api/api/data_export_destinations_api.rb +1 -1
- data/lib/launchdarkly_api/api/environments_api.rb +1 -1
- data/lib/launchdarkly_api/api/feature_flags_api.rb +15 -15
- data/lib/launchdarkly_api/api/projects_api.rb +1 -1
- data/lib/launchdarkly_api/api/root_api.rb +1 -1
- data/lib/launchdarkly_api/api/team_members_api.rb +4 -4
- data/lib/launchdarkly_api/api/user_segments_api.rb +135 -1
- data/lib/launchdarkly_api/api/user_settings_api.rb +10 -10
- data/lib/launchdarkly_api/api/users_api.rb +3 -3
- data/lib/launchdarkly_api/api/webhooks_api.rb +1 -1
- data/lib/launchdarkly_api/api_client.rb +1 -1
- data/lib/launchdarkly_api/api_error.rb +1 -1
- data/lib/launchdarkly_api/configuration.rb +1 -1
- data/lib/launchdarkly_api/models/audit_log_entries.rb +1 -1
- data/lib/launchdarkly_api/models/audit_log_entry.rb +1 -1
- data/lib/launchdarkly_api/models/audit_log_entry_target.rb +1 -1
- data/lib/launchdarkly_api/models/clause.rb +1 -1
- data/lib/launchdarkly_api/models/copy_actions.rb +1 -1
- data/lib/launchdarkly_api/models/custom_property.rb +1 -1
- data/lib/launchdarkly_api/models/custom_property_values.rb +1 -1
- data/lib/launchdarkly_api/models/custom_role.rb +1 -1
- data/lib/launchdarkly_api/models/custom_role_body.rb +1 -1
- data/lib/launchdarkly_api/models/custom_roles.rb +1 -1
- data/lib/launchdarkly_api/models/defaults.rb +1 -1
- data/lib/launchdarkly_api/models/destination.rb +1 -1
- data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +1 -1
- data/lib/launchdarkly_api/models/destination_body.rb +1 -1
- data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +1 -1
- data/lib/launchdarkly_api/models/destination_m_particle.rb +1 -1
- data/lib/launchdarkly_api/models/destination_segment.rb +1 -1
- data/lib/launchdarkly_api/models/destinations.rb +1 -1
- data/lib/launchdarkly_api/models/environment.rb +1 -1
- data/lib/launchdarkly_api/models/environment_post.rb +1 -1
- data/lib/launchdarkly_api/models/evaluation_usage_error.rb +1 -1
- data/lib/launchdarkly_api/models/events.rb +1 -1
- data/lib/launchdarkly_api/models/fallthrough.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag.rb +3 -3
- data/lib/launchdarkly_api/models/feature_flag_body.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_config.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_status.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_statuses.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flags.rb +1 -1
- data/lib/launchdarkly_api/models/flag_list_item.rb +1 -1
- data/lib/launchdarkly_api/models/id.rb +1 -1
- data/lib/launchdarkly_api/models/link.rb +1 -1
- data/lib/launchdarkly_api/models/links.rb +1 -1
- data/lib/launchdarkly_api/models/ma_uby_category.rb +1 -1
- data/lib/launchdarkly_api/models/mau.rb +1 -1
- data/lib/launchdarkly_api/models/mau_metadata.rb +1 -1
- data/lib/launchdarkly_api/models/member.rb +1 -1
- data/lib/launchdarkly_api/models/members.rb +1 -1
- data/lib/launchdarkly_api/models/members_body.rb +1 -1
- data/lib/launchdarkly_api/models/patch_comment.rb +1 -1
- data/lib/launchdarkly_api/models/patch_operation.rb +1 -1
- data/lib/launchdarkly_api/models/policy.rb +1 -1
- data/lib/launchdarkly_api/models/prerequisite.rb +1 -1
- data/lib/launchdarkly_api/models/project.rb +1 -1
- data/lib/launchdarkly_api/models/project_body.rb +1 -1
- data/lib/launchdarkly_api/models/projects.rb +1 -1
- data/lib/launchdarkly_api/models/role.rb +1 -1
- data/lib/launchdarkly_api/models/rollout.rb +1 -1
- data/lib/launchdarkly_api/models/rule.rb +1 -1
- data/lib/launchdarkly_api/models/semantic_patch_operation.rb +199 -0
- data/lib/launchdarkly_api/models/semantic_patch_operation_instructions.rb +184 -0
- data/lib/launchdarkly_api/models/site.rb +1 -1
- data/lib/launchdarkly_api/models/statement.rb +1 -1
- data/lib/launchdarkly_api/models/stream.rb +1 -1
- data/lib/launchdarkly_api/models/stream_by_sdk.rb +1 -1
- data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +1 -1
- data/lib/launchdarkly_api/models/stream_by_sdk_links_metadata.rb +1 -1
- data/lib/launchdarkly_api/models/stream_links.rb +1 -1
- data/lib/launchdarkly_api/models/stream_sdk_version.rb +1 -1
- data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_error.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_links.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_metadata.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_series.rb +3 -3
- data/lib/launchdarkly_api/models/streams.rb +1 -1
- data/lib/launchdarkly_api/models/target.rb +1 -1
- data/lib/launchdarkly_api/models/token.rb +322 -0
- data/lib/launchdarkly_api/models/token_body.rb +237 -0
- data/lib/launchdarkly_api/models/tokens.rb +194 -0
- data/lib/launchdarkly_api/models/usage.rb +1 -1
- data/lib/launchdarkly_api/models/usage_error.rb +1 -1
- data/lib/launchdarkly_api/models/usage_links.rb +1 -1
- data/lib/launchdarkly_api/models/user.rb +1 -1
- data/lib/launchdarkly_api/models/user_flag_setting.rb +1 -1
- data/lib/launchdarkly_api/models/user_flag_settings.rb +1 -1
- data/lib/launchdarkly_api/models/user_record.rb +1 -1
- data/lib/launchdarkly_api/models/user_segment.rb +2 -2
- data/lib/launchdarkly_api/models/user_segment_body.rb +1 -1
- data/lib/launchdarkly_api/models/user_segment_rule.rb +1 -1
- data/lib/launchdarkly_api/models/user_segments.rb +1 -1
- data/lib/launchdarkly_api/models/user_settings_body.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_flag.rb +2 -2
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_flags.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_segment.rb +240 -0
- data/lib/launchdarkly_api/models/user_targeting_expiration_on_flags_for_user.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_resource_id_for_flag.rb +1 -1
- data/lib/launchdarkly_api/models/users.rb +1 -1
- data/lib/launchdarkly_api/models/variation.rb +11 -2
- data/lib/launchdarkly_api/models/webhook.rb +1 -1
- data/lib/launchdarkly_api/models/webhook_body.rb +1 -1
- data/lib/launchdarkly_api/models/webhooks.rb +1 -1
- data/lib/launchdarkly_api/models/weighted_variation.rb +1 -1
- data/lib/launchdarkly_api/version.rb +2 -2
- data/openapi.yml +355 -17
- data/spec/api/access_tokens_api_spec.rb +103 -0
- data/spec/api/audit_log_api_spec.rb +3 -3
- data/spec/api/custom_roles_api_spec.rb +1 -1
- data/spec/api/customer_metrics_api_spec.rb +1 -1
- data/spec/api/data_export_destinations_api_spec.rb +1 -1
- data/spec/api/environments_api_spec.rb +1 -1
- data/spec/api/feature_flags_api_spec.rb +4 -4
- data/spec/api/projects_api_spec.rb +1 -1
- data/spec/api/root_api_spec.rb +1 -1
- data/spec/api/team_members_api_spec.rb +2 -2
- data/spec/api/user_segments_api_spec.rb +28 -1
- data/spec/api/user_settings_api_spec.rb +2 -2
- data/spec/api/users_api_spec.rb +2 -2
- data/spec/api/webhooks_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/audit_log_entries_spec.rb +1 -1
- data/spec/models/audit_log_entry_spec.rb +1 -1
- data/spec/models/audit_log_entry_target_spec.rb +1 -1
- data/spec/models/clause_spec.rb +1 -1
- data/spec/models/copy_actions_spec.rb +1 -1
- data/spec/models/custom_property_spec.rb +1 -1
- data/spec/models/custom_property_values_spec.rb +1 -1
- data/spec/models/custom_role_body_spec.rb +1 -1
- data/spec/models/custom_role_spec.rb +1 -1
- data/spec/models/custom_roles_spec.rb +1 -1
- data/spec/models/defaults_spec.rb +1 -1
- data/spec/models/destination_amazon_kinesis_spec.rb +1 -1
- data/spec/models/destination_body_spec.rb +1 -1
- data/spec/models/destination_google_pub_sub_spec.rb +1 -1
- data/spec/models/destination_m_particle_spec.rb +1 -1
- data/spec/models/destination_segment_spec.rb +1 -1
- data/spec/models/destination_spec.rb +1 -1
- data/spec/models/destinations_spec.rb +1 -1
- data/spec/models/environment_post_spec.rb +1 -1
- data/spec/models/environment_spec.rb +1 -1
- data/spec/models/evaluation_usage_error_spec.rb +1 -1
- data/spec/models/events_spec.rb +1 -1
- data/spec/models/fallthrough_spec.rb +1 -1
- data/spec/models/feature_flag_body_spec.rb +1 -1
- data/spec/models/feature_flag_config_spec.rb +1 -1
- data/spec/models/feature_flag_copy_body_spec.rb +1 -1
- data/spec/models/feature_flag_copy_object_spec.rb +1 -1
- data/spec/models/feature_flag_spec.rb +1 -1
- data/spec/models/feature_flag_status_across_environments_spec.rb +1 -1
- data/spec/models/feature_flag_status_for_queried_environment_spec.rb +1 -1
- data/spec/models/feature_flag_status_spec.rb +1 -1
- data/spec/models/feature_flag_statuses_spec.rb +1 -1
- data/spec/models/feature_flags_spec.rb +1 -1
- data/spec/models/flag_list_item_spec.rb +1 -1
- data/spec/models/id_spec.rb +1 -1
- data/spec/models/link_spec.rb +1 -1
- data/spec/models/links_spec.rb +1 -1
- data/spec/models/ma_uby_category_spec.rb +1 -1
- data/spec/models/mau_metadata_spec.rb +1 -1
- data/spec/models/mau_spec.rb +1 -1
- data/spec/models/member_spec.rb +1 -1
- data/spec/models/members_body_spec.rb +1 -1
- data/spec/models/members_spec.rb +1 -1
- data/spec/models/patch_comment_spec.rb +1 -1
- data/spec/models/patch_operation_spec.rb +1 -1
- data/spec/models/policy_spec.rb +1 -1
- data/spec/models/prerequisite_spec.rb +1 -1
- data/spec/models/project_body_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/projects_spec.rb +1 -1
- data/spec/models/role_spec.rb +1 -1
- data/spec/models/rollout_spec.rb +1 -1
- data/spec/models/rule_spec.rb +1 -1
- data/spec/models/semantic_patch_operation_instructions_spec.rb +41 -0
- data/spec/models/semantic_patch_operation_spec.rb +47 -0
- data/spec/models/site_spec.rb +1 -1
- data/spec/models/statement_spec.rb +1 -1
- data/spec/models/stream_by_sdk_links_metadata_spec.rb +1 -1
- data/spec/models/stream_by_sdk_links_spec.rb +1 -1
- data/spec/models/stream_by_sdk_spec.rb +1 -1
- data/spec/models/stream_links_spec.rb +1 -1
- data/spec/models/stream_sdk_version_data_spec.rb +1 -1
- data/spec/models/stream_sdk_version_spec.rb +1 -1
- data/spec/models/stream_spec.rb +1 -1
- data/spec/models/stream_usage_error_spec.rb +1 -1
- data/spec/models/stream_usage_links_spec.rb +1 -1
- data/spec/models/stream_usage_metadata_spec.rb +1 -1
- data/spec/models/stream_usage_series_spec.rb +1 -1
- data/spec/models/streams_spec.rb +1 -1
- data/spec/models/target_spec.rb +1 -1
- data/spec/models/token_body_spec.rb +71 -0
- data/spec/models/token_spec.rb +125 -0
- data/spec/models/tokens_spec.rb +47 -0
- data/spec/models/usage_error_spec.rb +1 -1
- data/spec/models/usage_links_spec.rb +1 -1
- data/spec/models/usage_spec.rb +1 -1
- data/spec/models/user_flag_setting_spec.rb +1 -1
- data/spec/models/user_flag_settings_spec.rb +1 -1
- data/spec/models/user_record_spec.rb +1 -1
- data/spec/models/user_segment_body_spec.rb +1 -1
- data/spec/models/user_segment_rule_spec.rb +1 -1
- data/spec/models/user_segment_spec.rb +1 -1
- data/spec/models/user_segments_spec.rb +1 -1
- data/spec/models/user_settings_body_spec.rb +1 -1
- data/spec/models/user_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_for_flag_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_for_flags_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_for_segment_spec.rb +77 -0
- data/spec/models/user_targeting_expiration_on_flags_for_user_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_resource_id_for_flag_spec.rb +1 -1
- data/spec/models/users_spec.rb +1 -1
- data/spec/models/variation_spec.rb +7 -1
- data/spec/models/webhook_body_spec.rb +1 -1
- data/spec/models/webhook_spec.rb +1 -1
- data/spec/models/webhooks_spec.rb +1 -1
- data/spec/models/weighted_variation_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +114 -86
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 3.
|
|
6
|
+
OpenAPI spec version: 3.4.0
|
|
7
7
|
Contact: support@launchdarkly.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.8
|
|
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.8
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module LaunchDarklyApi
|
|
14
|
-
VERSION = '3.
|
|
14
|
+
VERSION = '3.4.0'
|
|
15
15
|
end
|
data/openapi.yml
CHANGED
|
@@ -10,7 +10,7 @@ info:
|
|
|
10
10
|
license:
|
|
11
11
|
name: Apache 2.0
|
|
12
12
|
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
|
|
13
|
-
version: 3.
|
|
13
|
+
version: 3.4.0
|
|
14
14
|
host: app.launchdarkly.com
|
|
15
15
|
basePath: /api/v2
|
|
16
16
|
schemes:
|
|
@@ -381,7 +381,7 @@ paths:
|
|
|
381
381
|
- $ref: '#/parameters/ProjectKey'
|
|
382
382
|
- $ref: '#/parameters/EnvironmentKey'
|
|
383
383
|
- $ref: '#/parameters/FeatureFlagKey'
|
|
384
|
-
- $ref: '#/parameters/
|
|
384
|
+
- $ref: '#/parameters/SemanticPatchWithComment'
|
|
385
385
|
responses:
|
|
386
386
|
'200':
|
|
387
387
|
description: User targeting expirations on feature flag response.
|
|
@@ -486,6 +486,48 @@ paths:
|
|
|
486
486
|
$ref: '#/responses/Standard404'
|
|
487
487
|
tags:
|
|
488
488
|
- User segments
|
|
489
|
+
'/segments/{projectKey}/{userSegmentKey}/expiring-user-targets/{environmentKey}':
|
|
490
|
+
get:
|
|
491
|
+
summary: Get expiring user targets for user segment
|
|
492
|
+
operationId: getExpiringUserTargetsOnSegment
|
|
493
|
+
parameters:
|
|
494
|
+
- $ref: '#/parameters/ProjectKey'
|
|
495
|
+
- $ref: '#/parameters/EnvironmentKey'
|
|
496
|
+
- $ref: '#/parameters/UserSegmentKey'
|
|
497
|
+
responses:
|
|
498
|
+
'200':
|
|
499
|
+
description: User targeting expirations on user segment response.
|
|
500
|
+
schema:
|
|
501
|
+
$ref: '#/definitions/UserTargetingExpirationForSegment'
|
|
502
|
+
'401':
|
|
503
|
+
$ref: '#/responses/Standard401'
|
|
504
|
+
'404':
|
|
505
|
+
$ref: '#/responses/Standard404'
|
|
506
|
+
tags:
|
|
507
|
+
- User segments
|
|
508
|
+
patch:
|
|
509
|
+
summary: 'Update, add, or delete expiring user targets on user segment'
|
|
510
|
+
operationId: patchExpiringUserTargetsOnSegment
|
|
511
|
+
parameters:
|
|
512
|
+
- $ref: '#/parameters/ProjectKey'
|
|
513
|
+
- $ref: '#/parameters/EnvironmentKey'
|
|
514
|
+
- $ref: '#/parameters/UserSegmentKey'
|
|
515
|
+
- $ref: '#/parameters/SemanticPatchWithComment'
|
|
516
|
+
responses:
|
|
517
|
+
'200':
|
|
518
|
+
description: User targeting expirations on user segment response.
|
|
519
|
+
schema:
|
|
520
|
+
$ref: '#/definitions/UserTargetingExpirationForSegment'
|
|
521
|
+
'400':
|
|
522
|
+
$ref: '#/responses/Standard400'
|
|
523
|
+
'401':
|
|
524
|
+
$ref: '#/responses/Standard401'
|
|
525
|
+
'404':
|
|
526
|
+
$ref: '#/responses/Standard404'
|
|
527
|
+
'409':
|
|
528
|
+
$ref: '#/responses/Standard409'
|
|
529
|
+
tags:
|
|
530
|
+
- User segments
|
|
489
531
|
'/users/{projectKey}/{environmentKey}':
|
|
490
532
|
get:
|
|
491
533
|
summary: >-
|
|
@@ -655,7 +697,7 @@ paths:
|
|
|
655
697
|
- $ref: '#/parameters/ProjectKey'
|
|
656
698
|
- $ref: '#/parameters/EnvironmentKey'
|
|
657
699
|
- $ref: '#/parameters/UserKey'
|
|
658
|
-
- $ref: '#/parameters/
|
|
700
|
+
- $ref: '#/parameters/SemanticPatchWithComment'
|
|
659
701
|
responses:
|
|
660
702
|
'200':
|
|
661
703
|
description: User Targeting expiration for single user on all flags response.
|
|
@@ -1200,6 +1242,105 @@ paths:
|
|
|
1200
1242
|
$ref: '#/responses/EvaluationUsage404'
|
|
1201
1243
|
tags:
|
|
1202
1244
|
- Customer Metrics
|
|
1245
|
+
/tokens:
|
|
1246
|
+
get:
|
|
1247
|
+
summary: Returns a list of tokens in the account.
|
|
1248
|
+
operationId: getTokens
|
|
1249
|
+
parameters:
|
|
1250
|
+
- $ref: '#/parameters/TokenShowAllQuery'
|
|
1251
|
+
responses:
|
|
1252
|
+
'200':
|
|
1253
|
+
description: Tokens response.
|
|
1254
|
+
schema:
|
|
1255
|
+
$ref: '#/definitions/Tokens'
|
|
1256
|
+
'401':
|
|
1257
|
+
$ref: '#/responses/Standard401'
|
|
1258
|
+
tags:
|
|
1259
|
+
- Access tokens
|
|
1260
|
+
post:
|
|
1261
|
+
summary: Create a new token.
|
|
1262
|
+
operationId: postToken
|
|
1263
|
+
parameters:
|
|
1264
|
+
- $ref: '#/parameters/TokensPostRequest'
|
|
1265
|
+
responses:
|
|
1266
|
+
'201':
|
|
1267
|
+
description: Token response.
|
|
1268
|
+
schema:
|
|
1269
|
+
$ref: '#/definitions/Token'
|
|
1270
|
+
'400':
|
|
1271
|
+
$ref: '#/responses/Standard400'
|
|
1272
|
+
'401':
|
|
1273
|
+
$ref: '#/responses/Standard401'
|
|
1274
|
+
'409':
|
|
1275
|
+
$ref: '#/responses/Standard409'
|
|
1276
|
+
tags:
|
|
1277
|
+
- Access tokens
|
|
1278
|
+
'/tokens/{tokenId}':
|
|
1279
|
+
get:
|
|
1280
|
+
summary: Get a single access token by ID.
|
|
1281
|
+
operationId: getToken
|
|
1282
|
+
parameters:
|
|
1283
|
+
- $ref: '#/parameters/TokenId'
|
|
1284
|
+
responses:
|
|
1285
|
+
'200':
|
|
1286
|
+
$ref: '#/responses/Token2xx'
|
|
1287
|
+
'400':
|
|
1288
|
+
$ref: '#/responses/Standard400'
|
|
1289
|
+
'401':
|
|
1290
|
+
$ref: '#/responses/Standard401'
|
|
1291
|
+
tags:
|
|
1292
|
+
- Access tokens
|
|
1293
|
+
patch:
|
|
1294
|
+
summary: Modify an access tokenby ID.
|
|
1295
|
+
operationId: patchToken
|
|
1296
|
+
parameters:
|
|
1297
|
+
- $ref: '#/parameters/TokenId'
|
|
1298
|
+
- $ref: '#/parameters/PatchRequest'
|
|
1299
|
+
responses:
|
|
1300
|
+
'200':
|
|
1301
|
+
$ref: '#/responses/Token2xx'
|
|
1302
|
+
'400':
|
|
1303
|
+
$ref: '#/responses/Standard400'
|
|
1304
|
+
'401':
|
|
1305
|
+
$ref: '#/responses/Standard401'
|
|
1306
|
+
'404':
|
|
1307
|
+
$ref: '#/responses/Standard404'
|
|
1308
|
+
'409':
|
|
1309
|
+
$ref: '#/responses/Standard409'
|
|
1310
|
+
tags:
|
|
1311
|
+
- Access tokens
|
|
1312
|
+
delete:
|
|
1313
|
+
summary: Delete an access token by ID.
|
|
1314
|
+
operationId: deleteToken
|
|
1315
|
+
parameters:
|
|
1316
|
+
- $ref: '#/parameters/TokenId'
|
|
1317
|
+
responses:
|
|
1318
|
+
'204':
|
|
1319
|
+
$ref: '#/responses/Standard204'
|
|
1320
|
+
'401':
|
|
1321
|
+
$ref: '#/responses/Standard401'
|
|
1322
|
+
'404':
|
|
1323
|
+
$ref: '#/responses/Standard404'
|
|
1324
|
+
tags:
|
|
1325
|
+
- Access tokens
|
|
1326
|
+
'/tokens/{tokenId}/reset':
|
|
1327
|
+
post:
|
|
1328
|
+
summary: >-
|
|
1329
|
+
Reset an access token's secret key with an optional expiry time for the
|
|
1330
|
+
old key.
|
|
1331
|
+
operationId: resetToken
|
|
1332
|
+
parameters:
|
|
1333
|
+
- $ref: '#/parameters/TokenId'
|
|
1334
|
+
- $ref: '#/parameters/TokenExpiry'
|
|
1335
|
+
responses:
|
|
1336
|
+
'200':
|
|
1337
|
+
$ref: '#/responses/Token2xx'
|
|
1338
|
+
'400':
|
|
1339
|
+
$ref: '#/responses/Standard400'
|
|
1340
|
+
'401':
|
|
1341
|
+
$ref: '#/responses/Standard401'
|
|
1342
|
+
tags:
|
|
1343
|
+
- Access tokens
|
|
1203
1344
|
/:
|
|
1204
1345
|
get:
|
|
1205
1346
|
description: >-
|
|
@@ -1303,7 +1444,7 @@ definitions:
|
|
|
1303
1444
|
description: Whether the feature flag is a boolean flag or multivariate.
|
|
1304
1445
|
example: boolean
|
|
1305
1446
|
creationDate:
|
|
1306
|
-
type:
|
|
1447
|
+
type: integer
|
|
1307
1448
|
format: int64
|
|
1308
1449
|
description: >-
|
|
1309
1450
|
A unix epoch time in milliseconds specifying the creation time of this
|
|
@@ -1368,7 +1509,7 @@ definitions:
|
|
|
1368
1509
|
additionalProperties:
|
|
1369
1510
|
$ref: '#/definitions/FeatureFlagConfig'
|
|
1370
1511
|
archivedDate:
|
|
1371
|
-
type:
|
|
1512
|
+
type: integer
|
|
1372
1513
|
format: int64
|
|
1373
1514
|
description: >-
|
|
1374
1515
|
A unix epoch time in milliseconds specifying the archived time of this
|
|
@@ -1547,6 +1688,9 @@ definitions:
|
|
|
1547
1688
|
required:
|
|
1548
1689
|
- value
|
|
1549
1690
|
properties:
|
|
1691
|
+
_id:
|
|
1692
|
+
type: string
|
|
1693
|
+
example: 24b32dd3-0ba6-46ee-86af-230eebf3c7cb
|
|
1550
1694
|
name:
|
|
1551
1695
|
type: string
|
|
1552
1696
|
example: 'True'
|
|
@@ -1686,7 +1830,9 @@ definitions:
|
|
|
1686
1830
|
properties:
|
|
1687
1831
|
expirationDate:
|
|
1688
1832
|
type: integer
|
|
1689
|
-
|
|
1833
|
+
format: int64
|
|
1834
|
+
description: Unix epoch time in milliseconds specifying the expiration date
|
|
1835
|
+
example: 1735689600000
|
|
1690
1836
|
variationId:
|
|
1691
1837
|
type: string
|
|
1692
1838
|
description: the ID of the variation that the user is targeted on a flag
|
|
@@ -1701,6 +1847,30 @@ definitions:
|
|
|
1701
1847
|
$ref: '#/definitions/Links'
|
|
1702
1848
|
_version:
|
|
1703
1849
|
type: integer
|
|
1850
|
+
UserTargetingExpirationForSegment:
|
|
1851
|
+
type: object
|
|
1852
|
+
properties:
|
|
1853
|
+
expirationDate:
|
|
1854
|
+
type: integer
|
|
1855
|
+
format: int64
|
|
1856
|
+
description: Unix epoch time in milliseconds specifying the expiration date
|
|
1857
|
+
example: 1735689600000
|
|
1858
|
+
targetType:
|
|
1859
|
+
type: string
|
|
1860
|
+
description: >-
|
|
1861
|
+
either the included or excluded variation that the user is targeted on
|
|
1862
|
+
a segment
|
|
1863
|
+
userKey:
|
|
1864
|
+
type: string
|
|
1865
|
+
description: Unique identifier for the user
|
|
1866
|
+
_id:
|
|
1867
|
+
type: string
|
|
1868
|
+
_resourceId:
|
|
1869
|
+
$ref: '#/definitions/UserTargetingExpirationResourceIdForFlag'
|
|
1870
|
+
_links:
|
|
1871
|
+
$ref: '#/definitions/Links'
|
|
1872
|
+
_version:
|
|
1873
|
+
type: integer
|
|
1704
1874
|
UserTargetingExpirationResourceIdForFlag:
|
|
1705
1875
|
type: object
|
|
1706
1876
|
properties:
|
|
@@ -1742,7 +1912,7 @@ definitions:
|
|
|
1742
1912
|
- ops
|
|
1743
1913
|
description: An array of tags for this user segment.
|
|
1744
1914
|
creationDate:
|
|
1745
|
-
type:
|
|
1915
|
+
type: integer
|
|
1746
1916
|
format: int64
|
|
1747
1917
|
description: >-
|
|
1748
1918
|
A unix epoch time in milliseconds specifying the creation time of this
|
|
@@ -2061,7 +2231,6 @@ definitions:
|
|
|
2061
2231
|
properties:
|
|
2062
2232
|
lastPing:
|
|
2063
2233
|
type: string
|
|
2064
|
-
format: int64
|
|
2065
2234
|
example: '2015-03-03T02:37:22.492Z'
|
|
2066
2235
|
environmentId:
|
|
2067
2236
|
type: string
|
|
@@ -2315,13 +2484,32 @@ definitions:
|
|
|
2315
2484
|
example: replace
|
|
2316
2485
|
path:
|
|
2317
2486
|
type: string
|
|
2318
|
-
example: /
|
|
2487
|
+
example: /name
|
|
2319
2488
|
value:
|
|
2320
2489
|
type: object
|
|
2490
|
+
example: My resource name
|
|
2321
2491
|
required:
|
|
2322
2492
|
- op
|
|
2323
2493
|
- path
|
|
2324
2494
|
- value
|
|
2495
|
+
SemanticPatchOperation:
|
|
2496
|
+
type: object
|
|
2497
|
+
properties:
|
|
2498
|
+
comment:
|
|
2499
|
+
type: string
|
|
2500
|
+
example: This is a comment string
|
|
2501
|
+
instructions:
|
|
2502
|
+
type: array
|
|
2503
|
+
items:
|
|
2504
|
+
properties:
|
|
2505
|
+
kind:
|
|
2506
|
+
type: string
|
|
2507
|
+
example: removeUserTargets
|
|
2508
|
+
description: >-
|
|
2509
|
+
The name of the modification you would like to perform on a
|
|
2510
|
+
resource.
|
|
2511
|
+
required:
|
|
2512
|
+
- instructions
|
|
2325
2513
|
CustomProperty:
|
|
2326
2514
|
type: object
|
|
2327
2515
|
description: A name and value describing a custom property.
|
|
@@ -2423,12 +2611,12 @@ definitions:
|
|
|
2423
2611
|
type: object
|
|
2424
2612
|
properties:
|
|
2425
2613
|
'0':
|
|
2426
|
-
type:
|
|
2614
|
+
type: integer
|
|
2427
2615
|
format: int64
|
|
2428
2616
|
description: A key corresponding to a time series data point.
|
|
2429
2617
|
example: 0
|
|
2430
2618
|
time:
|
|
2431
|
-
type:
|
|
2619
|
+
type: integer
|
|
2432
2620
|
format: int64
|
|
2433
2621
|
description: >-
|
|
2434
2622
|
A unix epoch time in milliseconds specifying the creation time of this
|
|
@@ -2587,6 +2775,80 @@ definitions:
|
|
|
2587
2775
|
$ref: '#/definitions/Links'
|
|
2588
2776
|
_site:
|
|
2589
2777
|
$ref: '#/definitions/Site'
|
|
2778
|
+
Tokens:
|
|
2779
|
+
type: object
|
|
2780
|
+
properties:
|
|
2781
|
+
_links:
|
|
2782
|
+
$ref: '#/definitions/Links'
|
|
2783
|
+
items:
|
|
2784
|
+
type: array
|
|
2785
|
+
items:
|
|
2786
|
+
$ref: '#/definitions/Token'
|
|
2787
|
+
Token:
|
|
2788
|
+
type: object
|
|
2789
|
+
properties:
|
|
2790
|
+
_links:
|
|
2791
|
+
$ref: '#/definitions/Links'
|
|
2792
|
+
_id:
|
|
2793
|
+
$ref: '#/definitions/Id'
|
|
2794
|
+
ownerId:
|
|
2795
|
+
$ref: '#/definitions/Id'
|
|
2796
|
+
memberId:
|
|
2797
|
+
$ref: '#/definitions/Id'
|
|
2798
|
+
_member:
|
|
2799
|
+
$ref: '#/definitions/Member'
|
|
2800
|
+
creationDate:
|
|
2801
|
+
type: integer
|
|
2802
|
+
format: int64
|
|
2803
|
+
description: >-
|
|
2804
|
+
A unix epoch time in milliseconds specifying the creation time of this
|
|
2805
|
+
access token.
|
|
2806
|
+
example: 1443652232590
|
|
2807
|
+
lastModified:
|
|
2808
|
+
type: integer
|
|
2809
|
+
format: int64
|
|
2810
|
+
example: 1469326565348
|
|
2811
|
+
description: >-
|
|
2812
|
+
A unix epoch time in milliseconds specifying the last time this access
|
|
2813
|
+
token was modified.
|
|
2814
|
+
lastUsed:
|
|
2815
|
+
type: integer
|
|
2816
|
+
format: int64
|
|
2817
|
+
example: 1469326565348
|
|
2818
|
+
description: >-
|
|
2819
|
+
A unix epoch time in milliseconds specifying the last time this access
|
|
2820
|
+
token was used to authorize access to the LaunchDarkly REST API.
|
|
2821
|
+
token:
|
|
2822
|
+
type: string
|
|
2823
|
+
example: '3243'
|
|
2824
|
+
description: >-
|
|
2825
|
+
The last 4 digits of the unique secret key for this access token. If
|
|
2826
|
+
creating or resetting the token, this will be the full token secret.
|
|
2827
|
+
name:
|
|
2828
|
+
type: string
|
|
2829
|
+
description: A human-friendly name for the access token
|
|
2830
|
+
example: My access token
|
|
2831
|
+
role:
|
|
2832
|
+
type: string
|
|
2833
|
+
description: The name of a built-in role for the token
|
|
2834
|
+
example: writer
|
|
2835
|
+
customRoleIds:
|
|
2836
|
+
type: array
|
|
2837
|
+
items:
|
|
2838
|
+
type: string
|
|
2839
|
+
description: A list of custom role IDs to use as access limits for the access token
|
|
2840
|
+
inlineRole:
|
|
2841
|
+
type: array
|
|
2842
|
+
items:
|
|
2843
|
+
$ref: '#/definitions/Statement'
|
|
2844
|
+
serviceToken:
|
|
2845
|
+
type: boolean
|
|
2846
|
+
description: >-
|
|
2847
|
+
Whether the token will be a service token
|
|
2848
|
+
https://docs.launchdarkly.com/home/account-security/api-access-tokens#service-tokens
|
|
2849
|
+
defaultApiVersion:
|
|
2850
|
+
type: integer
|
|
2851
|
+
description: The default API version for this token
|
|
2590
2852
|
responses:
|
|
2591
2853
|
Standard201:
|
|
2592
2854
|
description: Resource created.
|
|
@@ -2646,6 +2908,10 @@ responses:
|
|
|
2646
2908
|
description: Destination response.
|
|
2647
2909
|
schema:
|
|
2648
2910
|
$ref: '#/definitions/Destination'
|
|
2911
|
+
Token2xx:
|
|
2912
|
+
description: Token response.
|
|
2913
|
+
schema:
|
|
2914
|
+
$ref: '#/definitions/Token'
|
|
2649
2915
|
parameters:
|
|
2650
2916
|
ResourceId:
|
|
2651
2917
|
name: resourceId
|
|
@@ -2921,7 +3187,7 @@ parameters:
|
|
|
2921
3187
|
in: query
|
|
2922
3188
|
required: false
|
|
2923
3189
|
description: >-
|
|
2924
|
-
When set to 1, archived flags will be included in the list of flags
|
|
3190
|
+
When set to 1, only archived flags will be included in the list of flags
|
|
2925
3191
|
returned. By default, archived flags are not included in the list of
|
|
2926
3192
|
flags.
|
|
2927
3193
|
type: boolean
|
|
@@ -2932,14 +3198,14 @@ parameters:
|
|
|
2932
3198
|
description: 'The number of objects to return. Defaults to -1, which returns everything.'
|
|
2933
3199
|
type: number
|
|
2934
3200
|
OffsetQuery:
|
|
2935
|
-
name:
|
|
3201
|
+
name: offset
|
|
2936
3202
|
in: query
|
|
2937
3203
|
required: false
|
|
2938
3204
|
description: >-
|
|
2939
3205
|
Where to start in the list. This is for use with pagination. For example,
|
|
2940
3206
|
an offset of 10 would skip the first 10 items and then return the next
|
|
2941
3207
|
limit items.
|
|
2942
|
-
type:
|
|
3208
|
+
type: number
|
|
2943
3209
|
FilterQuery:
|
|
2944
3210
|
name: filter
|
|
2945
3211
|
in: query
|
|
@@ -3030,7 +3296,7 @@ parameters:
|
|
|
3030
3296
|
required: false
|
|
3031
3297
|
description: >-
|
|
3032
3298
|
A timestamp filter, expressed as a Unix epoch time in milliseconds. All
|
|
3033
|
-
entries returned will have
|
|
3299
|
+
entries returned will have occurred after this timestamp.
|
|
3034
3300
|
format: int64
|
|
3035
3301
|
type: integer
|
|
3036
3302
|
PatchRequest:
|
|
@@ -3071,8 +3337,8 @@ parameters:
|
|
|
3071
3337
|
required: false
|
|
3072
3338
|
description: >-
|
|
3073
3339
|
Text to search for. You can search for the full or partial name of the
|
|
3074
|
-
resource involved or
|
|
3075
|
-
change.
|
|
3340
|
+
resource involved or full or partial email address of the member who made
|
|
3341
|
+
the change.
|
|
3076
3342
|
type: string
|
|
3077
3343
|
AuditLimit:
|
|
3078
3344
|
name: limit
|
|
@@ -3196,6 +3462,19 @@ parameters:
|
|
|
3196
3462
|
type: array
|
|
3197
3463
|
items:
|
|
3198
3464
|
$ref: '#/definitions/PatchOperation'
|
|
3465
|
+
SemanticPatchWithComment:
|
|
3466
|
+
name: SemanticPatchWithComment
|
|
3467
|
+
in: body
|
|
3468
|
+
required: true
|
|
3469
|
+
description: >-
|
|
3470
|
+
Requires a Semantic Patch representation of the desired changes to the
|
|
3471
|
+
resource.
|
|
3472
|
+
'https://apidocs.launchdarkly.com/reference#updates-via-semantic-patches'.
|
|
3473
|
+
The addition of comments is also supported.
|
|
3474
|
+
schema:
|
|
3475
|
+
type: object
|
|
3476
|
+
items:
|
|
3477
|
+
$ref: '#/definitions/SemanticPatchOperation'
|
|
3199
3478
|
StreamSource:
|
|
3200
3479
|
name: source
|
|
3201
3480
|
in: path
|
|
@@ -3220,4 +3499,63 @@ parameters:
|
|
|
3220
3499
|
required: true
|
|
3221
3500
|
description: The key of the flag we want metrics for.
|
|
3222
3501
|
type: string
|
|
3502
|
+
TokensPostRequest:
|
|
3503
|
+
name: tokenBody
|
|
3504
|
+
in: body
|
|
3505
|
+
required: true
|
|
3506
|
+
description: Create a new access token.
|
|
3507
|
+
schema:
|
|
3508
|
+
type: object
|
|
3509
|
+
properties:
|
|
3510
|
+
name:
|
|
3511
|
+
type: string
|
|
3512
|
+
description: A human-friendly name for the access token
|
|
3513
|
+
example: My access token
|
|
3514
|
+
role:
|
|
3515
|
+
type: string
|
|
3516
|
+
description: The name of a built-in role for the token
|
|
3517
|
+
example: writer
|
|
3518
|
+
customRoleIds:
|
|
3519
|
+
type: array
|
|
3520
|
+
items:
|
|
3521
|
+
type: string
|
|
3522
|
+
example: []
|
|
3523
|
+
description: >-
|
|
3524
|
+
A list of custom role IDs to use as access limits for the access
|
|
3525
|
+
token
|
|
3526
|
+
inlineRole:
|
|
3527
|
+
type: array
|
|
3528
|
+
items:
|
|
3529
|
+
$ref: '#/definitions/Statement'
|
|
3530
|
+
serviceToken:
|
|
3531
|
+
type: boolean
|
|
3532
|
+
description: >-
|
|
3533
|
+
Whether the token will be a service token
|
|
3534
|
+
https://docs.launchdarkly.com/home/account-security/api-access-tokens#service-tokens
|
|
3535
|
+
defaultApiVersion:
|
|
3536
|
+
type: integer
|
|
3537
|
+
description: The default API version for this token
|
|
3538
|
+
TokenId:
|
|
3539
|
+
name: tokenId
|
|
3540
|
+
in: path
|
|
3541
|
+
required: true
|
|
3542
|
+
description: The access token ID.
|
|
3543
|
+
type: string
|
|
3544
|
+
TokenShowAllQuery:
|
|
3545
|
+
name: showAll
|
|
3546
|
+
in: query
|
|
3547
|
+
required: false
|
|
3548
|
+
description: >-
|
|
3549
|
+
If set to true, and the authentication access token has the "Admin" role,
|
|
3550
|
+
personal access tokens for all members will be retrieved.
|
|
3551
|
+
type: boolean
|
|
3552
|
+
TokenExpiry:
|
|
3553
|
+
name: expiry
|
|
3554
|
+
in: query
|
|
3555
|
+
required: false
|
|
3556
|
+
type: integer
|
|
3557
|
+
format: int64
|
|
3558
|
+
description: >-
|
|
3559
|
+
An expiration time for the old token key, expressed as a Unix epoch time
|
|
3560
|
+
in milliseconds. By default, the token will expire immediately.
|
|
3223
3561
|
|