Skip to content

DoCurious API Reference / types / GiftPermission

Interface: GiftPermission ​

Defined in: types/gift.types.ts:102

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? ​

optional allowedUserIds: string[]

Defined in: types/gift.types.ts:107

Explicit allow-list (only used when permissionType is 'allow_contacts')


blockedUserIds? ​

optional blockedUserIds: string[]

Defined in: types/gift.types.ts:109

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 ​

BaseEntity.createdAt


id ​

id: string

Defined in: types/common.types.ts:167

Inherited from ​

BaseEntity.id


permissionType ​

permissionType: GiftPermissionType

Defined in: types/gift.types.ts:104


updatedAt ​

updatedAt: string

Defined in: types/common.types.ts:156

ISO 8601 datetime when the entity was last modified

Inherited from ​

BaseEntity.updatedAt


userId ​

userId: string

Defined in: types/gift.types.ts:103

DoCurious Platform Documentation