Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/webauthn/nsIWebAuthnService.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsICredentialParameters",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute ACString credentialId; */
Method {
name: "GetCredentialId",
params: &[Param { name: "aCredentialId", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute boolean isResidentCredential; */
Method {
name: "GetIsResidentCredential",
params: &[Param { name: "aIsResidentCredential", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString rpId; */
Method {
name: "GetRpId",
params: &[Param { name: "aRpId", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString privateKey; */
Method {
name: "GetPrivateKey",
params: &[Param { name: "aPrivateKey", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString userHandle; */
Method {
name: "GetUserHandle",
params: &[Param { name: "aUserHandle", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute uint32_t signCount; */
Method {
name: "GetSignCount",
params: &[Param { name: "aSignCount", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIWebAuthnAutoFillEntry",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute octet provider; */
Method {
name: "GetProvider",
params: &[Param { name: "aProvider", ty: "*mut u8" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString userName; */
Method {
name: "GetUserName",
params: &[Param { name: "aUserName", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString rpId; */
Method {
name: "GetRpId",
params: &[Param { name: "aRpId", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<uint8_t> credentialId; */
Method {
name: "GetCredentialId",
params: &[Param { name: "aCredentialId", ty: "*mut thin_vec::ThinVec<u8>" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIWebAuthnService",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute boolean isUVPAA; */
Method {
name: "GetIsUVPAA",
params: &[Param { name: "aIsUVPAA", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* [noscript] void makeCredential (in uint64_t aTransactionId, in uint64_t browsingContextId, in nsIWebAuthnRegisterArgs args, in nsIWebAuthnRegisterPromise promise); */
Method {
name: "MakeCredential",
params: &[Param { name: "aTransactionId", ty: "u64" }, Param { name: "browsingContextId", ty: "u64" }, Param { name: "args", ty: "*const nsIWebAuthnRegisterArgs" }, Param { name: "promise", ty: "*const nsIWebAuthnRegisterPromise" }],
ret: "::nserror::nsresult",
},
/* [noscript] void getAssertion (in uint64_t aTransactionId, in uint64_t browsingContextId, in nsIWebAuthnSignArgs args, in nsIWebAuthnSignPromise promise); */
Method {
name: "GetAssertion",
params: &[Param { name: "aTransactionId", ty: "u64" }, Param { name: "browsingContextId", ty: "u64" }, Param { name: "args", ty: "*const nsIWebAuthnSignArgs" }, Param { name: "promise", ty: "*const nsIWebAuthnSignPromise" }],
ret: "::nserror::nsresult",
},
/* [noscript] void reset (); */
Method {
name: "Reset",
params: &[],
ret: "::nserror::nsresult",
},
/* void cancel (in uint64_t aTransactionId); */
Method {
name: "Cancel",
params: &[Param { name: "aTransactionId", ty: "u64" }],
ret: "::nserror::nsresult",
},
/* uint64_t hasPendingConditionalGet (in uint64_t aBrowsingContextId, in AString aOrigin); */
Method {
name: "HasPendingConditionalGet",
params: &[Param { name: "aBrowsingContextId", ty: "u64" }, Param { name: "aOrigin", ty: "*const ::nsstring::nsAString" }, Param { name: "_retval", ty: "*mut u64" }],
ret: "::nserror::nsresult",
},
/* Array<nsIWebAuthnAutoFillEntry> getAutoFillEntries (in uint64_t aTransactionId); */
Method {
name: "GetAutoFillEntries",
params: &[Param { name: "aTransactionId", ty: "u64" }, Param { name: "_retval", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsIWebAuthnAutoFillEntry>>>" }],
ret: "::nserror::nsresult",
},
/* void selectAutoFillEntry (in uint64_t aTransactionId, in Array<uint8_t> aCredentialId); */
Method {
name: "SelectAutoFillEntry",
params: &[Param { name: "aTransactionId", ty: "u64" }, Param { name: "aCredentialId", ty: "*const thin_vec::ThinVec<u8>" }],
ret: "::nserror::nsresult",
},
/* void resumeConditionalGet (in uint64_t aTransactionId); */
Method {
name: "ResumeConditionalGet",
params: &[Param { name: "aTransactionId", ty: "u64" }],
ret: "::nserror::nsresult",
},
/* void pinCallback (in uint64_t aTransactionId, in ACString aPin); */
Method {
name: "PinCallback",
params: &[Param { name: "aTransactionId", ty: "u64" }, Param { name: "aPin", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* void setHasAttestationConsent (in uint64_t aTransactionId, in boolean aHasConsent); */
Method {
name: "SetHasAttestationConsent",
params: &[Param { name: "aTransactionId", ty: "u64" }, Param { name: "aHasConsent", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* void selectionCallback (in uint64_t aTransactionId, in uint64_t aIndex); */
Method {
name: "SelectionCallback",
params: &[Param { name: "aTransactionId", ty: "u64" }, Param { name: "aIndex", ty: "u64" }],
ret: "::nserror::nsresult",
},
/* uint64_t addVirtualAuthenticator (in ACString protocol, in ACString transport, in boolean hasResidentKey, in boolean hasUserVerification, in boolean isUserConsenting, in boolean isUserVerified); */
Method {
name: "AddVirtualAuthenticator",
params: &[Param { name: "protocol", ty: "*const ::nsstring::nsACString" }, Param { name: "transport", ty: "*const ::nsstring::nsACString" }, Param { name: "hasResidentKey", ty: "bool" }, Param { name: "hasUserVerification", ty: "bool" }, Param { name: "isUserConsenting", ty: "bool" }, Param { name: "isUserVerified", ty: "bool" }, Param { name: "_retval", ty: "*mut u64" }],
ret: "::nserror::nsresult",
},
/* void removeVirtualAuthenticator (in uint64_t authenticatorId); */
Method {
name: "RemoveVirtualAuthenticator",
params: &[Param { name: "authenticatorId", ty: "u64" }],
ret: "::nserror::nsresult",
},
/* void addCredential (in uint64_t authenticatorId, in ACString credentialId, in boolean isResidentCredential, in ACString rpId, in ACString privateKey, in ACString userHandle, in uint32_t signCount); */
Method {
name: "AddCredential",
params: &[Param { name: "authenticatorId", ty: "u64" }, Param { name: "credentialId", ty: "*const ::nsstring::nsACString" }, Param { name: "isResidentCredential", ty: "bool" }, Param { name: "rpId", ty: "*const ::nsstring::nsACString" }, Param { name: "privateKey", ty: "*const ::nsstring::nsACString" }, Param { name: "userHandle", ty: "*const ::nsstring::nsACString" }, Param { name: "signCount", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* Array<nsICredentialParameters> getCredentials (in uint64_t authenticatorId); */
Method {
name: "GetCredentials",
params: &[Param { name: "authenticatorId", ty: "u64" }, Param { name: "_retval", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsICredentialParameters>>>" }],
ret: "::nserror::nsresult",
},
/* void removeCredential (in uint64_t authenticatorId, in ACString credentialId); */
Method {
name: "RemoveCredential",
params: &[Param { name: "authenticatorId", ty: "u64" }, Param { name: "credentialId", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* void removeAllCredentials (in uint64_t authenticatorId); */
Method {
name: "RemoveAllCredentials",
params: &[Param { name: "authenticatorId", ty: "u64" }],
ret: "::nserror::nsresult",
},
/* void setUserVerified (in uint64_t authenticatorId, in boolean isUserVerified); */
Method {
name: "SetUserVerified",
params: &[Param { name: "authenticatorId", ty: "u64" }, Param { name: "isUserVerified", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* void listen (); */
Method {
name: "Listen",
params: &[],
ret: "::nserror::nsresult",
},
/* void runCommand (in ACString aCommand); */
Method {
name: "RunCommand",
params: &[Param { name: "aCommand", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}