@@ -75,6 +75,9 @@ public enum ASCredentialServiceIdentifierType : long {
7575 Domain ,
7676 /// <summary>The identifier specifies a URL.</summary>
7777 Url ,
78+ /// <summary>The identifier specifies an app.</summary>
79+ [ MacCatalyst ( 26 , 2 ) , iOS ( 26 , 2 ) , Mac ( 26 , 2 ) ]
80+ App ,
7881 }
7982
8083 /// <summary>Enumerates errors associated with a <see cref="AuthenticationServices.ASWebAuthenticationSession" />.</summary>
@@ -364,6 +367,16 @@ interface ASCredentialProviderExtensionContext {
364367 [ NoTV , NoMac , iOS ( 18 , 0 ) , NoMacCatalyst ]
365368 [ Export ( "completeRequestWithTextToInsert:completionHandler:" ) ]
366369 void CompleteRequest ( string textToInsert , [ NullAllowed ] Action < bool > completionHandler ) ;
370+
371+ [ Async ]
372+ [ NoTV , NoMac , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
373+ [ Export ( "completeSavePasswordRequestWithCompletionHandler:" ) ]
374+ void CompleteSavePasswordRequest ( [ NullAllowed ] Action < bool > completionHandler ) ;
375+
376+ [ Async ]
377+ [ NoTV , NoMac , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
378+ [ Export ( "completeGeneratePasswordRequestWithResults:completionHandler:" ) ]
379+ void CompleteGeneratePasswordRequest ( ASGeneratedPassword [ ] results , [ NullAllowed ] Action < bool > completionHandler ) ;
367380 }
368381
369382 /// <summary>Holds the identification for a credential service.</summary>
@@ -390,6 +403,24 @@ interface ASCredentialServiceIdentifier : NSCopying, NSSecureCoding {
390403 /// <remarks>To be added.</remarks>
391404 [ Export ( "type" ) ]
392405 ASCredentialServiceIdentifierType Type { get ; }
406+
407+ /// <summary>
408+ /// Constructs a new <see cref="AuthenticationServices.ASCredentialServiceIdentifier" /> with the specified <paramref name="identifier" />, of the specified <paramref name="type" />, and with the specified <paramref name="displayName" />.
409+ /// </summary>
410+ /// <param name="identifier">To be added.</param>
411+ /// <param name="type">To be added.</param>
412+ /// <param name="displayName">To be added.</param>
413+ /// <remarks>To be added.</remarks>
414+ [ NoTV , Mac ( 26 , 2 ) , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
415+ [ Export ( "initWithIdentifier:type:displayName:" ) ]
416+ NativeHandle Constructor ( string identifier , ASCredentialServiceIdentifierType type , string displayName ) ;
417+
418+ /// <summary>Gets the display name.</summary>
419+ /// <value>To be added.</value>
420+ /// <remarks>To be added.</remarks>
421+ [ NoTV , Mac ( 26 , 2 ) , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
422+ [ NullAllowed , Export ( "displayName" ) ]
423+ string DisplayName { get ; }
393424 }
394425
395426 /// <summary>Associates a <see cref="AuthenticationServices.ASPasswordCredentialIdentity.User" /> string with a record in the developer's credential database.</summary>
@@ -525,6 +556,22 @@ interface ASCredentialProviderViewController {
525556 [ iOS ( 26 , 0 ) , Mac ( 26 , 0 ) , MacCatalyst ( 26 , 0 ) , NoTV ]
526557 [ Export ( "reportUnusedPasswordCredentialForDomain:userName:" ) ]
527558 void ReportUnusedPasswordCredential ( string domain , string userName ) ;
559+
560+ [ NoTV , NoMac , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
561+ [ Export ( "performSavePasswordRequestWithoutUserInteractionIfPossible:" ) ]
562+ void PerformSavePasswordRequestWithoutUserInteractionIfPossible ( ASSavePasswordRequest savePasswordRequest ) ;
563+
564+ [ NoTV , NoMac , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
565+ [ Export ( "prepareInterfaceForSavePasswordRequest:" ) ]
566+ void PrepareInterfaceForSavePasswordRequest ( ASSavePasswordRequest savePasswordRequest ) ;
567+
568+ [ NoTV , NoMac , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
569+ [ Export ( "performGeneratePasswordsRequestWithoutUserInteraction:" ) ]
570+ void PerformGeneratePasswordsRequestWithoutUserInteraction ( ASGeneratePasswordsRequest generatePasswordsRequest ) ;
571+
572+ [ NoTV , NoMac , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
573+ [ Export ( "prepareInterfaceForGeneratePasswordsRequest:" ) ]
574+ void PrepareInterfaceForGeneratePasswordsRequest ( ASGeneratePasswordsRequest generatePasswordsRequest ) ;
528575 }
529576
530577 /// <summary>Associates a username and a password.</summary>
@@ -3026,4 +3073,100 @@ interface ASAuthorizationProviderExtensionSigningAlgorithm222 {
30263073 [ Field ( "ASAuthorizationProviderExtensionSigningAlgorithmEd25519" ) ]
30273074 NSNumber Ed25519 { get ; }
30283075 }
3076+
3077+ [ NoTV , NoMac , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
3078+ [ Native ]
3079+ public enum ASSavePasswordRequestEvent : long {
3080+ UserInitiated ,
3081+ FormDidDisappear ,
3082+ GeneratedPasswordFilled
3083+ }
3084+
3085+
3086+ [ NoTV , NoMac , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
3087+ enum ASGeneratedPasswordKind {
3088+ [ Field ( "ASGeneratedPasswordKindAlphanumeric" ) ]
3089+ Alphanumeric ,
3090+ [ Field ( "ASGeneratedPasswordKindPassphrase" ) ]
3091+ Passphrase ,
3092+ [ Field ( "ASGeneratedPasswordKindStrong" ) ]
3093+ Strong ,
3094+ }
3095+
3096+ [ NoTV , NoMac , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
3097+ [ BaseType ( typeof ( NSObject ) ) ]
3098+ [ DisableDefaultCtor ]
3099+ interface ASGeneratedPassword : NSCopying , NSSecureCoding {
3100+
3101+ [ BindAs ( typeof ( ASGeneratedPasswordKind ) ) ]
3102+ [ Export ( "kind" ) ]
3103+ NSString Kind { get ; }
3104+
3105+ [ Export ( "localizedName" ) ]
3106+ string LocalizedName { get ; }
3107+
3108+ [ Export ( "value" ) ]
3109+ string Value { get ; }
3110+
3111+ [ Export ( "initWithKind:value:" ) ]
3112+ NativeHandle Constructor ( [ BindAs ( typeof ( ASGeneratedPasswordKind ) ) ] NSString kind , string value ) ;
3113+ }
3114+
3115+ [ NoTV , NoMac , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
3116+ [ BaseType ( typeof ( NSObject ) ) ]
3117+ [ DisableDefaultCtor ]
3118+ interface ASGeneratePasswordsRequest : NSCopying , NSSecureCoding {
3119+
3120+ [ Export ( "serviceIdentifier" ) ]
3121+ ASCredentialServiceIdentifier ServiceIdentifier { get ; }
3122+
3123+ [ NullAllowed , Export ( "passwordFieldPasswordRules" ) ]
3124+ string PasswordFieldPasswordRules { get ; }
3125+
3126+ [ NullAllowed , Export ( "confirmPasswordFieldPasswordRules" ) ]
3127+ string ConfirmPasswordFieldPasswordRules { get ; }
3128+
3129+ [ NullAllowed , Export ( "passwordRulesFromQuirks" ) ]
3130+ string PasswordRulesFromQuirks { get ; }
3131+
3132+ [ Export ( "initWithServiceIdentifier:passwordFieldPasswordRules:confirmPasswordFieldPasswordRules:passwordRulesFromQuirks:" ) ]
3133+ NativeHandle Constructor ( ASCredentialServiceIdentifier serviceIdentifier , [ NullAllowed ] string passwordFieldPasswordRules , [ NullAllowed ] string confirmPasswordFieldPasswordRules , [ NullAllowed ] string passwordRulesFromQuirks ) ;
3134+ }
3135+
3136+ [ NoTV , NoMac , iOS ( 26 , 2 ) , MacCatalyst ( 26 , 2 ) ]
3137+ [ BaseType ( typeof ( NSObject ) ) ]
3138+ [ DisableDefaultCtor ]
3139+ interface ASSavePasswordRequest : NSCopying , NSSecureCoding {
3140+
3141+ [ Export ( "serviceIdentifier" ) ]
3142+ ASCredentialServiceIdentifier ServiceIdentifier { get ; }
3143+
3144+ [ Export ( "credential" ) ]
3145+ ASPasswordCredential Credential { get ; }
3146+
3147+ [ NullAllowed , Export ( "title" ) ]
3148+ string Title { get ; }
3149+
3150+ [ Export ( "sessionID" ) ]
3151+ string SessionId { get ; }
3152+
3153+ [ Export ( "event" ) ]
3154+ ASSavePasswordRequestEvent Event { get ; }
3155+
3156+ [ BindAs ( typeof ( ASGeneratedPasswordKind ) ) ]
3157+ [ NullAllowed , Export ( "passwordKind" ) ]
3158+ NSString PasswordKind { get ; }
3159+
3160+ [ Export ( "initWithServiceIdentifier:credential:sessionID:event:" ) ]
3161+ NativeHandle Constructor ( ASCredentialServiceIdentifier serviceIdentifier , ASPasswordCredential credential , string sessionId , ASSavePasswordRequestEvent @event ) ;
3162+
3163+ [ Export ( "initWithServiceIdentifier:credential:title:sessionID:event:" ) ]
3164+ NativeHandle Constructor ( ASCredentialServiceIdentifier serviceIdentifier , ASPasswordCredential credential , [ NullAllowed ] string title , string sessionId , ASSavePasswordRequestEvent @event ) ;
3165+
3166+ [ Export ( "initWithServiceIdentifier:credential:sessionID:event:passwordKind:" ) ]
3167+ NativeHandle Constructor ( ASCredentialServiceIdentifier serviceIdentifier , ASPasswordCredential credential , string sessionId , ASSavePasswordRequestEvent @event , [ NullAllowed ] [ BindAs ( typeof ( ASGeneratedPasswordKind ) ) ] NSString passwordKind ) ;
3168+
3169+ [ Export ( "initWithServiceIdentifier:credential:title:sessionID:event:passwordKind:" ) ]
3170+ NativeHandle Constructor ( ASCredentialServiceIdentifier serviceIdentifier , ASPasswordCredential credential , [ NullAllowed ] string title , string sessionId , ASSavePasswordRequestEvent @event , [ NullAllowed ] [ BindAs ( typeof ( ASGeneratedPasswordKind ) ) ] NSString passwordKind ) ;
3171+ }
30293172}
0 commit comments