-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* API V2 Refactor This refactors the existing API v2 to be consistent with new patterns introduced in the issuer API: * Use camel case variants * Use `Result` return values The `Err` variants will be extended in the future with more types. These will be breaking changes. However, given we mark the API v2 as experimental this should be ok. In order to have CI pass, we have an exception in the form of a patch file that undoes the breaking changes that we intentionally made. If we introduce additional breaking changes, the patch will no longer apply and thus make the check fail. * 🤖 npm run generate auto-update * Replace unwrap with expect * Replace more unwraps with expect * Replace even more unwraps with expect --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ced109e
commit 2d49049
Showing
18 changed files
with
300 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/src/internet_identity/internet_identity.did b/src/internet_identity/internet_identity.did | ||
index 09937178..e545e0ba 100644 | ||
--- a/src/internet_identity/internet_identity.did | ||
+++ b/src/internet_identity/internet_identity.did | ||
@@ -313,16 +313,16 @@ type PublicKeyAuthn = record { | ||
|
||
// The authentication methods currently supported by II. | ||
type AuthnMethod = variant { | ||
- WebAuthn: WebAuthn; | ||
- PubKey: PublicKeyAuthn; | ||
+ webauthn: WebAuthn; | ||
+ pubkey: PublicKeyAuthn; | ||
}; | ||
|
||
// This describes whether an authentication method is "protected" or not. | ||
// When protected, a authentication method can only be updated or removed if the | ||
// user is authenticated with that very authentication method. | ||
type AuthnMethodProtection = variant { | ||
- Protected; | ||
- Unprotected; | ||
+ protected; | ||
+ unprotected; | ||
}; | ||
|
||
type AuthnMethodData = record { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.