Documentation
¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int64(i int64) *int64
- func Pointer[T any](v T) *T
- func String(s string) *string
- type AnalyticsExplorations
- func (s *AnalyticsExplorations) RunDataSource(ctx context.Context, request operations.PostDataSourceExplorationRequest, ...) (*operations.PostDataSourceExplorationResponse, error)
- func (s *AnalyticsExplorations) RunFactTable(ctx context.Context, request operations.PostFactTableExplorationRequest, ...) (*operations.PostFactTableExplorationResponse, error)
- func (s *AnalyticsExplorations) RunMetric(ctx context.Context, request operations.PostMetricExplorationRequest, ...) (*operations.PostMetricExplorationResponse, error)
- type Archetypes
- func (s *Archetypes) Create(ctx context.Context, request operations.PostArchetypeRequest, ...) (*operations.PostArchetypeResponse, error)
- func (s *Archetypes) DeleteArchetype(ctx context.Context, request operations.DeleteArchetypeRequest, ...) (*operations.DeleteArchetypeResponse, error)
- func (s *Archetypes) GetArchetype(ctx context.Context, request operations.GetArchetypeRequest, ...) (*operations.GetArchetypeResponse, error)
- func (s *Archetypes) ListArchetypes(ctx context.Context, opts ...operations.Option) (*operations.ListArchetypesResponse, error)
- func (s *Archetypes) Update(ctx context.Context, request operations.PutArchetypeRequest, ...) (*operations.PutArchetypeResponse, error)
- type Attributes
- func (s *Attributes) Create(ctx context.Context, request operations.PostAttributeRequest, ...) (*operations.PostAttributeResponse, error)
- func (s *Attributes) DeleteAttribute(ctx context.Context, request operations.DeleteAttributeRequest, ...) (*operations.DeleteAttributeResponse, error)
- func (s *Attributes) ListAttributes(ctx context.Context, request *operations.ListAttributesRequest, ...) (*operations.ListAttributesResponse, error)
- func (s *Attributes) Update(ctx context.Context, request operations.PutAttributeRequest, ...) (*operations.PutAttributeResponse, error)
- type CodeReferences
- func (s *CodeReferences) GetForFeature(ctx context.Context, request operations.GetCodeRefsRequest, ...) (*operations.GetCodeRefsResponse, error)
- func (s *CodeReferences) List(ctx context.Context, request *operations.ListCodeRefsRequest, ...) (*operations.ListCodeRefsResponse, error)
- func (s *CodeReferences) Submit(ctx context.Context, request operations.PostCodeRefsRequest, ...) (*operations.PostCodeRefsResponse, error)
- type ConfigRevisions
- func (s *ConfigRevisions) Archive(ctx context.Context, request operations.PutConfigRevisionArchiveRequest, ...) (*operations.PutConfigRevisionArchiveResponse, error)
- func (s *ConfigRevisions) Create(ctx context.Context, request operations.PostConfigRevisionRequest, ...) (*operations.PostConfigRevisionResponse, error)
- func (s *ConfigRevisions) DeleteProjection(ctx context.Context, request operations.DeleteConfigRevisionProjectionRequest, ...) (*operations.DeleteConfigRevisionProjectionResponse, error)
- func (s *ConfigRevisions) Discard(ctx context.Context, request operations.PostConfigRevisionDiscardRequest, ...) (*operations.PostConfigRevisionDiscardResponse, error)
- func (s *ConfigRevisions) GetConfigRevision(ctx context.Context, request operations.GetConfigRevisionRequest, ...) (*operations.GetConfigRevisionResponse, error)
- func (s *ConfigRevisions) Latest(ctx context.Context, request operations.GetConfigRevisionLatestRequest, ...) (*operations.GetConfigRevisionLatestResponse, error)
- func (s *ConfigRevisions) ListConfigRevisions(ctx context.Context, request *operations.ListConfigRevisionsRequest, ...) (*operations.ListConfigRevisionsResponse, error)
- func (s *ConfigRevisions) ListForConfig(ctx context.Context, request operations.GetConfigRevisionsRequest, ...) (*operations.GetConfigRevisionsResponse, error)
- func (s *ConfigRevisions) MergeStatus(ctx context.Context, request operations.GetConfigRevisionMergeStatusRequest, ...) (*operations.GetConfigRevisionMergeStatusResponse, error)
- func (s *ConfigRevisions) Publish(ctx context.Context, request operations.PostConfigRevisionPublishRequest, ...) (*operations.PostConfigRevisionPublishResponse, error)
- func (s *ConfigRevisions) Rebase(ctx context.Context, request operations.PostConfigRevisionRebaseRequest, ...) (*operations.PostConfigRevisionRebaseResponse, error)
- func (s *ConfigRevisions) RecallReview(ctx context.Context, request operations.PostConfigRevisionRecallReviewRequest, ...) (*operations.PostConfigRevisionRecallReviewResponse, error)
- func (s *ConfigRevisions) Reopen(ctx context.Context, request operations.PostConfigRevisionReopenRequest, ...) (*operations.PostConfigRevisionReopenResponse, error)
- func (s *ConfigRevisions) RequestReview(ctx context.Context, request operations.PostConfigRevisionRequestReviewRequest, ...) (*operations.PostConfigRevisionRequestReviewResponse, error)
- func (s *ConfigRevisions) Revert(ctx context.Context, request operations.PostConfigRevisionRevertRequest, ...) (*operations.PostConfigRevisionRevertResponse, error)
- func (s *ConfigRevisions) SchedulePublish(ctx context.Context, ...) (*operations.PostConfigRevisionSchedulePublishResponse, error)
- func (s *ConfigRevisions) SetMetadata(ctx context.Context, request operations.PutConfigRevisionMetadataRequest, ...) (*operations.PutConfigRevisionMetadataResponse, error)
- func (s *ConfigRevisions) SetProjection(ctx context.Context, request operations.PutConfigRevisionProjectionRequest, ...) (*operations.PutConfigRevisionProjectionResponse, error)
- func (s *ConfigRevisions) SetSchema(ctx context.Context, request operations.PutConfigRevisionSchemaRequest, ...) (*operations.PutConfigRevisionSchemaResponse, error)
- func (s *ConfigRevisions) SetValue(ctx context.Context, request operations.PutConfigRevisionValueRequest, ...) (*operations.PutConfigRevisionValueResponse, error)
- func (s *ConfigRevisions) SubmitReview(ctx context.Context, request operations.PostConfigRevisionSubmitReviewRequest, ...) (*operations.PostConfigRevisionSubmitReviewResponse, error)
- type Configs
- func (s *Configs) ArchiveConfig(ctx context.Context, request operations.ArchiveConfigRequest, ...) (*operations.ArchiveConfigResponse, error)
- func (s *Configs) Create(ctx context.Context, request operations.PostConfigRequest, ...) (*operations.PostConfigResponse, error)
- func (s *Configs) DeleteConfig(ctx context.Context, request operations.DeleteConfigRequest, ...) (*operations.DeleteConfigResponse, error)
- func (s *Configs) GetConfig(ctx context.Context, request operations.GetConfigRequest, ...) (*operations.GetConfigResponse, error)
- func (s *Configs) GetKeyUsage(ctx context.Context, request operations.GetConfigKeyUsageRequest, ...) (*operations.GetConfigKeyUsageResponse, error)
- func (s *Configs) GetLineage(ctx context.Context, request operations.GetConfigLineageRequest, ...) (*operations.GetConfigLineageResponse, error)
- func (s *Configs) GetReferences(ctx context.Context, request operations.GetConfigReferencesRequest, ...) (*operations.GetConfigReferencesResponse, error)
- func (s *Configs) GetSchema(ctx context.Context, request operations.GetConfigSchemaRequest, ...) (*operations.GetConfigSchemaResponse, error)
- func (s *Configs) ListConfigs(ctx context.Context, request *operations.ListConfigsRequest, ...) (*operations.ListConfigsResponse, error)
- func (s *Configs) LockConfig(ctx context.Context, request operations.LockConfigRequest, ...) (*operations.LockConfigResponse, error)
- func (s *Configs) UnarchiveConfig(ctx context.Context, request operations.UnarchiveConfigRequest, ...) (*operations.UnarchiveConfigResponse, error)
- func (s *Configs) UnlockConfig(ctx context.Context, request operations.UnlockConfigRequest, ...) (*operations.UnlockConfigResponse, error)
- func (s *Configs) UpdateConfig(ctx context.Context, request operations.UpdateConfigRequest, ...) (*operations.UpdateConfigResponse, error)
- func (s *Configs) VerifySchema(ctx context.Context, request operations.VerifyConfigSchemaRequest, ...) (*operations.VerifyConfigSchemaResponse, error)
- type ConstantRevisions
- func (s *ConstantRevisions) Archive(ctx context.Context, request operations.PutConstantRevisionArchiveRequest, ...) (*operations.PutConstantRevisionArchiveResponse, error)
- func (s *ConstantRevisions) Create(ctx context.Context, request operations.PostConstantRevisionRequest, ...) (*operations.PostConstantRevisionResponse, error)
- func (s *ConstantRevisions) Discard(ctx context.Context, request operations.PostConstantRevisionDiscardRequest, ...) (*operations.PostConstantRevisionDiscardResponse, error)
- func (s *ConstantRevisions) GetConstantRevision(ctx context.Context, request operations.GetConstantRevisionRequest, ...) (*operations.GetConstantRevisionResponse, error)
- func (s *ConstantRevisions) Latest(ctx context.Context, request operations.GetConstantRevisionLatestRequest, ...) (*operations.GetConstantRevisionLatestResponse, error)
- func (s *ConstantRevisions) ListConstantRevisions(ctx context.Context, request *operations.ListConstantRevisionsRequest, ...) (*operations.ListConstantRevisionsResponse, error)
- func (s *ConstantRevisions) ListForConstant(ctx context.Context, request operations.GetConstantRevisionsRequest, ...) (*operations.GetConstantRevisionsResponse, error)
- func (s *ConstantRevisions) MergeStatus(ctx context.Context, request operations.GetConstantRevisionMergeStatusRequest, ...) (*operations.GetConstantRevisionMergeStatusResponse, error)
- func (s *ConstantRevisions) Publish(ctx context.Context, request operations.PostConstantRevisionPublishRequest, ...) (*operations.PostConstantRevisionPublishResponse, error)
- func (s *ConstantRevisions) Rebase(ctx context.Context, request operations.PostConstantRevisionRebaseRequest, ...) (*operations.PostConstantRevisionRebaseResponse, error)
- func (s *ConstantRevisions) RequestReview(ctx context.Context, ...) (*operations.PostConstantRevisionRequestReviewResponse, error)
- func (s *ConstantRevisions) Revert(ctx context.Context, request operations.PostConstantRevisionRevertRequest, ...) (*operations.PostConstantRevisionRevertResponse, error)
- func (s *ConstantRevisions) SetMetadata(ctx context.Context, request operations.PutConstantRevisionMetadataRequest, ...) (*operations.PutConstantRevisionMetadataResponse, error)
- func (s *ConstantRevisions) SetValue(ctx context.Context, request operations.PutConstantRevisionValueRequest, ...) (*operations.PutConstantRevisionValueResponse, error)
- func (s *ConstantRevisions) SubmitReview(ctx context.Context, ...) (*operations.PostConstantRevisionSubmitReviewResponse, error)
- type Constants
- func (s *Constants) ArchiveConstant(ctx context.Context, request operations.ArchiveConstantRequest, ...) (*operations.ArchiveConstantResponse, error)
- func (s *Constants) Create(ctx context.Context, request operations.PostConstantRequest, ...) (*operations.PostConstantResponse, error)
- func (s *Constants) DeleteConstant(ctx context.Context, request operations.DeleteConstantRequest, ...) (*operations.DeleteConstantResponse, error)
- func (s *Constants) GetConstant(ctx context.Context, request operations.GetConstantRequest, ...) (*operations.GetConstantResponse, error)
- func (s *Constants) GetReferences(ctx context.Context, request operations.GetConstantReferencesRequest, ...) (*operations.GetConstantReferencesResponse, error)
- func (s *Constants) ListConstants(ctx context.Context, request *operations.ListConstantsRequest, ...) (*operations.ListConstantsResponse, error)
- func (s *Constants) UnarchiveConstant(ctx context.Context, request operations.UnarchiveConstantRequest, ...) (*operations.UnarchiveConstantResponse, error)
- func (s *Constants) UpdateConstant(ctx context.Context, request operations.UpdateConstantRequest, ...) (*operations.UpdateConstantResponse, error)
- type ContextualBanditQueries
- func (s *ContextualBanditQueries) CreateContextualBanditQuery(ctx context.Context, request operations.CreateContextualBanditQueryRequest, ...) (*operations.CreateContextualBanditQueryResponse, error)
- func (s *ContextualBanditQueries) DeleteContextualBanditQuery(ctx context.Context, request operations.DeleteContextualBanditQueryRequest, ...) (*operations.DeleteContextualBanditQueryResponse, error)
- func (s *ContextualBanditQueries) GetContextualBanditQuery(ctx context.Context, request operations.GetContextualBanditQueryRequest, ...) (*operations.GetContextualBanditQueryResponse, error)
- func (s *ContextualBanditQueries) ListContextualBanditQueries(ctx context.Context, request *operations.ListContextualBanditQueriesRequest, ...) (*operations.ListContextualBanditQueriesResponse, error)
- func (s *ContextualBanditQueries) UpdateContextualBanditQuery(ctx context.Context, request operations.UpdateContextualBanditQueryRequest, ...) (*operations.UpdateContextualBanditQueryResponse, error)
- type ContextualBandits
- func (s *ContextualBandits) CreateContextualBandit(ctx context.Context, request operations.CreateContextualBanditRequest, ...) (*operations.CreateContextualBanditResponse, error)
- func (s *ContextualBandits) DeleteContextualBanditLinkedFeature(ctx context.Context, ...) (*operations.DeleteContextualBanditLinkedFeatureResponse, error)
- func (s *ContextualBandits) GetContextualBandit(ctx context.Context, request operations.GetContextualBanditRequest, ...) (*operations.GetContextualBanditResponse, error)
- func (s *ContextualBandits) GetContextualBanditCurrentWeights(ctx context.Context, ...) (*operations.GetContextualBanditCurrentWeightsResponse, error)
- func (s *ContextualBandits) GetContextualBanditEvent(ctx context.Context, request operations.GetContextualBanditEventRequest, ...) (*operations.GetContextualBanditEventResponse, error)
- func (s *ContextualBandits) GetContextualBanditLinkedFeatures(ctx context.Context, ...) (*operations.GetContextualBanditLinkedFeaturesResponse, error)
- func (s *ContextualBandits) GetContextualBanditResults(ctx context.Context, request operations.GetContextualBanditResultsRequest, ...) (*operations.GetContextualBanditResultsResponse, error)
- func (s *ContextualBandits) GetContextualBanditSnapshot(ctx context.Context, request operations.GetContextualBanditSnapshotRequest, ...) (*operations.GetContextualBanditSnapshotResponse, error)
- func (s *ContextualBandits) ListContextualBanditEvents(ctx context.Context, request operations.ListContextualBanditEventsRequest, ...) (*operations.ListContextualBanditEventsResponse, error)
- func (s *ContextualBandits) ListContextualBanditSnapshots(ctx context.Context, request operations.ListContextualBanditSnapshotsRequest, ...) (*operations.ListContextualBanditSnapshotsResponse, error)
- func (s *ContextualBandits) ListContextualBandits(ctx context.Context, request *operations.ListContextualBanditsRequest, ...) (*operations.ListContextualBanditsResponse, error)
- func (s *ContextualBandits) RefreshContextualBandit(ctx context.Context, request operations.RefreshContextualBanditRequest, ...) (*operations.RefreshContextualBanditResponse, error)
- func (s *ContextualBandits) StartContextualBandit(ctx context.Context, request operations.StartContextualBanditRequest, ...) (*operations.StartContextualBanditResponse, error)
- func (s *ContextualBandits) StopContextualBandit(ctx context.Context, request operations.StopContextualBanditRequest, ...) (*operations.StopContextualBanditResponse, error)
- func (s *ContextualBandits) UpdateContextualBandit(ctx context.Context, request operations.UpdateContextualBanditRequest, ...) (*operations.UpdateContextualBanditResponse, error)
- type CustomFields
- func (s *CustomFields) CreateCustomField(ctx context.Context, request operations.CreateCustomFieldRequest, ...) (*operations.CreateCustomFieldResponse, error)
- func (s *CustomFields) DeleteCustomField(ctx context.Context, request operations.DeleteCustomFieldRequest, ...) (*operations.DeleteCustomFieldResponse, error)
- func (s *CustomFields) GetCustomField(ctx context.Context, request operations.GetCustomFieldRequest, ...) (*operations.GetCustomFieldResponse, error)
- func (s *CustomFields) ListCustomFields(ctx context.Context, request *operations.ListCustomFieldsRequest, ...) (*operations.ListCustomFieldsResponse, error)
- func (s *CustomFields) UpdateCustomField(ctx context.Context, request operations.UpdateCustomFieldRequest, ...) (*operations.UpdateCustomFieldResponse, error)
- type CustomHooks
- func (s *CustomHooks) Create(ctx context.Context, request operations.PostCustomHookRequest, ...) (*operations.PostCustomHookResponse, error)
- func (s *CustomHooks) DeleteCustomHook(ctx context.Context, request operations.DeleteCustomHookRequest, ...) (*operations.DeleteCustomHookResponse, error)
- func (s *CustomHooks) GetCustomHook(ctx context.Context, request operations.GetCustomHookRequest, ...) (*operations.GetCustomHookResponse, error)
- func (s *CustomHooks) ListCustomHooks(ctx context.Context, request *operations.ListCustomHooksRequest, ...) (*operations.ListCustomHooksResponse, error)
- func (s *CustomHooks) ListHistory(ctx context.Context, request operations.ListCustomHookHistoryRequest, ...) (*operations.ListCustomHookHistoryResponse, error)
- func (s *CustomHooks) RevertCustomHook(ctx context.Context, request operations.RevertCustomHookRequest, ...) (*operations.RevertCustomHookResponse, error)
- func (s *CustomHooks) TestCustomHook(ctx context.Context, request operations.TestCustomHookRequest, ...) (*operations.TestCustomHookResponse, error)
- func (s *CustomHooks) UpdateCustomHook(ctx context.Context, request operations.UpdateCustomHookRequest, ...) (*operations.UpdateCustomHookResponse, error)
- type Dashboards
- func (s *Dashboards) CreateDashboard(ctx context.Context, request operations.CreateDashboardRequest, ...) (*operations.CreateDashboardResponse, error)
- func (s *Dashboards) DeleteDashboard(ctx context.Context, request operations.DeleteDashboardRequest, ...) (*operations.DeleteDashboardResponse, error)
- func (s *Dashboards) GetDashboard(ctx context.Context, request operations.GetDashboardRequest, ...) (*operations.GetDashboardResponse, error)
- func (s *Dashboards) ListDashboards(ctx context.Context, opts ...operations.Option) (*operations.ListDashboardsResponse, error)
- func (s *Dashboards) ListForExperiment(ctx context.Context, request operations.GetDashboardsForExperimentRequest, ...) (*operations.GetDashboardsForExperimentResponse, error)
- func (s *Dashboards) UpdateDashboard(ctx context.Context, request operations.UpdateDashboardRequest, ...) (*operations.UpdateDashboardResponse, error)
- type DataSources
- func (s *DataSources) GetDataSource(ctx context.Context, request operations.GetDataSourceRequest, ...) (*operations.GetDataSourceResponse, error)
- func (s *DataSources) GetInformationSchema(ctx context.Context, request operations.GetInformationSchemaRequest, ...) (*operations.GetInformationSchemaResponse, error)
- func (s *DataSources) GetInformationSchemaTable(ctx context.Context, request operations.GetInformationSchemaTableRequest, ...) (*operations.GetInformationSchemaTableResponse, error)
- func (s *DataSources) ListDataSources(ctx context.Context, request *operations.ListDataSourcesRequest, ...) (*operations.ListDataSourcesResponse, error)
- type Dimensions
- func (s *Dimensions) Create(ctx context.Context, request operations.PostDimensionRequest, ...) (*operations.PostDimensionResponse, error)
- func (s *Dimensions) DeleteDimension(ctx context.Context, request operations.DeleteDimensionRequest, ...) (*operations.DeleteDimensionResponse, error)
- func (s *Dimensions) GetDimension(ctx context.Context, request operations.GetDimensionRequest, ...) (*operations.GetDimensionResponse, error)
- func (s *Dimensions) ListDimensions(ctx context.Context, request *operations.ListDimensionsRequest, ...) (*operations.ListDimensionsResponse, error)
- func (s *Dimensions) UpdateDimension(ctx context.Context, request operations.UpdateDimensionRequest, ...) (*operations.UpdateDimensionResponse, error)
- type Environments
- func (s *Environments) Create(ctx context.Context, request operations.PostEnvironmentRequest, ...) (*operations.PostEnvironmentResponse, error)
- func (s *Environments) DeleteEnvironment(ctx context.Context, request operations.DeleteEnvironmentRequest, ...) (*operations.DeleteEnvironmentResponse, error)
- func (s *Environments) ListEnvironments(ctx context.Context, opts ...operations.Option) (*operations.ListEnvironmentsResponse, error)
- func (s *Environments) Update(ctx context.Context, request operations.PutEnvironmentRequest, ...) (*operations.PutEnvironmentResponse, error)
- type ExperimentTemplates
- func (s *ExperimentTemplates) BulkImportExperimentTemplates(ctx context.Context, request operations.BulkImportExperimentTemplatesRequest, ...) (*operations.BulkImportExperimentTemplatesResponse, error)
- func (s *ExperimentTemplates) CreateExperimentTemplate(ctx context.Context, request operations.CreateExperimentTemplateRequest, ...) (*operations.CreateExperimentTemplateResponse, error)
- func (s *ExperimentTemplates) DeleteExperimentTemplate(ctx context.Context, request operations.DeleteExperimentTemplateRequest, ...) (*operations.DeleteExperimentTemplateResponse, error)
- func (s *ExperimentTemplates) GetExperimentTemplate(ctx context.Context, request operations.GetExperimentTemplateRequest, ...) (*operations.GetExperimentTemplateResponse, error)
- func (s *ExperimentTemplates) ListExperimentTemplates(ctx context.Context, request *operations.ListExperimentTemplatesRequest, ...) (*operations.ListExperimentTemplatesResponse, error)
- func (s *ExperimentTemplates) UpdateExperimentTemplate(ctx context.Context, request operations.UpdateExperimentTemplateRequest, ...) (*operations.UpdateExperimentTemplateResponse, error)
- type Experiments
- func (s *Experiments) CompleteStartChecklist(ctx context.Context, ...) (*operations.PostExperimentStartChecklistManualCompleteResponse, error)
- func (s *Experiments) Create(ctx context.Context, request operations.PostExperimentRequest, ...) (*operations.PostExperimentResponse, error)
- func (s *Experiments) CreateSnapshot(ctx context.Context, request operations.PostExperimentSnapshotRequest, ...) (*operations.PostExperimentSnapshotResponse, error)
- func (s *Experiments) DeleteVariationScreenshot(ctx context.Context, request operations.DeleteVariationScreenshotRequest, ...) (*operations.DeleteVariationScreenshotResponse, error)
- func (s *Experiments) GetExperiment(ctx context.Context, request operations.GetExperimentRequest, ...) (*operations.GetExperimentResponse, error)
- func (s *Experiments) GetStartChecklist(ctx context.Context, request operations.GetExperimentStartChecklistRequest, ...) (*operations.GetExperimentStartChecklistResponse, error)
- func (s *Experiments) ListExperiments(ctx context.Context, request *operations.ListExperimentsRequest, ...) (*operations.ListExperimentsResponse, error)
- func (s *Experiments) ListNames(ctx context.Context, request *operations.GetExperimentNamesRequest, ...) (*operations.GetExperimentNamesResponse, error)
- func (s *Experiments) ListResults(ctx context.Context, request *operations.ListExperimentResultsRequest, ...) (*operations.ListExperimentResultsResponse, error)
- func (s *Experiments) ModifyTemporaryRollout(ctx context.Context, ...) (*operations.PostExperimentModifyTemporaryRolloutResponse, error)
- func (s *Experiments) Results(ctx context.Context, request operations.GetExperimentResultsRequest, ...) (*operations.GetExperimentResultsResponse, error)
- func (s *Experiments) Start(ctx context.Context, request operations.PostExperimentStartRequest, ...) (*operations.PostExperimentStartResponse, error)
- func (s *Experiments) Stop(ctx context.Context, request operations.PostExperimentStopRequest, ...) (*operations.PostExperimentStopResponse, error)
- func (s *Experiments) UpdateExperiment(ctx context.Context, request operations.UpdateExperimentRequest, ...) (*operations.UpdateExperimentResponse, error)
- func (s *Experiments) UploadVariationScreenshot(ctx context.Context, request operations.PostVariationImageUploadRequest, ...) (*operations.PostVariationImageUploadResponse, error)
- type FactMetrics
- func (s *FactMetrics) Create(ctx context.Context, request operations.PostFactMetricRequest, ...) (*operations.PostFactMetricResponse, error)
- func (s *FactMetrics) CreateAnalysis(ctx context.Context, request operations.PostFactMetricAnalysisRequest, ...) (*operations.PostFactMetricAnalysisResponse, error)
- func (s *FactMetrics) DeleteFactMetric(ctx context.Context, request operations.DeleteFactMetricRequest, ...) (*operations.DeleteFactMetricResponse, error)
- func (s *FactMetrics) GetFactMetric(ctx context.Context, request operations.GetFactMetricRequest, ...) (*operations.GetFactMetricResponse, error)
- func (s *FactMetrics) ListFactMetrics(ctx context.Context, request *operations.ListFactMetricsRequest, ...) (*operations.ListFactMetricsResponse, error)
- func (s *FactMetrics) UpdateFactMetric(ctx context.Context, request operations.UpdateFactMetricRequest, ...) (*operations.UpdateFactMetricResponse, error)
- type FactTables
- func (s *FactTables) BulkImport(ctx context.Context, request operations.PostBulkImportFactsRequest, ...) (*operations.PostBulkImportFactsResponse, error)
- func (s *FactTables) Create(ctx context.Context, request operations.PostFactTableRequest, ...) (*operations.PostFactTableResponse, error)
- func (s *FactTables) CreateFilter(ctx context.Context, request operations.PostFactTableFilterRequest, ...) (*operations.PostFactTableFilterResponse, error)
- func (s *FactTables) DeleteFactTable(ctx context.Context, request operations.DeleteFactTableRequest, ...) (*operations.DeleteFactTableResponse, error)
- func (s *FactTables) DeleteFilter(ctx context.Context, request operations.DeleteFactTableFilterRequest, ...) (*operations.DeleteFactTableFilterResponse, error)
- func (s *FactTables) GetAggregatedFactTables(ctx context.Context, request operations.GetAggregatedFactTablesRequest, ...) (*operations.GetAggregatedFactTablesResponse, error)
- func (s *FactTables) GetAggregatedTableRun(ctx context.Context, request operations.GetAggregatedTableRunRequest, ...) (*operations.GetAggregatedTableRunResponse, error)
- func (s *FactTables) GetFactTable(ctx context.Context, request operations.GetFactTableRequest, ...) (*operations.GetFactTableResponse, error)
- func (s *FactTables) GetFilter(ctx context.Context, request operations.GetFactTableFilterRequest, ...) (*operations.GetFactTableFilterResponse, error)
- func (s *FactTables) ListAggregatedTableRuns(ctx context.Context, request operations.ListAggregatedTableRunsRequest, ...) (*operations.ListAggregatedTableRunsResponse, error)
- func (s *FactTables) ListFactTables(ctx context.Context, request *operations.ListFactTablesRequest, ...) (*operations.ListFactTablesResponse, error)
- func (s *FactTables) ListFilters(ctx context.Context, request operations.ListFactTableFiltersRequest, ...) (*operations.ListFactTableFiltersResponse, error)
- func (s *FactTables) RefreshAggregatedFactTable(ctx context.Context, request operations.RefreshAggregatedFactTableRequest, ...) (*operations.RefreshAggregatedFactTableResponse, error)
- func (s *FactTables) UpdateFactTable(ctx context.Context, request operations.UpdateFactTableRequest, ...) (*operations.UpdateFactTableResponse, error)
- func (s *FactTables) UpdateFilter(ctx context.Context, request operations.UpdateFactTableFilterRequest, ...) (*operations.UpdateFactTableFilterResponse, error)
- type FeatureRevisions
- func (s *FeatureRevisions) AddLogComment(ctx context.Context, request operations.PutFeatureRevisionLogCommentV2Request, ...) (*operations.PutFeatureRevisionLogCommentV2Response, error)
- func (s *FeatureRevisions) AddRule(ctx context.Context, request operations.PostFeatureRevisionRuleAddV2Request, ...) (*operations.PostFeatureRevisionRuleAddV2Response, error)
- func (s *FeatureRevisions) Archive(ctx context.Context, request operations.PutFeatureRevisionArchiveV2Request, ...) (*operations.PutFeatureRevisionArchiveV2Response, error)
- func (s *FeatureRevisions) Create(ctx context.Context, request operations.PostFeatureRevisionV2Request, ...) (*operations.PostFeatureRevisionV2Response, error)
- func (s *FeatureRevisions) DeleteLogEntry(ctx context.Context, request operations.DeleteFeatureRevisionLogEntryV2Request, ...) (*operations.DeleteFeatureRevisionLogEntryV2Response, error)
- func (s *FeatureRevisions) DeleteRule(ctx context.Context, request operations.DeleteFeatureRevisionRuleV2Request, ...) (*operations.DeleteFeatureRevisionRuleV2Response, error)
- func (s *FeatureRevisions) DeleteRuleRampSchedule(ctx context.Context, ...) (*operations.DeleteFeatureRevisionRuleRampScheduleV2Response, error)
- func (s *FeatureRevisions) Diff(ctx context.Context, request operations.GetFeatureRevisionDiffV2Request, ...) (*operations.GetFeatureRevisionDiffV2Response, error)
- func (s *FeatureRevisions) Discard(ctx context.Context, request operations.PostFeatureRevisionDiscardV2Request, ...) (*operations.PostFeatureRevisionDiscardV2Response, error)
- func (s *FeatureRevisions) Get(ctx context.Context, request operations.GetFeatureRevisionV2Request, ...) (*operations.GetFeatureRevisionV2Response, error)
- func (s *FeatureRevisions) Latest(ctx context.Context, request operations.GetFeatureRevisionLatestV2Request, ...) (*operations.GetFeatureRevisionLatestV2Response, error)
- func (s *FeatureRevisions) ListForFeature(ctx context.Context, request operations.GetFeatureRevisionsV2Request, ...) (*operations.GetFeatureRevisionsV2Response, error)
- func (s *FeatureRevisions) ListRevisions(ctx context.Context, request *operations.ListRevisionsV2Request, ...) (*operations.ListRevisionsV2Response, error)
- func (s *FeatureRevisions) Log(ctx context.Context, request operations.GetFeatureRevisionLogV2Request, ...) (*operations.GetFeatureRevisionLogV2Response, error)
- func (s *FeatureRevisions) MergeStatus(ctx context.Context, request operations.GetFeatureRevisionMergeStatusV2Request, ...) (*operations.GetFeatureRevisionMergeStatusV2Response, error)
- func (s *FeatureRevisions) Publish(ctx context.Context, request operations.PostFeatureRevisionPublishV2Request, ...) (*operations.PostFeatureRevisionPublishV2Response, error)
- func (s *FeatureRevisions) Rebase(ctx context.Context, request operations.PostFeatureRevisionRebaseV2Request, ...) (*operations.PostFeatureRevisionRebaseV2Response, error)
- func (s *FeatureRevisions) RebasePreview(ctx context.Context, ...) (*operations.PostFeatureRevisionRebasePreviewV2Response, error)
- func (s *FeatureRevisions) RecallReview(ctx context.Context, ...) (*operations.PostFeatureRevisionRecallReviewV2Response, error)
- func (s *FeatureRevisions) Reopen(ctx context.Context, request operations.PostFeatureRevisionReopenV2Request, ...) (*operations.PostFeatureRevisionReopenV2Response, error)
- func (s *FeatureRevisions) ReorderRules(ctx context.Context, ...) (*operations.PostFeatureRevisionRulesReorderV2Response, error)
- func (s *FeatureRevisions) RequestReview(ctx context.Context, ...) (*operations.PostFeatureRevisionRequestReviewV2Response, error)
- func (s *FeatureRevisions) Revert(ctx context.Context, request operations.PostFeatureRevisionRevertV2Request, ...) (*operations.PostFeatureRevisionRevertV2Response, error)
- func (s *FeatureRevisions) SchedulePublish(ctx context.Context, ...) (*operations.PostFeatureRevisionSchedulePublishV2Response, error)
- func (s *FeatureRevisions) SetDefaultValue(ctx context.Context, ...) (*operations.PutFeatureRevisionDefaultValueV2Response, error)
- func (s *FeatureRevisions) SetHoldout(ctx context.Context, request operations.PutFeatureRevisionHoldoutV2Request, ...) (*operations.PutFeatureRevisionHoldoutV2Response, error)
- func (s *FeatureRevisions) SetMetadata(ctx context.Context, request operations.PutFeatureRevisionMetadataV2Request, ...) (*operations.PutFeatureRevisionMetadataV2Response, error)
- func (s *FeatureRevisions) SetPrerequisites(ctx context.Context, ...) (*operations.PutFeatureRevisionPrerequisitesV2Response, error)
- func (s *FeatureRevisions) SetRuleRampSchedule(ctx context.Context, ...) (*operations.PutFeatureRevisionRuleRampScheduleV2Response, error)
- func (s *FeatureRevisions) SubmitReview(ctx context.Context, ...) (*operations.PostFeatureRevisionSubmitReviewV2Response, error)
- func (s *FeatureRevisions) Toggle(ctx context.Context, request operations.PostFeatureRevisionToggleV2Request, ...) (*operations.PostFeatureRevisionToggleV2Response, error)
- func (s *FeatureRevisions) UndoReview(ctx context.Context, request operations.PostFeatureRevisionUndoReviewV2Request, ...) (*operations.PostFeatureRevisionUndoReviewV2Response, error)
- func (s *FeatureRevisions) UpdateRule(ctx context.Context, request operations.PutFeatureRevisionRuleV2Request, ...) (*operations.PutFeatureRevisionRuleV2Response, error)
- type FeatureRevisionsV1
- func (s *FeatureRevisionsV1) Create(ctx context.Context, request operations.PostFeatureRevisionRequest, ...) (*operations.PostFeatureRevisionResponse, error)deprecated
- func (s *FeatureRevisionsV1) DeleteFeatureRevisionRule(ctx context.Context, request operations.DeleteFeatureRevisionRuleRequest, ...) (*operations.DeleteFeatureRevisionRuleResponse, error)deprecated
- func (s *FeatureRevisionsV1) DeleteFeatureRevisionRuleRampSchedule(ctx context.Context, ...) (*operations.DeleteFeatureRevisionRuleRampScheduleResponse, error)deprecated
- func (s *FeatureRevisionsV1) GetFeatureRevision(ctx context.Context, request operations.GetFeatureRevisionRequest, ...) (*operations.GetFeatureRevisionResponse, error)deprecated
- func (s *FeatureRevisionsV1) GetFeatureRevisionLatest(ctx context.Context, request operations.GetFeatureRevisionLatestRequest, ...) (*operations.GetFeatureRevisionLatestResponse, error)deprecated
- func (s *FeatureRevisionsV1) GetFeatureRevisionMergeStatus(ctx context.Context, request operations.GetFeatureRevisionMergeStatusRequest, ...) (*operations.GetFeatureRevisionMergeStatusResponse, error)deprecated
- func (s *FeatureRevisionsV1) ListForFeature(ctx context.Context, request operations.GetFeatureRevisionsRequest, ...) (*operations.GetFeatureRevisionsResponse, error)deprecated
- func (s *FeatureRevisionsV1) ListRevisions(ctx context.Context, request *operations.ListRevisionsRequest, ...) (*operations.ListRevisionsResponse, error)deprecated
- func (s *FeatureRevisionsV1) PostFeatureRevisionDiscard(ctx context.Context, request operations.PostFeatureRevisionDiscardRequest, ...) (*operations.PostFeatureRevisionDiscardResponse, error)deprecated
- func (s *FeatureRevisionsV1) PostFeatureRevisionPublish(ctx context.Context, request operations.PostFeatureRevisionPublishRequest, ...) (*operations.PostFeatureRevisionPublishResponse, error)deprecated
- func (s *FeatureRevisionsV1) PostFeatureRevisionRebase(ctx context.Context, request operations.PostFeatureRevisionRebaseRequest, ...) (*operations.PostFeatureRevisionRebaseResponse, error)deprecated
- func (s *FeatureRevisionsV1) PostFeatureRevisionRequestReview(ctx context.Context, ...) (*operations.PostFeatureRevisionRequestReviewResponse, error)deprecated
- func (s *FeatureRevisionsV1) PostFeatureRevisionRevert(ctx context.Context, request operations.PostFeatureRevisionRevertRequest, ...) (*operations.PostFeatureRevisionRevertResponse, error)deprecated
- func (s *FeatureRevisionsV1) PostFeatureRevisionRuleAdd(ctx context.Context, request operations.PostFeatureRevisionRuleAddRequest, ...) (*operations.PostFeatureRevisionRuleAddResponse, error)deprecated
- func (s *FeatureRevisionsV1) PostFeatureRevisionRulesReorder(ctx context.Context, request operations.PostFeatureRevisionRulesReorderRequest, ...) (*operations.PostFeatureRevisionRulesReorderResponse, error)deprecated
- func (s *FeatureRevisionsV1) PostFeatureRevisionSubmitReview(ctx context.Context, request operations.PostFeatureRevisionSubmitReviewRequest, ...) (*operations.PostFeatureRevisionSubmitReviewResponse, error)deprecated
- func (s *FeatureRevisionsV1) PostFeatureRevisionToggle(ctx context.Context, request operations.PostFeatureRevisionToggleRequest, ...) (*operations.PostFeatureRevisionToggleResponse, error)deprecated
- func (s *FeatureRevisionsV1) PutFeatureRevisionArchive(ctx context.Context, request operations.PutFeatureRevisionArchiveRequest, ...) (*operations.PutFeatureRevisionArchiveResponse, error)deprecated
- func (s *FeatureRevisionsV1) PutFeatureRevisionDefaultValue(ctx context.Context, request operations.PutFeatureRevisionDefaultValueRequest, ...) (*operations.PutFeatureRevisionDefaultValueResponse, error)deprecated
- func (s *FeatureRevisionsV1) PutFeatureRevisionHoldout(ctx context.Context, request operations.PutFeatureRevisionHoldoutRequest, ...) (*operations.PutFeatureRevisionHoldoutResponse, error)deprecated
- func (s *FeatureRevisionsV1) PutFeatureRevisionMetadata(ctx context.Context, request operations.PutFeatureRevisionMetadataRequest, ...) (*operations.PutFeatureRevisionMetadataResponse, error)deprecated
- func (s *FeatureRevisionsV1) PutFeatureRevisionPrerequisites(ctx context.Context, request operations.PutFeatureRevisionPrerequisitesRequest, ...) (*operations.PutFeatureRevisionPrerequisitesResponse, error)deprecated
- func (s *FeatureRevisionsV1) PutFeatureRevisionRule(ctx context.Context, request operations.PutFeatureRevisionRuleRequest, ...) (*operations.PutFeatureRevisionRuleResponse, error)deprecated
- func (s *FeatureRevisionsV1) PutFeatureRevisionRuleRampSchedule(ctx context.Context, ...) (*operations.PutFeatureRevisionRuleRampScheduleResponse, error)deprecated
- type Features
- func (s *Features) Create(ctx context.Context, request operations.PostFeatureV2Request, ...) (*operations.PostFeatureV2Response, error)
- func (s *Features) Delete(ctx context.Context, request operations.DeleteFeatureV2Request, ...) (*operations.DeleteFeatureV2Response, error)
- func (s *Features) Get(ctx context.Context, request operations.GetFeatureV2Request, ...) (*operations.GetFeatureV2Response, error)
- func (s *Features) GetFeatureKeys(ctx context.Context, request *operations.GetFeatureKeysV2Request, ...) (*operations.GetFeatureKeysV2Response, error)
- func (s *Features) GetFeatureStale(ctx context.Context, request operations.GetFeatureStaleV2Request, ...) (*operations.GetFeatureStaleV2Response, error)
- func (s *Features) List(ctx context.Context, request *operations.ListFeaturesV2Request, ...) (*operations.ListFeaturesV2Response, error)
- func (s *Features) Revert(ctx context.Context, request operations.RevertFeatureV2Request, ...) (*operations.RevertFeatureV2Response, error)
- func (s *Features) Toggle(ctx context.Context, request operations.ToggleFeatureV2Request, ...) (*operations.ToggleFeatureV2Response, error)
- func (s *Features) Update(ctx context.Context, request operations.UpdateFeatureV2Request, ...) (*operations.UpdateFeatureV2Response, error)
- type FeaturesV1
- func (s *FeaturesV1) Create(ctx context.Context, request operations.PostFeatureRequest, ...) (*operations.PostFeatureResponse, error)deprecated
- func (s *FeaturesV1) Delete(ctx context.Context, request operations.DeleteFeatureRequest, ...) (*operations.DeleteFeatureResponse, error)deprecated
- func (s *FeaturesV1) Get(ctx context.Context, request operations.GetFeatureRequest, ...) (*operations.GetFeatureResponse, error)deprecated
- func (s *FeaturesV1) GetFeatureKeys(ctx context.Context, request *operations.GetFeatureKeysRequest, ...) (*operations.GetFeatureKeysResponse, error)deprecated
- func (s *FeaturesV1) GetFeatureStale(ctx context.Context, request operations.GetFeatureStaleRequest, ...) (*operations.GetFeatureStaleResponse, error)deprecated
- func (s *FeaturesV1) List(ctx context.Context, request *operations.ListFeaturesRequest, ...) (*operations.ListFeaturesResponse, error)deprecated
- func (s *FeaturesV1) Revert(ctx context.Context, request operations.RevertFeatureRequest, ...) (*operations.RevertFeatureResponse, error)deprecated
- func (s *FeaturesV1) Toggle(ctx context.Context, request operations.ToggleFeatureRequest, ...) (*operations.ToggleFeatureResponse, error)deprecated
- func (s *FeaturesV1) Update(ctx context.Context, request operations.UpdateFeatureRequest, ...) (*operations.UpdateFeatureResponse, error)deprecated
- type Growthbook
- type HTTPClient
- type Members
- func (s *Members) DeleteMember(ctx context.Context, request operations.DeleteMemberRequest, ...) (*operations.DeleteMemberResponse, error)
- func (s *Members) ListMembers(ctx context.Context, request *operations.ListMembersRequest, ...) (*operations.ListMembersResponse, error)
- func (s *Members) UpdateMemberRole(ctx context.Context, request operations.UpdateMemberRoleRequest, ...) (*operations.UpdateMemberRoleResponse, error)
- type Meta
- type MetricGroups
- func (s *MetricGroups) CreateMetricGroup(ctx context.Context, request operations.CreateMetricGroupRequest, ...) (*operations.CreateMetricGroupResponse, error)
- func (s *MetricGroups) DeleteMetricGroup(ctx context.Context, request operations.DeleteMetricGroupRequest, ...) (*operations.DeleteMetricGroupResponse, error)
- func (s *MetricGroups) GetMetricGroup(ctx context.Context, request operations.GetMetricGroupRequest, ...) (*operations.GetMetricGroupResponse, error)
- func (s *MetricGroups) ListMetricGroups(ctx context.Context, opts ...operations.Option) (*operations.ListMetricGroupsResponse, error)
- func (s *MetricGroups) UpdateMetricGroup(ctx context.Context, request operations.UpdateMetricGroupRequest, ...) (*operations.UpdateMetricGroupResponse, error)
- type Metrics
- func (s *Metrics) Create(ctx context.Context, request operations.PostMetricRequest, ...) (*operations.PostMetricResponse, error)
- func (s *Metrics) DeleteMetric(ctx context.Context, request operations.DeleteMetricRequest, ...) (*operations.DeleteMetricResponse, error)
- func (s *Metrics) GetMetric(ctx context.Context, request operations.GetMetricRequest, ...) (*operations.GetMetricResponse, error)
- func (s *Metrics) ListMetrics(ctx context.Context, request *operations.ListMetricsRequest, ...) (*operations.ListMetricsResponse, error)
- func (s *Metrics) Update(ctx context.Context, request operations.PutMetricRequest, ...) (*operations.PutMetricResponse, error)
- type Namespaces
- func (s *Namespaces) Create(ctx context.Context, request operations.PostNamespaceRequest, ...) (*operations.PostNamespaceResponse, error)
- func (s *Namespaces) DeleteNamespace(ctx context.Context, request operations.DeleteNamespaceRequest, ...) (*operations.DeleteNamespaceResponse, error)
- func (s *Namespaces) GetMemberships(ctx context.Context, request operations.GetNamespaceMembershipsRequest, ...) (*operations.GetNamespaceMembershipsResponse, error)
- func (s *Namespaces) GetNamespace(ctx context.Context, request operations.GetNamespaceRequest, ...) (*operations.GetNamespaceResponse, error)
- func (s *Namespaces) ListNamespaces(ctx context.Context, request *operations.ListNamespacesRequest, ...) (*operations.ListNamespacesResponse, error)
- func (s *Namespaces) RotateSeed(ctx context.Context, request operations.PostNamespaceRotateSeedRequest, ...) (*operations.PostNamespaceRotateSeedResponse, error)
- func (s *Namespaces) Update(ctx context.Context, request operations.PutNamespaceRequest, ...) (*operations.PutNamespaceResponse, error)
- type Organizations
- func (s *Organizations) Create(ctx context.Context, request operations.PostOrganizationRequest, ...) (*operations.PostOrganizationResponse, error)
- func (s *Organizations) ListOrganizations(ctx context.Context, request *operations.ListOrganizationsRequest, ...) (*operations.ListOrganizationsResponse, error)
- func (s *Organizations) Update(ctx context.Context, request operations.PutOrganizationRequest, ...) (*operations.PutOrganizationResponse, error)
- type Projects
- func (s *Projects) Create(ctx context.Context, request operations.PostProjectRequest, ...) (*operations.PostProjectResponse, error)
- func (s *Projects) DeleteProject(ctx context.Context, request operations.DeleteProjectRequest, ...) (*operations.DeleteProjectResponse, error)
- func (s *Projects) GetProject(ctx context.Context, request operations.GetProjectRequest, ...) (*operations.GetProjectResponse, error)
- func (s *Projects) ListProjects(ctx context.Context, request *operations.ListProjectsRequest, ...) (*operations.ListProjectsResponse, error)
- func (s *Projects) Update(ctx context.Context, request operations.PutProjectRequest, ...) (*operations.PutProjectResponse, error)
- type Queries
- type RampScheduleTemplates
- func (s *RampScheduleTemplates) CreateRampScheduleTemplate(ctx context.Context, request operations.CreateRampScheduleTemplateRequest, ...) (*operations.CreateRampScheduleTemplateResponse, error)
- func (s *RampScheduleTemplates) DeleteRampScheduleTemplate(ctx context.Context, request operations.DeleteRampScheduleTemplateRequest, ...) (*operations.DeleteRampScheduleTemplateResponse, error)
- func (s *RampScheduleTemplates) GetRampScheduleTemplate(ctx context.Context, request operations.GetRampScheduleTemplateRequest, ...) (*operations.GetRampScheduleTemplateResponse, error)
- func (s *RampScheduleTemplates) ListRampScheduleTemplates(ctx context.Context, opts ...operations.Option) (*operations.ListRampScheduleTemplatesResponse, error)
- func (s *RampScheduleTemplates) UpdateRampScheduleTemplate(ctx context.Context, request operations.UpdateRampScheduleTemplateRequest, ...) (*operations.UpdateRampScheduleTemplateResponse, error)
- type RampSchedules
- func (s *RampSchedules) APIAdvanceRampSchedule(ctx context.Context, request operations.APIAdvanceRampScheduleRequest, ...) (*operations.APIAdvanceRampScheduleResponse, error)
- func (s *RampSchedules) AddTargetRampSchedule(ctx context.Context, request operations.AddTargetRampScheduleRequest, ...) (*operations.AddTargetRampScheduleResponse, error)
- func (s *RampSchedules) ApproveStepRampSchedule(ctx context.Context, request operations.ApproveStepRampScheduleRequest, ...) (*operations.ApproveStepRampScheduleResponse, error)
- func (s *RampSchedules) CompleteRampSchedule(ctx context.Context, request operations.CompleteRampScheduleRequest, ...) (*operations.CompleteRampScheduleResponse, error)
- func (s *RampSchedules) Create(ctx context.Context, request operations.PostRampScheduleRequest, ...) (*operations.PostRampScheduleResponse, error)
- func (s *RampSchedules) DeleteRampSchedule(ctx context.Context, request operations.DeleteRampScheduleRequest, ...) (*operations.DeleteRampScheduleResponse, error)
- func (s *RampSchedules) EjectTargetRampSchedule(ctx context.Context, request operations.EjectTargetRampScheduleRequest, ...) (*operations.EjectTargetRampScheduleResponse, error)
- func (s *RampSchedules) GetRampSchedule(ctx context.Context, request operations.GetRampScheduleRequest, ...) (*operations.GetRampScheduleResponse, error)
- func (s *RampSchedules) GetRampScheduleStatus(ctx context.Context, request operations.GetRampScheduleStatusRequest, ...) (*operations.GetRampScheduleStatusResponse, error)
- func (s *RampSchedules) JumpRampSchedule(ctx context.Context, request operations.JumpRampScheduleRequest, ...) (*operations.JumpRampScheduleResponse, error)
- func (s *RampSchedules) ListRampSchedules(ctx context.Context, request *operations.ListRampSchedulesRequest, ...) (*operations.ListRampSchedulesResponse, error)
- func (s *RampSchedules) PauseRampSchedule(ctx context.Context, request operations.PauseRampScheduleRequest, ...) (*operations.PauseRampScheduleResponse, error)
- func (s *RampSchedules) RefreshMonitoringRampSchedule(ctx context.Context, request operations.RefreshMonitoringRampScheduleRequest, ...) (*operations.RefreshMonitoringRampScheduleResponse, error)
- func (s *RampSchedules) RestartRampSchedule(ctx context.Context, request operations.RestartRampScheduleRequest, ...) (*operations.RestartRampScheduleResponse, error)
- func (s *RampSchedules) ResumeRampSchedule(ctx context.Context, request operations.ResumeRampScheduleRequest, ...) (*operations.ResumeRampScheduleResponse, error)
- func (s *RampSchedules) RollbackRampSchedule(ctx context.Context, request operations.RollbackRampScheduleRequest, ...) (*operations.RollbackRampScheduleResponse, error)
- func (s *RampSchedules) SetAutoUpdateRampSchedule(ctx context.Context, request operations.SetAutoUpdateRampScheduleRequest, ...) (*operations.SetAutoUpdateRampScheduleResponse, error)
- func (s *RampSchedules) SetMonitoringModeRampSchedule(ctx context.Context, request operations.SetMonitoringModeRampScheduleRequest, ...) (*operations.SetMonitoringModeRampScheduleResponse, error)
- func (s *RampSchedules) StartRampSchedule(ctx context.Context, request operations.StartRampScheduleRequest, ...) (*operations.StartRampScheduleResponse, error)
- func (s *RampSchedules) UpdateRampSchedule(ctx context.Context, request operations.UpdateRampScheduleRequest, ...) (*operations.UpdateRampScheduleResponse, error)
- func (s *RampSchedules) UpdateRampScheduleLockdown(ctx context.Context, request operations.UpdateRampScheduleLockdownRequest, ...) (*operations.UpdateRampScheduleLockdownResponse, error)
- func (s *RampSchedules) UpdateRampScheduleMonitoring(ctx context.Context, request operations.UpdateRampScheduleMonitoringRequest, ...) (*operations.UpdateRampScheduleMonitoringResponse, error)
- func (s *RampSchedules) UpdateRampScheduleSteps(ctx context.Context, request operations.UpdateRampScheduleStepsRequest, ...) (*operations.UpdateRampScheduleStepsResponse, error)
- type Reports
- func (s *Reports) Create(ctx context.Context, request operations.PostReportRequest, ...) (*operations.PostReportResponse, error)
- func (s *Reports) GetReport(ctx context.Context, request operations.GetReportRequest, ...) (*operations.GetReportResponse, error)
- func (s *Reports) ListReports(ctx context.Context, request *operations.ListReportsRequest, ...) (*operations.ListReportsResponse, error)
- func (s *Reports) Refresh(ctx context.Context, request operations.PostReportRefreshRequest, ...) (*operations.PostReportRefreshResponse, error)
- func (s *Reports) SetMetadata(ctx context.Context, request operations.PutReportMetadataRequest, ...) (*operations.PutReportMetadataResponse, error)
- func (s *Reports) SetSettings(ctx context.Context, request operations.PutReportSettingsRequest, ...) (*operations.PutReportSettingsResponse, error)
- type SDKConnections
- func (s *SDKConnections) Create(ctx context.Context, request operations.PostSDKConnectionRequest, ...) (*operations.PostSDKConnectionResponse, error)
- func (s *SDKConnections) DeleteSDKConnection(ctx context.Context, request operations.DeleteSDKConnectionRequest, ...) (*operations.DeleteSDKConnectionResponse, error)
- func (s *SDKConnections) GetSDKConnection(ctx context.Context, request operations.GetSDKConnectionRequest, ...) (*operations.GetSDKConnectionResponse, error)
- func (s *SDKConnections) ListSDKConnections(ctx context.Context, request *operations.ListSDKConnectionsRequest, ...) (*operations.ListSDKConnectionsResponse, error)
- func (s *SDKConnections) LookupSDKConnectionByKey(ctx context.Context, request operations.LookupSDKConnectionByKeyRequest, ...) (*operations.LookupSDKConnectionByKeyResponse, error)
- func (s *SDKConnections) Update(ctx context.Context, request operations.PutSDKConnectionRequest, ...) (*operations.PutSDKConnectionResponse, error)
- type SDKOption
- func WithClient(client HTTPClient) SDKOption
- func WithDomain(domain string) SDKOption
- func WithRetryConfig(retryConfig retry.Config) SDKOption
- func WithSecurity(security components.Security) SDKOption
- func WithSecuritySource(security func(context.Context) (components.Security, error)) SDKOption
- func WithServerIndex(serverIndex int) SDKOption
- func WithServerURL(serverURL string) SDKOption
- func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption
- func WithTimeout(timeout time.Duration) SDKOption
- type SavedGroupRevisions
- func (s *SavedGroupRevisions) AddItems(ctx context.Context, request operations.PostSavedGroupRevisionItemsAddRequest, ...) (*operations.PostSavedGroupRevisionItemsAddResponse, error)
- func (s *SavedGroupRevisions) Archive(ctx context.Context, request operations.PutSavedGroupRevisionArchiveRequest, ...) (*operations.PutSavedGroupRevisionArchiveResponse, error)
- func (s *SavedGroupRevisions) Create(ctx context.Context, request operations.PostSavedGroupRevisionRequest, ...) (*operations.PostSavedGroupRevisionResponse, error)
- func (s *SavedGroupRevisions) Discard(ctx context.Context, request operations.PostSavedGroupRevisionDiscardRequest, ...) (*operations.PostSavedGroupRevisionDiscardResponse, error)
- func (s *SavedGroupRevisions) GetSavedGroupRevision(ctx context.Context, request operations.GetSavedGroupRevisionRequest, ...) (*operations.GetSavedGroupRevisionResponse, error)
- func (s *SavedGroupRevisions) Latest(ctx context.Context, request operations.GetSavedGroupRevisionLatestRequest, ...) (*operations.GetSavedGroupRevisionLatestResponse, error)
- func (s *SavedGroupRevisions) ListForSavedGroup(ctx context.Context, request operations.GetSavedGroupRevisionsRequest, ...) (*operations.GetSavedGroupRevisionsResponse, error)
- func (s *SavedGroupRevisions) ListSavedGroupRevisions(ctx context.Context, request *operations.ListSavedGroupRevisionsRequest, ...) (*operations.ListSavedGroupRevisionsResponse, error)
- func (s *SavedGroupRevisions) MergeStatus(ctx context.Context, ...) (*operations.GetSavedGroupRevisionMergeStatusResponse, error)
- func (s *SavedGroupRevisions) Publish(ctx context.Context, request operations.PostSavedGroupRevisionPublishRequest, ...) (*operations.PostSavedGroupRevisionPublishResponse, error)
- func (s *SavedGroupRevisions) Rebase(ctx context.Context, request operations.PostSavedGroupRevisionRebaseRequest, ...) (*operations.PostSavedGroupRevisionRebaseResponse, error)
- func (s *SavedGroupRevisions) RemoveItems(ctx context.Context, ...) (*operations.PostSavedGroupRevisionItemsRemoveResponse, error)
- func (s *SavedGroupRevisions) RequestReview(ctx context.Context, ...) (*operations.PostSavedGroupRevisionRequestReviewResponse, error)
- func (s *SavedGroupRevisions) Revert(ctx context.Context, request operations.PostSavedGroupRevisionRevertRequest, ...) (*operations.PostSavedGroupRevisionRevertResponse, error)
- func (s *SavedGroupRevisions) SetCondition(ctx context.Context, request operations.PutSavedGroupRevisionConditionRequest, ...) (*operations.PutSavedGroupRevisionConditionResponse, error)
- func (s *SavedGroupRevisions) SetMetadata(ctx context.Context, request operations.PutSavedGroupRevisionMetadataRequest, ...) (*operations.PutSavedGroupRevisionMetadataResponse, error)
- func (s *SavedGroupRevisions) SetValues(ctx context.Context, request operations.PutSavedGroupRevisionValuesRequest, ...) (*operations.PutSavedGroupRevisionValuesResponse, error)
- func (s *SavedGroupRevisions) SubmitReview(ctx context.Context, ...) (*operations.PostSavedGroupRevisionSubmitReviewResponse, error)
- type SavedGroups
- func (s *SavedGroups) ArchiveSavedGroup(ctx context.Context, request operations.ArchiveSavedGroupRequest, ...) (*operations.ArchiveSavedGroupResponse, error)
- func (s *SavedGroups) Create(ctx context.Context, request operations.PostSavedGroupRequest, ...) (*operations.PostSavedGroupResponse, error)
- func (s *SavedGroups) DeleteSavedGroup(ctx context.Context, request operations.DeleteSavedGroupRequest, ...) (*operations.DeleteSavedGroupResponse, error)
- func (s *SavedGroups) GetSavedGroup(ctx context.Context, request operations.GetSavedGroupRequest, ...) (*operations.GetSavedGroupResponse, error)
- func (s *SavedGroups) GetSavedGroupReferences(ctx context.Context, request operations.GetSavedGroupReferencesRequest, ...) (*operations.GetSavedGroupReferencesResponse, error)
- func (s *SavedGroups) ListSavedGroups(ctx context.Context, request *operations.ListSavedGroupsRequest, ...) (*operations.ListSavedGroupsResponse, error)
- func (s *SavedGroups) UnarchiveSavedGroup(ctx context.Context, request operations.UnarchiveSavedGroupRequest, ...) (*operations.UnarchiveSavedGroupResponse, error)
- func (s *SavedGroups) UpdateSavedGroup(ctx context.Context, request operations.UpdateSavedGroupRequest, ...) (*operations.UpdateSavedGroupResponse, error)
- type Segments
- func (s *Segments) Create(ctx context.Context, request operations.PostSegmentRequest, ...) (*operations.PostSegmentResponse, error)
- func (s *Segments) DeleteSegment(ctx context.Context, request operations.DeleteSegmentRequest, ...) (*operations.DeleteSegmentResponse, error)
- func (s *Segments) GetSegment(ctx context.Context, request operations.GetSegmentRequest, ...) (*operations.GetSegmentResponse, error)
- func (s *Segments) ListSegments(ctx context.Context, request *operations.ListSegmentsRequest, ...) (*operations.ListSegmentsResponse, error)
- func (s *Segments) UpdateSegment(ctx context.Context, request operations.UpdateSegmentRequest, ...) (*operations.UpdateSegmentResponse, error)
- type Settings
- type Snapshots
- func (s *Snapshots) CreateSnapshot(ctx context.Context, request operations.PostExperimentSnapshotRequest, ...) (*operations.PostExperimentSnapshotResponse, error)
- func (s *Snapshots) GetExperimentSnapshot(ctx context.Context, request operations.GetExperimentSnapshotRequest, ...) (*operations.GetExperimentSnapshotResponse, error)
- type Teams
- func (s *Teams) AddTeamMembers(ctx context.Context, request operations.AddTeamMembersRequest, ...) (*operations.AddTeamMembersResponse, error)
- func (s *Teams) CreateTeam(ctx context.Context, request operations.CreateTeamRequest, ...) (*operations.CreateTeamResponse, error)
- func (s *Teams) DeleteTeam(ctx context.Context, request operations.DeleteTeamRequest, ...) (*operations.DeleteTeamResponse, error)
- func (s *Teams) GetTeam(ctx context.Context, request operations.GetTeamRequest, ...) (*operations.GetTeamResponse, error)
- func (s *Teams) ListTeams(ctx context.Context, opts ...operations.Option) (*operations.ListTeamsResponse, error)
- func (s *Teams) RemoveTeamMember(ctx context.Context, request operations.RemoveTeamMemberRequest, ...) (*operations.RemoveTeamMemberResponse, error)
- func (s *Teams) UpdateTeam(ctx context.Context, request operations.UpdateTeamRequest, ...) (*operations.UpdateTeamResponse, error)
- type UsageMetrics
- type VisualChangesets
- func (s *VisualChangesets) AddVisualChange(ctx context.Context, request operations.PostVisualChangeRequest, ...) (*operations.PostVisualChangeResponse, error)
- func (s *VisualChangesets) Create(ctx context.Context, request operations.PostVisualChangesetsRequest, ...) (*operations.PostVisualChangesetsResponse, error)
- func (s *VisualChangesets) GetVisualChangeset(ctx context.Context, request operations.GetVisualChangesetRequest, ...) (*operations.GetVisualChangesetResponse, error)
- func (s *VisualChangesets) ListVisualChangesets(ctx context.Context, request operations.ListVisualChangesetsRequest, ...) (*operations.ListVisualChangesetsResponse, error)
- func (s *VisualChangesets) Update(ctx context.Context, request operations.PutVisualChangesetRequest, ...) (*operations.PutVisualChangesetResponse, error)
- func (s *VisualChangesets) UpdateVisualChange(ctx context.Context, request operations.PutVisualChangeRequest, ...) (*operations.PutVisualChangeResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ServerList = []string{
"https://api.growthbook.io/api",
"https://{domain}/api",
}
ServerList contains the list of servers available to the SDK
Functions ¶
Types ¶
type AnalyticsExplorations ¶
type AnalyticsExplorations struct {
// contains filtered or unexported fields
}
func (*AnalyticsExplorations) RunDataSource ¶
func (s *AnalyticsExplorations) RunDataSource(ctx context.Context, request operations.PostDataSourceExplorationRequest, opts ...operations.Option) (*operations.PostDataSourceExplorationResponse, error)
RunDataSource - Create a Data Source based visualization
func (*AnalyticsExplorations) RunFactTable ¶
func (s *AnalyticsExplorations) RunFactTable(ctx context.Context, request operations.PostFactTableExplorationRequest, opts ...operations.Option) (*operations.PostFactTableExplorationResponse, error)
RunFactTable - Run a Fact Table based visualization
func (*AnalyticsExplorations) RunMetric ¶
func (s *AnalyticsExplorations) RunMetric(ctx context.Context, request operations.PostMetricExplorationRequest, opts ...operations.Option) (*operations.PostMetricExplorationResponse, error)
RunMetric - Create a Metric based visualization
type Archetypes ¶
type Archetypes struct {
// contains filtered or unexported fields
}
Archetypes allow you to simulate the result of targeting rules on pre-set user attributes
func (*Archetypes) Create ¶
func (s *Archetypes) Create(ctx context.Context, request operations.PostArchetypeRequest, opts ...operations.Option) (*operations.PostArchetypeResponse, error)
Create a single archetype
func (*Archetypes) DeleteArchetype ¶
func (s *Archetypes) DeleteArchetype(ctx context.Context, request operations.DeleteArchetypeRequest, opts ...operations.Option) (*operations.DeleteArchetypeResponse, error)
DeleteArchetype - Deletes a single archetype
func (*Archetypes) GetArchetype ¶
func (s *Archetypes) GetArchetype(ctx context.Context, request operations.GetArchetypeRequest, opts ...operations.Option) (*operations.GetArchetypeResponse, error)
GetArchetype - Get a single archetype
func (*Archetypes) ListArchetypes ¶
func (s *Archetypes) ListArchetypes(ctx context.Context, opts ...operations.Option) (*operations.ListArchetypesResponse, error)
ListArchetypes - Get the organization's archetypes
func (*Archetypes) Update ¶
func (s *Archetypes) Update(ctx context.Context, request operations.PutArchetypeRequest, opts ...operations.Option) (*operations.PutArchetypeResponse, error)
Update a single archetype
type Attributes ¶
type Attributes struct {
// contains filtered or unexported fields
}
Attributes - Used when targeting feature flags and experiments.
func (*Attributes) Create ¶
func (s *Attributes) Create(ctx context.Context, request operations.PostAttributeRequest, opts ...operations.Option) (*operations.PostAttributeResponse, error)
Create a new attribute
func (*Attributes) DeleteAttribute ¶
func (s *Attributes) DeleteAttribute(ctx context.Context, request operations.DeleteAttributeRequest, opts ...operations.Option) (*operations.DeleteAttributeResponse, error)
DeleteAttribute - Deletes a single attribute
func (*Attributes) ListAttributes ¶
func (s *Attributes) ListAttributes(ctx context.Context, request *operations.ListAttributesRequest, opts ...operations.Option) (*operations.ListAttributesResponse, error)
ListAttributes - Get the organization's attributes
func (*Attributes) Update ¶
func (s *Attributes) Update(ctx context.Context, request operations.PutAttributeRequest, opts ...operations.Option) (*operations.PutAttributeResponse, error)
Update an attribute
type CodeReferences ¶
type CodeReferences struct {
// contains filtered or unexported fields
}
CodeReferences - Intended for use with our code reference CI utility, [`gb-find-code-refs`](https://github.com/growthbook/gb-find-code-refs).
func (*CodeReferences) GetForFeature ¶
func (s *CodeReferences) GetForFeature(ctx context.Context, request operations.GetCodeRefsRequest, opts ...operations.Option) (*operations.GetCodeRefsResponse, error)
GetForFeature - Get list of code references for a single feature id
func (*CodeReferences) List ¶
func (s *CodeReferences) List(ctx context.Context, request *operations.ListCodeRefsRequest, opts ...operations.Option) (*operations.ListCodeRefsResponse, error)
List - Get list of all code references for the current organization
func (*CodeReferences) Submit ¶
func (s *CodeReferences) Submit(ctx context.Context, request operations.PostCodeRefsRequest, opts ...operations.Option) (*operations.PostCodeRefsResponse, error)
Submit list of code references
type ConfigRevisions ¶
type ConfigRevisions struct {
// contains filtered or unexported fields
}
ConfigRevisions - Draft revisions for configs, including value and schema edits, schema import (JSON Schema / TypeScript / inferred), approvals, and lifecycle (publish, discard, revert). Publishing a schema change cascades the "base wins" normalization to descendant configs; a publish that removes or retypes fields descendants still use soft-blocks with a 422 unless `?ignoreWarnings=true`. Pass `version: "new"` on edit endpoints to auto-create a draft.
func (*ConfigRevisions) Archive ¶
func (s *ConfigRevisions) Archive(ctx context.Context, request operations.PutConfigRevisionArchiveRequest, opts ...operations.Option) (*operations.PutConfigRevisionArchiveResponse, error)
Archive - Stage an archive/unarchive in a draft revision Stages an archive or unarchive on the draft. Pass `version: "new"` to auto-create a draft. Archived configs can be permanently deleted via `DELETE /configs/{key}` once the archive is published.
func (*ConfigRevisions) Create ¶
func (s *ConfigRevisions) Create(ctx context.Context, request operations.PostConfigRevisionRequest, opts ...operations.Option) (*operations.PostConfigRevisionResponse, error)
Create a draft revision Creates a new draft revision branched from the current live config. A config can have multiple concurrent drafts; use this to start an isolated line of edits.
func (*ConfigRevisions) DeleteProjection ¶
func (s *ConfigRevisions) DeleteProjection(ctx context.Context, request operations.DeleteConfigRevisionProjectionRequest, opts ...operations.Option) (*operations.DeleteConfigRevisionProjectionResponse, error)
DeleteProjection - Remove a config's per-source render projection on a draft Stages removal of the `source` projection from `renderProjections` on the draft (the canonical schema is unchanged). Published through the normal flow. Pass `version: "new"` to auto-create a draft.
func (*ConfigRevisions) Discard ¶
func (s *ConfigRevisions) Discard(ctx context.Context, request operations.PostConfigRevisionDiscardRequest, opts ...operations.Option) (*operations.PostConfigRevisionDiscardResponse, error)
Discard a draft revision Permanently discards a draft revision. Only open revisions (not merged or already-discarded) can be discarded.
func (*ConfigRevisions) GetConfigRevision ¶
func (s *ConfigRevisions) GetConfigRevision(ctx context.Context, request operations.GetConfigRevisionRequest, opts ...operations.Option) (*operations.GetConfigRevisionResponse, error)
GetConfigRevision - Get a single config revision Returns the revision at the specified version for this config. Use `GET /configs-revisions/{key}/latest` for the most recent active draft.
func (*ConfigRevisions) Latest ¶
func (s *ConfigRevisions) Latest(ctx context.Context, request operations.GetConfigRevisionLatestRequest, opts ...operations.Option) (*operations.GetConfigRevisionLatestResponse, error)
Latest - Get the most recent active draft revision Returns the most recently updated open (non-merged, non-discarded) revision for the config. Returns 404 if there is no active draft. Pass `mine=true` to restrict to drafts authored by the calling user (requires a user-scoped API key).
func (*ConfigRevisions) ListConfigRevisions ¶
func (s *ConfigRevisions) ListConfigRevisions(ctx context.Context, request *operations.ListConfigRevisionsRequest, opts ...operations.Option) (*operations.ListConfigRevisionsResponse, error)
ListConfigRevisions - List config revisions across the organization Returns a paginated list of revisions across all configs in the organization, sorted newest-first. Optionally filtered by config, status, author, or the calling user's involvement.
func (*ConfigRevisions) ListForConfig ¶
func (s *ConfigRevisions) ListForConfig(ctx context.Context, request operations.GetConfigRevisionsRequest, opts ...operations.Option) (*operations.GetConfigRevisionsResponse, error)
ListForConfig - List revisions for a config Returns a paginated list of revisions for this config, sorted newest-first. Optionally filtered by status, author, or the calling user's involvement.
func (*ConfigRevisions) MergeStatus ¶
func (s *ConfigRevisions) MergeStatus(ctx context.Context, request operations.GetConfigRevisionMergeStatusRequest, opts ...operations.Option) (*operations.GetConfigRevisionMergeStatusResponse, error)
MergeStatus - Get merge status for a draft revision Runs a dry-run merge of the draft against the current live config and returns any conflicts. Use this before publishing to preview changes and detect conflicting edits.
func (*ConfigRevisions) Publish ¶
func (s *ConfigRevisions) Publish(ctx context.Context, request operations.PostConfigRevisionPublishRequest, opts ...operations.Option) (*operations.PostConfigRevisionPublishResponse, error)
Publish a draft revision Publishes a draft revision, making it the live state of the config. Blocked if the org requires approvals and the revision is not approved (callers with the bypass-approval permission may still publish). Publishing a schema change cascades the 'base wins' normalization to descendant configs.
func (*ConfigRevisions) Rebase ¶
func (s *ConfigRevisions) Rebase(ctx context.Context, request operations.PostConfigRevisionRebaseRequest, opts ...operations.Option) (*operations.PostConfigRevisionRebaseResponse, error)
Rebase a draft revision onto the current live config Updates the draft's base snapshot to the current live state, applying the draft's changes on top. Supply `conflictResolutions` to resolve any conflicting fields. Strategies are `overwrite` (use the draft's value) or `discard` (keep the live value).
func (*ConfigRevisions) RecallReview ¶
func (s *ConfigRevisions) RecallReview(ctx context.Context, request operations.PostConfigRevisionRecallReviewRequest, opts ...operations.Option) (*operations.PostConfigRevisionRecallReviewResponse, error)
RecallReview - Recall a review request Pulls a revision in review (`pending-review`, `changes-requested`, or `approved`) back to `draft`, clearing existing reviews and disarming any auto-publish-on-approval.
func (*ConfigRevisions) Reopen ¶
func (s *ConfigRevisions) Reopen(ctx context.Context, request operations.PostConfigRevisionReopenRequest, opts ...operations.Option) (*operations.PostConfigRevisionReopenResponse, error)
Reopen a discarded revision Returns a previously discarded revision to `draft` status so it can be edited and published again. Only discarded revisions can be reopened.
func (*ConfigRevisions) RequestReview ¶
func (s *ConfigRevisions) RequestReview(ctx context.Context, request operations.PostConfigRevisionRequestReviewRequest, opts ...operations.Option) (*operations.PostConfigRevisionRequestReviewResponse, error)
RequestReview - Request review for a draft revision Moves the draft from `draft` into `pending-review`. Notifies reviewers per the org's approval-flow settings.
Set `autoPublishOnApproval` to `true` to publish the revision automatically the moment it is approved. This requires the org to have auto-publish-on-approval enabled and the caller to have publish permission on the config.
func (*ConfigRevisions) Revert ¶
func (s *ConfigRevisions) Revert(ctx context.Context, request operations.PostConfigRevisionRevertRequest, opts ...operations.Option) (*operations.PostConfigRevisionRevertResponse, error)
Revert the config to a prior revision Creates a new draft (or immediately publishes) whose content matches the specified historical revision. Defaults to creating a draft; when the org enables 'reverts bypass approval' it defaults to publishing immediately. Pass `strategy` to override.
func (*ConfigRevisions) SchedulePublish ¶
func (s *ConfigRevisions) SchedulePublish(ctx context.Context, request operations.PostConfigRevisionSchedulePublishRequest, opts ...operations.Option) (*operations.PostConfigRevisionSchedulePublishResponse, error)
SchedulePublish - Schedule (or cancel) a deferred publish Arms a revision to publish automatically at a future time. Pass `scheduledPublishAt` as an RFC3339 timestamp in the future to arm, or `null` to cancel a pending schedule. Requires the `scheduled-revisions` commercial feature and publish permission on the config. A draft that still requires approval must request review first (or be armed with `bypassApproval` by a caller who can bypass).
func (*ConfigRevisions) SetMetadata ¶
func (s *ConfigRevisions) SetMetadata(ctx context.Context, request operations.PutConfigRevisionMetadataRequest, opts ...operations.Option) (*operations.PutConfigRevisionMetadataResponse, error)
SetMetadata - Update config metadata in a draft revision Stages metadata changes (name, owner, description, project, lineage parent, extensibility) on the draft. Pass `version: "new"` to auto-create a draft. The change is only applied to the live config when the revision is merged.
func (*ConfigRevisions) SetProjection ¶
func (s *ConfigRevisions) SetProjection(ctx context.Context, request operations.PutConfigRevisionProjectionRequest, opts ...operations.Option) (*operations.PutConfigRevisionProjectionResponse, error)
SetProjection - Set (or update) a config's per-source render projection on a draft Stages a per-source render projection on the draft, AND the schema it implies. Provide a named `schema` source (`{ type: "typescript" | "protobuf" | "python" | "go" | "rust" | "json-schema", value }`) for the consuming codebase identified by `source`: GrowthBook derives the config's canonical schema from it (so the change projects into the Config) and captures that source's named-type structure under `renderProjections[source]`. Both are staged on the draft and published through the normal flow. Pass `version: "new"` to auto-create a draft. Lossy conversions degrade with `warnings`.
func (*ConfigRevisions) SetSchema ¶
func (s *ConfigRevisions) SetSchema(ctx context.Context, request operations.PutConfigRevisionSchemaRequest, opts ...operations.Option) (*operations.PutConfigRevisionSchemaResponse, error)
SetSchema - Update or import the schema of a config draft revision Stages this config's field schema on the draft. Provide exactly ONE source: - `schema`: a schema document — `{ type: "json-schema", value }` (a JSON Schema object) or `{ type: "typescript", value }` (TypeScript source). **JSON Schema is the recommended ("happy path") format** — it is the canonical pivot, preserves nested objects/arrays, and resolves local `$ref`/`$defs` (so generator output with referenced types works). `typescript` is a best-effort convenience parser. All conversions are lossy-by-design and degrade exotic constructs to permissive types WITH warnings (returned in `warnings`). - `infer: true`: derive the schema from the draft's value.
Fields whose key a published ancestor already owns follow "base wins": an identical re-declaration is stripped with a `redundant-declaration` warning; one with a differing definition is rejected. Pass `version: "new"` to auto-create a draft.
func (*ConfigRevisions) SetValue ¶
func (s *ConfigRevisions) SetValue(ctx context.Context, request operations.PutConfigRevisionValueRequest, opts ...operations.Option) (*operations.PutConfigRevisionValueResponse, error)
SetValue - Update the value of a config draft revision Stages a new `value` (this config's own JSON object) on the draft. Pass `version: "new"` to auto-create a draft. A `@config:` inheritance entry in the value is rejected — express lineage via the `parent`/`extends` metadata fields instead. Configs are environment-agnostic: there is no per-environment override (use a Constant for that).
Inheritance is a deep (targeted) patch: this value is merged onto the resolved parent recursively, key by key — restate only the leaves you want to change and the rest are inherited. Arrays and scalars replace wholesale, `null` is a value (it does not delete a key), and a value composed from a constant via `$extends` is applied whole.
Set `inferSchemaIfMissing: true` to derive and stage a field schema from the value when the config has none yet.
func (*ConfigRevisions) SubmitReview ¶
func (s *ConfigRevisions) SubmitReview(ctx context.Context, request operations.PostConfigRevisionSubmitReviewRequest, opts ...operations.Option) (*operations.PostConfigRevisionSubmitReviewResponse, error)
SubmitReview - Submit a review on a draft revision Submits an `approve`, `request-changes`, or `comment` review on the revision. Authors and contributors cannot submit `approve` reviews on their own drafts when the org has `blockSelfApproval` enabled.
When `decision` is `approve` and the revision has `autoPublishOnApproval` enabled, the revision is automatically published after approval. The response includes `autoPublished: true` when this happens. Pass `skipAutoPublish: true` to approve without triggering auto-publish.
type Configs ¶
type Configs struct {
// contains filtered or unexported fields
}
Configs - Reusable, typed, inheritable JSON objects referenced from feature flag values as `@config:key`. A config carries a field `schema` (with TypeScript/JSON Schema import-export) and a lineage `parent`; it resolves like a `json` constant, composed via `$extends`. Inheritance is expressed via `parent`, never an in-value `@config:` entry. Schema fields colliding with a published ancestor's key follow 'base wins': identical re-declarations are stripped with a warning, differing ones are rejected.
func (*Configs) ArchiveConfig ¶
func (s *Configs) ArchiveConfig(ctx context.Context, request operations.ArchiveConfigRequest, opts ...operations.Option) (*operations.ArchiveConfigResponse, error)
ArchiveConfig - Archive a single config Archives a config. A child config (including an environment/project override) is archived outright when its live value is an empty patch or nothing serves it; when it IS actively serving a value, this returns a 422 soft warning — re-submit with `?ignoreWarnings=true` to proceed. A root config that is still referenced by a feature or another config cannot be archived (400).
func (*Configs) Create ¶
func (s *Configs) Create(ctx context.Context, request operations.PostConfigRequest, opts ...operations.Option) (*operations.PostConfigResponse, error)
Create a single config
func (*Configs) DeleteConfig ¶
func (s *Configs) DeleteConfig(ctx context.Context, request operations.DeleteConfigRequest, opts ...operations.Option) (*operations.DeleteConfigResponse, error)
DeleteConfig - Delete a single config
func (*Configs) GetConfig ¶
func (s *Configs) GetConfig(ctx context.Context, request operations.GetConfigRequest, opts ...operations.Option) (*operations.GetConfigResponse, error)
GetConfig - Get a single config
func (*Configs) GetKeyUsage ¶
func (s *Configs) GetKeyUsage(ctx context.Context, request operations.GetConfigKeyUsageRequest, opts ...operations.Option) (*operations.GetConfigKeyUsageResponse, error)
GetKeyUsage - Get the feature rules and default values implementing each key Lists every feature rule and default value that overrides a key of this config's lineage family, so you can see which keys are implemented and where.
func (*Configs) GetLineage ¶
func (s *Configs) GetLineage(ctx context.Context, request operations.GetConfigLineageRequest, opts ...operations.Option) (*operations.GetConfigLineageResponse, error)
GetLineage - Get the full lineage (family tree) for a config
func (*Configs) GetReferences ¶
func (s *Configs) GetReferences(ctx context.Context, request operations.GetConfigReferencesRequest, opts ...operations.Option) (*operations.GetConfigReferencesResponse, error)
GetReferences - Get features and configs that reference this config
func (*Configs) GetSchema ¶
func (s *Configs) GetSchema(ctx context.Context, request operations.GetConfigSchemaRequest, opts ...operations.Option) (*operations.GetConfigSchemaResponse, error)
GetSchema - Export a config's schema
func (*Configs) ListConfigs ¶
func (s *Configs) ListConfigs(ctx context.Context, request *operations.ListConfigsRequest, opts ...operations.Option) (*operations.ListConfigsResponse, error)
ListConfigs - Get all configs
func (*Configs) LockConfig ¶
func (s *Configs) LockConfig(ctx context.Context, request operations.LockConfigRequest, opts ...operations.Option) (*operations.LockConfigResponse, error)
LockConfig - Lock a config at its current published revision Freezes the config at its current published (merged) revision. While locked, no change can be published past that revision — publish, revert-to-publish, direct update, scheduled publish, and archive are all blocked (drafts may still be created and edited). The pinned revision is returned as `lockedRevision` for reproducible build pinning. Unlocking requires the `bypassApprovalChecks` permission.
func (*Configs) UnarchiveConfig ¶
func (s *Configs) UnarchiveConfig(ctx context.Context, request operations.UnarchiveConfigRequest, opts ...operations.Option) (*operations.UnarchiveConfigResponse, error)
UnarchiveConfig - Unarchive a single config
func (*Configs) UnlockConfig ¶
func (s *Configs) UnlockConfig(ctx context.Context, request operations.UnlockConfigRequest, opts ...operations.Option) (*operations.UnlockConfigResponse, error)
UnlockConfig - Unlock a config Clears the lock so changes can be published again. Requires the `bypassApprovalChecks` permission on the config's project.
func (*Configs) UpdateConfig ¶
func (s *Configs) UpdateConfig(ctx context.Context, request operations.UpdateConfigRequest, opts ...operations.Option) (*operations.UpdateConfigResponse, error)
UpdateConfig - Partially update a single config
func (*Configs) VerifySchema ¶
func (s *Configs) VerifySchema(ctx context.Context, request operations.VerifyConfigSchemaRequest, opts ...operations.Option) (*operations.VerifyConfigSchemaResponse, error)
VerifySchema - Verify a config's schema against a source (drift check)
type ConstantRevisions ¶
type ConstantRevisions struct {
// contains filtered or unexported fields
}
ConstantRevisions - Draft revisions for constants, including pending changes, approvals, and lifecycle (publish, discard, revert). Pass `version: "new"` on edit endpoints to auto-create a draft.
func (*ConstantRevisions) Archive ¶
func (s *ConstantRevisions) Archive(ctx context.Context, request operations.PutConstantRevisionArchiveRequest, opts ...operations.Option) (*operations.PutConstantRevisionArchiveResponse, error)
Archive - Stage an archive/unarchive in a draft revision Stages an archive or unarchive on the draft. Pass `version: "new"` to auto-create a draft. Archived constants can be permanently deleted via `DELETE /constants/{key}` once the archive is published.
func (*ConstantRevisions) Create ¶
func (s *ConstantRevisions) Create(ctx context.Context, request operations.PostConstantRevisionRequest, opts ...operations.Option) (*operations.PostConstantRevisionResponse, error)
Create a draft revision Creates a new draft revision branched from the current live constant. A constant can have multiple concurrent drafts; use this to start an isolated line of edits.
func (*ConstantRevisions) Discard ¶
func (s *ConstantRevisions) Discard(ctx context.Context, request operations.PostConstantRevisionDiscardRequest, opts ...operations.Option) (*operations.PostConstantRevisionDiscardResponse, error)
Discard a draft revision Permanently discards a draft revision. Only open revisions (not merged or already-discarded) can be discarded.
func (*ConstantRevisions) GetConstantRevision ¶
func (s *ConstantRevisions) GetConstantRevision(ctx context.Context, request operations.GetConstantRevisionRequest, opts ...operations.Option) (*operations.GetConstantRevisionResponse, error)
GetConstantRevision - Get a single constant revision Returns the revision at the specified version for this constant. Use `GET /constants-revisions/{key}/latest` for the most recent active draft.
func (*ConstantRevisions) Latest ¶
func (s *ConstantRevisions) Latest(ctx context.Context, request operations.GetConstantRevisionLatestRequest, opts ...operations.Option) (*operations.GetConstantRevisionLatestResponse, error)
Latest - Get the most recent active draft revision Returns the most recently updated open (non-merged, non-discarded) revision for the constant. Returns 404 if there is no active draft. Pass `mine=true` to restrict to drafts authored by the calling user (requires a user-scoped API key).
func (*ConstantRevisions) ListConstantRevisions ¶
func (s *ConstantRevisions) ListConstantRevisions(ctx context.Context, request *operations.ListConstantRevisionsRequest, opts ...operations.Option) (*operations.ListConstantRevisionsResponse, error)
ListConstantRevisions - List constant revisions across the organization Returns a paginated list of revisions across all constants in the organization, sorted newest-first. Optionally filtered by constant, status, author, or the calling user's involvement.
func (*ConstantRevisions) ListForConstant ¶
func (s *ConstantRevisions) ListForConstant(ctx context.Context, request operations.GetConstantRevisionsRequest, opts ...operations.Option) (*operations.GetConstantRevisionsResponse, error)
ListForConstant - List revisions for a constant Returns a paginated list of revisions for this constant, sorted newest-first. Optionally filtered by status, author, or the calling user's involvement.
func (*ConstantRevisions) MergeStatus ¶
func (s *ConstantRevisions) MergeStatus(ctx context.Context, request operations.GetConstantRevisionMergeStatusRequest, opts ...operations.Option) (*operations.GetConstantRevisionMergeStatusResponse, error)
MergeStatus - Get merge status for a draft revision Runs a dry-run merge of the draft against the current live constant and returns any conflicts. Use this before publishing to preview changes and detect conflicting edits.
func (*ConstantRevisions) Publish ¶
func (s *ConstantRevisions) Publish(ctx context.Context, request operations.PostConstantRevisionPublishRequest, opts ...operations.Option) (*operations.PostConstantRevisionPublishResponse, error)
Publish a draft revision Publishes a draft revision, making it the live state of the constant. Blocked if the org requires approvals and the revision is not approved (callers with the bypass-approval permission may still publish).
func (*ConstantRevisions) Rebase ¶
func (s *ConstantRevisions) Rebase(ctx context.Context, request operations.PostConstantRevisionRebaseRequest, opts ...operations.Option) (*operations.PostConstantRevisionRebaseResponse, error)
Rebase a draft revision onto the current live constant Updates the draft's base snapshot to the current live state, applying the draft's changes on top. Supply `conflictResolutions` to resolve any conflicting fields. Strategies are `overwrite` (use the draft's value) or `discard` (keep the live value).
func (*ConstantRevisions) RequestReview ¶
func (s *ConstantRevisions) RequestReview(ctx context.Context, request operations.PostConstantRevisionRequestReviewRequest, opts ...operations.Option) (*operations.PostConstantRevisionRequestReviewResponse, error)
RequestReview - Request review for a draft revision Moves the draft from `draft` into `pending-review`. Notifies reviewers per the org's approval-flow settings.
Set `autoPublishOnApproval` to `true` to publish the revision automatically the moment it is approved. This requires the org to have auto-publish-on-approval enabled and the caller to have publish permission on the constant.
func (*ConstantRevisions) Revert ¶
func (s *ConstantRevisions) Revert(ctx context.Context, request operations.PostConstantRevisionRevertRequest, opts ...operations.Option) (*operations.PostConstantRevisionRevertResponse, error)
Revert the constant to a prior revision Creates a new draft (or immediately publishes) whose content matches the specified historical revision. Defaults to creating a draft; when the org enables 'reverts bypass approval' it defaults to publishing immediately. Pass `strategy` to override.
func (*ConstantRevisions) SetMetadata ¶
func (s *ConstantRevisions) SetMetadata(ctx context.Context, request operations.PutConstantRevisionMetadataRequest, opts ...operations.Option) (*operations.PutConstantRevisionMetadataResponse, error)
SetMetadata - Update constant metadata in a draft revision Stages metadata changes (name, owner, description, project) on the draft. Pass `version: "new"` to auto-create a draft. The change is only applied to the live constant when the revision is merged.
func (*ConstantRevisions) SetValue ¶
func (s *ConstantRevisions) SetValue(ctx context.Context, request operations.PutConstantRevisionValueRequest, opts ...operations.Option) (*operations.PutConstantRevisionValueResponse, error)
SetValue - Update the value of a constant draft revision Stages a new default `value` and/or per-environment `environmentValues` on the draft. At least one must be supplied. Pass `version: "new"` to auto-create a draft. The value must match the constant's type (valid JSON for `json` constants).
func (*ConstantRevisions) SubmitReview ¶
func (s *ConstantRevisions) SubmitReview(ctx context.Context, request operations.PostConstantRevisionSubmitReviewRequest, opts ...operations.Option) (*operations.PostConstantRevisionSubmitReviewResponse, error)
SubmitReview - Submit a review on a draft revision Submits an `approve`, `request-changes`, or `comment` review on the revision. Authors and contributors cannot submit `approve` reviews on their own drafts when the org has `blockSelfApproval` enabled.
When `decision` is `approve` and the revision has `autoPublishOnApproval` enabled, the revision is automatically published after approval. The response includes `autoPublished: true` when this happens. Pass `skipAutoPublish: true` to approve without triggering auto-publish.
type Constants ¶
type Constants struct {
// contains filtered or unexported fields
}
Constants - Reusable named values referenced from feature flag values as `@const:key` and resolved into the SDK payload at build time. String constants are interpolated via `{{ @const:key }}`; JSON (object) constants are composed via an `$extends` array.
func (*Constants) ArchiveConstant ¶
func (s *Constants) ArchiveConstant(ctx context.Context, request operations.ArchiveConstantRequest, opts ...operations.Option) (*operations.ArchiveConstantResponse, error)
ArchiveConstant - Archive a single constant
func (*Constants) Create ¶
func (s *Constants) Create(ctx context.Context, request operations.PostConstantRequest, opts ...operations.Option) (*operations.PostConstantResponse, error)
Create a single constant
func (*Constants) DeleteConstant ¶
func (s *Constants) DeleteConstant(ctx context.Context, request operations.DeleteConstantRequest, opts ...operations.Option) (*operations.DeleteConstantResponse, error)
DeleteConstant - Delete a single constant
func (*Constants) GetConstant ¶
func (s *Constants) GetConstant(ctx context.Context, request operations.GetConstantRequest, opts ...operations.Option) (*operations.GetConstantResponse, error)
GetConstant - Get a single constant
func (*Constants) GetReferences ¶
func (s *Constants) GetReferences(ctx context.Context, request operations.GetConstantReferencesRequest, opts ...operations.Option) (*operations.GetConstantReferencesResponse, error)
GetReferences - Get features and constants that reference this constant
func (*Constants) ListConstants ¶
func (s *Constants) ListConstants(ctx context.Context, request *operations.ListConstantsRequest, opts ...operations.Option) (*operations.ListConstantsResponse, error)
ListConstants - Get all constants
func (*Constants) UnarchiveConstant ¶
func (s *Constants) UnarchiveConstant(ctx context.Context, request operations.UnarchiveConstantRequest, opts ...operations.Option) (*operations.UnarchiveConstantResponse, error)
UnarchiveConstant - Unarchive a single constant
func (*Constants) UpdateConstant ¶
func (s *Constants) UpdateConstant(ctx context.Context, request operations.UpdateConstantRequest, opts ...operations.Option) (*operations.UpdateConstantResponse, error)
UpdateConstant - Partially update a single constant
type ContextualBanditQueries ¶
type ContextualBanditQueries struct {
// contains filtered or unexported fields
}
func (*ContextualBanditQueries) CreateContextualBanditQuery ¶
func (s *ContextualBanditQueries) CreateContextualBanditQuery(ctx context.Context, request operations.CreateContextualBanditQueryRequest, opts ...operations.Option) (*operations.CreateContextualBanditQueryResponse, error)
CreateContextualBanditQuery - Create a single contextualBanditQuery
func (*ContextualBanditQueries) DeleteContextualBanditQuery ¶
func (s *ContextualBanditQueries) DeleteContextualBanditQuery(ctx context.Context, request operations.DeleteContextualBanditQueryRequest, opts ...operations.Option) (*operations.DeleteContextualBanditQueryResponse, error)
DeleteContextualBanditQuery - Delete a single contextualBanditQuery
func (*ContextualBanditQueries) GetContextualBanditQuery ¶
func (s *ContextualBanditQueries) GetContextualBanditQuery(ctx context.Context, request operations.GetContextualBanditQueryRequest, opts ...operations.Option) (*operations.GetContextualBanditQueryResponse, error)
GetContextualBanditQuery - Get a single contextualBanditQuery
func (*ContextualBanditQueries) ListContextualBanditQueries ¶
func (s *ContextualBanditQueries) ListContextualBanditQueries(ctx context.Context, request *operations.ListContextualBanditQueriesRequest, opts ...operations.Option) (*operations.ListContextualBanditQueriesResponse, error)
ListContextualBanditQueries - Get all contextualBanditQueries
func (*ContextualBanditQueries) UpdateContextualBanditQuery ¶
func (s *ContextualBanditQueries) UpdateContextualBanditQuery(ctx context.Context, request operations.UpdateContextualBanditQueryRequest, opts ...operations.Option) (*operations.UpdateContextualBanditQueryResponse, error)
UpdateContextualBanditQuery - Update a single contextualBanditQuery
type ContextualBandits ¶
type ContextualBandits struct {
// contains filtered or unexported fields
}
func (*ContextualBandits) CreateContextualBandit ¶
func (s *ContextualBandits) CreateContextualBandit(ctx context.Context, request operations.CreateContextualBanditRequest, opts ...operations.Option) (*operations.CreateContextualBanditResponse, error)
CreateContextualBandit - Create a single contextualBandit
func (*ContextualBandits) DeleteContextualBanditLinkedFeature ¶
func (s *ContextualBandits) DeleteContextualBanditLinkedFeature(ctx context.Context, request operations.DeleteContextualBanditLinkedFeatureRequest, opts ...operations.Option) (*operations.DeleteContextualBanditLinkedFeatureResponse, error)
DeleteContextualBanditLinkedFeature - Unlink a feature from a Contextual Bandit Detaches a feature from this contextual bandit by removing it from the bandit's linked-feature list and cancelling any queued draft auto-publish. The feature's `contextual-bandit-ref` rule itself is left untouched.
func (*ContextualBandits) GetContextualBandit ¶
func (s *ContextualBandits) GetContextualBandit(ctx context.Context, request operations.GetContextualBanditRequest, opts ...operations.Option) (*operations.GetContextualBanditResponse, error)
GetContextualBandit - Get a single contextualBandit
func (*ContextualBandits) GetContextualBanditCurrentWeights ¶
func (s *ContextualBandits) GetContextualBanditCurrentWeights(ctx context.Context, request operations.GetContextualBanditCurrentWeightsRequest, opts ...operations.Option) (*operations.GetContextualBanditCurrentWeightsResponse, error)
GetContextualBanditCurrentWeights - Get current Contextual Bandit leaf weights and latest event
func (*ContextualBandits) GetContextualBanditEvent ¶
func (s *ContextualBandits) GetContextualBanditEvent(ctx context.Context, request operations.GetContextualBanditEventRequest, opts ...operations.Option) (*operations.GetContextualBanditEventResponse, error)
GetContextualBanditEvent - Get a single Contextual Bandit weight-update event
func (*ContextualBandits) GetContextualBanditLinkedFeatures ¶
func (s *ContextualBandits) GetContextualBanditLinkedFeatures(ctx context.Context, request operations.GetContextualBanditLinkedFeaturesRequest, opts ...operations.Option) (*operations.GetContextualBanditLinkedFeaturesResponse, error)
GetContextualBanditLinkedFeatures - Get features linked to a Contextual Bandit Returns the features that reference this contextual bandit via a `contextual-bandit-ref` rule, enriched with each feature's live/draft state, per-environment rule state, and variation values. Same payload the GrowthBook UI uses to render the Linked Features section.
func (*ContextualBandits) GetContextualBanditResults ¶
func (s *ContextualBandits) GetContextualBanditResults(ctx context.Context, request operations.GetContextualBanditResultsRequest, opts ...operations.Option) (*operations.GetContextualBanditResultsResponse, error)
GetContextualBanditResults - Get latest Contextual Bandit results Returns the latest contextual-bandit stats engine output (per-context responses, the context-to-leaf map, and per-leaf aggregated stats), the overall (marginal) variation weights across all contexts, the SRM of the most recent run, and the status of the most recent snapshot run for the contextual bandit. Same payload the GrowthBook UI uses to render the contextual bandit results table.
func (*ContextualBandits) GetContextualBanditSnapshot ¶
func (s *ContextualBandits) GetContextualBanditSnapshot(ctx context.Context, request operations.GetContextualBanditSnapshotRequest, opts ...operations.Option) (*operations.GetContextualBanditSnapshotResponse, error)
GetContextualBanditSnapshot - Get a single Contextual Bandit snapshot
func (*ContextualBandits) ListContextualBanditEvents ¶
func (s *ContextualBandits) ListContextualBanditEvents(ctx context.Context, request operations.ListContextualBanditEventsRequest, opts ...operations.Option) (*operations.ListContextualBanditEventsResponse, error)
ListContextualBanditEvents - List Contextual Bandit weight-update events
func (*ContextualBandits) ListContextualBanditSnapshots ¶
func (s *ContextualBandits) ListContextualBanditSnapshots(ctx context.Context, request operations.ListContextualBanditSnapshotsRequest, opts ...operations.Option) (*operations.ListContextualBanditSnapshotsResponse, error)
ListContextualBanditSnapshots - List Contextual Bandit snapshots
func (*ContextualBandits) ListContextualBandits ¶
func (s *ContextualBandits) ListContextualBandits(ctx context.Context, request *operations.ListContextualBanditsRequest, opts ...operations.Option) (*operations.ListContextualBanditsResponse, error)
ListContextualBandits - Get all contextualBandits
func (*ContextualBandits) RefreshContextualBandit ¶
func (s *ContextualBandits) RefreshContextualBandit(ctx context.Context, request operations.RefreshContextualBanditRequest, opts ...operations.Option) (*operations.RefreshContextualBanditResponse, error)
RefreshContextualBandit - Trigger a Contextual Bandit snapshot refresh
func (*ContextualBandits) StartContextualBandit ¶
func (s *ContextualBandits) StartContextualBandit(ctx context.Context, request operations.StartContextualBanditRequest, opts ...operations.Option) (*operations.StartContextualBanditResponse, error)
StartContextualBandit - Start a Contextual Bandit
func (*ContextualBandits) StopContextualBandit ¶
func (s *ContextualBandits) StopContextualBandit(ctx context.Context, request operations.StopContextualBanditRequest, opts ...operations.Option) (*operations.StopContextualBanditResponse, error)
StopContextualBandit - Stop a Contextual Bandit
func (*ContextualBandits) UpdateContextualBandit ¶
func (s *ContextualBandits) UpdateContextualBandit(ctx context.Context, request operations.UpdateContextualBanditRequest, opts ...operations.Option) (*operations.UpdateContextualBanditResponse, error)
UpdateContextualBandit - Update a single contextualBandit
type CustomFields ¶
type CustomFields struct {
// contains filtered or unexported fields
}
func (*CustomFields) CreateCustomField ¶
func (s *CustomFields) CreateCustomField(ctx context.Context, request operations.CreateCustomFieldRequest, opts ...operations.Option) (*operations.CreateCustomFieldResponse, error)
CreateCustomField - Create a single customField
func (*CustomFields) DeleteCustomField ¶
func (s *CustomFields) DeleteCustomField(ctx context.Context, request operations.DeleteCustomFieldRequest, opts ...operations.Option) (*operations.DeleteCustomFieldResponse, error)
DeleteCustomField - Delete a single customField
func (*CustomFields) GetCustomField ¶
func (s *CustomFields) GetCustomField(ctx context.Context, request operations.GetCustomFieldRequest, opts ...operations.Option) (*operations.GetCustomFieldResponse, error)
GetCustomField - Get a single customField
func (*CustomFields) ListCustomFields ¶
func (s *CustomFields) ListCustomFields(ctx context.Context, request *operations.ListCustomFieldsRequest, opts ...operations.Option) (*operations.ListCustomFieldsResponse, error)
ListCustomFields - Get all custom fields
func (*CustomFields) UpdateCustomField ¶
func (s *CustomFields) UpdateCustomField(ctx context.Context, request operations.UpdateCustomFieldRequest, opts ...operations.Option) (*operations.UpdateCustomFieldResponse, error)
UpdateCustomField - Update a single customField
type CustomHooks ¶
type CustomHooks struct {
// contains filtered or unexported fields
}
CustomHooks - Sandboxed JavaScript validation hooks that run when features, configs, or their revisions are saved or published. Throwing an Error blocks the save; `addWarning(msg)` raises a soft warning. Hooks are scoped by projects, or pinned to a single feature/config via `entityType`/`entityId`; a config-scoped hook also runs for every config inheriting from it (its whole descendant lineage). Scope can be retargeted on update (or cleared with nulls). Requires an enterprise plan; not available on GrowthBook Cloud.
func (*CustomHooks) Create ¶
func (s *CustomHooks) Create(ctx context.Context, request operations.PostCustomHookRequest, opts ...operations.Option) (*operations.PostCustomHookResponse, error)
Create a single custom hook
func (*CustomHooks) DeleteCustomHook ¶
func (s *CustomHooks) DeleteCustomHook(ctx context.Context, request operations.DeleteCustomHookRequest, opts ...operations.Option) (*operations.DeleteCustomHookResponse, error)
DeleteCustomHook - Delete a single custom hook
func (*CustomHooks) GetCustomHook ¶
func (s *CustomHooks) GetCustomHook(ctx context.Context, request operations.GetCustomHookRequest, opts ...operations.Option) (*operations.GetCustomHookResponse, error)
GetCustomHook - Get a single custom hook
func (*CustomHooks) ListCustomHooks ¶
func (s *CustomHooks) ListCustomHooks(ctx context.Context, request *operations.ListCustomHooksRequest, opts ...operations.Option) (*operations.ListCustomHooksResponse, error)
ListCustomHooks - Get all custom hooks
func (*CustomHooks) ListHistory ¶
func (s *CustomHooks) ListHistory(ctx context.Context, request operations.ListCustomHookHistoryRequest, opts ...operations.Option) (*operations.ListCustomHookHistoryResponse, error)
ListHistory - List a custom hook's version history
func (*CustomHooks) RevertCustomHook ¶
func (s *CustomHooks) RevertCustomHook(ctx context.Context, request operations.RevertCustomHookRequest, opts ...operations.Option) (*operations.RevertCustomHookResponse, error)
RevertCustomHook - Revert a custom hook to a previous version
func (*CustomHooks) TestCustomHook ¶
func (s *CustomHooks) TestCustomHook(ctx context.Context, request operations.TestCustomHookRequest, opts ...operations.Option) (*operations.TestCustomHookResponse, error)
TestCustomHook - Dry-run hook code in the sandbox
func (*CustomHooks) UpdateCustomHook ¶
func (s *CustomHooks) UpdateCustomHook(ctx context.Context, request operations.UpdateCustomHookRequest, opts ...operations.Option) (*operations.UpdateCustomHookResponse, error)
UpdateCustomHook - Partially update a single custom hook
type Dashboards ¶
type Dashboards struct {
// contains filtered or unexported fields
}
func (*Dashboards) CreateDashboard ¶
func (s *Dashboards) CreateDashboard(ctx context.Context, request operations.CreateDashboardRequest, opts ...operations.Option) (*operations.CreateDashboardResponse, error)
CreateDashboard - Create a single dashboard
func (*Dashboards) DeleteDashboard ¶
func (s *Dashboards) DeleteDashboard(ctx context.Context, request operations.DeleteDashboardRequest, opts ...operations.Option) (*operations.DeleteDashboardResponse, error)
DeleteDashboard - Delete a single dashboard
func (*Dashboards) GetDashboard ¶
func (s *Dashboards) GetDashboard(ctx context.Context, request operations.GetDashboardRequest, opts ...operations.Option) (*operations.GetDashboardResponse, error)
GetDashboard - Get a single dashboard
func (*Dashboards) ListDashboards ¶
func (s *Dashboards) ListDashboards(ctx context.Context, opts ...operations.Option) (*operations.ListDashboardsResponse, error)
ListDashboards - Get all dashboards
func (*Dashboards) ListForExperiment ¶
func (s *Dashboards) ListForExperiment(ctx context.Context, request operations.GetDashboardsForExperimentRequest, opts ...operations.Option) (*operations.GetDashboardsForExperimentResponse, error)
ListForExperiment - Get all dashboards for an experiment
func (*Dashboards) UpdateDashboard ¶
func (s *Dashboards) UpdateDashboard(ctx context.Context, request operations.UpdateDashboardRequest, opts ...operations.Option) (*operations.UpdateDashboardResponse, error)
UpdateDashboard - Update a single dashboard
type DataSources ¶
type DataSources struct {
// contains filtered or unexported fields
}
DataSources - How GrowthBook connects and queries your data, including cached database schema metadata (information schemas) for tables and columns.
func (*DataSources) GetDataSource ¶
func (s *DataSources) GetDataSource(ctx context.Context, request operations.GetDataSourceRequest, opts ...operations.Option) (*operations.GetDataSourceResponse, error)
GetDataSource - Get a single data source
func (*DataSources) GetInformationSchema ¶
func (s *DataSources) GetInformationSchema(ctx context.Context, request operations.GetInformationSchemaRequest, opts ...operations.Option) (*operations.GetInformationSchemaResponse, error)
GetInformationSchema - Get a Data Source's Information Schema Returns cached database schema metadata for a data source, including databases, schemas, and tables. The information schema is automatically created when a SQL-based data source is added. Not all data source types support information schemas.
func (*DataSources) GetInformationSchemaTable ¶
func (s *DataSources) GetInformationSchemaTable(ctx context.Context, request operations.GetInformationSchemaTableRequest, opts ...operations.Option) (*operations.GetInformationSchemaTableResponse, error)
GetInformationSchemaTable - Get a single Information Schema Table by id Returns cached metadata for a specific table in the Data Source, including columns and their data types. Not all data source types support information schemas.
func (*DataSources) ListDataSources ¶
func (s *DataSources) ListDataSources(ctx context.Context, request *operations.ListDataSourcesRequest, opts ...operations.Option) (*operations.ListDataSourcesResponse, error)
ListDataSources - Get all data sources
type Dimensions ¶
type Dimensions struct {
// contains filtered or unexported fields
}
Dimensions used during experiment analysis
func (*Dimensions) Create ¶
func (s *Dimensions) Create(ctx context.Context, request operations.PostDimensionRequest, opts ...operations.Option) (*operations.PostDimensionResponse, error)
Create a single dimension
func (*Dimensions) DeleteDimension ¶
func (s *Dimensions) DeleteDimension(ctx context.Context, request operations.DeleteDimensionRequest, opts ...operations.Option) (*operations.DeleteDimensionResponse, error)
DeleteDimension - Deletes a single dimension
func (*Dimensions) GetDimension ¶
func (s *Dimensions) GetDimension(ctx context.Context, request operations.GetDimensionRequest, opts ...operations.Option) (*operations.GetDimensionResponse, error)
GetDimension - Get a single dimension
func (*Dimensions) ListDimensions ¶
func (s *Dimensions) ListDimensions(ctx context.Context, request *operations.ListDimensionsRequest, opts ...operations.Option) (*operations.ListDimensionsResponse, error)
ListDimensions - Get all dimensions
func (*Dimensions) UpdateDimension ¶
func (s *Dimensions) UpdateDimension(ctx context.Context, request operations.UpdateDimensionRequest, opts ...operations.Option) (*operations.UpdateDimensionResponse, error)
UpdateDimension - Update a single dimension
type Environments ¶
type Environments struct {
// contains filtered or unexported fields
}
Environments - GrowthBook comes with one environment by default (production), but you can add as many as you need. When used with feature flags, you can enable/disable feature flags on a per-environment basis.
func (*Environments) Create ¶
func (s *Environments) Create(ctx context.Context, request operations.PostEnvironmentRequest, opts ...operations.Option) (*operations.PostEnvironmentResponse, error)
Create a new environment
func (*Environments) DeleteEnvironment ¶
func (s *Environments) DeleteEnvironment(ctx context.Context, request operations.DeleteEnvironmentRequest, opts ...operations.Option) (*operations.DeleteEnvironmentResponse, error)
DeleteEnvironment - Deletes a single environment
func (*Environments) ListEnvironments ¶
func (s *Environments) ListEnvironments(ctx context.Context, opts ...operations.Option) (*operations.ListEnvironmentsResponse, error)
ListEnvironments - Get the organization's environments
func (*Environments) Update ¶
func (s *Environments) Update(ctx context.Context, request operations.PutEnvironmentRequest, opts ...operations.Option) (*operations.PutEnvironmentResponse, error)
Update an environment
type ExperimentTemplates ¶
type ExperimentTemplates struct {
// contains filtered or unexported fields
}
func (*ExperimentTemplates) BulkImportExperimentTemplates ¶
func (s *ExperimentTemplates) BulkImportExperimentTemplates(ctx context.Context, request operations.BulkImportExperimentTemplatesRequest, opts ...operations.Option) (*operations.BulkImportExperimentTemplatesResponse, error)
BulkImportExperimentTemplates - Bulk create or update experiment templates
func (*ExperimentTemplates) CreateExperimentTemplate ¶
func (s *ExperimentTemplates) CreateExperimentTemplate(ctx context.Context, request operations.CreateExperimentTemplateRequest, opts ...operations.Option) (*operations.CreateExperimentTemplateResponse, error)
CreateExperimentTemplate - Create a single experimentTemplate
func (*ExperimentTemplates) DeleteExperimentTemplate ¶
func (s *ExperimentTemplates) DeleteExperimentTemplate(ctx context.Context, request operations.DeleteExperimentTemplateRequest, opts ...operations.Option) (*operations.DeleteExperimentTemplateResponse, error)
DeleteExperimentTemplate - Delete a single experimentTemplate
func (*ExperimentTemplates) GetExperimentTemplate ¶
func (s *ExperimentTemplates) GetExperimentTemplate(ctx context.Context, request operations.GetExperimentTemplateRequest, opts ...operations.Option) (*operations.GetExperimentTemplateResponse, error)
GetExperimentTemplate - Get a single experimentTemplate
func (*ExperimentTemplates) ListExperimentTemplates ¶
func (s *ExperimentTemplates) ListExperimentTemplates(ctx context.Context, request *operations.ListExperimentTemplatesRequest, opts ...operations.Option) (*operations.ListExperimentTemplatesResponse, error)
ListExperimentTemplates - Get all experimentTemplates
func (*ExperimentTemplates) UpdateExperimentTemplate ¶
func (s *ExperimentTemplates) UpdateExperimentTemplate(ctx context.Context, request operations.UpdateExperimentTemplateRequest, opts ...operations.Option) (*operations.UpdateExperimentTemplateResponse, error)
UpdateExperimentTemplate - Update a single experimentTemplate
type Experiments ¶
type Experiments struct {
// contains filtered or unexported fields
}
Experiments (A/B Tests)
func (*Experiments) CompleteStartChecklist ¶
func (s *Experiments) CompleteStartChecklist(ctx context.Context, request operations.PostExperimentStartChecklistManualCompleteRequest, opts ...operations.Option) (*operations.PostExperimentStartChecklistManualCompleteResponse, error)
CompleteStartChecklist - Mark manual pre-launch checklist items complete
func (*Experiments) Create ¶
func (s *Experiments) Create(ctx context.Context, request operations.PostExperimentRequest, opts ...operations.Option) (*operations.PostExperimentResponse, error)
Create a single experiment
func (*Experiments) CreateSnapshot ¶
func (s *Experiments) CreateSnapshot(ctx context.Context, request operations.PostExperimentSnapshotRequest, opts ...operations.Option) (*operations.PostExperimentSnapshotResponse, error)
CreateSnapshot - Create Experiment Snapshot
func (*Experiments) DeleteVariationScreenshot ¶
func (s *Experiments) DeleteVariationScreenshot(ctx context.Context, request operations.DeleteVariationScreenshotRequest, opts ...operations.Option) (*operations.DeleteVariationScreenshotResponse, error)
DeleteVariationScreenshot - Delete a variation screenshot
func (*Experiments) GetExperiment ¶
func (s *Experiments) GetExperiment(ctx context.Context, request operations.GetExperimentRequest, opts ...operations.Option) (*operations.GetExperimentResponse, error)
GetExperiment - Get a single experiment
func (*Experiments) GetStartChecklist ¶
func (s *Experiments) GetStartChecklist(ctx context.Context, request operations.GetExperimentStartChecklistRequest, opts ...operations.Option) (*operations.GetExperimentStartChecklistResponse, error)
GetStartChecklist - Get an experiment pre-launch checklist status
func (*Experiments) ListExperiments ¶
func (s *Experiments) ListExperiments(ctx context.Context, request *operations.ListExperimentsRequest, opts ...operations.Option) (*operations.ListExperimentsResponse, error)
ListExperiments - Get all experiments
func (*Experiments) ListNames ¶
func (s *Experiments) ListNames(ctx context.Context, request *operations.GetExperimentNamesRequest, opts ...operations.Option) (*operations.GetExperimentNamesResponse, error)
ListNames - Get a list of experiments with names and ids
func (*Experiments) ListResults ¶
func (s *Experiments) ListResults(ctx context.Context, request *operations.ListExperimentResultsRequest, opts ...operations.Option) (*operations.ListExperimentResultsResponse, error)
ListResults - Get latest results for many experiments Returns the latest non-dimension snapshot for each experiment matching the filters. Use this to scan results across a portfolio in one call.
Pagination semantics: - `total` is the count of experiments matching the filters. - `count` is the length of the returned `experimentResults` array. - Experiments without a completed snapshot are omitted from `experimentResults`, so `count` may be less than the page slice and a page may legitimately return `count: 0` while `hasMore: true`. - `hasMore` and `nextOffset` advance over experiments matching the filters, not over returned results.
Use the per-experiment `GET /experiments/{id}/results` endpoint to inspect specific phases or dimensions.
func (*Experiments) ModifyTemporaryRollout ¶
func (s *Experiments) ModifyTemporaryRollout(ctx context.Context, request operations.PostExperimentModifyTemporaryRolloutRequest, opts ...operations.Option) (*operations.PostExperimentModifyTemporaryRolloutResponse, error)
ModifyTemporaryRollout - Modify temporary rollout status for a stopped experiment
func (*Experiments) Results ¶
func (s *Experiments) Results(ctx context.Context, request operations.GetExperimentResultsRequest, opts ...operations.Option) (*operations.GetExperimentResultsResponse, error)
Results - Get results for an experiment
func (*Experiments) Start ¶
func (s *Experiments) Start(ctx context.Context, request operations.PostExperimentStartRequest, opts ...operations.Option) (*operations.PostExperimentStartResponse, error)
Start - Start/Stage an experiment Starts an experiment or stages it for a future start if a `statusUpdateSchedule` is set on the experiment.
func (*Experiments) Stop ¶
func (s *Experiments) Stop(ctx context.Context, request operations.PostExperimentStopRequest, opts ...operations.Option) (*operations.PostExperimentStopResponse, error)
Stop an experiment
func (*Experiments) UpdateExperiment ¶
func (s *Experiments) UpdateExperiment(ctx context.Context, request operations.UpdateExperimentRequest, opts ...operations.Option) (*operations.UpdateExperimentResponse, error)
UpdateExperiment - Update a single experiment
func (*Experiments) UploadVariationScreenshot ¶
func (s *Experiments) UploadVariationScreenshot(ctx context.Context, request operations.PostVariationImageUploadRequest, opts ...operations.Option) (*operations.PostVariationImageUploadResponse, error)
UploadVariationScreenshot - Upload a variation screenshot
type FactMetrics ¶
type FactMetrics struct {
// contains filtered or unexported fields
}
FactMetrics - Fact Metrics are metrics built on top of Fact Table definitions
func (*FactMetrics) Create ¶
func (s *FactMetrics) Create(ctx context.Context, request operations.PostFactMetricRequest, opts ...operations.Option) (*operations.PostFactMetricResponse, error)
Create a single fact metric
func (*FactMetrics) CreateAnalysis ¶
func (s *FactMetrics) CreateAnalysis(ctx context.Context, request operations.PostFactMetricAnalysisRequest, opts ...operations.Option) (*operations.PostFactMetricAnalysisResponse, error)
CreateAnalysis - Create a fact metric analysis
func (*FactMetrics) DeleteFactMetric ¶
func (s *FactMetrics) DeleteFactMetric(ctx context.Context, request operations.DeleteFactMetricRequest, opts ...operations.Option) (*operations.DeleteFactMetricResponse, error)
DeleteFactMetric - Deletes a single fact metric
func (*FactMetrics) GetFactMetric ¶
func (s *FactMetrics) GetFactMetric(ctx context.Context, request operations.GetFactMetricRequest, opts ...operations.Option) (*operations.GetFactMetricResponse, error)
GetFactMetric - Get a single fact metric
func (*FactMetrics) ListFactMetrics ¶
func (s *FactMetrics) ListFactMetrics(ctx context.Context, request *operations.ListFactMetricsRequest, opts ...operations.Option) (*operations.ListFactMetricsResponse, error)
ListFactMetrics - Get all fact metrics
func (*FactMetrics) UpdateFactMetric ¶
func (s *FactMetrics) UpdateFactMetric(ctx context.Context, request operations.UpdateFactMetricRequest, opts ...operations.Option) (*operations.UpdateFactMetricResponse, error)
UpdateFactMetric - Update a single fact metric
type FactTables ¶
type FactTables struct {
// contains filtered or unexported fields
}
FactTables - Fact Tables describe the shape of your data warehouse tables
func (*FactTables) BulkImport ¶
func (s *FactTables) BulkImport(ctx context.Context, request operations.PostBulkImportFactsRequest, opts ...operations.Option) (*operations.PostBulkImportFactsResponse, error)
BulkImport - Bulk import fact tables, filters, and metrics
func (*FactTables) Create ¶
func (s *FactTables) Create(ctx context.Context, request operations.PostFactTableRequest, opts ...operations.Option) (*operations.PostFactTableResponse, error)
Create a single fact table
func (*FactTables) CreateFilter ¶
func (s *FactTables) CreateFilter(ctx context.Context, request operations.PostFactTableFilterRequest, opts ...operations.Option) (*operations.PostFactTableFilterResponse, error)
CreateFilter - Create a single fact table filter
func (*FactTables) DeleteFactTable ¶
func (s *FactTables) DeleteFactTable(ctx context.Context, request operations.DeleteFactTableRequest, opts ...operations.Option) (*operations.DeleteFactTableResponse, error)
DeleteFactTable - Deletes a single fact table
func (*FactTables) DeleteFilter ¶
func (s *FactTables) DeleteFilter(ctx context.Context, request operations.DeleteFactTableFilterRequest, opts ...operations.Option) (*operations.DeleteFactTableFilterResponse, error)
DeleteFilter - Deletes a single fact table filter
func (*FactTables) GetAggregatedFactTables ¶
func (s *FactTables) GetAggregatedFactTables(ctx context.Context, request operations.GetAggregatedFactTablesRequest, opts ...operations.Option) (*operations.GetAggregatedFactTablesResponse, error)
GetAggregatedFactTables - Get the materialization status of a fact table's shared daily aggregated tables
func (*FactTables) GetAggregatedTableRun ¶
func (s *FactTables) GetAggregatedTableRun(ctx context.Context, request operations.GetAggregatedTableRunRequest, opts ...operations.Option) (*operations.GetAggregatedTableRunResponse, error)
GetAggregatedTableRun - Get a single aggregated table run
func (*FactTables) GetFactTable ¶
func (s *FactTables) GetFactTable(ctx context.Context, request operations.GetFactTableRequest, opts ...operations.Option) (*operations.GetFactTableResponse, error)
GetFactTable - Get a single fact table
func (*FactTables) GetFilter ¶
func (s *FactTables) GetFilter(ctx context.Context, request operations.GetFactTableFilterRequest, opts ...operations.Option) (*operations.GetFactTableFilterResponse, error)
GetFilter - Get a single fact filter
func (*FactTables) ListAggregatedTableRuns ¶
func (s *FactTables) ListAggregatedTableRuns(ctx context.Context, request operations.ListAggregatedTableRunsRequest, opts ...operations.Option) (*operations.ListAggregatedTableRunsResponse, error)
ListAggregatedTableRuns - List aggregated table runs
func (*FactTables) ListFactTables ¶
func (s *FactTables) ListFactTables(ctx context.Context, request *operations.ListFactTablesRequest, opts ...operations.Option) (*operations.ListFactTablesResponse, error)
ListFactTables - Get all fact tables
func (*FactTables) ListFilters ¶
func (s *FactTables) ListFilters(ctx context.Context, request operations.ListFactTableFiltersRequest, opts ...operations.Option) (*operations.ListFactTableFiltersResponse, error)
ListFilters - Get all filters for a fact table
func (*FactTables) RefreshAggregatedFactTable ¶
func (s *FactTables) RefreshAggregatedFactTable(ctx context.Context, request operations.RefreshAggregatedFactTableRequest, opts ...operations.Option) (*operations.RefreshAggregatedFactTableResponse, error)
RefreshAggregatedFactTable - Force a refresh or full restate of a fact table's shared daily aggregated tables
func (*FactTables) UpdateFactTable ¶
func (s *FactTables) UpdateFactTable(ctx context.Context, request operations.UpdateFactTableRequest, opts ...operations.Option) (*operations.UpdateFactTableResponse, error)
UpdateFactTable - Update a single fact table
func (*FactTables) UpdateFilter ¶
func (s *FactTables) UpdateFilter(ctx context.Context, request operations.UpdateFactTableFilterRequest, opts ...operations.Option) (*operations.UpdateFactTableFilterResponse, error)
UpdateFilter - Update a single fact table filter
type FeatureRevisions ¶
type FeatureRevisions struct {
// contains filtered or unexported fields
}
FeatureRevisions - Draft revisions for feature flags, including rules, scheduling, and approval workflows.
Revision `rules` is a flat array with per-rule scope fields.
func (*FeatureRevisions) AddLogComment ¶
func (s *FeatureRevisions) AddLogComment(ctx context.Context, request operations.PutFeatureRevisionLogCommentV2Request, opts ...operations.Option) (*operations.PutFeatureRevisionLogCommentV2Response, error)
AddLogComment - Edit the comment text of an owned log entry Author of a `Comment`, `Approved`, or `Requested Changes` log entry can rewrite its comment text. The entry's action and other audit-trail metadata remain immutable; this only mutates `value.comment`. Other audit events (e.g. `Review Requested`, system events) are not editable.
func (*FeatureRevisions) AddRule ¶
func (s *FeatureRevisions) AddRule(ctx context.Context, request operations.PostFeatureRevisionRuleAddV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionRuleAddV2Response, error)
AddRule - Add a rule to a draft revision Appends a new rule to the revision's rule list. Supply `allEnvironments: true` on the rule to target all environments, or `environments: [...]` to scope to specific ones.
**Scheduling:** For `force` and `rollout` rules, attach a schedule via `rampSchedule` (multi-step ramp) or `schedule` (simple start/end window) — these create standalone ramp actions and set `pendingRamp: "create"` on the rule. For `experiment-ref` and `safe-rollout` rules, only `schedule` is supported and is stored as legacy schedule fields on the rule itself (`rampSchedule` is not available for these rule types).
func (*FeatureRevisions) Archive ¶
func (s *FeatureRevisions) Archive(ctx context.Context, request operations.PutFeatureRevisionArchiveV2Request, opts ...operations.Option) (*operations.PutFeatureRevisionArchiveV2Response, error)
Archive - Set archived state in a draft revision
func (*FeatureRevisions) Create ¶
func (s *FeatureRevisions) Create(ctx context.Context, request operations.PostFeatureRevisionV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionV2Response, error)
Create a draft revision Creates a new draft revision branched from the current live revision.
func (*FeatureRevisions) DeleteLogEntry ¶
func (s *FeatureRevisions) DeleteLogEntry(ctx context.Context, request operations.DeleteFeatureRevisionLogEntryV2Request, opts ...operations.Option) (*operations.DeleteFeatureRevisionLogEntryV2Response, error)
DeleteLogEntry - Delete an owned revision Comment entry Author of a `Comment` log entry can delete it. Verdict entries (Approved, Requested Changes, Review Requested) and other audit-trail events are immutable. To retract a verdict use `/undo-review`; to retract a review request use `/recall-review`.
func (*FeatureRevisions) DeleteRule ¶
func (s *FeatureRevisions) DeleteRule(ctx context.Context, request operations.DeleteFeatureRevisionRuleV2Request, opts ...operations.Option) (*operations.DeleteFeatureRevisionRuleV2Response, error)
DeleteRule - Delete a rule from a draft revision Removes the rule from the revision. Any pending ramp actions for this rule are also cleared.
func (*FeatureRevisions) DeleteRuleRampSchedule ¶
func (s *FeatureRevisions) DeleteRuleRampSchedule(ctx context.Context, request operations.DeleteFeatureRevisionRuleRampScheduleV2Request, opts ...operations.Option) (*operations.DeleteFeatureRevisionRuleRampScheduleV2Response, error)
DeleteRuleRampSchedule - Remove ramp schedule from a rule Clears any pending ramp action for this rule. If a live ramp schedule exists, queues a detach that removes it on publish — the rule will show `pendingRamp: "detach"`. If only a pending create exists, it is removed and `pendingRamp` is cleared.
func (*FeatureRevisions) Diff ¶
func (s *FeatureRevisions) Diff(ctx context.Context, request operations.GetFeatureRevisionDiffV2Request, opts ...operations.Option) (*operations.GetFeatureRevisionDiffV2Response, error)
Diff a revision against another revision Returns a schema-keyed JSON diff between this revision and a baseline. The same shapes the in-app review surface produces under `Copy as → Minimal JSON` / `Full JSON`: `minimal` lists only what changed (with id-keyed arrays bucketed into added/removed/modified items and reorder detection), while `full` returns the complete before/after content of the revision. Lifecycle fields (version, status, comment, date, createdBy, publishedBy) are excluded from the diff body and echoed via `from` / `to` instead. Defaults to diffing against the revision's own `baseVersion`; pass `?base=live` to diff against the current live revision, or `?base=<version>` for an arbitrary historical one.
func (*FeatureRevisions) Discard ¶
func (s *FeatureRevisions) Discard(ctx context.Context, request operations.PostFeatureRevisionDiscardV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionDiscardV2Response, error)
Discard a draft revision
func (*FeatureRevisions) Get ¶
func (s *FeatureRevisions) Get(ctx context.Context, request operations.GetFeatureRevisionV2Request, opts ...operations.Option) (*operations.GetFeatureRevisionV2Response, error)
Get a single feature revision Returns the revision at the specified version for this feature. Revision `rules` is a flat array with per-rule environment scope.
func (*FeatureRevisions) Latest ¶
func (s *FeatureRevisions) Latest(ctx context.Context, request operations.GetFeatureRevisionLatestV2Request, opts ...operations.Option) (*operations.GetFeatureRevisionLatestV2Response, error)
Latest - Get the most recent active draft revision Returns the most recently updated active draft revision for the feature. Returns 404 if no matching draft exists. Filter by status, author, or use `mine=true` to scope to the calling user's own drafts.
func (*FeatureRevisions) ListForFeature ¶
func (s *FeatureRevisions) ListForFeature(ctx context.Context, request operations.GetFeatureRevisionsV2Request, opts ...operations.Option) (*operations.GetFeatureRevisionsV2Response, error)
ListForFeature - List revisions for a feature Returns a paginated list of revisions for this feature, sorted newest-first. Revision `rules` is a flat array with per-rule scope.
func (*FeatureRevisions) ListRevisions ¶
func (s *FeatureRevisions) ListRevisions(ctx context.Context, request *operations.ListRevisionsV2Request, opts ...operations.Option) (*operations.ListRevisionsV2Response, error)
ListRevisions - List revisions across all features Returns a paginated list of feature revisions across all features in the organization. Use the `featureId` query parameter to filter to a single feature. Revision `rules` is a flat array with per-rule scope.
func (*FeatureRevisions) Log ¶
func (s *FeatureRevisions) Log(ctx context.Context, request operations.GetFeatureRevisionLogV2Request, opts ...operations.Option) (*operations.GetFeatureRevisionLogV2Response, error)
Log - List the activity log for a revision Returns every log entry for the revision — content edits (rules, default value, rebases), review lifecycle events (review requested, approved, changes requested, recalled, undone), comments, and other audit events — sorted oldest-first.
func (*FeatureRevisions) MergeStatus ¶
func (s *FeatureRevisions) MergeStatus(ctx context.Context, request operations.GetFeatureRevisionMergeStatusV2Request, opts ...operations.Option) (*operations.GetFeatureRevisionMergeStatusV2Response, error)
MergeStatus - Get merge status for a draft revision Runs the three-way merge between the draft and the current live version without applying it. Conflicts are granular: each conflicting field gets its own key, and rules conflict individually (`rules.<ruleId>`, plus `rules.order` for competing reorders). Pass the returned `liveVersion` as `expectedLiveVersion` when rebasing. Also reports `rebaseRequired` so callers can detect ahead of time whether the publish endpoint will block until the draft is rebased.
func (*FeatureRevisions) Publish ¶
func (s *FeatureRevisions) Publish(ctx context.Context, request operations.PostFeatureRevisionPublishV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionPublishV2Response, error)
Publish a draft revision Immediately publishes a draft revision, making it the live version of the feature. Any pending ramp actions (`pendingRamp` on rules) are executed atomically — ramp schedules are created or detached as queued.
func (*FeatureRevisions) Rebase ¶
func (s *FeatureRevisions) Rebase(ctx context.Context, request operations.PostFeatureRevisionRebaseV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionRebaseV2Response, error)
Rebase a draft revision onto the current live version Updates the draft's base revision to match the currently-live revision, applying the draft's changes on top. Supply `conflictResolutions` to resolve conflicting items individually — including per-rule (`rules.<ruleId>`) and rule-order (`rules.order`) conflicts. Supply `expectedLiveVersion` and/or `expectedDraftDateUpdated` (both returned by merge-status and rebase preview) to fail fast with `409` if either side changes between conflict review and submission. Unresolved conflicts also respond with `409`.
func (*FeatureRevisions) RebasePreview ¶
func (s *FeatureRevisions) RebasePreview(ctx context.Context, request operations.PostFeatureRevisionRebasePreviewV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionRebasePreviewV2Response, error)
RebasePreview - Preview a rebase without applying it Dry-run of the rebase: runs the same three-way merge with the supplied `conflictResolutions` and returns every conflict (resolved and unresolved) plus the merged result once all are resolved — without modifying the draft. Use it to iterate on resolutions before committing them via the rebase endpoint.
func (*FeatureRevisions) RecallReview ¶
func (s *FeatureRevisions) RecallReview(ctx context.Context, request operations.PostFeatureRevisionRecallReviewV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionRecallReviewV2Response, error)
RecallReview - Recall a review request (revert to draft) Retracts the review request, returning the revision from `pending-review`, `changes-requested`, or `approved` back to `draft`. Allowed for any user with draft-management permission on the feature (the same permission required to request review), not only the original requester. Existing review log entries are preserved as audit history but any in-flight reviewer verdicts (Approved / Requested Changes) submitted during this review cycle no longer count — submitting a fresh `request-review` starts a new cycle.
func (*FeatureRevisions) Reopen ¶
func (s *FeatureRevisions) Reopen(ctx context.Context, request operations.PostFeatureRevisionReopenV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionReopenV2Response, error)
Reopen a discarded revision as a draft Returns a `discarded` revision to `draft` status so it can be edited, reviewed, and published. Prior review state is not restored — the draft must go back through review if approvals are required.
func (*FeatureRevisions) ReorderRules ¶
func (s *FeatureRevisions) ReorderRules(ctx context.Context, request operations.PostFeatureRevisionRulesReorderV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionRulesReorderV2Response, error)
ReorderRules - Reorder rules in the revision Replaces the flat global rule order. `ruleIds` must contain **exactly** the set of all existing rule IDs in the revision — no additions, omissions, or duplicates.
func (*FeatureRevisions) RequestReview ¶
func (s *FeatureRevisions) RequestReview(ctx context.Context, request operations.PostFeatureRevisionRequestReviewV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionRequestReviewV2Response, error)
RequestReview - Request review for a draft revision Moves the draft into the `pending-review` state and notifies reviewers.
Set `autoPublishOnApproval` to `true` to publish the revision automatically the moment it is approved (GitHub auto-merge model). This requires the org to have auto-publish-on-approval enabled for the feature and the caller to have publish permission; the auto-publish then executes with the caller's authority.
Set `scheduledPublishAt` to a future ISO date-time to defer the auto-publish until that date (it still also requires approval when review is required). Use `scheduledPublishLockEdits` to freeze edits to this draft while the schedule is pending, and `scheduledPublishLockOthers` to block publishing other drafts of this feature in the meantime.
func (*FeatureRevisions) Revert ¶
func (s *FeatureRevisions) Revert(ctx context.Context, request operations.PostFeatureRevisionRevertV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionRevertV2Response, error)
Revert the feature to a prior revision
func (*FeatureRevisions) SchedulePublish ¶
func (s *FeatureRevisions) SchedulePublish(ctx context.Context, request operations.PostFeatureRevisionSchedulePublishV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionSchedulePublishV2Response, error)
SchedulePublish - Schedule (or cancel) a deferred publish for a draft revision Arms a deferred publish: the revision publishes automatically on/after `scheduledPublishAt` (and, when review is required, only once also approved). Send `scheduledPublishAt: null` to cancel the schedule.
Use `lockEdits` to freeze content edits to this draft while the schedule is pending (rebasing is still allowed), and `lockOthers` to block publishing other drafts of this feature until the schedule fires or is canceled. Requires publish permission; the publish executes with the caller's authority. An admin with bypass-approval permission can schedule even without approval — pass `bypassApproval: true` to mark it as an admin override, which locks the schedule to cancel-and-re-arm only.
func (*FeatureRevisions) SetDefaultValue ¶
func (s *FeatureRevisions) SetDefaultValue(ctx context.Context, request operations.PutFeatureRevisionDefaultValueV2Request, opts ...operations.Option) (*operations.PutFeatureRevisionDefaultValueV2Response, error)
SetDefaultValue - Set the default value in a draft revision
func (*FeatureRevisions) SetHoldout ¶
func (s *FeatureRevisions) SetHoldout(ctx context.Context, request operations.PutFeatureRevisionHoldoutV2Request, opts ...operations.Option) (*operations.PutFeatureRevisionHoldoutV2Response, error)
SetHoldout - Set holdout in a draft revision
func (*FeatureRevisions) SetMetadata ¶
func (s *FeatureRevisions) SetMetadata(ctx context.Context, request operations.PutFeatureRevisionMetadataV2Request, opts ...operations.Option) (*operations.PutFeatureRevisionMetadataV2Response, error)
SetMetadata - Update revision metadata
func (*FeatureRevisions) SetPrerequisites ¶
func (s *FeatureRevisions) SetPrerequisites(ctx context.Context, request operations.PutFeatureRevisionPrerequisitesV2Request, opts ...operations.Option) (*operations.PutFeatureRevisionPrerequisitesV2Response, error)
SetPrerequisites - Set feature-level prerequisites in a draft revision Sets the feature-level prerequisites for this revision. Each prerequisite must be a boolean feature flag; the gate is always 'prerequisite flag is on'. The condition is applied automatically — only the flag ID is required.
func (*FeatureRevisions) SetRuleRampSchedule ¶
func (s *FeatureRevisions) SetRuleRampSchedule(ctx context.Context, request operations.PutFeatureRevisionRuleRampScheduleV2Request, opts ...operations.Option) (*operations.PutFeatureRevisionRuleRampScheduleV2Response, error)
SetRuleRampSchedule - Set ramp schedule for a rule Queues a revision-controlled ramp action for this rule. If the rule already has a live ramp schedule, this stores an `update` action applied on publish; otherwise it stores a `create` action. No live schedule config changes are applied immediately by this endpoint.
You can build the ramp from a template (`templateId`) and set the rollback anchor (`startState`) in the same request — e.g. pull in a template and pass `startState: { "coverage": 0 }` so a rollback returns the rule to 0%.
func (*FeatureRevisions) SubmitReview ¶
func (s *FeatureRevisions) SubmitReview(ctx context.Context, request operations.PostFeatureRevisionSubmitReviewV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionSubmitReviewV2Response, error)
SubmitReview - Submit a review on a draft revision Submits an `approve`, `request-changes`, or `comment` review on the draft. Contributors cannot approve their own drafts when `blockSelfApproval` is enabled.
When `action` is `approve` and the revision has `autoPublishOnApproval` enabled, the revision is automatically published after approval. The response includes `autoPublished: true` when this happens. Pass `skipAutoPublish: true` to approve without triggering auto-publish.
func (*FeatureRevisions) Toggle ¶
func (s *FeatureRevisions) Toggle(ctx context.Context, request operations.PostFeatureRevisionToggleV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionToggleV2Response, error)
Toggle an environment on/off in a draft revision
func (*FeatureRevisions) UndoReview ¶
func (s *FeatureRevisions) UndoReview(ctx context.Context, request operations.PostFeatureRevisionUndoReviewV2Request, opts ...operations.Option) (*operations.PostFeatureRevisionUndoReviewV2Response, error)
UndoReview - Undo a reviewer's own review verdict Reviewer retracts their own verdict. The revision status rewinds to the state implied by the remaining active verdicts from other reviewers: any outstanding `Requested Changes` → `changes-requested`, else any outstanding `Approved` → `approved`, else `pending-review`. Existing review comments are preserved. If the retraction resolves the revision to `approved` and auto-publish-on-approval is armed, the revision is published.
func (*FeatureRevisions) UpdateRule ¶
func (s *FeatureRevisions) UpdateRule(ctx context.Context, request operations.PutFeatureRevisionRuleV2Request, opts ...operations.Option) (*operations.PutFeatureRevisionRuleV2Response, error)
UpdateRule - Update a rule in a draft revision Patches fields on an existing rule (identified by `ruleId`). The rule `type` cannot be changed. Scope can be updated via `allEnvironments` / `environments` patch fields.
**Scheduling:** For `force` and `rollout` rules, update the schedule via `rampSchedule` (multi-step ramp) or `schedule` (simple start/end window) — these manage standalone ramp actions and set `pendingRamp: "create"` on the rule. For `experiment-ref` and `safe-rollout` rules, only `schedule` is supported and updates legacy schedule fields on the rule itself (`rampSchedule` is not available for these rule types).
type FeatureRevisionsV1 ¶
type FeatureRevisionsV1 struct {
// contains filtered or unexported fields
}
FeatureRevisionsV1 - Draft revisions for feature flags, including rules, scheduling, and approval workflows.
**These are v1 endpoints.** New integrations should use the v2 Feature Revisions endpoints.
func (*FeatureRevisionsV1) Create
deprecated
func (s *FeatureRevisionsV1) Create(ctx context.Context, request operations.PostFeatureRevisionRequest, opts ...operations.Option) (*operations.PostFeatureRevisionResponse, error)
Create a draft revision **Deprecated.** Use [POST /v2/features/:id/revisions](#operation/postFeatureRevisionV2) instead.
Creates a new draft revision branched from the current live revision. A feature can have multiple concurrent drafts; use this to start an isolated line of edits.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) DeleteFeatureRevisionRule
deprecated
func (s *FeatureRevisionsV1) DeleteFeatureRevisionRule(ctx context.Context, request operations.DeleteFeatureRevisionRuleRequest, opts ...operations.Option) (*operations.DeleteFeatureRevisionRuleResponse, error)
DeleteFeatureRevisionRule - Delete a rule from a draft revision **Deprecated.** Use [DELETE /v2/features/:id/revisions/:version/rules/:ruleId](#operation/deleteFeatureRevisionRuleV2) instead, which removes the rule from the flat array without an `environment` parameter.
Removes the rule from the specified environment. Any pending ramp actions on the draft for this rule are also cleared.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) DeleteFeatureRevisionRuleRampSchedule
deprecated
func (s *FeatureRevisionsV1) DeleteFeatureRevisionRuleRampSchedule(ctx context.Context, request operations.DeleteFeatureRevisionRuleRampScheduleRequest, opts ...operations.Option) (*operations.DeleteFeatureRevisionRuleRampScheduleResponse, error)
DeleteFeatureRevisionRuleRampSchedule - Remove ramp schedule from a rule **Deprecated.** Use [DELETE /v2/features/:id/revisions/:version/rules/:ruleId/ramp-schedule](#operation/deleteFeatureRevisionRuleRampScheduleV2) instead.
Removes a pending ramp schedule attached by the draft. If the rule currently has a live ramp schedule, a detach action is queued and applied at publish time.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) GetFeatureRevision
deprecated
func (s *FeatureRevisionsV1) GetFeatureRevision(ctx context.Context, request operations.GetFeatureRevisionRequest, opts ...operations.Option) (*operations.GetFeatureRevisionResponse, error)
GetFeatureRevision - Get a single feature revision **Deprecated.** Use [GET /v2/features/:id/revisions/:version](#operation/getFeatureRevisionV2) instead.
Returns the revision at the specified version for this feature. Use `GET /features/{id}/revisions/latest` for the most recent active draft.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) GetFeatureRevisionLatest
deprecated
func (s *FeatureRevisionsV1) GetFeatureRevisionLatest(ctx context.Context, request operations.GetFeatureRevisionLatestRequest, opts ...operations.Option) (*operations.GetFeatureRevisionLatestResponse, error)
GetFeatureRevisionLatest - Get the most recent active draft revision **Deprecated.** Use [GET /v2/features/:id/revisions/latest](#operation/getFeatureRevisionLatestV2) instead.
Returns the most recently updated draft revision for the feature. Returns 404 if there is no active draft. Pass `mine=true` to return the most recent draft authored by or contributed to by the calling user (requires a user-scoped API key).
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) GetFeatureRevisionMergeStatus
deprecated
func (s *FeatureRevisionsV1) GetFeatureRevisionMergeStatus(ctx context.Context, request operations.GetFeatureRevisionMergeStatusRequest, opts ...operations.Option) (*operations.GetFeatureRevisionMergeStatusResponse, error)
GetFeatureRevisionMergeStatus - Get merge status for a draft revision **Deprecated.** Use [GET /v2/features/:id/revisions/:version/merge-status](#operation/getFeatureRevisionMergeStatusV2) instead.
Runs a dry-run merge of the draft against the current live revision and returns any conflicts. Use this before publishing to preview changes and detect conflicting edits.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) ListForFeature
deprecated
func (s *FeatureRevisionsV1) ListForFeature(ctx context.Context, request operations.GetFeatureRevisionsRequest, opts ...operations.Option) (*operations.GetFeatureRevisionsResponse, error)
ListForFeature - List revisions for a feature **Deprecated.** Use [GET /v2/features/:id/revisions](#operation/getFeatureRevisionsV2) instead.
Returns a paginated list of revisions for this feature, sorted newest-first. Optionally filtered by status and/or author.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) ListRevisions
deprecated
func (s *FeatureRevisionsV1) ListRevisions(ctx context.Context, request *operations.ListRevisionsRequest, opts ...operations.Option) (*operations.ListRevisionsResponse, error)
ListRevisions - List feature revisions **Deprecated.** Use [GET /v2/feature-revisions](#operation/listRevisionsV2) instead.
Returns a paginated list of feature revisions across all features in the organization. Optionally filtered by feature, status, author, and/or the calling user's involvement. Results are sorted newest-first.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PostFeatureRevisionDiscard
deprecated
func (s *FeatureRevisionsV1) PostFeatureRevisionDiscard(ctx context.Context, request operations.PostFeatureRevisionDiscardRequest, opts ...operations.Option) (*operations.PostFeatureRevisionDiscardResponse, error)
PostFeatureRevisionDiscard - Discard a draft revision **Deprecated.** Use [POST /v2/features/:id/revisions/:version/discard](#operation/postFeatureRevisionDiscardV2) instead.
Permanently discards a draft revision. Only drafts (never published revisions) can be discarded. Any pending ramp actions staged on the draft are dropped.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PostFeatureRevisionPublish
deprecated
func (s *FeatureRevisionsV1) PostFeatureRevisionPublish(ctx context.Context, request operations.PostFeatureRevisionPublishRequest, opts ...operations.Option) (*operations.PostFeatureRevisionPublishResponse, error)
PostFeatureRevisionPublish - Publish a draft revision **Deprecated.** Use [POST /v2/features/:id/revisions/:version/publish](#operation/postFeatureRevisionPublishV2) instead.
Immediately publishes a draft revision, making it the live version of the feature. Blocked if the org requires approvals and `bypassApprovalChecks` is off.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PostFeatureRevisionRebase
deprecated
func (s *FeatureRevisionsV1) PostFeatureRevisionRebase(ctx context.Context, request operations.PostFeatureRevisionRebaseRequest, opts ...operations.Option) (*operations.PostFeatureRevisionRebaseResponse, error)
PostFeatureRevisionRebase - Rebase a draft revision onto the current live version **Deprecated.** Use [POST /v2/features/:id/revisions/:version/rebase](#operation/postFeatureRevisionRebaseV2) instead.
Updates the draft's base revision to match the currently-live revision, applying the draft's changes on top. Supply `conflictResolutions` to resolve any conflicting fields.
**Conflict key format changed for v1 clients.** The per-rule `envName.ruleId` keys used by older clients are no longer recognized. Valid keys: `defaultValue`, `prerequisites`, `archived`, `holdout`, `environmentsEnabled.<env>`, `metadata.<field>`, `rules.<ruleId>`, `rules.order`, and the blanket `rules` (applies one strategy to all rule-level conflicts). Unrecognized keys are ignored; unresolved conflicts respond with `409`.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PostFeatureRevisionRequestReview
deprecated
func (s *FeatureRevisionsV1) PostFeatureRevisionRequestReview(ctx context.Context, request operations.PostFeatureRevisionRequestReviewRequest, opts ...operations.Option) (*operations.PostFeatureRevisionRequestReviewResponse, error)
PostFeatureRevisionRequestReview - Request review for a draft revision **Deprecated.** Use [POST /v2/features/:id/revisions/:version/request-review](#operation/postFeatureRevisionRequestReviewV2) instead.
Moves the draft into the `pending-review` state and notifies reviewers.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PostFeatureRevisionRevert
deprecated
func (s *FeatureRevisionsV1) PostFeatureRevisionRevert(ctx context.Context, request operations.PostFeatureRevisionRevertRequest, opts ...operations.Option) (*operations.PostFeatureRevisionRevertResponse, error)
PostFeatureRevisionRevert - Revert the feature to a prior revision **Deprecated.** Use [POST /v2/features/:id/revisions/:version/revert](#operation/postFeatureRevisionRevertV2) instead.
Creates a new draft (or immediately publishes) whose content matches the specified historical revision.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PostFeatureRevisionRuleAdd
deprecated
func (s *FeatureRevisionsV1) PostFeatureRevisionRuleAdd(ctx context.Context, request operations.PostFeatureRevisionRuleAddRequest, opts ...operations.Option) (*operations.PostFeatureRevisionRuleAddResponse, error)
PostFeatureRevisionRuleAdd - Add a rule to a draft revision **Deprecated.** Use [POST /v2/features/:id/revisions/:version/rules](#operation/postFeatureRevisionRuleAddV2) instead, which accepts rules with unified `allEnvironments`/`environments` scope fields instead of a per-environment `environment` parameter.
Appends a new rule to the end of the rule list for the given environment. A `rule.type` of `force`, `rollout`, `experiment-ref`, or `safe-rollout` determines the accepted shape. Use `rampSchedule` for ramp configuration or `schedule` for a simple start/end window; if both are provided, `rampSchedule` wins.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PostFeatureRevisionRulesReorder
deprecated
func (s *FeatureRevisionsV1) PostFeatureRevisionRulesReorder(ctx context.Context, request operations.PostFeatureRevisionRulesReorderRequest, opts ...operations.Option) (*operations.PostFeatureRevisionRulesReorderResponse, error)
PostFeatureRevisionRulesReorder - Reorder rules in an environment **Deprecated.** Use [POST /v2/features/:id/revisions/:version/rules/reorder](#operation/postFeatureRevisionRulesReorderV2) instead, which reorders the global flat rule array without an `environment` parameter.
Replaces the rule order for the environment. `ruleIds` must contain **exactly** the set of existing rule IDs in that environment — no additions, omissions, or duplicates.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PostFeatureRevisionSubmitReview
deprecated
func (s *FeatureRevisionsV1) PostFeatureRevisionSubmitReview(ctx context.Context, request operations.PostFeatureRevisionSubmitReviewRequest, opts ...operations.Option) (*operations.PostFeatureRevisionSubmitReviewResponse, error)
PostFeatureRevisionSubmitReview - Submit a review on a draft revision **Deprecated.** Use [POST /v2/features/:id/revisions/:version/submit-review](#operation/postFeatureRevisionSubmitReviewV2) instead.
Submits an `approve`, `request-changes`, or `comment` review on the draft. Contributors cannot approve their own drafts, but may submit comments or request changes.
When `action` is `approve` and the revision has `autoPublishOnApproval` enabled, the revision is automatically published after approval. Pass `skipAutoPublish: true` to approve without triggering auto-publish.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PostFeatureRevisionToggle
deprecated
func (s *FeatureRevisionsV1) PostFeatureRevisionToggle(ctx context.Context, request operations.PostFeatureRevisionToggleRequest, opts ...operations.Option) (*operations.PostFeatureRevisionToggleResponse, error)
PostFeatureRevisionToggle - Toggle an environment on/off in a draft revision **Deprecated.** Use [POST /v2/features/:id/revisions/:version/toggle](#operation/postFeatureRevisionToggleV2) instead.
Sets whether the feature is enabled in the given environment as part of the draft. Takes effect on publish.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PutFeatureRevisionArchive
deprecated
func (s *FeatureRevisionsV1) PutFeatureRevisionArchive(ctx context.Context, request operations.PutFeatureRevisionArchiveRequest, opts ...operations.Option) (*operations.PutFeatureRevisionArchiveResponse, error)
PutFeatureRevisionArchive - Set archived state in a draft revision **Deprecated.** Use [PUT /v2/features/:id/revisions/:version/archive](#operation/putFeatureRevisionArchiveV2) instead.
Sets whether the feature is archived. Archived features are excluded from SDK payloads on publish.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PutFeatureRevisionDefaultValue
deprecated
func (s *FeatureRevisionsV1) PutFeatureRevisionDefaultValue(ctx context.Context, request operations.PutFeatureRevisionDefaultValueRequest, opts ...operations.Option) (*operations.PutFeatureRevisionDefaultValueResponse, error)
PutFeatureRevisionDefaultValue - Set the default value in a draft revision **Deprecated.** Use [PUT /v2/features/:id/revisions/:version/default-value](#operation/putFeatureRevisionDefaultValueV2) instead.
Replaces the feature's default value for this revision. The value must be a string representation matching the feature's value type (e.g. `"true"` for booleans, `42` for numbers, a JSON string for JSON features).
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PutFeatureRevisionHoldout
deprecated
func (s *FeatureRevisionsV1) PutFeatureRevisionHoldout(ctx context.Context, request operations.PutFeatureRevisionHoldoutRequest, opts ...operations.Option) (*operations.PutFeatureRevisionHoldoutResponse, error)
PutFeatureRevisionHoldout - Set holdout in a draft revision **Deprecated.** Use [PUT /v2/features/:id/revisions/:version/holdout](#operation/putFeatureRevisionHoldoutV2) instead.
Sets (or clears, via `holdout: null`) the holdout experiment bound to the feature. Holdout linkage side-effects (updating the holdout's linked feature list) are applied on publish.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PutFeatureRevisionMetadata
deprecated
func (s *FeatureRevisionsV1) PutFeatureRevisionMetadata(ctx context.Context, request operations.PutFeatureRevisionMetadataRequest, opts ...operations.Option) (*operations.PutFeatureRevisionMetadataResponse, error)
PutFeatureRevisionMetadata - Update revision metadata (comment, title, feature metadata) **Deprecated.** Use [PUT /v2/features/:id/revisions/:version/metadata](#operation/putFeatureRevisionMetadataV2) instead.
Updates draft-level metadata (`comment`, `title`) and/or feature-level metadata (owner, project, tags, customFields, jsonSchema, etc.). Merge semantics: omitted fields are left unchanged; any provided field replaces the current value (pass an empty string/array/object to clear). Feature metadata changes are staged on the revision and applied to the feature on publish. Changing `project` requires publish permission on both the old and new project.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PutFeatureRevisionPrerequisites
deprecated
func (s *FeatureRevisionsV1) PutFeatureRevisionPrerequisites(ctx context.Context, request operations.PutFeatureRevisionPrerequisitesRequest, opts ...operations.Option) (*operations.PutFeatureRevisionPrerequisitesResponse, error)
PutFeatureRevisionPrerequisites - Set feature-level prerequisites in a draft revision **Deprecated.** Use [PUT /v2/features/:id/revisions/:version/prerequisites](#operation/putFeatureRevisionPrerequisitesV2) instead.
Replaces the feature's prerequisite list for this revision. Each prerequisite condition is evaluated against `{ value: <prereq-flag-value> }` at SDK eval time — use `value` as the condition key.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PutFeatureRevisionRule
deprecated
func (s *FeatureRevisionsV1) PutFeatureRevisionRule(ctx context.Context, request operations.PutFeatureRevisionRuleRequest, opts ...operations.Option) (*operations.PutFeatureRevisionRuleResponse, error)
PutFeatureRevisionRule - Update a rule in a draft revision **Deprecated.** Use [PUT /v2/features/:id/revisions/:version/rules/:ruleId](#operation/putFeatureRevisionRuleV2) instead, which locates rules by `ruleId` in the flat array without an `environment` parameter.
Patches fields on an existing rule. The rule `type` cannot be changed — to convert types, delete and re-add. Fields that don't apply to the current rule type are rejected.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeatureRevisionsV1) PutFeatureRevisionRuleRampSchedule
deprecated
func (s *FeatureRevisionsV1) PutFeatureRevisionRuleRampSchedule(ctx context.Context, request operations.PutFeatureRevisionRuleRampScheduleRequest, opts ...operations.Option) (*operations.PutFeatureRevisionRuleRampScheduleResponse, error)
PutFeatureRevisionRuleRampSchedule - Set ramp schedule for a rule **Deprecated.** Use [PUT /v2/features/:id/revisions/:version/rules/:ruleId/ramp-schedule](#operation/putFeatureRevisionRuleRampScheduleV2) instead.
Queues a revision-controlled ramp action for this rule. If the rule already has a live ramp schedule, this stores an `update` action applied on publish; otherwise it stores a `create` action. No live schedule config changes are applied immediately by this endpoint.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
type Features ¶
type Features struct {
// contains filtered or unexported fields
}
Features - Control your feature flags programatically.
Rules are returned as a unified top-level array; each rule carries `allEnvironments` / `environments` scope fields instead of being bucketed by environment.
func (*Features) Create ¶
func (s *Features) Create(ctx context.Context, request operations.PostFeatureV2Request, opts ...operations.Option) (*operations.PostFeatureV2Response, error)
Create a single feature Creates a new feature. Rules are supplied as a top-level `rules` array; each rule includes `allEnvironments` / `environments` scope fields.
### Config-backed features (Config mode)
A JSON feature can be backed by a shared **config** — the config supplies the base JSON value and schema, and the feature's *rule* values become override *patches* merged on top (nested objects deep-merge; arrays and scalars replace). The default value is exactly a config with no overrides (see below). Config backing is set exclusively through dedicated fields — never a raw `$extends: ["@config:…"]` inside a value string (that is rejected). `@const:` references inside values still work.
- **Top-level (`baseConfig`):** set `valueType: "json"` and `baseConfig: "<configKey>"` to put the flag in Config mode. The config must be live. This is the family root and the base the default value patches. - **Default value:** unlike rules, the default is exactly a config with no overrides of its own — send `defaultValue: "{}"` to use `baseConfig`. To resolve the default to a *descendant* of `baseConfig` instead, set `defaultValueConfig` to that descendant's key (it must be within `baseConfig`'s family); omit/null to use `baseConfig` directly. - **Rules & experiment variations:** each carries its own `config` field naming the family config that value patches (omit/null to patch the base). `value` is the override patch.
Example:
```json {
"id": "checkout-config",
"valueType": "json",
"baseConfig": "purchase-flow",
"defaultValue": "{}",
"rules": [
{ "type": "force", "config": "purchase-flow-vip", "value": "{\"maxItems\": 20}", "allEnvironments": true }
]
}
```
func (*Features) Delete ¶
func (s *Features) Delete(ctx context.Context, request operations.DeleteFeatureV2Request, opts ...operations.Option) (*operations.DeleteFeatureV2Response, error)
Delete - Deletes a single feature Permanently deletes a feature and all of its revisions.
Archived features can be deleted freely. Deleting a live (non-archived) feature returns 403 unless the org setting "REST API always bypasses approval requirements" is enabled.
func (*Features) Get ¶
func (s *Features) Get(ctx context.Context, request operations.GetFeatureV2Request, opts ...operations.Option) (*operations.GetFeatureV2Response, error)
Get a single feature
func (*Features) GetFeatureKeys ¶
func (s *Features) GetFeatureKeys(ctx context.Context, request *operations.GetFeatureKeysV2Request, opts ...operations.Option) (*operations.GetFeatureKeysV2Response, error)
GetFeatureKeys - Get list of feature keys
func (*Features) GetFeatureStale ¶
func (s *Features) GetFeatureStale(ctx context.Context, request operations.GetFeatureStaleV2Request, opts ...operations.Option) (*operations.GetFeatureStaleV2Response, error)
GetFeatureStale - Get stale status for one or more features
func (*Features) List ¶
func (s *Features) List(ctx context.Context, request *operations.ListFeaturesV2Request, opts ...operations.Option) (*operations.ListFeaturesV2Response, error)
List - Get all features Returns features with pagination. Rules are returned as a unified top-level array with per-rule environment scope.
func (*Features) Revert ¶
func (s *Features) Revert(ctx context.Context, request operations.RevertFeatureV2Request, opts ...operations.Option) (*operations.RevertFeatureV2Response, error)
Revert a feature to a specific revision Creates a new revision whose rules and values match a previously-published revision, then immediately publishes it, leaving a clear audit trail of the revert in the revision history.
Returns 403 if the API key lacks permission, or if approval rules are enabled for an affected environment and neither the "REST API always bypasses approval requirements" nor the "Allow reverts without approval" org setting is enabled.
Returns 422 with a list of `warnings` if the restored values no longer validate against the feature's current value type or JSON schema (e.g. reverting to a config the current schema can no longer read). Re-submit with `?ignoreWarnings=true` to revert anyway.
func (*Features) Toggle ¶
func (s *Features) Toggle(ctx context.Context, request operations.ToggleFeatureV2Request, opts ...operations.Option) (*operations.ToggleFeatureV2Response, error)
Toggle a feature in one or more environments Enables or disables a feature in one or more environments simultaneously. Accepts a map of environment name → boolean.
func (*Features) Update ¶
func (s *Features) Update(ctx context.Context, request operations.UpdateFeatureV2Request, opts ...operations.Option) (*operations.UpdateFeatureV2Response, error)
Update - Partially update a feature Updates any combination of a feature's metadata, default value, environment state, and rules. Other top-level fields are patch-merged: omit a field to leave it unchanged. The `rules` field, when supplied, replaces the entire `rules` array atomically in a single revision (v1 PUT applied per-environment patches; v2 swaps the full flat array). To preserve existing rules during a partial edit, GET the feature first, mutate the returned `rules` array, and PUT the full array back. Safe-rollout rules round-trip via their `safeRolloutId`; use `POST /v2/features/:id/revisions/:version/rules` to create new ones. Returns 403 if approval rules are enabled for an affected environment and the bypass setting is off.
type FeaturesV1 ¶
type FeaturesV1 struct {
// contains filtered or unexported fields
}
FeaturesV1 - Control your feature flags programatically.
**These are v1 endpoints.** New integrations should use the v2 Feature Flags endpoints, which expose a unified per-rule environment scope instead of per-environment rule arrays.
func (*FeaturesV1) Create
deprecated
func (s *FeaturesV1) Create(ctx context.Context, request operations.PostFeatureRequest, opts ...operations.Option) (*operations.PostFeatureResponse, error)
Create a single feature **Deprecated.** Use [POST /v2/features](#operation/postFeatureV2) instead.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeaturesV1) Delete
deprecated
func (s *FeaturesV1) Delete(ctx context.Context, request operations.DeleteFeatureRequest, opts ...operations.Option) (*operations.DeleteFeatureResponse, error)
Delete - Deletes a single feature **Deprecated.** Use [DELETE /v2/features/:id](#operation/deleteFeatureV2) instead.
Permanently deletes a feature and all of its revisions.
Archived features can be deleted freely. Deleting a live (non-archived) feature returns 403 unless the org setting "REST API always bypasses approval requirements" is enabled, or the API key lacks delete permission.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeaturesV1) Get
deprecated
func (s *FeaturesV1) Get(ctx context.Context, request operations.GetFeatureRequest, opts ...operations.Option) (*operations.GetFeatureResponse, error)
Get a single feature **Deprecated.** Use [GET /v2/features/:id](#operation/getFeatureV2) instead.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeaturesV1) GetFeatureKeys
deprecated
func (s *FeaturesV1) GetFeatureKeys(ctx context.Context, request *operations.GetFeatureKeysRequest, opts ...operations.Option) (*operations.GetFeatureKeysResponse, error)
GetFeatureKeys - Get list of feature keys **Deprecated.** Use [GET /v2/feature-keys](#operation/getFeatureKeysV2) instead.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeaturesV1) GetFeatureStale
deprecated
func (s *FeaturesV1) GetFeatureStale(ctx context.Context, request operations.GetFeatureStaleRequest, opts ...operations.Option) (*operations.GetFeatureStaleResponse, error)
GetFeatureStale - Get stale status for one or more features **Deprecated.** Use [GET /v2/stale-features](#operation/getFeatureStaleV2) instead.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeaturesV1) List
deprecated
func (s *FeaturesV1) List(ctx context.Context, request *operations.ListFeaturesRequest, opts ...operations.Option) (*operations.ListFeaturesResponse, error)
List - Get all features **Deprecated.** Use [GET /v2/features](#operation/listFeaturesV2) instead.
Returns features with pagination. The skipPagination query parameter is honored only when API_ALLOW_SKIP_PAGINATION is set (self-hosted deployments).
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeaturesV1) Revert
deprecated
func (s *FeaturesV1) Revert(ctx context.Context, request operations.RevertFeatureRequest, opts ...operations.Option) (*operations.RevertFeatureResponse, error)
Revert a feature to a specific revision **Deprecated.** Use [POST /v2/features/:id/revert](#operation/revertFeatureV2) instead.
Creates a new revision whose rules and values match a previously-published revision, then immediately publishes it. This leaves a clear audit trail of the revert action in the revision history.
Returns 403 if the API key lacks permission, or if approval rules are enabled for an affected environment and neither the "REST API always bypasses approval requirements" nor the "Allow reverts without approval" org setting is enabled.
Returns 422 with a list of `warnings` if the restored values no longer validate against the feature's current value type or JSON schema. Re-submit with `?ignoreWarnings=true` to revert anyway.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeaturesV1) Toggle
deprecated
func (s *FeaturesV1) Toggle(ctx context.Context, request operations.ToggleFeatureRequest, opts ...operations.Option) (*operations.ToggleFeatureResponse, error)
Toggle a feature in one or more environments **Deprecated.** Use [POST /v2/features/:id/toggle](#operation/toggleFeatureV2) instead.
Enables or disables a feature in one or more environments simultaneously. Accepts a map of environment name → boolean and immediately publishes the change.
Returns 403 if the API key lacks permission or if approval rules are enabled for an affected environment and the org setting "REST API always bypasses approval requirements" is off.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (*FeaturesV1) Update
deprecated
func (s *FeaturesV1) Update(ctx context.Context, request operations.UpdateFeatureRequest, opts ...operations.Option) (*operations.UpdateFeatureResponse, error)
Update - Partially update a feature **Deprecated.** Use [POST /v2/features/:id](#operation/updateFeatureV2) instead.
Updates any combination of a feature's metadata (description, owner, tags, project), default value, environment settings (rules, kill switches, enabled state), prerequisites, holdout assignment, or JSON schema validation. All provided fields are merged into the existing feature and the result is immediately published as a new revision.
Returns 403 if the API key lacks permission or if approval rules are enabled for an affected environment and the org setting "REST API always bypasses approval requirements" is off.
Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
type Growthbook ¶
type Growthbook struct {
SDKVersion string
// Control your feature flags programatically.
//
// **These are v1 endpoints.** New integrations should use the v2 Feature Flags endpoints, which expose a unified per-rule environment scope instead of per-environment rule arrays.
FeaturesV1 *FeaturesV1
// Draft revisions for feature flags, including rules, scheduling, and approval workflows.
//
// **These are v1 endpoints.** New integrations should use the v2 Feature Revisions endpoints.
FeatureRevisionsV1 *FeatureRevisionsV1
// Control your feature flags programatically.
//
// Rules are returned as a unified top-level array; each rule carries `allEnvironments` / `environments` scope fields instead of being bucketed by environment.
Features *Features
// Draft revisions for feature flags, including rules, scheduling, and approval workflows.
//
// Revision `rules` is a flat array with per-rule scope fields.
FeatureRevisions *FeatureRevisions
// Archetypes allow you to simulate the result of targeting rules on pre-set user attributes
Archetypes *Archetypes
// Experiments (A/B Tests)
Experiments *Experiments
// Experiment Snapshots (the individual updates of an experiment)
Snapshots *Snapshots
// Groups of visual changes made by the visual editor to a single page
VisualChangesets *VisualChangesets
ContextualBandits *ContextualBandits
// Metrics used as goals and guardrails for experiments
Metrics *Metrics
UsageMetrics *UsageMetrics
// Segments used during experiment analysis
Segments *Segments
// Dimensions used during experiment analysis
Dimensions *Dimensions
// Projects are used to organize your feature flags and experiments
Projects *Projects
// GrowthBook comes with one environment by default (production), but you can add as many as you need. When used with feature flags, you can enable/disable feature flags on a per-environment basis.
Environments *Environments
// Used when targeting feature flags and experiments.
Attributes *Attributes
// Client keys and settings for connecting SDKs to a GrowthBook instance
SDKConnections *SDKConnections
// How GrowthBook connects and queries your data, including cached database schema metadata (information schemas) for tables and columns.
DataSources *DataSources
// Defined sets of attribute values which can be used with feature rules for targeting features at particular users.
SavedGroups *SavedGroups
// Draft revisions for saved groups, including pending changes, approvals, and lifecycle (publish, discard, revert).
//
// Most callers can interact with these endpoints via shorthand actions (`/items/add`, `/items/remove`, single-field PUTs) instead of authoring JSON Patch ops directly. Pass `version: "new"` on edit endpoints to auto-create a draft.
SavedGroupRevisions *SavedGroupRevisions
// Reusable named values referenced from feature flag values as `@const:key` and resolved into the SDK payload at build time. String constants are interpolated via `{{ @const:key }}`; JSON (object) constants are composed via an `$extends` array.
Constants *Constants
// Draft revisions for constants, including pending changes, approvals, and lifecycle (publish, discard, revert). Pass `version: "new"` on edit endpoints to auto-create a draft.
ConstantRevisions *ConstantRevisions
// Reusable, typed, inheritable JSON objects referenced from feature flag values as `@config:key`. A config carries a field `schema` (with TypeScript/JSON Schema import-export) and a lineage `parent`; it resolves like a `json` constant, composed via `$extends`. Inheritance is expressed via `parent`, never an in-value `@config:` entry. Schema fields colliding with a published ancestor's key follow 'base wins': identical re-declarations are stripped with a warning, differing ones are rejected.
Configs *Configs
// Draft revisions for configs, including value and schema edits, schema import (JSON Schema / TypeScript / inferred), approvals, and lifecycle (publish, discard, revert). Publishing a schema change cascades the "base wins" normalization to descendant configs; a publish that removes or retypes fields descendants still use soft-blocks with a 422 unless `?ignoreWarnings=true`. Pass `version: "new"` on edit endpoints to auto-create a draft.
ConfigRevisions *ConfigRevisions
// Sandboxed JavaScript validation hooks that run when features, configs, or their revisions are saved or published. Throwing an Error blocks the save; `addWarning(msg)` raises a soft warning. Hooks are scoped by projects, or pinned to a single feature/config via `entityType`/`entityId`; a config-scoped hook also runs for every config inheriting from it (its whole descendant lineage). Scope can be retargeted on update (or cleared with nulls). Requires an enterprise plan; not available on GrowthBook Cloud.
CustomHooks *CustomHooks
// Organizations are used for multi-org deployments where different teams can run their own isolated feature flags and experiments. These endpoints are only via a super-admin's Personal Access Token.
Organizations *Organizations
// Fact Tables describe the shape of your data warehouse tables
FactTables *FactTables
// Fact Metrics are metrics built on top of Fact Table definitions
FactMetrics *FactMetrics
// Intended for use with our code reference CI utility, [`gb-find-code-refs`](https://github.com/growthbook/gb-find-code-refs).
CodeReferences *CodeReferences
// Members are users who have been invited to an organization.
Members *Members
// Retrieve queries used in experiments to calculate results.
Queries *Queries
// Get the organization settings.
Settings *Settings
// Server metadata, including the running build's version and commit for version-skew checks.
Meta *Meta
// Multi-step rollout schedules that gradually increase feature rule traffic over time, with optional real-time monitoring. Each step supports interval timers, approval gates, and hold conditions. Monitored steps are backed by a live analysis experiment that can automatically hold, roll back, or advance the ramp based on guardrail and signal metric health.
RampSchedules *RampSchedules
// Custom analysis reports built on top of experiment snapshots. Reports let you re-run analysis with different metrics, date ranges, stats engines, and other settings without modifying the underlying experiment.
Reports *Reports
// Namespaces partition your user population into buckets so that experiments using the same hash attribute do not overlap unintentionally. Each namespace defines a 0–1 range and individual experiments claim sub-ranges within it.
Namespaces *Namespaces
Dashboards *Dashboards
ContextualBanditQueries *ContextualBanditQueries
CustomFields *CustomFields
MetricGroups *MetricGroups
Teams *Teams
ExperimentTemplates *ExperimentTemplates
AnalyticsExplorations *AnalyticsExplorations
// Reusable step configurations for ramp schedules.
RampScheduleTemplates *RampScheduleTemplates
// contains filtered or unexported fields
}
Growthbook - GrowthBook REST API: A command-line interface for GrowthBook — manage feature flags, experiments, metrics, and more from your terminal.
Endpoints are versioned by path prefix: `/v1` (stable) and `/v2` (improved shapes). Each command group targets the newest version of its endpoint; superseded versions remain available under a `-vN` suffix.
Authenticate with a Secret Key or Personal Access Token via `--bearer-auth` (or the `GBCLI_BEARER_AUTH` environment variable). Run `growthbook configure` to store credentials, or `growthbook whoami` to check the active configuration.
func New ¶
func New(opts ...SDKOption) *Growthbook
New creates a new instance of the SDK with the provided options
func (*Growthbook) CopyTransform ¶
func (s *Growthbook) CopyTransform(ctx context.Context, request operations.PostCopyTransformRequest, opts ...operations.Option) (*operations.PostCopyTransformResponse, error)
func (*Growthbook) GetSDKPayload ¶
func (s *Growthbook) GetSDKPayload(ctx context.Context, request operations.GetSDKPayloadRequest, opts ...operations.Option) (*operations.GetSDKPayloadResponse, error)
GetSDKPayload - Get a SDK payload
type HTTPClient ¶
HTTPClient provides an interface for supplying the SDK with a custom HTTP client
type Members ¶
type Members struct {
// contains filtered or unexported fields
}
Members are users who have been invited to an organization.
func (*Members) DeleteMember ¶
func (s *Members) DeleteMember(ctx context.Context, request operations.DeleteMemberRequest, opts ...operations.Option) (*operations.DeleteMemberResponse, error)
DeleteMember - Removes a single user from an organization
func (*Members) ListMembers ¶
func (s *Members) ListMembers(ctx context.Context, request *operations.ListMembersRequest, opts ...operations.Option) (*operations.ListMembersResponse, error)
ListMembers - Get all organization members
func (*Members) UpdateMemberRole ¶
func (s *Members) UpdateMemberRole(ctx context.Context, request operations.UpdateMemberRoleRequest, opts ...operations.Option) (*operations.UpdateMemberRoleResponse, error)
UpdateMemberRole - Update a member's global role (including any enviroment restrictions, if applicable). Can also update a member's project roles if your plan supports it.
type Meta ¶
type Meta struct {
// contains filtered or unexported fields
}
Meta - Server metadata, including the running build's version and commit for version-skew checks.
func (*Meta) GetVersion ¶
func (s *Meta) GetVersion(ctx context.Context, opts ...operations.Option) (*operations.GetVersionResponse, error)
GetVersion - Get the GrowthBook server version and build info
type MetricGroups ¶
type MetricGroups struct {
// contains filtered or unexported fields
}
func (*MetricGroups) CreateMetricGroup ¶
func (s *MetricGroups) CreateMetricGroup(ctx context.Context, request operations.CreateMetricGroupRequest, opts ...operations.Option) (*operations.CreateMetricGroupResponse, error)
CreateMetricGroup - Create a single metricGroup
func (*MetricGroups) DeleteMetricGroup ¶
func (s *MetricGroups) DeleteMetricGroup(ctx context.Context, request operations.DeleteMetricGroupRequest, opts ...operations.Option) (*operations.DeleteMetricGroupResponse, error)
DeleteMetricGroup - Delete a single metricGroup
func (*MetricGroups) GetMetricGroup ¶
func (s *MetricGroups) GetMetricGroup(ctx context.Context, request operations.GetMetricGroupRequest, opts ...operations.Option) (*operations.GetMetricGroupResponse, error)
GetMetricGroup - Get a single metricGroup
func (*MetricGroups) ListMetricGroups ¶
func (s *MetricGroups) ListMetricGroups(ctx context.Context, opts ...operations.Option) (*operations.ListMetricGroupsResponse, error)
ListMetricGroups - Get all metricGroups
func (*MetricGroups) UpdateMetricGroup ¶
func (s *MetricGroups) UpdateMetricGroup(ctx context.Context, request operations.UpdateMetricGroupRequest, opts ...operations.Option) (*operations.UpdateMetricGroupResponse, error)
UpdateMetricGroup - Update a single metricGroup
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics used as goals and guardrails for experiments
func (*Metrics) Create ¶
func (s *Metrics) Create(ctx context.Context, request operations.PostMetricRequest, opts ...operations.Option) (*operations.PostMetricResponse, error)
Create a single metric
func (*Metrics) DeleteMetric ¶
func (s *Metrics) DeleteMetric(ctx context.Context, request operations.DeleteMetricRequest, opts ...operations.Option) (*operations.DeleteMetricResponse, error)
DeleteMetric - Deletes a metric
func (*Metrics) GetMetric ¶
func (s *Metrics) GetMetric(ctx context.Context, request operations.GetMetricRequest, opts ...operations.Option) (*operations.GetMetricResponse, error)
GetMetric - Get a single metric
func (*Metrics) ListMetrics ¶
func (s *Metrics) ListMetrics(ctx context.Context, request *operations.ListMetricsRequest, opts ...operations.Option) (*operations.ListMetricsResponse, error)
ListMetrics - Get all metrics
func (*Metrics) Update ¶
func (s *Metrics) Update(ctx context.Context, request operations.PutMetricRequest, opts ...operations.Option) (*operations.PutMetricResponse, error)
Update a metric
type Namespaces ¶
type Namespaces struct {
// contains filtered or unexported fields
}
Namespaces partition your user population into buckets so that experiments using the same hash attribute do not overlap unintentionally. Each namespace defines a 0–1 range and individual experiments claim sub-ranges within it.
func (*Namespaces) Create ¶
func (s *Namespaces) Create(ctx context.Context, request operations.PostNamespaceRequest, opts ...operations.Option) (*operations.PostNamespaceResponse, error)
Create a namespace
func (*Namespaces) DeleteNamespace ¶
func (s *Namespaces) DeleteNamespace(ctx context.Context, request operations.DeleteNamespaceRequest, opts ...operations.Option) (*operations.DeleteNamespaceResponse, error)
DeleteNamespace - Delete a namespace Permanently removes a namespace from the organization. Returns a 409 error if any active experiments currently reference this namespace — disable or remove those references first.
func (*Namespaces) GetMemberships ¶
func (s *Namespaces) GetMemberships(ctx context.Context, request operations.GetNamespaceMembershipsRequest, opts ...operations.Option) (*operations.GetNamespaceMembershipsResponse, error)
GetMemberships - Get namespace membership
func (*Namespaces) GetNamespace ¶
func (s *Namespaces) GetNamespace(ctx context.Context, request operations.GetNamespaceRequest, opts ...operations.Option) (*operations.GetNamespaceResponse, error)
GetNamespace - Get a single namespace
func (*Namespaces) ListNamespaces ¶
func (s *Namespaces) ListNamespaces(ctx context.Context, request *operations.ListNamespacesRequest, opts ...operations.Option) (*operations.ListNamespacesResponse, error)
ListNamespaces - Get all namespaces
func (*Namespaces) RotateSeed ¶
func (s *Namespaces) RotateSeed(ctx context.Context, request operations.PostNamespaceRotateSeedRequest, opts ...operations.Option) (*operations.PostNamespaceRotateSeedResponse, error)
RotateSeed - Rotate namespace seed ⚠️ Dangerous: sets a new seed for a multiRange namespace. Every user's bucket position within the namespace is re-computed immediately, which re-randomizes traffic eligibility for **all** experiments currently using this namespace. Only do this if you intentionally want to reshuffle all allocations across experiments. This could be useful when re-using a namespace for a new set of experiments.
func (*Namespaces) Update ¶
func (s *Namespaces) Update(ctx context.Context, request operations.PutNamespaceRequest, opts ...operations.Option) (*operations.PutNamespaceResponse, error)
Update a namespace
type Organizations ¶
type Organizations struct {
// contains filtered or unexported fields
}
Organizations are used for multi-org deployments where different teams can run their own isolated feature flags and experiments. These endpoints are only via a super-admin's Personal Access Token.
func (*Organizations) Create ¶
func (s *Organizations) Create(ctx context.Context, request operations.PostOrganizationRequest, opts ...operations.Option) (*operations.PostOrganizationResponse, error)
Create a single organization (only for super admins on multi-org Enterprise Plan only)
func (*Organizations) ListOrganizations ¶
func (s *Organizations) ListOrganizations(ctx context.Context, request *operations.ListOrganizationsRequest, opts ...operations.Option) (*operations.ListOrganizationsResponse, error)
ListOrganizations - Get all organizations (only for super admins on multi-org Enterprise Plan only)
func (*Organizations) Update ¶
func (s *Organizations) Update(ctx context.Context, request operations.PutOrganizationRequest, opts ...operations.Option) (*operations.PutOrganizationResponse, error)
Update - Edit a single organization (only for super admins on multi-org Enterprise Plan only)
type Projects ¶
type Projects struct {
// contains filtered or unexported fields
}
Projects are used to organize your feature flags and experiments
func (*Projects) Create ¶
func (s *Projects) Create(ctx context.Context, request operations.PostProjectRequest, opts ...operations.Option) (*operations.PostProjectResponse, error)
Create a single project
func (*Projects) DeleteProject ¶
func (s *Projects) DeleteProject(ctx context.Context, request operations.DeleteProjectRequest, opts ...operations.Option) (*operations.DeleteProjectResponse, error)
DeleteProject - Deletes a single project
func (*Projects) GetProject ¶
func (s *Projects) GetProject(ctx context.Context, request operations.GetProjectRequest, opts ...operations.Option) (*operations.GetProjectResponse, error)
GetProject - Get a single project
func (*Projects) ListProjects ¶
func (s *Projects) ListProjects(ctx context.Context, request *operations.ListProjectsRequest, opts ...operations.Option) (*operations.ListProjectsResponse, error)
ListProjects - Get all projects
func (*Projects) Update ¶
func (s *Projects) Update(ctx context.Context, request operations.PutProjectRequest, opts ...operations.Option) (*operations.PutProjectResponse, error)
Update - Edit a single project
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
Queries - Retrieve queries used in experiments to calculate results.
func (*Queries) GetQuery ¶
func (s *Queries) GetQuery(ctx context.Context, request operations.GetQueryRequest, opts ...operations.Option) (*operations.GetQueryResponse, error)
GetQuery - Get a single query
type RampScheduleTemplates ¶
type RampScheduleTemplates struct {
// contains filtered or unexported fields
}
RampScheduleTemplates - Reusable step configurations for ramp schedules.
func (*RampScheduleTemplates) CreateRampScheduleTemplate ¶
func (s *RampScheduleTemplates) CreateRampScheduleTemplate(ctx context.Context, request operations.CreateRampScheduleTemplateRequest, opts ...operations.Option) (*operations.CreateRampScheduleTemplateResponse, error)
CreateRampScheduleTemplate - Create a single rampScheduleTemplate
func (*RampScheduleTemplates) DeleteRampScheduleTemplate ¶
func (s *RampScheduleTemplates) DeleteRampScheduleTemplate(ctx context.Context, request operations.DeleteRampScheduleTemplateRequest, opts ...operations.Option) (*operations.DeleteRampScheduleTemplateResponse, error)
DeleteRampScheduleTemplate - Delete a single rampScheduleTemplate
func (*RampScheduleTemplates) GetRampScheduleTemplate ¶
func (s *RampScheduleTemplates) GetRampScheduleTemplate(ctx context.Context, request operations.GetRampScheduleTemplateRequest, opts ...operations.Option) (*operations.GetRampScheduleTemplateResponse, error)
GetRampScheduleTemplate - Get a single rampScheduleTemplate
func (*RampScheduleTemplates) ListRampScheduleTemplates ¶
func (s *RampScheduleTemplates) ListRampScheduleTemplates(ctx context.Context, opts ...operations.Option) (*operations.ListRampScheduleTemplatesResponse, error)
ListRampScheduleTemplates - Get all rampScheduleTemplates
func (*RampScheduleTemplates) UpdateRampScheduleTemplate ¶
func (s *RampScheduleTemplates) UpdateRampScheduleTemplate(ctx context.Context, request operations.UpdateRampScheduleTemplateRequest, opts ...operations.Option) (*operations.UpdateRampScheduleTemplateResponse, error)
UpdateRampScheduleTemplate - Update a single rampScheduleTemplate
type RampSchedules ¶
type RampSchedules struct {
// contains filtered or unexported fields
}
RampSchedules - Multi-step rollout schedules that gradually increase feature rule traffic over time, with optional real-time monitoring. Each step supports interval timers, approval gates, and hold conditions. Monitored steps are backed by a live analysis experiment that can automatically hold, roll back, or advance the ramp based on guardrail and signal metric health.
func (*RampSchedules) APIAdvanceRampSchedule ¶
func (s *RampSchedules) APIAdvanceRampSchedule(ctx context.Context, request operations.APIAdvanceRampScheduleRequest, opts ...operations.Option) (*operations.APIAdvanceRampScheduleResponse, error)
APIAdvanceRampSchedule - Advance to the next step, overriding any holds Moves the schedule to the next step, bypassing **all** hold conditions — interval, min sample size, and monitoring signal holds. Accepts `running` or `paused` status; if paused, the schedule is implicitly resumed (timing anchors recalculated) before the step moves.
**Approval gate**: if the current step has an unsatisfied `holdConditions.requiresApproval` gate, this endpoint returns **409** by default. Either call `/actions/approve-step` first (recommended), or pass `force: true` to override the approval gate. `force: true` requires `canBypassApprovalChecks` permission and is logged in the audit trail.
**Two common uses:** - **Post-interval monitoring hold** (`decision: "hold"`, interval elapsed): the
step timer has completed but a signal or guardrail is flagging concern. Use this after reviewing the `/status` health summary and deciding to accept the risk and proceed.
- **Hard override**: skip a step regardless of where it is in its interval or
hold conditions (CI gate, external deployment pipeline).
When to use other actions instead: - **`/actions/resume`** — restores a paused schedule without moving the step. - **`/actions/approve-step`** — clears only the approval gate; other conditions
still resolve naturally.
- **`/actions/rollback`** — preferred response when `decision: "rollback"` or
signals include `guardrail-failing`.
func (*RampSchedules) AddTargetRampSchedule ¶
func (s *RampSchedules) AddTargetRampSchedule(ctx context.Context, request operations.AddTargetRampScheduleRequest, opts ...operations.Option) (*operations.AddTargetRampScheduleResponse, error)
AddTargetRampSchedule - Add a target rule to a ramp schedule Attaches an additional feature rule to this ramp schedule. The `ruleId` must identify a rule that is already published and must not already be controlled by another schedule. `environment` is accepted for backward compatibility with pre-v2 ramps but is deprecated and no longer required.
func (*RampSchedules) ApproveStepRampSchedule ¶
func (s *RampSchedules) ApproveStepRampSchedule(ctx context.Context, request operations.ApproveStepRampScheduleRequest, opts ...operations.Option) (*operations.ApproveStepRampScheduleResponse, error)
ApproveStepRampSchedule - Approve the pending approval gate Clears whichever approval gate is currently pending on the schedule:
- **Start gate** — a schedule created with `requiresStartApproval` sits in `ready` at step -1 with its rule disabled (zero traffic). Approving starts the ramp (or, if a future `startDate` is set, arms it to start on that date). - **Step gate** — the `holdConditions.requiresApproval` gate on the current step of a `running` schedule.
For a step gate, approval is the **final** gate: it can only be granted once every other hold has cleared. This endpoint rejects the request (`400`) if the step is not yet ready — while the interval timer is still counting down, or (for monitored steps) before fresh analysis is available or while a guardrail/health signal is failing. Poll `/status` and call this once it reports awaiting approval.
**Non-monitored steps**: once the interval has elapsed, approving clears the last hold and advances immediately, chaining through subsequent instant steps.
**Monitored steps**: approving clears the last hold and the agenda advances on its next tick (re-checking analysis first).
Different from `/actions/advance`: `approve-step` works within the normal evaluation flow and refuses to skip ahead of the interval or any other unmet gate. Use `/actions/advance` to bypass all remaining holds.
Requires update + publish (start gate) or review (step gate) permissions for the associated feature.
func (*RampSchedules) CompleteRampSchedule ¶
func (s *RampSchedules) CompleteRampSchedule(ctx context.Context, request operations.CompleteRampScheduleRequest, opts ...operations.Option) (*operations.CompleteRampScheduleResponse, error)
CompleteRampSchedule - Complete a ramp schedule immediately Immediately applies the schedule's end-state rule patches (the equivalent of what would happen after the last step advances normally) and marks the schedule as `completed`, skipping any remaining steps.
Pass `disableRule: true` to also disable the linked rule (equivalent to the cutoff-date-driven completion).
func (*RampSchedules) Create ¶
func (s *RampSchedules) Create(ctx context.Context, request operations.PostRampScheduleRequest, opts ...operations.Option) (*operations.PostRampScheduleResponse, error)
Create a ramp schedule
func (*RampSchedules) DeleteRampSchedule ¶
func (s *RampSchedules) DeleteRampSchedule(ctx context.Context, request operations.DeleteRampScheduleRequest, opts ...operations.Option) (*operations.DeleteRampScheduleResponse, error)
DeleteRampSchedule - Delete a single rampSchedule Permanently deletes a ramp schedule. This does not undo any rule patches that were already applied by completed steps.
func (*RampSchedules) EjectTargetRampSchedule ¶
func (s *RampSchedules) EjectTargetRampSchedule(ctx context.Context, request operations.EjectTargetRampScheduleRequest, opts ...operations.Option) (*operations.EjectTargetRampScheduleResponse, error)
EjectTargetRampSchedule - Remove a target rule from a ramp schedule Detaches a target rule from this ramp schedule. Identify the target either by its `targetId` or by the `[ruleId, environment]` pair.
If this is the last target on the schedule, the schedule is deleted entirely and the response contains `deleted: true` instead of `rampSchedule`.
func (*RampSchedules) GetRampSchedule ¶
func (s *RampSchedules) GetRampSchedule(ctx context.Context, request operations.GetRampScheduleRequest, opts ...operations.Option) (*operations.GetRampScheduleResponse, error)
GetRampSchedule - Get a single rampSchedule
func (*RampSchedules) GetRampScheduleStatus ¶
func (s *RampSchedules) GetRampScheduleStatus(ctx context.Context, request operations.GetRampScheduleStatusRequest, opts ...operations.Option) (*operations.GetRampScheduleStatusResponse, error)
GetRampScheduleStatus - Get ramp schedule status summary Returns a real-time status summary for a ramp schedule: current step, overall health decision, traffic quality, and per-metric effect sizes. Designed for CI pipeline integrations and monitoring dashboards that need a single call to determine whether it is safe to advance.
func (*RampSchedules) JumpRampSchedule ¶
func (s *RampSchedules) JumpRampSchedule(ctx context.Context, request operations.JumpRampScheduleRequest, opts ...operations.Option) (*operations.JumpRampScheduleResponse, error)
JumpRampSchedule - Jump to a specific step Teleports the schedule to `targetStepIndex` (forward or backward) and leaves it `paused`. Resets timing anchors so the destination step's interval starts fresh when the schedule is next resumed or started.
Pass `-1` to return to the pre-start position without applying rollback rule patches — useful for resetting a non-started schedule. For a full traffic revert, use `/actions/rollback` instead.
Accepts any non-terminal schedule status.
func (*RampSchedules) ListRampSchedules ¶
func (s *RampSchedules) ListRampSchedules(ctx context.Context, request *operations.ListRampSchedulesRequest, opts ...operations.Option) (*operations.ListRampSchedulesResponse, error)
ListRampSchedules - Get all rampSchedules Returns all ramp schedules for the organization, with optional filters.
func (*RampSchedules) PauseRampSchedule ¶
func (s *RampSchedules) PauseRampSchedule(ctx context.Context, request operations.PauseRampScheduleRequest, opts ...operations.Option) (*operations.PauseRampScheduleResponse, error)
PauseRampSchedule - Pause a ramp schedule Pauses a `running` schedule. Traffic percentages are frozen at their current values; no step advancement happens while paused. Records `pausedAt` so that interval timing can be correctly offset when the schedule resumes.
Use `/actions/resume` to continue from the same step, or `/actions/rollback` to revert all rule effects entirely.
func (*RampSchedules) RefreshMonitoringRampSchedule ¶
func (s *RampSchedules) RefreshMonitoringRampSchedule(ctx context.Context, request operations.RefreshMonitoringRampScheduleRequest, opts ...operations.Option) (*operations.RefreshMonitoringRampScheduleResponse, error)
RefreshMonitoringRampSchedule - Trigger a manual monitoring update Queues a new analysis snapshot for the schedule's monitoring experiment. The snapshot runs asynchronously — poll `GET /ramp-schedules/:id/status` until `snapshotAt` advances to confirm results are ready.
Only available when the schedule is within its monitored step window: - Not in a terminal state (`completed` or `rolled-back`). - Has at least one step with `monitored: true`. - `currentStepIndex` is within `[firstMonitoredStepIndex, lastMonitoredStepIndex]`.
Violating any condition returns **409 Conflict** with a descriptive message.
Requires the `runQueries` permission on the configured datasource (enforced via `canRunExperimentQueries`).
func (*RampSchedules) RestartRampSchedule ¶
func (s *RampSchedules) RestartRampSchedule(ctx context.Context, request operations.RestartRampScheduleRequest, opts ...operations.Option) (*operations.RestartRampScheduleResponse, error)
RestartRampSchedule - Restart a terminal ramp schedule Brings a `rolled-back` (or `completed`) schedule back into `running` in a single call. Any prior start-on-date delays are cleared (`startedAt`, `phaseStartedAt`, etc. are reset), `currentStepIndex` is normalised to `-1`, then the same logic as `/actions/start` runs to apply start actions and advance through immediately-eligible steps.
The rollback that preceded this already rewound rule effects to the starting position; this endpoint does **not** re-execute that rewind for `rolled-back` schedules. `completed` schedules are defensively rewound first.
func (*RampSchedules) ResumeRampSchedule ¶
func (s *RampSchedules) ResumeRampSchedule(ctx context.Context, request operations.ResumeRampScheduleRequest, opts ...operations.Option) (*operations.ResumeRampScheduleResponse, error)
ResumeRampSchedule - Resume a paused ramp schedule Resumes a `paused` schedule without moving the current step. Timing anchors (`phaseStartedAt`, `startedAt`) are shifted forward by the pause duration so that interval-based steps continue from where they left off rather than restarting their clock.
Does **not** advance to the next step — use `/actions/advance` if you also want to skip the remainder of the current step.
func (*RampSchedules) RollbackRampSchedule ¶
func (s *RampSchedules) RollbackRampSchedule(ctx context.Context, request operations.RollbackRampScheduleRequest, opts ...operations.Option) (*operations.RollbackRampScheduleResponse, error)
RollbackRampSchedule - Roll back a ramp schedule Rewinds all ramp effects (rule coverage, targeting, etc.) to the starting position and lands in terminal `rolled-back` status. The reason is persisted as `lastRollbackReason` (prefixed with `Manual: `) and surfaced in the UI.
This is also the correct response to a monitoring alert — when the `/status` endpoint returns `decision: "rollback"` or signals include `guardrail-failing`, call this endpoint with a descriptive `reason`.
From this terminal state the schedule can be brought back to `ready` via `/actions/restart`, after which `/actions/start` will run it again.
func (*RampSchedules) SetAutoUpdateRampSchedule ¶
func (s *RampSchedules) SetAutoUpdateRampSchedule(ctx context.Context, request operations.SetAutoUpdateRampScheduleRequest, opts ...operations.Option) (*operations.SetAutoUpdateRampScheduleResponse, error)
SetAutoUpdateRampSchedule - Toggle automatic monitoring updates Deprecated alias for setting monitoring mode. Prefer `/actions/set-monitoring-mode`.
func (*RampSchedules) SetMonitoringModeRampSchedule ¶
func (s *RampSchedules) SetMonitoringModeRampSchedule(ctx context.Context, request operations.SetMonitoringModeRampScheduleRequest, opts ...operations.Option) (*operations.SetMonitoringModeRampScheduleResponse, error)
SetMonitoringModeRampSchedule - Set ramp monitoring mode Sets the user preference for ramp monitoring updates. In `manual` mode, automatic snapshot scheduling is disabled and operators must click Update manually. In `auto` mode, snapshots run automatically when the current step is monitored and the ramp is running.
func (*RampSchedules) StartRampSchedule ¶
func (s *RampSchedules) StartRampSchedule(ctx context.Context, request operations.StartRampScheduleRequest, opts ...operations.Option) (*operations.StartRampScheduleResponse, error)
StartRampSchedule - Start a ramp schedule Transitions the schedule from `ready` to `running`. The schedule must have at least one target rule attached — a schedule created without targets starts in `pending` and moves to `ready` automatically when the first target is attached via `/actions/add-target`.
The first step is processed immediately: interval-free steps advance right away; interval-based steps arm a timer. Once started, use `/actions/pause` to halt, `/actions/advance` to skip steps, or `/actions/rollback` to revert.
func (*RampSchedules) UpdateRampSchedule ¶
func (s *RampSchedules) UpdateRampSchedule(ctx context.Context, request operations.UpdateRampScheduleRequest, opts ...operations.Option) (*operations.UpdateRampScheduleResponse, error)
UpdateRampSchedule - Update a single rampSchedule Updates the name, steps, endActions, startDate, or cutoffDate of a ramp schedule.
Only allowed when the schedule is in `pending`, `ready`, or `paused` status.
**targetId shorthand**: When providing `steps` or `endActions`, you may omit `targetId` (or pass `"t1"`) in each action. If the schedule has exactly one active target, the server will resolve it automatically. For schedules with multiple targets, provide the explicit target UUID from `targets[].id`.
**Coverage on monitored steps**: See the create endpoint description for details on how `coverage` is interpreted for monitored steps (total enrollment, not variation-1 exposure).
func (*RampSchedules) UpdateRampScheduleLockdown ¶
func (s *RampSchedules) UpdateRampScheduleLockdown(ctx context.Context, request operations.UpdateRampScheduleLockdownRequest, opts ...operations.Option) (*operations.UpdateRampScheduleLockdownResponse, error)
UpdateRampScheduleLockdown - Update ramp lockdown configuration Sets the lockdown mode. `locked` prevents other users from publishing unrelated changes to the parent feature while the ramp is running — useful when you want to ensure no external edits interfere with a live rollout. It does **not** affect the ramp's own auto-advancement or monitoring behavior; use `actions/pause` to halt the ramp itself. `none` removes the publishing restriction.
func (*RampSchedules) UpdateRampScheduleMonitoring ¶
func (s *RampSchedules) UpdateRampScheduleMonitoring(ctx context.Context, request operations.UpdateRampScheduleMonitoringRequest, opts ...operations.Option) (*operations.UpdateRampScheduleMonitoringResponse, error)
UpdateRampScheduleMonitoring - Update ramp monitoring configuration Replaces the monitoring configuration. Metric IDs, snapshot cadence, and health-action thresholds (`srmAction`, `noTrafficAction`, etc.) can be updated at any time.
`datasourceId` and `exposureQueryId` are locked once monitoring starts — stop and recreate the schedule to change the data source.
Changes to guardrail or signal metric IDs take effect on the next analysis run.
func (*RampSchedules) UpdateRampScheduleSteps ¶
func (s *RampSchedules) UpdateRampScheduleSteps(ctx context.Context, request operations.UpdateRampScheduleStepsRequest, opts ...operations.Option) (*operations.UpdateRampScheduleStepsResponse, error)
UpdateRampScheduleSteps - Update ramp schedule steps Fully replaces the steps array for a ramp schedule. Only allowed when the schedule is in a non-running, non-terminal state (`ready`, `pending`, or `paused`). Pause a running schedule first; restart a terminal schedule first.
**Step actions** (coverage/targeting patches) are not accepted here — they change the SDK payload and must go through a feature revision draft. Existing step actions are preserved for each position. Use `PUT /v2/features/:id/revisions/:version/rules/:ruleId/ramp-schedule` to modify coverage/targeting.
type Reports ¶
type Reports struct {
// contains filtered or unexported fields
}
Reports - Custom analysis reports built on top of experiment snapshots. Reports let you re-run analysis with different metrics, date ranges, stats engines, and other settings without modifying the underlying experiment.
func (*Reports) Create ¶
func (s *Reports) Create(ctx context.Context, request operations.PostReportRequest, opts ...operations.Option) (*operations.PostReportResponse, error)
Create a new report
func (*Reports) GetReport ¶
func (s *Reports) GetReport(ctx context.Context, request operations.GetReportRequest, opts ...operations.Option) (*operations.GetReportResponse, error)
GetReport - Get a single report
func (*Reports) ListReports ¶
func (s *Reports) ListReports(ctx context.Context, request *operations.ListReportsRequest, opts ...operations.Option) (*operations.ListReportsResponse, error)
ListReports - Get all reports
func (*Reports) Refresh ¶
func (s *Reports) Refresh(ctx context.Context, request operations.PostReportRefreshRequest, opts ...operations.Option) (*operations.PostReportRefreshResponse, error)
Refresh a report by re-running its analysis
func (*Reports) SetMetadata ¶
func (s *Reports) SetMetadata(ctx context.Context, request operations.PutReportMetadataRequest, opts ...operations.Option) (*operations.PutReportMetadataResponse, error)
SetMetadata - Update report metadata (title, description, visibility)
func (*Reports) SetSettings ¶
func (s *Reports) SetSettings(ctx context.Context, request operations.PutReportSettingsRequest, opts ...operations.Option) (*operations.PutReportSettingsResponse, error)
SetSettings - Update report analysis settings Updates the analysis settings for an existing report. Changes are staged and do not take effect until you call `POST /reports/:id/refresh`.
type SDKConnections ¶
type SDKConnections struct {
// contains filtered or unexported fields
}
SDKConnections - Client keys and settings for connecting SDKs to a GrowthBook instance
func (*SDKConnections) Create ¶
func (s *SDKConnections) Create(ctx context.Context, request operations.PostSDKConnectionRequest, opts ...operations.Option) (*operations.PostSDKConnectionResponse, error)
Create a single sdk connection
func (*SDKConnections) DeleteSDKConnection ¶
func (s *SDKConnections) DeleteSDKConnection(ctx context.Context, request operations.DeleteSDKConnectionRequest, opts ...operations.Option) (*operations.DeleteSDKConnectionResponse, error)
DeleteSDKConnection - Deletes a single SDK connection
func (*SDKConnections) GetSDKConnection ¶
func (s *SDKConnections) GetSDKConnection(ctx context.Context, request operations.GetSDKConnectionRequest, opts ...operations.Option) (*operations.GetSDKConnectionResponse, error)
GetSDKConnection - Get a single sdk connection
func (*SDKConnections) ListSDKConnections ¶
func (s *SDKConnections) ListSDKConnections(ctx context.Context, request *operations.ListSDKConnectionsRequest, opts ...operations.Option) (*operations.ListSDKConnectionsResponse, error)
ListSDKConnections - Get all sdk connections
func (*SDKConnections) LookupSDKConnectionByKey ¶
func (s *SDKConnections) LookupSDKConnectionByKey(ctx context.Context, request operations.LookupSDKConnectionByKeyRequest, opts ...operations.Option) (*operations.LookupSDKConnectionByKeyResponse, error)
LookupSDKConnectionByKey - Find a single sdk connection by its key
func (*SDKConnections) Update ¶
func (s *SDKConnections) Update(ctx context.Context, request operations.PutSDKConnectionRequest, opts ...operations.Option) (*operations.PutSDKConnectionResponse, error)
Update a single sdk connection
type SDKOption ¶
type SDKOption func(*Growthbook)
func WithClient ¶
func WithClient(client HTTPClient) SDKOption
WithClient allows the overriding of the default HTTP client used by the SDK
func WithDomain ¶
WithDomain allows setting the domain variable for url substitution
func WithRetryConfig ¶
func WithSecurity ¶
func WithSecurity(security components.Security) SDKOption
WithSecurity configures the SDK to use the provided security details
func WithSecuritySource ¶
WithSecuritySource configures the SDK to invoke the Security Source function on each method call to determine authentication
func WithServerIndex ¶
WithServerIndex allows the overriding of the default server by index
func WithServerURL ¶
WithServerURL allows providing an alternative server URL
func WithTemplatedServerURL ¶
WithTemplatedServerURL allows the overriding of the default server URL with a templated URL populated with the provided parameters
func WithTimeout ¶
WithTimeout Optional request timeout applied to each operation
type SavedGroupRevisions ¶
type SavedGroupRevisions struct {
// contains filtered or unexported fields
}
SavedGroupRevisions - Draft revisions for saved groups, including pending changes, approvals, and lifecycle (publish, discard, revert).
Most callers can interact with these endpoints via shorthand actions (`/items/add`, `/items/remove`, single-field PUTs) instead of authoring JSON Patch ops directly. Pass `version: "new"` on edit endpoints to auto-create a draft.
func (*SavedGroupRevisions) AddItems ¶
func (s *SavedGroupRevisions) AddItems(ctx context.Context, request operations.PostSavedGroupRevisionItemsAddRequest, opts ...operations.Option) (*operations.PostSavedGroupRevisionItemsAddResponse, error)
AddItems - Append items to a list saved group draft revision Appends the provided items (deduplicated) to the draft's `values` array. Only valid for `list` saved groups. Pass `version: "new"` to auto-create a draft. Duplicate items are merged on top of any existing draft, so multiple successive add/remove calls accumulate.
func (*SavedGroupRevisions) Archive ¶
func (s *SavedGroupRevisions) Archive(ctx context.Context, request operations.PutSavedGroupRevisionArchiveRequest, opts ...operations.Option) (*operations.PutSavedGroupRevisionArchiveResponse, error)
Archive - Stage an archive/unarchive in a draft revision Stages an archive or unarchive on the draft. Pass `version: "new"` to auto-create a draft. Archived saved groups can be permanently deleted via `DELETE /saved-groups/{id}` once the archive is published.
func (*SavedGroupRevisions) Create ¶
func (s *SavedGroupRevisions) Create(ctx context.Context, request operations.PostSavedGroupRevisionRequest, opts ...operations.Option) (*operations.PostSavedGroupRevisionResponse, error)
Create a draft revision Creates a new draft revision branched from the current live saved group. A saved group can have multiple concurrent drafts; use this to start an isolated line of edits.
func (*SavedGroupRevisions) Discard ¶
func (s *SavedGroupRevisions) Discard(ctx context.Context, request operations.PostSavedGroupRevisionDiscardRequest, opts ...operations.Option) (*operations.PostSavedGroupRevisionDiscardResponse, error)
Discard a draft revision Permanently discards a draft revision. Only open revisions (not merged or already-discarded) can be discarded.
func (*SavedGroupRevisions) GetSavedGroupRevision ¶
func (s *SavedGroupRevisions) GetSavedGroupRevision(ctx context.Context, request operations.GetSavedGroupRevisionRequest, opts ...operations.Option) (*operations.GetSavedGroupRevisionResponse, error)
GetSavedGroupRevision - Get a single saved group revision Returns the revision at the specified version for this saved group. Use `GET /saved-groups-revisions/{savedGroupId}/latest` for the most recent active draft.
func (*SavedGroupRevisions) Latest ¶
func (s *SavedGroupRevisions) Latest(ctx context.Context, request operations.GetSavedGroupRevisionLatestRequest, opts ...operations.Option) (*operations.GetSavedGroupRevisionLatestResponse, error)
Latest - Get the most recent active draft revision Returns the most recently updated open (non-merged, non-discarded) revision for the saved group. Returns 404 if there is no active draft. Pass `mine=true` to restrict to drafts authored by the calling user (requires a user-scoped API key).
func (*SavedGroupRevisions) ListForSavedGroup ¶
func (s *SavedGroupRevisions) ListForSavedGroup(ctx context.Context, request operations.GetSavedGroupRevisionsRequest, opts ...operations.Option) (*operations.GetSavedGroupRevisionsResponse, error)
ListForSavedGroup - List revisions for a saved group Returns a paginated list of revisions for this saved group, sorted newest-first. Optionally filtered by status, author, or the calling user's involvement.
func (*SavedGroupRevisions) ListSavedGroupRevisions ¶
func (s *SavedGroupRevisions) ListSavedGroupRevisions(ctx context.Context, request *operations.ListSavedGroupRevisionsRequest, opts ...operations.Option) (*operations.ListSavedGroupRevisionsResponse, error)
ListSavedGroupRevisions - List saved-group revisions across the organization Returns a paginated list of revisions across all saved groups in the organization, sorted newest-first. Optionally filtered by saved group, status, author, or the calling user's involvement.
func (*SavedGroupRevisions) MergeStatus ¶
func (s *SavedGroupRevisions) MergeStatus(ctx context.Context, request operations.GetSavedGroupRevisionMergeStatusRequest, opts ...operations.Option) (*operations.GetSavedGroupRevisionMergeStatusResponse, error)
MergeStatus - Get merge status for a draft revision Runs a dry-run merge of the draft against the current live saved group and returns any conflicts. Use this before publishing to preview changes and detect conflicting edits.
func (*SavedGroupRevisions) Publish ¶
func (s *SavedGroupRevisions) Publish(ctx context.Context, request operations.PostSavedGroupRevisionPublishRequest, opts ...operations.Option) (*operations.PostSavedGroupRevisionPublishResponse, error)
Publish a draft revision Publishes a draft revision, making it the live state of the saved group. Blocked if the org requires approvals and the revision is not approved (callers with the bypass-approval permission may still publish).
func (*SavedGroupRevisions) Rebase ¶
func (s *SavedGroupRevisions) Rebase(ctx context.Context, request operations.PostSavedGroupRevisionRebaseRequest, opts ...operations.Option) (*operations.PostSavedGroupRevisionRebaseResponse, error)
Rebase a draft revision onto the current live saved group Updates the draft's base snapshot to the current live state, applying the draft's changes on top. Supply `conflictResolutions` to resolve any conflicting fields. Strategies are `overwrite` (use the draft's value), `discard` (keep the live value), or `union` (merge arrays — use only on `values`). Optimistic locking is not enforced by this endpoint; callers who need strict locking should call `merge-status` before and after.
func (*SavedGroupRevisions) RemoveItems ¶
func (s *SavedGroupRevisions) RemoveItems(ctx context.Context, request operations.PostSavedGroupRevisionItemsRemoveRequest, opts ...operations.Option) (*operations.PostSavedGroupRevisionItemsRemoveResponse, error)
RemoveItems - Remove items from a list saved group draft revision Removes the provided items from the draft's `values` array. Only valid for `list` saved groups. Pass `version: "new"` to auto-create a draft.
func (*SavedGroupRevisions) RequestReview ¶
func (s *SavedGroupRevisions) RequestReview(ctx context.Context, request operations.PostSavedGroupRevisionRequestReviewRequest, opts ...operations.Option) (*operations.PostSavedGroupRevisionRequestReviewResponse, error)
RequestReview - Request review for a draft revision Moves the draft from `draft` into `pending-review`. Notifies reviewers per the org's approval-flow settings.
Set `autoPublishOnApproval` to `true` to publish the revision automatically the moment it is approved (GitHub auto-merge model). This requires the org to have auto-publish-on-approval enabled and the caller to have publish permission on the saved group; the auto-publish then executes with the caller's authority.
func (*SavedGroupRevisions) Revert ¶
func (s *SavedGroupRevisions) Revert(ctx context.Context, request operations.PostSavedGroupRevisionRevertRequest, opts ...operations.Option) (*operations.PostSavedGroupRevisionRevertResponse, error)
Revert the saved group to a prior revision Creates a new draft (or immediately publishes) whose content matches the specified historical revision. Defaults to creating a draft; when the org enables 'reverts bypass approval' it defaults to publishing immediately. Pass `strategy` to override.
func (*SavedGroupRevisions) SetCondition ¶
func (s *SavedGroupRevisions) SetCondition(ctx context.Context, request operations.PutSavedGroupRevisionConditionRequest, opts ...operations.Option) (*operations.PutSavedGroupRevisionConditionResponse, error)
SetCondition - Update the condition of a condition saved group draft revision Stages a new JSON-encoded condition for the draft. Only valid for `condition` saved groups. Pass `version: "new"` to auto-create a draft.
func (*SavedGroupRevisions) SetMetadata ¶
func (s *SavedGroupRevisions) SetMetadata(ctx context.Context, request operations.PutSavedGroupRevisionMetadataRequest, opts ...operations.Option) (*operations.PutSavedGroupRevisionMetadataResponse, error)
SetMetadata - Update saved group metadata in a draft revision Stages metadata changes (name, owner, description, projects) on the draft. Pass `version: "new"` to auto-create a draft. The change is only applied to the live saved group when the revision is merged.
func (*SavedGroupRevisions) SetValues ¶
func (s *SavedGroupRevisions) SetValues(ctx context.Context, request operations.PutSavedGroupRevisionValuesRequest, opts ...operations.Option) (*operations.PutSavedGroupRevisionValuesResponse, error)
SetValues - Replace the values list in a list saved group draft revision Replaces the entire `values` array atomically. Only valid for `list` saved groups. For safe concurrent updates against a draft, prefer `POST .../items/add` and `POST .../items/remove`. Pass `version: "new"` to auto-create a draft.
func (*SavedGroupRevisions) SubmitReview ¶
func (s *SavedGroupRevisions) SubmitReview(ctx context.Context, request operations.PostSavedGroupRevisionSubmitReviewRequest, opts ...operations.Option) (*operations.PostSavedGroupRevisionSubmitReviewResponse, error)
SubmitReview - Submit a review on a draft revision Submits an `approve`, `request-changes`, or `comment` review on the revision. Authors and contributors cannot submit `approve` reviews on their own drafts when the org has `blockSelfApproval` enabled.
When `decision` is `approve` and the revision has `autoPublishOnApproval` enabled, the revision is automatically published after approval. The response includes `autoPublished: true` when this happens. Pass `skipAutoPublish: true` to approve without triggering auto-publish.
type SavedGroups ¶
type SavedGroups struct {
// contains filtered or unexported fields
}
SavedGroups - Defined sets of attribute values which can be used with feature rules for targeting features at particular users.
func (*SavedGroups) ArchiveSavedGroup ¶
func (s *SavedGroups) ArchiveSavedGroup(ctx context.Context, request operations.ArchiveSavedGroupRequest, opts ...operations.Option) (*operations.ArchiveSavedGroupResponse, error)
ArchiveSavedGroup - Archive a single saved group
func (*SavedGroups) Create ¶
func (s *SavedGroups) Create(ctx context.Context, request operations.PostSavedGroupRequest, opts ...operations.Option) (*operations.PostSavedGroupResponse, error)
Create a single saved group
func (*SavedGroups) DeleteSavedGroup ¶
func (s *SavedGroups) DeleteSavedGroup(ctx context.Context, request operations.DeleteSavedGroupRequest, opts ...operations.Option) (*operations.DeleteSavedGroupResponse, error)
DeleteSavedGroup - Deletes a single saved group
func (*SavedGroups) GetSavedGroup ¶
func (s *SavedGroups) GetSavedGroup(ctx context.Context, request operations.GetSavedGroupRequest, opts ...operations.Option) (*operations.GetSavedGroupResponse, error)
GetSavedGroup - Get a single saved group
func (*SavedGroups) GetSavedGroupReferences ¶
func (s *SavedGroups) GetSavedGroupReferences(ctx context.Context, request operations.GetSavedGroupReferencesRequest, opts ...operations.Option) (*operations.GetSavedGroupReferencesResponse, error)
GetSavedGroupReferences - Get features, experiments, and saved groups that reference this saved group
func (*SavedGroups) ListSavedGroups ¶
func (s *SavedGroups) ListSavedGroups(ctx context.Context, request *operations.ListSavedGroupsRequest, opts ...operations.Option) (*operations.ListSavedGroupsResponse, error)
ListSavedGroups - Get all saved group
func (*SavedGroups) UnarchiveSavedGroup ¶
func (s *SavedGroups) UnarchiveSavedGroup(ctx context.Context, request operations.UnarchiveSavedGroupRequest, opts ...operations.Option) (*operations.UnarchiveSavedGroupResponse, error)
UnarchiveSavedGroup - Unarchive a single saved group
func (*SavedGroups) UpdateSavedGroup ¶
func (s *SavedGroups) UpdateSavedGroup(ctx context.Context, request operations.UpdateSavedGroupRequest, opts ...operations.Option) (*operations.UpdateSavedGroupResponse, error)
UpdateSavedGroup - Partially update a single saved group
type Segments ¶
type Segments struct {
// contains filtered or unexported fields
}
Segments used during experiment analysis
func (*Segments) Create ¶
func (s *Segments) Create(ctx context.Context, request operations.PostSegmentRequest, opts ...operations.Option) (*operations.PostSegmentResponse, error)
Create a single segment
func (*Segments) DeleteSegment ¶
func (s *Segments) DeleteSegment(ctx context.Context, request operations.DeleteSegmentRequest, opts ...operations.Option) (*operations.DeleteSegmentResponse, error)
DeleteSegment - Deletes a single segment
func (*Segments) GetSegment ¶
func (s *Segments) GetSegment(ctx context.Context, request operations.GetSegmentRequest, opts ...operations.Option) (*operations.GetSegmentResponse, error)
GetSegment - Get a single segment
func (*Segments) ListSegments ¶
func (s *Segments) ListSegments(ctx context.Context, request *operations.ListSegmentsRequest, opts ...operations.Option) (*operations.ListSegmentsResponse, error)
ListSegments - Get all segments
func (*Segments) UpdateSegment ¶
func (s *Segments) UpdateSegment(ctx context.Context, request operations.UpdateSegmentRequest, opts ...operations.Option) (*operations.UpdateSegmentResponse, error)
UpdateSegment - Update a single segment
type Settings ¶
type Settings struct {
// contains filtered or unexported fields
}
Settings - Get the organization settings.
func (*Settings) GetSettings ¶
func (s *Settings) GetSettings(ctx context.Context, opts ...operations.Option) (*operations.GetSettingsResponse, error)
GetSettings - Get organization settings
type Snapshots ¶
type Snapshots struct {
// contains filtered or unexported fields
}
Experiment Snapshots (the individual updates of an experiment)
func (*Snapshots) CreateSnapshot ¶
func (s *Snapshots) CreateSnapshot(ctx context.Context, request operations.PostExperimentSnapshotRequest, opts ...operations.Option) (*operations.PostExperimentSnapshotResponse, error)
CreateSnapshot - Create Experiment Snapshot
func (*Snapshots) GetExperimentSnapshot ¶
func (s *Snapshots) GetExperimentSnapshot(ctx context.Context, request operations.GetExperimentSnapshotRequest, opts ...operations.Option) (*operations.GetExperimentSnapshotResponse, error)
GetExperimentSnapshot - Get an experiment snapshot status
type Teams ¶
type Teams struct {
// contains filtered or unexported fields
}
func (*Teams) AddTeamMembers ¶
func (s *Teams) AddTeamMembers(ctx context.Context, request operations.AddTeamMembersRequest, opts ...operations.Option) (*operations.AddTeamMembersResponse, error)
AddTeamMembers - Add members to team
func (*Teams) CreateTeam ¶
func (s *Teams) CreateTeam(ctx context.Context, request operations.CreateTeamRequest, opts ...operations.Option) (*operations.CreateTeamResponse, error)
CreateTeam - Create a single team
func (*Teams) DeleteTeam ¶
func (s *Teams) DeleteTeam(ctx context.Context, request operations.DeleteTeamRequest, opts ...operations.Option) (*operations.DeleteTeamResponse, error)
DeleteTeam - Delete a single team
func (*Teams) GetTeam ¶
func (s *Teams) GetTeam(ctx context.Context, request operations.GetTeamRequest, opts ...operations.Option) (*operations.GetTeamResponse, error)
GetTeam - Get a single team
func (*Teams) ListTeams ¶
func (s *Teams) ListTeams(ctx context.Context, opts ...operations.Option) (*operations.ListTeamsResponse, error)
ListTeams - Get all teams
func (*Teams) RemoveTeamMember ¶
func (s *Teams) RemoveTeamMember(ctx context.Context, request operations.RemoveTeamMemberRequest, opts ...operations.Option) (*operations.RemoveTeamMemberResponse, error)
RemoveTeamMember - Remove members from team
func (*Teams) UpdateTeam ¶
func (s *Teams) UpdateTeam(ctx context.Context, request operations.UpdateTeamRequest, opts ...operations.Option) (*operations.UpdateTeamResponse, error)
UpdateTeam - Update a single team
type UsageMetrics ¶
type UsageMetrics struct {
// contains filtered or unexported fields
}
func (*UsageMetrics) Get ¶
func (s *UsageMetrics) Get(ctx context.Context, request operations.GetMetricUsageRequest, opts ...operations.Option) (*operations.GetMetricUsageResponse, error)
Get metric usage across experiments Returns usage information for one or more legacy or fact metrics, showing which experiments use each metric and some usage statistics. If a metric is part of a metric group, then usage of that metric group counts as usage of all metrics in the group. Warning: only includes experiments that you have access to! If you do not have admin access or read access to experiments across all projects, this endpoint may not return the latest usage data across all experiments.
type VisualChangesets ¶
type VisualChangesets struct {
// contains filtered or unexported fields
}
VisualChangesets - Groups of visual changes made by the visual editor to a single page
func (*VisualChangesets) AddVisualChange ¶
func (s *VisualChangesets) AddVisualChange(ctx context.Context, request operations.PostVisualChangeRequest, opts ...operations.Option) (*operations.PostVisualChangeResponse, error)
AddVisualChange - Create a visual change for a visual changeset
func (*VisualChangesets) Create ¶
func (s *VisualChangesets) Create(ctx context.Context, request operations.PostVisualChangesetsRequest, opts ...operations.Option) (*operations.PostVisualChangesetsResponse, error)
Create a visual changeset for an experiment
func (*VisualChangesets) GetVisualChangeset ¶
func (s *VisualChangesets) GetVisualChangeset(ctx context.Context, request operations.GetVisualChangesetRequest, opts ...operations.Option) (*operations.GetVisualChangesetResponse, error)
GetVisualChangeset - Get a single visual changeset
func (*VisualChangesets) ListVisualChangesets ¶
func (s *VisualChangesets) ListVisualChangesets(ctx context.Context, request operations.ListVisualChangesetsRequest, opts ...operations.Option) (*operations.ListVisualChangesetsResponse, error)
ListVisualChangesets - Get all visual changesets
func (*VisualChangesets) Update ¶
func (s *VisualChangesets) Update(ctx context.Context, request operations.PutVisualChangesetRequest, opts ...operations.Option) (*operations.PutVisualChangesetResponse, error)
Update a visual changeset
func (*VisualChangesets) UpdateVisualChange ¶
func (s *VisualChangesets) UpdateVisualChange(ctx context.Context, request operations.PutVisualChangeRequest, opts ...operations.Option) (*operations.PutVisualChangeResponse, error)
UpdateVisualChange - Update a visual change for a visual changeset
Source Files
¶
- analyticsexplorations.go
- archetypes.go
- attributes.go
- codereferences.go
- configrevisions.go
- configs.go
- constantrevisions.go
- constants.go
- contextualbanditqueries.go
- contextualbandits.go
- customfields.go
- customhooks.go
- dashboards.go
- datasources.go
- dimensions.go
- environments.go
- experiments.go
- experimenttemplates.go
- factmetrics.go
- facttables.go
- featurerevisions.go
- featurerevisionsv1.go
- features.go
- featuresv1.go
- growthbook.go
- members.go
- meta.go
- metricgroups.go
- metrics.go
- namespaces.go
- organizations.go
- projects.go
- queries.go
- rampschedules.go
- rampscheduletemplates.go
- reports.go
- savedgrouprevisions.go
- savedgroups.go
- sdkconnections.go
- segments.go
- settings.go
- snapshots.go
- teams.go
- usagemetrics.go
- visualchangesets.go