@@ -41,6 +41,7 @@ import Wire.API.Routes.Named
41
41
import Wire.API.Routes.Public
42
42
import Wire.API.Routes.Version
43
43
import Wire.API.Routes.Versioned
44
+ import Wire.API.Servant.Tentatively
44
45
import Wire.API.SwaggerServant
45
46
import Wire.API.User.IdentityProvider
46
47
import Wire.API.User.Saml
@@ -142,15 +143,15 @@ type IdpGetAll = Get '[JSON] IdPList
142
143
143
144
-- | See also: 'validateNewIdP', 'idpCreate', 'idpCreateXML'.
144
145
type IdpCreate =
145
- ReqBodyCustomError '[RawXML , JSON ] " wai -error" IdPMetadataInfo
146
+ ReqBodyCustomError '[RawXML , JSON ] " internal -error" ( Tentatively IdPMetadataInfo )
146
147
:> QueryParam' '[Optional , Strict ] " replaces" SAML. IdPId
147
148
:> QueryParam' '[Optional , Strict ] " api_version" WireIdPAPIVersion -- see also: 'DeprecateSSOAPIV1'
148
149
-- FUTUREWORK: The handle is restricted to 32 characters. Can we find a more reasonable upper bound and create a type for it? Also see `IdpUpdate`.
149
150
:> QueryParam' '[Optional , Strict ] " handle" (Range 1 32 Text )
150
151
:> PostCreated '[JSON ] IdP
151
152
152
153
type IdpUpdate =
153
- ReqBodyCustomError '[RawXML , JSON ] " wai -error" IdPMetadataInfo
154
+ ReqBodyCustomError '[RawXML , JSON ] " internal -error" ( Tentatively IdPMetadataInfo )
154
155
:> Capture " id" SAML. IdPId
155
156
-- FUTUREWORK: The handle is restricted to 32 characters. Can we find a more reasonable upper bound and create a type for it? Also see `IdpCreate`.
156
157
:> QueryParam' '[Optional , Strict ] " handle" (Range 1 32 Text )
0 commit comments