From b7e4c17ab0f309cdf3e2bed6b0a47fe594fa49cc Mon Sep 17 00:00:00 2001 From: wyvern8 Date: Sat, 3 Feb 2018 07:40:51 +1100 Subject: [PATCH] fix(build): tidy --- test.txt | 12178 ----------------------------------------------------- 1 file changed, 12178 deletions(-) delete mode 100644 test.txt diff --git a/test.txt b/test.txt deleted file mode 100644 index f422461..0000000 --- a/test.txt +++ /dev/null @@ -1,12178 +0,0 @@ -08:30:07.606Z  INFO ldu: creating client with api token: api-f15059fe-eef9-40b4-bb7e-e927a818a14d -08:30:07.712Z  INFO ldu: k[object Promise] -08:30:07.718Z ERROR ldu:  (usePromise=true, errors=[]) - spec: { - "swagger": "2.0", - "info": { - "title": "LaunchDarkly REST API", - "description": "Build custom integrations with the LaunchDarkly REST API", - "termsOfService": "https://launchdarkly.com/terms", - "contact": { - "name": "LaunchDarkly Support", - "url": "https://support.launchdarkly.com", - "email": "support@launchdarkly.com" - }, - "license": { - "name": "Apache 2.0", - "url": "http://www.apache.org/licenses/LICENSE-2.0.html" - }, - "version": "2.0.0" - }, - "host": "app.launchdarkly.com", - "basePath": "/api/v2", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "securityDefinitions": { - "Token": { - "type": "apiKey", - "name": "Authorization", - "in": "header", - "description": "https://app.launchdarkly.com/settings#/tokens" - } - }, - "security": [ - { - "Token": [] - } - ], - "paths": { - "/projects": { - "get": { - "summary": "Returns a list of all projects in the account.", - "operationId": "getProjects", - "responses": { - "200": { - "description": "Projects response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - } - } - }, - "$$ref": "#/definitions/Project" - } - } - }, - "$$ref": "#/definitions/Projects" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "projects" - ], - "__originalOperationId": "getProjects", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "post": { - "summary": "Create a project", - "operationId": "postProject", - "parameters": [ - { - "name": "projectBody", - "in": "body", - "required": true, - "description": "New project", - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - } - }, - "required": [ - "name", - "key" - ] - }, - "$$ref": "#/parameters/ProjectPostRequest" - } - ], - "responses": { - "201": { - "description": "Resource created", - "$$ref": "#/responses/Standard201" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "projects" - ], - "__originalOperationId": "postProject", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/projects/{projectKey}": { - "get": { - "summary": "Get a project by key.", - "operationId": "getProject", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - } - ], - "responses": { - "200": { - "description": "Project response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - } - } - }, - "$$ref": "#/definitions/Project" - }, - "$$ref": "#/responses/Projects200" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "projects" - ], - "__originalOperationId": "getProject", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "patch": { - "summary": "Modify a project by ID", - "operationId": "patchProject", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "patchDelta", - "in": "body", - "required": true, - "description": "http://jsonpatch.com/", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "op": { - "type": "string" - }, - "path": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "required": [ - "op", - "path", - "value" - ] - } - }, - "$$ref": "#/parameters/PatchRequest" - } - ], - "responses": { - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "projects" - ], - "__originalOperationId": "patchProject", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "delete": { - "summary": "Delete a project by ID", - "operationId": "deleteProject", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - } - ], - "responses": { - "204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "projects" - ], - "__originalOperationId": "deleteProject", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/environments/{projectKey}": { - "post": { - "summary": "Create an environment", - "operationId": "postEnvironment", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentBody", - "in": "body", - "required": true, - "description": "New environment", - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - }, - "color": { - "type": "string", - "description": "A color swatch (as an RGB hex value with no leading '#', e.g. C8C8C8)" - }, - "defaultTtl": { - "type": "number" - } - }, - "required": [ - "name", - "key", - "color" - ] - }, - "$$ref": "#/parameters/EnvironmentPostRequest" - } - ], - "responses": { - "201": { - "description": "Resource created", - "$$ref": "#/responses/Standard201" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "environments" - ], - "__originalOperationId": "postEnvironment", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/environments/{projectKey}/{environmentKey}": { - "get": { - "summary": "Get an environment by key.", - "operationId": "getEnvironment", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - } - ], - "responses": { - "200": { - "description": "Environment response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "environments" - ], - "__originalOperationId": "getEnvironment", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "patch": { - "summary": "Modify an environment by ID", - "operationId": "patchEnvironment", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "patchDelta", - "in": "body", - "required": true, - "description": "http://jsonpatch.com/", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "op": { - "type": "string" - }, - "path": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "required": [ - "op", - "path", - "value" - ] - } - }, - "$$ref": "#/parameters/PatchRequest" - } - ], - "responses": { - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "environments" - ], - "__originalOperationId": "patchEnvironment", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "delete": { - "summary": "Delete an environment by ID", - "operationId": "deleteEnvironment", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - } - ], - "responses": { - "204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "environments" - ], - "__originalOperationId": "deleteEnvironment", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/flags/{projectKey}": { - "get": { - "summary": "Get a list of all features in the given project.", - "operationId": "getFeatureFlags", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKeyQuery", - "in": "query", - "required": false, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKeyQuery" - }, - { - "name": "tag", - "in": "query", - "required": false, - "description": "Filter by tag", - "type": "string", - "$$ref": "#/parameters/Tag" - } - ], - "responses": { - "200": { - "description": "Flags response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "creationDate": { - "type": "number" - }, - "includeInSnippet": { - "type": "boolean" - }, - "temporary": { - "type": "boolean" - }, - "maintainerId": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - } - }, - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_maintainer": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "environments": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - } - } - }, - "$$ref": "#/definitions/FeatureFlag" - } - } - }, - "$$ref": "#/definitions/FeatureFlags" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "getFeatureFlags", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "post": { - "summary": "Create a feature flag", - "operationId": "postFeatureFlag", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "featureFlagBody", - "in": "body", - "required": true, - "description": "Create a new feature flag", - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A human-friendly name for the feature flag. Remember to note if this flag is intended to be temporary or permanent." - }, - "key": { - "type": "string", - "description": "A unique key that will be used to reference the flag in your code" - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - }, - "description": "An array of possible variations for the flag." - }, - "temporary": { - "type": "boolean", - "description": "Whether or not the flag is a temporary flag" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Tags for the feature flag" - }, - "includeInSnippet": { - "type": "boolean", - "description": "Whether or not this flag should be made available to the client-side JavaScript SDK" - } - }, - "required": [ - "name", - "key", - "variations" - ] - }, - "$$ref": "#/parameters/FeatureFlagPostRequest" - } - ], - "responses": { - "201": { - "description": "Resource created", - "$$ref": "#/responses/Standard201" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "postFeatureFlag", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/flags/{projectKey}/{featureFlagKey}": { - "get": { - "summary": "Get a single feature flag by key.", - "operationId": "getFeatureFlag", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - }, - { - "name": "environmentKeyQuery", - "in": "query", - "required": false, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKeyQuery" - } - ], - "responses": { - "200": { - "description": "Flag response", - "schema": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "creationDate": { - "type": "number" - }, - "includeInSnippet": { - "type": "boolean" - }, - "temporary": { - "type": "boolean" - }, - "maintainerId": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - } - }, - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_maintainer": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "environments": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - } - } - }, - "$$ref": "#/definitions/FeatureFlag" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "getFeatureFlag", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "patch": { - "summary": "Modify a feature flag by ID", - "operationId": "patchFeatureFlag", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - }, - { - "name": "patchDelta", - "in": "body", - "required": true, - "description": "http://jsonpatch.com/", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "op": { - "type": "string" - }, - "path": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "required": [ - "op", - "path", - "value" - ] - } - }, - "$$ref": "#/parameters/PatchRequest" - } - ], - "responses": { - "200": { - "description": "Feature flag response", - "schema": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "creationDate": { - "type": "number" - }, - "includeInSnippet": { - "type": "boolean" - }, - "temporary": { - "type": "boolean" - }, - "maintainerId": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - } - }, - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_maintainer": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "environments": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - } - } - }, - "$$ref": "#/definitions/FeatureFlag" - }, - "$$ref": "#/responses/FeatureFlags200" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "patchFeatureFlag", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "delete": { - "summary": "Delete a feature flag by ID", - "operationId": "deleteFeatureFlag", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - } - ], - "responses": { - "204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "deleteFeatureFlag", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/flag-statuses/{projectKey}/{environmentKey}": { - "get": { - "summary": "Get a list of statuses for all feature flags", - "operationId": "getFeatureFlagStatus", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - } - ], - "responses": { - "200": { - "description": "List of feature flag statuses", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "lastRequested": { - "type": "string" - }, - "default": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/FeatureFlagStatus" - } - } - }, - "$$ref": "#/definitions/FeatureFlagStatuses" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "getFeatureFlagStatus", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/flag-statuses/{projectKey}/{environmentKey}/{featureFlagKey}": { - "get": { - "summary": "Get a list of statuses for all feature flags", - "operationId": "getFeatureFlagStatuses", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - } - ], - "responses": { - "200": { - "description": "Feature flag status by flag key", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "lastRequested": { - "type": "string" - }, - "default": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/FeatureFlagStatus" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "getFeatureFlagStatuses", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/users/{projectKey}/{environmentKey}": { - "get": { - "summary": "List all users in the environment.", - "operationId": "getUsers", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "limit", - "in": "query", - "required": false, - "description": "Pagination limit", - "type": "number", - "$$ref": "#/parameters/Limit" - } - ], - "responses": { - "200": { - "description": "Users response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "totalCount": { - "type": "number" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "lastPing": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "ownerId": { - "type": "string" - }, - "user": { - "type": "object", - "example": { - "key": "a00bea", - "name": "Bob Loblaw", - "custom": { - "company": "example.com" - } - } - }, - "avatar": { - "type": "string" - } - }, - "$$ref": "#/definitions/User" - } - } - }, - "$$ref": "#/definitions/Users" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "users" - ], - "__originalOperationId": "getUsers", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/user-search/{projectKey}/{environmentKey}": { - "get": { - "summary": "Search users in LaunchDarkly based on their last active date, or a search query.", - "operationId": "getSearchUsers", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "q", - "in": "query", - "required": false, - "description": "Search query", - "type": "string", - "$$ref": "#/parameters/Query" - }, - { - "name": "limit", - "in": "query", - "required": false, - "description": "Pagination limit", - "type": "number", - "$$ref": "#/parameters/Limit" - }, - { - "name": "offset", - "in": "query", - "required": false, - "description": "Specifies the first item to return in the collection", - "type": "number", - "$$ref": "#/parameters/Offset" - }, - { - "name": "after", - "in": "query", - "required": false, - "description": "A unix epoch time in milliseconds specifying the maximum last time a user requested a feature flag", - "type": "number", - "$$ref": "#/parameters/After" - } - ], - "responses": { - "200": { - "description": "Users response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "totalCount": { - "type": "number" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "lastPing": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "ownerId": { - "type": "string" - }, - "user": { - "type": "object", - "example": { - "key": "a00bea", - "name": "Bob Loblaw", - "custom": { - "company": "example.com" - } - } - }, - "avatar": { - "type": "string" - } - }, - "$$ref": "#/definitions/User" - } - } - }, - "$$ref": "#/definitions/Users" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "users" - ], - "__originalOperationId": "getSearchUsers", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/users/{projectKey}/{environmentKey}/{userKey}": { - "get": { - "summary": "Get a user by key.", - "operationId": "getUser", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "userKey", - "in": "path", - "required": true, - "description": "The user's key", - "type": "string", - "$$ref": "#/parameters/UserKey" - } - ], - "responses": { - "200": { - "description": "User response", - "schema": { - "type": "object", - "properties": { - "lastPing": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "ownerId": { - "type": "string" - }, - "user": { - "type": "object", - "example": { - "key": "a00bea", - "name": "Bob Loblaw", - "custom": { - "company": "example.com" - } - } - }, - "avatar": { - "type": "string" - } - }, - "$$ref": "#/definitions/User" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "users" - ], - "__originalOperationId": "getUser", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "delete": { - "summary": "Delete a user by ID", - "operationId": "deleteUser", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "userKey", - "in": "path", - "required": true, - "description": "The user's key", - "type": "string", - "$$ref": "#/parameters/UserKey" - } - ], - "responses": { - "204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "users" - ], - "__originalOperationId": "deleteUser", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/users/{projectKey}/{environmentKey}/{userKey}/flags": { - "get": { - "summary": "Lists the current flag settings for a given user.", - "operationId": "getUserFlagSettings", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "userKey", - "in": "path", - "required": true, - "description": "The user's key", - "type": "string", - "$$ref": "#/parameters/UserKey" - } - ], - "responses": { - "200": { - "description": "User flags settings response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "object", - "example": { - "sort.order": { - "_links": { - "self": { - "href": "/api/v2/users/lacuna/production/Abbie_Braun/flags/sort.order", - "type": "application/json" - }, - "_value": true, - "setting": null - } - }, - "alternate.page": { - "_links": { - "self": { - "href": "/api/v2/users/lacuna/production/Abbie_Braun/flags/alternate.page", - "type": "application/json" - } - }, - "_value": "false,", - "setting": null - } - } - } - }, - "$$ref": "#/definitions/UserFlagSettings" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "user settings" - ], - "__originalOperationId": "getUserFlagSettings", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}": { - "get": { - "summary": "Get a user by key.", - "operationId": "getUserFlagSetting", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "userKey", - "in": "path", - "required": true, - "description": "The user's key", - "type": "string", - "$$ref": "#/parameters/UserKey" - }, - { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - } - ], - "responses": { - "200": { - "description": "User flag setting response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_value": { - "type": "boolean" - }, - "setting": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/UserFlagSetting" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "user settings" - ], - "__originalOperationId": "getUserFlagSetting", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "put": { - "summary": "Specifically enable or disable a feature flag for a user based on their key.", - "operationId": "putFlagSetting", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "userKey", - "in": "path", - "required": true, - "description": "The user's key", - "type": "string", - "$$ref": "#/parameters/UserKey" - }, - { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - }, - { - "name": "userSettingsBody", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "setting": { - "type": "boolean", - "description": "The variation value to set for the user. Must match the variation type of the flag." - } - } - }, - "$$ref": "#/parameters/UserSettingsPutRequest" - } - ], - "responses": { - "204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "user settings" - ], - "__originalOperationId": "putFlagSetting", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/auditlog": { - "get": { - "summary": "Fetch a list of all webhooks", - "operationId": "getAuditLogEntries", - "responses": { - "200": { - "description": "Audit log entries response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "date": { - "type": "number" - }, - "kind": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "member": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "titleVerb": { - "type": "string" - }, - "title": { - "type": "string" - }, - "target": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "resources": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "$$ref": "#/definitions/AuditLogEntry" - } - } - }, - "$$ref": "#/definitions/AuditLogEntries" - } - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "audit log" - ], - "__originalOperationId": "getAuditLogEntries", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/auditlog/{resourceId}": { - "get": { - "summary": "Get a webhook by ID", - "operationId": "getAuditLogEntry", - "parameters": [ - { - "name": "resourceId", - "in": "path", - "required": true, - "description": "The resource ID", - "type": "string", - "$$ref": "#/parameters/ResourceId" - } - ], - "responses": { - "200": { - "description": "Audit log entry response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "date": { - "type": "number" - }, - "kind": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "member": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "titleVerb": { - "type": "string" - }, - "title": { - "type": "string" - }, - "target": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "resources": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "$$ref": "#/definitions/AuditLogEntry" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "audit log" - ], - "__originalOperationId": "getAuditLogEntry", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/webhooks": { - "get": { - "summary": "Fetch a list of all webhooks", - "operationId": "getWebhooks", - "responses": { - "200": { - "description": "Webhooks response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "on": { - "type": "boolean" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Webhook" - } - } - }, - "$$ref": "#/definitions/Webhooks" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "webhooks" - ], - "__originalOperationId": "getWebhooks", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "post": { - "summary": "Create a webhook", - "operationId": "postWebhook", - "parameters": [ - { - "name": "webhookBody", - "in": "body", - "required": true, - "description": "New webhook", - "schema": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "sign": { - "type": "boolean" - }, - "on": { - "type": "boolean" - } - }, - "required": [ - "url", - "sign", - "on" - ] - }, - "$$ref": "#/parameters/WebhookPostRequest" - } - ], - "responses": { - "201": { - "description": "Resource created", - "$$ref": "#/responses/Standard201" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "webhooks" - ], - "__originalOperationId": "postWebhook", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/webhooks/{resourceId}": { - "get": { - "summary": "Get a webhook by ID", - "operationId": "getWebhook", - "parameters": [ - { - "name": "resourceId", - "in": "path", - "required": true, - "description": "The resource ID", - "type": "string", - "$$ref": "#/parameters/ResourceId" - } - ], - "responses": { - "200": { - "description": "Webhook response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "on": { - "type": "boolean" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Webhook" - }, - "$$ref": "#/responses/Webhooks200" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "webhooks" - ], - "__originalOperationId": "getWebhook", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "patch": { - "summary": "Modify a webhook by ID", - "operationId": "patchWebhook", - "parameters": [ - { - "name": "resourceId", - "in": "path", - "required": true, - "description": "The resource ID", - "type": "string", - "$$ref": "#/parameters/ResourceId" - }, - { - "name": "patchDelta", - "in": "body", - "required": true, - "description": "http://jsonpatch.com/", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "op": { - "type": "string" - }, - "path": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "required": [ - "op", - "path", - "value" - ] - } - }, - "$$ref": "#/parameters/PatchRequest" - } - ], - "responses": { - "200": { - "description": "Webhook response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "on": { - "type": "boolean" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Webhook" - }, - "$$ref": "#/responses/Webhooks200" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "webhooks" - ], - "__originalOperationId": "patchWebhook", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "delete": { - "summary": "Delete a webhook by ID", - "operationId": "deleteWebhook", - "parameters": [ - { - "name": "resourceId", - "in": "path", - "required": true, - "description": "The resource ID", - "type": "string", - "$$ref": "#/parameters/ResourceId" - } - ], - "responses": { - "204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "webhooks" - ], - "__originalOperationId": "deleteWebhook", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/": { - "get": { - "summary": "Get the root resource", - "operationId": "getRoot", - "responses": { - "200": { - "description": "A list of links to available resources in the API", - "schema": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "$$ref": "#/responses/Root200" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "root" - ], - "__originalOperationId": "getRoot", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - } - }, - "definitions": { - "Link": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - }, - "Links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "Webhook": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "on": { - "type": "boolean" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Webhook" - }, - "Webhooks": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "on": { - "type": "boolean" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Webhook" - } - } - }, - "$$ref": "#/definitions/Webhooks" - }, - "FeatureFlag": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "creationDate": { - "type": "number" - }, - "includeInSnippet": { - "type": "boolean" - }, - "temporary": { - "type": "boolean" - }, - "maintainerId": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - } - }, - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_maintainer": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "environments": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - } - } - }, - "$$ref": "#/definitions/FeatureFlag" - }, - "FeatureFlags": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "creationDate": { - "type": "number" - }, - "includeInSnippet": { - "type": "boolean" - }, - "temporary": { - "type": "boolean" - }, - "maintainerId": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - } - }, - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_maintainer": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "environments": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - } - } - }, - "$$ref": "#/definitions/FeatureFlag" - } - } - }, - "$$ref": "#/definitions/FeatureFlags" - }, - "Member": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "FeatureFlagConfig": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - }, - "Target": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - }, - "Rule": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - }, - "Rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "WeightedVariation": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - }, - "Clause": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - }, - "Variation": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - }, - "FeatureFlagStatus": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "lastRequested": { - "type": "string" - }, - "default": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/FeatureFlagStatus" - }, - "FeatureFlagStatuses": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "lastRequested": { - "type": "string" - }, - "default": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/FeatureFlagStatus" - } - } - }, - "$$ref": "#/definitions/FeatureFlagStatuses" - }, - "Project": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - } - } - }, - "$$ref": "#/definitions/Project" - }, - "Projects": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - } - } - }, - "$$ref": "#/definitions/Project" - } - } - }, - "$$ref": "#/definitions/Projects" - }, - "Environment": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - }, - "User": { - "type": "object", - "properties": { - "lastPing": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "ownerId": { - "type": "string" - }, - "user": { - "type": "object", - "example": { - "key": "a00bea", - "name": "Bob Loblaw", - "custom": { - "company": "example.com" - } - } - }, - "avatar": { - "type": "string" - } - }, - "$$ref": "#/definitions/User" - }, - "Users": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "totalCount": { - "type": "number" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "lastPing": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "ownerId": { - "type": "string" - }, - "user": { - "type": "object", - "example": { - "key": "a00bea", - "name": "Bob Loblaw", - "custom": { - "company": "example.com" - } - } - }, - "avatar": { - "type": "string" - } - }, - "$$ref": "#/definitions/User" - } - } - }, - "$$ref": "#/definitions/Users" - }, - "AuditLogEntry": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "date": { - "type": "number" - }, - "kind": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "member": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "titleVerb": { - "type": "string" - }, - "title": { - "type": "string" - }, - "target": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "resources": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "$$ref": "#/definitions/AuditLogEntry" - }, - "AuditLogEntries": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "date": { - "type": "number" - }, - "kind": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "member": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "titleVerb": { - "type": "string" - }, - "title": { - "type": "string" - }, - "target": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "resources": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "$$ref": "#/definitions/AuditLogEntry" - } - } - }, - "$$ref": "#/definitions/AuditLogEntries" - }, - "UserFlagSetting": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_value": { - "type": "boolean" - }, - "setting": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/UserFlagSetting" - }, - "UserFlagSettings": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "object", - "example": { - "sort.order": { - "_links": { - "self": { - "href": "/api/v2/users/lacuna/production/Abbie_Braun/flags/sort.order", - "type": "application/json" - }, - "_value": true, - "setting": null - } - }, - "alternate.page": { - "_links": { - "self": { - "href": "/api/v2/users/lacuna/production/Abbie_Braun/flags/alternate.page", - "type": "application/json" - } - }, - "_value": "false,", - "setting": null - } - } - } - }, - "$$ref": "#/definitions/UserFlagSettings" - } - }, - "responses": { - "Standard201": { - "description": "Resource created", - "$$ref": "#/responses/Standard201" - }, - "Standard204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "Standard400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "Standard401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "Standard404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - }, - "Standard409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - }, - "Root200": { - "description": "A list of links to available resources in the API", - "schema": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "$$ref": "#/responses/Root200" - }, - "Webhooks200": { - "description": "Webhook response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "on": { - "type": "boolean" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Webhook" - }, - "$$ref": "#/responses/Webhooks200" - }, - "FeatureFlags200": { - "description": "Feature flag response", - "schema": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "creationDate": { - "type": "number" - }, - "includeInSnippet": { - "type": "boolean" - }, - "temporary": { - "type": "boolean" - }, - "maintainerId": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - } - }, - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_maintainer": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "environments": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - } - } - }, - "$$ref": "#/definitions/FeatureFlag" - }, - "$$ref": "#/responses/FeatureFlags200" - }, - "Projects200": { - "description": "Project response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - } - } - }, - "$$ref": "#/definitions/Project" - }, - "$$ref": "#/responses/Projects200" - } - }, - "parameters": { - "ResourceId": { - "name": "resourceId", - "in": "path", - "required": true, - "description": "The resource ID", - "type": "string", - "$$ref": "#/parameters/ResourceId" - }, - "WebhookPostRequest": { - "name": "webhookBody", - "in": "body", - "required": true, - "description": "New webhook", - "schema": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "sign": { - "type": "boolean" - }, - "on": { - "type": "boolean" - } - }, - "required": [ - "url", - "sign", - "on" - ] - }, - "$$ref": "#/parameters/WebhookPostRequest" - }, - "FeatureFlagPostRequest": { - "name": "featureFlagBody", - "in": "body", - "required": true, - "description": "Create a new feature flag", - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A human-friendly name for the feature flag. Remember to note if this flag is intended to be temporary or permanent." - }, - "key": { - "type": "string", - "description": "A unique key that will be used to reference the flag in your code" - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - }, - "description": "An array of possible variations for the flag." - }, - "temporary": { - "type": "boolean", - "description": "Whether or not the flag is a temporary flag" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Tags for the feature flag" - }, - "includeInSnippet": { - "type": "boolean", - "description": "Whether or not this flag should be made available to the client-side JavaScript SDK" - } - }, - "required": [ - "name", - "key", - "variations" - ] - }, - "$$ref": "#/parameters/FeatureFlagPostRequest" - }, - "ProjectPostRequest": { - "name": "projectBody", - "in": "body", - "required": true, - "description": "New project", - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - } - }, - "required": [ - "name", - "key" - ] - }, - "$$ref": "#/parameters/ProjectPostRequest" - }, - "EnvironmentPostRequest": { - "name": "environmentBody", - "in": "body", - "required": true, - "description": "New environment", - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - }, - "color": { - "type": "string", - "description": "A color swatch (as an RGB hex value with no leading '#', e.g. C8C8C8)" - }, - "defaultTtl": { - "type": "number" - } - }, - "required": [ - "name", - "key", - "color" - ] - }, - "$$ref": "#/parameters/EnvironmentPostRequest" - }, - "ProjectKey": { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - "EnvironmentKey": { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - "EnvironmentKeyQuery": { - "name": "environmentKeyQuery", - "in": "query", - "required": false, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKeyQuery" - }, - "FeatureFlagKey": { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - }, - "UserKey": { - "name": "userKey", - "in": "path", - "required": true, - "description": "The user's key", - "type": "string", - "$$ref": "#/parameters/UserKey" - }, - "Tag": { - "name": "tag", - "in": "query", - "required": false, - "description": "Filter by tag", - "type": "string", - "$$ref": "#/parameters/Tag" - }, - "Limit": { - "name": "limit", - "in": "query", - "required": false, - "description": "Pagination limit", - "type": "number", - "$$ref": "#/parameters/Limit" - }, - "Query": { - "name": "q", - "in": "query", - "required": false, - "description": "Search query", - "type": "string", - "$$ref": "#/parameters/Query" - }, - "Offset": { - "name": "offset", - "in": "query", - "required": false, - "description": "Specifies the first item to return in the collection", - "type": "number", - "$$ref": "#/parameters/Offset" - }, - "After": { - "name": "after", - "in": "query", - "required": false, - "description": "A unix epoch time in milliseconds specifying the maximum last time a user requested a feature flag", - "type": "number", - "$$ref": "#/parameters/After" - }, - "PatchRequest": { - "name": "patchDelta", - "in": "body", - "required": true, - "description": "http://jsonpatch.com/", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "op": { - "type": "string" - }, - "path": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "required": [ - "op", - "path", - "value" - ] - } - }, - "$$ref": "#/parameters/PatchRequest" - }, - "UserSettingsPutRequest": { - "name": "userSettingsBody", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "setting": { - "type": "boolean", - "description": "The variation value to set for the user. Must match the variation type of the flag." - } - } - }, - "$$ref": "#/parameters/UserSettingsPutRequest" - } - } - } - -- - originalSpec: { - "swagger": "2.0", - "info": { - "title": "LaunchDarkly REST API", - "description": "Build custom integrations with the LaunchDarkly REST API", - "termsOfService": "https://launchdarkly.com/terms", - "contact": { - "name": "LaunchDarkly Support", - "url": "https://support.launchdarkly.com", - "email": "support@launchdarkly.com" - }, - "license": { - "name": "Apache 2.0", - "url": "http://www.apache.org/licenses/LICENSE-2.0.html" - }, - "version": "2.0.0" - }, - "host": "app.launchdarkly.com", - "basePath": "/api/v2", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "securityDefinitions": { - "Token": { - "type": "apiKey", - "name": "Authorization", - "in": "header", - "description": "https://app.launchdarkly.com/settings#/tokens" - } - }, - "security": [ - { - "Token": [] - } - ], - "paths": { - "/projects": { - "get": { - "summary": "Returns a list of all projects in the account.", - "operationId": "getProjects", - "responses": { - "200": { - "description": "Projects response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - } - } - }, - "$$ref": "#/definitions/Project" - } - } - }, - "$$ref": "#/definitions/Projects" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "projects" - ], - "__originalOperationId": "getProjects", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "post": { - "summary": "Create a project", - "operationId": "postProject", - "parameters": [ - { - "name": "projectBody", - "in": "body", - "required": true, - "description": "New project", - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - } - }, - "required": [ - "name", - "key" - ] - }, - "$$ref": "#/parameters/ProjectPostRequest" - } - ], - "responses": { - "201": { - "description": "Resource created", - "$$ref": "#/responses/Standard201" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "projects" - ], - "__originalOperationId": "postProject", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/projects/{projectKey}": { - "get": { - "summary": "Get a project by key.", - "operationId": "getProject", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - } - ], - "responses": { - "200": { - "description": "Project response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - } - } - }, - "$$ref": "#/definitions/Project" - }, - "$$ref": "#/responses/Projects200" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "projects" - ], - "__originalOperationId": "getProject", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "patch": { - "summary": "Modify a project by ID", - "operationId": "patchProject", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "patchDelta", - "in": "body", - "required": true, - "description": "http://jsonpatch.com/", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "op": { - "type": "string" - }, - "path": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "required": [ - "op", - "path", - "value" - ] - } - }, - "$$ref": "#/parameters/PatchRequest" - } - ], - "responses": { - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "projects" - ], - "__originalOperationId": "patchProject", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "delete": { - "summary": "Delete a project by ID", - "operationId": "deleteProject", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - } - ], - "responses": { - "204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "projects" - ], - "__originalOperationId": "deleteProject", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/environments/{projectKey}": { - "post": { - "summary": "Create an environment", - "operationId": "postEnvironment", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentBody", - "in": "body", - "required": true, - "description": "New environment", - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - }, - "color": { - "type": "string", - "description": "A color swatch (as an RGB hex value with no leading '#', e.g. C8C8C8)" - }, - "defaultTtl": { - "type": "number" - } - }, - "required": [ - "name", - "key", - "color" - ] - }, - "$$ref": "#/parameters/EnvironmentPostRequest" - } - ], - "responses": { - "201": { - "description": "Resource created", - "$$ref": "#/responses/Standard201" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "environments" - ], - "__originalOperationId": "postEnvironment", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/environments/{projectKey}/{environmentKey}": { - "get": { - "summary": "Get an environment by key.", - "operationId": "getEnvironment", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - } - ], - "responses": { - "200": { - "description": "Environment response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "environments" - ], - "__originalOperationId": "getEnvironment", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "patch": { - "summary": "Modify an environment by ID", - "operationId": "patchEnvironment", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "patchDelta", - "in": "body", - "required": true, - "description": "http://jsonpatch.com/", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "op": { - "type": "string" - }, - "path": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "required": [ - "op", - "path", - "value" - ] - } - }, - "$$ref": "#/parameters/PatchRequest" - } - ], - "responses": { - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "environments" - ], - "__originalOperationId": "patchEnvironment", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "delete": { - "summary": "Delete an environment by ID", - "operationId": "deleteEnvironment", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - } - ], - "responses": { - "204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "environments" - ], - "__originalOperationId": "deleteEnvironment", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/flags/{projectKey}": { - "get": { - "summary": "Get a list of all features in the given project.", - "operationId": "getFeatureFlags", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKeyQuery", - "in": "query", - "required": false, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKeyQuery" - }, - { - "name": "tag", - "in": "query", - "required": false, - "description": "Filter by tag", - "type": "string", - "$$ref": "#/parameters/Tag" - } - ], - "responses": { - "200": { - "description": "Flags response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "creationDate": { - "type": "number" - }, - "includeInSnippet": { - "type": "boolean" - }, - "temporary": { - "type": "boolean" - }, - "maintainerId": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - } - }, - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_maintainer": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "environments": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - } - } - }, - "$$ref": "#/definitions/FeatureFlag" - } - } - }, - "$$ref": "#/definitions/FeatureFlags" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "getFeatureFlags", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "post": { - "summary": "Create a feature flag", - "operationId": "postFeatureFlag", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "featureFlagBody", - "in": "body", - "required": true, - "description": "Create a new feature flag", - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A human-friendly name for the feature flag. Remember to note if this flag is intended to be temporary or permanent." - }, - "key": { - "type": "string", - "description": "A unique key that will be used to reference the flag in your code" - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - }, - "description": "An array of possible variations for the flag." - }, - "temporary": { - "type": "boolean", - "description": "Whether or not the flag is a temporary flag" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Tags for the feature flag" - }, - "includeInSnippet": { - "type": "boolean", - "description": "Whether or not this flag should be made available to the client-side JavaScript SDK" - } - }, - "required": [ - "name", - "key", - "variations" - ] - }, - "$$ref": "#/parameters/FeatureFlagPostRequest" - } - ], - "responses": { - "201": { - "description": "Resource created", - "$$ref": "#/responses/Standard201" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "postFeatureFlag", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/flags/{projectKey}/{featureFlagKey}": { - "get": { - "summary": "Get a single feature flag by key.", - "operationId": "getFeatureFlag", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - }, - { - "name": "environmentKeyQuery", - "in": "query", - "required": false, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKeyQuery" - } - ], - "responses": { - "200": { - "description": "Flag response", - "schema": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "creationDate": { - "type": "number" - }, - "includeInSnippet": { - "type": "boolean" - }, - "temporary": { - "type": "boolean" - }, - "maintainerId": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - } - }, - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_maintainer": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "environments": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - } - } - }, - "$$ref": "#/definitions/FeatureFlag" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "getFeatureFlag", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "patch": { - "summary": "Modify a feature flag by ID", - "operationId": "patchFeatureFlag", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - }, - { - "name": "patchDelta", - "in": "body", - "required": true, - "description": "http://jsonpatch.com/", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "op": { - "type": "string" - }, - "path": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "required": [ - "op", - "path", - "value" - ] - } - }, - "$$ref": "#/parameters/PatchRequest" - } - ], - "responses": { - "200": { - "description": "Feature flag response", - "schema": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "creationDate": { - "type": "number" - }, - "includeInSnippet": { - "type": "boolean" - }, - "temporary": { - "type": "boolean" - }, - "maintainerId": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - } - }, - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_maintainer": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "environments": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - } - } - }, - "$$ref": "#/definitions/FeatureFlag" - }, - "$$ref": "#/responses/FeatureFlags200" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "patchFeatureFlag", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "delete": { - "summary": "Delete a feature flag by ID", - "operationId": "deleteFeatureFlag", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - } - ], - "responses": { - "204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "deleteFeatureFlag", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/flag-statuses/{projectKey}/{environmentKey}": { - "get": { - "summary": "Get a list of statuses for all feature flags", - "operationId": "getFeatureFlagStatus", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - } - ], - "responses": { - "200": { - "description": "List of feature flag statuses", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "lastRequested": { - "type": "string" - }, - "default": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/FeatureFlagStatus" - } - } - }, - "$$ref": "#/definitions/FeatureFlagStatuses" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "getFeatureFlagStatus", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/flag-statuses/{projectKey}/{environmentKey}/{featureFlagKey}": { - "get": { - "summary": "Get a list of statuses for all feature flags", - "operationId": "getFeatureFlagStatuses", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - } - ], - "responses": { - "200": { - "description": "Feature flag status by flag key", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "lastRequested": { - "type": "string" - }, - "default": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/FeatureFlagStatus" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "flags" - ], - "__originalOperationId": "getFeatureFlagStatuses", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/users/{projectKey}/{environmentKey}": { - "get": { - "summary": "List all users in the environment.", - "operationId": "getUsers", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "limit", - "in": "query", - "required": false, - "description": "Pagination limit", - "type": "number", - "$$ref": "#/parameters/Limit" - } - ], - "responses": { - "200": { - "description": "Users response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "totalCount": { - "type": "number" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "lastPing": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "ownerId": { - "type": "string" - }, - "user": { - "type": "object", - "example": { - "key": "a00bea", - "name": "Bob Loblaw", - "custom": { - "company": "example.com" - } - } - }, - "avatar": { - "type": "string" - } - }, - "$$ref": "#/definitions/User" - } - } - }, - "$$ref": "#/definitions/Users" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "users" - ], - "__originalOperationId": "getUsers", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/user-search/{projectKey}/{environmentKey}": { - "get": { - "summary": "Search users in LaunchDarkly based on their last active date, or a search query.", - "operationId": "getSearchUsers", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "q", - "in": "query", - "required": false, - "description": "Search query", - "type": "string", - "$$ref": "#/parameters/Query" - }, - { - "name": "limit", - "in": "query", - "required": false, - "description": "Pagination limit", - "type": "number", - "$$ref": "#/parameters/Limit" - }, - { - "name": "offset", - "in": "query", - "required": false, - "description": "Specifies the first item to return in the collection", - "type": "number", - "$$ref": "#/parameters/Offset" - }, - { - "name": "after", - "in": "query", - "required": false, - "description": "A unix epoch time in milliseconds specifying the maximum last time a user requested a feature flag", - "type": "number", - "$$ref": "#/parameters/After" - } - ], - "responses": { - "200": { - "description": "Users response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "totalCount": { - "type": "number" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "lastPing": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "ownerId": { - "type": "string" - }, - "user": { - "type": "object", - "example": { - "key": "a00bea", - "name": "Bob Loblaw", - "custom": { - "company": "example.com" - } - } - }, - "avatar": { - "type": "string" - } - }, - "$$ref": "#/definitions/User" - } - } - }, - "$$ref": "#/definitions/Users" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "users" - ], - "__originalOperationId": "getSearchUsers", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/users/{projectKey}/{environmentKey}/{userKey}": { - "get": { - "summary": "Get a user by key.", - "operationId": "getUser", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "userKey", - "in": "path", - "required": true, - "description": "The user's key", - "type": "string", - "$$ref": "#/parameters/UserKey" - } - ], - "responses": { - "200": { - "description": "User response", - "schema": { - "type": "object", - "properties": { - "lastPing": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "ownerId": { - "type": "string" - }, - "user": { - "type": "object", - "example": { - "key": "a00bea", - "name": "Bob Loblaw", - "custom": { - "company": "example.com" - } - } - }, - "avatar": { - "type": "string" - } - }, - "$$ref": "#/definitions/User" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "users" - ], - "__originalOperationId": "getUser", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "delete": { - "summary": "Delete a user by ID", - "operationId": "deleteUser", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "userKey", - "in": "path", - "required": true, - "description": "The user's key", - "type": "string", - "$$ref": "#/parameters/UserKey" - } - ], - "responses": { - "204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "users" - ], - "__originalOperationId": "deleteUser", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/users/{projectKey}/{environmentKey}/{userKey}/flags": { - "get": { - "summary": "Lists the current flag settings for a given user.", - "operationId": "getUserFlagSettings", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "userKey", - "in": "path", - "required": true, - "description": "The user's key", - "type": "string", - "$$ref": "#/parameters/UserKey" - } - ], - "responses": { - "200": { - "description": "User flags settings response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "object", - "example": { - "sort.order": { - "_links": { - "self": { - "href": "/api/v2/users/lacuna/production/Abbie_Braun/flags/sort.order", - "type": "application/json" - }, - "_value": true, - "setting": null - } - }, - "alternate.page": { - "_links": { - "self": { - "href": "/api/v2/users/lacuna/production/Abbie_Braun/flags/alternate.page", - "type": "application/json" - } - }, - "_value": "false,", - "setting": null - } - } - } - }, - "$$ref": "#/definitions/UserFlagSettings" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "user settings" - ], - "__originalOperationId": "getUserFlagSettings", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}": { - "get": { - "summary": "Get a user by key.", - "operationId": "getUserFlagSetting", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "userKey", - "in": "path", - "required": true, - "description": "The user's key", - "type": "string", - "$$ref": "#/parameters/UserKey" - }, - { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - } - ], - "responses": { - "200": { - "description": "User flag setting response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_value": { - "type": "boolean" - }, - "setting": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/UserFlagSetting" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "user settings" - ], - "__originalOperationId": "getUserFlagSetting", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "put": { - "summary": "Specifically enable or disable a feature flag for a user based on their key.", - "operationId": "putFlagSetting", - "parameters": [ - { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - { - "name": "userKey", - "in": "path", - "required": true, - "description": "The user's key", - "type": "string", - "$$ref": "#/parameters/UserKey" - }, - { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - }, - { - "name": "userSettingsBody", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "setting": { - "type": "boolean", - "description": "The variation value to set for the user. Must match the variation type of the flag." - } - } - }, - "$$ref": "#/parameters/UserSettingsPutRequest" - } - ], - "responses": { - "204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "user settings" - ], - "__originalOperationId": "putFlagSetting", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/auditlog": { - "get": { - "summary": "Fetch a list of all webhooks", - "operationId": "getAuditLogEntries", - "responses": { - "200": { - "description": "Audit log entries response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "date": { - "type": "number" - }, - "kind": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "member": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "titleVerb": { - "type": "string" - }, - "title": { - "type": "string" - }, - "target": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "resources": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "$$ref": "#/definitions/AuditLogEntry" - } - } - }, - "$$ref": "#/definitions/AuditLogEntries" - } - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "audit log" - ], - "__originalOperationId": "getAuditLogEntries", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/auditlog/{resourceId}": { - "get": { - "summary": "Get a webhook by ID", - "operationId": "getAuditLogEntry", - "parameters": [ - { - "name": "resourceId", - "in": "path", - "required": true, - "description": "The resource ID", - "type": "string", - "$$ref": "#/parameters/ResourceId" - } - ], - "responses": { - "200": { - "description": "Audit log entry response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "date": { - "type": "number" - }, - "kind": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "member": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "titleVerb": { - "type": "string" - }, - "title": { - "type": "string" - }, - "target": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "resources": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "$$ref": "#/definitions/AuditLogEntry" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "audit log" - ], - "__originalOperationId": "getAuditLogEntry", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/webhooks": { - "get": { - "summary": "Fetch a list of all webhooks", - "operationId": "getWebhooks", - "responses": { - "200": { - "description": "Webhooks response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "on": { - "type": "boolean" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Webhook" - } - } - }, - "$$ref": "#/definitions/Webhooks" - } - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "webhooks" - ], - "__originalOperationId": "getWebhooks", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "post": { - "summary": "Create a webhook", - "operationId": "postWebhook", - "parameters": [ - { - "name": "webhookBody", - "in": "body", - "required": true, - "description": "New webhook", - "schema": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "sign": { - "type": "boolean" - }, - "on": { - "type": "boolean" - } - }, - "required": [ - "url", - "sign", - "on" - ] - }, - "$$ref": "#/parameters/WebhookPostRequest" - } - ], - "responses": { - "201": { - "description": "Resource created", - "$$ref": "#/responses/Standard201" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "webhooks" - ], - "__originalOperationId": "postWebhook", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/webhooks/{resourceId}": { - "get": { - "summary": "Get a webhook by ID", - "operationId": "getWebhook", - "parameters": [ - { - "name": "resourceId", - "in": "path", - "required": true, - "description": "The resource ID", - "type": "string", - "$$ref": "#/parameters/ResourceId" - } - ], - "responses": { - "200": { - "description": "Webhook response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "on": { - "type": "boolean" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Webhook" - }, - "$$ref": "#/responses/Webhooks200" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "webhooks" - ], - "__originalOperationId": "getWebhook", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "patch": { - "summary": "Modify a webhook by ID", - "operationId": "patchWebhook", - "parameters": [ - { - "name": "resourceId", - "in": "path", - "required": true, - "description": "The resource ID", - "type": "string", - "$$ref": "#/parameters/ResourceId" - }, - { - "name": "patchDelta", - "in": "body", - "required": true, - "description": "http://jsonpatch.com/", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "op": { - "type": "string" - }, - "path": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "required": [ - "op", - "path", - "value" - ] - } - }, - "$$ref": "#/parameters/PatchRequest" - } - ], - "responses": { - "200": { - "description": "Webhook response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "on": { - "type": "boolean" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Webhook" - }, - "$$ref": "#/responses/Webhooks200" - }, - "400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - }, - "409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - } - }, - "tags": [ - "webhooks" - ], - "__originalOperationId": "patchWebhook", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - }, - "delete": { - "summary": "Delete a webhook by ID", - "operationId": "deleteWebhook", - "parameters": [ - { - "name": "resourceId", - "in": "path", - "required": true, - "description": "The resource ID", - "type": "string", - "$$ref": "#/parameters/ResourceId" - } - ], - "responses": { - "204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - } - }, - "tags": [ - "webhooks" - ], - "__originalOperationId": "deleteWebhook", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - }, - "/": { - "get": { - "summary": "Get the root resource", - "operationId": "getRoot", - "responses": { - "200": { - "description": "A list of links to available resources in the API", - "schema": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "$$ref": "#/responses/Root200" - }, - "401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - } - }, - "tags": [ - "root" - ], - "__originalOperationId": "getRoot", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "Token": [] - } - ] - } - } - }, - "definitions": { - "Link": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - }, - "Links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "Webhook": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "on": { - "type": "boolean" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Webhook" - }, - "Webhooks": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "on": { - "type": "boolean" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Webhook" - } - } - }, - "$$ref": "#/definitions/Webhooks" - }, - "FeatureFlag": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "creationDate": { - "type": "number" - }, - "includeInSnippet": { - "type": "boolean" - }, - "temporary": { - "type": "boolean" - }, - "maintainerId": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - } - }, - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_maintainer": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "environments": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - } - } - }, - "$$ref": "#/definitions/FeatureFlag" - }, - "FeatureFlags": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "creationDate": { - "type": "number" - }, - "includeInSnippet": { - "type": "boolean" - }, - "temporary": { - "type": "boolean" - }, - "maintainerId": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - } - }, - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_maintainer": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "environments": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - } - } - }, - "$$ref": "#/definitions/FeatureFlag" - } - } - }, - "$$ref": "#/definitions/FeatureFlags" - }, - "Member": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "FeatureFlagConfig": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - }, - "Target": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - }, - "Rule": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - }, - "Rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "WeightedVariation": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - }, - "Clause": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - }, - "Variation": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - }, - "FeatureFlagStatus": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "lastRequested": { - "type": "string" - }, - "default": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/FeatureFlagStatus" - }, - "FeatureFlagStatuses": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "lastRequested": { - "type": "string" - }, - "default": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/FeatureFlagStatus" - } - } - }, - "$$ref": "#/definitions/FeatureFlagStatuses" - }, - "Project": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - } - } - }, - "$$ref": "#/definitions/Project" - }, - "Projects": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - } - } - }, - "$$ref": "#/definitions/Project" - } - } - }, - "$$ref": "#/definitions/Projects" - }, - "Environment": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - }, - "User": { - "type": "object", - "properties": { - "lastPing": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "ownerId": { - "type": "string" - }, - "user": { - "type": "object", - "example": { - "key": "a00bea", - "name": "Bob Loblaw", - "custom": { - "company": "example.com" - } - } - }, - "avatar": { - "type": "string" - } - }, - "$$ref": "#/definitions/User" - }, - "Users": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "totalCount": { - "type": "number" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "lastPing": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "ownerId": { - "type": "string" - }, - "user": { - "type": "object", - "example": { - "key": "a00bea", - "name": "Bob Loblaw", - "custom": { - "company": "example.com" - } - } - }, - "avatar": { - "type": "string" - } - }, - "$$ref": "#/definitions/User" - } - } - }, - "$$ref": "#/definitions/Users" - }, - "AuditLogEntry": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "date": { - "type": "number" - }, - "kind": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "member": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "titleVerb": { - "type": "string" - }, - "title": { - "type": "string" - }, - "target": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "resources": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "$$ref": "#/definitions/AuditLogEntry" - }, - "AuditLogEntries": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "date": { - "type": "number" - }, - "kind": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "member": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "titleVerb": { - "type": "string" - }, - "title": { - "type": "string" - }, - "target": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "name": { - "type": "string" - }, - "resources": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "$$ref": "#/definitions/AuditLogEntry" - } - } - }, - "$$ref": "#/definitions/AuditLogEntries" - }, - "UserFlagSetting": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_value": { - "type": "boolean" - }, - "setting": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/UserFlagSetting" - }, - "UserFlagSettings": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "object", - "example": { - "sort.order": { - "_links": { - "self": { - "href": "/api/v2/users/lacuna/production/Abbie_Braun/flags/sort.order", - "type": "application/json" - }, - "_value": true, - "setting": null - } - }, - "alternate.page": { - "_links": { - "self": { - "href": "/api/v2/users/lacuna/production/Abbie_Braun/flags/alternate.page", - "type": "application/json" - } - }, - "_value": "false,", - "setting": null - } - } - } - }, - "$$ref": "#/definitions/UserFlagSettings" - } - }, - "responses": { - "Standard201": { - "description": "Resource created", - "$$ref": "#/responses/Standard201" - }, - "Standard204": { - "description": "Action completed successfully", - "$$ref": "#/responses/Standard204" - }, - "Standard400": { - "description": "Invalid request body", - "$$ref": "#/responses/Standard400" - }, - "Standard401": { - "description": "Invalid access token", - "$$ref": "#/responses/Standard401" - }, - "Standard404": { - "description": "Invalid resource specifier", - "$$ref": "#/responses/Standard404" - }, - "Standard409": { - "description": "Status conflict", - "$$ref": "#/responses/Standard409" - }, - "Root200": { - "description": "A list of links to available resources in the API", - "schema": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "$$ref": "#/responses/Root200" - }, - "Webhooks200": { - "description": "Webhook response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "on": { - "type": "boolean" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Webhook" - }, - "$$ref": "#/responses/Webhooks200" - }, - "FeatureFlags200": { - "description": "Feature flag response", - "schema": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "creationDate": { - "type": "number" - }, - "includeInSnippet": { - "type": "boolean" - }, - "temporary": { - "type": "boolean" - }, - "maintainerId": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - } - }, - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_maintainer": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "role": { - "type": "string" - }, - "email": { - "type": "string" - }, - "_pendingInvite": { - "type": "boolean" - }, - "isBeta": { - "type": "boolean" - }, - "customRoles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$$ref": "#/definitions/Member" - }, - "environments": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "on": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "salt": { - "type": "string" - }, - "sel": { - "type": "string" - }, - "lastModified": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "variation": { - "type": "integer" - } - }, - "$$ref": "#/definitions/Target" - } - }, - "rules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - }, - "clauses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "attribute": { - "type": "string" - }, - "op": { - "type": "string" - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - }, - "negate": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Clause" - } - } - }, - "$$ref": "#/definitions/Rule" - } - }, - "fallthrough": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "rollout": { - "type": "object", - "properties": { - "variations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "variation": { - "type": "integer" - }, - "weight": { - "type": "integer" - } - }, - "$$ref": "#/definitions/WeightedVariation" - } - } - }, - "$$ref": "#/definitions/Rollout" - } - } - } - }, - "$$ref": "#/definitions/FeatureFlagConfig" - } - } - }, - "$$ref": "#/definitions/FeatureFlag" - }, - "$$ref": "#/responses/FeatureFlags200" - }, - "Projects200": { - "description": "Project response", - "schema": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "properties": { - "_links": { - "type": "object", - "properties": { - "self": { - "type": "object", - "properties": { - "href": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "$$ref": "#/definitions/Link" - } - }, - "$$ref": "#/definitions/Links" - }, - "_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "apiKey": { - "type": "string" - }, - "mobileKey": { - "type": "string" - }, - "color": { - "type": "string" - }, - "defaultTtl": { - "type": "number" - }, - "secureMode": { - "type": "boolean" - } - }, - "$$ref": "#/definitions/Environment" - } - } - }, - "$$ref": "#/definitions/Project" - }, - "$$ref": "#/responses/Projects200" - } - }, - "parameters": { - "ResourceId": { - "name": "resourceId", - "in": "path", - "required": true, - "description": "The resource ID", - "type": "string", - "$$ref": "#/parameters/ResourceId" - }, - "WebhookPostRequest": { - "name": "webhookBody", - "in": "body", - "required": true, - "description": "New webhook", - "schema": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "sign": { - "type": "boolean" - }, - "on": { - "type": "boolean" - } - }, - "required": [ - "url", - "sign", - "on" - ] - }, - "$$ref": "#/parameters/WebhookPostRequest" - }, - "FeatureFlagPostRequest": { - "name": "featureFlagBody", - "in": "body", - "required": true, - "description": "Create a new feature flag", - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A human-friendly name for the feature flag. Remember to note if this flag is intended to be temporary or permanent." - }, - "key": { - "type": "string", - "description": "A unique key that will be used to reference the flag in your code" - }, - "variations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "$$ref": "#/definitions/Variation" - }, - "description": "An array of possible variations for the flag." - }, - "temporary": { - "type": "boolean", - "description": "Whether or not the flag is a temporary flag" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Tags for the feature flag" - }, - "includeInSnippet": { - "type": "boolean", - "description": "Whether or not this flag should be made available to the client-side JavaScript SDK" - } - }, - "required": [ - "name", - "key", - "variations" - ] - }, - "$$ref": "#/parameters/FeatureFlagPostRequest" - }, - "ProjectPostRequest": { - "name": "projectBody", - "in": "body", - "required": true, - "description": "New project", - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - } - }, - "required": [ - "name", - "key" - ] - }, - "$$ref": "#/parameters/ProjectPostRequest" - }, - "EnvironmentPostRequest": { - "name": "environmentBody", - "in": "body", - "required": true, - "description": "New environment", - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "key": { - "type": "string" - }, - "color": { - "type": "string", - "description": "A color swatch (as an RGB hex value with no leading '#', e.g. C8C8C8)" - }, - "defaultTtl": { - "type": "number" - } - }, - "required": [ - "name", - "key", - "color" - ] - }, - "$$ref": "#/parameters/EnvironmentPostRequest" - }, - "ProjectKey": { - "name": "projectKey", - "in": "path", - "required": true, - "description": "The project key", - "type": "string", - "$$ref": "#/parameters/ProjectKey" - }, - "EnvironmentKey": { - "name": "environmentKey", - "in": "path", - "required": true, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKey" - }, - "EnvironmentKeyQuery": { - "name": "environmentKeyQuery", - "in": "query", - "required": false, - "description": "The environment key", - "type": "string", - "$$ref": "#/parameters/EnvironmentKeyQuery" - }, - "FeatureFlagKey": { - "name": "featureFlagKey", - "in": "path", - "required": true, - "description": "The feature flag's key", - "type": "string", - "$$ref": "#/parameters/FeatureFlagKey" - }, - "UserKey": { - "name": "userKey", - "in": "path", - "required": true, - "description": "The user's key", - "type": "string", - "$$ref": "#/parameters/UserKey" - }, - "Tag": { - "name": "tag", - "in": "query", - "required": false, - "description": "Filter by tag", - "type": "string", - "$$ref": "#/parameters/Tag" - }, - "Limit": { - "name": "limit", - "in": "query", - "required": false, - "description": "Pagination limit", - "type": "number", - "$$ref": "#/parameters/Limit" - }, - "Query": { - "name": "q", - "in": "query", - "required": false, - "description": "Search query", - "type": "string", - "$$ref": "#/parameters/Query" - }, - "Offset": { - "name": "offset", - "in": "query", - "required": false, - "description": "Specifies the first item to return in the collection", - "type": "number", - "$$ref": "#/parameters/Offset" - }, - "After": { - "name": "after", - "in": "query", - "required": false, - "description": "A unix epoch time in milliseconds specifying the maximum last time a user requested a feature flag", - "type": "number", - "$$ref": "#/parameters/After" - }, - "PatchRequest": { - "name": "patchDelta", - "in": "body", - "required": true, - "description": "http://jsonpatch.com/", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "op": { - "type": "string" - }, - "path": { - "type": "string" - }, - "value": { - "type": "object" - } - }, - "required": [ - "op", - "path", - "value" - ] - } - }, - "$$ref": "#/parameters/PatchRequest" - }, - "UserSettingsPutRequest": { - "name": "userSettingsBody", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "setting": { - "type": "boolean", - "description": "The variation value to set for the user. Must match the variation type of the flag." - } - } - }, - "$$ref": "#/parameters/UserSettingsPutRequest" - } - } - } - -- - apis: { - "projects": {}, - "environments": {}, - "flags": {}, - "users": {}, - "user settings": {}, - "audit log": {}, - "webhooks": {}, - "root": {} - } - \ No newline at end of file