{"modulePath":"github.com/launchdarkly/ldcli","version":"v1.18.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nPackage api provides primitives to interact with the openapi HTTP API.\n\nCode generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.\n\n## Variables\n\n```go\nvar RequestErrorHandler = errorHandler{\n\n\tcode:       \"bad_request\",\n\tstatusCode: http.StatusBadRequest,\n}.HandleError\n```\n\n```go\nvar ResponseErrorHandler = errorHandler{\n\n\tcode:       \"internal_server_error\",\n\tstatusCode: http.StatusInternalServerError,\n}.HandleError\n```\n\n## Functions\n\n```go\nfunc Handler(si ServerInterface) http.Handler\n```\nHandler creates http.Handler with routing matching OpenAPI spec.\n\n```go\nfunc HandlerFromMux(si ServerInterface, r *mux.Router) http.Handler\n```\nHandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.\n\n```go\nfunc HandlerFromMuxWithBaseURL(si ServerInterface, r *mux.Router, baseURL string) http.Handler\n```\n\n```go\nfunc HandlerWithOptions(si ServerInterface, options GorillaServerOptions) http.Handler\n```\nHandlerWithOptions creates http.Handler with additional options\n\n## Types\n\n```go\ntype Context = ldcontext.Context\n```\nContext context object to use when evaluating flags in source environment\n\n```go\ntype DbBackupApplicationvndSqlite3Response struct {\n\tBody io.Reader\n\n\tContentLength int64\n}\n```\n\n```go\ntype DebugSession struct {\n\t// EventCount number of events associated with this debug session\n\tEventCount int64 `json:\"event_count\"`\n\n\t// Key unique identifier for the debug session\n\tKey string `json:\"key\"`\n\n\t// WrittenAt timestamp when the debug session was created\n\tWrittenAt time.Time `json:\"written_at\"`\n}\n```\nDebugSession Debug session with event count\n\n```go\ntype DebugSessionsPage struct {\n\t// HasMore whether there are more results available\n\tHasMore bool `json:\"has_more\"`\n\n\t// Sessions list of debug sessions\n\tSessions []DebugSession `json:\"sessions\"`\n\n\t// TotalCount total number of debug sessions available\n\tTotalCount int64 `json:\"total_count\"`\n}\n```\nDebugSessionsPage Paginated response of debug sessions\n\n```go\ntype DeleteDebugSession204Response struct {\n}\n```\n\n```go\nfunc (response DeleteDebugSession204Response) VisitDeleteDebugSessionResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteDebugSession404JSONResponse struct{ ErrorResponseJSONResponse }\n```\n\n```go\nfunc (response DeleteDebugSession404JSONResponse) VisitDeleteDebugSessionResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteDebugSessionRequestObject struct {\n\tDebugSessionKey string `json:\"debugSessionKey\"`\n}\n```\n\n```go\ntype DeleteDebugSessionResponseObject interface {\n\tVisitDeleteDebugSessionResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype DeleteFlagOverride204Response struct {\n}\n```\n\n```go\nfunc (response DeleteFlagOverride204Response) VisitDeleteFlagOverrideResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteFlagOverride404Response struct {\n}\n```\n\n```go\nfunc (response DeleteFlagOverride404Response) VisitDeleteFlagOverrideResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteFlagOverrideRequestObject struct {\n\tProjectKey ProjectKey `json:\"projectKey\"`\n\tFlagKey    FlagKey    `json:\"flagKey\"`\n}\n```\n\n```go\ntype DeleteFlagOverrideResponseObject interface {\n\tVisitDeleteFlagOverrideResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype DeleteOverrides204Response struct {\n}\n```\n\n```go\nfunc (response DeleteOverrides204Response) VisitDeleteOverridesResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteOverrides404JSONResponse struct{ ErrorResponseJSONResponse }\n```\n\n```go\nfunc (response DeleteOverrides404JSONResponse) VisitDeleteOverridesResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteOverridesRequestObject struct {\n\tProjectKey ProjectKey `json:\"projectKey\"`\n}\n```\n\n```go\ntype DeleteOverridesResponseObject interface {\n\tVisitDeleteOverridesResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype DeleteProject204Response struct {\n}\n```\n\n```go\nfunc (response DeleteProject204Response) VisitDeleteProjectResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteProject404JSONResponse struct{ ErrorResponseJSONResponse }\n```\n\n```go\nfunc (response DeleteProject404JSONResponse) VisitDeleteProjectResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteProjectRequestObject struct {\n\tProjectKey ProjectKey `json:\"projectKey\"`\n}\n```\n\n```go\ntype DeleteProjectResponseObject interface {\n\tVisitDeleteProjectResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype Environment struct {\n\tKey  string `json:\"key\"`\n\tName string `json:\"name\"`\n}\n```\nEnvironment Environment\n\n```go\ntype ErrorResponse struct {\n\t// Code specific error code encountered\n\tCode string `json:\"code\"`\n\n\t// Message description of the error\n\tMessage string `json:\"message\"`\n}\n```\nErrorResponse defines model for ErrorResponse.\n\n```go\ntype ErrorResponseJSONResponse struct {\n\t// Code specific error code encountered\n\tCode string `json:\"code\"`\n\n\t// Message description of the error\n\tMessage string `json:\"message\"`\n}\n```\n\n```go\ntype Event struct {\n\t// Data raw event data as JSON\n\tData json.RawMessage `json:\"data\"`\n\n\t// Id unique identifier for the event\n\tId int64 `json:\"id\"`\n\n\t// Kind type of event (e.g., summary, diagnostic, feature)\n\tKind string `json:\"kind\"`\n\n\t// WrittenAt timestamp when the event was written\n\tWrittenAt time.Time `json:\"written_at\"`\n}\n```\nEvent A stored event with metadata\n\n```go\ntype EventsPage struct {\n\t// Events list of events\n\tEvents []Event `json:\"events\"`\n\n\t// HasMore whether there are more results available\n\tHasMore bool `json:\"has_more\"`\n\n\t// TotalCount total number of events available\n\tTotalCount int64 `json:\"total_count\"`\n}\n```\nEventsPage Paginated response of events\n\n```go\ntype FlagKey = string\n```\nFlagKey defines model for flagKey.\n\n```go\ntype FlagOverride struct {\n\t// Override whether or not this is an overridden value or one from the source environment\n\tOverride bool `json:\"override\"`\n\n\t// Value value of a feature flag variation\n\tValue FlagValue `json:\"value\"`\n}\n```\nFlagOverride defines model for FlagOverride.\n\n```go\ntype FlagOverrideJSONResponse struct {\n\t// Override whether or not this is an overridden value or one from the source environment\n\tOverride bool `json:\"override\"`\n\n\t// Value value of a feature flag variation\n\tValue FlagValue `json:\"value\"`\n}\n```\n\n```go\ntype FlagValue = ldvalue.Value\n```\nFlagValue value of a feature flag variation\n\n```go\ntype GetBackup200ApplicationvndSqlite3Response struct {\n\tDbBackupApplicationvndSqlite3Response\n}\n```\n\n```go\nfunc (response GetBackup200ApplicationvndSqlite3Response) VisitGetBackupResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetBackupRequestObject struct {\n}\n```\n\n```go\ntype GetBackupResponseObject interface {\n\tVisitGetBackupResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetDebugSessionEvents200JSONResponse EventsPage\n```\n\n```go\nfunc (response GetDebugSessionEvents200JSONResponse) VisitGetDebugSessionEventsResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetDebugSessionEvents400JSONResponse struct{ ErrorResponseJSONResponse }\n```\n\n```go\nfunc (response GetDebugSessionEvents400JSONResponse) VisitGetDebugSessionEventsResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetDebugSessionEvents404JSONResponse struct {\n\t// Code specific error code encountered\n\tCode string `json:\"code\"`\n\n\t// Message description of the error\n\tMessage string `json:\"message\"`\n}\n```\n\n```go\nfunc (response GetDebugSessionEvents404JSONResponse) VisitGetDebugSessionEventsResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetDebugSessionEventsParams struct {\n\t// Kind filter events by kind (e.g., summary, diagnostic, feature)\n\tKind *string `form:\"kind,omitempty\" json:\"kind,omitempty\"`\n\n\t// Limit limit the number of events returned\n\tLimit *int `form:\"limit,omitempty\" json:\"limit,omitempty\"`\n\n\t// Offset offset for pagination\n\tOffset *int `form:\"offset,omitempty\" json:\"offset,omitempty\"`\n}\n```\nGetDebugSessionEventsParams defines parameters for GetDebugSessionEvents.\n\n```go\ntype GetDebugSessionEventsRequestObject struct {\n\tDebugSessionKey string `json:\"debugSessionKey\"`\n\tParams          GetDebugSessionEventsParams\n}\n```\n\n```go\ntype GetDebugSessionEventsResponseObject interface {\n\tVisitGetDebugSessionEventsResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetDebugSessions200JSONResponse DebugSessionsPage\n```\n\n```go\nfunc (response GetDebugSessions200JSONResponse) VisitGetDebugSessionsResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetDebugSessions400JSONResponse struct{ ErrorResponseJSONResponse }\n```\n\n```go\nfunc (response GetDebugSessions400JSONResponse) VisitGetDebugSessionsResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetDebugSessionsParams struct {\n\t// Limit limit the number of debug sessions returned\n\tLimit *int `form:\"limit,omitempty\" json:\"limit,omitempty\"`\n\n\t// Offset offset for pagination\n\tOffset *int `form:\"offset,omitempty\" json:\"offset,omitempty\"`\n}\n```\nGetDebugSessionsParams defines parameters for GetDebugSessions.\n\n```go\ntype GetDebugSessionsRequestObject struct {\n\tParams GetDebugSessionsParams\n}\n```\n\n```go\ntype GetDebugSessionsResponseObject interface {\n\tVisitGetDebugSessionsResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetEnvironments200JSONResponse []Environment\n```\n\n```go\nfunc (response GetEnvironments200JSONResponse) VisitGetEnvironmentsResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetEnvironments400JSONResponse struct{ ErrorResponseJSONResponse }\n```\n\n```go\nfunc (response GetEnvironments400JSONResponse) VisitGetEnvironmentsResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetEnvironments404JSONResponse struct {\n\t// Code specific error code encountered\n\tCode string `json:\"code\"`\n\n\t// Message description of the error\n\tMessage string `json:\"message\"`\n}\n```\n\n```go\nfunc (response GetEnvironments404JSONResponse) VisitGetEnvironmentsResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetEnvironmentsParams struct {\n\t// Name filter by environment name\n\tName *string `form:\"name,omitempty\" json:\"name,omitempty\"`\n\n\t// Limit limit the number of environments returned\n\tLimit *int `form:\"limit,omitempty\" json:\"limit,omitempty\"`\n}\n```\nGetEnvironmentsParams defines parameters for GetEnvironments.\n\n```go\ntype GetEnvironmentsRequestObject struct {\n\tProjectKey ProjectKey `json:\"projectKey\"`\n\tParams     GetEnvironmentsParams\n}\n```\n\n```go\ntype GetEnvironmentsResponseObject interface {\n\tVisitGetEnvironmentsResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetProject200JSONResponse struct{ ProjectJSONResponse }\n```\n\n```go\nfunc (response GetProject200JSONResponse) VisitGetProjectResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetProject404Response struct {\n}\n```\n\n```go\nfunc (response GetProject404Response) VisitGetProjectResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetProjectParams struct {\n\t// Expand Available expand options for this endpoint.\n\tExpand *ProjectExpand `form:\"expand,omitempty\" json:\"expand,omitempty\"`\n}\n```\nGetProjectParams defines parameters for GetProject.\n\n```go\ntype GetProjectParamsExpand string\n```\nGetProjectParamsExpand defines parameters for GetProject.\n\n```go\nconst (\n\tGetProjectParamsExpandAvailableVariations GetProjectParamsExpand = \"availableVariations\"\n\tGetProjectParamsExpandOverrides           GetProjectParamsExpand = \"overrides\"\n)\n```\nDefines values for GetProjectParamsExpand.\n\n```go\ntype GetProjectRequestObject struct {\n\tProjectKey ProjectKey `json:\"projectKey\"`\n\tParams     GetProjectParams\n}\n```\n\n```go\ntype GetProjectResponseObject interface {\n\tVisitGetProjectResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetProjects200JSONResponse []string\n```\n\n```go\nfunc (response GetProjects200JSONResponse) VisitGetProjectsResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetProjectsRequestObject struct {\n}\n```\n\n```go\ntype GetProjectsResponseObject interface {\n\tVisitGetProjectsResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GorillaServerOptions struct {\n\tBaseURL          string\n\tBaseRouter       *mux.Router\n\tMiddlewares      []MiddlewareFunc\n\tErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)\n}\n```\n\n```go\ntype InvalidParamFormatError struct {\n\tParamName string\n\tErr       error\n}\n```\n\n```go\nfunc (e *InvalidParamFormatError) Error() string\n```\n\n```go\nfunc (e *InvalidParamFormatError) Unwrap() error\n```\n\n```go\ntype MiddlewareFunc func(http.Handler) http.Handler\n```\n\n```go\ntype PatchProject200JSONResponse struct{ ProjectJSONResponse }\n```\n\n```go\nfunc (response PatchProject200JSONResponse) VisitPatchProjectResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PatchProject404Response struct {\n}\n```\n\n```go\nfunc (response PatchProject404Response) VisitPatchProjectResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PatchProjectJSONBody struct {\n\t// Context context object to use when evaluating flags in source environment\n\tContext *Context `json:\"context,omitempty\"`\n\n\t// SourceEnvironmentKey environment to copy flag values from\n\tSourceEnvironmentKey *string `json:\"sourceEnvironmentKey,omitempty\"`\n}\n```\nPatchProjectJSONBody defines parameters for PatchProject.\n\n```go\ntype PatchProjectJSONRequestBody PatchProjectJSONBody\n```\nPatchProjectJSONRequestBody defines body for PatchProject for application/json ContentType.\n\n```go\ntype PatchProjectParams struct {\n\t// Expand Available expand options for this endpoint.\n\tExpand *ProjectExpand `form:\"expand,omitempty\" json:\"expand,omitempty\"`\n}\n```\nPatchProjectParams defines parameters for PatchProject.\n\n```go\ntype PatchProjectParamsExpand string\n```\nPatchProjectParamsExpand defines parameters for PatchProject.\n\n```go\nconst (\n\tPatchProjectParamsExpandAvailableVariations PatchProjectParamsExpand = \"availableVariations\"\n\tPatchProjectParamsExpandOverrides           PatchProjectParamsExpand = \"overrides\"\n)\n```\nDefines values for PatchProjectParamsExpand.\n\n```go\ntype PatchProjectRequestObject struct {\n\tProjectKey ProjectKey `json:\"projectKey\"`\n\tParams     PatchProjectParams\n\tBody       *PatchProjectJSONRequestBody\n}\n```\n\n```go\ntype PatchProjectResponseObject interface {\n\tVisitPatchProjectResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype PostAddProject201JSONResponse struct{ ProjectJSONResponse }\n```\n\n```go\nfunc (response PostAddProject201JSONResponse) VisitPostAddProjectResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostAddProject400JSONResponse struct{ ErrorResponseJSONResponse }\n```\n\n```go\nfunc (response PostAddProject400JSONResponse) VisitPostAddProjectResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostAddProject409JSONResponse struct {\n\t// Code specific error code encountered\n\tCode string `json:\"code\"`\n\n\t// Message description of the error\n\tMessage string `json:\"message\"`\n}\n```\n\n```go\nfunc (response PostAddProject409JSONResponse) VisitPostAddProjectResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PostAddProjectJSONBody struct {\n\t// Context context object to use when evaluating flags in source environment\n\tContext *Context `json:\"context,omitempty\"`\n\n\t// SourceEnvironmentKey environment to copy flag values from\n\tSourceEnvironmentKey string `json:\"sourceEnvironmentKey\"`\n}\n```\nPostAddProjectJSONBody defines parameters for PostAddProject.\n\n```go\ntype PostAddProjectJSONRequestBody PostAddProjectJSONBody\n```\nPostAddProjectJSONRequestBody defines body for PostAddProject for application/json ContentType.\n\n```go\ntype PostAddProjectParams struct {\n\t// Expand Available expand options for this endpoint.\n\tExpand *ProjectExpand `form:\"expand,omitempty\" json:\"expand,omitempty\"`\n}\n```\nPostAddProjectParams defines parameters for PostAddProject.\n\n```go\ntype PostAddProjectParamsExpand string\n```\nPostAddProjectParamsExpand defines parameters for PostAddProject.\n\n```go\nconst (\n\tAvailableVariations PostAddProjectParamsExpand = \"availableVariations\"\n\tOverrides           PostAddProjectParamsExpand = \"overrides\"\n)\n```\nDefines values for PostAddProjectParamsExpand.\n\n```go\ntype PostAddProjectRequestObject struct {\n\tProjectKey ProjectKey `json:\"projectKey\"`\n\tParams     PostAddProjectParams\n\tBody       *PostAddProjectJSONRequestBody\n}\n```\n\n```go\ntype PostAddProjectResponseObject interface {\n\tVisitPostAddProjectResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype Project struct {\n\t// LastSyncedFromSource unix timestamp for the lat time the flag values were synced from the source environment\n\tLastSyncedFromSource int64 `json:\"_lastSyncedFromSource\"`\n\n\t// AvailableVariations variations\n\tAvailableVariations *map[string][]Variation `json:\"availableVariations,omitempty\"`\n\n\t// Context context object to use when evaluating flags in source environment\n\tContext Context `json:\"context\"`\n\n\t// FlagsState flags and their values and version for a given project in the source environment\n\tFlagsState *model.FlagsState `json:\"flagsState,omitempty\"`\n\n\t// Overrides overridden flags for the project\n\tOverrides *model.FlagsState `json:\"overrides,omitempty\"`\n\n\t// SourceEnvironmentKey environment to copy flag values from\n\tSourceEnvironmentKey string `json:\"sourceEnvironmentKey\"`\n}\n```\nProject Project\n\n```go\ntype ProjectExpand = []string\n```\nProjectExpand defines model for projectExpand.\n\n```go\ntype ProjectJSONResponse Project\n```\n\n```go\ntype ProjectKey = string\n```\nProjectKey defines model for projectKey.\n\n```go\ntype PutOverrideFlag200JSONResponse struct{ FlagOverrideJSONResponse }\n```\n\n```go\nfunc (response PutOverrideFlag200JSONResponse) VisitPutOverrideFlagResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutOverrideFlag400JSONResponse struct{ ErrorResponseJSONResponse }\n```\n\n```go\nfunc (response PutOverrideFlag400JSONResponse) VisitPutOverrideFlagResponse(w http.ResponseWriter) error\n```\n\n```go\ntype PutOverrideFlagJSONRequestBody = FlagValue\n```\nPutOverrideFlagJSONRequestBody defines body for PutOverrideFlag for application/json ContentType.\n\n```go\ntype PutOverrideFlagRequestObject struct {\n\tProjectKey ProjectKey `json:\"projectKey\"`\n\tFlagKey    FlagKey    `json:\"flagKey\"`\n\tBody       *PutOverrideFlagJSONRequestBody\n}\n```\n\n```go\ntype PutOverrideFlagResponseObject interface {\n\tVisitPutOverrideFlagResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype RequiredHeaderError struct {\n\tParamName string\n\tErr       error\n}\n```\n\n```go\nfunc (e *RequiredHeaderError) Error() string\n```\n\n```go\nfunc (e *RequiredHeaderError) Unwrap() error\n```\n\n```go\ntype RequiredParamError struct {\n\tParamName string\n}\n```\n\n```go\nfunc (e *RequiredParamError) Error() string\n```\n\n```go\ntype RestoreBackup200Response struct {\n}\n```\n\n```go\nfunc (response RestoreBackup200Response) VisitRestoreBackupResponse(w http.ResponseWriter) error\n```\n\n```go\ntype RestoreBackupRequestObject struct {\n\tBody io.Reader\n}\n```\n\n```go\ntype RestoreBackupResponseObject interface {\n\tVisitRestoreBackupResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype ServerInterface interface {\n\t// get the backup\n\t// (GET /backup)\n\tGetBackup(w http.ResponseWriter, r *http.Request)\n\t// post backup\n\t// (POST /backup)\n\tRestoreBackup(w http.ResponseWriter, r *http.Request)\n\t// list all debug sessions with event counts\n\t// (GET /debug-sessions)\n\tGetDebugSessions(w http.ResponseWriter, r *http.Request, params GetDebugSessionsParams)\n\t// delete a specific debug session and all its events\n\t// (DELETE /debug-sessions/{debugSessionKey})\n\tDeleteDebugSession(w http.ResponseWriter, r *http.Request, debugSessionKey string)\n\t// get events for a specific debug session\n\t// (GET /debug-sessions/{debugSessionKey}/events)\n\tGetDebugSessionEvents(w http.ResponseWriter, r *http.Request, debugSessionKey string, params GetDebugSessionEventsParams)\n\t// lists all projects that have been configured for the dev server\n\t// (GET /projects)\n\tGetProjects(w http.ResponseWriter, r *http.Request)\n\t// remove the specified project from the dev server\n\t// (DELETE /projects/{projectKey})\n\tDeleteProject(w http.ResponseWriter, r *http.Request, projectKey ProjectKey)\n\t// get the specified project and its configuration for syncing from the LaunchDarkly Service\n\t// (GET /projects/{projectKey})\n\tGetProject(w http.ResponseWriter, r *http.Request, projectKey ProjectKey, params GetProjectParams)\n\t// updates the project context or sourceEnvironmentKey then syncs.  Input an empty body to only force a sync.\n\t// (PATCH /projects/{projectKey})\n\tPatchProject(w http.ResponseWriter, r *http.Request, projectKey ProjectKey, params PatchProjectParams)\n\t// Add the project to the dev server\n\t// (POST /projects/{projectKey})\n\tPostAddProject(w http.ResponseWriter, r *http.Request, projectKey ProjectKey, params PostAddProjectParams)\n\t// list all environments for the given project\n\t// (GET /projects/{projectKey}/environments)\n\tGetEnvironments(w http.ResponseWriter, r *http.Request, projectKey ProjectKey, params GetEnvironmentsParams)\n\t// remove all overrides for the given project\n\t// (DELETE /projects/{projectKey}/overrides)\n\tDeleteOverrides(w http.ResponseWriter, r *http.Request, projectKey ProjectKey)\n\t// remove override for flag\n\t// (DELETE /projects/{projectKey}/overrides/{flagKey})\n\tDeleteFlagOverride(w http.ResponseWriter, r *http.Request, projectKey ProjectKey, flagKey FlagKey)\n\t// override flag value with value provided in the body\n\t// (PUT /projects/{projectKey}/overrides/{flagKey})\n\tPutOverrideFlag(w http.ResponseWriter, r *http.Request, projectKey ProjectKey, flagKey FlagKey)\n}\n```\nServerInterface represents all server handlers.\n\n```go\nfunc NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface\n```\n\n```go\nfunc NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface\n```\n\n```go\ntype ServerInterfaceWrapper struct {\n\tHandler            ServerInterface\n\tHandlerMiddlewares []MiddlewareFunc\n\tErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)\n}\n```\nServerInterfaceWrapper converts contexts to parameters.\n\n```go\nfunc (siw *ServerInterfaceWrapper) DeleteDebugSession(w http.ResponseWriter, r *http.Request)\n```\nDeleteDebugSession operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) DeleteFlagOverride(w http.ResponseWriter, r *http.Request)\n```\nDeleteFlagOverride operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) DeleteOverrides(w http.ResponseWriter, r *http.Request)\n```\nDeleteOverrides operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) DeleteProject(w http.ResponseWriter, r *http.Request)\n```\nDeleteProject operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) GetBackup(w http.ResponseWriter, r *http.Request)\n```\nGetBackup operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) GetDebugSessionEvents(w http.ResponseWriter, r *http.Request)\n```\nGetDebugSessionEvents operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) GetDebugSessions(w http.ResponseWriter, r *http.Request)\n```\nGetDebugSessions operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) GetEnvironments(w http.ResponseWriter, r *http.Request)\n```\nGetEnvironments operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Request)\n```\nGetProject operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) GetProjects(w http.ResponseWriter, r *http.Request)\n```\nGetProjects operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) PatchProject(w http.ResponseWriter, r *http.Request)\n```\nPatchProject operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) PostAddProject(w http.ResponseWriter, r *http.Request)\n```\nPostAddProject operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) PutOverrideFlag(w http.ResponseWriter, r *http.Request)\n```\nPutOverrideFlag operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) RestoreBackup(w http.ResponseWriter, r *http.Request)\n```\nRestoreBackup operation middleware\n\n```go\ntype StrictHTTPServerOptions struct {\n\tRequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)\n\tResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)\n}\n```\n\n```go\ntype StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc\n```\n\n```go\ntype StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc\n```\n\n```go\ntype StrictServerInterface interface {\n\t// get the backup\n\t// (GET /backup)\n\tGetBackup(ctx context.Context, request GetBackupRequestObject) (GetBackupResponseObject, error)\n\t// post backup\n\t// (POST /backup)\n\tRestoreBackup(ctx context.Context, request RestoreBackupRequestObject) (RestoreBackupResponseObject, error)\n\t// list all debug sessions with event counts\n\t// (GET /debug-sessions)\n\tGetDebugSessions(ctx context.Context, request GetDebugSessionsRequestObject) (GetDebugSessionsResponseObject, error)\n\t// delete a specific debug session and all its events\n\t// (DELETE /debug-sessions/{debugSessionKey})\n\tDeleteDebugSession(ctx context.Context, request DeleteDebugSessionRequestObject) (DeleteDebugSessionResponseObject, error)\n\t// get events for a specific debug session\n\t// (GET /debug-sessions/{debugSessionKey}/events)\n\tGetDebugSessionEvents(ctx context.Context, request GetDebugSessionEventsRequestObject) (GetDebugSessionEventsResponseObject, error)\n\t// lists all projects that have been configured for the dev server\n\t// (GET /projects)\n\tGetProjects(ctx context.Context, request GetProjectsRequestObject) (GetProjectsResponseObject, error)\n\t// remove the specified project from the dev server\n\t// (DELETE /projects/{projectKey})\n\tDeleteProject(ctx context.Context, request DeleteProjectRequestObject) (DeleteProjectResponseObject, error)\n\t// get the specified project and its configuration for syncing from the LaunchDarkly Service\n\t// (GET /projects/{projectKey})\n\tGetProject(ctx context.Context, request GetProjectRequestObject) (GetProjectResponseObject, error)\n\t// updates the project context or sourceEnvironmentKey then syncs.  Input an empty body to only force a sync.\n\t// (PATCH /projects/{projectKey})\n\tPatchProject(ctx context.Context, request PatchProjectRequestObject) (PatchProjectResponseObject, error)\n\t// Add the project to the dev server\n\t// (POST /projects/{projectKey})\n\tPostAddProject(ctx context.Context, request PostAddProjectRequestObject) (PostAddProjectResponseObject, error)\n\t// list all environments for the given project\n\t// (GET /projects/{projectKey}/environments)\n\tGetEnvironments(ctx context.Context, request GetEnvironmentsRequestObject) (GetEnvironmentsResponseObject, error)\n\t// remove all overrides for the given project\n\t// (DELETE /projects/{projectKey}/overrides)\n\tDeleteOverrides(ctx context.Context, request DeleteOverridesRequestObject) (DeleteOverridesResponseObject, error)\n\t// remove override for flag\n\t// (DELETE /projects/{projectKey}/overrides/{flagKey})\n\tDeleteFlagOverride(ctx context.Context, request DeleteFlagOverrideRequestObject) (DeleteFlagOverrideResponseObject, error)\n\t// override flag value with value provided in the body\n\t// (PUT /projects/{projectKey}/overrides/{flagKey})\n\tPutOverrideFlag(ctx context.Context, request PutOverrideFlagRequestObject) (PutOverrideFlagResponseObject, error)\n}\n```\nStrictServerInterface represents all server handlers.\n\n```go\nfunc NewStrictServer() StrictServerInterface\n```\n\n```go\ntype TooManyValuesForParamError struct {\n\tParamName string\n\tCount     int\n}\n```\n\n```go\nfunc (e *TooManyValuesForParamError) Error() string\n```\n\n```go\ntype UnescapedCookieParamError struct {\n\tParamName string\n\tErr       error\n}\n```\n\n```go\nfunc (e *UnescapedCookieParamError) Error() string\n```\n\n```go\nfunc (e *UnescapedCookieParamError) Unwrap() error\n```\n\n```go\ntype UnmarshalingParamError struct {\n\tParamName string\n\tErr       error\n}\n```\n\n```go\nfunc (e *UnmarshalingParamError) Error() string\n```\n\n```go\nfunc (e *UnmarshalingParamError) Unwrap() error\n```\n\n```go\ntype Variation struct {\n\tId          string  `json:\"_id\"`\n\tDescription *string `json:\"description,omitempty\"`\n\tName        *string `json:\"name,omitempty\"`\n\n\t// Value value of a feature flag variation\n\tValue FlagValue `json:\"value\"`\n}\n```\nVariation variation of a flag\n\n","path":"github.com/launchdarkly/ldcli/internal/dev_server/api","name":"api","synopsis":"Package api provides primitives to interact with the openapi HTTP API.","isRedistributable":true}
