diff --git a/clients/haskell/sdk/Io/Superposition/Command/BulkOperation.hs b/clients/haskell/sdk/Io/Superposition/Command/BulkOperation.hs index 58786f7d3..c32878698 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/BulkOperation.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/BulkOperation.hs @@ -12,6 +12,7 @@ import qualified Io.Superposition.Model.BulkOperationOutput import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound import qualified Io.Superposition.Model.WebhookFailed +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility @@ -19,6 +20,7 @@ data BulkOperationError = InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | WebhookFailed Io.Superposition.Model.WebhookFailed.WebhookFailed | ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text | UnexpectedError (Data.Maybe.Maybe Io.Superposition.Utility.HttpMetadata) Data.Text.Text @@ -34,6 +36,7 @@ instance Io.Superposition.Utility.OperationError BulkOperationError where | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WebhookFailed.WebhookFailed) = Just (fmap WebhookFailed (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WebhookFailed.WebhookFailed)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/CreateContext.hs b/clients/haskell/sdk/Io/Superposition/Command/CreateContext.hs index 6c00ee14a..17a6c4418 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/CreateContext.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/CreateContext.hs @@ -12,12 +12,14 @@ import qualified Io.Superposition.Model.CreateContextOutput import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound import qualified Io.Superposition.Model.WebhookFailed +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data CreateContextError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound | WebhookFailed Io.Superposition.Model.WebhookFailed.WebhookFailed + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -33,6 +35,7 @@ instance Io.Superposition.Utility.OperationError CreateContextError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WebhookFailed.WebhookFailed) = Just (fmap WebhookFailed (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WebhookFailed.WebhookFailed)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/CreateDimension.hs b/clients/haskell/sdk/Io/Superposition/Command/CreateDimension.hs index f1cb3ec0f..9de86eadf 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/CreateDimension.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/CreateDimension.hs @@ -11,11 +11,13 @@ import qualified Io.Superposition.Model.CreateDimensionInput import qualified Io.Superposition.Model.CreateDimensionOutput import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.WebhookFailed +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data CreateDimensionError = WebhookFailed Io.Superposition.Model.WebhookFailed.WebhookFailed + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -30,6 +32,7 @@ instance Io.Superposition.Utility.OperationError CreateDimensionError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WebhookFailed.WebhookFailed) = Just (fmap WebhookFailed (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WebhookFailed.WebhookFailed)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/CreateFunction.hs b/clients/haskell/sdk/Io/Superposition/Command/CreateFunction.hs index e95c10f15..d28a43864 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/CreateFunction.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/CreateFunction.hs @@ -10,11 +10,13 @@ import qualified GHC.Show import qualified Io.Superposition.Model.CreateFunctionInput import qualified Io.Superposition.Model.CreateFunctionOutput import qualified Io.Superposition.Model.InternalServerError +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data CreateFunctionError = - InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError + WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict + | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text | UnexpectedError (Data.Maybe.Maybe Io.Superposition.Utility.HttpMetadata) Data.Text.Text @@ -27,6 +29,7 @@ instance Io.Superposition.Utility.OperationError CreateFunctionError where mkUnexpectedError = UnexpectedError getErrorParser status + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/CreateSecret.hs b/clients/haskell/sdk/Io/Superposition/Command/CreateSecret.hs index 5f576a7cb..82e0065e6 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/CreateSecret.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/CreateSecret.hs @@ -10,11 +10,13 @@ import qualified GHC.Show import qualified Io.Superposition.Model.CreateSecretInput import qualified Io.Superposition.Model.CreateSecretOutput import qualified Io.Superposition.Model.InternalServerError +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data CreateSecretError = - InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError + WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict + | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text | UnexpectedError (Data.Maybe.Maybe Io.Superposition.Utility.HttpMetadata) Data.Text.Text @@ -27,6 +29,7 @@ instance Io.Superposition.Utility.OperationError CreateSecretError where mkUnexpectedError = UnexpectedError getErrorParser status + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/CreateTypeTemplates.hs b/clients/haskell/sdk/Io/Superposition/Command/CreateTypeTemplates.hs index 2bbf7f22b..56bbf596d 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/CreateTypeTemplates.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/CreateTypeTemplates.hs @@ -10,11 +10,13 @@ import qualified GHC.Show import qualified Io.Superposition.Model.CreateTypeTemplatesInput import qualified Io.Superposition.Model.CreateTypeTemplatesOutput import qualified Io.Superposition.Model.InternalServerError +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data CreateTypeTemplatesError = - InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError + WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict + | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text | UnexpectedError (Data.Maybe.Maybe Io.Superposition.Utility.HttpMetadata) Data.Text.Text @@ -27,6 +29,7 @@ instance Io.Superposition.Utility.OperationError CreateTypeTemplatesError where mkUnexpectedError = UnexpectedError getErrorParser status + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/CreateVariable.hs b/clients/haskell/sdk/Io/Superposition/Command/CreateVariable.hs index 409a2d1ca..3ac6c20e7 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/CreateVariable.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/CreateVariable.hs @@ -10,11 +10,13 @@ import qualified GHC.Show import qualified Io.Superposition.Model.CreateVariableInput import qualified Io.Superposition.Model.CreateVariableOutput import qualified Io.Superposition.Model.InternalServerError +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data CreateVariableError = - InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError + WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict + | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text | UnexpectedError (Data.Maybe.Maybe Io.Superposition.Utility.HttpMetadata) Data.Text.Text @@ -27,6 +29,7 @@ instance Io.Superposition.Utility.OperationError CreateVariableError where mkUnexpectedError = UnexpectedError getErrorParser status + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/CreateWebhook.hs b/clients/haskell/sdk/Io/Superposition/Command/CreateWebhook.hs index b56ba78b2..7f7d72831 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/CreateWebhook.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/CreateWebhook.hs @@ -10,11 +10,13 @@ import qualified GHC.Show import qualified Io.Superposition.Model.CreateWebhookInput import qualified Io.Superposition.Model.CreateWebhookOutput import qualified Io.Superposition.Model.InternalServerError +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data CreateWebhookError = - InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError + WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict + | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text | UnexpectedError (Data.Maybe.Maybe Io.Superposition.Utility.HttpMetadata) Data.Text.Text @@ -27,6 +29,7 @@ instance Io.Superposition.Utility.OperationError CreateWebhookError where mkUnexpectedError = UnexpectedError getErrorParser status + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/DeleteContext.hs b/clients/haskell/sdk/Io/Superposition/Command/DeleteContext.hs index 0ce9adeb8..e9214f5d3 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/DeleteContext.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/DeleteContext.hs @@ -12,12 +12,14 @@ import qualified Io.Superposition.Model.DeleteContextOutput import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound import qualified Io.Superposition.Model.WebhookFailed +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data DeleteContextError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound | WebhookFailed Io.Superposition.Model.WebhookFailed.WebhookFailed + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -33,6 +35,7 @@ instance Io.Superposition.Utility.OperationError DeleteContextError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WebhookFailed.WebhookFailed) = Just (fmap WebhookFailed (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WebhookFailed.WebhookFailed)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/DeleteDimension.hs b/clients/haskell/sdk/Io/Superposition/Command/DeleteDimension.hs index a348bd3bb..e29591653 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/DeleteDimension.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/DeleteDimension.hs @@ -12,12 +12,14 @@ import qualified Io.Superposition.Model.DeleteDimensionOutput import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound import qualified Io.Superposition.Model.WebhookFailed +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data DeleteDimensionError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound | WebhookFailed Io.Superposition.Model.WebhookFailed.WebhookFailed + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -33,6 +35,7 @@ instance Io.Superposition.Utility.OperationError DeleteDimensionError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WebhookFailed.WebhookFailed) = Just (fmap WebhookFailed (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WebhookFailed.WebhookFailed)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/DeleteFunction.hs b/clients/haskell/sdk/Io/Superposition/Command/DeleteFunction.hs index e4d30a2a1..3850c2753 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/DeleteFunction.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/DeleteFunction.hs @@ -11,11 +11,13 @@ import qualified Io.Superposition.Model.DeleteFunctionInput import qualified Io.Superposition.Model.DeleteFunctionOutput import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data DeleteFunctionError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -30,6 +32,7 @@ instance Io.Superposition.Utility.OperationError DeleteFunctionError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/DeleteSecret.hs b/clients/haskell/sdk/Io/Superposition/Command/DeleteSecret.hs index 088917c41..4964cd8b4 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/DeleteSecret.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/DeleteSecret.hs @@ -11,11 +11,13 @@ import qualified Io.Superposition.Model.DeleteSecretInput import qualified Io.Superposition.Model.DeleteSecretOutput import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data DeleteSecretError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -30,6 +32,7 @@ instance Io.Superposition.Utility.OperationError DeleteSecretError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/DeleteTypeTemplates.hs b/clients/haskell/sdk/Io/Superposition/Command/DeleteTypeTemplates.hs index 501a35627..0b941a8a8 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/DeleteTypeTemplates.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/DeleteTypeTemplates.hs @@ -11,11 +11,13 @@ import qualified Io.Superposition.Model.DeleteTypeTemplatesInput import qualified Io.Superposition.Model.DeleteTypeTemplatesOutput import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data DeleteTypeTemplatesError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -30,6 +32,7 @@ instance Io.Superposition.Utility.OperationError DeleteTypeTemplatesError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/DeleteVariable.hs b/clients/haskell/sdk/Io/Superposition/Command/DeleteVariable.hs index 085cc359e..de6e86acb 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/DeleteVariable.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/DeleteVariable.hs @@ -11,11 +11,13 @@ import qualified Io.Superposition.Model.DeleteVariableInput import qualified Io.Superposition.Model.DeleteVariableOutput import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data DeleteVariableError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -30,6 +32,7 @@ instance Io.Superposition.Utility.OperationError DeleteVariableError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/DeleteWebhook.hs b/clients/haskell/sdk/Io/Superposition/Command/DeleteWebhook.hs index f3371173e..45f4aad06 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/DeleteWebhook.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/DeleteWebhook.hs @@ -11,11 +11,13 @@ import qualified Io.Superposition.Model.DeleteWebhookInput import qualified Io.Superposition.Model.DeleteWebhookOutput import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data DeleteWebhookError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -30,6 +32,7 @@ instance Io.Superposition.Utility.OperationError DeleteWebhookError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/MoveContext.hs b/clients/haskell/sdk/Io/Superposition/Command/MoveContext.hs index 8f493cf64..243a9fd32 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/MoveContext.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/MoveContext.hs @@ -12,12 +12,14 @@ import qualified Io.Superposition.Model.MoveContextInput import qualified Io.Superposition.Model.MoveContextOutput import qualified Io.Superposition.Model.ResourceNotFound import qualified Io.Superposition.Model.WebhookFailed +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data MoveContextError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound | WebhookFailed Io.Superposition.Model.WebhookFailed.WebhookFailed + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -33,6 +35,7 @@ instance Io.Superposition.Utility.OperationError MoveContextError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WebhookFailed.WebhookFailed) = Just (fmap WebhookFailed (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WebhookFailed.WebhookFailed)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/Publish.hs b/clients/haskell/sdk/Io/Superposition/Command/Publish.hs index 836cf17ab..1e0a08810 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/Publish.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/Publish.hs @@ -11,11 +11,13 @@ import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.PublishInput import qualified Io.Superposition.Model.PublishOutput import qualified Io.Superposition.Model.ResourceNotFound +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data PublishError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -30,6 +32,7 @@ instance Io.Superposition.Utility.OperationError PublishError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/UpdateDimension.hs b/clients/haskell/sdk/Io/Superposition/Command/UpdateDimension.hs index 406284cf8..bedc18515 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/UpdateDimension.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/UpdateDimension.hs @@ -12,12 +12,14 @@ import qualified Io.Superposition.Model.ResourceNotFound import qualified Io.Superposition.Model.UpdateDimensionInput import qualified Io.Superposition.Model.UpdateDimensionOutput import qualified Io.Superposition.Model.WebhookFailed +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data UpdateDimensionError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound | WebhookFailed Io.Superposition.Model.WebhookFailed.WebhookFailed + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -33,6 +35,7 @@ instance Io.Superposition.Utility.OperationError UpdateDimensionError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WebhookFailed.WebhookFailed) = Just (fmap WebhookFailed (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WebhookFailed.WebhookFailed)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/UpdateFunction.hs b/clients/haskell/sdk/Io/Superposition/Command/UpdateFunction.hs index d3d171b8a..f36da8832 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/UpdateFunction.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/UpdateFunction.hs @@ -11,11 +11,13 @@ import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound import qualified Io.Superposition.Model.UpdateFunctionInput import qualified Io.Superposition.Model.UpdateFunctionOutput +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data UpdateFunctionError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -30,6 +32,7 @@ instance Io.Superposition.Utility.OperationError UpdateFunctionError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/UpdateOverride.hs b/clients/haskell/sdk/Io/Superposition/Command/UpdateOverride.hs index e2e6c5dd3..9857697f4 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/UpdateOverride.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/UpdateOverride.hs @@ -12,12 +12,14 @@ import qualified Io.Superposition.Model.ResourceNotFound import qualified Io.Superposition.Model.UpdateOverrideInput import qualified Io.Superposition.Model.UpdateOverrideOutput import qualified Io.Superposition.Model.WebhookFailed +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data UpdateOverrideError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound | WebhookFailed Io.Superposition.Model.WebhookFailed.WebhookFailed + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -33,6 +35,7 @@ instance Io.Superposition.Utility.OperationError UpdateOverrideError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WebhookFailed.WebhookFailed) = Just (fmap WebhookFailed (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WebhookFailed.WebhookFailed)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/UpdateSecret.hs b/clients/haskell/sdk/Io/Superposition/Command/UpdateSecret.hs index 625c95990..8953fa2a1 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/UpdateSecret.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/UpdateSecret.hs @@ -11,11 +11,13 @@ import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound import qualified Io.Superposition.Model.UpdateSecretInput import qualified Io.Superposition.Model.UpdateSecretOutput +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data UpdateSecretError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -30,6 +32,7 @@ instance Io.Superposition.Utility.OperationError UpdateSecretError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/UpdateTypeTemplates.hs b/clients/haskell/sdk/Io/Superposition/Command/UpdateTypeTemplates.hs index f1de33ad4..a5961119f 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/UpdateTypeTemplates.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/UpdateTypeTemplates.hs @@ -11,11 +11,13 @@ import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound import qualified Io.Superposition.Model.UpdateTypeTemplatesInput import qualified Io.Superposition.Model.UpdateTypeTemplatesOutput +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data UpdateTypeTemplatesError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -30,6 +32,7 @@ instance Io.Superposition.Utility.OperationError UpdateTypeTemplatesError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/UpdateVariable.hs b/clients/haskell/sdk/Io/Superposition/Command/UpdateVariable.hs index 4278573d8..993a794dc 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/UpdateVariable.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/UpdateVariable.hs @@ -11,11 +11,13 @@ import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound import qualified Io.Superposition.Model.UpdateVariableInput import qualified Io.Superposition.Model.UpdateVariableOutput +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data UpdateVariableError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -30,6 +32,7 @@ instance Io.Superposition.Utility.OperationError UpdateVariableError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/UpdateWebhook.hs b/clients/haskell/sdk/Io/Superposition/Command/UpdateWebhook.hs index d3fb61a2e..2cb747b1e 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/UpdateWebhook.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/UpdateWebhook.hs @@ -11,11 +11,13 @@ import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.ResourceNotFound import qualified Io.Superposition.Model.UpdateWebhookInput import qualified Io.Superposition.Model.UpdateWebhookOutput +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data UpdateWebhookError = ResourceNotFound Io.Superposition.Model.ResourceNotFound.ResourceNotFound + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text @@ -30,6 +32,7 @@ instance Io.Superposition.Utility.OperationError UpdateWebhookError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.ResourceNotFound.ResourceNotFound) = Just (fmap ResourceNotFound (Io.Superposition.Utility.responseParser @Io.Superposition.Model.ResourceNotFound.ResourceNotFound)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | otherwise = Nothing diff --git a/clients/haskell/sdk/Io/Superposition/Command/WeightRecompute.hs b/clients/haskell/sdk/Io/Superposition/Command/WeightRecompute.hs index 1972f9c39..fbbc81247 100644 --- a/clients/haskell/sdk/Io/Superposition/Command/WeightRecompute.hs +++ b/clients/haskell/sdk/Io/Superposition/Command/WeightRecompute.hs @@ -11,12 +11,14 @@ import qualified Io.Superposition.Model.InternalServerError import qualified Io.Superposition.Model.WebhookFailed import qualified Io.Superposition.Model.WeightRecomputeInput import qualified Io.Superposition.Model.WeightRecomputeOutput +import qualified Io.Superposition.Model.WorkspaceLockConflict import qualified Io.Superposition.SuperpositionClient import qualified Io.Superposition.Utility data WeightRecomputeError = InternalServerError Io.Superposition.Model.InternalServerError.InternalServerError | WebhookFailed Io.Superposition.Model.WebhookFailed.WebhookFailed + | WorkspaceLockConflict Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict | BuilderError Data.Text.Text | DeSerializationError Io.Superposition.Utility.HttpMetadata Data.Text.Text | UnexpectedError (Data.Maybe.Maybe Io.Superposition.Utility.HttpMetadata) Data.Text.Text @@ -31,6 +33,7 @@ instance Io.Superposition.Utility.OperationError WeightRecomputeError where getErrorParser status | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.InternalServerError.InternalServerError) = Just (fmap InternalServerError (Io.Superposition.Utility.responseParser @Io.Superposition.Model.InternalServerError.InternalServerError)) | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WebhookFailed.WebhookFailed) = Just (fmap WebhookFailed (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WebhookFailed.WebhookFailed)) + | status == (Io.Superposition.Utility.expectedStatus @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict) = Just (fmap WorkspaceLockConflict (Io.Superposition.Utility.responseParser @Io.Superposition.Model.WorkspaceLockConflict.WorkspaceLockConflict)) | otherwise = Nothing diff --git a/clients/haskell/sdk/SuperpositionSDK.cabal b/clients/haskell/sdk/SuperpositionSDK.cabal index b7af69db9..186a7f2ae 100644 --- a/clients/haskell/sdk/SuperpositionSDK.cabal +++ b/clients/haskell/sdk/SuperpositionSDK.cabal @@ -325,8 +325,8 @@ library Io.Superposition.Model.GetDefaultConfigOutput, Io.Superposition.Command.UpdateVariable, Io.Superposition.Model.CreateVariableOutput, - Io.Superposition.Model.ResourceNotFound, Io.Superposition.Model.ContextPut, + Io.Superposition.Model.ResourceNotFound, Io.Superposition.Command.DeleteDimension, Io.Superposition.Command.GetDimension, Io.Superposition.Model.CreateDimensionInput, diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionAsyncClient.java b/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionAsyncClient.java index a319ce8f7..4bf13ae95 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionAsyncClient.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionAsyncClient.java @@ -241,6 +241,7 @@ default CompletableFuture applicableVariants(Applicabl * @throws InternalServerError * @throws WebhookFailed * @throws ResourceNotFound + * @throws WorkspaceLockConflict */ default CompletableFuture bulkOperation(BulkOperationInput input) { return bulkOperation(input, null); @@ -253,6 +254,7 @@ default CompletableFuture bulkOperation(BulkOperationInput * @throws InternalServerError * @throws WebhookFailed * @throws ResourceNotFound + * @throws WorkspaceLockConflict */ CompletableFuture bulkOperation(BulkOperationInput input, RequestOverrideConfig overrideConfig); @@ -284,6 +286,7 @@ default CompletableFuture concludeExperiment(ConcludeE * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture createContext(CreateContextInput input) { @@ -296,6 +299,7 @@ default CompletableFuture createContext(CreateContextInput * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture createContext(CreateContextInput input, RequestOverrideConfig overrideConfig); @@ -327,6 +331,7 @@ default CompletableFuture createDefaultConfig(CreateD * used for context-based config management. * * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture createDimension(CreateDimensionInput input) { @@ -338,6 +343,7 @@ default CompletableFuture createDimension(CreateDimension * used for context-based config management. * * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture createDimension(CreateDimensionInput input, RequestOverrideConfig overrideConfig); @@ -382,6 +388,7 @@ default CompletableFuture createExperimentGroup(Cre * Creates a new custom function for value_validation, value_compute, context_validation or * change_reason_validation with specified code, runtime version, and function type. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture createFunction(CreateFunctionInput input) { @@ -392,6 +399,7 @@ default CompletableFuture createFunction(CreateFunctionInp * Creates a new custom function for value_validation, value_compute, context_validation or * change_reason_validation with specified code, runtime version, and function type. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture createFunction(CreateFunctionInput input, RequestOverrideConfig overrideConfig); @@ -418,6 +426,7 @@ default CompletableFuture createOrganisation(CreateOrg * Creates a new encrypted secret with the specified name and value. The secret is encrypted with the * workspace's current encryption key. Secret values are never returned in responses for security. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture createSecret(CreateSecretInput input) { @@ -428,6 +437,7 @@ default CompletableFuture createSecret(CreateSecretInput inp * Creates a new encrypted secret with the specified name and value. The secret is encrypted with the * workspace's current encryption key. Secret values are never returned in responses for security. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture createSecret(CreateSecretInput input, RequestOverrideConfig overrideConfig); @@ -436,6 +446,7 @@ default CompletableFuture createSecret(CreateSecretInput inp * Creates a new type template with specified schema definition, providing reusable type definitions * for config validation. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture createTypeTemplates(CreateTypeTemplatesInput input) { @@ -446,6 +457,7 @@ default CompletableFuture createTypeTemplates(CreateT * Creates a new type template with specified schema definition, providing reusable type definitions * for config validation. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture createTypeTemplates(CreateTypeTemplatesInput input, RequestOverrideConfig overrideConfig); @@ -453,6 +465,7 @@ default CompletableFuture createTypeTemplates(CreateT /** * Creates a new variable with the specified name and value. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture createVariable(CreateVariableInput input) { @@ -462,6 +475,7 @@ default CompletableFuture createVariable(CreateVariableInp /** * Creates a new variable with the specified name and value. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture createVariable(CreateVariableInput input, RequestOverrideConfig overrideConfig); @@ -470,6 +484,7 @@ default CompletableFuture createVariable(CreateVariableInp * Creates a new webhook config to receive HTTP notifications when specified events occur in the * system. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture createWebhook(CreateWebhookInput input) { @@ -480,6 +495,7 @@ default CompletableFuture createWebhook(CreateWebhookInput * Creates a new webhook config to receive HTTP notifications when specified events occur in the * system. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture createWebhook(CreateWebhookInput input, RequestOverrideConfig overrideConfig); @@ -508,6 +524,7 @@ default CompletableFuture createWorkspace(CreateWorkspace * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture deleteContext(DeleteContextInput input) { @@ -520,6 +537,7 @@ default CompletableFuture deleteContext(DeleteContextInput * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture deleteContext(DeleteContextInput input, RequestOverrideConfig overrideConfig); @@ -554,6 +572,7 @@ default CompletableFuture deleteDefaultConfig(DeleteD * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture deleteDimension(DeleteDimensionInput input) { @@ -566,6 +585,7 @@ default CompletableFuture deleteDimension(DeleteDimension * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture deleteDimension(DeleteDimensionInput input, RequestOverrideConfig overrideConfig); @@ -593,6 +613,7 @@ default CompletableFuture deleteExperimentGroup(Del * with all associated code. It fails if already in use * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture deleteFunction(DeleteFunctionInput input) { @@ -604,6 +625,7 @@ default CompletableFuture deleteFunction(DeleteFunctionInp * with all associated code. It fails if already in use * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture deleteFunction(DeleteFunctionInput input, RequestOverrideConfig overrideConfig); @@ -613,6 +635,7 @@ default CompletableFuture deleteFunction(DeleteFunctionInp * recovered. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture deleteSecret(DeleteSecretInput input) { @@ -624,6 +647,7 @@ default CompletableFuture deleteSecret(DeleteSecretInput inp * recovered. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture deleteSecret(DeleteSecretInput input, RequestOverrideConfig overrideConfig); @@ -632,6 +656,7 @@ default CompletableFuture deleteSecret(DeleteSecretInput inp * Permanently removes a type template from the workspace. No checks performed while deleting * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture deleteTypeTemplates(DeleteTypeTemplatesInput input) { @@ -642,6 +667,7 @@ default CompletableFuture deleteTypeTemplates(DeleteT * Permanently removes a type template from the workspace. No checks performed while deleting * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture deleteTypeTemplates(DeleteTypeTemplatesInput input, RequestOverrideConfig overrideConfig); @@ -650,6 +676,7 @@ default CompletableFuture deleteTypeTemplates(DeleteT * Permanently deletes a variable from the workspace. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture deleteVariable(DeleteVariableInput input) { @@ -660,6 +687,7 @@ default CompletableFuture deleteVariable(DeleteVariableInp * Permanently deletes a variable from the workspace. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture deleteVariable(DeleteVariableInput input, RequestOverrideConfig overrideConfig); @@ -669,6 +697,7 @@ default CompletableFuture deleteVariable(DeleteVariableInp * that endpoint. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture deleteWebhook(DeleteWebhookInput input) { @@ -680,6 +709,7 @@ default CompletableFuture deleteWebhook(DeleteWebhookInput * that endpoint. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture deleteWebhook(DeleteWebhookInput input, RequestOverrideConfig overrideConfig); @@ -1412,6 +1442,7 @@ default CompletableFuture migrateWorkspaceSchema(M * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture moveContext(MoveContextInput input) { @@ -1424,6 +1455,7 @@ default CompletableFuture moveContext(MoveContextInput input) * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture moveContext(MoveContextInput input, RequestOverrideConfig overrideConfig); @@ -1455,6 +1487,7 @@ default CompletableFuture pauseExperiment(PauseExperiment * value_compute, context_validation or change_reason_validation in the system. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture publish(PublishInput input) { @@ -1466,6 +1499,7 @@ default CompletableFuture publish(PublishInput input) { * value_compute, context_validation or change_reason_validation in the system. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture publish(PublishInput input, RequestOverrideConfig overrideConfig); @@ -1616,6 +1650,7 @@ default CompletableFuture updateDefaultConfig(UpdateD * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture updateDimension(UpdateDimensionInput input) { @@ -1628,6 +1663,7 @@ default CompletableFuture updateDimension(UpdateDimension * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture updateDimension(UpdateDimensionInput input, RequestOverrideConfig overrideConfig); @@ -1655,6 +1691,7 @@ default CompletableFuture updateExperimentGroup(Upd * while preserving the published version. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture updateFunction(UpdateFunctionInput input) { @@ -1666,6 +1703,7 @@ default CompletableFuture updateFunction(UpdateFunctionInp * while preserving the published version. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture updateFunction(UpdateFunctionInput input, RequestOverrideConfig overrideConfig); @@ -1696,6 +1734,7 @@ default CompletableFuture updateOrganisation(UpdateOrg * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture updateOverride(UpdateOverrideInput input) { @@ -1708,6 +1747,7 @@ default CompletableFuture updateOverride(UpdateOverrideInp * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture updateOverride(UpdateOverrideInput input, RequestOverrideConfig overrideConfig); @@ -1741,6 +1781,7 @@ default CompletableFuture updateOverridesExperi * workspace encryption key. Returns masked value. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture updateSecret(UpdateSecretInput input) { @@ -1752,6 +1793,7 @@ default CompletableFuture updateSecret(UpdateSecretInput inp * workspace encryption key. Returns masked value. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture updateSecret(UpdateSecretInput input, RequestOverrideConfig overrideConfig); @@ -1761,6 +1803,7 @@ default CompletableFuture updateSecret(UpdateSecretInput inp * and usage history. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture updateTypeTemplates(UpdateTypeTemplatesInput input) { @@ -1772,6 +1815,7 @@ default CompletableFuture updateTypeTemplates(UpdateT * and usage history. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture updateTypeTemplates(UpdateTypeTemplatesInput input, RequestOverrideConfig overrideConfig); @@ -1780,6 +1824,7 @@ default CompletableFuture updateTypeTemplates(UpdateT * Updates an existing variable's value, description, or tags. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture updateVariable(UpdateVariableInput input) { @@ -1790,6 +1835,7 @@ default CompletableFuture updateVariable(UpdateVariableInp * Updates an existing variable's value, description, or tags. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture updateVariable(UpdateVariableInput input, RequestOverrideConfig overrideConfig); @@ -1799,6 +1845,7 @@ default CompletableFuture updateVariable(UpdateVariableInp * properties. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CompletableFuture updateWebhook(UpdateWebhookInput input) { @@ -1810,6 +1857,7 @@ default CompletableFuture updateWebhook(UpdateWebhookInput * properties. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ CompletableFuture updateWebhook(UpdateWebhookInput input, RequestOverrideConfig overrideConfig); @@ -1856,6 +1904,7 @@ default CompletableFuture validateContext(ValidateContext * * @throws InternalServerError * @throws WebhookFailed + * @throws WorkspaceLockConflict */ default CompletableFuture weightRecompute(WeightRecomputeInput input) { return weightRecompute(input, null); @@ -1867,6 +1916,7 @@ default CompletableFuture weightRecompute(WeightRecompute * * @throws InternalServerError * @throws WebhookFailed + * @throws WorkspaceLockConflict */ CompletableFuture weightRecompute(WeightRecomputeInput input, RequestOverrideConfig overrideConfig); @@ -1901,12 +1951,12 @@ final class Builder extends Client.Builder { Node.objectNode() ); - private static final HttpBasicAuthTrait httpBasicAuthScheme = new HttpBasicAuthTrait(); - private static final AuthSchemeFactory httpBasicAuthSchemeFactory = new HttpBasicAuthAuthScheme.Factory(); - private static final HttpBearerAuthTrait httpBearerAuthScheme = new HttpBearerAuthTrait(); private static final AuthSchemeFactory httpBearerAuthSchemeFactory = new HttpBearerAuthScheme.Factory(); + private static final HttpBasicAuthTrait httpBasicAuthScheme = new HttpBasicAuthTrait(); + private static final AuthSchemeFactory httpBasicAuthSchemeFactory = new HttpBasicAuthAuthScheme.Factory(); + private Builder() { configBuilder().putSupportedAuthSchemes(httpBasicAuthSchemeFactory.createAuthScheme(httpBasicAuthScheme), httpBearerAuthSchemeFactory.createAuthScheme(httpBearerAuthScheme)); } diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionAsyncClientImpl.java b/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionAsyncClientImpl.java index abb26734f..ecee5bcb2 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionAsyncClientImpl.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionAsyncClientImpl.java @@ -279,8 +279,8 @@ final class SuperpositionAsyncClientImpl extends Client implements SuperpositionAsyncClient { private static final TypeRegistry TYPE_REGISTRY = TypeRegistry.builder() .putType(ValidationException.$ID, ValidationException.class, ValidationException::builder) - .putType(NotAuthorizedException.$ID, NotAuthorizedException.class, NotAuthorizedException::builder) .putType(AccessDeniedException.$ID, AccessDeniedException.class, AccessDeniedException::builder) + .putType(NotAuthorizedException.$ID, NotAuthorizedException.class, NotAuthorizedException::builder) .putType(InternalFailureException.$ID, InternalFailureException.class, InternalFailureException::builder) .putType(UnknownOperationException.$ID, UnknownOperationException.class, UnknownOperationException::builder) .putType(MalformedRequestException.$ID, MalformedRequestException.class, MalformedRequestException::builder) diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionClient.java b/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionClient.java index da93167db..280093e66 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionClient.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionClient.java @@ -240,6 +240,7 @@ default ApplicableVariantsOutput applicableVariants(ApplicableVariantsInput inpu * @throws InternalServerError * @throws WebhookFailed * @throws ResourceNotFound + * @throws WorkspaceLockConflict */ default BulkOperationOutput bulkOperation(BulkOperationInput input) { return bulkOperation(input, null); @@ -252,6 +253,7 @@ default BulkOperationOutput bulkOperation(BulkOperationInput input) { * @throws InternalServerError * @throws WebhookFailed * @throws ResourceNotFound + * @throws WorkspaceLockConflict */ BulkOperationOutput bulkOperation(BulkOperationInput input, RequestOverrideConfig overrideConfig); @@ -283,6 +285,7 @@ default ConcludeExperimentOutput concludeExperiment(ConcludeExperimentInput inpu * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CreateContextOutput createContext(CreateContextInput input) { @@ -295,6 +298,7 @@ default CreateContextOutput createContext(CreateContextInput input) { * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ CreateContextOutput createContext(CreateContextInput input, RequestOverrideConfig overrideConfig); @@ -326,6 +330,7 @@ default CreateDefaultConfigOutput createDefaultConfig(CreateDefaultConfigInput i * used for context-based config management. * * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CreateDimensionOutput createDimension(CreateDimensionInput input) { @@ -337,6 +342,7 @@ default CreateDimensionOutput createDimension(CreateDimensionInput input) { * used for context-based config management. * * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ CreateDimensionOutput createDimension(CreateDimensionInput input, RequestOverrideConfig overrideConfig); @@ -381,6 +387,7 @@ default CreateExperimentGroupOutput createExperimentGroup(CreateExperimentGroupI * Creates a new custom function for value_validation, value_compute, context_validation or * change_reason_validation with specified code, runtime version, and function type. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CreateFunctionOutput createFunction(CreateFunctionInput input) { @@ -391,6 +398,7 @@ default CreateFunctionOutput createFunction(CreateFunctionInput input) { * Creates a new custom function for value_validation, value_compute, context_validation or * change_reason_validation with specified code, runtime version, and function type. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ CreateFunctionOutput createFunction(CreateFunctionInput input, RequestOverrideConfig overrideConfig); @@ -417,6 +425,7 @@ default CreateOrganisationOutput createOrganisation(CreateOrganisationInput inpu * Creates a new encrypted secret with the specified name and value. The secret is encrypted with the * workspace's current encryption key. Secret values are never returned in responses for security. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CreateSecretOutput createSecret(CreateSecretInput input) { @@ -427,6 +436,7 @@ default CreateSecretOutput createSecret(CreateSecretInput input) { * Creates a new encrypted secret with the specified name and value. The secret is encrypted with the * workspace's current encryption key. Secret values are never returned in responses for security. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ CreateSecretOutput createSecret(CreateSecretInput input, RequestOverrideConfig overrideConfig); @@ -435,6 +445,7 @@ default CreateSecretOutput createSecret(CreateSecretInput input) { * Creates a new type template with specified schema definition, providing reusable type definitions * for config validation. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CreateTypeTemplatesOutput createTypeTemplates(CreateTypeTemplatesInput input) { @@ -445,6 +456,7 @@ default CreateTypeTemplatesOutput createTypeTemplates(CreateTypeTemplatesInput i * Creates a new type template with specified schema definition, providing reusable type definitions * for config validation. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ CreateTypeTemplatesOutput createTypeTemplates(CreateTypeTemplatesInput input, RequestOverrideConfig overrideConfig); @@ -452,6 +464,7 @@ default CreateTypeTemplatesOutput createTypeTemplates(CreateTypeTemplatesInput i /** * Creates a new variable with the specified name and value. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CreateVariableOutput createVariable(CreateVariableInput input) { @@ -461,6 +474,7 @@ default CreateVariableOutput createVariable(CreateVariableInput input) { /** * Creates a new variable with the specified name and value. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ CreateVariableOutput createVariable(CreateVariableInput input, RequestOverrideConfig overrideConfig); @@ -469,6 +483,7 @@ default CreateVariableOutput createVariable(CreateVariableInput input) { * Creates a new webhook config to receive HTTP notifications when specified events occur in the * system. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ default CreateWebhookOutput createWebhook(CreateWebhookInput input) { @@ -479,6 +494,7 @@ default CreateWebhookOutput createWebhook(CreateWebhookInput input) { * Creates a new webhook config to receive HTTP notifications when specified events occur in the * system. * + * @throws WorkspaceLockConflict * @throws InternalServerError */ CreateWebhookOutput createWebhook(CreateWebhookInput input, RequestOverrideConfig overrideConfig); @@ -507,6 +523,7 @@ default CreateWorkspaceOutput createWorkspace(CreateWorkspaceInput input) { * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default DeleteContextOutput deleteContext(DeleteContextInput input) { @@ -519,6 +536,7 @@ default DeleteContextOutput deleteContext(DeleteContextInput input) { * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ DeleteContextOutput deleteContext(DeleteContextInput input, RequestOverrideConfig overrideConfig); @@ -553,6 +571,7 @@ default DeleteDefaultConfigOutput deleteDefaultConfig(DeleteDefaultConfigInput i * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default DeleteDimensionOutput deleteDimension(DeleteDimensionInput input) { @@ -565,6 +584,7 @@ default DeleteDimensionOutput deleteDimension(DeleteDimensionInput input) { * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ DeleteDimensionOutput deleteDimension(DeleteDimensionInput input, RequestOverrideConfig overrideConfig); @@ -592,6 +612,7 @@ default DeleteExperimentGroupOutput deleteExperimentGroup(DeleteExperimentGroupI * with all associated code. It fails if already in use * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default DeleteFunctionOutput deleteFunction(DeleteFunctionInput input) { @@ -603,6 +624,7 @@ default DeleteFunctionOutput deleteFunction(DeleteFunctionInput input) { * with all associated code. It fails if already in use * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ DeleteFunctionOutput deleteFunction(DeleteFunctionInput input, RequestOverrideConfig overrideConfig); @@ -612,6 +634,7 @@ default DeleteFunctionOutput deleteFunction(DeleteFunctionInput input) { * recovered. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default DeleteSecretOutput deleteSecret(DeleteSecretInput input) { @@ -623,6 +646,7 @@ default DeleteSecretOutput deleteSecret(DeleteSecretInput input) { * recovered. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ DeleteSecretOutput deleteSecret(DeleteSecretInput input, RequestOverrideConfig overrideConfig); @@ -631,6 +655,7 @@ default DeleteSecretOutput deleteSecret(DeleteSecretInput input) { * Permanently removes a type template from the workspace. No checks performed while deleting * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default DeleteTypeTemplatesOutput deleteTypeTemplates(DeleteTypeTemplatesInput input) { @@ -641,6 +666,7 @@ default DeleteTypeTemplatesOutput deleteTypeTemplates(DeleteTypeTemplatesInput i * Permanently removes a type template from the workspace. No checks performed while deleting * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ DeleteTypeTemplatesOutput deleteTypeTemplates(DeleteTypeTemplatesInput input, RequestOverrideConfig overrideConfig); @@ -649,6 +675,7 @@ default DeleteTypeTemplatesOutput deleteTypeTemplates(DeleteTypeTemplatesInput i * Permanently deletes a variable from the workspace. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default DeleteVariableOutput deleteVariable(DeleteVariableInput input) { @@ -659,6 +686,7 @@ default DeleteVariableOutput deleteVariable(DeleteVariableInput input) { * Permanently deletes a variable from the workspace. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ DeleteVariableOutput deleteVariable(DeleteVariableInput input, RequestOverrideConfig overrideConfig); @@ -668,6 +696,7 @@ default DeleteVariableOutput deleteVariable(DeleteVariableInput input) { * that endpoint. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default DeleteWebhookOutput deleteWebhook(DeleteWebhookInput input) { @@ -679,6 +708,7 @@ default DeleteWebhookOutput deleteWebhook(DeleteWebhookInput input) { * that endpoint. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ DeleteWebhookOutput deleteWebhook(DeleteWebhookInput input, RequestOverrideConfig overrideConfig); @@ -1411,6 +1441,7 @@ default MigrateWorkspaceSchemaOutput migrateWorkspaceSchema(MigrateWorkspaceSche * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default MoveContextOutput moveContext(MoveContextInput input) { @@ -1423,6 +1454,7 @@ default MoveContextOutput moveContext(MoveContextInput input) { * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ MoveContextOutput moveContext(MoveContextInput input, RequestOverrideConfig overrideConfig); @@ -1454,6 +1486,7 @@ default PauseExperimentOutput pauseExperiment(PauseExperimentInput input) { * value_compute, context_validation or change_reason_validation in the system. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default PublishOutput publish(PublishInput input) { @@ -1465,6 +1498,7 @@ default PublishOutput publish(PublishInput input) { * value_compute, context_validation or change_reason_validation in the system. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ PublishOutput publish(PublishInput input, RequestOverrideConfig overrideConfig); @@ -1615,6 +1649,7 @@ default UpdateDefaultConfigOutput updateDefaultConfig(UpdateDefaultConfigInput i * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default UpdateDimensionOutput updateDimension(UpdateDimensionInput input) { @@ -1627,6 +1662,7 @@ default UpdateDimensionOutput updateDimension(UpdateDimensionInput input) { * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ UpdateDimensionOutput updateDimension(UpdateDimensionInput input, RequestOverrideConfig overrideConfig); @@ -1654,6 +1690,7 @@ default UpdateExperimentGroupOutput updateExperimentGroup(UpdateExperimentGroupI * while preserving the published version. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default UpdateFunctionOutput updateFunction(UpdateFunctionInput input) { @@ -1665,6 +1702,7 @@ default UpdateFunctionOutput updateFunction(UpdateFunctionInput input) { * while preserving the published version. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ UpdateFunctionOutput updateFunction(UpdateFunctionInput input, RequestOverrideConfig overrideConfig); @@ -1695,6 +1733,7 @@ default UpdateOrganisationOutput updateOrganisation(UpdateOrganisationInput inpu * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ default UpdateOverrideOutput updateOverride(UpdateOverrideInput input) { @@ -1707,6 +1746,7 @@ default UpdateOverrideOutput updateOverride(UpdateOverrideInput input) { * * @throws ResourceNotFound * @throws WebhookFailed + * @throws WorkspaceLockConflict * @throws InternalServerError */ UpdateOverrideOutput updateOverride(UpdateOverrideInput input, RequestOverrideConfig overrideConfig); @@ -1740,6 +1780,7 @@ default UpdateOverridesExperimentOutput updateOverridesExperiment(UpdateOverride * workspace encryption key. Returns masked value. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default UpdateSecretOutput updateSecret(UpdateSecretInput input) { @@ -1751,6 +1792,7 @@ default UpdateSecretOutput updateSecret(UpdateSecretInput input) { * workspace encryption key. Returns masked value. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ UpdateSecretOutput updateSecret(UpdateSecretInput input, RequestOverrideConfig overrideConfig); @@ -1760,6 +1802,7 @@ default UpdateSecretOutput updateSecret(UpdateSecretInput input) { * and usage history. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default UpdateTypeTemplatesOutput updateTypeTemplates(UpdateTypeTemplatesInput input) { @@ -1771,6 +1814,7 @@ default UpdateTypeTemplatesOutput updateTypeTemplates(UpdateTypeTemplatesInput i * and usage history. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ UpdateTypeTemplatesOutput updateTypeTemplates(UpdateTypeTemplatesInput input, RequestOverrideConfig overrideConfig); @@ -1779,6 +1823,7 @@ default UpdateTypeTemplatesOutput updateTypeTemplates(UpdateTypeTemplatesInput i * Updates an existing variable's value, description, or tags. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default UpdateVariableOutput updateVariable(UpdateVariableInput input) { @@ -1789,6 +1834,7 @@ default UpdateVariableOutput updateVariable(UpdateVariableInput input) { * Updates an existing variable's value, description, or tags. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ UpdateVariableOutput updateVariable(UpdateVariableInput input, RequestOverrideConfig overrideConfig); @@ -1798,6 +1844,7 @@ default UpdateVariableOutput updateVariable(UpdateVariableInput input) { * properties. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ default UpdateWebhookOutput updateWebhook(UpdateWebhookInput input) { @@ -1809,6 +1856,7 @@ default UpdateWebhookOutput updateWebhook(UpdateWebhookInput input) { * properties. * * @throws ResourceNotFound + * @throws WorkspaceLockConflict * @throws InternalServerError */ UpdateWebhookOutput updateWebhook(UpdateWebhookInput input, RequestOverrideConfig overrideConfig); @@ -1855,6 +1903,7 @@ default ValidateContextOutput validateContext(ValidateContextInput input) { * * @throws InternalServerError * @throws WebhookFailed + * @throws WorkspaceLockConflict */ default WeightRecomputeOutput weightRecompute(WeightRecomputeInput input) { return weightRecompute(input, null); @@ -1866,6 +1915,7 @@ default WeightRecomputeOutput weightRecompute(WeightRecomputeInput input) { * * @throws InternalServerError * @throws WebhookFailed + * @throws WorkspaceLockConflict */ WeightRecomputeOutput weightRecompute(WeightRecomputeInput input, RequestOverrideConfig overrideConfig); @@ -1900,12 +1950,12 @@ final class Builder extends Client.Builder { Node.objectNode() ); - private static final HttpBasicAuthTrait httpBasicAuthScheme = new HttpBasicAuthTrait(); - private static final AuthSchemeFactory httpBasicAuthSchemeFactory = new HttpBasicAuthAuthScheme.Factory(); - private static final HttpBearerAuthTrait httpBearerAuthScheme = new HttpBearerAuthTrait(); private static final AuthSchemeFactory httpBearerAuthSchemeFactory = new HttpBearerAuthScheme.Factory(); + private static final HttpBasicAuthTrait httpBasicAuthScheme = new HttpBasicAuthTrait(); + private static final AuthSchemeFactory httpBasicAuthSchemeFactory = new HttpBasicAuthAuthScheme.Factory(); + private Builder() { configBuilder().putSupportedAuthSchemes(httpBasicAuthSchemeFactory.createAuthScheme(httpBasicAuthScheme), httpBearerAuthSchemeFactory.createAuthScheme(httpBearerAuthScheme)); } diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionClientImpl.java b/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionClientImpl.java index 4f2474012..65a687b8e 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionClientImpl.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/client/SuperpositionClientImpl.java @@ -279,8 +279,8 @@ final class SuperpositionClientImpl extends Client implements SuperpositionClient { private static final TypeRegistry TYPE_REGISTRY = TypeRegistry.builder() .putType(ValidationException.$ID, ValidationException.class, ValidationException::builder) - .putType(NotAuthorizedException.$ID, NotAuthorizedException.class, NotAuthorizedException::builder) .putType(AccessDeniedException.$ID, AccessDeniedException.class, AccessDeniedException::builder) + .putType(NotAuthorizedException.$ID, NotAuthorizedException.class, NotAuthorizedException::builder) .putType(InternalFailureException.$ID, InternalFailureException.class, InternalFailureException::builder) .putType(UnknownOperationException.$ID, UnknownOperationException.class, UnknownOperationException::builder) .putType(MalformedRequestException.$ID, MalformedRequestException.class, MalformedRequestException::builder) diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/BulkOperation.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/BulkOperation.java index 810f0ff65..8d864044b 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/BulkOperation.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/BulkOperation.java @@ -29,6 +29,7 @@ public final class BulkOperation implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateContext.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateContext.java index 4fd37b63f..324fe2d0b 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateContext.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateContext.java @@ -29,6 +29,7 @@ public final class CreateContext implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateDimension.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateDimension.java index 512836b16..45cf29d94 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateDimension.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateDimension.java @@ -28,6 +28,7 @@ public final class CreateDimension implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateFunction.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateFunction.java index ab72ea123..99a7b9148 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateFunction.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateFunction.java @@ -27,6 +27,7 @@ public final class CreateFunction implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateSecret.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateSecret.java index 8e97cab15..9594ae9bd 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateSecret.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateSecret.java @@ -27,6 +27,7 @@ public final class CreateSecret implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateTypeTemplates.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateTypeTemplates.java index 6a08c95d2..ce8fec1aa 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateTypeTemplates.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateTypeTemplates.java @@ -27,6 +27,7 @@ public final class CreateTypeTemplates implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateVariable.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateVariable.java index 32ce8f65a..408c62888 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateVariable.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateVariable.java @@ -26,6 +26,7 @@ public final class CreateVariable implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateWebhook.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateWebhook.java index 0b6142f64..51d1f4bf4 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateWebhook.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/CreateWebhook.java @@ -27,6 +27,7 @@ public final class CreateWebhook implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteContext.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteContext.java index edee73c95..c989c663b 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteContext.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteContext.java @@ -29,6 +29,7 @@ public final class DeleteContext implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteDimension.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteDimension.java index 3068c0c34..e4397a6d1 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteDimension.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteDimension.java @@ -29,6 +29,7 @@ public final class DeleteDimension implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteFunction.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteFunction.java index bb8731ace..45ff56114 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteFunction.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteFunction.java @@ -28,6 +28,7 @@ public final class DeleteFunction implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteSecret.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteSecret.java index f6784ad36..7ad0322fc 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteSecret.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteSecret.java @@ -28,6 +28,7 @@ public final class DeleteSecret implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteTypeTemplates.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteTypeTemplates.java index 40b07ae19..273eeee18 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteTypeTemplates.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteTypeTemplates.java @@ -27,6 +27,7 @@ public final class DeleteTypeTemplates implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteVariable.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteVariable.java index 2c2ebf0a9..874948ee9 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteVariable.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteVariable.java @@ -27,6 +27,7 @@ public final class DeleteVariable implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteWebhook.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteWebhook.java index e62108f57..35fb954bd 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteWebhook.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/DeleteWebhook.java @@ -28,6 +28,7 @@ public final class DeleteWebhook implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/MoveContext.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/MoveContext.java index 999f44ec9..44110709f 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/MoveContext.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/MoveContext.java @@ -29,6 +29,7 @@ public final class MoveContext implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/Publish.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/Publish.java index 8b7ea6c7c..f40b4f01e 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/Publish.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/Publish.java @@ -28,6 +28,7 @@ public final class Publish implements ApiOperation private static final TypeRegistry TYPE_REGISTRY = TypeRegistry.builder() .putType(InternalServerError.$ID, InternalServerError.class, InternalServerError::builder) .putType(ResourceNotFound.$ID, ResourceNotFound.class, ResourceNotFound::builder) + .putType(WorkspaceLockConflict.$ID, WorkspaceLockConflict.class, WorkspaceLockConflict::builder) .build(); private static final List SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateDimension.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateDimension.java index 66b2c578d..df788bb22 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateDimension.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateDimension.java @@ -29,6 +29,7 @@ public final class UpdateDimension implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateFunction.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateFunction.java index 5bef808f4..852e68e31 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateFunction.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateFunction.java @@ -28,6 +28,7 @@ public final class UpdateFunction implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateOverride.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateOverride.java index ebfed49e1..8a3422541 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateOverride.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateOverride.java @@ -29,6 +29,7 @@ public final class UpdateOverride implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateSecret.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateSecret.java index f180d16bc..6cb67803d 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateSecret.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateSecret.java @@ -28,6 +28,7 @@ public final class UpdateSecret implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateTypeTemplates.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateTypeTemplates.java index 38e9cac1f..72fd3aa41 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateTypeTemplates.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateTypeTemplates.java @@ -28,6 +28,7 @@ public final class UpdateTypeTemplates implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateVariable.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateVariable.java index e8c34af40..c5e4269f2 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateVariable.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateVariable.java @@ -27,6 +27,7 @@ public final class UpdateVariable implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateWebhook.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateWebhook.java index b1238a8b1..cbd2e818a 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateWebhook.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/UpdateWebhook.java @@ -28,6 +28,7 @@ public final class UpdateWebhook implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/java/sdk/src/main/java/io/juspay/superposition/model/WeightRecompute.java b/clients/java/sdk/src/main/java/io/juspay/superposition/model/WeightRecompute.java index 93cf81b07..8f01b1466 100644 --- a/clients/java/sdk/src/main/java/io/juspay/superposition/model/WeightRecompute.java +++ b/clients/java/sdk/src/main/java/io/juspay/superposition/model/WeightRecompute.java @@ -28,6 +28,7 @@ public final class WeightRecompute implements ApiOperation SCHEMES = List.of(ShapeId.from("smithy.api#httpBasicAuth"), ShapeId.from("smithy.api#httpBearerAuth")); diff --git a/clients/javascript/sdk/src/commands/BulkOperationCommand.ts b/clients/javascript/sdk/src/commands/BulkOperationCommand.ts index 600ae4ded..e34d58dfa 100644 --- a/clients/javascript/sdk/src/commands/BulkOperationCommand.ts +++ b/clients/javascript/sdk/src/commands/BulkOperationCommand.ts @@ -159,6 +159,9 @@ export interface BulkOperationCommandOutput extends BulkOperationOutput, __Metad * @throws {@link WebhookFailed} (server fault) * Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/CreateContextCommand.ts b/clients/javascript/sdk/src/commands/CreateContextCommand.ts index 01a7cab0c..a25c5c387 100644 --- a/clients/javascript/sdk/src/commands/CreateContextCommand.ts +++ b/clients/javascript/sdk/src/commands/CreateContextCommand.ts @@ -90,6 +90,9 @@ export interface CreateContextCommandOutput extends ContextResponse, __MetadataB * @throws {@link WebhookFailed} (server fault) * Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/CreateDimensionCommand.ts b/clients/javascript/sdk/src/commands/CreateDimensionCommand.ts index 638d2bd05..98594e1fa 100644 --- a/clients/javascript/sdk/src/commands/CreateDimensionCommand.ts +++ b/clients/javascript/sdk/src/commands/CreateDimensionCommand.ts @@ -100,6 +100,9 @@ export interface CreateDimensionCommandOutput extends DimensionResponse, __Metad * @throws {@link WebhookFailed} (server fault) * Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/CreateFunctionCommand.ts b/clients/javascript/sdk/src/commands/CreateFunctionCommand.ts index 7772f5ff5..5d67dcd8c 100644 --- a/clients/javascript/sdk/src/commands/CreateFunctionCommand.ts +++ b/clients/javascript/sdk/src/commands/CreateFunctionCommand.ts @@ -79,6 +79,9 @@ export interface CreateFunctionCommandOutput extends FunctionResponse, __Metadat * @see {@link CreateFunctionCommandOutput} for command's `response` shape. * @see {@link SuperpositionClientResolvedConfig | config} for SuperpositionClient's `config` shape. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/CreateSecretCommand.ts b/clients/javascript/sdk/src/commands/CreateSecretCommand.ts index dd0882a75..1f5ee73db 100644 --- a/clients/javascript/sdk/src/commands/CreateSecretCommand.ts +++ b/clients/javascript/sdk/src/commands/CreateSecretCommand.ts @@ -70,6 +70,9 @@ export interface CreateSecretCommandOutput extends SecretResponse, __MetadataBea * @see {@link CreateSecretCommandOutput} for command's `response` shape. * @see {@link SuperpositionClientResolvedConfig | config} for SuperpositionClient's `config` shape. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/CreateTypeTemplatesCommand.ts b/clients/javascript/sdk/src/commands/CreateTypeTemplatesCommand.ts index 91890713d..3c55adcec 100644 --- a/clients/javascript/sdk/src/commands/CreateTypeTemplatesCommand.ts +++ b/clients/javascript/sdk/src/commands/CreateTypeTemplatesCommand.ts @@ -75,6 +75,9 @@ export interface CreateTypeTemplatesCommandOutput extends TypeTemplatesResponse, * @see {@link CreateTypeTemplatesCommandOutput} for command's `response` shape. * @see {@link SuperpositionClientResolvedConfig | config} for SuperpositionClient's `config` shape. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/CreateVariableCommand.ts b/clients/javascript/sdk/src/commands/CreateVariableCommand.ts index 26e114c6d..2e8312770 100644 --- a/clients/javascript/sdk/src/commands/CreateVariableCommand.ts +++ b/clients/javascript/sdk/src/commands/CreateVariableCommand.ts @@ -71,6 +71,9 @@ export interface CreateVariableCommandOutput extends VariableResponse, __Metadat * @see {@link CreateVariableCommandOutput} for command's `response` shape. * @see {@link SuperpositionClientResolvedConfig | config} for SuperpositionClient's `config` shape. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/CreateWebhookCommand.ts b/clients/javascript/sdk/src/commands/CreateWebhookCommand.ts index 89cc8884f..707cfd80a 100644 --- a/clients/javascript/sdk/src/commands/CreateWebhookCommand.ts +++ b/clients/javascript/sdk/src/commands/CreateWebhookCommand.ts @@ -91,6 +91,9 @@ export interface CreateWebhookCommandOutput extends WebhookResponse, __MetadataB * @see {@link CreateWebhookCommandOutput} for command's `response` shape. * @see {@link SuperpositionClientResolvedConfig | config} for SuperpositionClient's `config` shape. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/DeleteContextCommand.ts b/clients/javascript/sdk/src/commands/DeleteContextCommand.ts index ca3daa1d1..c1247013c 100644 --- a/clients/javascript/sdk/src/commands/DeleteContextCommand.ts +++ b/clients/javascript/sdk/src/commands/DeleteContextCommand.ts @@ -62,6 +62,9 @@ export interface DeleteContextCommandOutput extends __MetadataBearer {} * @throws {@link WebhookFailed} (server fault) * Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/DeleteDimensionCommand.ts b/clients/javascript/sdk/src/commands/DeleteDimensionCommand.ts index eff0ace66..c6da04b9f 100644 --- a/clients/javascript/sdk/src/commands/DeleteDimensionCommand.ts +++ b/clients/javascript/sdk/src/commands/DeleteDimensionCommand.ts @@ -61,6 +61,9 @@ export interface DeleteDimensionCommandOutput extends __MetadataBearer {} * @throws {@link WebhookFailed} (server fault) * Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/DeleteFunctionCommand.ts b/clients/javascript/sdk/src/commands/DeleteFunctionCommand.ts index 1be7fa706..1d9410b76 100644 --- a/clients/javascript/sdk/src/commands/DeleteFunctionCommand.ts +++ b/clients/javascript/sdk/src/commands/DeleteFunctionCommand.ts @@ -58,6 +58,9 @@ export interface DeleteFunctionCommandOutput extends __MetadataBearer {} * * @throws {@link ResourceNotFound} (client fault) * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/DeleteSecretCommand.ts b/clients/javascript/sdk/src/commands/DeleteSecretCommand.ts index 426640e24..f8d062987 100644 --- a/clients/javascript/sdk/src/commands/DeleteSecretCommand.ts +++ b/clients/javascript/sdk/src/commands/DeleteSecretCommand.ts @@ -69,6 +69,9 @@ export interface DeleteSecretCommandOutput extends SecretResponse, __MetadataBea * * @throws {@link ResourceNotFound} (client fault) * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/DeleteTypeTemplatesCommand.ts b/clients/javascript/sdk/src/commands/DeleteTypeTemplatesCommand.ts index 301e52a19..2bc40f56c 100644 --- a/clients/javascript/sdk/src/commands/DeleteTypeTemplatesCommand.ts +++ b/clients/javascript/sdk/src/commands/DeleteTypeTemplatesCommand.ts @@ -72,6 +72,9 @@ export interface DeleteTypeTemplatesCommandOutput extends TypeTemplatesResponse, * * @throws {@link ResourceNotFound} (client fault) * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/DeleteVariableCommand.ts b/clients/javascript/sdk/src/commands/DeleteVariableCommand.ts index 31d9827bb..94392e2ac 100644 --- a/clients/javascript/sdk/src/commands/DeleteVariableCommand.ts +++ b/clients/javascript/sdk/src/commands/DeleteVariableCommand.ts @@ -70,6 +70,9 @@ export interface DeleteVariableCommandOutput extends VariableResponse, __Metadat * * @throws {@link ResourceNotFound} (client fault) * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/DeleteWebhookCommand.ts b/clients/javascript/sdk/src/commands/DeleteWebhookCommand.ts index 581eb7b41..8c2cfd1f0 100644 --- a/clients/javascript/sdk/src/commands/DeleteWebhookCommand.ts +++ b/clients/javascript/sdk/src/commands/DeleteWebhookCommand.ts @@ -58,6 +58,9 @@ export interface DeleteWebhookCommandOutput extends __MetadataBearer {} * * @throws {@link ResourceNotFound} (client fault) * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/MoveContextCommand.ts b/clients/javascript/sdk/src/commands/MoveContextCommand.ts index 8a1e016c9..c88595107 100644 --- a/clients/javascript/sdk/src/commands/MoveContextCommand.ts +++ b/clients/javascript/sdk/src/commands/MoveContextCommand.ts @@ -87,6 +87,9 @@ export interface MoveContextCommandOutput extends ContextResponse, __MetadataBea * @throws {@link WebhookFailed} (server fault) * Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/PublishCommand.ts b/clients/javascript/sdk/src/commands/PublishCommand.ts index c5e964a1b..1e4073a4d 100644 --- a/clients/javascript/sdk/src/commands/PublishCommand.ts +++ b/clients/javascript/sdk/src/commands/PublishCommand.ts @@ -77,6 +77,9 @@ export interface PublishCommandOutput extends FunctionResponse, __MetadataBearer * * @throws {@link ResourceNotFound} (client fault) * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/UpdateDimensionCommand.ts b/clients/javascript/sdk/src/commands/UpdateDimensionCommand.ts index f3eeae324..749e57470 100644 --- a/clients/javascript/sdk/src/commands/UpdateDimensionCommand.ts +++ b/clients/javascript/sdk/src/commands/UpdateDimensionCommand.ts @@ -97,6 +97,9 @@ export interface UpdateDimensionCommandOutput extends DimensionResponse, __Metad * @throws {@link WebhookFailed} (server fault) * Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/UpdateFunctionCommand.ts b/clients/javascript/sdk/src/commands/UpdateFunctionCommand.ts index 1b1430a07..ee69ab2cb 100644 --- a/clients/javascript/sdk/src/commands/UpdateFunctionCommand.ts +++ b/clients/javascript/sdk/src/commands/UpdateFunctionCommand.ts @@ -80,6 +80,9 @@ export interface UpdateFunctionCommandOutput extends FunctionResponse, __Metadat * * @throws {@link ResourceNotFound} (client fault) * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/UpdateOverrideCommand.ts b/clients/javascript/sdk/src/commands/UpdateOverrideCommand.ts index 82f2077b7..f701a8891 100644 --- a/clients/javascript/sdk/src/commands/UpdateOverrideCommand.ts +++ b/clients/javascript/sdk/src/commands/UpdateOverrideCommand.ts @@ -93,6 +93,9 @@ export interface UpdateOverrideCommandOutput extends ContextResponse, __Metadata * @throws {@link WebhookFailed} (server fault) * Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/UpdateSecretCommand.ts b/clients/javascript/sdk/src/commands/UpdateSecretCommand.ts index c61daadf9..c3bd10844 100644 --- a/clients/javascript/sdk/src/commands/UpdateSecretCommand.ts +++ b/clients/javascript/sdk/src/commands/UpdateSecretCommand.ts @@ -72,6 +72,9 @@ export interface UpdateSecretCommandOutput extends SecretResponse, __MetadataBea * * @throws {@link ResourceNotFound} (client fault) * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/UpdateTypeTemplatesCommand.ts b/clients/javascript/sdk/src/commands/UpdateTypeTemplatesCommand.ts index df57a0271..07b862623 100644 --- a/clients/javascript/sdk/src/commands/UpdateTypeTemplatesCommand.ts +++ b/clients/javascript/sdk/src/commands/UpdateTypeTemplatesCommand.ts @@ -77,6 +77,9 @@ export interface UpdateTypeTemplatesCommandOutput extends TypeTemplatesResponse, * * @throws {@link ResourceNotFound} (client fault) * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/UpdateVariableCommand.ts b/clients/javascript/sdk/src/commands/UpdateVariableCommand.ts index a23c60e64..a0698e0aa 100644 --- a/clients/javascript/sdk/src/commands/UpdateVariableCommand.ts +++ b/clients/javascript/sdk/src/commands/UpdateVariableCommand.ts @@ -73,6 +73,9 @@ export interface UpdateVariableCommandOutput extends VariableResponse, __Metadat * * @throws {@link ResourceNotFound} (client fault) * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/UpdateWebhookCommand.ts b/clients/javascript/sdk/src/commands/UpdateWebhookCommand.ts index 5ae4587ff..92199ab93 100644 --- a/clients/javascript/sdk/src/commands/UpdateWebhookCommand.ts +++ b/clients/javascript/sdk/src/commands/UpdateWebhookCommand.ts @@ -93,6 +93,9 @@ export interface UpdateWebhookCommandOutput extends WebhookResponse, __MetadataB * * @throws {@link ResourceNotFound} (client fault) * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/commands/WeightRecomputeCommand.ts b/clients/javascript/sdk/src/commands/WeightRecomputeCommand.ts index c91342a76..53dae2738 100644 --- a/clients/javascript/sdk/src/commands/WeightRecomputeCommand.ts +++ b/clients/javascript/sdk/src/commands/WeightRecomputeCommand.ts @@ -73,6 +73,9 @@ export interface WeightRecomputeCommandOutput extends WeightRecomputeOutput, __M * @throws {@link WebhookFailed} (server fault) * Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. * + * @throws {@link WorkspaceLockConflict} (client fault) + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * * @throws {@link InternalServerError} (server fault) * * @throws {@link SuperpositionServiceException} diff --git a/clients/javascript/sdk/src/models/models_0.ts b/clients/javascript/sdk/src/models/models_0.ts index 59ca94f27..3942716aa 100644 --- a/clients/javascript/sdk/src/models/models_0.ts +++ b/clients/javascript/sdk/src/models/models_0.ts @@ -603,6 +603,69 @@ export class WebhookFailed extends __BaseException { } } +/** + * Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease. + * @public + */ +export interface WorkspaceLock { + /** + * Unique identifier for the active workspace lock. + * @public + */ + lock_id: string | undefined; + + /** + * Write operation that currently holds the workspace lock. + * @public + */ + operation: string | undefined; + + /** + * User that acquired the workspace lock. + * @public + */ + locked_by: string | undefined; + + /** + * Timestamp at which the workspace lock was acquired. + * @public + */ + acquired_at: Date | undefined; + + /** + * Timestamp at which the workspace lock expires if it is not released first. + * @public + */ + expires_at: Date | undefined; +} + +/** + * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + * @public + */ +export class WorkspaceLockConflict extends __BaseException { + readonly name: "WorkspaceLockConflict" = "WorkspaceLockConflict"; + readonly $fault: "client" = "client"; + /** + * Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease. + * @public + */ + lock: WorkspaceLock | undefined; + + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "WorkspaceLockConflict", + $fault: "client", + ...opts + }); + Object.setPrototypeOf(this, WorkspaceLockConflict.prototype); + this.lock = opts.lock; + } +} + /** * @public */ @@ -1373,69 +1436,6 @@ export interface DefaultConfigResponse { last_modified_by: string | undefined; } -/** - * Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease. - * @public - */ -export interface WorkspaceLock { - /** - * Unique identifier for the active workspace lock. - * @public - */ - lock_id: string | undefined; - - /** - * Write operation that currently holds the workspace lock. - * @public - */ - operation: string | undefined; - - /** - * User that acquired the workspace lock. - * @public - */ - locked_by: string | undefined; - - /** - * Timestamp at which the workspace lock was acquired. - * @public - */ - acquired_at: Date | undefined; - - /** - * Timestamp at which the workspace lock expires if it is not released first. - * @public - */ - expires_at: Date | undefined; -} - -/** - * Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. - * @public - */ -export class WorkspaceLockConflict extends __BaseException { - readonly name: "WorkspaceLockConflict" = "WorkspaceLockConflict"; - readonly $fault: "client" = "client"; - /** - * Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease. - * @public - */ - lock: WorkspaceLock | undefined; - - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "WorkspaceLockConflict", - $fault: "client", - ...opts - }); - Object.setPrototypeOf(this, WorkspaceLockConflict.prototype); - this.lock = opts.lock; - } -} - /** * @public */ diff --git a/clients/python/sdk/superposition_sdk/_private/schemas.py b/clients/python/sdk/superposition_sdk/_private/schemas.py index d3b6d6abd..488e10c3c 100644 --- a/clients/python/sdk/superposition_sdk/_private/schemas.py +++ b/clients/python/sdk/superposition_sdk/_private/schemas.py @@ -1341,6 +1341,88 @@ } ) +WORKSPACE_LOCK = Schema.collection( + id=ShapeID("io.superposition#WorkspaceLock"), + + members={ + "lock_id": { + "target": STRING, + "index": 0, + "traits": [ + Trait.new(id=ShapeID("smithy.api#required")), + + ], + }, + + "operation": { + "target": STRING, + "index": 1, + "traits": [ + Trait.new(id=ShapeID("smithy.api#required")), + + ], + }, + + "locked_by": { + "target": STRING, + "index": 2, + "traits": [ + Trait.new(id=ShapeID("smithy.api#required")), + + ], + }, + + "acquired_at": { + "target": DATE_TIME, + "index": 3, + "traits": [ + Trait.new(id=ShapeID("smithy.api#required")), + + ], + }, + + "expires_at": { + "target": DATE_TIME, + "index": 4, + "traits": [ + Trait.new(id=ShapeID("smithy.api#required")), + + ], + }, + + } +) + +WORKSPACE_LOCK_CONFLICT = Schema.collection( + id=ShapeID("io.superposition#WorkspaceLockConflict"), + + traits=[ + Trait.new(id=ShapeID("smithy.api#error"), value="client"), + Trait.new(id=ShapeID("smithy.api#httpError"), value=409), + + ], + members={ + "message": { + "target": STRING, + "index": 0, + "traits": [ + Trait.new(id=ShapeID("smithy.api#required")), + + ], + }, + + "lock": { + "target": WORKSPACE_LOCK, + "index": 1, + "traits": [ + Trait.new(id=ShapeID("smithy.api#required")), + + ], + }, + + } +) + BULK_OPERATION = Schema( id=ShapeID("io.superposition#BulkOperation"), shape_type=ShapeType.OPERATION, @@ -5040,88 +5122,6 @@ } ) -WORKSPACE_LOCK = Schema.collection( - id=ShapeID("io.superposition#WorkspaceLock"), - - members={ - "lock_id": { - "target": STRING, - "index": 0, - "traits": [ - Trait.new(id=ShapeID("smithy.api#required")), - - ], - }, - - "operation": { - "target": STRING, - "index": 1, - "traits": [ - Trait.new(id=ShapeID("smithy.api#required")), - - ], - }, - - "locked_by": { - "target": STRING, - "index": 2, - "traits": [ - Trait.new(id=ShapeID("smithy.api#required")), - - ], - }, - - "acquired_at": { - "target": DATE_TIME, - "index": 3, - "traits": [ - Trait.new(id=ShapeID("smithy.api#required")), - - ], - }, - - "expires_at": { - "target": DATE_TIME, - "index": 4, - "traits": [ - Trait.new(id=ShapeID("smithy.api#required")), - - ], - }, - - } -) - -WORKSPACE_LOCK_CONFLICT = Schema.collection( - id=ShapeID("io.superposition#WorkspaceLockConflict"), - - traits=[ - Trait.new(id=ShapeID("smithy.api#error"), value="client"), - Trait.new(id=ShapeID("smithy.api#httpError"), value=409), - - ], - members={ - "message": { - "target": STRING, - "index": 0, - "traits": [ - Trait.new(id=ShapeID("smithy.api#required")), - - ], - }, - - "lock": { - "target": WORKSPACE_LOCK, - "index": 1, - "traits": [ - Trait.new(id=ShapeID("smithy.api#required")), - - ], - }, - - } -) - CREATE_DEFAULT_CONFIG = Schema( id=ShapeID("io.superposition#CreateDefaultConfig"), shape_type=ShapeType.OPERATION, diff --git a/clients/python/sdk/superposition_sdk/deserialize.py b/clients/python/sdk/superposition_sdk/deserialize.py index 7b9b65797..c0c5cec39 100644 --- a/clients/python/sdk/superposition_sdk/deserialize.py +++ b/clients/python/sdk/superposition_sdk/deserialize.py @@ -192,6 +192,9 @@ async def _deserialize_error_bulk_operation(http_response: HTTPResponse, config: case "resourcenotfound": return await _deserialize_error_resource_not_found(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -254,6 +257,9 @@ async def _deserialize_error_create_context(http_response: HTTPResponse, config: case "webhookfailed": return await _deserialize_error_webhook_failed(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -313,6 +319,9 @@ async def _deserialize_error_create_dimension(http_response: HTTPResponse, confi case "webhookfailed": return await _deserialize_error_webhook_failed(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -391,6 +400,9 @@ async def _deserialize_error_create_function(http_response: HTTPResponse, config case "internalservererror": return await _deserialize_error_internal_server_error(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -441,6 +453,9 @@ async def _deserialize_error_create_secret(http_response: HTTPResponse, config: case "internalservererror": return await _deserialize_error_internal_server_error(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -466,6 +481,9 @@ async def _deserialize_error_create_type_templates(http_response: HTTPResponse, case "internalservererror": return await _deserialize_error_internal_server_error(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -491,6 +509,9 @@ async def _deserialize_error_create_variable(http_response: HTTPResponse, config case "internalservererror": return await _deserialize_error_internal_server_error(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -516,6 +537,9 @@ async def _deserialize_error_create_webhook(http_response: HTTPResponse, config: case "internalservererror": return await _deserialize_error_internal_server_error(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -565,6 +589,9 @@ async def _deserialize_error_delete_context(http_response: HTTPResponse, config: case "webhookfailed": return await _deserialize_error_webhook_failed(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -616,6 +643,9 @@ async def _deserialize_error_delete_dimension(http_response: HTTPResponse, confi case "webhookfailed": return await _deserialize_error_webhook_failed(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -665,6 +695,9 @@ async def _deserialize_error_delete_function(http_response: HTTPResponse, config case "resourcenotfound": return await _deserialize_error_resource_not_found(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -693,6 +726,9 @@ async def _deserialize_error_delete_secret(http_response: HTTPResponse, config: case "resourcenotfound": return await _deserialize_error_resource_not_found(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -721,6 +757,9 @@ async def _deserialize_error_delete_type_templates(http_response: HTTPResponse, case "resourcenotfound": return await _deserialize_error_resource_not_found(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -749,6 +788,9 @@ async def _deserialize_error_delete_variable(http_response: HTTPResponse, config case "resourcenotfound": return await _deserialize_error_resource_not_found(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -770,6 +812,9 @@ async def _deserialize_error_delete_webhook(http_response: HTTPResponse, config: case "resourcenotfound": return await _deserialize_error_resource_not_found(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -1946,6 +1991,9 @@ async def _deserialize_error_move_context(http_response: HTTPResponse, config: C case "webhookfailed": return await _deserialize_error_webhook_failed(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -2005,6 +2053,9 @@ async def _deserialize_error_publish(http_response: HTTPResponse, config: Config case "resourcenotfound": return await _deserialize_error_resource_not_found(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -2238,6 +2289,9 @@ async def _deserialize_error_update_dimension(http_response: HTTPResponse, confi case "webhookfailed": return await _deserialize_error_webhook_failed(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -2294,6 +2348,9 @@ async def _deserialize_error_update_function(http_response: HTTPResponse, config case "resourcenotfound": return await _deserialize_error_resource_not_found(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -2353,6 +2410,9 @@ async def _deserialize_error_update_override(http_response: HTTPResponse, config case "webhookfailed": return await _deserialize_error_webhook_failed(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -2412,6 +2472,9 @@ async def _deserialize_error_update_secret(http_response: HTTPResponse, config: case "resourcenotfound": return await _deserialize_error_resource_not_found(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -2440,6 +2503,9 @@ async def _deserialize_error_update_type_templates(http_response: HTTPResponse, case "resourcenotfound": return await _deserialize_error_resource_not_found(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -2468,6 +2534,9 @@ async def _deserialize_error_update_variable(http_response: HTTPResponse, config case "resourcenotfound": return await _deserialize_error_resource_not_found(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -2496,6 +2565,9 @@ async def _deserialize_error_update_webhook(http_response: HTTPResponse, config: case "resourcenotfound": return await _deserialize_error_resource_not_found(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") @@ -2570,6 +2642,9 @@ async def _deserialize_error_weight_recompute(http_response: HTTPResponse, confi case "webhookfailed": return await _deserialize_error_webhook_failed(http_response, config, parsed_body, message) + case "workspacelockconflict": + return await _deserialize_error_workspace_lock_conflict(http_response, config, parsed_body, message) + case _: return UnknownApiError(f"{code}: {message}") diff --git a/clients/python/sdk/superposition_sdk/models.py b/clients/python/sdk/superposition_sdk/models.py index 7787f10d3..61734fd3e 100644 --- a/clients/python/sdk/superposition_sdk/models.py +++ b/clients/python/sdk/superposition_sdk/models.py @@ -1994,6 +1994,130 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: deserializer.read_struct(_SCHEMA_WEBHOOK_FAILED, consumer=_consumer) return kwargs +@dataclass(kw_only=True) +class WorkspaceLock: + """ + Metadata for an active workspace write lock. Present only while another write + operation is holding the workspace lease. + + :param lock_id: + **[Required]** - Unique identifier for the active workspace lock. + + :param operation: + **[Required]** - Write operation that currently holds the workspace lock. + + :param locked_by: + **[Required]** - User that acquired the workspace lock. + + :param acquired_at: + **[Required]** - Timestamp at which the workspace lock was acquired. + + :param expires_at: + **[Required]** - Timestamp at which the workspace lock expires if it is not + released first. + + """ + + lock_id: str + + operation: str + + locked_by: str + + acquired_at: datetime + + expires_at: datetime + + def serialize(self, serializer: ShapeSerializer): + serializer.write_struct(_SCHEMA_WORKSPACE_LOCK, self) + + def serialize_members(self, serializer: ShapeSerializer): + serializer.write_string(_SCHEMA_WORKSPACE_LOCK.members["lock_id"], self.lock_id) + serializer.write_string(_SCHEMA_WORKSPACE_LOCK.members["operation"], self.operation) + serializer.write_string(_SCHEMA_WORKSPACE_LOCK.members["locked_by"], self.locked_by) + serializer.write_timestamp(_SCHEMA_WORKSPACE_LOCK.members["acquired_at"], self.acquired_at) + serializer.write_timestamp(_SCHEMA_WORKSPACE_LOCK.members["expires_at"], self.expires_at) + + @classmethod + def deserialize(cls, deserializer: ShapeDeserializer) -> Self: + return cls(**cls.deserialize_kwargs(deserializer)) + + @classmethod + def deserialize_kwargs(cls, deserializer: ShapeDeserializer) -> dict[str, Any]: + kwargs: dict[str, Any] = {} + + def _consumer(schema: Schema, de: ShapeDeserializer) -> None: + match schema.expect_member_index(): + case 0: + kwargs["lock_id"] = de.read_string(_SCHEMA_WORKSPACE_LOCK.members["lock_id"]) + + case 1: + kwargs["operation"] = de.read_string(_SCHEMA_WORKSPACE_LOCK.members["operation"]) + + case 2: + kwargs["locked_by"] = de.read_string(_SCHEMA_WORKSPACE_LOCK.members["locked_by"]) + + case 3: + kwargs["acquired_at"] = de.read_timestamp(_SCHEMA_WORKSPACE_LOCK.members["acquired_at"]) + + case 4: + kwargs["expires_at"] = de.read_timestamp(_SCHEMA_WORKSPACE_LOCK.members["expires_at"]) + + case _: + logger.debug("Unexpected member schema: %s", schema) + + deserializer.read_struct(_SCHEMA_WORKSPACE_LOCK, consumer=_consumer) + return kwargs + +@dataclass(kw_only=True) +class WorkspaceLockConflict(ApiError): + """ + Returned when a workspace write operation cannot proceed because another write + operation currently holds the workspace lock. + + :param message: A message associated with the specific error. + + :param lock: + **[Required]** - Metadata for an active workspace write lock. Present only while + another write operation is holding the workspace lease. + + """ + + code: ClassVar[str] = "WorkspaceLockConflict" + fault: ClassVar[Literal["client", "server"]] = "client" + + message: str + lock: WorkspaceLock + + def serialize(self, serializer: ShapeSerializer): + serializer.write_struct(_SCHEMA_WORKSPACE_LOCK_CONFLICT, self) + + def serialize_members(self, serializer: ShapeSerializer): + serializer.write_string(_SCHEMA_WORKSPACE_LOCK_CONFLICT.members["message"], self.message) + serializer.write_struct(_SCHEMA_WORKSPACE_LOCK_CONFLICT.members["lock"], self.lock) + + @classmethod + def deserialize(cls, deserializer: ShapeDeserializer) -> Self: + return cls(**cls.deserialize_kwargs(deserializer)) + + @classmethod + def deserialize_kwargs(cls, deserializer: ShapeDeserializer) -> dict[str, Any]: + kwargs: dict[str, Any] = {} + + def _consumer(schema: Schema, de: ShapeDeserializer) -> None: + match schema.expect_member_index(): + case 0: + kwargs["message"] = de.read_string(_SCHEMA_WORKSPACE_LOCK_CONFLICT.members["message"]) + + case 1: + kwargs["lock"] = WorkspaceLock.deserialize(de) + + case _: + logger.debug("Unexpected member schema: %s", schema) + + deserializer.read_struct(_SCHEMA_WORKSPACE_LOCK_CONFLICT, consumer=_consumer) + return kwargs + BULK_OPERATION = APIOperation( input = BulkOperationInput, output = BulkOperationOutput, @@ -2004,6 +2128,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: ShapeID("io.superposition#InternalServerError"): InternalServerError, ShapeID("io.superposition#WebhookFailed"): WebhookFailed, ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, }), effective_auth_schemes = [ ShapeID("smithy.api#httpBasicAuth"), @@ -4173,6 +4298,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, ShapeID("io.superposition#WebhookFailed"): WebhookFailed, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -4258,6 +4384,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, ShapeID("io.superposition#WebhookFailed"): WebhookFailed, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -4946,6 +5073,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, ShapeID("io.superposition#WebhookFailed"): WebhookFailed, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -5111,6 +5239,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, ShapeID("io.superposition#WebhookFailed"): WebhookFailed, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -5364,6 +5493,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: error_registry = TypeRegistry({ ShapeID("io.superposition#InternalServerError"): InternalServerError, ShapeID("io.superposition#WebhookFailed"): WebhookFailed, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, }), effective_auth_schemes = [ ShapeID("smithy.api#httpBasicAuth"), @@ -5589,130 +5719,6 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: deserializer.read_struct(_SCHEMA_CREATE_DEFAULT_CONFIG_OUTPUT, consumer=_consumer) return kwargs -@dataclass(kw_only=True) -class WorkspaceLock: - """ - Metadata for an active workspace write lock. Present only while another write - operation is holding the workspace lease. - - :param lock_id: - **[Required]** - Unique identifier for the active workspace lock. - - :param operation: - **[Required]** - Write operation that currently holds the workspace lock. - - :param locked_by: - **[Required]** - User that acquired the workspace lock. - - :param acquired_at: - **[Required]** - Timestamp at which the workspace lock was acquired. - - :param expires_at: - **[Required]** - Timestamp at which the workspace lock expires if it is not - released first. - - """ - - lock_id: str - - operation: str - - locked_by: str - - acquired_at: datetime - - expires_at: datetime - - def serialize(self, serializer: ShapeSerializer): - serializer.write_struct(_SCHEMA_WORKSPACE_LOCK, self) - - def serialize_members(self, serializer: ShapeSerializer): - serializer.write_string(_SCHEMA_WORKSPACE_LOCK.members["lock_id"], self.lock_id) - serializer.write_string(_SCHEMA_WORKSPACE_LOCK.members["operation"], self.operation) - serializer.write_string(_SCHEMA_WORKSPACE_LOCK.members["locked_by"], self.locked_by) - serializer.write_timestamp(_SCHEMA_WORKSPACE_LOCK.members["acquired_at"], self.acquired_at) - serializer.write_timestamp(_SCHEMA_WORKSPACE_LOCK.members["expires_at"], self.expires_at) - - @classmethod - def deserialize(cls, deserializer: ShapeDeserializer) -> Self: - return cls(**cls.deserialize_kwargs(deserializer)) - - @classmethod - def deserialize_kwargs(cls, deserializer: ShapeDeserializer) -> dict[str, Any]: - kwargs: dict[str, Any] = {} - - def _consumer(schema: Schema, de: ShapeDeserializer) -> None: - match schema.expect_member_index(): - case 0: - kwargs["lock_id"] = de.read_string(_SCHEMA_WORKSPACE_LOCK.members["lock_id"]) - - case 1: - kwargs["operation"] = de.read_string(_SCHEMA_WORKSPACE_LOCK.members["operation"]) - - case 2: - kwargs["locked_by"] = de.read_string(_SCHEMA_WORKSPACE_LOCK.members["locked_by"]) - - case 3: - kwargs["acquired_at"] = de.read_timestamp(_SCHEMA_WORKSPACE_LOCK.members["acquired_at"]) - - case 4: - kwargs["expires_at"] = de.read_timestamp(_SCHEMA_WORKSPACE_LOCK.members["expires_at"]) - - case _: - logger.debug("Unexpected member schema: %s", schema) - - deserializer.read_struct(_SCHEMA_WORKSPACE_LOCK, consumer=_consumer) - return kwargs - -@dataclass(kw_only=True) -class WorkspaceLockConflict(ApiError): - """ - Returned when a workspace write operation cannot proceed because another write - operation currently holds the workspace lock. - - :param message: A message associated with the specific error. - - :param lock: - **[Required]** - Metadata for an active workspace write lock. Present only while - another write operation is holding the workspace lease. - - """ - - code: ClassVar[str] = "WorkspaceLockConflict" - fault: ClassVar[Literal["client", "server"]] = "client" - - message: str - lock: WorkspaceLock - - def serialize(self, serializer: ShapeSerializer): - serializer.write_struct(_SCHEMA_WORKSPACE_LOCK_CONFLICT, self) - - def serialize_members(self, serializer: ShapeSerializer): - serializer.write_string(_SCHEMA_WORKSPACE_LOCK_CONFLICT.members["message"], self.message) - serializer.write_struct(_SCHEMA_WORKSPACE_LOCK_CONFLICT.members["lock"], self.lock) - - @classmethod - def deserialize(cls, deserializer: ShapeDeserializer) -> Self: - return cls(**cls.deserialize_kwargs(deserializer)) - - @classmethod - def deserialize_kwargs(cls, deserializer: ShapeDeserializer) -> dict[str, Any]: - kwargs: dict[str, Any] = {} - - def _consumer(schema: Schema, de: ShapeDeserializer) -> None: - match schema.expect_member_index(): - case 0: - kwargs["message"] = de.read_string(_SCHEMA_WORKSPACE_LOCK_CONFLICT.members["message"]) - - case 1: - kwargs["lock"] = WorkspaceLock.deserialize(de) - - case _: - logger.debug("Unexpected member schema: %s", schema) - - deserializer.read_struct(_SCHEMA_WORKSPACE_LOCK_CONFLICT, consumer=_consumer) - return kwargs - CREATE_DEFAULT_CONFIG = APIOperation( input = CreateDefaultConfigInput, output = CreateDefaultConfigOutput, @@ -5951,6 +5957,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: output_schema = _SCHEMA_CREATE_DIMENSION_OUTPUT, error_registry = TypeRegistry({ ShapeID("io.superposition#WebhookFailed"): WebhookFailed, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -6657,7 +6664,8 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: input_schema = _SCHEMA_CREATE_FUNCTION_INPUT, output_schema = _SCHEMA_CREATE_FUNCTION_OUTPUT, error_registry = TypeRegistry({ - ShapeID("io.superposition#InternalServerError"): InternalServerError, + ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, +ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ ShapeID("smithy.api#httpBasicAuth"), @@ -6996,7 +7004,8 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: input_schema = _SCHEMA_CREATE_SECRET_INPUT, output_schema = _SCHEMA_CREATE_SECRET_OUTPUT, error_registry = TypeRegistry({ - ShapeID("io.superposition#InternalServerError"): InternalServerError, + ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, +ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ ShapeID("smithy.api#httpBasicAuth"), @@ -7157,7 +7166,8 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: input_schema = _SCHEMA_CREATE_TYPE_TEMPLATES_INPUT, output_schema = _SCHEMA_CREATE_TYPE_TEMPLATES_OUTPUT, error_registry = TypeRegistry({ - ShapeID("io.superposition#InternalServerError"): InternalServerError, + ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, +ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ ShapeID("smithy.api#httpBasicAuth"), @@ -7304,7 +7314,8 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: input_schema = _SCHEMA_CREATE_VARIABLE_INPUT, output_schema = _SCHEMA_CREATE_VARIABLE_OUTPUT, error_registry = TypeRegistry({ - ShapeID("io.superposition#InternalServerError"): InternalServerError, + ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, +ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ ShapeID("smithy.api#httpBasicAuth"), @@ -7574,7 +7585,8 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: input_schema = _SCHEMA_CREATE_WEBHOOK_INPUT, output_schema = _SCHEMA_CREATE_WEBHOOK_OUTPUT, error_registry = TypeRegistry({ - ShapeID("io.superposition#InternalServerError"): InternalServerError, + ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, +ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ ShapeID("smithy.api#httpBasicAuth"), @@ -8600,6 +8612,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, ShapeID("io.superposition#WebhookFailed"): WebhookFailed, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -8850,6 +8863,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: output_schema = _SCHEMA_DELETE_FUNCTION_OUTPUT, error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -8975,6 +8989,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: output_schema = _SCHEMA_DELETE_SECRET_OUTPUT, error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -9108,6 +9123,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: output_schema = _SCHEMA_DELETE_TYPE_TEMPLATES_OUTPUT, error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -9234,6 +9250,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: output_schema = _SCHEMA_DELETE_VARIABLE_OUTPUT, error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -9314,6 +9331,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: output_schema = _SCHEMA_DELETE_WEBHOOK_OUTPUT, error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -9963,6 +9981,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, ShapeID("io.superposition#WebhookFailed"): WebhookFailed, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -13438,6 +13457,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: output_schema = _SCHEMA_PUBLISH_OUTPUT, error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -13953,6 +13973,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: output_schema = _SCHEMA_UPDATE_FUNCTION_OUTPUT, error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -17180,6 +17201,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: output_schema = _SCHEMA_UPDATE_SECRET_OUTPUT, error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -17339,6 +17361,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: output_schema = _SCHEMA_UPDATE_TYPE_TEMPLATES_OUTPUT, error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -17484,6 +17507,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: output_schema = _SCHEMA_UPDATE_VARIABLE_OUTPUT, error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ @@ -17723,6 +17747,7 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None: output_schema = _SCHEMA_UPDATE_WEBHOOK_OUTPUT, error_registry = TypeRegistry({ ShapeID("io.superposition#ResourceNotFound"): ResourceNotFound, +ShapeID("io.superposition#WorkspaceLockConflict"): WorkspaceLockConflict, ShapeID("io.superposition#InternalServerError"): InternalServerError, }), effective_auth_schemes = [ diff --git a/crates/context_aware_config/src/api/config/handlers.rs b/crates/context_aware_config/src/api/config/handlers.rs index bd8f73488..1f1e9c696 100644 --- a/crates/context_aware_config/src/api/config/handlers.rs +++ b/crates/context_aware_config/src/api/config/handlers.rs @@ -11,7 +11,9 @@ use serde_json::{Map, Value, json}; use service_utils::{ helpers::{fetch_dimensions_info_map, is_not_modified}, redis::{CONFIG_KEY_SUFFIX, LAST_MODIFIED_KEY_SUFFIX, read_through_cache}, - service::types::{AppHeader, AppState, DbConnection, WorkspaceContext}, + service::types::{ + AppHeader, AppState, DbConnection, WorkspaceContext, WorkspaceWritePermit, + }, }; use superposition_core::{ ConfigFormat, JsonFormat, TomlFormat, @@ -448,10 +450,10 @@ async fn reduce_handler( workspace_context: WorkspaceContext, req: HttpRequest, user: User, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, state: Data, ) -> superposition::Result { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let is_approve = req .headers() .get("x-approve") @@ -459,8 +461,8 @@ async fn reduce_handler( .unwrap_or(false); let dimensions_info_map = - fetch_dimensions_info_map(&mut conn, &workspace_context.schema_name)?; - let mut config = generate_cac(&mut conn, &workspace_context.schema_name)?; + fetch_dimensions_info_map(conn, &workspace_context.schema_name)?; + let mut config = generate_cac(conn, &workspace_context.schema_name)?; let default_config = (*config.default_configs).clone(); for (key, _) in default_config { let contexts = config.contexts; @@ -468,7 +470,7 @@ async fn reduce_handler( let default_config = config.default_configs.into_inner(); config = reduce_config_key( &user, - &mut conn, + conn, contexts.clone(), overrides.clone(), key.as_str(), @@ -480,7 +482,7 @@ async fn reduce_handler( ) .await?; if is_approve { - config = generate_cac(&mut conn, &workspace_context.schema_name)?; + config = generate_cac(conn, &workspace_context.schema_name)?; } } diff --git a/crates/context_aware_config/src/api/context/handlers.rs b/crates/context_aware_config/src/api/context/handlers.rs index 9e8d10759..05402f6df 100644 --- a/crates/context_aware_config/src/api/context/handlers.rs +++ b/crates/context_aware_config/src/api/context/handlers.rs @@ -23,6 +23,7 @@ use service_utils::{ middlewares::auth_z::{Action as AuthZAction, AuthZ}, service::types::{ AppHeader, AppState, CustomHeaders, DbConnection, SchemaName, WorkspaceContext, + WorkspaceWritePermit, }, }; use superposition_core::helpers::{calculate_context_weight, hash}; @@ -97,13 +98,14 @@ async fn create_handler( state: Data, custom_headers: CustomHeaders, req: Json, - mut db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, internal_user: InternalUserContext, ) -> superposition::Result { let req = req.into_inner(); create_authorized(&_auth_z, &req.r#override).await?; + let conn = write_permit.checkout(); let tags = parse_config_tags(custom_headers.config_tags)?; let description = match req.description.clone() { Some(val) => val, @@ -111,7 +113,7 @@ async fn create_handler( // TODO: get rid of `query_description` function altogether let resp = query_description( Value::Object(req.context.clone().into_inner().into()), - &mut db_conn, + conn, &workspace_context.schema_name, ); match resp { @@ -130,7 +132,7 @@ async fn create_handler( validate_change_reason( &workspace_context, &req_change_reason, - &mut db_conn, + conn, &state.master_encryption_key, ) .await?; @@ -138,7 +140,7 @@ async fn create_handler( let new_ctx = create_ctx_from_put_req( req, description, - &mut db_conn, + conn, &user, &workspace_context, &state.master_encryption_key, @@ -146,7 +148,7 @@ async fn create_handler( ) .await?; - let (put_response, config_version) = db_conn + let (put_response, config_version) = conn .transaction::<_, superposition::AppError, _>(|transaction_conn| { let put_response = operations::upsert( transaction_conn, @@ -171,12 +173,11 @@ async fn create_handler( Ok((put_response, config_version)) })?; - let DbConnection(mut conn) = db_conn; let _ = put_config_in_redis( &config_version, &state, &workspace_context.schema_name, - &mut conn, + conn, ) .await; @@ -189,7 +190,7 @@ async fn create_handler( }; let webhook_status = - execute_webhook_call(data, &workspace_context, &state, &mut conn).await; + execute_webhook_call(data, &workspace_context, &state, conn).await; let mut http_resp = if webhook_status { HttpResponse::Ok() @@ -235,9 +236,10 @@ async fn update_handler( state: Data, custom_headers: CustomHeaders, req: Json, - mut db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, ) -> superposition::Result { + let conn = write_permit.checkout(); let tags = parse_config_tags(custom_headers.config_tags)?; let req_change_reason = req.change_reason.clone(); @@ -246,20 +248,18 @@ async fn update_handler( &req.context, &req.override_, &workspace_context.schema_name, - &mut db_conn, + conn, ) .await?; validate_change_reason( &workspace_context, &req_change_reason, - &mut db_conn, + conn, &state.master_encryption_key, ) .await?; - let DbConnection(mut conn) = db_conn; - let (context_id, context) = match &req.context { Identifier::Context(context) => { let ctx_value: Map = context.clone().into_inner().into(); @@ -269,7 +269,7 @@ async fn update_handler( let ctx_value: Context = dsl::contexts .filter(dsl::id.eq(i.clone())) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; (i.clone(), ctx_value.value.into()) } }; @@ -277,7 +277,7 @@ async fn update_handler( validate_override_with_functions( &workspace_context, - &mut conn, + conn, &r_override, &context, &state.master_encryption_key, @@ -312,7 +312,7 @@ async fn update_handler( &config_version, &state, &workspace_context.schema_name, - &mut conn, + conn, ) .await; @@ -325,7 +325,7 @@ async fn update_handler( }; let webhook_status = - execute_webhook_call(data, &workspace_context, &state, &mut conn).await; + execute_webhook_call(data, &workspace_context, &state, conn).await; let mut http_resp = if webhook_status { HttpResponse::Ok() @@ -368,18 +368,13 @@ async fn move_handler( path: Path, custom_headers: CustomHeaders, req: Json, - mut db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, internal_user: InternalUserContext, ) -> superposition::Result { + let conn = write_permit.checkout(); let ctx_id = path.into_inner(); - move_authorized( - &_auth_z, - &ctx_id, - &workspace_context.schema_name, - &mut db_conn, - ) - .await?; + move_authorized(&_auth_z, &ctx_id, &workspace_context.schema_name, conn).await?; let tags = parse_config_tags(custom_headers.config_tags)?; @@ -389,7 +384,7 @@ async fn move_handler( // TODO: get rid of `query_description` function altogether let resp = query_description( Value::Object(req.context.clone().into_inner().into()), - &mut db_conn, + conn, &workspace_context.schema_name, ); match resp { @@ -407,17 +402,15 @@ async fn move_handler( validate_change_reason( &workspace_context, &req.change_reason, - &mut db_conn, + conn, &state.master_encryption_key, ) .await?; - let DbConnection(mut conn) = db_conn; - let ctx_condition = req.context.clone().into_inner(); let dimension_data_map = validate_ctx( - &mut conn, + conn, &workspace_context, ctx_condition, Overrides::default(), @@ -457,7 +450,7 @@ async fn move_handler( &config_version, &state, &workspace_context.schema_name, - &mut conn, + conn, ) .await; @@ -470,7 +463,7 @@ async fn move_handler( }; let webhook_status = - execute_webhook_call(data, &workspace_context, &state, &mut conn).await; + execute_webhook_call(data, &workspace_context, &state, conn).await; let mut http_resp = if webhook_status { HttpResponse::Ok() @@ -715,22 +708,17 @@ async fn delete_handler( path: Path, custom_headers: CustomHeaders, user: User, - mut db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, ) -> superposition::Result { use superposition_types::database::schema::contexts::dsl::{ contexts as contexts_table, id as context_id, }; + let conn = write_permit.checkout(); let ctx_id = path.into_inner(); - delete_authorized( - &_auth_z, - &ctx_id, - &workspace_context.schema_name, - &mut db_conn, - ) - .await?; + delete_authorized(&_auth_z, &ctx_id, &workspace_context.schema_name, conn).await?; let tags = parse_config_tags(custom_headers.config_tags)?; - let (config_version, deleted_ctx) = db_conn + let (config_version, deleted_ctx) = conn .transaction::<_, superposition::AppError, _>(|transaction_conn| { contexts_table .filter(context_id.eq(ctx_id.clone())) @@ -755,12 +743,11 @@ async fn delete_handler( Ok((config_version, deleted_ctx)) })?; - let DbConnection(mut conn) = db_conn; let _ = put_config_in_redis( &config_version, &state, &workspace_context.schema_name, - &mut conn, + conn, ) .await; let data = WebhookData { @@ -772,7 +759,7 @@ async fn delete_handler( }; let webhook_status = - execute_webhook_call(data, &workspace_context, &state, &mut conn).await; + execute_webhook_call(data, &workspace_context, &state, conn).await; let mut http_resp = if webhook_status { HttpResponse::NoContent() @@ -852,19 +839,19 @@ async fn bulk_operations_handler( state: Data, custom_headers: CustomHeaders, req: Either>, Json>, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, internal_user: InternalUserContext, ) -> superposition::Result { use contexts::dsl::contexts; - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let is_v2 = matches!(req, Either::Right(_)); let ops = match req { Either::Left(o) => o.into_inner(), Either::Right(bo) => bo.into_inner().operations, }; - bulk_authorized(&_auth_z, &ops, &workspace_context.schema_name, &mut conn).await?; + bulk_authorized(&_auth_z, &ops, &workspace_context.schema_name, conn).await?; let mut webhook_actions: Vec = Vec::new(); let mut webhook_contexts: Vec = Vec::new(); @@ -883,7 +870,7 @@ async fn bulk_operations_handler( validate_change_reason( &workspace_context, &put_req.change_reason, - &mut conn, + conn, &state.master_encryption_key, ) .await?; @@ -892,7 +879,7 @@ async fn bulk_operations_handler( Some(val) => val, None => query_description( ctx_condition_value, - &mut conn, + conn, &workspace_context.schema_name, )?, }; @@ -900,7 +887,7 @@ async fn bulk_operations_handler( let new_ctx = create_ctx_from_put_req( put_req, description.clone(), - &mut conn, + conn, &user, &workspace_context, &state.master_encryption_key, @@ -925,7 +912,7 @@ async fn bulk_operations_handler( let ctx_value: Context = dsl::contexts .filter(dsl::id.eq(i.clone())) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; (i.clone(), ctx_value.value.into()) } }; @@ -933,7 +920,7 @@ async fn bulk_operations_handler( validate_override_with_functions( &workspace_context, - &mut conn, + conn, &r_override, &context, &state.master_encryption_key, @@ -957,7 +944,7 @@ async fn bulk_operations_handler( Some(val) => val, None => query_description( Value::Object(move_req.context.clone().into_inner().into()), - &mut conn, + conn, &workspace_context.schema_name, )?, }; @@ -965,7 +952,7 @@ async fn bulk_operations_handler( let ctx_condition = move_req.context.clone().into_inner(); let dimension_data_map = validate_ctx( - &mut conn, + conn, &workspace_context, ctx_condition, Overrides::default(), @@ -1134,7 +1121,7 @@ async fn bulk_operations_handler( &config_version, &state, &workspace_context.schema_name, - &mut conn, + conn, ) .await; @@ -1147,7 +1134,7 @@ async fn bulk_operations_handler( }; let webhook_status = - execute_webhook_call(data, &workspace_context, &state, &mut conn).await; + execute_webhook_call(data, &workspace_context, &state, conn).await; let mut resp_builder = if webhook_status { HttpResponse::Ok() @@ -1176,25 +1163,25 @@ async fn weight_recompute_handler( workspace_context: WorkspaceContext, state: Data, custom_headers: CustomHeaders, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, ) -> superposition::Result { use superposition_types::database::schema::contexts::dsl::{ contexts, last_modified_at, last_modified_by, weight, }; - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let result: Vec = contexts .schema_name(&workspace_context.schema_name) - .load(&mut conn) + .load(conn) .map_err(|err| { log::error!("failed to fetch contexts with error: {}", err); unexpected_error!("Something went wrong") })?; let dimension_info_map = - fetch_dimensions_info_map(&mut conn, &workspace_context.schema_name)?; + fetch_dimensions_info_map(conn, &workspace_context.schema_name)?; let mut response: Vec = vec![]; let tags = parse_config_tags(custom_headers.config_tags)?; @@ -1250,7 +1237,7 @@ async fn weight_recompute_handler( &config_version, &state, &workspace_context.schema_name, - &mut conn, + conn, ) .await; @@ -1263,7 +1250,7 @@ async fn weight_recompute_handler( }; let webhook_status = - execute_webhook_call(data, &workspace_context, &state, &mut conn).await; + execute_webhook_call(data, &workspace_context, &state, conn).await; let mut http_resp = if webhook_status { HttpResponse::Ok() diff --git a/crates/context_aware_config/src/api/dimension/handlers.rs b/crates/context_aware_config/src/api/dimension/handlers.rs index 8e064005b..da93cee07 100644 --- a/crates/context_aware_config/src/api/dimension/handlers.rs +++ b/crates/context_aware_config/src/api/dimension/handlers.rs @@ -12,6 +12,7 @@ use service_utils::{ helpers::{WebhookData, execute_webhook_call, parse_config_tags}, service::types::{ AppHeader, AppState, CustomHeaders, DbConnection, WorkspaceContext, + WorkspaceWritePermit, }, }; use superposition_core::validations::validate_schema; @@ -74,9 +75,9 @@ async fn create_handler( req: web::Json, user: User, custom_headers: CustomHeaders, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, ) -> superposition::Result { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let create_req = req.into_inner(); let schema_value = Value::from(&create_req.schema); let tags = parse_config_tags(custom_headers.config_tags)?; @@ -84,7 +85,7 @@ async fn create_handler( validate_change_reason( &workspace_context, &create_req.change_reason, - &mut conn, + conn, &state.master_encryption_key, ) .await?; @@ -92,7 +93,7 @@ async fn create_handler( let num_rows = dimensions .count() .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn) + .get_result::(conn) .map_err(|err| { log::error!("failed to fetch number of dimension with error: {}", err); db_error!(err) @@ -125,7 +126,7 @@ async fn create_handler( let based_on_dimension = does_dimension_exist_for_cohorting( cohort_based_on, &workspace_context.schema_name, - &mut conn, + conn, )?; validate_cohort_position(&create_req.position, &based_on_dimension, true)?; } @@ -134,7 +135,7 @@ async fn create_handler( &schema_value, cohort_based_on, &workspace_context.schema_name, - &mut conn, + conn, )?; validate_cohort_position(&create_req.position, &based_on_dimension, true)?; } @@ -142,14 +143,14 @@ async fn create_handler( validate_validation_function( &create_req.value_validation_function_name, - &mut conn, + conn, &workspace_context.schema_name, )?; validate_value_compute_function( &create_req.dimension_type, &create_req.value_compute_function_name, - &mut conn, + conn, &workspace_context.schema_name, )?; @@ -248,7 +249,7 @@ async fn create_handler( &config_version, &state, &workspace_context.schema_name, - &mut conn, + conn, ) .await; @@ -261,7 +262,7 @@ async fn create_handler( }; let webhook_status = - execute_webhook_call(data, &workspace_context, &state, &mut conn).await; + execute_webhook_call(data, &workspace_context, &state, conn).await; let mut http_resp = if webhook_status { HttpResponse::Created() @@ -313,18 +314,18 @@ async fn update_handler( req: web::Json, user: User, custom_headers: CustomHeaders, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, ) -> superposition::Result { let name: String = path.clone().into(); use dimensions::dsl; - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let tags = parse_config_tags(custom_headers.config_tags)?; let update_req = req.into_inner(); validate_change_reason( &workspace_context, &update_req.change_reason, - &mut conn, + conn, &state.master_encryption_key, ) .await?; @@ -332,12 +333,12 @@ async fn update_handler( let dimension_data: Dimension = dimensions::dsl::dimensions .filter(dimensions::dimension.eq(name.clone())) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; let num_rows = dimensions .count() .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn) + .get_result::(conn) .map_err(|err| { log::error!("failed to fetch number of dimension with error: {}", err); db_error!(err) @@ -360,7 +361,7 @@ async fn update_handler( &schema_value, cohort_based_on, &workspace_context.schema_name, - &mut conn, + conn, )?; } } @@ -374,7 +375,7 @@ async fn update_handler( let based_on_dimension = does_dimension_exist_for_cohorting( cohort_based_on, &workspace_context.schema_name, - &mut conn, + conn, )?; validate_cohort_position(new_position, &based_on_dimension, false)?; } @@ -382,7 +383,7 @@ async fn update_handler( } if let Some(ref fn_name) = update_req.value_validation_function_name { - validate_validation_function(fn_name, &mut conn, &workspace_context.schema_name)?; + validate_validation_function(fn_name, conn, &workspace_context.schema_name)?; } if let Some(ref value_compute_function_name_) = update_req.value_compute_function_name @@ -390,7 +391,7 @@ async fn update_handler( validate_value_compute_function( &dimension_data.dimension_type, value_compute_function_name_, - &mut conn, + conn, &workspace_context.schema_name, )?; } @@ -486,7 +487,7 @@ async fn update_handler( &config_version, &state, &workspace_context.schema_name, - &mut conn, + conn, ) .await; @@ -499,7 +500,7 @@ async fn update_handler( }; let webhook_status = - execute_webhook_call(data, &workspace_context, &state, &mut conn).await; + execute_webhook_call(data, &workspace_context, &state, conn).await; let mut http_resp = if webhook_status { HttpResponse::Ok() @@ -581,17 +582,17 @@ async fn delete_handler( path: Path, user: User, custom_headers: CustomHeaders, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, ) -> superposition::Result { let name: String = path.into_inner().into(); - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let tags = parse_config_tags(custom_headers.config_tags)?; let dimension_data: Dimension = dimensions::dsl::dimensions .filter(dimensions::dimension.eq(&name)) .select(Dimension::as_select()) .schema_name(&workspace_context.schema_name) - .get_result(&mut conn)?; + .get_result(conn)?; let is_mandatory = workspace_context .settings @@ -606,11 +607,8 @@ async fn delete_handler( )); } - let context_ids = get_dimension_usage_context_ids( - &name, - &mut conn, - &workspace_context.schema_name, - )?; + let context_ids = + get_dimension_usage_context_ids(&name, conn, &workspace_context.schema_name)?; if context_ids.is_empty() { let (config_version, dimension_data) = conn.transaction::<_, superposition::AppError, _>(|transaction_conn| { @@ -686,7 +684,7 @@ async fn delete_handler( &config_version, &state, &workspace_context.schema_name, - &mut conn, + conn, ) .await; let data = WebhookData { @@ -698,7 +696,7 @@ async fn delete_handler( }; let webhook_status = - execute_webhook_call(data, &workspace_context, &state, &mut conn).await; + execute_webhook_call(data, &workspace_context, &state, conn).await; let mut http_resp = if webhook_status { HttpResponse::Ok() diff --git a/crates/context_aware_config/src/api/functions/handlers.rs b/crates/context_aware_config/src/api/functions/handlers.rs index 71024c112..e941f9fb2 100644 --- a/crates/context_aware_config/src/api/functions/handlers.rs +++ b/crates/context_aware_config/src/api/functions/handlers.rs @@ -4,7 +4,9 @@ use actix_web::{ }; use chrono::Utc; use diesel::{ExpressionMethods, QueryDsl, RunQueryDsl, SelectableHelper}; -use service_utils::service::types::{AppState, DbConnection, WorkspaceContext}; +use service_utils::service::types::{ + AppState, DbConnection, WorkspaceContext, WorkspaceWritePermit, +}; use superposition_derives::{authorized, declare_resource}; use superposition_macros::{bad_argument, not_found, unexpected_error}; use superposition_types::{ @@ -47,11 +49,11 @@ pub fn endpoints() -> Scope { async fn create_handler( workspace_context: WorkspaceContext, request: Json, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, state: Data, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let req = request.into_inner(); if req.function_type == FunctionType::ContextValidation @@ -70,7 +72,7 @@ async fn create_handler( validate_change_reason( &workspace_context, &req.change_reason, - &mut conn, + conn, &state.master_encryption_key, ) .await?; @@ -109,7 +111,7 @@ async fn create_handler( .values(&function) .returning(Function::as_returning()) .schema_name(&workspace_context.schema_name) - .get_result(&mut conn); + .get_result(conn); match insert { Ok(res) => Ok(Json(res)), @@ -141,11 +143,11 @@ async fn update_handler( workspace_context: WorkspaceContext, params: Path, request: Json, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, state: Data, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let req = request.into_inner(); let f_name: String = params.into_inner().into(); @@ -162,7 +164,7 @@ async fn update_handler( validate_change_reason( &workspace_context, &req.change_reason, - &mut conn, + conn, &state.master_encryption_key, ) .await?; @@ -178,7 +180,7 @@ async fn update_handler( )) .returning(Function::as_returning()) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; Ok(Json(updated_function)) } @@ -240,13 +242,13 @@ async fn list_handler( async fn delete_handler( workspace_context: WorkspaceContext, params: Path, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, ) -> superposition::Result { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let f_name: String = params.into_inner().into(); - let function = fetch_function(&f_name, &mut conn, &workspace_context.schema_name)?; + let function = fetch_function(&f_name, conn, &workspace_context.schema_name)?; match function.function_type { FunctionType::ContextValidation | FunctionType::ChangeReasonValidation => { return Err(bad_argument!( @@ -265,11 +267,11 @@ async fn delete_handler( )) .returning(Function::as_returning()) .schema_name(&workspace_context.schema_name) - .execute(&mut conn)?; + .execute(conn)?; let deleted_row = diesel::delete(functions::functions.filter(functions::function_name.eq(&f_name))) .schema_name(&workspace_context.schema_name) - .execute(&mut conn)?; + .execute(conn)?; match deleted_row { 0 => Err(not_found!("Function {} doesn't exists", f_name)), _ => { @@ -337,19 +339,19 @@ async fn publish_handler( workspace_context: WorkspaceContext, params: Path, request: Json, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, state: Data, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let fun_name: String = params.into_inner().into(); - let function = fetch_function(&fun_name, &mut conn, &workspace_context.schema_name)?; + let function = fetch_function(&fun_name, conn, &workspace_context.schema_name)?; let req = request.into_inner(); validate_change_reason( &workspace_context, &req.change_reason, - &mut conn, + conn, &state.master_encryption_key, ) .await?; @@ -367,7 +369,7 @@ async fn publish_handler( )) .returning(Function::as_returning()) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; Ok(Json(updated_function)) } diff --git a/crates/context_aware_config/src/api/secrets/handlers.rs b/crates/context_aware_config/src/api/secrets/handlers.rs index 539bdade5..4c751cc79 100644 --- a/crates/context_aware_config/src/api/secrets/handlers.rs +++ b/crates/context_aware_config/src/api/secrets/handlers.rs @@ -10,7 +10,7 @@ use service_utils::{ }, service::types::{ AppState, DbConnection, EncryptionKey, OrganisationId, SchemaName, - WorkspaceContext, WorkspaceId, + WorkspaceContext, WorkspaceId, WorkspaceWritePermit, }, }; use superposition_derives::{authorized, declare_resource}; @@ -150,13 +150,13 @@ async fn list_handler( async fn create_handler( req: web::Json, user: User, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, workspace_context: WorkspaceContext, state: Data, ) -> superposition::Result> { let req = req.into_inner(); - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let encryption_key = get_workspace_encryption_key(&workspace_context, &state.master_encryption_key)?; @@ -181,7 +181,7 @@ async fn create_handler( .values(&new_secret) .returning(Secret::as_returning()) .schema_name(&workspace_context.schema_name) - .get_result(&mut conn)?; + .get_result(conn)?; Ok(Json(SecretResponse::from(created_secret))) } @@ -211,11 +211,11 @@ async fn update_handler( path: web::Path, req: web::Json, user: User, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, workspace_context: WorkspaceContext, state: Data, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let secret_name = path.into_inner(); let req_inner = req.into_inner(); @@ -246,7 +246,7 @@ async fn update_handler( secrets::last_modified_by.eq(user.get_email()), )) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; Ok(Json(SecretResponse::from(updated_secret))) } @@ -256,10 +256,10 @@ async fn update_handler( async fn delete_handler( path: web::Path, user: User, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, workspace_context: WorkspaceContext, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let secret_name = path.into_inner(); diesel::update(secrets::table) @@ -269,12 +269,12 @@ async fn delete_handler( secrets::last_modified_by.eq(user.get_email()), )) .schema_name(&workspace_context.schema_name) - .execute(&mut conn)?; + .execute(conn)?; let deleted_secret = diesel::delete(secrets::table) .filter(secrets::name.eq(&secret_name)) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; Ok(Json(SecretResponse::from(deleted_secret))) } diff --git a/crates/context_aware_config/src/api/type_templates/handlers.rs b/crates/context_aware_config/src/api/type_templates/handlers.rs index 6d437d900..dfeecf629 100644 --- a/crates/context_aware_config/src/api/type_templates/handlers.rs +++ b/crates/context_aware_config/src/api/type_templates/handlers.rs @@ -5,7 +5,9 @@ use actix_web::{ use chrono::Utc; use diesel::{ExpressionMethods, QueryDsl, RunQueryDsl, SelectableHelper}; use serde_json::Value; -use service_utils::service::types::{AppState, DbConnection, WorkspaceContext}; +use service_utils::service::types::{ + AppState, DbConnection, WorkspaceContext, WorkspaceWritePermit, +}; use superposition_core::validations::try_into_jsonschema; use superposition_derives::{authorized, declare_resource}; use superposition_macros::bad_argument; @@ -40,11 +42,11 @@ pub fn endpoints() -> Scope { async fn create_handler( workspace_context: WorkspaceContext, request: Json, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, state: Data, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); try_into_jsonschema(&Value::from(&request.type_schema)).map_err(|err| { log::error!( "Invalid jsonschema sent in the request, schema: {:?} error: {}", @@ -60,7 +62,7 @@ async fn create_handler( validate_change_reason( &workspace_context, &request.change_reason, - &mut conn, + conn, &state.master_encryption_key, ) .await?; @@ -81,7 +83,7 @@ async fn create_handler( .values(&type_template) .returning(TypeTemplate::as_returning()) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; Ok(Json(type_template)) } @@ -110,11 +112,11 @@ async fn update_handler( workspace_context: WorkspaceContext, request: Json, path: Path, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, state: Data, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let request = request.into_inner(); try_into_jsonschema(&Value::from(&request.type_schema)).map_err(|err| { log::error!( @@ -131,7 +133,7 @@ async fn update_handler( validate_change_reason( &workspace_context, &request.change_reason, - &mut conn, + conn, &state.master_encryption_key, ) .await?; @@ -148,7 +150,7 @@ async fn update_handler( )) .returning(TypeTemplate::as_returning()) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; Ok(Json(updated_type)) } @@ -157,10 +159,10 @@ async fn update_handler( async fn delete_handler( workspace_context: WorkspaceContext, path: Path, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let type_name: String = path.into_inner().into(); diesel::update(dsl::type_templates) .filter(dsl::type_name.eq(type_name.clone())) @@ -170,11 +172,11 @@ async fn delete_handler( )) .returning(TypeTemplate::as_returning()) .schema_name(&workspace_context.schema_name) - .execute(&mut conn)?; + .execute(conn)?; let deleted_type = diesel::delete(dsl::type_templates.filter(dsl::type_name.eq(type_name))) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; Ok(Json(deleted_type)) } diff --git a/crates/context_aware_config/src/api/variables/handlers.rs b/crates/context_aware_config/src/api/variables/handlers.rs index f60f58298..4247b79b5 100644 --- a/crates/context_aware_config/src/api/variables/handlers.rs +++ b/crates/context_aware_config/src/api/variables/handlers.rs @@ -4,7 +4,9 @@ use actix_web::{ }; use diesel::prelude::*; use diesel::{ExpressionMethods, QueryDsl, RunQueryDsl}; -use service_utils::service::types::{AppState, DbConnection, WorkspaceContext}; +use service_utils::service::types::{ + AppState, DbConnection, WorkspaceContext, WorkspaceWritePermit, +}; use superposition_derives::{authorized, declare_resource}; use superposition_types::{ PaginatedResponse, SortBy, User, @@ -103,16 +105,16 @@ async fn create_handler( workspace_context: WorkspaceContext, req: web::Json, user: User, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, state: Data, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let req = req.into_inner(); validate_change_reason( &workspace_context, &req.change_reason, - &mut conn, + conn, &state.master_encryption_key, ) .await?; @@ -134,7 +136,7 @@ async fn create_handler( .values(&new_var) .returning(Variable::as_returning()) .schema_name(&workspace_context.schema_name) - .get_result(&mut conn)?; + .get_result(conn)?; Ok(Json(created_var)) } @@ -165,16 +167,16 @@ async fn update_handler( path: web::Path, req: web::Json, user: User, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, state: Data, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let var_name = path.into_inner(); validate_change_reason( &workspace_context, &req.change_reason, - &mut conn, + conn, &state.master_encryption_key, ) .await?; @@ -187,7 +189,7 @@ async fn update_handler( last_modified_by.eq(user.get_email()), )) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; Ok(Json(updated_var)) } @@ -197,9 +199,9 @@ async fn delete_handler( workspace_context: WorkspaceContext, path: web::Path, user: User, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let var_name = path.into_inner(); diesel::update(variables) @@ -209,12 +211,12 @@ async fn delete_handler( last_modified_by.eq(user.get_email()), )) .schema_name(&workspace_context.schema_name) - .execute(&mut conn)?; + .execute(conn)?; let deleted_variable = diesel::delete(variables) .filter(name.eq(&var_name)) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; Ok(Json(deleted_variable)) } diff --git a/crates/service_utils/src/observability.rs b/crates/service_utils/src/observability.rs index 82598dc7c..83bba8bff 100644 --- a/crates/service_utils/src/observability.rs +++ b/crates/service_utils/src/observability.rs @@ -85,7 +85,10 @@ impl Observability { // histogram's cardinality. let drop_body_size_view = |i: &Instrument| match i.name() { "http.server.request.body.size" | "http.server.response.body.size" => { - Stream::builder().with_aggregation(Aggregation::Drop).build().ok() + Stream::builder() + .with_aggregation(Aggregation::Drop) + .build() + .ok() } _ => None, }; diff --git a/crates/service_utils/src/observability/instrumentation.rs b/crates/service_utils/src/observability/instrumentation.rs index 80b99f294..a6cda497b 100644 --- a/crates/service_utils/src/observability/instrumentation.rs +++ b/crates/service_utils/src/observability/instrumentation.rs @@ -92,7 +92,10 @@ fn normalize_method(m: &actix_web::http::Method) -> &'static str { } match_known!( m.as_str(), - ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE", "CONNECT"], + [ + "GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE", + "CONNECT" + ], "_OTHER" ) } @@ -142,7 +145,10 @@ mod tests { #[test] fn formatter_maps_unmatched_to_not_found_sentinel() { - assert_eq!(CardinalityBoundedFormatter.format("default"), ROUTE_NOT_FOUND); + assert_eq!( + CardinalityBoundedFormatter.format("default"), + ROUTE_NOT_FOUND + ); } #[test] diff --git a/crates/service_utils/src/observability/saturation/db_pool.rs b/crates/service_utils/src/observability/saturation/db_pool.rs index 34ddfb153..2008c29fb 100644 --- a/crates/service_utils/src/observability/saturation/db_pool.rs +++ b/crates/service_utils/src/observability/saturation/db_pool.rs @@ -39,10 +39,8 @@ pub fn register(meter: &Meter, pool: DbPoolHandle, pool_name: &'static str) { .u64_observable_gauge("db.client.connections.max") .with_description("Configured maximum size of the DB connection pool.") .with_callback(move |observer| { - observer.observe( - pool.max_size() as u64, - std::slice::from_ref(&max_pool_name), - ); + observer + .observe(pool.max_size() as u64, std::slice::from_ref(&max_pool_name)); }) .build(); } diff --git a/crates/service_utils/tests/observability_integration.rs b/crates/service_utils/tests/observability_integration.rs index 99e426a7e..33e839246 100644 --- a/crates/service_utils/tests/observability_integration.rs +++ b/crates/service_utils/tests/observability_integration.rs @@ -154,11 +154,18 @@ async fn runtime_tokio_metrics_appear_after_register_observers() { .lines() .find(|l| l.starts_with("runtime_tokio_workers ")) .unwrap_or_else(|| panic!("no runtime_tokio_workers in:\n{body}")); - let workers: f64 = workers_line.rsplit_once(' ').unwrap().1.trim().parse().unwrap(); + let workers: f64 = workers_line + .rsplit_once(' ') + .unwrap() + .1 + .trim() + .parse() + .unwrap(); assert!(workers >= 1.0, "expected >=1 worker, got {workers}"); assert!( - body.lines().any(|l| l.starts_with("runtime_tokio_global_queue_depth ")), + body.lines() + .any(|l| l.starts_with("runtime_tokio_global_queue_depth ")), "no runtime_tokio_global_queue_depth in:\n{body}" ); assert!( diff --git a/crates/superposition/src/app_state.rs b/crates/superposition/src/app_state.rs index d6d84d978..60a89b515 100644 --- a/crates/superposition/src/app_state.rs +++ b/crates/superposition/src/app_state.rs @@ -102,12 +102,13 @@ pub async fn get( }, snowflake_generator, app_env, - tenant_middleware_exclusion_list: - get_from_env_unsafe::("TENANT_MIDDLEWARE_EXCLUSION_LIST") - .expect("TENANT_MIDDLEWARE_EXCLUSION_LIST is not set") - .split(',') - .map(String::from) - .collect::>(), + tenant_middleware_exclusion_list: get_from_env_unsafe::( + "TENANT_MIDDLEWARE_EXCLUSION_LIST", + ) + .expect("TENANT_MIDDLEWARE_EXCLUSION_LIST is not set") + .split(',') + .map(String::from) + .collect::>(), service_prefix, superposition_token: get_superposition_token(kms_client, &app_env).await, redis: redis_pool, diff --git a/crates/superposition/src/main.rs b/crates/superposition/src/main.rs index 9da856cc6..7d012f20c 100644 --- a/crates/superposition/src/main.rs +++ b/crates/superposition/src/main.rs @@ -32,9 +32,9 @@ use service_utils::{ workspace_context::OrgWorkspaceMiddlewareFactory, }, observability::{ - FredPoolStats, Observability, ObservabilityConfig, RedisStats, SdkMeterProvider, - build_request_metrics_middleware, set_label_config, - SaturationDeps, register_observers, spawn_metrics_server, + FredPoolStats, Observability, ObservabilityConfig, RedisStats, SaturationDeps, + SdkMeterProvider, build_request_metrics_middleware, register_observers, + set_label_config, spawn_metrics_server, }, service::types::AppEnv, }; diff --git a/crates/superposition/src/webhooks/handlers.rs b/crates/superposition/src/webhooks/handlers.rs index abbc98881..d8e2b5fce 100644 --- a/crates/superposition/src/webhooks/handlers.rs +++ b/crates/superposition/src/webhooks/handlers.rs @@ -6,7 +6,9 @@ use actix_web::{ use chrono::Utc; use context_aware_config::helpers::validate_change_reason; use diesel::{ExpressionMethods, PgArrayExpressionMethods, QueryDsl, RunQueryDsl}; -use service_utils::service::types::{AppState, DbConnection, WorkspaceContext}; +use service_utils::service::types::{ + AppState, DbConnection, WorkspaceContext, WorkspaceWritePermit, +}; use superposition_derives::{authorized, declare_resource}; use superposition_types::{ PaginatedResponse, User, @@ -36,22 +38,22 @@ pub fn endpoints() -> Scope { async fn create_handler( workspace_context: WorkspaceContext, request: Json, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, state: Data, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let req = request.into_inner(); validate_change_reason( &workspace_context, &req.change_reason, - &mut conn, + conn, &state.master_encryption_key, ) .await?; - validate_events(&req.events, None, &workspace_context.schema_name, &mut conn)?; + validate_events(&req.events, None, &workspace_context.schema_name, conn)?; let now = Utc::now(); let webhook_data = Webhook { name: req.name.to_string(), @@ -74,7 +76,7 @@ async fn create_handler( diesel::insert_into(webhooks::table) .values(&webhook_data) .schema_name(&workspace_context.schema_name) - .execute(&mut conn)?; + .execute(conn)?; Ok(Json(webhook_data)) } @@ -84,19 +86,19 @@ async fn create_handler( async fn update_handler( workspace_context: WorkspaceContext, params: web::Path, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, request: Json, state: Data, ) -> superposition::Result> { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let req = request.into_inner(); let w_name: String = params.into_inner().into(); validate_change_reason( &workspace_context, &req.change_reason, - &mut conn, + conn, &state.master_encryption_key, ) .await?; @@ -106,7 +108,7 @@ async fn update_handler( webhook_events, Some(&w_name), &workspace_context.schema_name, - &mut conn, + conn, )?; } @@ -118,7 +120,7 @@ async fn update_handler( last_modified_by.eq(user.get_email()), )) .schema_name(&workspace_context.schema_name) - .get_result::(&mut conn)?; + .get_result::(conn)?; Ok(Json(update)) } @@ -184,10 +186,10 @@ async fn list_handler( async fn delete_handler( workspace_context: WorkspaceContext, params: web::Path, - db_conn: DbConnection, + mut write_permit: WorkspaceWritePermit, user: User, ) -> superposition::Result { - let DbConnection(mut conn) = db_conn; + let conn = write_permit.checkout(); let w_name: String = params.into_inner().into(); diesel::update(webhooks::table) @@ -197,10 +199,10 @@ async fn delete_handler( webhooks::last_modified_by.eq(user.get_email()), )) .schema_name(&workspace_context.schema_name) - .execute(&mut conn)?; + .execute(conn)?; diesel::delete(webhooks.filter(webhooks::name.eq(&w_name))) .schema_name(&workspace_context.schema_name) - .execute(&mut conn)?; + .execute(conn)?; Ok(HttpResponse::NoContent().finish()) } diff --git a/crates/superposition_sdk/src/error_meta.rs b/crates/superposition_sdk/src/error_meta.rs index c2f3eb96b..7bc5eb364 100644 --- a/crates/superposition_sdk/src/error_meta.rs +++ b/crates/superposition_sdk/src/error_meta.rs @@ -112,6 +112,7 @@ impl From for Error { match err { crate::operation::bulk_operation::BulkOperationError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), crate::operation::bulk_operation::BulkOperationError::WebhookFailed(inner) => Error::WebhookFailed(inner), + crate::operation::bulk_operation::BulkOperationError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::bulk_operation::BulkOperationError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::bulk_operation::BulkOperationError::Unhandled(inner) => Error::Unhandled(inner), } @@ -158,6 +159,7 @@ impl From for Error { match err { crate::operation::create_context::CreateContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), crate::operation::create_context::CreateContextError::WebhookFailed(inner) => Error::WebhookFailed(inner), + crate::operation::create_context::CreateContextError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::create_context::CreateContextError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::create_context::CreateContextError::Unhandled(inner) => Error::Unhandled(inner), } @@ -203,6 +205,7 @@ impl From for Error { fn from(err: crate::operation::create_dimension::CreateDimensionError) -> Self { match err { crate::operation::create_dimension::CreateDimensionError::WebhookFailed(inner) => Error::WebhookFailed(inner), + crate::operation::create_dimension::CreateDimensionError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::create_dimension::CreateDimensionError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::create_dimension::CreateDimensionError::Unhandled(inner) => Error::Unhandled(inner), } @@ -267,6 +270,7 @@ impl From<::aws_smithy_runtime_api::client::result::SdkError for Error { fn from(err: crate::operation::create_function::CreateFunctionError) -> Self { match err { + crate::operation::create_function::CreateFunctionError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::create_function::CreateFunctionError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::create_function::CreateFunctionError::Unhandled(inner) => Error::Unhandled(inner), } @@ -309,6 +313,7 @@ impl From<::aws_smithy_runtime_api::client::result::SdkError for Error { fn from(err: crate::operation::create_secret::CreateSecretError) -> Self { match err { + crate::operation::create_secret::CreateSecretError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::create_secret::CreateSecretError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::create_secret::CreateSecretError::Unhandled(inner) => Error::Unhandled(inner), } @@ -330,6 +335,7 @@ impl From<::aws_smithy_runtime_api::client::result::SdkError for Error { fn from(err: crate::operation::create_type_templates::CreateTypeTemplatesError) -> Self { match err { + crate::operation::create_type_templates::CreateTypeTemplatesError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::create_type_templates::CreateTypeTemplatesError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::create_type_templates::CreateTypeTemplatesError::Unhandled(inner) => Error::Unhandled(inner), } @@ -351,6 +357,7 @@ impl From<::aws_smithy_runtime_api::client::result::SdkError for Error { fn from(err: crate::operation::create_variable::CreateVariableError) -> Self { match err { + crate::operation::create_variable::CreateVariableError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::create_variable::CreateVariableError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::create_variable::CreateVariableError::Unhandled(inner) => Error::Unhandled(inner), } @@ -372,6 +379,7 @@ impl From<::aws_smithy_runtime_api::client::result::SdkError for Error { fn from(err: crate::operation::create_webhook::CreateWebhookError) -> Self { match err { + crate::operation::create_webhook::CreateWebhookError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::create_webhook::CreateWebhookError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::create_webhook::CreateWebhookError::Unhandled(inner) => Error::Unhandled(inner), } @@ -416,6 +424,7 @@ impl From for Error { match err { crate::operation::delete_context::DeleteContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), crate::operation::delete_context::DeleteContextError::WebhookFailed(inner) => Error::WebhookFailed(inner), + crate::operation::delete_context::DeleteContextError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::delete_context::DeleteContextError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::delete_context::DeleteContextError::Unhandled(inner) => Error::Unhandled(inner), } @@ -463,6 +472,7 @@ impl From for Error { match err { crate::operation::delete_dimension::DeleteDimensionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), crate::operation::delete_dimension::DeleteDimensionError::WebhookFailed(inner) => Error::WebhookFailed(inner), + crate::operation::delete_dimension::DeleteDimensionError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::delete_dimension::DeleteDimensionError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::delete_dimension::DeleteDimensionError::Unhandled(inner) => Error::Unhandled(inner), } @@ -507,6 +517,7 @@ impl From for Error { fn from(err: crate::operation::delete_function::DeleteFunctionError) -> Self { match err { crate::operation::delete_function::DeleteFunctionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), + crate::operation::delete_function::DeleteFunctionError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::delete_function::DeleteFunctionError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::delete_function::DeleteFunctionError::Unhandled(inner) => Error::Unhandled(inner), } @@ -529,6 +540,7 @@ impl From for Error { fn from(err: crate::operation::delete_secret::DeleteSecretError) -> Self { match err { crate::operation::delete_secret::DeleteSecretError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), + crate::operation::delete_secret::DeleteSecretError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::delete_secret::DeleteSecretError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::delete_secret::DeleteSecretError::Unhandled(inner) => Error::Unhandled(inner), } @@ -551,6 +563,7 @@ impl From for fn from(err: crate::operation::delete_type_templates::DeleteTypeTemplatesError) -> Self { match err { crate::operation::delete_type_templates::DeleteTypeTemplatesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), + crate::operation::delete_type_templates::DeleteTypeTemplatesError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::delete_type_templates::DeleteTypeTemplatesError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::delete_type_templates::DeleteTypeTemplatesError::Unhandled(inner) => Error::Unhandled(inner), } @@ -573,6 +586,7 @@ impl From for Error { fn from(err: crate::operation::delete_variable::DeleteVariableError) -> Self { match err { crate::operation::delete_variable::DeleteVariableError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), + crate::operation::delete_variable::DeleteVariableError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::delete_variable::DeleteVariableError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::delete_variable::DeleteVariableError::Unhandled(inner) => Error::Unhandled(inner), } @@ -595,6 +609,7 @@ impl From for Error { fn from(err: crate::operation::delete_webhook::DeleteWebhookError) -> Self { match err { crate::operation::delete_webhook::DeleteWebhookError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), + crate::operation::delete_webhook::DeleteWebhookError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::delete_webhook::DeleteWebhookError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::delete_webhook::DeleteWebhookError::Unhandled(inner) => Error::Unhandled(inner), } @@ -1455,6 +1470,7 @@ impl From for Error { match err { crate::operation::move_context::MoveContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), crate::operation::move_context::MoveContextError::WebhookFailed(inner) => Error::WebhookFailed(inner), + crate::operation::move_context::MoveContextError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::move_context::MoveContextError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::move_context::MoveContextError::Unhandled(inner) => Error::Unhandled(inner), } @@ -1500,6 +1516,7 @@ impl From for Error { fn from(err: crate::operation::publish::PublishError) -> Self { match err { crate::operation::publish::PublishError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), + crate::operation::publish::PublishError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::publish::PublishError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::publish::PublishError::Unhandled(inner) => Error::Unhandled(inner), } @@ -1679,6 +1696,7 @@ impl From for Error { match err { crate::operation::update_dimension::UpdateDimensionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), crate::operation::update_dimension::UpdateDimensionError::WebhookFailed(inner) => Error::WebhookFailed(inner), + crate::operation::update_dimension::UpdateDimensionError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::update_dimension::UpdateDimensionError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::update_dimension::UpdateDimensionError::Unhandled(inner) => Error::Unhandled(inner), } @@ -1723,6 +1741,7 @@ impl From for Error { fn from(err: crate::operation::update_function::UpdateFunctionError) -> Self { match err { crate::operation::update_function::UpdateFunctionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), + crate::operation::update_function::UpdateFunctionError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::update_function::UpdateFunctionError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::update_function::UpdateFunctionError::Unhandled(inner) => Error::Unhandled(inner), } @@ -1768,6 +1787,7 @@ impl From for Error { match err { crate::operation::update_override::UpdateOverrideError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), crate::operation::update_override::UpdateOverrideError::WebhookFailed(inner) => Error::WebhookFailed(inner), + crate::operation::update_override::UpdateOverrideError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::update_override::UpdateOverrideError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::update_override::UpdateOverrideError::Unhandled(inner) => Error::Unhandled(inner), } @@ -1813,6 +1833,7 @@ impl From for Error { fn from(err: crate::operation::update_secret::UpdateSecretError) -> Self { match err { crate::operation::update_secret::UpdateSecretError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), + crate::operation::update_secret::UpdateSecretError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::update_secret::UpdateSecretError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::update_secret::UpdateSecretError::Unhandled(inner) => Error::Unhandled(inner), } @@ -1835,6 +1856,7 @@ impl From for fn from(err: crate::operation::update_type_templates::UpdateTypeTemplatesError) -> Self { match err { crate::operation::update_type_templates::UpdateTypeTemplatesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), + crate::operation::update_type_templates::UpdateTypeTemplatesError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::update_type_templates::UpdateTypeTemplatesError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::update_type_templates::UpdateTypeTemplatesError::Unhandled(inner) => Error::Unhandled(inner), } @@ -1857,6 +1879,7 @@ impl From for Error { fn from(err: crate::operation::update_variable::UpdateVariableError) -> Self { match err { crate::operation::update_variable::UpdateVariableError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), + crate::operation::update_variable::UpdateVariableError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::update_variable::UpdateVariableError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::update_variable::UpdateVariableError::Unhandled(inner) => Error::Unhandled(inner), } @@ -1879,6 +1902,7 @@ impl From for Error { fn from(err: crate::operation::update_webhook::UpdateWebhookError) -> Self { match err { crate::operation::update_webhook::UpdateWebhookError::ResourceNotFound(inner) => Error::ResourceNotFound(inner), + crate::operation::update_webhook::UpdateWebhookError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::update_webhook::UpdateWebhookError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::update_webhook::UpdateWebhookError::Unhandled(inner) => Error::Unhandled(inner), } @@ -1944,6 +1968,7 @@ impl From for Error { fn from(err: crate::operation::weight_recompute::WeightRecomputeError) -> Self { match err { crate::operation::weight_recompute::WeightRecomputeError::WebhookFailed(inner) => Error::WebhookFailed(inner), + crate::operation::weight_recompute::WeightRecomputeError::WorkspaceLockConflict(inner) => Error::WorkspaceLockConflict(inner), crate::operation::weight_recompute::WeightRecomputeError::InternalServerError(inner) => Error::InternalServerError(inner), crate::operation::weight_recompute::WeightRecomputeError::Unhandled(inner) => Error::Unhandled(inner), } diff --git a/crates/superposition_sdk/src/operation/bulk_operation.rs b/crates/superposition_sdk/src/operation/bulk_operation.rs index 5f2564e2c..9df6f4f6f 100644 --- a/crates/superposition_sdk/src/operation/bulk_operation.rs +++ b/crates/superposition_sdk/src/operation/bulk_operation.rs @@ -197,6 +197,8 @@ pub enum BulkOperationError { ResourceNotFound(crate::types::error::ResourceNotFound), /// Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. WebhookFailed(crate::types::error::WebhookFailed), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -226,6 +228,7 @@ impl BulkOperationError { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::WebhookFailed(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -238,6 +241,10 @@ impl BulkOperationError { pub fn is_webhook_failed(&self) -> bool { matches!(self, Self::WebhookFailed(_)) } + /// Returns `true` if the error kind is `BulkOperationError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `BulkOperationError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -252,6 +259,9 @@ impl ::std::error::Error for BulkOperationError { Self::WebhookFailed(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -270,6 +280,9 @@ impl ::std::fmt::Display for BulkOperationError { Self::WebhookFailed(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -300,6 +313,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for BulkOperation Self::WebhookFailed(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/create_context.rs b/crates/superposition_sdk/src/operation/create_context.rs index 58a413290..637326cb5 100644 --- a/crates/superposition_sdk/src/operation/create_context.rs +++ b/crates/superposition_sdk/src/operation/create_context.rs @@ -197,6 +197,8 @@ pub enum CreateContextError { ResourceNotFound(crate::types::error::ResourceNotFound), /// Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. WebhookFailed(crate::types::error::WebhookFailed), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -226,6 +228,7 @@ impl CreateContextError { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::WebhookFailed(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -238,6 +241,10 @@ impl CreateContextError { pub fn is_webhook_failed(&self) -> bool { matches!(self, Self::WebhookFailed(_)) } + /// Returns `true` if the error kind is `CreateContextError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `CreateContextError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -252,6 +259,9 @@ impl ::std::error::Error for CreateContextError { Self::WebhookFailed(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -270,6 +280,9 @@ impl ::std::fmt::Display for CreateContextError { Self::WebhookFailed(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -300,6 +313,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateContext Self::WebhookFailed(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/create_dimension.rs b/crates/superposition_sdk/src/operation/create_dimension.rs index d4b96cbbc..0a76dd750 100644 --- a/crates/superposition_sdk/src/operation/create_dimension.rs +++ b/crates/superposition_sdk/src/operation/create_dimension.rs @@ -195,6 +195,8 @@ builder pub enum CreateDimensionError { /// Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. WebhookFailed(crate::types::error::WebhookFailed), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -223,6 +225,7 @@ impl CreateDimensionError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::WebhookFailed(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -231,6 +234,10 @@ impl CreateDimensionError { pub fn is_webhook_failed(&self) -> bool { matches!(self, Self::WebhookFailed(_)) } + /// Returns `true` if the error kind is `CreateDimensionError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `CreateDimensionError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -242,6 +249,9 @@ impl ::std::error::Error for CreateDimensionError { Self::WebhookFailed(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -257,6 +267,9 @@ impl ::std::fmt::Display for CreateDimensionError { Self::WebhookFailed(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -284,6 +297,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateDimensi Self::WebhookFailed(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/create_function.rs b/crates/superposition_sdk/src/operation/create_function.rs index 2fd305423..e955032b5 100644 --- a/crates/superposition_sdk/src/operation/create_function.rs +++ b/crates/superposition_sdk/src/operation/create_function.rs @@ -193,6 +193,8 @@ builder #[non_exhaustive] #[derive(::std::fmt::Debug)] pub enum CreateFunctionError { + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -220,10 +222,15 @@ impl CreateFunctionError { /// pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } + /// Returns `true` if the error kind is `CreateFunctionError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `CreateFunctionError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -232,6 +239,9 @@ impl CreateFunctionError { impl ::std::error::Error for CreateFunctionError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -244,6 +254,9 @@ impl ::std::error::Error for CreateFunctionError { impl ::std::fmt::Display for CreateFunctionError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -268,6 +281,9 @@ impl ::aws_smithy_types::retry::ProvideErrorKind for CreateFunctionError { impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateFunctionError { fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/create_secret.rs b/crates/superposition_sdk/src/operation/create_secret.rs index 5efb802da..8a68d0b29 100644 --- a/crates/superposition_sdk/src/operation/create_secret.rs +++ b/crates/superposition_sdk/src/operation/create_secret.rs @@ -193,6 +193,8 @@ builder #[non_exhaustive] #[derive(::std::fmt::Debug)] pub enum CreateSecretError { + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -220,10 +222,15 @@ impl CreateSecretError { /// pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } + /// Returns `true` if the error kind is `CreateSecretError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `CreateSecretError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -232,6 +239,9 @@ impl CreateSecretError { impl ::std::error::Error for CreateSecretError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -244,6 +254,9 @@ impl ::std::error::Error for CreateSecretError { impl ::std::fmt::Display for CreateSecretError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -268,6 +281,9 @@ impl ::aws_smithy_types::retry::ProvideErrorKind for CreateSecretError { impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateSecretError { fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/create_type_templates.rs b/crates/superposition_sdk/src/operation/create_type_templates.rs index c50d85647..dd60f16f2 100644 --- a/crates/superposition_sdk/src/operation/create_type_templates.rs +++ b/crates/superposition_sdk/src/operation/create_type_templates.rs @@ -193,6 +193,8 @@ builder #[non_exhaustive] #[derive(::std::fmt::Debug)] pub enum CreateTypeTemplatesError { + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -220,10 +222,15 @@ impl CreateTypeTemplatesError { /// pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } + /// Returns `true` if the error kind is `CreateTypeTemplatesError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `CreateTypeTemplatesError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -232,6 +239,9 @@ impl CreateTypeTemplatesError { impl ::std::error::Error for CreateTypeTemplatesError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -244,6 +254,9 @@ impl ::std::error::Error for CreateTypeTemplatesError { impl ::std::fmt::Display for CreateTypeTemplatesError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -268,6 +281,9 @@ impl ::aws_smithy_types::retry::ProvideErrorKind for CreateTypeTemplatesError { impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateTypeTemplatesError { fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/create_variable.rs b/crates/superposition_sdk/src/operation/create_variable.rs index 211d3b082..3ab061888 100644 --- a/crates/superposition_sdk/src/operation/create_variable.rs +++ b/crates/superposition_sdk/src/operation/create_variable.rs @@ -193,6 +193,8 @@ builder #[non_exhaustive] #[derive(::std::fmt::Debug)] pub enum CreateVariableError { + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -220,10 +222,15 @@ impl CreateVariableError { /// pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } + /// Returns `true` if the error kind is `CreateVariableError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `CreateVariableError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -232,6 +239,9 @@ impl CreateVariableError { impl ::std::error::Error for CreateVariableError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -244,6 +254,9 @@ impl ::std::error::Error for CreateVariableError { impl ::std::fmt::Display for CreateVariableError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -268,6 +281,9 @@ impl ::aws_smithy_types::retry::ProvideErrorKind for CreateVariableError { impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateVariableError { fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/create_webhook.rs b/crates/superposition_sdk/src/operation/create_webhook.rs index 621dd548a..af5779806 100644 --- a/crates/superposition_sdk/src/operation/create_webhook.rs +++ b/crates/superposition_sdk/src/operation/create_webhook.rs @@ -193,6 +193,8 @@ builder #[non_exhaustive] #[derive(::std::fmt::Debug)] pub enum CreateWebhookError { + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -220,10 +222,15 @@ impl CreateWebhookError { /// pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } + /// Returns `true` if the error kind is `CreateWebhookError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `CreateWebhookError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -232,6 +239,9 @@ impl CreateWebhookError { impl ::std::error::Error for CreateWebhookError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -244,6 +254,9 @@ impl ::std::error::Error for CreateWebhookError { impl ::std::fmt::Display for CreateWebhookError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -268,6 +281,9 @@ impl ::aws_smithy_types::retry::ProvideErrorKind for CreateWebhookError { impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateWebhookError { fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/delete_context.rs b/crates/superposition_sdk/src/operation/delete_context.rs index e2ec30b5f..06e8e33ea 100644 --- a/crates/superposition_sdk/src/operation/delete_context.rs +++ b/crates/superposition_sdk/src/operation/delete_context.rs @@ -199,6 +199,8 @@ pub enum DeleteContextError { ResourceNotFound(crate::types::error::ResourceNotFound), /// Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. WebhookFailed(crate::types::error::WebhookFailed), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -228,6 +230,7 @@ impl DeleteContextError { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::WebhookFailed(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -240,6 +243,10 @@ impl DeleteContextError { pub fn is_webhook_failed(&self) -> bool { matches!(self, Self::WebhookFailed(_)) } + /// Returns `true` if the error kind is `DeleteContextError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `DeleteContextError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -254,6 +261,9 @@ impl ::std::error::Error for DeleteContextError { Self::WebhookFailed(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -272,6 +282,9 @@ impl ::std::fmt::Display for DeleteContextError { Self::WebhookFailed(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -302,6 +315,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteContext Self::WebhookFailed(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/delete_dimension.rs b/crates/superposition_sdk/src/operation/delete_dimension.rs index e116c14cd..770cca7ac 100644 --- a/crates/superposition_sdk/src/operation/delete_dimension.rs +++ b/crates/superposition_sdk/src/operation/delete_dimension.rs @@ -199,6 +199,8 @@ pub enum DeleteDimensionError { ResourceNotFound(crate::types::error::ResourceNotFound), /// Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. WebhookFailed(crate::types::error::WebhookFailed), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -228,6 +230,7 @@ impl DeleteDimensionError { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::WebhookFailed(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -240,6 +243,10 @@ impl DeleteDimensionError { pub fn is_webhook_failed(&self) -> bool { matches!(self, Self::WebhookFailed(_)) } + /// Returns `true` if the error kind is `DeleteDimensionError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `DeleteDimensionError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -254,6 +261,9 @@ impl ::std::error::Error for DeleteDimensionError { Self::WebhookFailed(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -272,6 +282,9 @@ impl ::std::fmt::Display for DeleteDimensionError { Self::WebhookFailed(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -302,6 +315,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteDimensi Self::WebhookFailed(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/delete_function.rs b/crates/superposition_sdk/src/operation/delete_function.rs index 2cb499e97..38f191c89 100644 --- a/crates/superposition_sdk/src/operation/delete_function.rs +++ b/crates/superposition_sdk/src/operation/delete_function.rs @@ -197,6 +197,8 @@ builder pub enum DeleteFunctionError { #[allow(missing_docs)] // documentation missing in model ResourceNotFound(crate::types::error::ResourceNotFound), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -225,6 +227,7 @@ impl DeleteFunctionError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -233,6 +236,10 @@ impl DeleteFunctionError { pub fn is_resource_not_found(&self) -> bool { matches!(self, Self::ResourceNotFound(_)) } + /// Returns `true` if the error kind is `DeleteFunctionError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `DeleteFunctionError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -244,6 +251,9 @@ impl ::std::error::Error for DeleteFunctionError { Self::ResourceNotFound(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -259,6 +269,9 @@ impl ::std::fmt::Display for DeleteFunctionError { Self::ResourceNotFound(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -286,6 +299,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteFunctio Self::ResourceNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/delete_secret.rs b/crates/superposition_sdk/src/operation/delete_secret.rs index bb8e6d8d8..1ddc5725a 100644 --- a/crates/superposition_sdk/src/operation/delete_secret.rs +++ b/crates/superposition_sdk/src/operation/delete_secret.rs @@ -197,6 +197,8 @@ builder pub enum DeleteSecretError { #[allow(missing_docs)] // documentation missing in model ResourceNotFound(crate::types::error::ResourceNotFound), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -225,6 +227,7 @@ impl DeleteSecretError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -233,6 +236,10 @@ impl DeleteSecretError { pub fn is_resource_not_found(&self) -> bool { matches!(self, Self::ResourceNotFound(_)) } + /// Returns `true` if the error kind is `DeleteSecretError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `DeleteSecretError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -244,6 +251,9 @@ impl ::std::error::Error for DeleteSecretError { Self::ResourceNotFound(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -259,6 +269,9 @@ impl ::std::fmt::Display for DeleteSecretError { Self::ResourceNotFound(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -286,6 +299,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteSecretE Self::ResourceNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/delete_type_templates.rs b/crates/superposition_sdk/src/operation/delete_type_templates.rs index bfc9cd8ba..6bbd69b92 100644 --- a/crates/superposition_sdk/src/operation/delete_type_templates.rs +++ b/crates/superposition_sdk/src/operation/delete_type_templates.rs @@ -197,6 +197,8 @@ builder pub enum DeleteTypeTemplatesError { #[allow(missing_docs)] // documentation missing in model ResourceNotFound(crate::types::error::ResourceNotFound), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -225,6 +227,7 @@ impl DeleteTypeTemplatesError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -233,6 +236,10 @@ impl DeleteTypeTemplatesError { pub fn is_resource_not_found(&self) -> bool { matches!(self, Self::ResourceNotFound(_)) } + /// Returns `true` if the error kind is `DeleteTypeTemplatesError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `DeleteTypeTemplatesError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -244,6 +251,9 @@ impl ::std::error::Error for DeleteTypeTemplatesError { Self::ResourceNotFound(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -259,6 +269,9 @@ impl ::std::fmt::Display for DeleteTypeTemplatesError { Self::ResourceNotFound(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -286,6 +299,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteTypeTem Self::ResourceNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/delete_variable.rs b/crates/superposition_sdk/src/operation/delete_variable.rs index 9bb62e52f..c54f25522 100644 --- a/crates/superposition_sdk/src/operation/delete_variable.rs +++ b/crates/superposition_sdk/src/operation/delete_variable.rs @@ -197,6 +197,8 @@ builder pub enum DeleteVariableError { #[allow(missing_docs)] // documentation missing in model ResourceNotFound(crate::types::error::ResourceNotFound), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -225,6 +227,7 @@ impl DeleteVariableError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -233,6 +236,10 @@ impl DeleteVariableError { pub fn is_resource_not_found(&self) -> bool { matches!(self, Self::ResourceNotFound(_)) } + /// Returns `true` if the error kind is `DeleteVariableError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `DeleteVariableError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -244,6 +251,9 @@ impl ::std::error::Error for DeleteVariableError { Self::ResourceNotFound(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -259,6 +269,9 @@ impl ::std::fmt::Display for DeleteVariableError { Self::ResourceNotFound(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -286,6 +299,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteVariabl Self::ResourceNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/delete_webhook.rs b/crates/superposition_sdk/src/operation/delete_webhook.rs index fa5c3138b..fea1d2925 100644 --- a/crates/superposition_sdk/src/operation/delete_webhook.rs +++ b/crates/superposition_sdk/src/operation/delete_webhook.rs @@ -197,6 +197,8 @@ builder pub enum DeleteWebhookError { #[allow(missing_docs)] // documentation missing in model ResourceNotFound(crate::types::error::ResourceNotFound), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -225,6 +227,7 @@ impl DeleteWebhookError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -233,6 +236,10 @@ impl DeleteWebhookError { pub fn is_resource_not_found(&self) -> bool { matches!(self, Self::ResourceNotFound(_)) } + /// Returns `true` if the error kind is `DeleteWebhookError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `DeleteWebhookError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -244,6 +251,9 @@ impl ::std::error::Error for DeleteWebhookError { Self::ResourceNotFound(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -259,6 +269,9 @@ impl ::std::fmt::Display for DeleteWebhookError { Self::ResourceNotFound(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -286,6 +299,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteWebhook Self::ResourceNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/move_context.rs b/crates/superposition_sdk/src/operation/move_context.rs index ef13d0a6b..ce0ba6388 100644 --- a/crates/superposition_sdk/src/operation/move_context.rs +++ b/crates/superposition_sdk/src/operation/move_context.rs @@ -203,6 +203,8 @@ pub enum MoveContextError { ResourceNotFound(crate::types::error::ResourceNotFound), /// Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. WebhookFailed(crate::types::error::WebhookFailed), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -232,6 +234,7 @@ impl MoveContextError { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::WebhookFailed(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -244,6 +247,10 @@ impl MoveContextError { pub fn is_webhook_failed(&self) -> bool { matches!(self, Self::WebhookFailed(_)) } + /// Returns `true` if the error kind is `MoveContextError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `MoveContextError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -258,6 +265,9 @@ impl ::std::error::Error for MoveContextError { Self::WebhookFailed(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -276,6 +286,9 @@ impl ::std::fmt::Display for MoveContextError { Self::WebhookFailed(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -306,6 +319,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for MoveContextEr Self::WebhookFailed(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/publish.rs b/crates/superposition_sdk/src/operation/publish.rs index f921576ef..a9696783d 100644 --- a/crates/superposition_sdk/src/operation/publish.rs +++ b/crates/superposition_sdk/src/operation/publish.rs @@ -201,6 +201,8 @@ builder pub enum PublishError { #[allow(missing_docs)] // documentation missing in model ResourceNotFound(crate::types::error::ResourceNotFound), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -229,6 +231,7 @@ impl PublishError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -237,6 +240,10 @@ impl PublishError { pub fn is_resource_not_found(&self) -> bool { matches!(self, Self::ResourceNotFound(_)) } + /// Returns `true` if the error kind is `PublishError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `PublishError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -248,6 +255,9 @@ impl ::std::error::Error for PublishError { Self::ResourceNotFound(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -263,6 +273,9 @@ impl ::std::fmt::Display for PublishError { Self::ResourceNotFound(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -290,6 +303,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for PublishError Self::ResourceNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/update_dimension.rs b/crates/superposition_sdk/src/operation/update_dimension.rs index 4b44da033..90e98716f 100644 --- a/crates/superposition_sdk/src/operation/update_dimension.rs +++ b/crates/superposition_sdk/src/operation/update_dimension.rs @@ -203,6 +203,8 @@ pub enum UpdateDimensionError { ResourceNotFound(crate::types::error::ResourceNotFound), /// Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. WebhookFailed(crate::types::error::WebhookFailed), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -232,6 +234,7 @@ impl UpdateDimensionError { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::WebhookFailed(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -244,6 +247,10 @@ impl UpdateDimensionError { pub fn is_webhook_failed(&self) -> bool { matches!(self, Self::WebhookFailed(_)) } + /// Returns `true` if the error kind is `UpdateDimensionError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `UpdateDimensionError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -258,6 +265,9 @@ impl ::std::error::Error for UpdateDimensionError { Self::WebhookFailed(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -276,6 +286,9 @@ impl ::std::fmt::Display for UpdateDimensionError { Self::WebhookFailed(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -306,6 +319,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateDimensi Self::WebhookFailed(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/update_function.rs b/crates/superposition_sdk/src/operation/update_function.rs index 78737a4f1..082e550a3 100644 --- a/crates/superposition_sdk/src/operation/update_function.rs +++ b/crates/superposition_sdk/src/operation/update_function.rs @@ -201,6 +201,8 @@ builder pub enum UpdateFunctionError { #[allow(missing_docs)] // documentation missing in model ResourceNotFound(crate::types::error::ResourceNotFound), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -229,6 +231,7 @@ impl UpdateFunctionError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -237,6 +240,10 @@ impl UpdateFunctionError { pub fn is_resource_not_found(&self) -> bool { matches!(self, Self::ResourceNotFound(_)) } + /// Returns `true` if the error kind is `UpdateFunctionError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `UpdateFunctionError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -248,6 +255,9 @@ impl ::std::error::Error for UpdateFunctionError { Self::ResourceNotFound(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -263,6 +273,9 @@ impl ::std::fmt::Display for UpdateFunctionError { Self::ResourceNotFound(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -290,6 +303,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateFunctio Self::ResourceNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/update_override.rs b/crates/superposition_sdk/src/operation/update_override.rs index 38bda03bc..4962bfbd1 100644 --- a/crates/superposition_sdk/src/operation/update_override.rs +++ b/crates/superposition_sdk/src/operation/update_override.rs @@ -197,6 +197,8 @@ pub enum UpdateOverrideError { ResourceNotFound(crate::types::error::ResourceNotFound), /// Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. WebhookFailed(crate::types::error::WebhookFailed), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -226,6 +228,7 @@ impl UpdateOverrideError { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::WebhookFailed(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -238,6 +241,10 @@ impl UpdateOverrideError { pub fn is_webhook_failed(&self) -> bool { matches!(self, Self::WebhookFailed(_)) } + /// Returns `true` if the error kind is `UpdateOverrideError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `UpdateOverrideError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -252,6 +259,9 @@ impl ::std::error::Error for UpdateOverrideError { Self::WebhookFailed(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -270,6 +280,9 @@ impl ::std::fmt::Display for UpdateOverrideError { Self::WebhookFailed(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -300,6 +313,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateOverrid Self::WebhookFailed(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/update_secret.rs b/crates/superposition_sdk/src/operation/update_secret.rs index 690110fc4..42ed83a67 100644 --- a/crates/superposition_sdk/src/operation/update_secret.rs +++ b/crates/superposition_sdk/src/operation/update_secret.rs @@ -201,6 +201,8 @@ builder pub enum UpdateSecretError { #[allow(missing_docs)] // documentation missing in model ResourceNotFound(crate::types::error::ResourceNotFound), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -229,6 +231,7 @@ impl UpdateSecretError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -237,6 +240,10 @@ impl UpdateSecretError { pub fn is_resource_not_found(&self) -> bool { matches!(self, Self::ResourceNotFound(_)) } + /// Returns `true` if the error kind is `UpdateSecretError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `UpdateSecretError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -248,6 +255,9 @@ impl ::std::error::Error for UpdateSecretError { Self::ResourceNotFound(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -263,6 +273,9 @@ impl ::std::fmt::Display for UpdateSecretError { Self::ResourceNotFound(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -290,6 +303,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateSecretE Self::ResourceNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/update_type_templates.rs b/crates/superposition_sdk/src/operation/update_type_templates.rs index 7b47f70da..d362ea68c 100644 --- a/crates/superposition_sdk/src/operation/update_type_templates.rs +++ b/crates/superposition_sdk/src/operation/update_type_templates.rs @@ -201,6 +201,8 @@ builder pub enum UpdateTypeTemplatesError { #[allow(missing_docs)] // documentation missing in model ResourceNotFound(crate::types::error::ResourceNotFound), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -229,6 +231,7 @@ impl UpdateTypeTemplatesError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -237,6 +240,10 @@ impl UpdateTypeTemplatesError { pub fn is_resource_not_found(&self) -> bool { matches!(self, Self::ResourceNotFound(_)) } + /// Returns `true` if the error kind is `UpdateTypeTemplatesError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `UpdateTypeTemplatesError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -248,6 +255,9 @@ impl ::std::error::Error for UpdateTypeTemplatesError { Self::ResourceNotFound(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -263,6 +273,9 @@ impl ::std::fmt::Display for UpdateTypeTemplatesError { Self::ResourceNotFound(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -290,6 +303,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateTypeTem Self::ResourceNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/update_variable.rs b/crates/superposition_sdk/src/operation/update_variable.rs index 192ae3d59..1e6e3355a 100644 --- a/crates/superposition_sdk/src/operation/update_variable.rs +++ b/crates/superposition_sdk/src/operation/update_variable.rs @@ -201,6 +201,8 @@ builder pub enum UpdateVariableError { #[allow(missing_docs)] // documentation missing in model ResourceNotFound(crate::types::error::ResourceNotFound), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -229,6 +231,7 @@ impl UpdateVariableError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -237,6 +240,10 @@ impl UpdateVariableError { pub fn is_resource_not_found(&self) -> bool { matches!(self, Self::ResourceNotFound(_)) } + /// Returns `true` if the error kind is `UpdateVariableError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `UpdateVariableError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -248,6 +255,9 @@ impl ::std::error::Error for UpdateVariableError { Self::ResourceNotFound(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -263,6 +273,9 @@ impl ::std::fmt::Display for UpdateVariableError { Self::ResourceNotFound(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -290,6 +303,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateVariabl Self::ResourceNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/update_webhook.rs b/crates/superposition_sdk/src/operation/update_webhook.rs index 8475d1979..76a206cfc 100644 --- a/crates/superposition_sdk/src/operation/update_webhook.rs +++ b/crates/superposition_sdk/src/operation/update_webhook.rs @@ -201,6 +201,8 @@ builder pub enum UpdateWebhookError { #[allow(missing_docs)] // documentation missing in model ResourceNotFound(crate::types::error::ResourceNotFound), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -229,6 +231,7 @@ impl UpdateWebhookError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::ResourceNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -237,6 +240,10 @@ impl UpdateWebhookError { pub fn is_resource_not_found(&self) -> bool { matches!(self, Self::ResourceNotFound(_)) } + /// Returns `true` if the error kind is `UpdateWebhookError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `UpdateWebhookError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -248,6 +255,9 @@ impl ::std::error::Error for UpdateWebhookError { Self::ResourceNotFound(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -263,6 +273,9 @@ impl ::std::fmt::Display for UpdateWebhookError { Self::ResourceNotFound(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -290,6 +303,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateWebhook Self::ResourceNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/operation/weight_recompute.rs b/crates/superposition_sdk/src/operation/weight_recompute.rs index 913b2c9a3..3ef16e80d 100644 --- a/crates/superposition_sdk/src/operation/weight_recompute.rs +++ b/crates/superposition_sdk/src/operation/weight_recompute.rs @@ -191,6 +191,8 @@ builder pub enum WeightRecomputeError { /// Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete. WebhookFailed(crate::types::error::WebhookFailed), + /// Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock. + WorkspaceLockConflict(crate::types::error::WorkspaceLockConflict), #[allow(missing_docs)] // documentation missing in model InternalServerError(crate::types::error::InternalServerError), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). @@ -219,6 +221,7 @@ impl WeightRecomputeError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::WebhookFailed(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::WorkspaceLockConflict(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } @@ -227,6 +230,10 @@ impl WeightRecomputeError { pub fn is_webhook_failed(&self) -> bool { matches!(self, Self::WebhookFailed(_)) } + /// Returns `true` if the error kind is `WeightRecomputeError::WorkspaceLockConflict`. + pub fn is_workspace_lock_conflict(&self) -> bool { + matches!(self, Self::WorkspaceLockConflict(_)) + } /// Returns `true` if the error kind is `WeightRecomputeError::InternalServerError`. pub fn is_internal_server_error(&self) -> bool { matches!(self, Self::InternalServerError(_)) @@ -238,6 +245,9 @@ impl ::std::error::Error for WeightRecomputeError { Self::WebhookFailed(_inner) => ::std::option::Option::Some(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::std::option::Option::Some(_inner) + , Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner) , @@ -253,6 +263,9 @@ impl ::std::fmt::Display for WeightRecomputeError { Self::WebhookFailed(_inner) => _inner.fmt(f) , + Self::WorkspaceLockConflict(_inner) => + _inner.fmt(f) + , Self::InternalServerError(_inner) => _inner.fmt(f) , @@ -280,6 +293,9 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for WeightRecompu Self::WebhookFailed(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , + Self::WorkspaceLockConflict(_inner) => + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) + , Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner) , diff --git a/crates/superposition_sdk/src/protocol_serde/shape_bulk_operation.rs b/crates/superposition_sdk/src/protocol_serde/shape_bulk_operation.rs index abdcee883..0ab0e7e52 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_bulk_operation.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_bulk_operation.rs @@ -43,6 +43,19 @@ pub fn de_bulk_operation_http_error(_response_status: u16, _response_headers: &: } tmp }), + "WorkspaceLockConflict" => crate::operation::bulk_operation::BulkOperationError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::bulk_operation::BulkOperationError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::bulk_operation::BulkOperationError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::bulk_operation::BulkOperationError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_create_context.rs b/crates/superposition_sdk/src/protocol_serde/shape_create_context.rs index 866ec1905..7c19f3989 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_create_context.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_create_context.rs @@ -43,6 +43,19 @@ pub fn de_create_context_http_error(_response_status: u16, _response_headers: &: } tmp }), + "WorkspaceLockConflict" => crate::operation::create_context::CreateContextError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::create_context::CreateContextError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::create_context::CreateContextError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::create_context::CreateContextError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_create_dimension.rs b/crates/superposition_sdk/src/protocol_serde/shape_create_dimension.rs index 0d1446ab6..e64152da4 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_create_dimension.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_create_dimension.rs @@ -27,6 +27,19 @@ pub fn de_create_dimension_http_error(_response_status: u16, _response_headers: } tmp }), + "WorkspaceLockConflict" => crate::operation::create_dimension::CreateDimensionError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::create_dimension::CreateDimensionError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::create_dimension::CreateDimensionError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::create_dimension::CreateDimensionError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_create_function.rs b/crates/superposition_sdk/src/protocol_serde/shape_create_function.rs index 604c921e4..9e301e4fa 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_create_function.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_create_function.rs @@ -11,6 +11,19 @@ pub fn de_create_function_http_error(_response_status: u16, _response_headers: & let _error_message = generic.message().map(|msg|msg.to_owned()); Err(match error_code { + "WorkspaceLockConflict" => crate::operation::create_function::CreateFunctionError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::create_function::CreateFunctionError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::create_function::CreateFunctionError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::create_function::CreateFunctionError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_create_secret.rs b/crates/superposition_sdk/src/protocol_serde/shape_create_secret.rs index 97a13ae4d..0b590e79e 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_create_secret.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_create_secret.rs @@ -11,6 +11,19 @@ pub fn de_create_secret_http_error(_response_status: u16, _response_headers: &:: let _error_message = generic.message().map(|msg|msg.to_owned()); Err(match error_code { + "WorkspaceLockConflict" => crate::operation::create_secret::CreateSecretError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::create_secret::CreateSecretError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::create_secret::CreateSecretError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::create_secret::CreateSecretError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_create_type_templates.rs b/crates/superposition_sdk/src/protocol_serde/shape_create_type_templates.rs index d142fe444..3c8a16e76 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_create_type_templates.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_create_type_templates.rs @@ -11,6 +11,19 @@ pub fn de_create_type_templates_http_error(_response_status: u16, _response_head let _error_message = generic.message().map(|msg|msg.to_owned()); Err(match error_code { + "WorkspaceLockConflict" => crate::operation::create_type_templates::CreateTypeTemplatesError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::create_type_templates::CreateTypeTemplatesError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::create_type_templates::CreateTypeTemplatesError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::create_type_templates::CreateTypeTemplatesError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_create_variable.rs b/crates/superposition_sdk/src/protocol_serde/shape_create_variable.rs index 7a1bed17e..d618fefd5 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_create_variable.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_create_variable.rs @@ -11,6 +11,19 @@ pub fn de_create_variable_http_error(_response_status: u16, _response_headers: & let _error_message = generic.message().map(|msg|msg.to_owned()); Err(match error_code { + "WorkspaceLockConflict" => crate::operation::create_variable::CreateVariableError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::create_variable::CreateVariableError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::create_variable::CreateVariableError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::create_variable::CreateVariableError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_create_webhook.rs b/crates/superposition_sdk/src/protocol_serde/shape_create_webhook.rs index b9d07276a..4950bb89d 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_create_webhook.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_create_webhook.rs @@ -11,6 +11,19 @@ pub fn de_create_webhook_http_error(_response_status: u16, _response_headers: &: let _error_message = generic.message().map(|msg|msg.to_owned()); Err(match error_code { + "WorkspaceLockConflict" => crate::operation::create_webhook::CreateWebhookError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::create_webhook::CreateWebhookError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::create_webhook::CreateWebhookError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::create_webhook::CreateWebhookError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_delete_context.rs b/crates/superposition_sdk/src/protocol_serde/shape_delete_context.rs index d689aeaa1..72b2f2d52 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_delete_context.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_delete_context.rs @@ -43,6 +43,19 @@ pub fn de_delete_context_http_error(_response_status: u16, _response_headers: &: } tmp }), + "WorkspaceLockConflict" => crate::operation::delete_context::DeleteContextError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::delete_context::DeleteContextError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::delete_context::DeleteContextError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::delete_context::DeleteContextError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_delete_dimension.rs b/crates/superposition_sdk/src/protocol_serde/shape_delete_dimension.rs index 32accb1cf..85b23171d 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_delete_dimension.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_delete_dimension.rs @@ -43,6 +43,19 @@ pub fn de_delete_dimension_http_error(_response_status: u16, _response_headers: } tmp }), + "WorkspaceLockConflict" => crate::operation::delete_dimension::DeleteDimensionError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::delete_dimension::DeleteDimensionError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::delete_dimension::DeleteDimensionError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::delete_dimension::DeleteDimensionError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_delete_function.rs b/crates/superposition_sdk/src/protocol_serde/shape_delete_function.rs index f5cec06a1..acbab34fb 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_delete_function.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_delete_function.rs @@ -27,6 +27,19 @@ pub fn de_delete_function_http_error(_response_status: u16, _response_headers: & } tmp }), + "WorkspaceLockConflict" => crate::operation::delete_function::DeleteFunctionError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::delete_function::DeleteFunctionError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::delete_function::DeleteFunctionError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::delete_function::DeleteFunctionError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_delete_secret.rs b/crates/superposition_sdk/src/protocol_serde/shape_delete_secret.rs index 993f47e11..7170f8b45 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_delete_secret.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_delete_secret.rs @@ -27,6 +27,19 @@ pub fn de_delete_secret_http_error(_response_status: u16, _response_headers: &:: } tmp }), + "WorkspaceLockConflict" => crate::operation::delete_secret::DeleteSecretError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::delete_secret::DeleteSecretError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::delete_secret::DeleteSecretError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::delete_secret::DeleteSecretError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_delete_type_templates.rs b/crates/superposition_sdk/src/protocol_serde/shape_delete_type_templates.rs index 6b1c06b91..7cb9cc0c6 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_delete_type_templates.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_delete_type_templates.rs @@ -27,6 +27,19 @@ pub fn de_delete_type_templates_http_error(_response_status: u16, _response_head } tmp }), + "WorkspaceLockConflict" => crate::operation::delete_type_templates::DeleteTypeTemplatesError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::delete_type_templates::DeleteTypeTemplatesError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::delete_type_templates::DeleteTypeTemplatesError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::delete_type_templates::DeleteTypeTemplatesError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_delete_variable.rs b/crates/superposition_sdk/src/protocol_serde/shape_delete_variable.rs index 6dd1239b2..bd15b3912 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_delete_variable.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_delete_variable.rs @@ -27,6 +27,19 @@ pub fn de_delete_variable_http_error(_response_status: u16, _response_headers: & } tmp }), + "WorkspaceLockConflict" => crate::operation::delete_variable::DeleteVariableError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::delete_variable::DeleteVariableError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::delete_variable::DeleteVariableError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::delete_variable::DeleteVariableError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_delete_webhook.rs b/crates/superposition_sdk/src/protocol_serde/shape_delete_webhook.rs index e34d21cbf..6db1b0774 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_delete_webhook.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_delete_webhook.rs @@ -27,6 +27,19 @@ pub fn de_delete_webhook_http_error(_response_status: u16, _response_headers: &: } tmp }), + "WorkspaceLockConflict" => crate::operation::delete_webhook::DeleteWebhookError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::delete_webhook::DeleteWebhookError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::delete_webhook::DeleteWebhookError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::delete_webhook::DeleteWebhookError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_move_context.rs b/crates/superposition_sdk/src/protocol_serde/shape_move_context.rs index f3e6744cf..05dca1d69 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_move_context.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_move_context.rs @@ -43,6 +43,19 @@ pub fn de_move_context_http_error(_response_status: u16, _response_headers: &::a } tmp }), + "WorkspaceLockConflict" => crate::operation::move_context::MoveContextError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::move_context::MoveContextError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::move_context::MoveContextError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::move_context::MoveContextError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_publish.rs b/crates/superposition_sdk/src/protocol_serde/shape_publish.rs index 59ca00690..030bacef4 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_publish.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_publish.rs @@ -27,6 +27,19 @@ pub fn de_publish_http_error(_response_status: u16, _response_headers: &::aws_sm } tmp }), + "WorkspaceLockConflict" => crate::operation::publish::PublishError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::publish::PublishError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::publish::PublishError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::publish::PublishError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_update_dimension.rs b/crates/superposition_sdk/src/protocol_serde/shape_update_dimension.rs index 9f83118d6..7ec7fcc66 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_update_dimension.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_update_dimension.rs @@ -43,6 +43,19 @@ pub fn de_update_dimension_http_error(_response_status: u16, _response_headers: } tmp }), + "WorkspaceLockConflict" => crate::operation::update_dimension::UpdateDimensionError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::update_dimension::UpdateDimensionError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::update_dimension::UpdateDimensionError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::update_dimension::UpdateDimensionError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_update_function.rs b/crates/superposition_sdk/src/protocol_serde/shape_update_function.rs index 1a8961d6f..0a784ddd6 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_update_function.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_update_function.rs @@ -27,6 +27,19 @@ pub fn de_update_function_http_error(_response_status: u16, _response_headers: & } tmp }), + "WorkspaceLockConflict" => crate::operation::update_function::UpdateFunctionError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::update_function::UpdateFunctionError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::update_function::UpdateFunctionError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::update_function::UpdateFunctionError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_update_override.rs b/crates/superposition_sdk/src/protocol_serde/shape_update_override.rs index 2101464fb..b24fc7b50 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_update_override.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_update_override.rs @@ -43,6 +43,19 @@ pub fn de_update_override_http_error(_response_status: u16, _response_headers: & } tmp }), + "WorkspaceLockConflict" => crate::operation::update_override::UpdateOverrideError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::update_override::UpdateOverrideError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::update_override::UpdateOverrideError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::update_override::UpdateOverrideError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_update_secret.rs b/crates/superposition_sdk/src/protocol_serde/shape_update_secret.rs index fad292c5a..1663efb3d 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_update_secret.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_update_secret.rs @@ -27,6 +27,19 @@ pub fn de_update_secret_http_error(_response_status: u16, _response_headers: &:: } tmp }), + "WorkspaceLockConflict" => crate::operation::update_secret::UpdateSecretError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::update_secret::UpdateSecretError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::update_secret::UpdateSecretError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::update_secret::UpdateSecretError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_update_type_templates.rs b/crates/superposition_sdk/src/protocol_serde/shape_update_type_templates.rs index c47862b92..212ffc314 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_update_type_templates.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_update_type_templates.rs @@ -27,6 +27,19 @@ pub fn de_update_type_templates_http_error(_response_status: u16, _response_head } tmp }), + "WorkspaceLockConflict" => crate::operation::update_type_templates::UpdateTypeTemplatesError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::update_type_templates::UpdateTypeTemplatesError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::update_type_templates::UpdateTypeTemplatesError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::update_type_templates::UpdateTypeTemplatesError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_update_variable.rs b/crates/superposition_sdk/src/protocol_serde/shape_update_variable.rs index fcc9a6121..5c7576176 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_update_variable.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_update_variable.rs @@ -27,6 +27,19 @@ pub fn de_update_variable_http_error(_response_status: u16, _response_headers: & } tmp }), + "WorkspaceLockConflict" => crate::operation::update_variable::UpdateVariableError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::update_variable::UpdateVariableError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::update_variable::UpdateVariableError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::update_variable::UpdateVariableError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_update_webhook.rs b/crates/superposition_sdk/src/protocol_serde/shape_update_webhook.rs index 71d4b242c..c9414342a 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_update_webhook.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_update_webhook.rs @@ -27,6 +27,19 @@ pub fn de_update_webhook_http_error(_response_status: u16, _response_headers: &: } tmp }), + "WorkspaceLockConflict" => crate::operation::update_webhook::UpdateWebhookError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::update_webhook::UpdateWebhookError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::update_webhook::UpdateWebhookError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::update_webhook::UpdateWebhookError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/protocol_serde/shape_weight_recompute.rs b/crates/superposition_sdk/src/protocol_serde/shape_weight_recompute.rs index 9c5703dfd..f1e9de07a 100644 --- a/crates/superposition_sdk/src/protocol_serde/shape_weight_recompute.rs +++ b/crates/superposition_sdk/src/protocol_serde/shape_weight_recompute.rs @@ -27,6 +27,19 @@ pub fn de_weight_recompute_http_error(_response_status: u16, _response_headers: } tmp }), + "WorkspaceLockConflict" => crate::operation::weight_recompute::WeightRecomputeError::WorkspaceLockConflict({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::WorkspaceLockConflictBuilder::default(); + output = crate::protocol_serde::shape_workspace_lock_conflict::de_workspace_lock_conflict_json_err(_response_body, output).map_err(crate::operation::weight_recompute::WeightRecomputeError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::workspace_lock_conflict_correct_errors(output).build().map_err(crate::operation::weight_recompute::WeightRecomputeError::unhandled)? + } + ; + tmp + }), "InternalServerError" => crate::operation::weight_recompute::WeightRecomputeError::InternalServerError({ #[allow(unused_mut)] let mut tmp = diff --git a/crates/superposition_sdk/src/serde_util.rs b/crates/superposition_sdk/src/serde_util.rs index 0344feacd..ac42cb2c3 100644 --- a/crates/superposition_sdk/src/serde_util.rs +++ b/crates/superposition_sdk/src/serde_util.rs @@ -27,6 +27,12 @@ pub(crate) fn webhook_failed_correct_errors(mut builder: crate::types::error::bu builder } +pub(crate) fn workspace_lock_conflict_correct_errors(mut builder: crate::types::error::builders::WorkspaceLockConflictBuilder) -> crate::types::error::builders::WorkspaceLockConflictBuilder { + if builder.message.is_none() { builder.message = Some(Default::default()) } +if builder.lock.is_none() { builder.lock = { let builder = crate::types::builders::WorkspaceLockBuilder::default(); crate::serde_util::workspace_lock_correct_errors(builder).build().ok() } } + builder + } + pub(crate) fn bulk_operation_output_output_correct_errors(mut builder: crate::operation::bulk_operation::builders::BulkOperationOutputBuilder) -> crate::operation::bulk_operation::builders::BulkOperationOutputBuilder { if builder.output.is_none() { builder.output = Some(Default::default()) } builder @@ -65,12 +71,6 @@ if builder.last_modified_by.is_none() { builder.last_modified_by = Some(Default: builder } -pub(crate) fn workspace_lock_conflict_correct_errors(mut builder: crate::types::error::builders::WorkspaceLockConflictBuilder) -> crate::types::error::builders::WorkspaceLockConflictBuilder { - if builder.message.is_none() { builder.message = Some(Default::default()) } -if builder.lock.is_none() { builder.lock = { let builder = crate::types::builders::WorkspaceLockBuilder::default(); crate::serde_util::workspace_lock_correct_errors(builder).build().ok() } } - builder - } - pub(crate) fn create_default_config_output_output_correct_errors(mut builder: crate::operation::create_default_config::builders::CreateDefaultConfigOutputBuilder) -> crate::operation::create_default_config::builders::CreateDefaultConfigOutputBuilder { if builder.key.is_none() { builder.key = Some(Default::default()) } if builder.value.is_none() { builder.value = Some(Default::default()) } diff --git a/crates/superposition_sdk/src/types.rs b/crates/superposition_sdk/src/types.rs index b39d43f0e..d73505cb8 100644 --- a/crates/superposition_sdk/src/types.rs +++ b/crates/superposition_sdk/src/types.rs @@ -1,4 +1,6 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub use crate::types::_workspace_lock::WorkspaceLock; + pub use crate::types::_secret_response::SecretResponse; pub use crate::types::_sort_by::SortBy; @@ -35,8 +37,6 @@ pub use crate::types::_http_method::HttpMethod; pub use crate::types::_webhook_response::WebhookResponse; -pub use crate::types::_workspace_lock::WorkspaceLock; - pub use crate::types::_workspace_status::WorkspaceStatus; pub use crate::types::_workspace_response::WorkspaceResponse; diff --git a/crates/superposition_sdk/src/types/builders.rs b/crates/superposition_sdk/src/types/builders.rs index b7fc3a81b..fae45ed94 100644 --- a/crates/superposition_sdk/src/types/builders.rs +++ b/crates/superposition_sdk/src/types/builders.rs @@ -1,4 +1,6 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub use crate::types::_workspace_lock::WorkspaceLockBuilder; + pub use crate::types::_secret_response::SecretResponseBuilder; pub use crate::types::_variable_response::VariableResponseBuilder; @@ -13,8 +15,6 @@ pub use crate::types::_variant::VariantBuilder; pub use crate::types::_webhook_response::WebhookResponseBuilder; -pub use crate::types::_workspace_lock::WorkspaceLockBuilder; - pub use crate::types::_workspace_response::WorkspaceResponseBuilder; pub use crate::types::_type_templates_response::TypeTemplatesResponseBuilder; diff --git a/crates/superposition_sdk/src/types/error.rs b/crates/superposition_sdk/src/types/error.rs index a51ce3dae..ea5d52b11 100644 --- a/crates/superposition_sdk/src/types/error.rs +++ b/crates/superposition_sdk/src/types/error.rs @@ -1,12 +1,12 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub use crate::types::error::_internal_server_error::InternalServerError; +pub use crate::types::error::_workspace_lock_conflict::WorkspaceLockConflict; + pub use crate::types::error::_resource_not_found::ResourceNotFound; pub use crate::types::error::_webhook_failed::WebhookFailed; -pub use crate::types::error::_workspace_lock_conflict::WorkspaceLockConflict; - mod _internal_server_error; mod _resource_not_found; diff --git a/crates/superposition_sdk/src/types/error/builders.rs b/crates/superposition_sdk/src/types/error/builders.rs index b1f14d13f..fa2759e95 100644 --- a/crates/superposition_sdk/src/types/error/builders.rs +++ b/crates/superposition_sdk/src/types/error/builders.rs @@ -1,9 +1,9 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub use crate::types::error::_internal_server_error::InternalServerErrorBuilder; +pub use crate::types::error::_workspace_lock_conflict::WorkspaceLockConflictBuilder; + pub use crate::types::error::_resource_not_found::ResourceNotFoundBuilder; pub use crate::types::error::_webhook_failed::WebhookFailedBuilder; -pub use crate::types::error::_workspace_lock_conflict::WorkspaceLockConflictBuilder; - diff --git a/crates/superposition_types/src/api/config.rs b/crates/superposition_types/src/api/config.rs index 059e345d0..7e2e6b8b0 100644 --- a/crates/superposition_types/src/api/config.rs +++ b/crates/superposition_types/src/api/config.rs @@ -9,8 +9,8 @@ use serde_json::{Map, Value}; use superposition_derives::{IsEmpty, QueryParam}; use crate::{ - IsEmpty, custom_query::{CommaSeparatedStringQParams, QueryParam}, + IsEmpty, }; #[derive(Deserialize)] diff --git a/docs/docs/api/Superposition.openapi.json b/docs/docs/api/Superposition.openapi.json index 68095e309..111ca8ab5 100644 --- a/docs/docs/api/Superposition.openapi.json +++ b/docs/docs/api/Superposition.openapi.json @@ -1011,6 +1011,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -1090,6 +1100,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -1231,6 +1251,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -1310,6 +1340,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -1428,6 +1468,16 @@ } } }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -1498,6 +1548,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -2078,6 +2138,16 @@ } } }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -2141,6 +2211,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -2277,6 +2357,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -4032,6 +4122,16 @@ } } }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -4085,6 +4185,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -4211,6 +4321,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -4281,6 +4401,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -4711,6 +4841,16 @@ } } }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -4771,6 +4911,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -4897,6 +5047,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -5224,6 +5384,16 @@ } } }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -5284,6 +5454,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -5410,6 +5590,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -5601,6 +5791,16 @@ } } }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -5661,6 +5861,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -5787,6 +5997,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -5980,6 +6200,16 @@ } } }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -6093,6 +6323,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -6219,6 +6459,16 @@ "404": { "description": "ResourceNotFound 404 response" }, + "409": { + "description": "WorkspaceLockConflict 409 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceLockConflictResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { diff --git a/docs/docs/api/bulk-operation.StatusCodes.json b/docs/docs/api/bulk-operation.StatusCodes.json index f6eece6b2..0eb6caa4d 100644 --- a/docs/docs/api/bulk-operation.StatusCodes.json +++ b/docs/docs/api/bulk-operation.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"BulkOperation 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"array","items":{"oneOf":[{"type":"object","title":"PUT","properties":{"PUT":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"override":{"type":"object","additionalProperties":{},"description":"Configuration overrides that replace default values when context conditions are met. Keys represent configuration keys and values are the override data.","title":"Overrides"},"override_id":{"type":"string"},"weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"description":{"type":"string"},"change_reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","id","last_modified_at","last_modified_by","override","override_id","value","weight"],"title":"ContextResponse"}},"required":["PUT"]},{"type":"object","title":"REPLACE","properties":{"REPLACE":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"override":{"type":"object","additionalProperties":{},"description":"Configuration overrides that replace default values when context conditions are met. Keys represent configuration keys and values are the override data.","title":"Overrides"},"override_id":{"type":"string"},"weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"description":{"type":"string"},"change_reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","id","last_modified_at","last_modified_by","override","override_id","value","weight"],"title":"ContextResponse"}},"required":["REPLACE"]},{"type":"object","title":"DELETE","properties":{"DELETE":{"type":"string"}},"required":["DELETE"]},{"type":"object","title":"MOVE","properties":{"MOVE":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"override":{"type":"object","additionalProperties":{},"description":"Configuration overrides that replace default values when context conditions are met. Keys represent configuration keys and values are the override data.","title":"Overrides"},"override_id":{"type":"string"},"weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"description":{"type":"string"},"change_reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","id","last_modified_at","last_modified_by","override","override_id","value","weight"],"title":"ContextResponse"}},"required":["MOVE"]}],"title":"ContextActionOut"}}},"required":["output"],"title":"BulkOperationResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"BulkOperation 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"array","items":{"oneOf":[{"type":"object","title":"PUT","properties":{"PUT":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"override":{"type":"object","additionalProperties":{},"description":"Configuration overrides that replace default values when context conditions are met. Keys represent configuration keys and values are the override data.","title":"Overrides"},"override_id":{"type":"string"},"weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"description":{"type":"string"},"change_reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","id","last_modified_at","last_modified_by","override","override_id","value","weight"],"title":"ContextResponse"}},"required":["PUT"]},{"type":"object","title":"REPLACE","properties":{"REPLACE":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"override":{"type":"object","additionalProperties":{},"description":"Configuration overrides that replace default values when context conditions are met. Keys represent configuration keys and values are the override data.","title":"Overrides"},"override_id":{"type":"string"},"weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"description":{"type":"string"},"change_reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","id","last_modified_at","last_modified_by","override","override_id","value","weight"],"title":"ContextResponse"}},"required":["REPLACE"]},{"type":"object","title":"DELETE","properties":{"DELETE":{"type":"string"}},"required":["DELETE"]},{"type":"object","title":"MOVE","properties":{"MOVE":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"override":{"type":"object","additionalProperties":{},"description":"Configuration overrides that replace default values when context conditions are met. Keys represent configuration keys and values are the override data.","title":"Overrides"},"override_id":{"type":"string"},"weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"description":{"type":"string"},"change_reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","id","last_modified_at","last_modified_by","override","override_id","value","weight"],"title":"ContextResponse"}},"required":["MOVE"]}],"title":"ContextActionOut"}}},"required":["output"],"title":"BulkOperationResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/bulk-operation.api.mdx b/docs/docs/api/bulk-operation.api.mdx index 42c0ce92f..535ae86d5 100644 --- a/docs/docs/api/bulk-operation.api.mdx +++ b/docs/docs/api/bulk-operation.api.mdx @@ -5,7 +5,7 @@ description: "Executes multiple context operations (PUT, REPLACE, DELETE, MOVE) sidebar_label: "BulkOperation" hide_title: true hide_table_of_contents: true -api: eJztWt1zEzcQ/1c091KYsZ00JS+8BTADLZBMYtoHTyYj3+35RM6nqz5w3Iz/9+5K9+k72zCEtAPmgSTSfmv3t2vJ90EEOlQiN0JmwfNgfAehNaDZwqZG5CmwUGYG7gyTOShOVJo9ufg4GbDL8cW7s5fjAXs1fjee4M/353+OnzKRMc60yObIy41ciJAZxTPNQ2JmsVQM4liEAjLDZtyECcuVDEETzygYBJWitxEa9MKmt+flCu4q+NuCNi9ktAqe3wfOuszQrzzPUxE6uqNPmry5D3SYwILTb2aVA4qTs08QGpSDOlGqEaBpt3auQcuV4iskFQYWniqD8zh4Pu1KM8KktICB6cimtb0GFFHuI+RRJMg0nl40WdaDjaO7hFyBxmBoOrOShyGFASU4sxoiF/7yRBcUfAo6+wNWmkUQiwxYJBaQaTqqjC8wEXgWsc88xaAznUMo4hUzCdRiTcJRlNV4mMAWYEaNcLws7QjQWvkZlBIRfIuPKDAWc+vPipUStTdCQZ7yEMgRjtlbWr1MIKt8riKDjilvr/deldEjkoaOW9psxIC4yP9SN4u44U2fz0ujgk3rK7e1URh22g8Tns3hRgHXvRRrn/BCAdbCdIN8UGVNI7jXrejT7oU1HUGUk9frwfZELoq7k6fl+tck9P6yEVGHH5f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rOLo+QQmH3cg4KQXukFCbwwQ85wVyPD6vanR5z1jjz+34P9sIklvLmHUc0iBiS/ADMPcI2DFnL1s12L1WF6jwkfCWEzd3YwpmEAJwkbGoNG7IxDpSWsYmMlrbv4SJ15WylaD3NE6LChnBQiQsT+7ZDxzJPCMYZX7i+jnK9UIWZjGDk3MOmOLKpHcp5lmDP1UU7QtxuKMdNO2oXnUWFRmtFzBHpJgA0Vq5HwsTs/Xh8SqfhA6ap307EPzhC5Z6yPKUgR7uKL9if5ycfWSTDHLt342KDiZGHKIpqdSYodBQh5UJGmCebcf+NyhcLFe20qz8j6S5oWNnYpkDiVL8t1NAjmpDChsPFexqwqU9/x5wgkIdKau+tjvdGx3qHrc8UlF2BnE7ky0APO7Vr4+tXrJ+kfclN5UBXKMhbtDvsmKdYOmQ5ScLeP5b0gIcaHbqOMTH+sVv0zrsT7Hd2vLueQaABVw1swu3tgJ6j+cshz8QwNiZ7zbUID3MScWk3ju1xwHCoiuCqlnZOFeNyaL3Mqpzoe6eYbIpYasaRnJbRsHyNZAuSOCc0TqvAPZY9RI0lv0+PJbDzR6BwVr+GGt1yqp72a6bL6vqkvjptbhc728BqzWrtOBrXYd4hpncnSw2J11J9t5byUKGWWZ8D+LoaN8gNR79V6QrzKxDpVNr5KsrhPMeIZlKLYjrQLe0E7u/tH+zs/bGzd0D+IomZcwvVxQ0f9fXMf7/W2uVVgP9/eHlXpKctUNzsC3uwkKuEDHUFfOk9Z2iXMFZdLGkGLoO7O6wHuFDJakWfcWYU1fUV7bMQZScUVCrk8raTsjQSmgZwUqc80XBPpNZZegOopHPFW5z8BDZ3Hq7k2VkBj8/ZJn3VhfCPV+VfFze0OYICoXfGJKOm6LQSNcchrp6ZuZfWB3N3OzspHl/SooUfcYGkAsT/7dzIrHpIab/hXgVrLbdtVeBE0r9/AZp1CmE= sidebar_class_name: "put api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/create-context.StatusCodes.json b/docs/docs/api/create-context.StatusCodes.json index a55605a40..d0ea3e9e1 100644 --- a/docs/docs/api/create-context.StatusCodes.json +++ b/docs/docs/api/create-context.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"CreateContext 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"override":{"type":"object","additionalProperties":{},"description":"Configuration overrides that replace default values when context conditions are met. Keys represent configuration keys and values are the override data.","title":"Overrides"},"override_id":{"type":"string"},"weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"description":{"type":"string"},"change_reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","id","last_modified_at","last_modified_by","override","override_id","value","weight"],"title":"CreateContextResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"CreateContext 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"override":{"type":"object","additionalProperties":{},"description":"Configuration overrides that replace default values when context conditions are met. Keys represent configuration keys and values are the override data.","title":"Overrides"},"override_id":{"type":"string"},"weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"description":{"type":"string"},"change_reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","id","last_modified_at","last_modified_by","override","override_id","value","weight"],"title":"CreateContextResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/create-context.api.mdx b/docs/docs/api/create-context.api.mdx index 093309c00..ffffcff37 100644 --- a/docs/docs/api/create-context.api.mdx +++ b/docs/docs/api/create-context.api.mdx @@ -5,7 +5,7 @@ description: "Creates a new context with specified conditions and overrides. Con sidebar_label: "CreateContext" hide_title: true hide_table_of_contents: true -api: eJztWE1vGzcQ/SvEXtoCluy68SW3xE2QtGhi2Ap6MAyD2h1pGa+WW35YVgT/974h91NaOy6coEBRH2yJnBnOvJl5HHqbZGRToyqndJm8TE4NSUdWSFHSWqS6dHTnxFq5XNiKUrVQlPFyplgBcmUm9C0Zo2BnKk6jghUZLVRJnaQshPEFDC+04dWFWoqVLOWSVlS6aXKQ6IqMZNH3WetHbQ67hv7yZN1rnW2Sl9skOFY6/iirqlBp0Dz8bDmIbWLTnFaSP7lNRTCn558pZTuV4XOcItuauXNjgjJrHD/rq9wf7AB2TpUhC1/sIFhIODJKCm8BWB10wHIlXZqrcjkVv9OmBSpTwMFCV5RyRRHXW1kg5hr3jXA5dWZdLmHKWyfmJFYUEHTKFRzDaeNHAm+b5DwnxtOQLx/T06U7OmGoKmRKHIj0hWu8XudUtjH3C8ZEf2P0pkGvronmjBve7GHAWhx/c7bIpJP9mD82TiW73rdhW2cAO++nuSyXdI0Ss6MS97HelCGU4uWO+EFbNT1wrwbo8+6ZdzA0sOSMJyxU0iDFSCOwvtwmnG+o3U0iAhMnlxamFQOfk8zI4NteQXeu9ixos5yo7OnK+871jK21ubEVMvsMe1e8YivkPfbb8dER/xmjnBo2ARHR6DRYP7/RgcqYu6G6/u/+/1b3N1LXDyR9TWqZu/2t3bjPjNIAfCOiQsyl0wgVSVhx2oJPBk0h9KKNltjpEMdUvIMidqMBICZvSCDklDIqGTTPB+8ED0R04YP+t+AySIT+yq7laMwozhXvJMCUJg6F2NeZb0ZNFtK665XOwjjwjwwPNUfNf419u3AGfg6hOkgCEe45OuJBr0uGxdPwQ1syfZbvk9Z5zVenNVndB+J/cfRin+wgqr1J6YN2b7VHiUOq4ztonYxR5HvYNWjUCzLw740xYJST70KUYB+LoWw8L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G3TGQlnTzI/H49wL81TrW/fSLBBIiDyHTj3HQak2N+7fcv4uaLpUFvGzK/MsGVYW4eQQMBZJhY+sKmYYaGOTMxxT/YTiVR5aGdvxdpFmbEURrVJYy7OFJOeTXWZMY0LuQ4TF2O9cgUkg4xCehhXEw/tWK+KDNPQkO2YcYelnPXjaFMMEVUefRSpBNPNiXitPo/4EeLtbHbGd4SJsDwJZ+ovrHC756LMucjJoZFr8dvFxw8i0XHpXxd8bQCMMoYp7tWl4tJxhUwoGXOe7tf9B25fNCriLF3BpYL1UDR0NgYIyoLrXys3wioe6lyKZfy6xOFBHvr8dyqZAmVstIUyklWoXOvMhuwwlCzI+BMo+IReQXY66F1f327HdkE6Bm5uB75YQre+ab1vnl/YEqbyVPPLC9zydkqX4o/D9q5rCacExmF/abUrhLuZykJNU+eKV9Kq+GXJKlfXfIvcXSekbxqB69baBXdIwMx+m0378PdB83hIeGkhIc7HZsBpfVVlzTmvM+s/ENlT3Hjxh/x4Ab9fTALn7bPV6zvJ3dJ/dupf0QZXr+Y02pnyO1OQyhfah14h4aIEpgptVRUZrNtg7Pjo+OTg6JeDoxPWg4hbSc9S1ZU/jLT1E95u/p03t3/xkbDaIFY/xMVT+UtuaTKOL0D2qqkuUJYiSf50f4/9p0uTbbf8GXtiGMfXPOGDReZcOQZu/cbBEE+U5QW0xEJmlh4ox764cI0dedip3hyiiPvk6U5+PK/a/yfxmL/mGej7u+o+EvW8BYGKgQ5mbKOVGByVrcZLnA6Fe1C2S1ZnlzPIzqtXYSZlfMQBwC/G+On3RvsUPcX4b5jF0UylHxuiYJL//Q0v3zRP sidebar_class_name: "put api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/create-dimension.StatusCodes.json b/docs/docs/api/create-dimension.StatusCodes.json index 84d7a7691..8da90dc4c 100644 --- a/docs/docs/api/create-dimension.StatusCodes.json +++ b/docs/docs/api/create-dimension.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"CreateDimension 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"dimension":{"type":"string"},"position":{"type":"number"},"schema":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"value_validation_function_name":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"dependency_graph":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"title":"DependencyGraph"},"dimension_type":{"oneOf":[{"type":"object","title":"REGULAR","properties":{"REGULAR":{"type":"object","title":"Unit"}},"required":["REGULAR"]},{"type":"object","title":"LOCAL_COHORT","properties":{"LOCAL_COHORT":{"type":"string"}},"required":["LOCAL_COHORT"]},{"type":"object","title":"REMOTE_COHORT","properties":{"REMOTE_COHORT":{"type":"string"}},"required":["REMOTE_COHORT"]}],"title":"DimensionType"},"value_compute_function_name":{"type":"string"},"mandatory":{"type":"boolean"}},"required":["change_reason","created_at","created_by","dependency_graph","description","dimension","dimension_type","last_modified_at","last_modified_by","mandatory","position","schema"],"title":"CreateDimensionResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"CreateDimension 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"dimension":{"type":"string"},"position":{"type":"number"},"schema":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"value_validation_function_name":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"dependency_graph":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"title":"DependencyGraph"},"dimension_type":{"oneOf":[{"type":"object","title":"REGULAR","properties":{"REGULAR":{"type":"object","title":"Unit"}},"required":["REGULAR"]},{"type":"object","title":"LOCAL_COHORT","properties":{"LOCAL_COHORT":{"type":"string"}},"required":["LOCAL_COHORT"]},{"type":"object","title":"REMOTE_COHORT","properties":{"REMOTE_COHORT":{"type":"string"}},"required":["REMOTE_COHORT"]}],"title":"DimensionType"},"value_compute_function_name":{"type":"string"},"mandatory":{"type":"boolean"}},"required":["change_reason","created_at","created_by","dependency_graph","description","dimension","dimension_type","last_modified_at","last_modified_by","mandatory","position","schema"],"title":"CreateDimensionResponseContent"}}}},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/create-dimension.api.mdx b/docs/docs/api/create-dimension.api.mdx index cebbe1509..0e759f5fc 100644 --- a/docs/docs/api/create-dimension.api.mdx +++ b/docs/docs/api/create-dimension.api.mdx @@ -5,7 +5,7 @@ description: "Creates a new dimension with the specified json schema. Dimensions sidebar_label: "CreateDimension" hide_title: true hide_table_of_contents: true -api: eJztWFtv2zYU/iuEXrYBsZNlyEvf0jRLM3Rz4LjYQxAYtHRssZVJjaSaeIH/+75DybpYctJiK7ANzUNgk+fO852Ln6KEXGxV7pXR0avowpL05IQUmh5EotakHW7Eg/Kp8CkJl1OslooS8cHh3MUpreVYvNlROpHQUmkSMeSsjFWxzIT03qpFwYILB9alsSI22tOjHy0kn+DbUq3EWmq5Iojy4+goMjlZyYZdJ7VptSLcW/qjIOdfm2QTvXqKgkTt+aPM8wyamfeY7eSz0lT+5Dc5QaBZfKDYQ05uWZNX5Pi2drpF6mC/XkVb0BqnfPdSF+sFWb48rEImSWCT2U1bGXi68b8iTYiZ+Eib0SeZFSRKEQIWFLEvLDURXGb0qBYZiUR6KSzllhz8D17jrawpVqkpfHi285trjqhXPmO7JqVdUB+UzPFfJYFxvix0HD5ouabBEHQsHriPU6lXNMdzuQMUdYjn5dVTZDRNltGru37kdiZPL6/evzuf9p5rdz4Q9B3re63g67ZMGGUJ2XRX891vjw5zvptcnL+bX0zeTqaznubOZd/NPX0d6meVTi9/ncwuD2nt3r6otkt+v71v9NRQmrGEOhdis84B1RcTYU9R99W7WdJ68agFoRowLaP2UD4tIX5RQXvb1QpMEGNSWpjoybqQQaW90ePI2NVIJVCjGFopyQQwHU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ZqPXv7U8SlgIH8TU/UnsYa1QmBHWcNpcQErJVq9db/jDO0kc0/K1lnuenzD1+D57v2faRxf0TL4/wbwE97wMOU5mQX8N0zvgFHuB42g0Mn//gabXtL+ sidebar_class_name: "post api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/create-function.StatusCodes.json b/docs/docs/api/create-function.StatusCodes.json index a95657684..f2e0d8fb2 100644 --- a/docs/docs/api/create-function.StatusCodes.json +++ b/docs/docs/api/create-function.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"CreateFunction 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"function_name":{"type":"string"},"published_code":{"type":"string"},"draft_code":{"type":"string"},"published_runtime_version":{"type":"string","enum":["1.0"],"title":"FunctionRuntimeVersion"},"draft_runtime_version":{"type":"string","enum":["1.0"],"title":"FunctionRuntimeVersion"},"published_at":{"type":"string","format":"date-time"},"draft_edited_at":{"type":"string","format":"date-time"},"published_by":{"type":"string"},"draft_edited_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"change_reason":{"type":"string"},"description":{"type":"string"},"function_type":{"type":"string","enum":["VALUE_VALIDATION","VALUE_COMPUTE","CONTEXT_VALIDATION","CHANGE_REASON_VALIDATION"],"title":"FunctionTypes"}},"required":["change_reason","description","draft_code","draft_edited_at","draft_edited_by","draft_runtime_version","function_name","function_type","last_modified_at","last_modified_by"],"title":"CreateFunctionResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"CreateFunction 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"function_name":{"type":"string"},"published_code":{"type":"string"},"draft_code":{"type":"string"},"published_runtime_version":{"type":"string","enum":["1.0"],"title":"FunctionRuntimeVersion"},"draft_runtime_version":{"type":"string","enum":["1.0"],"title":"FunctionRuntimeVersion"},"published_at":{"type":"string","format":"date-time"},"draft_edited_at":{"type":"string","format":"date-time"},"published_by":{"type":"string"},"draft_edited_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"change_reason":{"type":"string"},"description":{"type":"string"},"function_type":{"type":"string","enum":["VALUE_VALIDATION","VALUE_COMPUTE","CONTEXT_VALIDATION","CHANGE_REASON_VALIDATION"],"title":"FunctionTypes"}},"required":["change_reason","description","draft_code","draft_edited_at","draft_edited_by","draft_runtime_version","function_name","function_type","last_modified_at","last_modified_by"],"title":"CreateFunctionResponseContent"}}}},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/create-function.api.mdx b/docs/docs/api/create-function.api.mdx index 36ac8da07..1ad7e45f8 100644 --- a/docs/docs/api/create-function.api.mdx +++ b/docs/docs/api/create-function.api.mdx @@ -5,7 +5,7 @@ description: "Creates a new custom function for value_validation, value_compute, sidebar_label: "CreateFunction" hide_title: true hide_table_of_contents: true -api: eJzVV21v2jAQ/iuRP20StKxTv/QbZWxF2qCCtJpUV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HaYTXWRJjF5uAhn2RyO1DQN9OQwEaxLakZCBBb7hOtqp6fBDLPE9yqSPjlARKes52Wi5nuds70x2p+E/H8RhAmG+6miKjPcQTysKDSrHFl7etn2gpbyHCZuwc+xPbUSUMkTGA/KCDli2EboyO+plU3hNUUF/R7sFIpMrJg1VCLWHAlsROI9LpU2fOwf85ial4emgKiT3ONwKcPimQRstG7Z/BlWL9e0r6aabri66xqJr1FCxCO9BIZdOlcICvniT2aifH/Z1OB3udAVDO8Sa5tLq5aMpKziuBgndmNJEWw+ECfDbmTNDa8AOkmZrZ1od4RVtOxKpHAXGpO+Elt4koz2PTzSmHspBKFCVwlONdk9JyOPsx6wCp/VW3b6fz++Y1WYC1YlS8kyXszDtXJKcOuKIZ19jxqofs2MV7NHQOc/q++b0FVsrhI5pt68hq+WDcccZoapLYb3WGkHtpNmaeNqDzZ4uEqvE5qGoqvsM6xBLQhZh1pjn4/OL4fjX4fjCzoxYNZGwVV2ElI8BzLl6H0xkVXP8WL8vFMkja2dpKKSd0DMVUkh50zzWp4J1HlA/4dpuhxUIDyrc72kZq0JRJ+Hji1BSLCnd1DrlNY6azJeaBNiWKxFqOJLCn2YF5/3M+nx8hm3zEmpTiEuc+vVNTLlX1Ia1XKHgpeE8nzNLjRZV1jsmngepOarrctnd7f0clZfFjz2RvRhyJTbUJfiJ3tBLJSdBVLBrOMVg1WSWcHmOSX//AhgKtyg= sidebar_class_name: "post api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/create-secret.StatusCodes.json b/docs/docs/api/create-secret.StatusCodes.json index a9238bcba..6f28634bc 100644 --- a/docs/docs/api/create-secret.StatusCodes.json +++ b/docs/docs/api/create-secret.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"CreateSecret 200 response","content":{"application/json":{"schema":{"type":"object","description":"Response structure for secret operations. Secret values are never returned for security.","properties":{"name":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","name"],"title":"CreateSecretResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"CreateSecret 200 response","content":{"application/json":{"schema":{"type":"object","description":"Response structure for secret operations. Secret values are never returned for security.","properties":{"name":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","name"],"title":"CreateSecretResponseContent"}}}},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/create-secret.api.mdx b/docs/docs/api/create-secret.api.mdx index 1e4d74f5f..418c33945 100644 --- a/docs/docs/api/create-secret.api.mdx +++ b/docs/docs/api/create-secret.api.mdx @@ -5,7 +5,7 @@ description: "Creates a new encrypted secret with the specified name and value. sidebar_label: "CreateSecret" hide_title: true hide_table_of_contents: true -api: eJzdVk1vGjEQ/SuWL20lICgVl9ySKFJzagT0hFBkdgfWyeJ1x94QhPjvndld9ouFoqa9NAcC9vObzzf2TobgAtTW68TIG3mPoDw4oYSBjQAT4NZ6CIWDAMGLjfaR8BEIZyHQS007Rq1BKBOKNxWnMBBT3s3R2tUYyqObBF+dVQF8ciJIEcH4A4x8EK+wHYhJTpBRkjMI5M4boKDFFA2xaUPfnU2Mo/1lgmwyRe23A9mTiQVUTPYYliHljLSJ8JM4/V0SbuXNTgaJ8eQBf1XWxjrIDl69OE7HTroggrXib35rgdiSxQsEzGORzXgNjnc5CzWU86jNSu57MgvheKfXyvtTrDQ58l7ELHwiFlDLHifY+QQhHDBr43CH1SBSZgXPFLnrROzzPGjikzezFrxJ38tjO0Qy70mvfQytxI7zrN4X2dw3LXhMgRasQqLygJSy2SFn8r2f4KqvQzKhORURqBCQfh3lvoqvTV0jK9vrA3xzXim6i/HXwyH/65JK0amEKBuSTP1xVzVNjAtGKj2mAbU+HHqdbZZt7i4QTFsjF7bvRxuNEFmawufF9uy28l0iIa/XvCNDAvW9Ji/pTKycf14nYTaAThE3QZfT/0YaNX8bsbVFc2S+w+1CWicllRe/pinybdTVio+EQKPiCSAV/QGRij36Sx3ZbJQ1OKdWXb2yr6LocKcrGD6hVjwLZB6x41TQgIgSnts2cZl95SP6deUKCOm4aONsiLg13SvbgbJ6EHlv75TTwW3KR2ZzngvtfSBtYAmYV2wTzkAe5GnOMmpeP5Lrt+n0SWRooQhOcRZpPgwfPrngfW7QM55dYiaDn7OTAbK6cJHH1bX38K7WNoZK95Ugitvq1C1VLrdkX5OdNsskC6DohUlK3UOl1IV/1BAuJ7seXo/6w6/94YjPcbXXytScyrUgyou7NYrKhv4/3ixFwfkJcGX5McBJSTHmUHMJzKSrVBKxOGhpt6N+gh8Y7/e8TDVG1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okpbB3fZQyR8YJEMgDL9txWamejVQZeMhSwP1Fvgcjkhkk/HVF6GPCMwAotjXVj5nSqUjMoLUsnFZGa19FkQKPatMpGT4fPn0mVYmPnynIzXK5uhjrnR5QwiqcLMNijPhiDBL75SQ300vpwqt0ZMGfIGTrBtzS6RKFAW4oJzjOJpjEz09br5y7BX1e2EMGxo+i6fuaxOxyDDzOeyVniXPaOWyne5nTkYUVjTHcfsJWbSmBVoy0oAsHJcczKa1rvkfbv5fKOeWnGUZzqSQhzOSvRyTXtUzqcsewSNV78nB4v4O+FLvm+ntI/vGBepVCPKXUSFsP1WFZWy50ppdEkpNpo70DBhUWO7MGrlIV9SAgbwK7n1zfT+Z/T+Q2do9vecdUwKrRuVr0zOpNTRej/xxOruHB6sVxl9HahoOQmJVdDCjxEts6ShJIDl45H5BN8NunpRMt4x4byYkVXaSRf0x1QIpRDO6VMLC1tYI5teGrhTGR/vy/K1x9szER0vf3kKCkUUfb9ElXNB0lLWxAoSsx0SRi1RK/q1SfeCgGZOyvbLEx3/y6WKLwuHrw4gNIZw/f0GMZPtIb6g39IkIBfw4EEUyb3tTMKmPT3HXeSuPI= sidebar_class_name: "post api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/create-type-templates.StatusCodes.json b/docs/docs/api/create-type-templates.StatusCodes.json index 31c646be2..fb40fba91 100644 --- a/docs/docs/api/create-type-templates.StatusCodes.json +++ b/docs/docs/api/create-type-templates.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"CreateTypeTemplates 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"type_name":{"type":"string"},"type_schema":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","type_name","type_schema"],"title":"CreateTypeTemplatesResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"CreateTypeTemplates 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"type_name":{"type":"string"},"type_schema":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","type_name","type_schema"],"title":"CreateTypeTemplatesResponseContent"}}}},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/create-type-templates.api.mdx b/docs/docs/api/create-type-templates.api.mdx index 9c99b0e30..5a3e2324e 100644 --- a/docs/docs/api/create-type-templates.api.mdx +++ b/docs/docs/api/create-type-templates.api.mdx @@ -5,7 +5,7 @@ description: "Creates a new type template with specified schema definition, prov sidebar_label: "CreateTypeTemplates" hide_title: true hide_table_of_contents: true -api: eJztVk1P20AQ/SurPbVSAhEVF24UoZYTEUlPUYQ29iRecGx3dw1EUf573+ya+CMmrYpQL+UQ7N35fPNmxlsZk42MLpzOM3khrwwpR1YokdGzcJuChKN1keJQPGuXCFtQpJeaYmGjhNZKxLTUmWb1gShM/qRjna2EodKqRUrBRC1jxTI3IsqzpV6JJ5XqWPHxiRzIvCDjX27ifSBTaE8r/xYyhn6WZN3XPN7Ii62EHUeZ40dVFKmOvP7pg+VctjJEyE8cBYzmiweKHOwgUHhzGkar2/tMrakhap1BHnI3CLdvm1Jx7DNT6bhpFIptZL9RRkZH4pE2QyRekggmBDyVkSsNidICVsZnmdKLZvSAjgKWhSGLPH12wiUmL1dJXjo8krgc3zB6TruU47oNcXXd9+QVJSpb0T1wtr0SuwC3NoR6zDribfODBoRtwOZ1ZD0VvQvlvKrKuGv7BC6Eg0IZ2HVkAOtsK0Od5MswN6uhjuFPM7wJqZgM3g4qVWfcNd0w9pybR1uoiN5hb84ntgDJA63ORiP+19dgLRQEBMWrJjz+Z/UHshoSvgLx/WJz9Fq5w+uBRB5rvpHIgYZOA13opMq6+3Ue+8H4Ds3ekH7Th414W7l1O/Qgxh7nf9/HgbyNRkbU5338v4GEAa0mZJ7IXBsDYpx/CP/XZK1a9bF/VyfTE05fMqyhVjyAJCcu6p0EYDCckpx3VpFbH4ZyCd5O2SsvLUtRabTb+PFl19iimxNV6JPEueKrsjq6LFlhNueJ1L0nZcjsBea1tQnDEDJ92+Y+dT6X3eb9Pp2OhZcWCuJItsL6deyx5oLvmapHIvsTN178mB8v4IvDlb6rN/31iwLa1JlpdWe1R9nBiNrLdUZDo+d1tsy9+YoVkxI8QjV1FSSoYYOxs9HZ+XD0ZTg6Zz0u+Fp5VlZBheYQHZIcjK09xf/lB1dVM0cv7hQOsfaQUmlSDjBweCYDh0G7hLmNg+0WhKAfJt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KTPe03CtKAxpb1uGvg37jJ7e90yAutkpJoCxcp0LWEaBwrjDrNhKc3Y76p0itMshYH6g39KiUEuhLDOE20OTYwSmudLG9sFpzKtqUmpIB2ciVctRZUBl6NTGRsuH65/BucX69E7jpntc3XVd1w+Q0LgFn0hvSH/UGgS+e5Prun8+HC/hdMDpCoY15Ir3pYDntLis0DPOko0zXrHzzDgY0sb4dcNeecc2hB5Sdu+2LbPG0r8fyVyNYmvz99Ko8L5ghecZL1DN9yQ16bPA7GLtidPgI+23eQ6dz1vM/WM6nQgnLSTEeaj4XJ+2NNZc8HvuiSvIvsWNE7/mxwm44nClHy8fJh93aK6EGivYpR3rm1drozrLNTaZynWh0mXmzJeseCrAI1RTlSBBDeON3Y5v74bjX4bjO9bjgq+lY2UJyt/lokGS1pZ1pvh/+X1Y1szSzt7AIbZ0hFTohAF6Dj8HnsOgXczcxsHhAELQZ50cj3yMImkmNh43UitG4Jl82veZ85Fy0NAiS5kYupKNnx7LIfSz6AOIxbj+teK2ZBwF3D5v4qr6LVPz5gXKQTHkolckWrPronEfhpTbq7LVuTL59DSF8KL8SMeCyTpabvkDHn+Bhqe8KzcLuDOsFaB74SZg4G3yv38AN1fleg== sidebar_class_name: "post api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/create-variable.StatusCodes.json b/docs/docs/api/create-variable.StatusCodes.json index c4073c2ec..5e9892381 100644 --- a/docs/docs/api/create-variable.StatusCodes.json +++ b/docs/docs/api/create-variable.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"CreateVariable 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","name","value"],"title":"CreateVariableResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"CreateVariable 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","name","value"],"title":"CreateVariableResponseContent"}}}},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/create-variable.api.mdx b/docs/docs/api/create-variable.api.mdx index 081b72915..78d474212 100644 --- a/docs/docs/api/create-variable.api.mdx +++ b/docs/docs/api/create-variable.api.mdx @@ -5,7 +5,7 @@ description: "Creates a new variable with the specified name and value." sidebar_label: "CreateVariable" hide_title: true hide_table_of_contents: true -api: eJzVVktv2kAQ/iurPbUSJCgVl9ySKFJzahRoLwhFiz3gTfzYzq4h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RhJVJi8cjXSV8denpxMuUXseSXE5qeKHBauBltcba8wYJfK1SDxdC+u2u7B5vxBjJJzh0x/Xq9iQL/5e4ag/zHW8FoKzw6YJtNIhe02lOvI8iyPAitt0Vbr/cLwi8Kl/5aBLkM07t+XWQPokNt2c+HSo5rNE8QGrNQ+uShU3++w/Inibk sidebar_class_name: "post api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/create-webhook.StatusCodes.json b/docs/docs/api/create-webhook.StatusCodes.json index a4ecf200b..e2ab835dd 100644 --- a/docs/docs/api/create-webhook.StatusCodes.json +++ b/docs/docs/api/create-webhook.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"CreateWebhook 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"url":{"type":"string"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD"],"title":"HttpMethod"},"version":{"type":"string","enum":["V1"],"title":"Version"},"custom_headers":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"events":{"type":"array","items":{"type":"string"}},"max_retries":{"type":"number"},"last_triggered_at":{"type":"string","format":"date-time"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","enabled","events","last_modified_at","last_modified_by","max_retries","method","name","url","version"],"title":"CreateWebhookResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"CreateWebhook 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"url":{"type":"string"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD"],"title":"HttpMethod"},"version":{"type":"string","enum":["V1"],"title":"Version"},"custom_headers":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"events":{"type":"array","items":{"type":"string"}},"max_retries":{"type":"number"},"last_triggered_at":{"type":"string","format":"date-time"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","enabled","events","last_modified_at","last_modified_by","max_retries","method","name","url","version"],"title":"CreateWebhookResponseContent"}}}},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/create-webhook.api.mdx b/docs/docs/api/create-webhook.api.mdx index 025263b77..89e38f07e 100644 --- a/docs/docs/api/create-webhook.api.mdx +++ b/docs/docs/api/create-webhook.api.mdx @@ -5,7 +5,7 @@ description: "Creates a new webhook config to receive HTTP notifications when sp sidebar_label: "CreateWebhook" hide_title: true hide_table_of_contents: true -api: eJztV0tv2zgQ/isET10gTrxZ5J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k1/G3F9gYa7HjUE0m7WP3UWWN/mEQ9fzRYFMP6e/JPl3zuS5b7pMQjyq+QYixD0R9CQm1bN4ANkWI3uHGIs4ph2UYjfFk1+DDBUxygGHKYAJRfguDYRozjYgS6K55rjf7FOxapODSug2rlMUZ21GHEBIzh635SpBOvh4NcxF0rU3NzDEhYGv8Oo3Lm2bVvdqZS9HITyXg4GmlcGOjLYSAIQuhGQgYWspdu2w7fpRIfrkyG6AghTjvPyUbHdZ+zfWMYfV39/UEcNuL2TaUpMj7Qy50oDGivmwvfp0NKy/2B7m+rnWH3G8uTjKFmLJCIetSyDTeV2aNBgoJthgLmB9otNDK5YtISQqg9NDhE4NNFamOH3DkgtGZSWp6OKiA1y9FEQINuWrTRseH6Z1S12NC5km766eq0b1a6QgmNT+Vb0EiCU60RwKc/ZWIa5od9HU6PO33B0Am+pmE1KBjaUFLKMSnIlHEOcBvh3fGmetkzgP0j7c6NuSaRNtod8UweRTgKvedGivOcjswfaHI93AeuQVcCD7W2W0qBj3JYZxU2rXdQ695xnTTjKE6E4vNcjsduUqR96ocXPHuLGSf+kh0n4ApDVb6p35CnW2ysGOoJeKgLG7NjMe/S/F5MuPVuVTE/v1YzKI2aPWNlY16bl0oeOkNT48Ej05VyOSnwdZsjIhEdsgi5NngyOTkdT/4aT07pHAEo4WkjTj8PsPq7wcGgX3XJL/usUdTZwtYeZzGXzTcIj/x5UCIfkxRRT+DS8zPCCO50vN/TMpZWUzvg5RPXkorl8V++nlGnhNIUVVzx2MALwf9xU9DWn2zIRRzt2y+Xbs7HpYCa7qeYar56tqx5gYJaxjPSUUt02K4+cS4EZPZF2SYfFe9ly+IbEw6odEbzDX1/wv/oDT0XHAhIwK3hIIKwzh1nBl4n/X0DMQC4Hw== sidebar_class_name: "post api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/delete-context.StatusCodes.json b/docs/docs/api/delete-context.StatusCodes.json index 46e14789d..c757938a5 100644 --- a/docs/docs/api/delete-context.StatusCodes.json +++ b/docs/docs/api/delete-context.StatusCodes.json @@ -1 +1 @@ -{"responses":{"204":{"description":"DeleteContext 204 response"},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file +{"responses":{"204":{"description":"DeleteContext 204 response"},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/delete-context.api.mdx b/docs/docs/api/delete-context.api.mdx index 5b6bac078..9bc40773c 100644 --- a/docs/docs/api/delete-context.api.mdx +++ b/docs/docs/api/delete-context.api.mdx @@ -5,7 +5,7 @@ description: "Permanently removes a context from the workspace. This operation c sidebar_label: "DeleteContext" hide_title: true hide_table_of_contents: true -api: eJzFVk1zEzkQ/SuquSxU2Y7JJhffgIQCapelElMcUjnIUo9HRCMN+ojxuua/0y2NZ+I4MVBAcbIs9cfr1uun2RQSvHCqCcqaYla8B1dzAyboNXNQ21vwjDNhTYAvgZXO1ixUwFbW3fiGC5iweaU8sw04TiGY4MbYwBbAopHWAONGspXSmvGyBBEoVqmWGNxbHcllUoyK3v+NRBBnoCHAy5wUTxvueI07zhezq01h8A9aKYlHikA3PFS49qKCmhezTRHWDVn44JRZFu2ocPA5KgcYPLgI7agP8mWc8YwDX/ptvAq4BHco4k4E65bjAcy3nQ/C6Tv7E/Guacc31njwZH88PaGf3ZveaTJDE7b1oYgnD7lc4J1FJ+CdDa8sXi87ued1Op3ue73BDM5wfQnuFty5c9YxNBwcR0Xilwnky5tGK5G4cPTJU4DNfuV28QmpRMxwxJygcp01eM+X8OB9FUEFDQ/DueiQvOxgtC05nD473i/mIywqa29ecaVBMjT5JWXcb5gkV5y8UPGQ5m2YLx+FAJCYfBHz2SpDwsnDISsTMJpK6JGxhZXrNMNcGZ98UhTvy6jJKuow6sMJrbAG5isbtaQ55ivuIEPZpsIJV2VXHpNK0gYmqBui1GTvXiQPfL+V810cQ4kZUZcxoaj4LVYBQGchOgMkKaFir+fz90jd6Yh5cIpr9T+ecFQsg+pDTZZHjq/Y28v/3jFpRayxstwbJEYUGAqYtktFraMOudwyiU2yu33/y2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86ohLv11T6wf72r9AbbhLQq8wQ1Q+7W93tW5WG9I5xfvL0YXKKV/AGZXbyc= sidebar_class_name: "delete api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/delete-dimension.StatusCodes.json b/docs/docs/api/delete-dimension.StatusCodes.json index 8f88f1ae3..88745f379 100644 --- a/docs/docs/api/delete-dimension.StatusCodes.json +++ b/docs/docs/api/delete-dimension.StatusCodes.json @@ -1 +1 @@ -{"responses":{"204":{"description":"DeleteDimension 204 response"},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file +{"responses":{"204":{"description":"DeleteDimension 204 response"},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/delete-dimension.api.mdx b/docs/docs/api/delete-dimension.api.mdx index 501d63640..daead7f1e 100644 --- a/docs/docs/api/delete-dimension.api.mdx +++ b/docs/docs/api/delete-dimension.api.mdx @@ -5,7 +5,7 @@ description: "Permanently removes a dimension from the workspace. This operation sidebar_label: "DeleteDimension" hide_title: true hide_table_of_contents: true -api: eJzVVk1v4zYQ/SuELt0Cju2mycW37SaLblFsF4mLHoIcaHFkcUORWn7EcQ39976RZMmOs0HRbg89mSJn3sw8zjx6lykKudd11M5mi+wT+UpastFshafKPVIQUihdkQ2wEIV3lYgliY3zD6GWOU3FstRBuJq8ZBCx0caIQmojdNGajt6lBFoe9SM2qSaryOYaEZwXgPBUkMcOKbHaCnrSIWq7FrmzhV6nDj1Ms0k2xPqgkPIVGYp0tQ+C81p6WWHPh2xxt8ssPmCnDiw011rLWGId8pIqmS12WdzWbBiiR9ysmWSeviTtCVGiT9RMBqynM+fXZ1rtoUqSivw/BhvI/Bd497wTalBEge3P5xf8c3y9z7gSMBJ7L8a8eMnphoJLPqePLr53ySpx8czrcj4/9fpgcQFWmlvyj+Svvcclw3B0nGS42YhWY19Z10bn7aXOPgcG2J3W7lafKY98wZ5bIOqu0opCkGt6gSTkFnU09HI6N30m7/o0moYdLn84Py3mD1qVzj28R1ejO2HyTcp4TphiV4xDLGVs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A1JyAfp4fHx6MP7tYHzKHkLE4wHBqs10G0ZO0Z/PN3xbrgnp//H6aPLs6dEflTnIiuOubM6hhDq82XhrnK3/oHYyJIgllkucKn22+WrFyxifLFcnPh8kSGLKWUetJsrxN4o9lbmjJ3L381XTa7+IfU42i1Lz7fsg84r/4fOeFhvvoxXaoH2CvLoTwVjvAdU5wr33Q0z1n1cb1oLAW7B76Xt7g2tx1Sed84sPF5MLdMk/D1pm6A== sidebar_class_name: "delete api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/delete-function.StatusCodes.json b/docs/docs/api/delete-function.StatusCodes.json index 5010350af..82c656db6 100644 --- a/docs/docs/api/delete-function.StatusCodes.json +++ b/docs/docs/api/delete-function.StatusCodes.json @@ -1 +1 @@ -{"responses":{"204":{"description":"DeleteFunction 204 response"},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"204":{"description":"DeleteFunction 204 response"},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/delete-function.api.mdx b/docs/docs/api/delete-function.api.mdx index cb56c9eda..ad1044113 100644 --- a/docs/docs/api/delete-function.api.mdx +++ b/docs/docs/api/delete-function.api.mdx @@ -5,7 +5,7 @@ description: "Permanently removes a function from the workspace, deleting both d sidebar_label: "DeleteFunction" hide_title: true hide_table_of_contents: true -api: eJzNVN9P2zAQ/lcsP21SSysGL31jo2hI04SAPSGErsmlMTixOTtAFeV/312alIYCmvZDWl/q2N+dv7v7/NU6xZCQ8dG4Us/0GVIBJZbRrhRh4R4wKFBZVSYCUBm5QsUc1aOju+AhwZFK0WI05VItXMxVSpBFBWWqfLWwJuSYqgekwNGcyTrGPRrGgbUKQnCJgciQxKW4p06jysDYoEzGAEJIV8qUqgqoR9p5JBAWpykTPZZb8aQjxsceCAreoqBnV7Uu+YNhPfOb9nukjRTpIea8DkmOBehZrePKCzhE4jp0M9KE95Uh5IsiVdiMNvmexo6WY5P2qXLmiPTbyTZt/IN817ITPPcXg+D3pwfyN5zrsF2KMaoPkpQHr8WcY3AVJfjdxRNX8UQPXkQdTqe7Uaclz6AEe4HEc58TOVIMfA4c6cQxpowSC95bk7RjndwGSVDvlu4Wt5hEmTGJCKJZF1pgCLDEV3rE3KKJFl+nc94x+dLRaOTHEbAU6ei+SUFzZ1lRuRO9tSrHVmcsnpme9Mqa1AONNTI7TCoycdUKMRQs99UeeLOXx+g/QzDJUSU5rq5FCy/PEQhpA7h+znYhbVlX/nbOTStkn6kMZ/P18vJMtWgFDOfiu973gpPIhZzLeN9h9ivXtPD37mkB7bBMmbk2aTe0i4rH7F0wXUxnIHyyP90/HE8/jaeHwpAhke1KQrsntda52vKFAbX6WXv/s9V1zY34FCfeAjsDF1uRlQLW+rvaOBvDZ0OXY83k3BgB1TVPE3+QbRrZvq+QRJW8fAAysJBus0ZTE2TNOs/ABnynaR/OO/P5qN7i2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72R17X5HIKQecPes7VrS0kR+WGefCnk/YvIfNzeXqkYrYLgMmSb33X4UyYV8lx55wbO3mKnhL9mpAXWxjE1crbQt2nXJZS6cN61Me+/wl5PZydl09tt0diYeMiTwdSWi7QXQrGW1dcYMXNs8c+//fJm1yQ34FI6LDPiQ4WBLyiSAhn+3/SHG8PnwKGPOpJwYAW02XE38RllVyWveLSSs5MclkIGFZJs5Ghsvz8zzBDKPLyTtl6t2iPyqDvnZvgQro2kJWSn/+PER16P7seIW6E60d3ekMbh1YPbOSN/9J6a2z8+BtQbwUWsswta30firtmfO5/Ov5zfn3CF/A+JrV20= sidebar_class_name: "delete api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/delete-secret.StatusCodes.json b/docs/docs/api/delete-secret.StatusCodes.json index 1cdbf6331..b24e8c427 100644 --- a/docs/docs/api/delete-secret.StatusCodes.json +++ b/docs/docs/api/delete-secret.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"DeleteSecret 200 response","content":{"application/json":{"schema":{"type":"object","description":"Response structure for secret operations. Secret values are never returned for security.","properties":{"name":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","name"],"title":"DeleteSecretResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"DeleteSecret 200 response","content":{"application/json":{"schema":{"type":"object","description":"Response structure for secret operations. Secret values are never returned for security.","properties":{"name":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","name"],"title":"DeleteSecretResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/delete-secret.api.mdx b/docs/docs/api/delete-secret.api.mdx index 3632ebcbf..4260c8378 100644 --- a/docs/docs/api/delete-secret.api.mdx +++ b/docs/docs/api/delete-secret.api.mdx @@ -5,7 +5,7 @@ description: "Permanently deletes a secret from the workspace. The encrypted val sidebar_label: "DeleteSecret" hide_title: true hide_table_of_contents: true -api: eJy9VU1v2zAM/SuCThuQL3TNJbduzbACw1A02SkoCkVmYrW2pEpy1yDwfx/pr8SJExRbt1Mc8ZF8JJ+oLY/AS6dsUEbzCb8FlwoNOiQbFkECATwTzIN0ENjKmZSFGNgv4568FRIGbI5/QUu3sQEi9iKSDJjyzEFqXvBA6IhJobUJbAl4KvHUQTTgPW4sOEFpbyJMfF0kmxWJ0GiFEykeOM8niy3X+AdBxU+PK2JqRYjx28sYUsEnWx42ljA+OKXXPO9xB8+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+MFgO3zE9x1f0T0vNWCbxTijLfuRtMq6I7JD5cfrq8uQS5/wHoQvb+ sidebar_class_name: "delete api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/delete-type-templates.StatusCodes.json b/docs/docs/api/delete-type-templates.StatusCodes.json index e93c6ea8c..c9a6f25bd 100644 --- a/docs/docs/api/delete-type-templates.StatusCodes.json +++ b/docs/docs/api/delete-type-templates.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"DeleteTypeTemplates 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"type_name":{"type":"string"},"type_schema":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","type_name","type_schema"],"title":"DeleteTypeTemplatesResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"DeleteTypeTemplates 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"type_name":{"type":"string"},"type_schema":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","type_name","type_schema"],"title":"DeleteTypeTemplatesResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/delete-type-templates.api.mdx b/docs/docs/api/delete-type-templates.api.mdx index c4c164610..e21c2be44 100644 --- a/docs/docs/api/delete-type-templates.api.mdx +++ b/docs/docs/api/delete-type-templates.api.mdx @@ -5,7 +5,7 @@ description: "Permanently removes a type template from the workspace. No checks sidebar_label: "DeleteTypeTemplates" hide_title: true hide_table_of_contents: true -api: eJy1Vktv2kAQ/iurPbUSL6Xhwi1taBupSlFDTwihxR7wJrbXmV2TIOT/3pm1eRgMqprmxLLz+mbm2xlvZAg2QJ05bVI5kCPARKWQungtEBKzAiuUcOsMhIMki5UDsUCTCBeBeDH4ZDMVQEfcGxFEEDxZkQEuDCYQipdIxyBCiMHpdClb0pBMcaC7kELdsgDG5HpcebakkylUCd2jlYPJRqb0h3QZwMyfW1Izzky5iM6WgiZKDjZeg+6tQ45VtCTCc64RKJLDHIrWztdr2+CyrcOtqwhUCPjPznZFeIO/Kd/YzKSWakD6V70e/9Rb01AvQYpia0kRA5M66h3bqiyLdeCr3X207GBzCsjMHyFwXHXk3jhdht9Xuwm7l553pcJQc1QVjw6dkmE9nW+QAupAPMG6vVJxDqJ0IShSHrgcQ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/PhZnFD9P4fK90oAg== sidebar_class_name: "delete api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/delete-variable.StatusCodes.json b/docs/docs/api/delete-variable.StatusCodes.json index 6dbcc8409..8882026b9 100644 --- a/docs/docs/api/delete-variable.StatusCodes.json +++ b/docs/docs/api/delete-variable.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"DeleteVariable 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","name","value"],"title":"DeleteVariableResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"DeleteVariable 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","name","value"],"title":"DeleteVariableResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/delete-variable.api.mdx b/docs/docs/api/delete-variable.api.mdx index 1051921a2..50fc3ea46 100644 --- a/docs/docs/api/delete-variable.api.mdx +++ b/docs/docs/api/delete-variable.api.mdx @@ -5,7 +5,7 @@ description: "Permanently deletes a variable from the workspace." sidebar_label: "DeleteVariable" hide_title: true hide_table_of_contents: true -api: eJy1VU1vm0AQ/SurPbUSjq00vvjWNq4aqaqiJO3FsqI1jM0mwJLZJQ1C/PfO8GVjYytKmxOw8+b78baQAVgfdeq0SeRMXgPGKoHERbkIIAIHVijxrFCrVQRijSYWLgTxx+CjTZUPZ9KTJgVUHOAqoBCXldvvxoXMqUIV0xFaOVsUMqEPglUPT2rOmioX0rv1Q4iVnBXS5SljrEOdbGTpSYSnTCNQfIcZlF4X5mVkcDPSQRsqBBUAvjlY19c/xFvyiU1NYsEy/nwy4Ud/0P0pCcKI1omS+SZxtAR2U2kaab8a7/jBsm9xWItZPYDveNbIy3C6zly3NVDxs4qyYUuvygG7H6pkA/cIyh5DkM1BcL/KT5qVOzR7cm2If2SRAYFGTlP95BMp6+5jE+i1Ph64D3p9+N4CF3sN9urt9dYf1UD6gbK9lvX1/IkoTrsIDuhw0zDha0ODsuQqLyYXhzwiqMnQh5/GfTNZEghCbZlEXtMh9l1RXExUdAv4DDhHNCim70LBGKxVmyGuldvuB8oZGgF7qA2riGwnZXmIJC6hYempFauSHBKUmRy3wmXHBU++5P8Y/Ay1yystsrF2YX6mUn0WOpd+UVb7nzP2X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RT6yAvtsrXgGeYJsp9swN0vGIW7UD34adT24pfMhYwb9g3NqjMmtlSBgi4+GwZESk1sZ5moJztNW6RekhDVsiddvRZUBnS/XWxiBGOT9hO2JTds26GV9yZ2Mfy4+s4VJILtHdozt3jgl89lu+mNP7oXhMZwTOWDJiARs5eoJmsXupCt9CsZVLqTqwyguJ759lcNLcWf7kIB+KQs4O5FkytC9PJ781FO/nkJl5TJS9A2/021xsr2/kjDmWIzh0rcLNo7dLKUeV8bTPtgTyfsDgv6+uLlSprYDVZblUNW9uJbFciVxm4wlkzwlTqj8Vp1Qom2TStS2d1s26zLm9mfWmtuGO+cr16eL0bLZ4NVucCUJWIT59H8+m+pusOpfs0XHUcu7XzuY6bcIHOskS4HOTYeQuEdcVI66DlhGsvyxxcRdjhirCw4Hri19dUhTymre8E57chK1ZyZrIeHlmxq0h8fhEGn98qcf5TzWFr34J6b49Y5YBP97hvjnqC+Zicze/ePwqTufqbzHIAPyWUN3/CXrRKoW3WmNGHdlg/xTdof9w/un86pyp+h+bDLlI sidebar_class_name: "delete api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/delete-webhook.StatusCodes.json b/docs/docs/api/delete-webhook.StatusCodes.json index bd3a6ecd3..7812d1c83 100644 --- a/docs/docs/api/delete-webhook.StatusCodes.json +++ b/docs/docs/api/delete-webhook.StatusCodes.json @@ -1 +1 @@ -{"responses":{"204":{"description":"DeleteWebhook 204 response"},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"204":{"description":"DeleteWebhook 204 response"},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/delete-webhook.api.mdx b/docs/docs/api/delete-webhook.api.mdx index 81bdd3fec..611ba9f1b 100644 --- a/docs/docs/api/delete-webhook.api.mdx +++ b/docs/docs/api/delete-webhook.api.mdx @@ -5,7 +5,7 @@ description: "Permanently removes a webhook config from the workspace, stopping sidebar_label: "DeleteWebhook" hide_title: true hide_table_of_contents: true -api: eJzFVEtv2zAM/iuCThuQNEHXXnLr1gwrMAxF02GHIgfFZmK1tqRSdNLA8H8faTuvNi2GPTBfLIuvj/w+s9IpxARtIOudHulrwMI4cJSvFULhlxCVUSuYZd4/qMS7uV2oOfpCUQZq5fEhBpNAT0XyIVi3UCbP1bykEkHBkhMp58nObWKkQlTkOdKQApcGbx2d6J72AbAxX6UM4RJyIPjRlmRrMGgKvsGoR3eVdvzBXs2rp62ADoYyPsckg8LoUaVpHcQnEjIiXfc0wmNpETg9YQl1b5vmqe9x0bfpJlUGJgX87WTbgfxBvqncxMDDgij+p8MzeR3ydDAkxS5qEyMZz46F3ED0JSbwzdNnX7pUnT2LOh8OX0ZdOZ68M/kEcAk4RvSo2HEX2NOsCmKiJdaEkHdUD+6jJKhedu5n95CQMIvCPNm2zwJiNAs4MiLGRpZyOA7npkPyqYNRy8MRZiGC0d2Moua5s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Hi7AAsLDB0ZrUSksCZokdCBBqyYKhhenYiEN7RbosIJgXDyhBtD081IxJIjQ98zJ2dCXS/k5QdTwcdkbbLsc0AmVxsOKf9sdGzUffPoGuxY3rrcXPdTprP7ZipKgW8GI364+qrSPgC8xvyc/KX3guBRfBdhtVb50O1CeeAO4eCUQ2c6n6L2pEeNCmy9TKrKzGpp329C2XTjaPTdiGfrnTzVLpeSBrJ8LJekWFmOFueoDMnGbP7hMHEH0vVvH/QdbV/T+jJdwIPG7QbzUUT7nHMLn4979H3j9vbK6ilAUVcJ0uT8PVOVM2J3mtjvODZW8zU4i/ZqQXqCpkitTVoW6mbUmrrbDCtjpQrNNBno7OL4ei34ehCPRQRlheSqrZbv1nFsHmw7Hi22vDt/3lctVljeuZTl6O8SiSK0ufqWkOn+2jR+T6ugxIKZBKnXq1WUhz67vOq0mPZD15JJp9z9AYnmjyhXGKCfgtZU8wDvZCEX67bQfArHPOuPcRCx8sc81L/yecTLdcvv0qIvH5cvbv9xs7W07DzQbvnPzG1/XDcsdYIfIxjcrx115tc1fa8+HL57fL2Unj+N8INK48= sidebar_class_name: "delete api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/move-context.StatusCodes.json b/docs/docs/api/move-context.StatusCodes.json index 5d1b60f78..47593f4c9 100644 --- a/docs/docs/api/move-context.StatusCodes.json +++ b/docs/docs/api/move-context.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"MoveContext 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"override":{"type":"object","additionalProperties":{},"description":"Configuration overrides that replace default values when context conditions are met. Keys represent configuration keys and values are the override data.","title":"Overrides"},"override_id":{"type":"string"},"weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"description":{"type":"string"},"change_reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","id","last_modified_at","last_modified_by","override","override_id","value","weight"],"title":"MoveContextResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"MoveContext 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"override":{"type":"object","additionalProperties":{},"description":"Configuration overrides that replace default values when context conditions are met. Keys represent configuration keys and values are the override data.","title":"Overrides"},"override_id":{"type":"string"},"weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"description":{"type":"string"},"change_reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","id","last_modified_at","last_modified_by","override","override_id","value","weight"],"title":"MoveContextResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/move-context.api.mdx b/docs/docs/api/move-context.api.mdx index 6b89ef454..0966cc588 100644 --- a/docs/docs/api/move-context.api.mdx +++ b/docs/docs/api/move-context.api.mdx @@ -5,7 +5,7 @@ description: "Updates the condition of the mentioned context, if a context with sidebar_label: "MoveContext" hide_title: true hide_table_of_contents: true -api: eJzdWEtz2zYQ/isYXtrOyLLrxhffEjeZpJ0kHj+mB4/HA5FLETFEsABoWdXov/dbgE9Jdh9ODq0PFgXs88Puh6XWSUYutaryypTJaXJdZdKTE74gkZoyU7wuTB4WFlTyV8p4y9OjnwiVC9l+E0vliyBY0nKgLbUlma0EPSrnHXQ8LNl548U8kLUqIyHLTFCeU+rVA+mVyEiTV+U8SunOaTJJTEVWsu0PGWL+CBNn3Z6l32ty/o3JVsnpOglKpedHWVVapUHv8I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T5QFlT/WqkRVnFL51Js43OBy4N86vPvVDIEythoC2Y4qxC5VpkN3qElmZPxN1DQCb6C7HRQuz6+3YrtJulYcnM5yAUPnPWAKt7JHKXDlrMk9OSp5ocHqOXj5Bn0NDqsetrDJbqdw41Ktjz7Ee4LtMV+erVLGL6eykJNU+eKl9Kq+EXJzDe3PEvu7hMCYRqC21baJddKyJ79MptC4vVBGfnk8NRCgpwv0JCx9cDKnDPeZ/x/xLKvUePJH9PjCfzJMRxctC84rx4k103/BWYwdDU30U5/3+mAVD7X3tgqCy5L5FOhrapsAdrZIOz46Pjk4OiXg6MT5gOJW0qPUNWoz82saJ+bdkaOBuX+Iy9p1eH5xMVwqvwgXJqMfQmJfRO11Jza+HOKOxXpmCI2vL/ZIFHo2mTbLS/j8Awn/C2PBACeGQcc6Z8oy98onLnMLD0Suh8vqvr9SewzsVqU+bqZPE4jfGIaDg9EW5RU/Qbz5NqDls4LUmMB1/F3UdV9X+ppCwQVgB1csYyWYnDTthwvcLkU7lHaLtadX1+Bdla9qjKmYxH3B7+44n8ffO1d9Ljk19DKox5L33VEQST/+xsw+Pqz sidebar_class_name: "put api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/publish.StatusCodes.json b/docs/docs/api/publish.StatusCodes.json index 6e2d99127..9bc873214 100644 --- a/docs/docs/api/publish.StatusCodes.json +++ b/docs/docs/api/publish.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"Publish 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"function_name":{"type":"string"},"published_code":{"type":"string"},"draft_code":{"type":"string"},"published_runtime_version":{"type":"string","enum":["1.0"],"title":"FunctionRuntimeVersion"},"draft_runtime_version":{"type":"string","enum":["1.0"],"title":"FunctionRuntimeVersion"},"published_at":{"type":"string","format":"date-time"},"draft_edited_at":{"type":"string","format":"date-time"},"published_by":{"type":"string"},"draft_edited_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"change_reason":{"type":"string"},"description":{"type":"string"},"function_type":{"type":"string","enum":["VALUE_VALIDATION","VALUE_COMPUTE","CONTEXT_VALIDATION","CHANGE_REASON_VALIDATION"],"title":"FunctionTypes"}},"required":["change_reason","description","draft_code","draft_edited_at","draft_edited_by","draft_runtime_version","function_name","function_type","last_modified_at","last_modified_by"],"title":"PublishResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"Publish 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"function_name":{"type":"string"},"published_code":{"type":"string"},"draft_code":{"type":"string"},"published_runtime_version":{"type":"string","enum":["1.0"],"title":"FunctionRuntimeVersion"},"draft_runtime_version":{"type":"string","enum":["1.0"],"title":"FunctionRuntimeVersion"},"published_at":{"type":"string","format":"date-time"},"draft_edited_at":{"type":"string","format":"date-time"},"published_by":{"type":"string"},"draft_edited_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"change_reason":{"type":"string"},"description":{"type":"string"},"function_type":{"type":"string","enum":["VALUE_VALIDATION","VALUE_COMPUTE","CONTEXT_VALIDATION","CHANGE_REASON_VALIDATION"],"title":"FunctionTypes"}},"required":["change_reason","description","draft_code","draft_edited_at","draft_edited_by","draft_runtime_version","function_name","function_type","last_modified_at","last_modified_by"],"title":"PublishResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/publish.api.mdx b/docs/docs/api/publish.api.mdx index 85fb560fd..14bcc5672 100644 --- a/docs/docs/api/publish.api.mdx +++ b/docs/docs/api/publish.api.mdx @@ -5,7 +5,7 @@ description: "Publishes the draft version of a function, making it the active ve sidebar_label: "Publish" hide_title: true hide_table_of_contents: true -api: eJzVV0tv2zgQ/isET13Ajr3d5uKb63WbAF0ncJRigSAwaGlssZFElqTSGIb/e4eknpbsbnebw+agSJxvHpwZfkPvaQQ6VFwaLjI6obf5OuE6Bk1MDCRSbGPIMyiNUiI2hJFNnoUWOyApe+LZlnDjoAxXn6HC5hoishGKPLMkhxU+ecS8nl8JRSpzAwMSiszAi2lACKqFMcu2sFLAtMiaMp45d3qnDaQXdECFBOVE11EdP64r+JqDNu9FtKOTPXVuMmNfmZQJD53O6Iu2295THcaQMvtmdhLQkFh/gdCgHamsB8NBOzPNuBpwbRQmgx4O3jFXgNE8HMEfB9Rwk0Ad59IHOSuCO7T1jcoBFyRTLAWDmUWTe5rhB1ooC7Fy3wPKbfkkM3bvnd2U4XWtV/ZehkJthzwqTcXAIlD/2tg3oZ60ZCH8B3uPdkVLkWmf/Lfjsf3X27EEhaREo5dfVO92lvtilsWJibClo36IO0anxbUFlWeGp3hc/CnqogcUsjy1nfX7xbjZTx+KOJfewufCQOX8NSzXcTPTZxCPf2olFI8uDK1yHQ9E3PykYu1uvTuT5sLyCUzCtFmlIuIb/pPu25onzP+IHgbt5u2RV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CSnx7OSEU1YwHGGDFLvtthacCtSvZ7u4zpUrbE8fWJKkZXNg1Y8BHT9h17Z00TDUei+st1Dky/kj6L80XKLdy5EOEXvj7CtnVz3WM/FZfDVzfEK6xdbUtjbBO/iar6xbehzRPkKDZc+CG2oGgBa8UxDUOQ5ihtHfmupovZGVKv8h8+UnftDBTd2B9F8OkyIaTHTCRwazj0YI1mDp8DL9T+/QOev2Mr sidebar_class_name: "patch api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/update-dimension.StatusCodes.json b/docs/docs/api/update-dimension.StatusCodes.json index 521b8fda4..e9d845301 100644 --- a/docs/docs/api/update-dimension.StatusCodes.json +++ b/docs/docs/api/update-dimension.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"UpdateDimension 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"dimension":{"type":"string"},"position":{"type":"number"},"schema":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"value_validation_function_name":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"dependency_graph":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"title":"DependencyGraph"},"dimension_type":{"oneOf":[{"type":"object","title":"REGULAR","properties":{"REGULAR":{"type":"object","title":"Unit"}},"required":["REGULAR"]},{"type":"object","title":"LOCAL_COHORT","properties":{"LOCAL_COHORT":{"type":"string"}},"required":["LOCAL_COHORT"]},{"type":"object","title":"REMOTE_COHORT","properties":{"REMOTE_COHORT":{"type":"string"}},"required":["REMOTE_COHORT"]}],"title":"DimensionType"},"value_compute_function_name":{"type":"string"},"mandatory":{"type":"boolean"}},"required":["change_reason","created_at","created_by","dependency_graph","description","dimension","dimension_type","last_modified_at","last_modified_by","mandatory","position","schema"],"title":"UpdateDimensionResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"UpdateDimension 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"dimension":{"type":"string"},"position":{"type":"number"},"schema":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"value_validation_function_name":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"dependency_graph":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"title":"DependencyGraph"},"dimension_type":{"oneOf":[{"type":"object","title":"REGULAR","properties":{"REGULAR":{"type":"object","title":"Unit"}},"required":["REGULAR"]},{"type":"object","title":"LOCAL_COHORT","properties":{"LOCAL_COHORT":{"type":"string"}},"required":["LOCAL_COHORT"]},{"type":"object","title":"REMOTE_COHORT","properties":{"REMOTE_COHORT":{"type":"string"}},"required":["REMOTE_COHORT"]}],"title":"DimensionType"},"value_compute_function_name":{"type":"string"},"mandatory":{"type":"boolean"}},"required":["change_reason","created_at","created_by","dependency_graph","description","dimension","dimension_type","last_modified_at","last_modified_by","mandatory","position","schema"],"title":"UpdateDimensionResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/update-dimension.api.mdx b/docs/docs/api/update-dimension.api.mdx index bfd71be94..237d6d8aa 100644 --- a/docs/docs/api/update-dimension.api.mdx +++ b/docs/docs/api/update-dimension.api.mdx @@ -5,7 +5,7 @@ description: "Updates an existing dimension's configuration. Allows modification sidebar_label: "UpdateDimension" hide_title: true hide_table_of_contents: true -api: eJzVWFlvGzcQ/ivEvrQFJNlN4xe/KY5zFGlkyAr64BgCtTvSMqHILcmNrAj6750h99ZKqVunQAzYpsg5vhnORe2iBGxsROaEVtFl9CFLuAPLuGLwIKwTasUSsQZl8fwny2KtlmKVG070IzaWUm8sW+tELEXsN5leMhunsOYDlmkraG/AlrmK/emaZxkKtQNUkTDtUjAsMz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kPwFzz5OIjoLxKUOhVWWoyULCV0LYvNNdeZUQgKVkc6fYmE1wo9CMzVS0pscLelXw6ey4GDPPJFFl0o5KdqEUBHoGO2lJMM74imMT7lQpRGEkV08ekYhcaFNPIHGM66IdIW7XlZOmHpWJXqNcotMi5oh0MwDaK+qRsDF7P5lc0VA0YggwAlv677jD3QNOlpCTo33NV+yvm8uPLFJhhhXaet9U04VUC0GuIw9p7zLCPNX0+wtKX0xU1DOzKbkKuXunCfcEBNKLfpOLYUYkIbkNt/FzgcUDXOjT3zEnCOShVjhsL9FYgZ6rhBlvHTYjc9CuAnmZeC4F053GnX/rGVsP0r7gpnTgCxq3qwbPEAccw2MV+WE7pK7KDd3HwX7ZQ+1vys8tdUOA1ULYtWvLzRLVXo95KsaxtelrbkR4khGDW9fMtvcB3aBLgruK2w1lSv7eNMizTCNa7ySRCw1HzTiSU/n08Vq0cK4RpX03xw5r9iNiHPkuOY7A3RuBwXX1Mnf2wClrGvDQGLoPHp9Yh8pUudyaT6uNnc18rbkSyVw5T+QBdpNhqNZ6YgRS/34QHB4cHu0d/Ll3cJS/HVhso+loztP3yqz+TtmarksQ/cWeY/MosfBg91OJB8gBmZZkk8+i28ZUclz9gZEfo6eIYrPBmIRPWm63tIxxQpPT7R3dFSLcjNx/S082hr4xU+dcGtjhxN+uc6D4nQ0pWYzryboICfwLP+9h3XiH22ISF09dz66EF1Z7qCsVIeT4KaLqz3gNaZ4gB8y9iR8aC4pOZa9OnGAxS+1O2jrGXp1MTt8j9Sx/oacqgstYsej1Hn+6W1DOSIeFbg2HB8zmzPU5gWdK//4BJ7PImg== sidebar_class_name: "patch api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/update-function.StatusCodes.json b/docs/docs/api/update-function.StatusCodes.json index 34bf30d82..bdfee317c 100644 --- a/docs/docs/api/update-function.StatusCodes.json +++ b/docs/docs/api/update-function.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"UpdateFunction 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"function_name":{"type":"string"},"published_code":{"type":"string"},"draft_code":{"type":"string"},"published_runtime_version":{"type":"string","enum":["1.0"],"title":"FunctionRuntimeVersion"},"draft_runtime_version":{"type":"string","enum":["1.0"],"title":"FunctionRuntimeVersion"},"published_at":{"type":"string","format":"date-time"},"draft_edited_at":{"type":"string","format":"date-time"},"published_by":{"type":"string"},"draft_edited_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"change_reason":{"type":"string"},"description":{"type":"string"},"function_type":{"type":"string","enum":["VALUE_VALIDATION","VALUE_COMPUTE","CONTEXT_VALIDATION","CHANGE_REASON_VALIDATION"],"title":"FunctionTypes"}},"required":["change_reason","description","draft_code","draft_edited_at","draft_edited_by","draft_runtime_version","function_name","function_type","last_modified_at","last_modified_by"],"title":"UpdateFunctionResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"UpdateFunction 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"function_name":{"type":"string"},"published_code":{"type":"string"},"draft_code":{"type":"string"},"published_runtime_version":{"type":"string","enum":["1.0"],"title":"FunctionRuntimeVersion"},"draft_runtime_version":{"type":"string","enum":["1.0"],"title":"FunctionRuntimeVersion"},"published_at":{"type":"string","format":"date-time"},"draft_edited_at":{"type":"string","format":"date-time"},"published_by":{"type":"string"},"draft_edited_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"change_reason":{"type":"string"},"description":{"type":"string"},"function_type":{"type":"string","enum":["VALUE_VALIDATION","VALUE_COMPUTE","CONTEXT_VALIDATION","CHANGE_REASON_VALIDATION"],"title":"FunctionTypes"}},"required":["change_reason","description","draft_code","draft_edited_at","draft_edited_by","draft_runtime_version","function_name","function_type","last_modified_at","last_modified_by"],"title":"UpdateFunctionResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/update-function.api.mdx b/docs/docs/api/update-function.api.mdx index 233ada0cf..027e971c5 100644 --- a/docs/docs/api/update-function.api.mdx +++ b/docs/docs/api/update-function.api.mdx @@ -5,7 +5,7 @@ description: "Updates the draft version of an existing function with new code, r sidebar_label: "UpdateFunction" hide_title: true hide_table_of_contents: true -api: eJzNV99v4zYM/lcEPe2ApM2660veclluLbClRZoeBhRFoNhMrDvb0iS5bRD4fz/Svx076d3WAutDIIvkR4qkPqp77oP1jNROqpiP+b32hQPLXADMN2Lj2BMYizKmNkzEDF6kdTLesk0Se2TDnqULWAzPzFM+DJhJYicjKM0GTBnWcMGeAxkC0wYsmCcCIk86WYfSBuCXZmd8wJUGI8jm2q8C+1x4RbGBfxKw7pPyd3y8556KHcSOlkLrUHqZ6flXS8fac+sFEAlauZ0GxFPrr+A5xNGGHDkJlqStbFTK1hkMlacD7gUi3sLKgLBHNMrE9Aq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dvMlEN40Neu9NjTp8zxMEfaTqurixNUcGhOZKhG4sDmovteHzqHZV3yNGudbvkNJ0CtpQwWztq6zU+qrZjnopxZEz6gWsRTDOScf9A0+7+OXAFqiJ4qKXdUlSc48Myq0jQfqeQz+fza2apGUdywhgX+nKkJs4lnVOLHLDsR9RY8kN6LIHNFSX+pn4Dzp6x12LollbVn3vDUWPgql5s9V5nYLVzaU5vipW0vhSlcpthcaVSi8LUmuF4cnwymvw+mpzY8VFqs+a2VIu3ipsIWONJuzecVRX/f3qVFzk08GyO0pgLO4pnKiaDXZnf1wH1vdP2GIWlGWEgiGi3w6KBOxXnOW1jIhUVPy6fuBJ8SdHFVgiFpjV204rHGg4E6ZebAqp+ZUN2Fps8IQB84nFGX7j8DtvOyzbHTisfj69uiFPYePpWxlB7v4mq5sO4pc0RFLg2mrvptqToQG3NMQ0CSM1B2iYWXk/nZ+dIvSz+YbO271FP8Q21G/7aTMjUoSgS2D0cg7BrM4vYnhNKf/8ANnqWcg== sidebar_class_name: "patch api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/update-override.StatusCodes.json b/docs/docs/api/update-override.StatusCodes.json index b553c2e06..db2f9de6d 100644 --- a/docs/docs/api/update-override.StatusCodes.json +++ b/docs/docs/api/update-override.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"UpdateOverride 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"override":{"type":"object","additionalProperties":{},"description":"Configuration overrides that replace default values when context conditions are met. Keys represent configuration keys and values are the override data.","title":"Overrides"},"override_id":{"type":"string"},"weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"description":{"type":"string"},"change_reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","id","last_modified_at","last_modified_by","override","override_id","value","weight"],"title":"UpdateOverrideResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"UpdateOverride 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"override":{"type":"object","additionalProperties":{},"description":"Configuration overrides that replace default values when context conditions are met. Keys represent configuration keys and values are the override data.","title":"Overrides"},"override_id":{"type":"string"},"weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"description":{"type":"string"},"change_reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","id","last_modified_at","last_modified_by","override","override_id","value","weight"],"title":"UpdateOverrideResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/update-override.api.mdx b/docs/docs/api/update-override.api.mdx index 0ae09f5e6..c3e5d83c5 100644 --- a/docs/docs/api/update-override.api.mdx +++ b/docs/docs/api/update-override.api.mdx @@ -5,7 +5,7 @@ description: "Updates the overrides for an existing context. Allows modification sidebar_label: "UpdateOverride" hide_title: true hide_table_of_contents: true -api: eJzlWNtuGzcQ/RViX9oCkuy68YvfnDSB06KJYTvog2EY1HKkZbxabkluZMXQv/cMuTdp104KJ0DRGogjkzOHcz0c6iFR5FKrS69NkZwkH0olPTnhMxLmE1mrsS8WxgpZCLrXzutiKVJTeLr3M3Ga52btxMoovdCpZBBhFq2m+CTzCvrrTOckVlIXHv8YgfFrlB8cf1Kald0smSSmJBug3qrWovc1IrYt/QVM/9KoTXLykASUwvNHWZZ5bcXBR8f+PCQuzWgl+ZPflAQ8M/9IqQdOafkgr8m1MPcBxhT0fpGcXA9VvPY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DnJyaGRa/Hr5Yc/RKLjEoO1C7kBMMoYprhXl4pTxxkyIWXMebqf92fcvmhU+Fm6glMF6yFpyr/xUBa2/qXaRljFU51LsYwflzg8yEOff08lU6CMjbZQRrAKmWs3syE6TCULMv4ECntCryA7HfSuz2+3Y7sgHQM3twNfLaFbXVfFe5mjddhztoSxPNX8wlTwFYULKl2KXw+rwfawmfz5Dkg4MTAb+yusXcH1zVQWapo6V7ySVsWnJStf+fed3XVCKkwjcN1au+RuCfjZb7NpJf4+aCQPDy8tJMT5CA2YrS+urDnndT4BHvDsKdt48Yf28QK+dkwIF+1L3Zs7yZ2z85rF00Fnvulc3gaXsuaY2pn/O+oqX2gfRwWRyxJgK7RVlZuwboOx46Pjk4Ojnw+OTlgPIm4lPX1VrwFh2BWdR8edW0nDgv+KB9OqcB60uJ0qfxMuTcaeBlBfjTzrWG6CFLHz8v09MEIfTbbd8mfUzTDWr/lKANaZc0IZ3PWrCLdBoiwvoIYLmVl6IEn7fMS9d+QpqHqkiCLupadv8sNFRRc/isf2ax6Ovv9W3Wel3m5BoGKsgxnbaCUGR2urcYrTpHAPynbJ7fx09vodpOfVcznTOD7jyOCndPzrq6N9kJ6I/DdM7+iy0g8aUTDKf/4G8yibqw== sidebar_class_name: "patch api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/update-secret.StatusCodes.json b/docs/docs/api/update-secret.StatusCodes.json index 9403b2386..1e9d7dff9 100644 --- a/docs/docs/api/update-secret.StatusCodes.json +++ b/docs/docs/api/update-secret.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"UpdateSecret 200 response","content":{"application/json":{"schema":{"type":"object","description":"Response structure for secret operations. Secret values are never returned for security.","properties":{"name":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","name"],"title":"UpdateSecretResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"UpdateSecret 200 response","content":{"application/json":{"schema":{"type":"object","description":"Response structure for secret operations. Secret values are never returned for security.","properties":{"name":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","name"],"title":"UpdateSecretResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/update-secret.api.mdx b/docs/docs/api/update-secret.api.mdx index 31eec38e9..28fd3d48c 100644 --- a/docs/docs/api/update-secret.api.mdx +++ b/docs/docs/api/update-secret.api.mdx @@ -5,7 +5,7 @@ description: "Updates an existing secret's value or description. The value is re sidebar_label: "UpdateSecret" hide_title: true hide_table_of_contents: true -api: eJzNVl1vGjsQ/SuWX3qvBASlzUve0qpXzUtVEfoURZHZHVg3u2t37E2CEP+9M7Z3YWFBVT+kywMY+8yHj8+MvZE5uAy19drU8lp+tbny4ISqBbxq53W9Eg4yBP/GiWdVNiAMij2biZgXkFa0EwhjqDNcWw+5eNG+EJ6WswYRai9eDD45qzIQCUQOxBOsJ2IGvsHaiUq5J7IM/iZyJI0FVAy7zbvs7kI+tIjwvQHn35t8La83MjO1pyg8VNaWOguGF98c72wjXVZApXjk1xbIm1l8g4z9WOQwXoPj1RB7D+Y8EgsE6zP1GV6ELZWmmK8+EeBNuzEiMBfOG4SJuF0KivCsc8hHxElZikVHQMtSyxCTIbcHsQ5TofWsUPUKHhGUG0RsIzsagXi7P4A/jKTXvoQDRmeRzg+Jxm3ficcGaMIqVBV4QOLqfiNr+kNuws9IaibGKl/Q+IjuXfKHTjs3r2ODq7HOW1cFqBzwl511cvsNfw8846ypXVTH5XTKP0NVE1kUhBCtCYX6ZVX2Q8ySRxIVNhkVC4glVWKsTdGViZuIlEZQJBUyAWt4BqScuMRIcMmuQe3XkyP5R/YGiPldSRKC1kjxj4v12WXlh6qPsq54RTLVY68pS7IplfOPlcn1Up923Af9vPuzRdTLt7e3PlUD4QfSHkXeT1ZmPPy90qTc3k3fHUuRoKbBDD4b/59pqAkRaidHsroaEvAt+cValXeAJJWPiCSRqz+k4768KnBOrYYUtt3tfSCdIQrYQq24EcnIk2MCqTsVJo+NKONOFBrStbyIteIuNkz1lrtAKoLQyVxFfXg9UVZPCu/te+V0dtOw5f0Dd5XDdaDKwg7wsPN2x0zEzZ722e2e54+K/dN8/kUEtFAEp/0mutvWxZYLXucTPZPZz4QJ8HNxAiCcDx/2bHfpfnxVlS1h79I8dVl20wdNYq9Idb00IeGkgbuGVGON0ykfEoKLzi6nl1fj6dvx9IrtCOIrVe9aV6oc0T0TDhpXJ+T/3WMnnRU/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7zJkOUy0Snw9ngMuU0+ALeSwT8o24m7OAerfPFi+sm0z/4so4RCPPPhsjZRyf0ErNN6xp+2fy3vTx8Iv2rjqZCfKCMO1k4sqVtqcoSHTJa7w8U/q7ZaxS+83KRC1jGAamkx6xYSte4nQz2JnrOIeDe0G9lUei50J4ZwuVhKTACfV1b54fC2etlbVB2Ih01RGofR5sBrR610zY6PkL9jJoSG9Kr201/kzvpu2/PIWEzmV6Rxc322VoQ+OSNrt3X9ofNNp2ecPqSYQ35wHNTVLZ1x5hgmEpMXM5NigenMD+dRkfl1e6O1nwzbHhoqe7sMHi5BcbG1UTmepJ4n3+UTquzgjVv73gI2t8nDAK2EbjbWrtiJMpkh2022fN6h7xfrq8vRJAWEuLcV0q460mLNWe8z2VxILLXuAnih/wEgXA+fNiX2zfC52fUV0qtGX+oGpvlvZmmdTnobG5CwBUHrgqwJjdOV/GACK40djw9PhlP/xpPT1gPIn4hs+2kVV30onnV7M1ZDZH/d2+z6qz4/XMUXkKcX2FTjrok8W1UkRjSp/WAkwAB3lqvQQm6selmw8s4JsvUxueTtFrOGFYQPdaOv1Ehc5k6OoDPu8uq+fwphqKrFmXGLa0mAT6RZ/2K2aB86ofCm/sv/bSeOU0MXLO/xVX7EbTjrRSoGtT4mm1sJTo9c6txphTl/qBsu61dnF1/+gLpWfVKx9TLSlYu+QWP3+EATEgydKGwhnkGlVeE1huVRvnnP/1l4aE= sidebar_class_name: "patch api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/update-type-templates.StatusCodes.json b/docs/docs/api/update-type-templates.StatusCodes.json index 4a7f57fcb..45d982f93 100644 --- a/docs/docs/api/update-type-templates.StatusCodes.json +++ b/docs/docs/api/update-type-templates.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"UpdateTypeTemplates 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"type_name":{"type":"string"},"type_schema":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","type_name","type_schema"],"title":"UpdateTypeTemplatesResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"UpdateTypeTemplates 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"type_name":{"type":"string"},"type_schema":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","type_name","type_schema"],"title":"UpdateTypeTemplatesResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/update-type-templates.api.mdx b/docs/docs/api/update-type-templates.api.mdx index fd23b8810..3daefc340 100644 --- a/docs/docs/api/update-type-templates.api.mdx +++ b/docs/docs/api/update-type-templates.api.mdx @@ -5,7 +5,7 @@ description: "Updates an existing type template's schema definition and metadata sidebar_label: "UpdateTypeTemplates" hide_title: true hide_table_of_contents: true -api: eJzlVktP20AQ/isrX9pKCUS0XLgBooVLiyA9IYQ29iTe4ni3s2MgivLfO7Pr2HmY9AXqoRxg8c7zm5lvdp5k4FM0jowtk6Pkq8s0gVe6VPBkPJlyomjmQBFMXcFXb7zyaQ5TrTIYm9KIHktnagqkWVerx9wUoByCB3wQfUNemQxKMmMDGIQrryegcnZgcbaX9BLrALXYusiaKIbsd1i79SyD8L0CTyc2myVH8yS1JbFROWrnCpMG/f1vXhKZJzFKOUn8bNSOvkFKbMeheCPDRuvbu+eFdZaFHHVxuaq26G0A9wlKQJOqe5j1H3RRgYomlCesUqoQOGnI1NiiGheM7YhBCnghBKxKCvErytFWk9xWxEdQx5cXgg8ZKiSuLzGuTfdN3OyNIZf7NNflBO4QtO+UWERADQIjfrMh3luD5bb131GZq1iW07oci3XLnD3wB6dRc4cAMng386Tkf9hacBLOvcQIik5TzuetcrRpbVpubD31LU76JluaykFngH9s7NHivXc6hb+wdytfvLOlj612MBjIn66JW0NUsaBaarLHl+z0mGBH7P/rHLAE3xFkd6PZzmtN29e9hPOYyk0iVeyTYXRZp9Ce7qY2E8b7G83OkH4yuSvxruW2DlVHjB3Oe2sj+jucEJt3hRQ46g+DD9v9z6K2whQ+W/poK94NLNU2P2sddk3NBdtFbsZr3jGAZ4jcToevMjVT8LKsuuuwhKAjnC4IRENPhAITgUu1243hZHrMbRZJMBUWDGR4lOyLW78/byqxEBKCtEJDs8Cmfmoon+1pZ/ZyIneivUmPK1G+uRVS27wHjYCNw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P+kJBXgbTQFWv5m/6eMfpDo3If2h3S86x2wAVQ1+z/W2z/X5WJ6/6fABWlaoCgfWt69SN10LAdsUmN3GhFknqtYgtkY5APw4u0Qo01Q7zD4dEuiXFEqAHRNPA8KmT54bA/uSnYh1ElmP81p4As9mvSLekOXZOYhU5njZnd+Pg5pLEHNehk49Us8rr15cFSUpdAori8k+5o2y3g2/MbQdATKp7wkruEe/HiiNTodMFSZMc4Vgy1lHz/QiZofGPvGy+M8dP1ws3Velpoz4SJn2vMA6VMiWYVG8Y0KP9yN9oy12gb5hndxkApKRoDAeECu20lZqZ6O9h54yENhX1FtKFGqFLZARwuVhyCMCM0AZ68bM6XS5ZlBalk4qIDXT0URAo1W12kZPh6+fSVViY3zHdjPc5M6GhvwlKAxm5w1WYjIfjAGAz77LkB/vD4fanQFzhpxhDrnmjS3g7i7qZfyOo+RiHRU7W8hLm9/dzoMTVmtP9tXgOPDORCgo5XZ++bMb5eLdTGZqFjuXvZNWhRc5M9/e8Q7WvSdpyFQEd7W0G45J4fa4zCoO/LwH44+LxZXw1EKCnDtMEfjjosecS77nAnnGsq9R48mf0+MJfKY47df1+86HJ1RaUmW13tN6+1dVrp29pzEmVLrSXlKJhpsc+Mm0VaU9gIQthJ3OT8+m85+n8zPmA4nbSI/Gck0uJr/ogKO3k1XQ/s9eL8vcOHpyJ9CDhR7+5CZh6wrc3noaNv68XnmAtRhO8+1+DxTQJ5McDvwYmTGMZhwfpVFyyZEEtiNl+Yy6WMnE0jOh+PG67Dw/iTEDy4cy5X7ml2l8wxG7devl6YCyOb6fvLoRhbLG21VlCNfqd1HVfPdqaSsIyhY1Zdg1KHpds+a4CEPK3LO0zY52dbF4/xHUy/KXBmzEzGTkln+FwKfPgvZO+u7jn2GjQcXlvvkGhVD++xs8jSZz sidebar_class_name: "patch api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/update-variable.StatusCodes.json b/docs/docs/api/update-variable.StatusCodes.json index 8309713d7..e2c984382 100644 --- a/docs/docs/api/update-variable.StatusCodes.json +++ b/docs/docs/api/update-variable.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"UpdateVariable 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","name","value"],"title":"UpdateVariableResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"UpdateVariable 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","last_modified_at","last_modified_by","name","value"],"title":"UpdateVariableResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/update-variable.api.mdx b/docs/docs/api/update-variable.api.mdx index 668a2cdee..1935a9555 100644 --- a/docs/docs/api/update-variable.api.mdx +++ b/docs/docs/api/update-variable.api.mdx @@ -5,7 +5,7 @@ description: "Updates an existing variable's value, description, or tags." sidebar_label: "UpdateVariable" hide_title: true hide_table_of_contents: true -api: eJy1Vk1P4zAQ/SuRL7srpbRi6aU3QKzgskJQ9lJVyE2mjSGJvbYDraL8951xvttQoQU4UNd+8+nnN81ZCCbQQlkhUzZjDyrkFozHUw+2wliRbrwXrgVfxfDN4DLOwPc6Nr4ntWf5xpwwn0kFmtPuTdj4+lNZ47GGvxkYeyHDHZvlLJCphdTSkisVi8CZjp8MZZIzE0SQcFrZnQL0J1dPEFj0ozQFsgIMnbqcOjBjNWbNCr9f2sB5EPF0A48auBlEFGXKQgOWs9iDL31mhY3hoNC7ssrLqrqi78bqDHBDcc0TsKCxhEXOUvyCjtyHzwTdhOI2wvVBF9r09502brYjqTcjEdauIuAh6P929ir1s1E8gA/4W9KOUTI15aWdTib0MUS+uo8eYrzaCIN9El3KsgYy/joeIQLPLISPq93RY24Pj322ljqhE0bdGVmB+aNNzI19TGQo1uJtx33Q+90fZX4v315t/VYNhB9I269ZX/b/yLMqmdB5V5jl2eTskEcIlZkO4Le0v2SWhh6iWiah1XSIfTfoV6c8vgf9AvpKaxS26ZdQMAFj+GaIa0Vb/UA6Qy0gC1RfuqW6U4aaiOISybDUkYCExOnJjI1rNTfjnBpf0DOGINPC7pwUmUTYaHfClTiJrFUX3IjgPCPbxZJkYf8cuAbdAJatt3vqRlnw2z6bDtD+Hn9m7Ho+v/Uc2uMIx5qrltfaQ5YrOqdbPZLZe8I4+LE4DuDuiC78rh1mV1ueqBg6w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gFzk7Ni63H5v/1okDE4kvOpoy4yMF3YvCgS1sy6go1jGj1f5IC2ibvacW4FBuMkGW6YCiZMCs2EpXu52OdinYZSTgXtFvaVGolVDIDOHysOAZEYuVsg7H4HS6WjMpLaRhTaTmcTQZ0OhSrbbR8+HrJ6xLbEyvajfDTe5q6LL8QhJWy/QO7DPYT9YSga/e5MYc7w/HUzgDcIaCYQ0aFjk1VWN3nBWahRITF2NPxHOPH3/mwUU1fLqLA98TR546gEpJ4d5PTm6jMNlPZaamCWL2QToVXees+7DgKaa7D9KCrQUWJ2t3nI0i4HGbdQZ4vUfgz/f3N8JLC0ni3FuKlFejEmsueZ9L4wyyl7jx4uf8eAF/Rnzgt6fZ+9OOaiyFxuw8VpH1cmfCaVwQSq+MB1zy4C4n5mTGqRIPkcEVxi5nl1eT2e+T2RXrkQhupD5NZOV1Lxrvhc7cVdP5J18pZW4RdniRpZJGWsKT25R9FLR7CGrakfzcAySqJISZNw8HOkT4atPjkZcpsZbJuAhrNU/NWDn+JlavZOrgTDy/3pYt4zcxhq9clHpfj0rzgD6fYF89HI5E+Go2f3X/hZ/Gy6LGwFX2Jq6a746Wt0KgbCuTe7Zxkuh1upPGdRRBhmdlm63o5vr+42eSXpbvVZpaWcnKLb9l6bc/AOOD9H3Dr9EUQrWS+4YZFEb55z99wmd+ sidebar_class_name: "patch api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/update-webhook.StatusCodes.json b/docs/docs/api/update-webhook.StatusCodes.json index c4ad79d27..03c6386b9 100644 --- a/docs/docs/api/update-webhook.StatusCodes.json +++ b/docs/docs/api/update-webhook.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"UpdateWebhook 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"url":{"type":"string"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD"],"title":"HttpMethod"},"version":{"type":"string","enum":["V1"],"title":"Version"},"custom_headers":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"events":{"type":"array","items":{"type":"string"}},"max_retries":{"type":"number"},"last_triggered_at":{"type":"string","format":"date-time"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","enabled","events","last_modified_at","last_modified_by","max_retries","method","name","url","version"],"title":"UpdateWebhookResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"UpdateWebhook 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"url":{"type":"string"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD"],"title":"HttpMethod"},"version":{"type":"string","enum":["V1"],"title":"Version"},"custom_headers":{"type":"object","additionalProperties":{},"description":"Generic key-value object structure used for flexible data representation throughout the API.","title":"Object"},"events":{"type":"array","items":{"type":"string"}},"max_retries":{"type":"number"},"last_triggered_at":{"type":"string","format":"date-time"},"change_reason":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_modified_by":{"type":"string"},"last_modified_at":{"type":"string","format":"date-time"}},"required":["change_reason","created_at","created_by","description","enabled","events","last_modified_at","last_modified_by","max_retries","method","name","url","version"],"title":"UpdateWebhookResponseContent"}}}},"404":{"description":"ResourceNotFound 404 response"},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/update-webhook.api.mdx b/docs/docs/api/update-webhook.api.mdx index e38dc1f7e..51f688aa5 100644 --- a/docs/docs/api/update-webhook.api.mdx +++ b/docs/docs/api/update-webhook.api.mdx @@ -5,7 +5,7 @@ description: "Updates an existing webhook config, allowing modification of URL, sidebar_label: "UpdateWebhook" hide_title: true hide_table_of_contents: true -api: eJztV1tvGjkU/iuWn3YlSGjavPBGW9pE6m6jhHQfEIrMzGHGzczYa3sCCPHf9xzPHSYo24tWWpUH8My5375jdjwEGxipnVQZH/N7HQoHlomMwUZaJ7OIrWEZK/XIApWtZDRgIknUmgipCuVKBoJkmVqx+9tPAwZPkDk7YDGIEAweRBYy5WIwtSJtlAbjJNgzPuB09iquw9qBvwpOpBr4Owfr3qpwy8c7jj441E9HoXVSGj//asn7HbdBDKmgk9tqQHVq+RUCh3oam0TtBF0zW2cwLL4fcMjEMoGwRVsqlYDIiJibpFcoBRer8JhE6vKUj+f843SGTzef7/zPvf+ezN5d4e/76afpbIqHq+nkPV8MuJMuISVXzuk/Cs1o4wlT2ut0Y+TLq7b4l1IAZYPcOpU+lIXpS5IIQ0k5EclNO10o2+2Sj5CBkQF7hO3wSSQ5sEIFQ2fywOUGWG4hZCtl2CrBRsJkMqyrYAa0AYsVLJrGxUblUaxyh0dgk5tr6oj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4aYf5E77GNYlSWh6l9+gJuicak0NfPpDeNYwPuzqcHrc6QuGT8CKmbJX4LrhpJTkiqmyz1zZUeYz77i4RB5v+V2xY56KNEfSbhzXNrG04eYIUnkUEpF6B0b65xmfnN8z793fR9CoK4H7WtsNpyKPdlhnFT4/73TvxWx2JZy0ABJnYMnzXZJrxzN5n+figGcvMePED9lxAq5AXO3r+lo9faYBi7DbTw2mWbBjZvsFH653q0rlbLdirExMe0hog93NSyX3HYrVeOHIZKlcDoq+usmoE1NlZBFibfBkcnI6nvw6npzyORKxMST1vaBgD6L+cWHvWlBNx7/xM0hRYovP9jiNQDavHnnvz7115fmZC4nyFlKUvLXdUifhrY52O35M1dU8EbR8Ai25fm4+AmmKWi4hMnggBT9dF6D1sxjyruTmCUOhuxfQN1rSNaG87+5o6sor5avbz+00LsSVDzzqP8RU87rcspYLFMA2nrGOWqKDtfWJc9/H1B6UbaJheX1cFL+HUe/xIQ1r/q2M/rsCKBekAy/3jHgQTVfmINvLlfLfNw649kI= sidebar_class_name: "patch api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/docs/docs/api/weight-recompute.StatusCodes.json b/docs/docs/api/weight-recompute.StatusCodes.json index 79f6673a5..bc8a3d758 100644 --- a/docs/docs/api/weight-recompute.StatusCodes.json +++ b/docs/docs/api/weight-recompute.StatusCodes.json @@ -1 +1 @@ -{"responses":{"200":{"description":"WeightRecompute 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"condition":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"old_weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"new_weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."}},"required":["condition","id","new_weight","old_weight"],"title":"WeightRecomputeResponse"}}},"title":"WeightRecomputeResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file +{"responses":{"200":{"description":"WeightRecompute 200 response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"condition":{"type":"object","additionalProperties":{},"description":"Represents conditional criteria used for context matching. Keys define dimension names and values specify the criteria that must be met.","title":"Condition"},"old_weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."},"new_weight":{"type":"string","description":"Priority weight used to determine the order of context evaluation. Higher weights take precedence during configuration resolution."}},"required":["condition","id","new_weight","old_weight"],"title":"WeightRecomputeResponse"}}},"title":"WeightRecomputeResponseContent"}}}},"409":{"description":"WorkspaceLockConflict 409 response","content":{"application/json":{"schema":{"type":"object","description":"Returned when a workspace write operation cannot proceed because another write operation currently holds the workspace lock.","properties":{"message":{"type":"string"},"lock":{"type":"object","description":"Metadata for an active workspace write lock. Present only while another write operation is holding the workspace lease.","properties":{"lock_id":{"type":"string","description":"Unique identifier for the active workspace lock."},"operation":{"type":"string","description":"Write operation that currently holds the workspace lock."},"locked_by":{"type":"string","description":"User that acquired the workspace lock."},"acquired_at":{"type":"string","description":"Timestamp at which the workspace lock was acquired.","format":"date-time"},"expires_at":{"type":"string","description":"Timestamp at which the workspace lock expires if it is not released first.","format":"date-time"}},"required":["acquired_at","expires_at","lock_id","locked_by","operation"],"title":"WorkspaceLock"}},"required":["lock","message"],"title":"WorkspaceLockConflictResponseContent"}}}},"500":{"description":"InternalServerError 500 response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"title":"InternalServerErrorResponseContent"}}}},"512":{"description":"WebhookFailed 512 response","content":{"application/json":{"schema":{"type":"object","description":"Indicates that the operation succeeded but the webhook call failed. The response body contains the successful result, but the client should be aware that webhook notification did not complete.","properties":{"data":{"description":"The successful operation result that would have been returned with HTTP 200, serialized as an untyped/raw JSON document. The structure logically corresponds to the operation's normal output type, but is modeled as Document since this single error is shared across multiple operations with different output shapes."}},"required":["data"],"title":"WebhookFailedResponseContent"}}}}}} \ No newline at end of file diff --git a/docs/docs/api/weight-recompute.api.mdx b/docs/docs/api/weight-recompute.api.mdx index 14310d77c..fd1a7793c 100644 --- a/docs/docs/api/weight-recompute.api.mdx +++ b/docs/docs/api/weight-recompute.api.mdx @@ -5,7 +5,7 @@ description: "Recalculates and updates the priority weights for all contexts in sidebar_label: "WeightRecompute" hide_title: true hide_table_of_contents: true -api: eJzVVttu4zYQ/ZWBXroFHCdNkZe8bbMtdlu0DRIv+hAEBU2OLG4oUctLvK7hf+8MKcuS7VyAdgv0ybI4lzPDc0azLhR66XQbtG2Ky+IGpTAyGhHQg2gUxFal51AhtE5bp8MKlqgXVfBQWgfCGJC2CfiFXugmGS6te/CtkAhz4VGBTa+1A6VrbDyl8tNiUtgWneDEHxSl/iMFJQC2bmNAOm+FEzUGdL64vFsXDf0huy8nlK7Ui5MgFp6sNOOuUCh09M/LCmtRXK6LsGrZ3Aenm0Wx2UwGEaxbnGj1eudJ4fBz1A4JaHARR8H6av9BvHt+41tqDHq2Pz8745/x5ex1CMgItl6ULd1CE9hPtK3RMvX29JNn5/UhGDv/hDJwnx3fRNA5Nd330Eo4J1ZcWcDav+xNXT1WLmFTOpdxGEGofCbM9TAWue2Ts6VyqUQPfTxB7CNOotMCInONOdnxEWoRZEUIpvALrjwoLHWDOxICX2Gm+aMwkR59i1KXq0TiPmyoBIWKPsAcgfjI1A06GK7hqq+L0Fqj/sz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5By/W5r5kK1+6UecuLRU3PVtoX3IbF3IuDUUobSgwGc0opodZJwvU5ousxEW93e3acW+gok0c6xQjoiZiQFFIdLoJEa+195FyhXh/fX3BI+pIWB6jSvUFKyz3SviKi5wdGjkXv1/9/ZfIdOoxlLlYGxDDp3DFWp0qLh1XyMSScc/Tm3X/huULoQKndzWXCt5j0aDsmc6ojKF/acIIq3jecAWW8XGKy4MC9fl7IbkFytRoi81IVqFy62A2ZpepPCcTbqAYE/tqstszSqjvxvzRI+kucrMc+GWDvWfNDPVBVpAOI2dPGEELzS8mhA2vJFfgy2EzcB3GkefQ9B5SlnBtYHQLzyg7A/7FWNZqXDhX/yytSt959nF7x++a4TqhHqYzuFt7u2LJRBLt99npiX/fUlPgSLAWEuZ8j0bito8n3jnhdb4GnkH2mjDB/Lk4wSAcoKpyHZw2h3blcfy1tu2wieZko+vjo+OTg6MfDo5OGCFM3EyGhtI8D+MkKfrP2g1sy3Vj+m8f3029AmXqEs2H8XtTMqRIqdukcQ3rbqhe0wpMKJAu2y2XHOrGlKsV/4yhyDDX8PFRQvoTriGTq30ZMw0zZXkBPM5laemZsuwD+0CLHf8OCC853sVcfn2Qby8bzX4nXorX/fPg7UP1/7WwES0avEODrl1vbetmW/X7xcXNNdj9D+f5ZGg= sidebar_class_name: "put api-method" info_path: docs/api/superposition custom_edit_url: null diff --git a/smithy/models/context.smithy b/smithy/models/context.smithy index e12087925..5a8532931 100644 --- a/smithy/models/context.smithy +++ b/smithy/models/context.smithy @@ -79,7 +79,7 @@ structure ContextResponse for Context { @idempotent @http(method: "PUT", uri: "/context") @tags(["Context Management"]) -operation CreateContext with [GetOperation, WebhookOperation] { +operation CreateContext with [GetOperation, WebhookOperation, WorkspaceWriteOperation] { input := for Context with [WorkspaceMixin] { @httpHeader("x-config-tags") @notProperty @@ -123,7 +123,7 @@ operation GetContext with [GetOperation] { @documentation("Updates the condition of the mentioned context, if a context with the new condition already exists, it merges the override and effectively deleting the old context") @http(method: "PUT", uri: "/context/move/{id}") @tags(["Context Management"]) -operation MoveContext with [GetOperation, WebhookOperation] { +operation MoveContext with [GetOperation, WebhookOperation, WorkspaceWriteOperation] { input := for Context with [WorkspaceMixin] { @httpLabel @required @@ -159,7 +159,7 @@ structure UpdateContextOverrideRequest for Context { @documentation("Updates the overrides for an existing context. Allows modification of override values while maintaining the context's conditions.") @http(method: "PATCH", uri: "/context/overrides") @tags(["Context Management"]) -operation UpdateOverride with [GetOperation, WebhookOperation] { +operation UpdateOverride with [GetOperation, WebhookOperation, WorkspaceWriteOperation] { input := for Context with [WorkspaceMixin] { // REVIEW Should this be made a property? @httpHeader("x-config-tags") @@ -247,7 +247,7 @@ operation ListContexts { @idempotent @http(method: "DELETE", uri: "/context/{id}", code: 204) @tags(["Context Management"]) -operation DeleteContext with [GetOperation, WebhookOperation] { +operation DeleteContext with [GetOperation, WebhookOperation, WorkspaceWriteOperation] { input := for Context with [WorkspaceMixin] { @httpLabel @required @@ -280,7 +280,7 @@ list WeightRecomputeResponses { @documentation("Recalculates and updates the priority weights for all contexts in the workspace based on their dimensions.") @http(method: "PUT", uri: "/context/weight/recompute") @tags(["Context Management"]) -operation WeightRecompute with [WebhookOperation] { +operation WeightRecompute with [WebhookOperation, WorkspaceWriteOperation] { input := with [WorkspaceMixin] { @httpHeader("x-config-tags") @notProperty @@ -349,7 +349,7 @@ list BulkOperationOutList { @documentation("Executes multiple context operations (PUT, REPLACE, DELETE, MOVE) in a single atomic transaction for efficient batch processing.") @http(method: "PUT", uri: "/context/bulk-operations") @tags(["Context Management"]) -operation BulkOperation with [GetOperation, WebhookOperation] { +operation BulkOperation with [GetOperation, WebhookOperation, WorkspaceWriteOperation] { input := for Context with [WorkspaceMixin] { @httpHeader("x-config-tags") @notProperty diff --git a/smithy/models/dimension.smithy b/smithy/models/dimension.smithy index f2b16eaec..783e4df55 100644 --- a/smithy/models/dimension.smithy +++ b/smithy/models/dimension.smithy @@ -93,7 +93,7 @@ list DimensionList { @documentation("Creates a new dimension with the specified json schema. Dimensions define categorical attributes used for context-based config management.") @http(method: "POST", uri: "/dimension") @tags(["Dimensions"]) -operation CreateDimension with [WebhookOperation] { +operation CreateDimension with [WebhookOperation, WorkspaceWriteOperation] { input := for Dimension with [WorkspaceMixin] { @required $dimension @@ -151,7 +151,7 @@ operation GetDimension with [GetOperation] { @idempotent @http(method: "PATCH", uri: "/dimension/{dimension}") @tags(["Dimensions"]) -operation UpdateDimension with [GetOperation, WebhookOperation] { +operation UpdateDimension with [GetOperation, WebhookOperation, WorkspaceWriteOperation] { input := for Dimension with [WorkspaceMixin] { @httpLabel @required @@ -180,7 +180,7 @@ operation UpdateDimension with [GetOperation, WebhookOperation] { @idempotent @http(method: "DELETE", uri: "/dimension/{dimension}", code: 204) @tags(["Dimensions"]) -operation DeleteDimension with [GetOperation, WebhookOperation] { +operation DeleteDimension with [GetOperation, WebhookOperation, WorkspaceWriteOperation] { input := for Dimension with [WorkspaceMixin] { @httpLabel @required diff --git a/smithy/models/functions.smithy b/smithy/models/functions.smithy index fda40d7a5..f7309ad3e 100644 --- a/smithy/models/functions.smithy +++ b/smithy/models/functions.smithy @@ -201,7 +201,7 @@ list FunctionListResponse { @documentation("Creates a new custom function for value_validation, value_compute, context_validation or change_reason_validation with specified code, runtime version, and function type.") @http(method: "POST", uri: "/function") @tags(["Functions"]) -operation CreateFunction { +operation CreateFunction with [WorkspaceWriteOperation] { input: CreateFunctionRequest output: FunctionResponse } @@ -240,7 +240,7 @@ operation ListFunction { @idempotent @http(method: "PATCH", uri: "/function/{function_name}") @tags(["Functions"]) -operation UpdateFunction with [GetOperation] { +operation UpdateFunction with [GetOperation, WorkspaceWriteOperation] { input: UpdateFunctionRequest output: FunctionResponse } @@ -249,7 +249,7 @@ operation UpdateFunction with [GetOperation] { @idempotent @http(method: "DELETE", uri: "/function/{function_name}", code: 204) @tags(["Functions"]) -operation DeleteFunction with [GetOperation] { +operation DeleteFunction with [GetOperation, WorkspaceWriteOperation] { input := for Function with [WorkspaceMixin] { @httpLabel @required @@ -285,7 +285,7 @@ operation Test with [GetOperation] { @idempotent @http(method: "PATCH", uri: "/function/{function_name}/publish") @tags(["Functions"]) -operation Publish with [GetOperation] { +operation Publish with [GetOperation, WorkspaceWriteOperation] { input := for Function with [WorkspaceMixin] { @httpLabel @required diff --git a/smithy/models/secret.smithy b/smithy/models/secret.smithy index fdda45e8d..5414f8e0a 100644 --- a/smithy/models/secret.smithy +++ b/smithy/models/secret.smithy @@ -64,7 +64,7 @@ enum SecretSortOn { @documentation("Creates a new encrypted secret with the specified name and value. The secret is encrypted with the workspace's current encryption key. Secret values are never returned in responses for security.") @http(method: "POST", uri: "/secrets") @tags(["Secrets"]) -operation CreateSecret { +operation CreateSecret with [WorkspaceWriteOperation] { input := for Secret with [WorkspaceMixin] { @required name: String @@ -87,7 +87,7 @@ operation CreateSecret { @idempotent @http(method: "PATCH", uri: "/secrets/{name}") @tags(["Secrets"]) -operation UpdateSecret with [GetOperation] { +operation UpdateSecret with [GetOperation, WorkspaceWriteOperation] { input := for Secret with [WorkspaceMixin] { @httpLabel @required @@ -159,7 +159,7 @@ operation GetSecret with [GetOperation] { @idempotent @http(method: "DELETE", uri: "/secrets/{name}") @tags(["Secrets"]) -operation DeleteSecret with [GetOperation] { +operation DeleteSecret with [GetOperation, WorkspaceWriteOperation] { input := for Secret with [WorkspaceMixin] { @httpLabel @required diff --git a/smithy/models/type-templates.smithy b/smithy/models/type-templates.smithy index 024d31584..71fcb2b49 100644 --- a/smithy/models/type-templates.smithy +++ b/smithy/models/type-templates.smithy @@ -103,7 +103,7 @@ operation GetTypeTemplate with [GetOperation] { @documentation("Creates a new type template with specified schema definition, providing reusable type definitions for config validation.") @http(method: "POST", uri: "/types") @tags(["Type Templates"]) -operation CreateTypeTemplates { +operation CreateTypeTemplates with [WorkspaceWriteOperation] { input: CreateTypeTemplatesRequest output: TypeTemplatesResponse } @@ -125,7 +125,7 @@ operation GetTypeTemplatesList { @idempotent @http(method: "PATCH", uri: "/types/{type_name}") @tags(["Type Templates"]) -operation UpdateTypeTemplates with [GetOperation] { +operation UpdateTypeTemplates with [GetOperation, WorkspaceWriteOperation] { input: UpdateTypeTemplatesRequest output: TypeTemplatesResponse } @@ -134,7 +134,7 @@ operation UpdateTypeTemplates with [GetOperation] { @idempotent @http(method: "DELETE", uri: "/types/{type_name}") @tags(["Type Templates"]) -operation DeleteTypeTemplates with [GetOperation] { +operation DeleteTypeTemplates with [GetOperation, WorkspaceWriteOperation] { input := for TypeTemplates with [WorkspaceMixin] { @httpLabel @required diff --git a/smithy/models/variable.smithy b/smithy/models/variable.smithy index 18eb1387a..2e202abac 100644 --- a/smithy/models/variable.smithy +++ b/smithy/models/variable.smithy @@ -66,7 +66,7 @@ enum VariableSortOn { @documentation("Creates a new variable with the specified name and value.") @http(method: "POST", uri: "/variables") @tags(["Variables"]) -operation CreateVariable { +operation CreateVariable with [WorkspaceWriteOperation] { input := for Variable with [WorkspaceMixin] { @required name: String @@ -88,7 +88,7 @@ operation CreateVariable { @idempotent @http(method: "PATCH", uri: "/variables/{name}") @tags(["Variables"]) -operation UpdateVariable with [GetOperation] { +operation UpdateVariable with [GetOperation, WorkspaceWriteOperation] { input := for Variable with [WorkspaceMixin] { @httpLabel @required @@ -159,7 +159,7 @@ operation GetVariable with [GetOperation] { @idempotent @http(method: "DELETE", uri: "/variables/{name}") @tags(["Variables"]) -operation DeleteVariable with [GetOperation] { +operation DeleteVariable with [GetOperation, WorkspaceWriteOperation] { input := for Variable with [WorkspaceMixin] { @httpLabel @required diff --git a/smithy/models/webhook.smithy b/smithy/models/webhook.smithy index 26975382b..5f404cca9 100644 --- a/smithy/models/webhook.smithy +++ b/smithy/models/webhook.smithy @@ -106,7 +106,7 @@ list WebhookList { @documentation("Creates a new webhook config to receive HTTP notifications when specified events occur in the system.") @http(method: "POST", uri: "/webhook") @tags(["Webhooks"]) -operation CreateWebhook { +operation CreateWebhook with [WorkspaceWriteOperation] { input := for Webhook with [WorkspaceMixin] { @required name: String @@ -141,7 +141,7 @@ operation CreateWebhook { @idempotent @http(method: "PATCH", uri: "/webhook/{name}") @tags(["Webhooks"]) -operation UpdateWebhook with [GetOperation] { +operation UpdateWebhook with [GetOperation, WorkspaceWriteOperation] { input := for Webhook with [WorkspaceMixin] { @httpLabel @required @@ -213,7 +213,7 @@ operation GetWebhookByEvent with [GetOperation] { @idempotent @http(method: "DELETE", uri: "/webhook/{name}", code: 204) @tags(["Webhooks"]) -operation DeleteWebhook with [GetOperation] { +operation DeleteWebhook with [GetOperation, WorkspaceWriteOperation] { input := for Webhook with [WorkspaceMixin] { @httpLabel @required