Skip to content

Commit

Permalink
feat(AWSCognitoIdentityProvider): update models to latest (aws-amplif…
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk authored Jun 5, 2024
1 parent e037af9 commit 26ed447
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 52 deletions.
2 changes: 1 addition & 1 deletion AWSCognitoIdentityProvider.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ Pod::Spec.new do |s|
s.source_files = 'AWSCognitoIdentityProvider/**/*.{h,m,c}'
s.public_header_files = 'AWSCognitoIdentityProvider/*.h'
s.private_header_files = 'AWSCognitoIdentityProvider/Internal/*.h'
s.resource_bundle = { 'AWSCognitoIdentityProvider' => ['AWSCognitoIdentityProvider/PrivacyInfo.xcprivacy']}
s.resource_bundle = { 'AWSCognitoIdentityProvider' => ['AWSCognitoIdentityProvider/PrivacyInfo.xcprivacy'] }
end
49 changes: 25 additions & 24 deletions AWSCognitoIdentityProvider/AWSCognitoIdentityProviderModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderUserStatusType) {
AWSCognitoIdentityProviderUserStatusTypeCompromised,
AWSCognitoIdentityProviderUserStatusTypeResetRequired,
AWSCognitoIdentityProviderUserStatusTypeForceChangePassword,
AWSCognitoIdentityProviderUserStatusTypeExternalProvider,
};

typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderUsernameAttributeType) {
Expand Down Expand Up @@ -1112,7 +1113,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSDate * _Nullable userCreateDate;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was modified.</p>
<p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable userLastModifiedDate;

Expand Down Expand Up @@ -1861,7 +1862,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSArray<AWSCognitoIdentityProviderChallengeResponseType *> * _Nullable challengeResponses;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was created.</p>
<p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable creationDate;

Expand Down Expand Up @@ -2348,7 +2349,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse


/**
<p>A unique resource server identifier for the resource server. This could be an HTTPS endpoint where the resource server is located, such as <code>https://my-weather-api.example.com</code>.</p>
<p>A unique resource server identifier for the resource server. The identifier can be an API friendly name like <code>solar-system-data</code>. You can also set an API URL like <code>https://solar-system-data-api.example.com</code> as your identifier.</p><p>Amazon Cognito represents scopes in the access token in the format <code>$resource-server-identifier/$scope</code>. Longer scope-identifier strings increase the size of your access tokens.</p>
*/
@property (nonatomic, strong) NSString * _Nullable identifier;

Expand Down Expand Up @@ -2467,7 +2468,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSString * _Nullable clientName;

/**
<p>The default redirect URI. Must be in the <code>CallbackURLs</code> list.</p><p>A redirect URI must:</p><ul><li><p>Be an absolute URI.</p></li><li><p>Be registered with the authorization server.</p></li><li><p>Not include a fragment component.</p></li></ul><p>See <a href="https://tools.ietf.org/html/rfc6749#section-3.1.2">OAuth 2.0 - Redirection Endpoint</a>.</p><p>Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.</p><p>App callback URLs such as myapp://example are also supported.</p>
<p>The default redirect URI. In app clients with one assigned IdP, replaces <code>redirect_uri</code> in authentication requests. Must be in the <code>CallbackURLs</code> list.</p><p>A redirect URI must:</p><ul><li><p>Be an absolute URI.</p></li><li><p>Be registered with the authorization server.</p></li><li><p>Not include a fragment component.</p></li></ul><p>For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html#cognito-user-pools-app-idp-settings-about">Default redirect URI</a>.</p><p>Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.</p><p>App callback URLs such as myapp://example are also supported.</p>
*/
@property (nonatomic, strong) NSString * _Nullable defaultRedirectURI;

Expand Down Expand Up @@ -2968,7 +2969,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse


/**
<p>The identifier for the resource server</p>
<p>A unique resource server identifier for the resource server. The identifier can be an API friendly name like <code>solar-system-data</code>. You can also set an API URL like <code>https://solar-system-data-api.example.com</code> as your identifier.</p><p>Amazon Cognito represents scopes in the access token in the format <code>$resource-server-identifier/$scope</code>. Longer scope-identifier strings increase the size of your access tokens.</p>
*/
@property (nonatomic, strong) NSString * _Nullable identifier;

Expand Down Expand Up @@ -3203,7 +3204,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSDate * _Nullable deviceLastAuthenticatedDate;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was modified.</p>
<p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable deviceLastModifiedDate;

Expand Down Expand Up @@ -3802,7 +3803,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse


/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was created.</p>
<p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable creationDate;

Expand All @@ -3817,7 +3818,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSString * _Nullable groupName;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was modified.</p>
<p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable lastModifiedDate;

Expand Down Expand Up @@ -3868,7 +3869,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable attributeMapping;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was created.</p>
<p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable creationDate;

Expand All @@ -3878,7 +3879,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSArray<NSString *> * _Nullable idpIdentifiers;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was modified.</p>
<p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable lastModifiedDate;

Expand Down Expand Up @@ -4706,7 +4707,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse


/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was created.</p>
<p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable creationDate;

Expand Down Expand Up @@ -4847,7 +4848,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse


/**
<p>The identifier for the resource server.</p>
<p>A unique resource server identifier for the resource server. The identifier can be an API friendly name like <code>solar-system-data</code>. You can also set an API URL like <code>https://solar-system-data-api.example.com</code> as your identifier.</p><p>Amazon Cognito represents scopes in the access token in the format <code>$resource-server-identifier/$scope</code>. Longer scope-identifier strings increase the size of your access tokens.</p>
*/
@property (nonatomic, strong) NSString * _Nullable identifier;

Expand Down Expand Up @@ -4993,7 +4994,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) AWSCognitoIdentityProviderCompromisedCredentialsRiskConfigurationType * _Nullable compromisedCredentialsRiskConfiguration;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was modified.</p>
<p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable lastModifiedDate;

Expand Down Expand Up @@ -5619,7 +5620,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSString * _Nullable clientId;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was created.</p>
<p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable creationDate;

Expand All @@ -5629,7 +5630,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSString * _Nullable imageUrl;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was modified.</p>
<p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable lastModifiedDate;

Expand Down Expand Up @@ -5838,7 +5839,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse


/**
<p>The identifier for the resource server.</p>
<p>A unique resource server identifier for the resource server. The identifier can be an API friendly name like <code>solar-system-data</code>. You can also set an API URL like <code>https://solar-system-data-api.example.com</code> as your identifier.</p><p>Amazon Cognito represents scopes in the access token in the format <code>$resource-server-identifier/$scope</code>. Longer scope-identifier strings increase the size of your access tokens.</p>
*/
@property (nonatomic, strong) NSString * _Nullable identifier;

Expand Down Expand Up @@ -6243,7 +6244,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSString * _Nullable completionMessage;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was created.</p>
<p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable creationDate;

Expand Down Expand Up @@ -6388,7 +6389,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSString * _Nullable clientSecret;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was created.</p>
<p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable creationDate;

Expand Down Expand Up @@ -6418,7 +6419,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSNumber * _Nullable idTokenValidity;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was modified.</p>
<p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable lastModifiedDate;

Expand Down Expand Up @@ -6471,7 +6472,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse


/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was created.</p>
<p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable creationDate;

Expand All @@ -6486,7 +6487,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) AWSCognitoIdentityProviderLambdaConfigType * _Nullable lambdaConfig;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was modified.</p>
<p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable lastModifiedDate;

Expand Down Expand Up @@ -6547,7 +6548,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSArray<NSString *> * _Nullable autoVerifiedAttributes;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was created.</p>
<p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable creationDate;

Expand Down Expand Up @@ -6607,7 +6608,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) AWSCognitoIdentityProviderLambdaConfigType * _Nullable lambdaConfig;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was modified.</p>
<p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable lastModifiedDate;

Expand Down Expand Up @@ -6715,7 +6716,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse
@property (nonatomic, strong) NSDate * _Nullable userCreateDate;

/**
<p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was modified.</p>
<p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
*/
@property (nonatomic, strong) NSDate * _Nullable userLastModifiedDate;

Expand Down
10 changes: 10 additions & 0 deletions AWSCognitoIdentityProvider/AWSCognitoIdentityProviderModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,9 @@ + (NSValueTransformer *)userStatusJSONTransformer {
if ([value caseInsensitiveCompare:@"FORCE_CHANGE_PASSWORD"] == NSOrderedSame) {
return @(AWSCognitoIdentityProviderUserStatusTypeForceChangePassword);
}
if ([value caseInsensitiveCompare:@"EXTERNAL_PROVIDER"] == NSOrderedSame) {
return @(AWSCognitoIdentityProviderUserStatusTypeExternalProvider);
}
return @(AWSCognitoIdentityProviderUserStatusTypeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand All @@ -550,6 +553,8 @@ + (NSValueTransformer *)userStatusJSONTransformer {
return @"RESET_REQUIRED";
case AWSCognitoIdentityProviderUserStatusTypeForceChangePassword:
return @"FORCE_CHANGE_PASSWORD";
case AWSCognitoIdentityProviderUserStatusTypeExternalProvider:
return @"EXTERNAL_PROVIDER";
default:
return nil;
}
Expand Down Expand Up @@ -6665,6 +6670,9 @@ + (NSValueTransformer *)userStatusJSONTransformer {
if ([value caseInsensitiveCompare:@"FORCE_CHANGE_PASSWORD"] == NSOrderedSame) {
return @(AWSCognitoIdentityProviderUserStatusTypeForceChangePassword);
}
if ([value caseInsensitiveCompare:@"EXTERNAL_PROVIDER"] == NSOrderedSame) {
return @(AWSCognitoIdentityProviderUserStatusTypeExternalProvider);
}
return @(AWSCognitoIdentityProviderUserStatusTypeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand All @@ -6682,6 +6690,8 @@ + (NSValueTransformer *)userStatusJSONTransformer {
return @"RESET_REQUIRED";
case AWSCognitoIdentityProviderUserStatusTypeForceChangePassword:
return @"FORCE_CHANGE_PASSWORD";
case AWSCognitoIdentityProviderUserStatusTypeExternalProvider:
return @"EXTERNAL_PROVIDER";
default:
return nil;
}
Expand Down
Loading

0 comments on commit 26ed447

Please sign in to comment.