@@ -507,6 +507,7 @@ export = UserPlatformModel;
507
507
* @property {string } [updated_at]
508
508
* @property {string } [external_id]
509
509
* @property {string } [rr_id]
510
+ * @property {UserConsent } [consent]
510
511
*/
511
512
/**
512
513
* @typedef UserSearchSchema
@@ -531,6 +532,7 @@ export = UserPlatformModel;
531
532
* @property {boolean } [archive]
532
533
* @property {string } [status]
533
534
* @property {string } [deleted_on]
535
+ * @property {UserConsent } [consent]
534
536
*/
535
537
/**
536
538
* @typedef PhoneNumber
@@ -547,10 +549,19 @@ export = UserPlatformModel;
547
549
* @property {boolean } [primary] - Is it a primary email.
548
550
* @property {boolean } [verified] - Is the email verified.
549
551
*/
552
+ /**
553
+ * @typedef UserConsent
554
+ * @property {PrivacyPolicyConsentSchema } [privacy_policy]
555
+ */
556
+ /**
557
+ * @typedef PrivacyPolicyConsentSchema
558
+ * @property {boolean } [value] - Whether the user has consented to the privacy policy
559
+ * @property {string } [updated_at] - When the consent was last updated
560
+ */
550
561
declare class UserPlatformModel {
551
562
}
552
563
declare namespace UserPlatformModel {
553
- export { SuccessMessage , UserAttributeDefinition , UserAttributeDefinitionDetails , UserAttributeDefinitionValidation , UserAttribute , CreateUserAttribute , CreateUserAttributeDefinition , CreateStoreFrontUsersPayload , BulkUserExportSchema , BulkActionModel , CreatedBySchema , BulkActionLinkSchema , FileLinks , BulkActionCountSchema , BlockUserRequestSchema , ArchiveUserRequestSchema , UnDeleteUserRequestSchema , BlockUserSuccess , ArchiveUserSuccess , UnDeleteUserSuccess , UserSearchResponseSchema , CustomerListResponseSchema , BulkActionPaginationSchema , PaginationSchema , SessionListResponseSchema , SessionDeleteResponseSchema , SessionsDeleteResponseSchema , APIError , SessionListResponseInfo , Conditions , UserResponseErrorSchema , UserGroupResponseSchema , UserGroupListResponseSchema , ConditionsSchema , CreateUserGroup , CreateUserRequestSchema , CreateUserResponseSchema , CreateUserSessionRequestSchema , CreateUserSessionResponseSchema , PlatformSchema , LookAndFeel , Login , MetaSchema , Social , RequiredFields , PlatformEmail , PlatformMobile , RegisterRequiredFields , RegisterRequiredFieldsEmail , RegisterRequiredFieldsMobile , FlashCard , SocialTokens , DeleteAccountReasons , DeleteAccountConsent , GetUserTimeline , UserTimeline , Facebook , Accountkit , Google , SessionExpiry , UpdateUserGroupSchema , PartialUserGroupUpdateSchema , UserGroupUpdateData , UpdateUserRequestSchema , UserEmails , UserPhoneNumbers , UserSchema , UserSearchSchema , PhoneNumber , Email } ;
564
+ export { SuccessMessage , UserAttributeDefinition , UserAttributeDefinitionDetails , UserAttributeDefinitionValidation , UserAttribute , CreateUserAttribute , CreateUserAttributeDefinition , CreateStoreFrontUsersPayload , BulkUserExportSchema , BulkActionModel , CreatedBySchema , BulkActionLinkSchema , FileLinks , BulkActionCountSchema , BlockUserRequestSchema , ArchiveUserRequestSchema , UnDeleteUserRequestSchema , BlockUserSuccess , ArchiveUserSuccess , UnDeleteUserSuccess , UserSearchResponseSchema , CustomerListResponseSchema , BulkActionPaginationSchema , PaginationSchema , SessionListResponseSchema , SessionDeleteResponseSchema , SessionsDeleteResponseSchema , APIError , SessionListResponseInfo , Conditions , UserResponseErrorSchema , UserGroupResponseSchema , UserGroupListResponseSchema , ConditionsSchema , CreateUserGroup , CreateUserRequestSchema , CreateUserResponseSchema , CreateUserSessionRequestSchema , CreateUserSessionResponseSchema , PlatformSchema , LookAndFeel , Login , MetaSchema , Social , RequiredFields , PlatformEmail , PlatformMobile , RegisterRequiredFields , RegisterRequiredFieldsEmail , RegisterRequiredFieldsMobile , FlashCard , SocialTokens , DeleteAccountReasons , DeleteAccountConsent , GetUserTimeline , UserTimeline , Facebook , Accountkit , Google , SessionExpiry , UpdateUserGroupSchema , PartialUserGroupUpdateSchema , UserGroupUpdateData , UpdateUserRequestSchema , UserEmails , UserPhoneNumbers , UserSchema , UserSearchSchema , PhoneNumber , Email , UserConsent , PrivacyPolicyConsentSchema } ;
554
565
}
555
566
/** @returns {SuccessMessage } */
556
567
declare function SuccessMessage ( ) : SuccessMessage ;
@@ -1364,6 +1375,7 @@ type UserSchema = {
1364
1375
updated_at ?: string ;
1365
1376
external_id ?: string ;
1366
1377
rr_id ?: string ;
1378
+ consent ?: UserConsent ;
1367
1379
} ;
1368
1380
/** @returns {UserSearchSchema } */
1369
1381
declare function UserSearchSchema ( ) : UserSearchSchema ;
@@ -1389,6 +1401,7 @@ type UserSearchSchema = {
1389
1401
archive ?: boolean ;
1390
1402
status ?: string ;
1391
1403
deleted_on ?: string ;
1404
+ consent ?: UserConsent ;
1392
1405
} ;
1393
1406
/** @returns {PhoneNumber } */
1394
1407
declare function PhoneNumber ( ) : PhoneNumber ;
@@ -1434,3 +1447,20 @@ type Email = {
1434
1447
*/
1435
1448
verified ?: boolean ;
1436
1449
} ;
1450
+ /** @returns {UserConsent } */
1451
+ declare function UserConsent ( ) : UserConsent ;
1452
+ type UserConsent = {
1453
+ privacy_policy ?: PrivacyPolicyConsentSchema ;
1454
+ } ;
1455
+ /** @returns {PrivacyPolicyConsentSchema } */
1456
+ declare function PrivacyPolicyConsentSchema ( ) : PrivacyPolicyConsentSchema ;
1457
+ type PrivacyPolicyConsentSchema = {
1458
+ /**
1459
+ * - Whether the user has consented to the privacy policy
1460
+ */
1461
+ value ?: boolean ;
1462
+ /**
1463
+ * - When the consent was last updated
1464
+ */
1465
+ updated_at ?: string ;
1466
+ } ;
0 commit comments