Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions openapiv2/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2816,6 +2816,29 @@
]
}
},
"/org/v1:syncFeatureFlags": {
"post": {
"summary": "Self-heals the caller's own Wave feature-flag state against the MSP's\nroot Ripple state, correcting any drift caused by a missed or delayed\nsync, and returns the corrected state.",
"operationId": "Organization_SyncFeatureFlags",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1SyncFeatureFlagsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"Organization"
]
}
},
"/org/v1:verify": {
"post": {
"summary": "WORK-IN-PROGRESS: Verifies an organization using the key received from the verification email.\nThe verification key is only valid for a day.",
Expand Down Expand Up @@ -40664,6 +40687,22 @@
"format"
]
},
"v1FeatureFlagState": {
"type": "object",
"properties": {
"featureName": {
"type": "string"
},
"featureId": {
"type": "string",
"description": "The Wave feature UUID, as used by Wave's own $flag(feature_id) checks."
},
"enabled": {
"type": "boolean"
}
},
"description": "A single Wave feature flag's corrected state."
},
"v1FeatureSetting": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -47304,6 +47343,19 @@
}
}
},
"v1SyncFeatureFlagsResponse": {
"type": "object",
"properties": {
"flags": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1FeatureFlagState"
}
}
},
"description": "Response message for the Organization.SyncFeatureFlags rpc."
},
"v1TagSetting": {
"type": "object",
"properties": {
Expand Down
29 changes: 28 additions & 1 deletion org/v1/org.proto
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ service Organization {
delete: "/org/v1"
};
}

// Self-heals the caller's own Wave feature-flag state against the MSP's
// root Ripple state, correcting any drift caused by a missed or delayed
// sync, and returns the corrected state.
rpc SyncFeatureFlags(SyncFeatureFlagsRequest) returns (SyncFeatureFlagsResponse) {
option (google.api.http) = {
post: "/org/v1:syncFeatureFlags"
};
}
}

// Request message for the Organization.CreateOrg rpc.
Expand Down Expand Up @@ -146,4 +155,22 @@ message UpdatePasswordRequest {
}

// Request message for the Organization.DeleteOrg rpc.
message DeleteOrgRequest {}
message DeleteOrgRequest {}

// Request message for the Organization.SyncFeatureFlags rpc.
message SyncFeatureFlagsRequest {}

// A single Wave feature flag's corrected state.
message FeatureFlagState {
string featureName = 1;

// The Wave feature UUID, as used by Wave's own $flag(feature_id) checks.
string featureId = 2;

bool enabled = 3;
}

// Response message for the Organization.SyncFeatureFlags rpc.
message SyncFeatureFlagsResponse {
repeated FeatureFlagState flags = 1;
}
Loading