Appearance
DoCurious API Reference / types / GiftPermission
Interface: GiftPermission
Defined in: types/gift.types.ts:98
User-configured gift reception permissions.
Remarks
When permissionType is 'allow_contacts', only users listed in allowedUserIds can send gifts. blockedUserIds provides an additional deny-list that applies regardless of the permission type.
Extends
Properties
allowedUserIds?
optionalallowedUserIds:string[]
Defined in: types/gift.types.ts:103
Explicit allow-list (only used when permissionType is 'allow_contacts')
blockedUserIds?
optionalblockedUserIds:string[]
Defined in: types/gift.types.ts:105
Explicit block-list -- these users can never send gifts regardless of permissionType
createdAt
createdAt:
string
Defined in: types/common.types.ts:154
ISO 8601 datetime when the entity was created
Inherited from
id
id:
string
Defined in: types/common.types.ts:167
Inherited from
permissionType
permissionType:
GiftPermissionType
Defined in: types/gift.types.ts:100
updatedAt
updatedAt:
string
Defined in: types/common.types.ts:156
ISO 8601 datetime when the entity was last modified
Inherited from
userId
userId:
string
Defined in: types/gift.types.ts:99