diff --git a/lib/Commands.ml b/lib/Commands.ml index 8d54dd5..880e2fb 100644 --- a/lib/Commands.ml +++ b/lib/Commands.ml @@ -37656,11 +37656,20 @@ The default is true. |desc}] [@key "generateCmtgKeyOnNextOperation"] [@yojson.option] [@ocaml.doc "No description provided"] + signCount : Types.number option; + [@key "signCount"] + [@yojson.option] + [@ocaml.doc + "Must be equal to or greater than -1.\n\ + If -1, the signature counter is removed from the credential, \ + and every\n\ + assertion operation will report a value of 0.\n\ + See https://w3c.github.io/webauthn/#signature-counter"] } [@@deriving yojson] let make ~authenticatorId ~credentialId ?backupEligibility ?backupState - ?activeCmtgKeyIndex ?generateCmtgKeyOnNextOperation () = + ?activeCmtgKeyIndex ?generateCmtgKeyOnNextOperation ?signCount () = { authenticatorId; credentialId; @@ -37668,6 +37677,7 @@ The default is true. |desc}] backupState; activeCmtgKeyIndex; generateCmtgKeyOnNextOperation; + signCount; } end diff --git a/lib/Types.ml b/lib/Types.ml index a7389a9..0780006 100644 --- a/lib/Types.ml +++ b/lib/Types.ml @@ -39513,11 +39513,14 @@ and WebAuthn : sig "An opaque byte sequence with a maximum size of 64 bytes mapping the\n\ credential to a specific user. (Encoded as a base64 string when \ passed over JSON)"] - signCount : number; + signCount : number option; [@key "signCount"] + [@yojson.option] [@ocaml.doc - "Signature counter. This is incremented by one for each successful\n\ - assertion.\n\ + "Signature counter. Must be equal to or greater than -1.\n\ + If -1, the credential won't have an associated signature counter, \ + and\n\ + every assertion operation will report a value of 0.\n\ See https://w3c.github.io/webauthn/#signature-counter"] largeBlob : string option; [@key "largeBlob"] @@ -39904,11 +39907,14 @@ end = struct "An opaque byte sequence with a maximum size of 64 bytes mapping the\n\ credential to a specific user. (Encoded as a base64 string when \ passed over JSON)"] - signCount : number; + signCount : number option; [@key "signCount"] + [@yojson.option] [@ocaml.doc - "Signature counter. This is incremented by one for each successful\n\ - assertion.\n\ + "Signature counter. Must be equal to or greater than -1.\n\ + If -1, the credential won't have an associated signature counter, \ + and\n\ + every assertion operation will report a value of 0.\n\ See https://w3c.github.io/webauthn/#signature-counter"] largeBlob : string option; [@key "largeBlob"] @@ -39988,11 +39994,14 @@ end = struct "An opaque byte sequence with a maximum size of 64 bytes mapping the\n\ credential to a specific user. (Encoded as a base64 string when \ passed over JSON)"] - signCount : number; + signCount : number option; [@key "signCount"] + [@yojson.option] [@ocaml.doc - "Signature counter. This is incremented by one for each successful\n\ - assertion.\n\ + "Signature counter. Must be equal to or greater than -1.\n\ + If -1, the credential won't have an associated signature counter, \ + and\n\ + every assertion operation will report a value of 0.\n\ See https://w3c.github.io/webauthn/#signature-counter"] largeBlob : string option; [@key "largeBlob"] diff --git a/package.json b/package.json index 0cb9288..b9ecc44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cdp", - "version": "0.0.1666840", + "version": "0.0.1669207", "description": "Chrome Devtools Protocol Types for OCaml", "license": "MIT", "repository": {